File: /home/u338768758/domains/pink-opossum-299383.hostingersite.com/public_html/assets/index-c8a0e1ab.js
function Sx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Th={exports:{}},_s={},Eh={exports:{}},V={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var qo=Symbol.for("react.element"),Tx=Symbol.for("react.portal"),Ex=Symbol.for("react.fragment"),Cx=Symbol.for("react.strict_mode"),Px=Symbol.for("react.profiler"),kx=Symbol.for("react.provider"),bx=Symbol.for("react.context"),Ax=Symbol.for("react.forward_ref"),Nx=Symbol.for("react.suspense"),Rx=Symbol.for("react.memo"),jx=Symbol.for("react.lazy"),yd=Symbol.iterator;function Dx(e){return e===null||typeof e!="object"?null:(e=yd&&e[yd]||e["@@iterator"],typeof e=="function"?e:null)}var Ch={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ph=Object.assign,kh={};function Fr(e,t,n){this.props=e,this.context=t,this.refs=kh,this.updater=n||Ch}Fr.prototype.isReactComponent={};Fr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bh(){}bh.prototype=Fr.prototype;function ju(e,t,n){this.props=e,this.context=t,this.refs=kh,this.updater=n||Ch}var Du=ju.prototype=new bh;Du.constructor=ju;Ph(Du,Fr.prototype);Du.isPureReactComponent=!0;var xd=Array.isArray,Ah=Object.prototype.hasOwnProperty,Mu={current:null},Nh={key:!0,ref:!0,__self:!0,__source:!0};function Rh(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Ah.call(t,r)&&!Nh.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:qo,type:e,key:i,ref:s,props:o,_owner:Mu.current}}function Mx(e,t){return{$$typeof:qo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Lu(e){return typeof e=="object"&&e!==null&&e.$$typeof===qo}function Lx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wd=/\/+/g;function da(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lx(""+e.key):t.toString(36)}function _i(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case qo:case Tx:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+da(s,0):r,xd(o)?(n="",e!=null&&(n=e.replace(wd,"$&/")+"/"),_i(o,t,n,"",function(u){return u})):o!=null&&(Lu(o)&&(o=Mx(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(wd,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",xd(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+da(i,a);s+=_i(i,t,n,l,o)}else if(l=Dx(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+da(i,a++),s+=_i(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function ci(e,t,n){if(e==null)return e;var r=[],o=0;return _i(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Ox(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _e={current:null},Ii={transition:null},_x={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:Ii,ReactCurrentOwner:Mu};function jh(){throw Error("act(...) is not supported in production builds of React.")}V.Children={map:ci,forEach:function(e,t,n){ci(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ci(e,function(){t++}),t},toArray:function(e){return ci(e,function(t){return t})||[]},only:function(e){if(!Lu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Component=Fr;V.Fragment=Ex;V.Profiler=Px;V.PureComponent=ju;V.StrictMode=Cx;V.Suspense=Nx;V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_x;V.act=jh;V.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ph({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Mu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Ah.call(t,l)&&!Nh.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:qo,type:e.type,key:o,ref:i,props:r,_owner:s}};V.createContext=function(e){return e={$$typeof:bx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:kx,_context:e},e.Consumer=e};V.createElement=Rh;V.createFactory=function(e){var t=Rh.bind(null,e);return t.type=e,t};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:Ax,render:e}};V.isValidElement=Lu;V.lazy=function(e){return{$$typeof:jx,_payload:{_status:-1,_result:e},_init:Ox}};V.memo=function(e,t){return{$$typeof:Rx,type:e,compare:t===void 0?null:t}};V.startTransition=function(e){var t=Ii.transition;Ii.transition={};try{e()}finally{Ii.transition=t}};V.unstable_act=jh;V.useCallback=function(e,t){return _e.current.useCallback(e,t)};V.useContext=function(e){return _e.current.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e){return _e.current.useDeferredValue(e)};V.useEffect=function(e,t){return _e.current.useEffect(e,t)};V.useId=function(){return _e.current.useId()};V.useImperativeHandle=function(e,t,n){return _e.current.useImperativeHandle(e,t,n)};V.useInsertionEffect=function(e,t){return _e.current.useInsertionEffect(e,t)};V.useLayoutEffect=function(e,t){return _e.current.useLayoutEffect(e,t)};V.useMemo=function(e,t){return _e.current.useMemo(e,t)};V.useReducer=function(e,t,n){return _e.current.useReducer(e,t,n)};V.useRef=function(e){return _e.current.useRef(e)};V.useState=function(e){return _e.current.useState(e)};V.useSyncExternalStore=function(e,t,n){return _e.current.useSyncExternalStore(e,t,n)};V.useTransition=function(){return _e.current.useTransition()};V.version="18.3.1";Eh.exports=V;var v=Eh.exports;const H=Ir(v),Dh=Sx({__proto__:null,default:H},[v]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ix=v,Fx=Symbol.for("react.element"),Vx=Symbol.for("react.fragment"),Bx=Object.prototype.hasOwnProperty,zx=Ix.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ux={key:!0,ref:!0,__self:!0,__source:!0};function Mh(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Bx.call(t,r)&&!Ux.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Fx,type:e,key:i,ref:s,props:o,_owner:zx.current}}_s.Fragment=Vx;_s.jsx=Mh;_s.jsxs=Mh;Th.exports=_s;var h=Th.exports,ul={},Lh={exports:{}},qe={},Oh={exports:{}},_h={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(A,j){var L=A.length;A.push(j);e:for(;0<L;){var B=L-1>>>1,oe=A[B];if(0<o(oe,j))A[B]=j,A[L]=oe,L=B;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var j=A[0],L=A.pop();if(L!==j){A[0]=L;e:for(var B=0,oe=A.length,bt=oe>>>1;B<bt;){var yt=2*(B+1)-1,ca=A[yt],Sn=yt+1,ui=A[Sn];if(0>o(ca,L))Sn<oe&&0>o(ui,ca)?(A[B]=ui,A[Sn]=L,B=Sn):(A[B]=ca,A[yt]=L,B=yt);else if(Sn<oe&&0>o(ui,L))A[B]=ui,A[Sn]=L,B=Sn;else break e}}return j}function o(A,j){var L=A.sortIndex-j.sortIndex;return L!==0?L:A.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,y=!1,S=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=A)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function T(A){if(g=!1,x(A),!S)if(n(l)!==null)S=!0,me(E);else{var j=n(u);j!==null&&W(T,j.startTime-A)}}function E(A,j){S=!1,g&&(g=!1,p(k),k=-1),y=!0;var L=f;try{for(x(j),d=n(l);d!==null&&(!(d.expirationTime>j)||A&&!U());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var oe=B(d.expirationTime<=j);j=e.unstable_now(),typeof oe=="function"?d.callback=oe:d===n(l)&&r(l),x(j)}else r(l);d=n(l)}if(d!==null)var bt=!0;else{var yt=n(u);yt!==null&&W(T,yt.startTime-j),bt=!1}return bt}finally{d=null,f=L,y=!1}}var P=!1,C=null,k=-1,D=5,R=-1;function U(){return!(e.unstable_now()-R<D)}function I(){if(C!==null){var A=e.unstable_now();R=A;var j=!0;try{j=C(!0,A)}finally{j?De():(P=!1,C=null)}}else P=!1}var De;if(typeof m=="function")De=function(){m(I)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,he=O.port2;O.port1.onmessage=I,De=function(){he.postMessage(null)}}else De=function(){w(I,0)};function me(A){C=A,P||(P=!0,De())}function W(A,j){k=w(function(){A(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){S||y||(S=!0,me(E))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(f){case 1:case 2:case 3:var j=3;break;default:j=f}var L=f;f=j;try{return A()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,j){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var L=f;f=A;try{return j()}finally{f=L}},e.unstable_scheduleCallback=function(A,j,L){var B=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?B+L:B):L=B,A){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=L+oe,A={id:c++,callback:j,priorityLevel:A,startTime:L,expirationTime:oe,sortIndex:-1},L>B?(A.sortIndex=L,t(u,A),n(l)===null&&A===n(u)&&(g?(p(k),k=-1):g=!0,W(T,L-B))):(A.sortIndex=oe,t(l,A),S||y||(S=!0,me(E))),A},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(A){var j=f;return function(){var L=f;f=j;try{return A.apply(this,arguments)}finally{f=L}}}})(_h);Oh.exports=_h;var $x=Oh.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Wx=v,Ye=$x;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ih=new Set,Po={};function $n(e,t){kr(e,t),kr(e+"Capture",t)}function kr(e,t){for(Po[e]=t,e=0;e<t.length;e++)Ih.add(t[e])}var It=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cl=Object.prototype.hasOwnProperty,Hx=/^[: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]*$/,Sd={},Td={};function Kx(e){return cl.call(Td,e)?!0:cl.call(Sd,e)?!1:Hx.test(e)?Td[e]=!0:(Sd[e]=!0,!1)}function Gx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Yx(e,t,n,r){if(t===null||typeof t>"u"||Gx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ie(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new Ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Se[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ou=/[\-:]([a-z])/g;function _u(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ou,_u);Se[t]=new Ie(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ou,_u);Se[t]=new Ie(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ou,_u);Se[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function Iu(e,t,n,r){var o=Se.hasOwnProperty(t)?Se[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Yx(t,n,o,r)&&(n=null),r||o===null?Kx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var $t=Wx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,di=Symbol.for("react.element"),Jn=Symbol.for("react.portal"),er=Symbol.for("react.fragment"),Fu=Symbol.for("react.strict_mode"),dl=Symbol.for("react.profiler"),Fh=Symbol.for("react.provider"),Vh=Symbol.for("react.context"),Vu=Symbol.for("react.forward_ref"),fl=Symbol.for("react.suspense"),pl=Symbol.for("react.suspense_list"),Bu=Symbol.for("react.memo"),Qt=Symbol.for("react.lazy"),Bh=Symbol.for("react.offscreen"),Ed=Symbol.iterator;function Hr(e){return e===null||typeof e!="object"?null:(e=Ed&&e[Ed]||e["@@iterator"],typeof e=="function"?e:null)}var re=Object.assign,fa;function oo(e){if(fa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);fa=t&&t[1]||""}return`
`+fa+e}var pa=!1;function ha(e,t){if(!e||pa)return"";pa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{pa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?oo(e):""}function Xx(e){switch(e.tag){case 5:return oo(e.type);case 16:return oo("Lazy");case 13:return oo("Suspense");case 19:return oo("SuspenseList");case 0:case 2:case 15:return e=ha(e.type,!1),e;case 11:return e=ha(e.type.render,!1),e;case 1:return e=ha(e.type,!0),e;default:return""}}function hl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case er:return"Fragment";case Jn:return"Portal";case dl:return"Profiler";case Fu:return"StrictMode";case fl:return"Suspense";case pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vh:return(e.displayName||"Context")+".Consumer";case Fh:return(e._context.displayName||"Context")+".Provider";case Vu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bu:return t=e.displayName||null,t!==null?t:hl(e.type)||"Memo";case Qt:t=e._payload,e=e._init;try{return hl(e(t))}catch{}}return null}function Qx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hl(t);case 8:return t===Fu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qx(e){var t=zh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){e._valueTracker||(e._valueTracker=qx(e))}function Uh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ts(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ml(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Cd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $h(e,t){t=t.checked,t!=null&&Iu(e,"checked",t,!1)}function gl(e,t){$h(e,t);var n=pn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vl(e,t.type,n):t.hasOwnProperty("defaultValue")&&vl(e,t.type,pn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vl(e,t,n){(t!=="number"||ts(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var io=Array.isArray;function gr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function yl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(b(91));return re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(b(92));if(io(n)){if(1<n.length)throw Error(b(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:pn(n)}}function Wh(e,t){var n=pn(t.value),r=pn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function bd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Hh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Hh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pi,Kh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(pi=pi||document.createElement("div"),pi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ko(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zx=["Webkit","ms","Moz","O"];Object.keys(fo).forEach(function(e){Zx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fo[t]=fo[e]})});function Gh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fo.hasOwnProperty(e)&&fo[e]?(""+t).trim():t+"px"}function Yh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Gh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Jx=re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wl(e,t){if(t){if(Jx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Sl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tl=null;function zu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var El=null,vr=null,yr=null;function Ad(e){if(e=ei(e)){if(typeof El!="function")throw Error(b(280));var t=e.stateNode;t&&(t=zs(t),El(e.stateNode,e.type,t))}}function Xh(e){vr?yr?yr.push(e):yr=[e]:vr=e}function Qh(){if(vr){var e=vr,t=yr;if(yr=vr=null,Ad(e),t)for(e=0;e<t.length;e++)Ad(t[e])}}function qh(e,t){return e(t)}function Zh(){}var ma=!1;function Jh(e,t,n){if(ma)return e(t,n);ma=!0;try{return qh(e,t,n)}finally{ma=!1,(vr!==null||yr!==null)&&(Zh(),Qh())}}function bo(e,t){var n=e.stateNode;if(n===null)return null;var r=zs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(b(231,t,typeof n));return n}var Cl=!1;if(It)try{var Kr={};Object.defineProperty(Kr,"passive",{get:function(){Cl=!0}}),window.addEventListener("test",Kr,Kr),window.removeEventListener("test",Kr,Kr)}catch{Cl=!1}function e1(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var po=!1,ns=null,rs=!1,Pl=null,t1={onError:function(e){po=!0,ns=e}};function n1(e,t,n,r,o,i,s,a,l){po=!1,ns=null,e1.apply(t1,arguments)}function r1(e,t,n,r,o,i,s,a,l){if(n1.apply(this,arguments),po){if(po){var u=ns;po=!1,ns=null}else throw Error(b(198));rs||(rs=!0,Pl=u)}}function Wn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function em(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Nd(e){if(Wn(e)!==e)throw Error(b(188))}function o1(e){var t=e.alternate;if(!t){if(t=Wn(e),t===null)throw Error(b(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Nd(o),e;if(i===r)return Nd(o),t;i=i.sibling}throw Error(b(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(b(189))}}if(n.alternate!==r)throw Error(b(190))}if(n.tag!==3)throw Error(b(188));return n.stateNode.current===n?e:t}function tm(e){return e=o1(e),e!==null?nm(e):null}function nm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=nm(e);if(t!==null)return t;e=e.sibling}return null}var rm=Ye.unstable_scheduleCallback,Rd=Ye.unstable_cancelCallback,i1=Ye.unstable_shouldYield,s1=Ye.unstable_requestPaint,le=Ye.unstable_now,a1=Ye.unstable_getCurrentPriorityLevel,Uu=Ye.unstable_ImmediatePriority,om=Ye.unstable_UserBlockingPriority,os=Ye.unstable_NormalPriority,l1=Ye.unstable_LowPriority,im=Ye.unstable_IdlePriority,Is=null,Et=null;function u1(e){if(Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Is,e,void 0,(e.current.flags&128)===128)}catch{}}var pt=Math.clz32?Math.clz32:f1,c1=Math.log,d1=Math.LN2;function f1(e){return e>>>=0,e===0?32:31-(c1(e)/d1|0)|0}var hi=64,mi=4194304;function so(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function is(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=so(a):(i&=s,i!==0&&(r=so(i)))}else s=n&~o,s!==0?r=so(s):i!==0&&(r=so(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pt(t),o=1<<n,r|=e[n],t&=~o;return r}function p1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function h1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-pt(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=p1(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function kl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sm(){var e=hi;return hi<<=1,!(hi&4194240)&&(hi=64),e}function ga(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pt(t),e[t]=n}function m1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-pt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function $u(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var $=0;function am(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var lm,Wu,um,cm,dm,bl=!1,gi=[],rn=null,on=null,sn=null,Ao=new Map,No=new Map,Zt=[],g1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jd(e,t){switch(e){case"focusin":case"focusout":rn=null;break;case"dragenter":case"dragleave":on=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":Ao.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":No.delete(t.pointerId)}}function Gr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=ei(t),t!==null&&Wu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function v1(e,t,n,r,o){switch(t){case"focusin":return rn=Gr(rn,e,t,n,r,o),!0;case"dragenter":return on=Gr(on,e,t,n,r,o),!0;case"mouseover":return sn=Gr(sn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ao.set(i,Gr(Ao.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,No.set(i,Gr(No.get(i)||null,e,t,n,r,o)),!0}return!1}function fm(e){var t=An(e.target);if(t!==null){var n=Wn(t);if(n!==null){if(t=n.tag,t===13){if(t=em(n),t!==null){e.blockedOn=t,dm(e.priority,function(){um(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Al(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Tl=r,n.target.dispatchEvent(r),Tl=null}else return t=ei(n),t!==null&&Wu(t),e.blockedOn=n,!1;t.shift()}return!0}function Dd(e,t,n){Fi(e)&&n.delete(t)}function y1(){bl=!1,rn!==null&&Fi(rn)&&(rn=null),on!==null&&Fi(on)&&(on=null),sn!==null&&Fi(sn)&&(sn=null),Ao.forEach(Dd),No.forEach(Dd)}function Yr(e,t){e.blockedOn===t&&(e.blockedOn=null,bl||(bl=!0,Ye.unstable_scheduleCallback(Ye.unstable_NormalPriority,y1)))}function Ro(e){function t(o){return Yr(o,e)}if(0<gi.length){Yr(gi[0],e);for(var n=1;n<gi.length;n++){var r=gi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(rn!==null&&Yr(rn,e),on!==null&&Yr(on,e),sn!==null&&Yr(sn,e),Ao.forEach(t),No.forEach(t),n=0;n<Zt.length;n++)r=Zt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Zt.length&&(n=Zt[0],n.blockedOn===null);)fm(n),n.blockedOn===null&&Zt.shift()}var xr=$t.ReactCurrentBatchConfig,ss=!0;function x1(e,t,n,r){var o=$,i=xr.transition;xr.transition=null;try{$=1,Hu(e,t,n,r)}finally{$=o,xr.transition=i}}function w1(e,t,n,r){var o=$,i=xr.transition;xr.transition=null;try{$=4,Hu(e,t,n,r)}finally{$=o,xr.transition=i}}function Hu(e,t,n,r){if(ss){var o=Al(e,t,n,r);if(o===null)ka(e,t,r,as,n),jd(e,r);else if(v1(o,e,t,n,r))r.stopPropagation();else if(jd(e,r),t&4&&-1<g1.indexOf(e)){for(;o!==null;){var i=ei(o);if(i!==null&&lm(i),i=Al(e,t,n,r),i===null&&ka(e,t,r,as,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else ka(e,t,r,null,n)}}var as=null;function Al(e,t,n,r){if(as=null,e=zu(r),e=An(e),e!==null)if(t=Wn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=em(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return as=e,null}function pm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(a1()){case Uu:return 1;case om:return 4;case os:case l1:return 16;case im:return 536870912;default:return 16}default:return 16}}var en=null,Ku=null,Vi=null;function hm(){if(Vi)return Vi;var e,t=Ku,n=t.length,r,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Vi=o.slice(e,1<r?1-r:void 0)}function Bi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vi(){return!0}function Md(){return!1}function Ze(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?vi:Md,this.isPropagationStopped=Md,this}return re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),t}var Vr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gu=Ze(Vr),Jo=re({},Vr,{view:0,detail:0}),S1=Ze(Jo),va,ya,Xr,Fs=re({},Jo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yu,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!==Xr&&(Xr&&e.type==="mousemove"?(va=e.screenX-Xr.screenX,ya=e.screenY-Xr.screenY):ya=va=0,Xr=e),va)},movementY:function(e){return"movementY"in e?e.movementY:ya}}),Ld=Ze(Fs),T1=re({},Fs,{dataTransfer:0}),E1=Ze(T1),C1=re({},Jo,{relatedTarget:0}),xa=Ze(C1),P1=re({},Vr,{animationName:0,elapsedTime:0,pseudoElement:0}),k1=Ze(P1),b1=re({},Vr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),A1=Ze(b1),N1=re({},Vr,{data:0}),Od=Ze(N1),R1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j1={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"},D1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=D1[e])?!!t[e]:!1}function Yu(){return M1}var L1=re({},Jo,{key:function(e){if(e.key){var t=R1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yu,charCode:function(e){return e.type==="keypress"?Bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O1=Ze(L1),_1=re({},Fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_d=Ze(_1),I1=re({},Jo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yu}),F1=Ze(I1),V1=re({},Vr,{propertyName:0,elapsedTime:0,pseudoElement:0}),B1=Ze(V1),z1=re({},Fs,{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}),U1=Ze(z1),$1=[9,13,27,32],Xu=It&&"CompositionEvent"in window,ho=null;It&&"documentMode"in document&&(ho=document.documentMode);var W1=It&&"TextEvent"in window&&!ho,mm=It&&(!Xu||ho&&8<ho&&11>=ho),Id=String.fromCharCode(32),Fd=!1;function gm(e,t){switch(e){case"keyup":return $1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function H1(e,t){switch(e){case"compositionend":return vm(t);case"keypress":return t.which!==32?null:(Fd=!0,Id);case"textInput":return e=t.data,e===Id&&Fd?null:e;default:return null}}function K1(e,t){if(tr)return e==="compositionend"||!Xu&&gm(e,t)?(e=hm(),Vi=Ku=en=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return mm&&t.locale!=="ko"?null:t.data;default:return null}}var G1={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 Vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!G1[e.type]:t==="textarea"}function ym(e,t,n,r){Xh(r),t=ls(t,"onChange"),0<t.length&&(n=new Gu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var mo=null,jo=null;function Y1(e){Nm(e,0)}function Vs(e){var t=or(e);if(Uh(t))return e}function X1(e,t){if(e==="change")return t}var xm=!1;if(It){var wa;if(It){var Sa="oninput"in document;if(!Sa){var Bd=document.createElement("div");Bd.setAttribute("oninput","return;"),Sa=typeof Bd.oninput=="function"}wa=Sa}else wa=!1;xm=wa&&(!document.documentMode||9<document.documentMode)}function zd(){mo&&(mo.detachEvent("onpropertychange",wm),jo=mo=null)}function wm(e){if(e.propertyName==="value"&&Vs(jo)){var t=[];ym(t,jo,e,zu(e)),Jh(Y1,t)}}function Q1(e,t,n){e==="focusin"?(zd(),mo=t,jo=n,mo.attachEvent("onpropertychange",wm)):e==="focusout"&&zd()}function q1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vs(jo)}function Z1(e,t){if(e==="click")return Vs(t)}function J1(e,t){if(e==="input"||e==="change")return Vs(t)}function ew(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:ew;function Do(e,t){if(mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!cl.call(t,o)||!mt(e[o],t[o]))return!1}return!0}function Ud(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $d(e,t){var n=Ud(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ud(n)}}function Sm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tm(){for(var e=window,t=ts();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ts(e.document)}return t}function Qu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tw(e){var t=Tm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sm(n.ownerDocument.documentElement,n)){if(r!==null&&Qu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=$d(n,i);var s=$d(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var nw=It&&"documentMode"in document&&11>=document.documentMode,nr=null,Nl=null,go=null,Rl=!1;function Wd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rl||nr==null||nr!==ts(r)||(r=nr,"selectionStart"in r&&Qu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),go&&Do(go,r)||(go=r,r=ls(Nl,"onSelect"),0<r.length&&(t=new Gu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nr)))}function yi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var rr={animationend:yi("Animation","AnimationEnd"),animationiteration:yi("Animation","AnimationIteration"),animationstart:yi("Animation","AnimationStart"),transitionend:yi("Transition","TransitionEnd")},Ta={},Em={};It&&(Em=document.createElement("div").style,"AnimationEvent"in window||(delete rr.animationend.animation,delete rr.animationiteration.animation,delete rr.animationstart.animation),"TransitionEvent"in window||delete rr.transitionend.transition);function Bs(e){if(Ta[e])return Ta[e];if(!rr[e])return e;var t=rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Em)return Ta[e]=t[n];return e}var Cm=Bs("animationend"),Pm=Bs("animationiteration"),km=Bs("animationstart"),bm=Bs("transitionend"),Am=new Map,Hd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vn(e,t){Am.set(e,t),$n(t,[e])}for(var Ea=0;Ea<Hd.length;Ea++){var Ca=Hd[Ea],rw=Ca.toLowerCase(),ow=Ca[0].toUpperCase()+Ca.slice(1);vn(rw,"on"+ow)}vn(Cm,"onAnimationEnd");vn(Pm,"onAnimationIteration");vn(km,"onAnimationStart");vn("dblclick","onDoubleClick");vn("focusin","onFocus");vn("focusout","onBlur");vn(bm,"onTransitionEnd");kr("onMouseEnter",["mouseout","mouseover"]);kr("onMouseLeave",["mouseout","mouseover"]);kr("onPointerEnter",["pointerout","pointerover"]);kr("onPointerLeave",["pointerout","pointerover"]);$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$n("onBeforeInput",["compositionend","keypress","textInput","paste"]);$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ao="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(" "),iw=new Set("cancel close invalid load scroll toggle".split(" ").concat(ao));function Kd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,r1(r,t,void 0,e),e.currentTarget=null}function Nm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Kd(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Kd(o,a,u),i=l}}}if(rs)throw e=Pl,rs=!1,Pl=null,e}function Y(e,t){var n=t[Ol];n===void 0&&(n=t[Ol]=new Set);var r=e+"__bubble";n.has(r)||(Rm(t,e,2,!1),n.add(r))}function Pa(e,t,n){var r=0;t&&(r|=4),Rm(n,e,r,t)}var xi="_reactListening"+Math.random().toString(36).slice(2);function Mo(e){if(!e[xi]){e[xi]=!0,Ih.forEach(function(n){n!=="selectionchange"&&(iw.has(n)||Pa(n,!1,e),Pa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xi]||(t[xi]=!0,Pa("selectionchange",!1,t))}}function Rm(e,t,n,r){switch(pm(t)){case 1:var o=x1;break;case 4:o=w1;break;default:o=Hu}n=o.bind(null,t,n,e),o=void 0,!Cl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ka(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=An(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}Jh(function(){var u=i,c=zu(n),d=[];e:{var f=Am.get(e);if(f!==void 0){var y=Gu,S=e;switch(e){case"keypress":if(Bi(n)===0)break e;case"keydown":case"keyup":y=O1;break;case"focusin":S="focus",y=xa;break;case"focusout":S="blur",y=xa;break;case"beforeblur":case"afterblur":y=xa;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=E1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=F1;break;case Cm:case Pm:case km:y=k1;break;case bm:y=B1;break;case"scroll":y=S1;break;case"wheel":y=U1;break;case"copy":case"cut":case"paste":y=A1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=_d}var g=(t&4)!==0,w=!g&&e==="scroll",p=g?f!==null?f+"Capture":null:f;g=[];for(var m=u,x;m!==null;){x=m;var T=x.stateNode;if(x.tag===5&&T!==null&&(x=T,p!==null&&(T=bo(m,p),T!=null&&g.push(Lo(m,T,x)))),w)break;m=m.return}0<g.length&&(f=new y(f,S,null,n,c),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&n!==Tl&&(S=n.relatedTarget||n.fromElement)&&(An(S)||S[Ft]))break e;if((y||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,y?(S=n.relatedTarget||n.toElement,y=u,S=S?An(S):null,S!==null&&(w=Wn(S),S!==w||S.tag!==5&&S.tag!==6)&&(S=null)):(y=null,S=u),y!==S)){if(g=Ld,T="onMouseLeave",p="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=_d,T="onPointerLeave",p="onPointerEnter",m="pointer"),w=y==null?f:or(y),x=S==null?f:or(S),f=new g(T,m+"leave",y,n,c),f.target=w,f.relatedTarget=x,T=null,An(c)===u&&(g=new g(p,m+"enter",S,n,c),g.target=x,g.relatedTarget=w,T=g),w=T,y&&S)t:{for(g=y,p=S,m=0,x=g;x;x=Yn(x))m++;for(x=0,T=p;T;T=Yn(T))x++;for(;0<m-x;)g=Yn(g),m--;for(;0<x-m;)p=Yn(p),x--;for(;m--;){if(g===p||p!==null&&g===p.alternate)break t;g=Yn(g),p=Yn(p)}g=null}else g=null;y!==null&&Gd(d,f,y,g,!1),S!==null&&w!==null&&Gd(d,w,S,g,!0)}}e:{if(f=u?or(u):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var E=X1;else if(Vd(f))if(xm)E=J1;else{E=q1;var P=Q1}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=Z1);if(E&&(E=E(e,u))){ym(d,E,n,c);break e}P&&P(e,f,u),e==="focusout"&&(P=f._wrapperState)&&P.controlled&&f.type==="number"&&vl(f,"number",f.value)}switch(P=u?or(u):window,e){case"focusin":(Vd(P)||P.contentEditable==="true")&&(nr=P,Nl=u,go=null);break;case"focusout":go=Nl=nr=null;break;case"mousedown":Rl=!0;break;case"contextmenu":case"mouseup":case"dragend":Rl=!1,Wd(d,n,c);break;case"selectionchange":if(nw)break;case"keydown":case"keyup":Wd(d,n,c)}var C;if(Xu)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else tr?gm(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(mm&&n.locale!=="ko"&&(tr||k!=="onCompositionStart"?k==="onCompositionEnd"&&tr&&(C=hm()):(en=c,Ku="value"in en?en.value:en.textContent,tr=!0)),P=ls(u,k),0<P.length&&(k=new Od(k,e,null,n,c),d.push({event:k,listeners:P}),C?k.data=C:(C=vm(n),C!==null&&(k.data=C)))),(C=W1?H1(e,n):K1(e,n))&&(u=ls(u,"onBeforeInput"),0<u.length&&(c=new Od("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=C))}Nm(d,t)})}function Lo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ls(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=bo(e,n),i!=null&&r.unshift(Lo(e,i,o)),i=bo(e,t),i!=null&&r.push(Lo(e,i,o))),e=e.return}return r}function Yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Gd(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=bo(n,i),l!=null&&s.unshift(Lo(n,l,a))):o||(l=bo(n,i),l!=null&&s.push(Lo(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var sw=/\r\n?/g,aw=/\u0000|\uFFFD/g;function Yd(e){return(typeof e=="string"?e:""+e).replace(sw,`
`).replace(aw,"")}function wi(e,t,n){if(t=Yd(t),Yd(e)!==t&&n)throw Error(b(425))}function us(){}var jl=null,Dl=null;function Ml(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ll=typeof setTimeout=="function"?setTimeout:void 0,lw=typeof clearTimeout=="function"?clearTimeout:void 0,Xd=typeof Promise=="function"?Promise:void 0,uw=typeof queueMicrotask=="function"?queueMicrotask:typeof Xd<"u"?function(e){return Xd.resolve(null).then(e).catch(cw)}:Ll;function cw(e){setTimeout(function(){throw e})}function ba(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ro(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ro(t)}function an(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Qd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Br=Math.random().toString(36).slice(2),St="__reactFiber$"+Br,Oo="__reactProps$"+Br,Ft="__reactContainer$"+Br,Ol="__reactEvents$"+Br,dw="__reactListeners$"+Br,fw="__reactHandles$"+Br;function An(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ft]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Qd(e);e!==null;){if(n=e[St])return n;e=Qd(e)}return t}e=n,n=e.parentNode}return null}function ei(e){return e=e[St]||e[Ft],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function or(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function zs(e){return e[Oo]||null}var _l=[],ir=-1;function yn(e){return{current:e}}function X(e){0>ir||(e.current=_l[ir],_l[ir]=null,ir--)}function K(e,t){ir++,_l[ir]=e.current,e.current=t}var hn={},Re=yn(hn),ze=yn(!1),_n=hn;function br(e,t){var n=e.type.contextTypes;if(!n)return hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ue(e){return e=e.childContextTypes,e!=null}function cs(){X(ze),X(Re)}function qd(e,t,n){if(Re.current!==hn)throw Error(b(168));K(Re,t),K(ze,n)}function jm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,Qx(e)||"Unknown",o));return re({},n,r)}function ds(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,_n=Re.current,K(Re,e),K(ze,ze.current),!0}function Zd(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=jm(e,t,_n),r.__reactInternalMemoizedMergedChildContext=e,X(ze),X(Re),K(Re,e)):X(ze),K(ze,n)}var jt=null,Us=!1,Aa=!1;function Dm(e){jt===null?jt=[e]:jt.push(e)}function pw(e){Us=!0,Dm(e)}function xn(){if(!Aa&&jt!==null){Aa=!0;var e=0,t=$;try{var n=jt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jt=null,Us=!1}catch(o){throw jt!==null&&(jt=jt.slice(e+1)),rm(Uu,xn),o}finally{$=t,Aa=!1}}return null}var sr=[],ar=0,fs=null,ps=0,tt=[],nt=0,In=null,Dt=1,Mt="";function En(e,t){sr[ar++]=ps,sr[ar++]=fs,fs=e,ps=t}function Mm(e,t,n){tt[nt++]=Dt,tt[nt++]=Mt,tt[nt++]=In,In=e;var r=Dt;e=Mt;var o=32-pt(r)-1;r&=~(1<<o),n+=1;var i=32-pt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Dt=1<<32-pt(t)+o|n<<o|r,Mt=i+e}else Dt=1<<i|n<<o|r,Mt=e}function qu(e){e.return!==null&&(En(e,1),Mm(e,1,0))}function Zu(e){for(;e===fs;)fs=sr[--ar],sr[ar]=null,ps=sr[--ar],sr[ar]=null;for(;e===In;)In=tt[--nt],tt[nt]=null,Mt=tt[--nt],tt[nt]=null,Dt=tt[--nt],tt[nt]=null}var Ke=null,He=null,J=!1,dt=null;function Lm(e,t){var n=rt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Jd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ke=e,He=an(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ke=e,He=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=In!==null?{id:Dt,overflow:Mt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ke=e,He=null,!0):!1;default:return!1}}function Il(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fl(e){if(J){var t=He;if(t){var n=t;if(!Jd(e,t)){if(Il(e))throw Error(b(418));t=an(n.nextSibling);var r=Ke;t&&Jd(e,t)?Lm(r,n):(e.flags=e.flags&-4097|2,J=!1,Ke=e)}}else{if(Il(e))throw Error(b(418));e.flags=e.flags&-4097|2,J=!1,Ke=e}}}function ef(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ke=e}function Si(e){if(e!==Ke)return!1;if(!J)return ef(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ml(e.type,e.memoizedProps)),t&&(t=He)){if(Il(e))throw Om(),Error(b(418));for(;t;)Lm(e,t),t=an(t.nextSibling)}if(ef(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){He=an(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}He=null}}else He=Ke?an(e.stateNode.nextSibling):null;return!0}function Om(){for(var e=He;e;)e=an(e.nextSibling)}function Ar(){He=Ke=null,J=!1}function Ju(e){dt===null?dt=[e]:dt.push(e)}var hw=$t.ReactCurrentBatchConfig;function Qr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(b(309));var r=n.stateNode}if(!r)throw Error(b(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(b(284));if(!n._owner)throw Error(b(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(b(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function tf(e){var t=e._init;return t(e._payload)}function _m(e){function t(p,m){if(e){var x=p.deletions;x===null?(p.deletions=[m],p.flags|=16):x.push(m)}}function n(p,m){if(!e)return null;for(;m!==null;)t(p,m),m=m.sibling;return null}function r(p,m){for(p=new Map;m!==null;)m.key!==null?p.set(m.key,m):p.set(m.index,m),m=m.sibling;return p}function o(p,m){return p=dn(p,m),p.index=0,p.sibling=null,p}function i(p,m,x){return p.index=x,e?(x=p.alternate,x!==null?(x=x.index,x<m?(p.flags|=2,m):x):(p.flags|=2,m)):(p.flags|=1048576,m)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,m,x,T){return m===null||m.tag!==6?(m=Oa(x,p.mode,T),m.return=p,m):(m=o(m,x),m.return=p,m)}function l(p,m,x,T){var E=x.type;return E===er?c(p,m,x.props.children,T,x.key):m!==null&&(m.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Qt&&tf(E)===m.type)?(T=o(m,x.props),T.ref=Qr(p,m,x),T.return=p,T):(T=Gi(x.type,x.key,x.props,null,p.mode,T),T.ref=Qr(p,m,x),T.return=p,T)}function u(p,m,x,T){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=_a(x,p.mode,T),m.return=p,m):(m=o(m,x.children||[]),m.return=p,m)}function c(p,m,x,T,E){return m===null||m.tag!==7?(m=Mn(x,p.mode,T,E),m.return=p,m):(m=o(m,x),m.return=p,m)}function d(p,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Oa(""+m,p.mode,x),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case di:return x=Gi(m.type,m.key,m.props,null,p.mode,x),x.ref=Qr(p,null,m),x.return=p,x;case Jn:return m=_a(m,p.mode,x),m.return=p,m;case Qt:var T=m._init;return d(p,T(m._payload),x)}if(io(m)||Hr(m))return m=Mn(m,p.mode,x,null),m.return=p,m;Ti(p,m)}return null}function f(p,m,x,T){var E=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return E!==null?null:a(p,m,""+x,T);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case di:return x.key===E?l(p,m,x,T):null;case Jn:return x.key===E?u(p,m,x,T):null;case Qt:return E=x._init,f(p,m,E(x._payload),T)}if(io(x)||Hr(x))return E!==null?null:c(p,m,x,T,null);Ti(p,x)}return null}function y(p,m,x,T,E){if(typeof T=="string"&&T!==""||typeof T=="number")return p=p.get(x)||null,a(m,p,""+T,E);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case di:return p=p.get(T.key===null?x:T.key)||null,l(m,p,T,E);case Jn:return p=p.get(T.key===null?x:T.key)||null,u(m,p,T,E);case Qt:var P=T._init;return y(p,m,x,P(T._payload),E)}if(io(T)||Hr(T))return p=p.get(x)||null,c(m,p,T,E,null);Ti(m,T)}return null}function S(p,m,x,T){for(var E=null,P=null,C=m,k=m=0,D=null;C!==null&&k<x.length;k++){C.index>k?(D=C,C=null):D=C.sibling;var R=f(p,C,x[k],T);if(R===null){C===null&&(C=D);break}e&&C&&R.alternate===null&&t(p,C),m=i(R,m,k),P===null?E=R:P.sibling=R,P=R,C=D}if(k===x.length)return n(p,C),J&&En(p,k),E;if(C===null){for(;k<x.length;k++)C=d(p,x[k],T),C!==null&&(m=i(C,m,k),P===null?E=C:P.sibling=C,P=C);return J&&En(p,k),E}for(C=r(p,C);k<x.length;k++)D=y(C,p,k,x[k],T),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?k:D.key),m=i(D,m,k),P===null?E=D:P.sibling=D,P=D);return e&&C.forEach(function(U){return t(p,U)}),J&&En(p,k),E}function g(p,m,x,T){var E=Hr(x);if(typeof E!="function")throw Error(b(150));if(x=E.call(x),x==null)throw Error(b(151));for(var P=E=null,C=m,k=m=0,D=null,R=x.next();C!==null&&!R.done;k++,R=x.next()){C.index>k?(D=C,C=null):D=C.sibling;var U=f(p,C,R.value,T);if(U===null){C===null&&(C=D);break}e&&C&&U.alternate===null&&t(p,C),m=i(U,m,k),P===null?E=U:P.sibling=U,P=U,C=D}if(R.done)return n(p,C),J&&En(p,k),E;if(C===null){for(;!R.done;k++,R=x.next())R=d(p,R.value,T),R!==null&&(m=i(R,m,k),P===null?E=R:P.sibling=R,P=R);return J&&En(p,k),E}for(C=r(p,C);!R.done;k++,R=x.next())R=y(C,p,k,R.value,T),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?k:R.key),m=i(R,m,k),P===null?E=R:P.sibling=R,P=R);return e&&C.forEach(function(I){return t(p,I)}),J&&En(p,k),E}function w(p,m,x,T){if(typeof x=="object"&&x!==null&&x.type===er&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case di:e:{for(var E=x.key,P=m;P!==null;){if(P.key===E){if(E=x.type,E===er){if(P.tag===7){n(p,P.sibling),m=o(P,x.props.children),m.return=p,p=m;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Qt&&tf(E)===P.type){n(p,P.sibling),m=o(P,x.props),m.ref=Qr(p,P,x),m.return=p,p=m;break e}n(p,P);break}else t(p,P);P=P.sibling}x.type===er?(m=Mn(x.props.children,p.mode,T,x.key),m.return=p,p=m):(T=Gi(x.type,x.key,x.props,null,p.mode,T),T.ref=Qr(p,m,x),T.return=p,p=T)}return s(p);case Jn:e:{for(P=x.key;m!==null;){if(m.key===P)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(p,m.sibling),m=o(m,x.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=_a(x,p.mode,T),m.return=p,p=m}return s(p);case Qt:return P=x._init,w(p,m,P(x._payload),T)}if(io(x))return S(p,m,x,T);if(Hr(x))return g(p,m,x,T);Ti(p,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(p,m.sibling),m=o(m,x),m.return=p,p=m):(n(p,m),m=Oa(x,p.mode,T),m.return=p,p=m),s(p)):n(p,m)}return w}var Nr=_m(!0),Im=_m(!1),hs=yn(null),ms=null,lr=null,ec=null;function tc(){ec=lr=ms=null}function nc(e){var t=hs.current;X(hs),e._currentValue=t}function Vl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wr(e,t){ms=e,ec=lr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(ec!==e)if(e={context:e,memoizedValue:t,next:null},lr===null){if(ms===null)throw Error(b(308));lr=e,ms.dependencies={lanes:0,firstContext:e}}else lr=lr.next=e;return t}var Nn=null;function rc(e){Nn===null?Nn=[e]:Nn.push(e)}function Fm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,rc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vt(e,r)}function Vt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qt=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ln(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vt(e,n)}return o=r.interleaved,o===null?(t.next=t,rc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vt(e,n)}function zi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$u(e,n)}}function nf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gs(e,t,n,r){var o=e.updateQueue;qt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var S=e,g=a;switch(f=t,y=n,g.tag){case 1:if(S=g.payload,typeof S=="function"){d=S.call(y,d,f);break e}d=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=g.payload,f=typeof S=="function"?S.call(y,d,f):S,f==null)break e;d=re({},d,f);break e;case 2:qt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vn|=s,e.lanes=s,e.memoizedState=d}}function rf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(b(191,o));o.call(r)}}}var ti={},Ct=yn(ti),_o=yn(ti),Io=yn(ti);function Rn(e){if(e===ti)throw Error(b(174));return e}function ic(e,t){switch(K(Io,t),K(_o,e),K(Ct,ti),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xl(t,e)}X(Ct),K(Ct,t)}function Rr(){X(Ct),X(_o),X(Io)}function Bm(e){Rn(Io.current);var t=Rn(Ct.current),n=xl(t,e.type);t!==n&&(K(_o,e),K(Ct,n))}function sc(e){_o.current===e&&(X(Ct),X(_o))}var ee=yn(0);function vs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Na=[];function ac(){for(var e=0;e<Na.length;e++)Na[e]._workInProgressVersionPrimary=null;Na.length=0}var Ui=$t.ReactCurrentDispatcher,Ra=$t.ReactCurrentBatchConfig,Fn=0,ne=null,de=null,ge=null,ys=!1,vo=!1,Fo=0,mw=0;function Ce(){throw Error(b(321))}function lc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mt(e[n],t[n]))return!1;return!0}function uc(e,t,n,r,o,i){if(Fn=i,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ui.current=e===null||e.memoizedState===null?xw:ww,e=n(r,o),vo){i=0;do{if(vo=!1,Fo=0,25<=i)throw Error(b(301));i+=1,ge=de=null,t.updateQueue=null,Ui.current=Sw,e=n(r,o)}while(vo)}if(Ui.current=xs,t=de!==null&&de.next!==null,Fn=0,ge=de=ne=null,ys=!1,t)throw Error(b(300));return e}function cc(){var e=Fo!==0;return Fo=0,e}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?ne.memoizedState=ge=e:ge=ge.next=e,ge}function st(){if(de===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=de.next;var t=ge===null?ne.memoizedState:ge.next;if(t!==null)ge=t,de=e;else{if(e===null)throw Error(b(310));de=e,e={memoizedState:de.memoizedState,baseState:de.baseState,baseQueue:de.baseQueue,queue:de.queue,next:null},ge===null?ne.memoizedState=ge=e:ge=ge.next=e}return ge}function Vo(e,t){return typeof t=="function"?t(e):t}function ja(e){var t=st(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=de,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((Fn&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,ne.lanes|=c,Vn|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,mt(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ne.lanes|=i,Vn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Da(e){var t=st(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);mt(i,t.memoizedState)||(Be=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function zm(){}function Um(e,t){var n=ne,r=st(),o=t(),i=!mt(r.memoizedState,o);if(i&&(r.memoizedState=o,Be=!0),r=r.queue,dc(Hm.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,Bo(9,Wm.bind(null,n,r,o,t),void 0,null),ve===null)throw Error(b(349));Fn&30||$m(n,t,o)}return o}function $m(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wm(e,t,n,r){t.value=n,t.getSnapshot=r,Km(t)&&Gm(e)}function Hm(e,t,n){return n(function(){Km(t)&&Gm(e)})}function Km(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mt(e,n)}catch{return!0}}function Gm(e){var t=Vt(e,1);t!==null&&ht(t,e,1,-1)}function of(e){var t=wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:e},t.queue=e,e=e.dispatch=yw.bind(null,ne,e),[t.memoizedState,e]}function Bo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ym(){return st().memoizedState}function $i(e,t,n,r){var o=wt();ne.flags|=e,o.memoizedState=Bo(1|t,n,void 0,r===void 0?null:r)}function $s(e,t,n,r){var o=st();r=r===void 0?null:r;var i=void 0;if(de!==null){var s=de.memoizedState;if(i=s.destroy,r!==null&&lc(r,s.deps)){o.memoizedState=Bo(t,n,i,r);return}}ne.flags|=e,o.memoizedState=Bo(1|t,n,i,r)}function sf(e,t){return $i(8390656,8,e,t)}function dc(e,t){return $s(2048,8,e,t)}function Xm(e,t){return $s(4,2,e,t)}function Qm(e,t){return $s(4,4,e,t)}function qm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zm(e,t,n){return n=n!=null?n.concat([e]):null,$s(4,4,qm.bind(null,t,e),n)}function fc(){}function Jm(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function eg(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tg(e,t,n){return Fn&21?(mt(n,t)||(n=sm(),ne.lanes|=n,Vn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function gw(e,t){var n=$;$=n!==0&&4>n?n:4,e(!0);var r=Ra.transition;Ra.transition={};try{e(!1),t()}finally{$=n,Ra.transition=r}}function ng(){return st().memoizedState}function vw(e,t,n){var r=cn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rg(e))og(t,n);else if(n=Fm(e,t,n,r),n!==null){var o=Oe();ht(n,e,r,o),ig(n,t,r)}}function yw(e,t,n){var r=cn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rg(e))og(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,mt(a,s)){var l=t.interleaved;l===null?(o.next=o,rc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Fm(e,t,o,r),n!==null&&(o=Oe(),ht(n,e,r,o),ig(n,t,r))}}function rg(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function og(e,t){vo=ys=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ig(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$u(e,n)}}var xs={readContext:it,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},xw={readContext:it,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:sf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$i(4194308,4,qm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vw.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:of,useDebugValue:fc,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=of(!1),t=e[0];return e=gw.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,o=wt();if(J){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ve===null)throw Error(b(349));Fn&30||$m(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,sf(Hm.bind(null,r,i,e),[e]),r.flags|=2048,Bo(9,Wm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wt(),t=ve.identifierPrefix;if(J){var n=Mt,r=Dt;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=mw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ww={readContext:it,useCallback:Jm,useContext:it,useEffect:dc,useImperativeHandle:Zm,useInsertionEffect:Xm,useLayoutEffect:Qm,useMemo:eg,useReducer:ja,useRef:Ym,useState:function(){return ja(Vo)},useDebugValue:fc,useDeferredValue:function(e){var t=st();return tg(t,de.memoizedState,e)},useTransition:function(){var e=ja(Vo)[0],t=st().memoizedState;return[e,t]},useMutableSource:zm,useSyncExternalStore:Um,useId:ng,unstable_isNewReconciler:!1},Sw={readContext:it,useCallback:Jm,useContext:it,useEffect:dc,useImperativeHandle:Zm,useInsertionEffect:Xm,useLayoutEffect:Qm,useMemo:eg,useReducer:Da,useRef:Ym,useState:function(){return Da(Vo)},useDebugValue:fc,useDeferredValue:function(e){var t=st();return de===null?t.memoizedState=e:tg(t,de.memoizedState,e)},useTransition:function(){var e=Da(Vo)[0],t=st().memoizedState;return[e,t]},useMutableSource:zm,useSyncExternalStore:Um,useId:ng,unstable_isNewReconciler:!1};function ut(e,t){if(e&&e.defaultProps){t=re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Bl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={isMounted:function(e){return(e=e._reactInternals)?Wn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Oe(),o=cn(e),i=Lt(r,o);i.payload=t,n!=null&&(i.callback=n),t=ln(e,i,o),t!==null&&(ht(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Oe(),o=cn(e),i=Lt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ln(e,i,o),t!==null&&(ht(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Oe(),r=cn(e),o=Lt(n,r);o.tag=2,t!=null&&(o.callback=t),t=ln(e,o,r),t!==null&&(ht(t,e,r,n),zi(t,e,r))}};function af(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Do(n,r)||!Do(o,i):!0}function sg(e,t,n){var r=!1,o=hn,i=t.contextType;return typeof i=="object"&&i!==null?i=it(i):(o=Ue(t)?_n:Re.current,r=t.contextTypes,i=(r=r!=null)?br(e,o):hn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ws,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function lf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function zl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},oc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=it(i):(i=Ue(t)?_n:Re.current,o.context=br(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Bl(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ws.enqueueReplaceState(o,o.state,null),gs(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function jr(e,t){try{var n="",r=t;do n+=Xx(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ma(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ul(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tw=typeof WeakMap=="function"?WeakMap:Map;function ag(e,t,n){n=Lt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ss||(Ss=!0,Zl=r),Ul(e,t)},n}function lg(e,t,n){n=Lt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ul(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ul(e,t),typeof r!="function"&&(un===null?un=new Set([this]):un.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function uf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Tw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_w.bind(null,e,t,n),t.then(e,e))}function cf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function df(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Lt(-1,1),t.tag=2,ln(n,t,1))),n.lanes|=1),e)}var Ew=$t.ReactCurrentOwner,Be=!1;function Le(e,t,n,r){t.child=e===null?Im(t,null,n,r):Nr(t,e.child,n,r)}function ff(e,t,n,r,o){n=n.render;var i=t.ref;return wr(t,o),r=uc(e,t,n,r,i,o),n=cc(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bt(e,t,o)):(J&&n&&qu(t),t.flags|=1,Le(e,t,r,o),t.child)}function pf(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!wc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ug(e,t,i,r,o)):(e=Gi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Do,n(s,r)&&e.ref===t.ref)return Bt(e,t,o)}return t.flags|=1,e=dn(i,r),e.ref=t.ref,e.return=t,t.child=e}function ug(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Do(i,r)&&e.ref===t.ref)if(Be=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Be=!0);else return t.lanes=e.lanes,Bt(e,t,o)}return $l(e,t,n,r,o)}function cg(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(cr,We),We|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(cr,We),We|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,K(cr,We),We|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,K(cr,We),We|=r;return Le(e,t,o,n),t.child}function dg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $l(e,t,n,r,o){var i=Ue(n)?_n:Re.current;return i=br(t,i),wr(t,o),n=uc(e,t,n,r,i,o),r=cc(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bt(e,t,o)):(J&&r&&qu(t),t.flags|=1,Le(e,t,n,o),t.child)}function hf(e,t,n,r,o){if(Ue(n)){var i=!0;ds(t)}else i=!1;if(wr(t,o),t.stateNode===null)Wi(e,t),sg(t,n,r),zl(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=it(u):(u=Ue(n)?_n:Re.current,u=br(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&lf(t,s,r,u),qt=!1;var f=t.memoizedState;s.state=f,gs(t,r,s,o),l=t.memoizedState,a!==r||f!==l||ze.current||qt?(typeof c=="function"&&(Bl(t,n,c,r),l=t.memoizedState),(a=qt||af(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Vm(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:ut(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=it(l):(l=Ue(n)?_n:Re.current,l=br(t,l));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&lf(t,s,r,l),qt=!1,f=t.memoizedState,s.state=f,gs(t,r,s,o);var S=t.memoizedState;a!==d||f!==S||ze.current||qt?(typeof y=="function"&&(Bl(t,n,y,r),S=t.memoizedState),(u=qt||af(t,n,u,r,f,S,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,S,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,S,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),s.props=r,s.state=S,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Wl(e,t,n,r,i,o)}function Wl(e,t,n,r,o,i){dg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Zd(t,n,!1),Bt(e,t,i);r=t.stateNode,Ew.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Nr(t,e.child,null,i),t.child=Nr(t,null,a,i)):Le(e,t,a,i),t.memoizedState=r.state,o&&Zd(t,n,!0),t.child}function fg(e){var t=e.stateNode;t.pendingContext?qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qd(e,t.context,!1),ic(e,t.containerInfo)}function mf(e,t,n,r,o){return Ar(),Ju(o),t.flags|=256,Le(e,t,n,r),t.child}var Hl={dehydrated:null,treeContext:null,retryLane:0};function Kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function pg(e,t,n){var r=t.pendingProps,o=ee.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),K(ee,o&1),e===null)return Fl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Gs(s,r,0,null),e=Mn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Kl(n),t.memoizedState=Hl,e):pc(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Cw(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=dn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=dn(a,i):(i=Mn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Kl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Hl,r}return i=e.child,e=i.sibling,r=dn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function pc(e,t){return t=Gs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ei(e,t,n,r){return r!==null&&Ju(r),Nr(t,e.child,null,n),e=pc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cw(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Ma(Error(b(422))),Ei(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Gs({mode:"visible",children:r.children},o,0,null),i=Mn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Nr(t,e.child,null,s),t.child.memoizedState=Kl(s),t.memoizedState=Hl,i);if(!(t.mode&1))return Ei(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(b(419)),r=Ma(i,r,void 0),Ei(e,t,s,r)}if(a=(s&e.childLanes)!==0,Be||a){if(r=ve,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Vt(e,o),ht(r,e,o,-1))}return xc(),r=Ma(Error(b(421))),Ei(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Iw.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,He=an(o.nextSibling),Ke=t,J=!0,dt=null,e!==null&&(tt[nt++]=Dt,tt[nt++]=Mt,tt[nt++]=In,Dt=e.id,Mt=e.overflow,In=t),t=pc(t,r.children),t.flags|=4096,t)}function gf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vl(e.return,t,n)}function La(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function hg(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Le(e,t,r.children,n),r=ee.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gf(e,n,t);else if(e.tag===19)gf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(ee,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&vs(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),La(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&vs(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}La(t,!0,n,null,i);break;case"together":La(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,n=dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pw(e,t,n){switch(t.tag){case 3:fg(t),Ar();break;case 5:Bm(t);break;case 1:Ue(t.type)&&ds(t);break;case 4:ic(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;K(hs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(ee,ee.current&1),t.flags|=128,null):n&t.child.childLanes?pg(e,t,n):(K(ee,ee.current&1),e=Bt(e,t,n),e!==null?e.sibling:null);K(ee,ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hg(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(ee,ee.current),r)break;return null;case 22:case 23:return t.lanes=0,cg(e,t,n)}return Bt(e,t,n)}var mg,Gl,gg,vg;mg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Gl=function(){};gg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Rn(Ct.current);var i=null;switch(n){case"input":o=ml(e,o),r=ml(e,r),i=[];break;case"select":o=re({},o,{value:void 0}),r=re({},r,{value:void 0}),i=[];break;case"textarea":o=yl(e,o),r=yl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=us)}wl(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Po.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Po.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Y("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};vg=function(e,t,n,r){n!==r&&(t.flags|=4)};function qr(e,t){if(!J)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function kw(e,t,n){var r=t.pendingProps;switch(Zu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Ue(t.type)&&cs(),Pe(t),null;case 3:return r=t.stateNode,Rr(),X(ze),X(Re),ac(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Si(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dt!==null&&(tu(dt),dt=null))),Gl(e,t),Pe(t),null;case 5:sc(t);var o=Rn(Io.current);if(n=t.type,e!==null&&t.stateNode!=null)gg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(b(166));return Pe(t),null}if(e=Rn(Ct.current),Si(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[St]=t,r[Oo]=i,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(o=0;o<ao.length;o++)Y(ao[o],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":Cd(r,i),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Y("invalid",r);break;case"textarea":kd(r,i),Y("invalid",r)}wl(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&wi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&wi(r.textContent,a,e),o=["children",""+a]):Po.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Y("scroll",r)}switch(n){case"input":fi(r),Pd(r,i,!0);break;case"textarea":fi(r),bd(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=us)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Hh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[St]=t,e[Oo]=r,mg(e,t,!1,!1),t.stateNode=e;e:{switch(s=Sl(n,r),n){case"dialog":Y("cancel",e),Y("close",e),o=r;break;case"iframe":case"object":case"embed":Y("load",e),o=r;break;case"video":case"audio":for(o=0;o<ao.length;o++)Y(ao[o],e);o=r;break;case"source":Y("error",e),o=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),o=r;break;case"details":Y("toggle",e),o=r;break;case"input":Cd(e,r),o=ml(e,r),Y("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=re({},r,{value:void 0}),Y("invalid",e);break;case"textarea":kd(e,r),o=yl(e,r),Y("invalid",e);break;default:o=r}wl(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Yh(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Kh(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ko(e,l):typeof l=="number"&&ko(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Po.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Y("scroll",e):l!=null&&Iu(e,i,l,s))}switch(n){case"input":fi(e),Pd(e,r,!1);break;case"textarea":fi(e),bd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+pn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?gr(e,!!r.multiple,i,!1):r.defaultValue!=null&&gr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=us)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Pe(t),null;case 6:if(e&&t.stateNode!=null)vg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(b(166));if(n=Rn(Io.current),Rn(Ct.current),Si(t)){if(r=t.stateNode,n=t.memoizedProps,r[St]=t,(i=r.nodeValue!==n)&&(e=Ke,e!==null))switch(e.tag){case 3:wi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[St]=t,t.stateNode=r}return Pe(t),null;case 13:if(X(ee),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&He!==null&&t.mode&1&&!(t.flags&128))Om(),Ar(),t.flags|=98560,i=!1;else if(i=Si(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(b(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(b(317));i[St]=t}else Ar(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pe(t),i=!1}else dt!==null&&(tu(dt),dt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ee.current&1?pe===0&&(pe=3):xc())),t.updateQueue!==null&&(t.flags|=4),Pe(t),null);case 4:return Rr(),Gl(e,t),e===null&&Mo(t.stateNode.containerInfo),Pe(t),null;case 10:return nc(t.type._context),Pe(t),null;case 17:return Ue(t.type)&&cs(),Pe(t),null;case 19:if(X(ee),i=t.memoizedState,i===null)return Pe(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)qr(i,!1);else{if(pe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=vs(e),s!==null){for(t.flags|=128,qr(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(ee,ee.current&1|2),t.child}e=e.sibling}i.tail!==null&&le()>Dr&&(t.flags|=128,r=!0,qr(i,!1),t.lanes=4194304)}else{if(!r)if(e=vs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!J)return Pe(t),null}else 2*le()-i.renderingStartTime>Dr&&n!==1073741824&&(t.flags|=128,r=!0,qr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,n=ee.current,K(ee,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function bw(e,t){switch(Zu(t),t.tag){case 1:return Ue(t.type)&&cs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),X(ze),X(Re),ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sc(t),null;case 13:if(X(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(ee),null;case 4:return Rr(),null;case 10:return nc(t.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var Ci=!1,Ae=!1,Aw=typeof WeakSet=="function"?WeakSet:Set,N=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){se(e,t,r)}else n.current=null}function Yl(e,t,n){try{n()}catch(r){se(e,t,r)}}var vf=!1;function Nw(e,t){if(jl=ss,e=Tm(),Qu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dl={focusedElem:e,selectionRange:n},ss=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var g=S.memoizedProps,w=S.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:ut(t.type,g),w);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(T){se(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return S=vf,vf=!1,S}function yo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yl(t,n,i)}o=o.next}while(o!==r)}}function Hs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yg(e){var t=e.alternate;t!==null&&(e.alternate=null,yg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[Oo],delete t[Ol],delete t[dw],delete t[fw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xg(e){return e.tag===5||e.tag===3||e.tag===4}function yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ql(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=us));else if(r!==4&&(e=e.child,e!==null))for(Ql(e,t,n),e=e.sibling;e!==null;)Ql(e,t,n),e=e.sibling}function ql(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ql(e,t,n),e=e.sibling;e!==null;)ql(e,t,n),e=e.sibling}var ye=null,ct=!1;function Ht(e,t,n){for(n=n.child;n!==null;)wg(e,t,n),n=n.sibling}function wg(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Is,n)}catch{}switch(n.tag){case 5:Ae||ur(n,t);case 6:var r=ye,o=ct;ye=null,Ht(e,t,n),ye=r,ct=o,ye!==null&&(ct?(e=ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ye.removeChild(n.stateNode));break;case 18:ye!==null&&(ct?(e=ye,n=n.stateNode,e.nodeType===8?ba(e.parentNode,n):e.nodeType===1&&ba(e,n),Ro(e)):ba(ye,n.stateNode));break;case 4:r=ye,o=ct,ye=n.stateNode.containerInfo,ct=!0,Ht(e,t,n),ye=r,ct=o;break;case 0:case 11:case 14:case 15:if(!Ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Yl(n,t,s),o=o.next}while(o!==r)}Ht(e,t,n);break;case 1:if(!Ae&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){se(n,t,a)}Ht(e,t,n);break;case 21:Ht(e,t,n);break;case 22:n.mode&1?(Ae=(r=Ae)||n.memoizedState!==null,Ht(e,t,n),Ae=r):Ht(e,t,n);break;default:Ht(e,t,n)}}function xf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Aw),t.forEach(function(r){var o=Fw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function at(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:ye=a.stateNode,ct=!1;break e;case 3:ye=a.stateNode.containerInfo,ct=!0;break e;case 4:ye=a.stateNode.containerInfo,ct=!0;break e}a=a.return}if(ye===null)throw Error(b(160));wg(i,s,o),ye=null,ct=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){se(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sg(t,e),t=t.sibling}function Sg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(at(t,e),xt(e),r&4){try{yo(3,e,e.return),Hs(3,e)}catch(g){se(e,e.return,g)}try{yo(5,e,e.return)}catch(g){se(e,e.return,g)}}break;case 1:at(t,e),xt(e),r&512&&n!==null&&ur(n,n.return);break;case 5:if(at(t,e),xt(e),r&512&&n!==null&&ur(n,n.return),e.flags&32){var o=e.stateNode;try{ko(o,"")}catch(g){se(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&$h(o,i),Sl(a,s);var u=Sl(a,i);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?Yh(o,d):c==="dangerouslySetInnerHTML"?Kh(o,d):c==="children"?ko(o,d):Iu(o,c,d,u)}switch(a){case"input":gl(o,i);break;case"textarea":Wh(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?gr(o,!!i.multiple,y,!1):f!==!!i.multiple&&(i.defaultValue!=null?gr(o,!!i.multiple,i.defaultValue,!0):gr(o,!!i.multiple,i.multiple?[]:"",!1))}o[Oo]=i}catch(g){se(e,e.return,g)}}break;case 6:if(at(t,e),xt(e),r&4){if(e.stateNode===null)throw Error(b(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){se(e,e.return,g)}}break;case 3:if(at(t,e),xt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ro(t.containerInfo)}catch(g){se(e,e.return,g)}break;case 4:at(t,e),xt(e);break;case 13:at(t,e),xt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(gc=le())),r&4&&xf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ae=(u=Ae)||c,at(t,e),Ae=u):at(t,e),xt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(N=e,c=e.child;c!==null;){for(d=N=c;N!==null;){switch(f=N,y=f.child,f.tag){case 0:case 11:case 14:case 15:yo(4,f,f.return);break;case 1:ur(f,f.return);var S=f.stateNode;if(typeof S.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(g){se(r,n,g)}}break;case 5:ur(f,f.return);break;case 22:if(f.memoizedState!==null){Sf(d);continue}}y!==null?(y.return=f,N=y):Sf(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Gh("display",s))}catch(g){se(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){se(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:at(t,e),xt(e),r&4&&xf(e);break;case 21:break;default:at(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(xg(n)){var r=n;break e}n=n.return}throw Error(b(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ko(o,""),r.flags&=-33);var i=yf(e);ql(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=yf(e);Ql(e,a,s);break;default:throw Error(b(161))}}catch(l){se(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rw(e,t,n){N=e,Tg(e)}function Tg(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var o=N,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ci;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ae;a=Ci;var u=Ae;if(Ci=s,(Ae=l)&&!u)for(N=o;N!==null;)s=N,l=s.child,s.tag===22&&s.memoizedState!==null?Tf(o):l!==null?(l.return=s,N=l):Tf(o);for(;i!==null;)N=i,Tg(i),i=i.sibling;N=o,Ci=a,Ae=u}wf(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,N=i):wf(e)}}function wf(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ae||Hs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ae)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ut(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&rf(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}rf(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Ro(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}Ae||t.flags&512&&Xl(t)}catch(f){se(t,t.return,f)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function Sf(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function Tf(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hs(4,t)}catch(l){se(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){se(t,o,l)}}var i=t.return;try{Xl(t)}catch(l){se(t,i,l)}break;case 5:var s=t.return;try{Xl(t)}catch(l){se(t,s,l)}}}catch(l){se(t,t.return,l)}if(t===e){N=null;break}var a=t.sibling;if(a!==null){a.return=t.return,N=a;break}N=t.return}}var jw=Math.ceil,ws=$t.ReactCurrentDispatcher,hc=$t.ReactCurrentOwner,ot=$t.ReactCurrentBatchConfig,z=0,ve=null,ue=null,we=0,We=0,cr=yn(0),pe=0,zo=null,Vn=0,Ks=0,mc=0,xo=null,Ve=null,gc=0,Dr=1/0,Rt=null,Ss=!1,Zl=null,un=null,Pi=!1,tn=null,Ts=0,wo=0,Jl=null,Hi=-1,Ki=0;function Oe(){return z&6?le():Hi!==-1?Hi:Hi=le()}function cn(e){return e.mode&1?z&2&&we!==0?we&-we:hw.transition!==null?(Ki===0&&(Ki=sm()),Ki):(e=$,e!==0||(e=window.event,e=e===void 0?16:pm(e.type)),e):1}function ht(e,t,n,r){if(50<wo)throw wo=0,Jl=null,Error(b(185));Zo(e,n,r),(!(z&2)||e!==ve)&&(e===ve&&(!(z&2)&&(Ks|=n),pe===4&&Jt(e,we)),$e(e,r),n===1&&z===0&&!(t.mode&1)&&(Dr=le()+500,Us&&xn()))}function $e(e,t){var n=e.callbackNode;h1(e,t);var r=is(e,e===ve?we:0);if(r===0)n!==null&&Rd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Rd(n),t===1)e.tag===0?pw(Ef.bind(null,e)):Dm(Ef.bind(null,e)),uw(function(){!(z&6)&&xn()}),n=null;else{switch(am(r)){case 1:n=Uu;break;case 4:n=om;break;case 16:n=os;break;case 536870912:n=im;break;default:n=os}n=Rg(n,Eg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Eg(e,t){if(Hi=-1,Ki=0,z&6)throw Error(b(327));var n=e.callbackNode;if(Sr()&&e.callbackNode!==n)return null;var r=is(e,e===ve?we:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Es(e,r);else{t=r;var o=z;z|=2;var i=Pg();(ve!==e||we!==t)&&(Rt=null,Dr=le()+500,Dn(e,t));do try{Lw();break}catch(a){Cg(e,a)}while(1);tc(),ws.current=i,z=o,ue!==null?t=0:(ve=null,we=0,t=pe)}if(t!==0){if(t===2&&(o=kl(e),o!==0&&(r=o,t=eu(e,o))),t===1)throw n=zo,Dn(e,0),Jt(e,r),$e(e,le()),n;if(t===6)Jt(e,r);else{if(o=e.current.alternate,!(r&30)&&!Dw(o)&&(t=Es(e,r),t===2&&(i=kl(e),i!==0&&(r=i,t=eu(e,i))),t===1))throw n=zo,Dn(e,0),Jt(e,r),$e(e,le()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(b(345));case 2:Cn(e,Ve,Rt);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=gc+500-le(),10<t)){if(is(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Oe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ll(Cn.bind(null,e,Ve,Rt),t);break}Cn(e,Ve,Rt);break;case 4:if(Jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-pt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jw(r/1960))-r,10<r){e.timeoutHandle=Ll(Cn.bind(null,e,Ve,Rt),r);break}Cn(e,Ve,Rt);break;case 5:Cn(e,Ve,Rt);break;default:throw Error(b(329))}}}return $e(e,le()),e.callbackNode===n?Eg.bind(null,e):null}function eu(e,t){var n=xo;return e.current.memoizedState.isDehydrated&&(Dn(e,t).flags|=256),e=Es(e,t),e!==2&&(t=Ve,Ve=n,t!==null&&tu(t)),e}function tu(e){Ve===null?Ve=e:Ve.push.apply(Ve,e)}function Dw(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!mt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jt(e,t){for(t&=~mc,t&=~Ks,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pt(t),r=1<<n;e[n]=-1,t&=~r}}function Ef(e){if(z&6)throw Error(b(327));Sr();var t=is(e,0);if(!(t&1))return $e(e,le()),null;var n=Es(e,t);if(e.tag!==0&&n===2){var r=kl(e);r!==0&&(t=r,n=eu(e,r))}if(n===1)throw n=zo,Dn(e,0),Jt(e,t),$e(e,le()),n;if(n===6)throw Error(b(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cn(e,Ve,Rt),$e(e,le()),null}function vc(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(Dr=le()+500,Us&&xn())}}function Bn(e){tn!==null&&tn.tag===0&&!(z&6)&&Sr();var t=z;z|=1;var n=ot.transition,r=$;try{if(ot.transition=null,$=1,e)return e()}finally{$=r,ot.transition=n,z=t,!(z&6)&&xn()}}function yc(){We=cr.current,X(cr)}function Dn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,lw(n)),ue!==null)for(n=ue.return;n!==null;){var r=n;switch(Zu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&cs();break;case 3:Rr(),X(ze),X(Re),ac();break;case 5:sc(r);break;case 4:Rr();break;case 13:X(ee);break;case 19:X(ee);break;case 10:nc(r.type._context);break;case 22:case 23:yc()}n=n.return}if(ve=e,ue=e=dn(e.current,null),we=We=t,pe=0,zo=null,mc=Ks=Vn=0,Ve=xo=null,Nn!==null){for(t=0;t<Nn.length;t++)if(n=Nn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Nn=null}return e}function Cg(e,t){do{var n=ue;try{if(tc(),Ui.current=xs,ys){for(var r=ne.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ys=!1}if(Fn=0,ge=de=ne=null,vo=!1,Fo=0,hc.current=null,n===null||n.return===null){pe=1,zo=t,ue=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=we,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=cf(s);if(y!==null){y.flags&=-257,df(y,s,a,i,t),y.mode&1&&uf(i,u,t),t=y,l=u;var S=t.updateQueue;if(S===null){var g=new Set;g.add(l),t.updateQueue=g}else S.add(l);break e}else{if(!(t&1)){uf(i,u,t),xc();break e}l=Error(b(426))}}else if(J&&a.mode&1){var w=cf(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),df(w,s,a,i,t),Ju(jr(l,a));break e}}i=l=jr(l,a),pe!==4&&(pe=2),xo===null?xo=[i]:xo.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=ag(i,l,t);nf(i,p);break e;case 1:a=l;var m=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(un===null||!un.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var T=lg(i,a,t);nf(i,T);break e}}i=i.return}while(i!==null)}bg(n)}catch(E){t=E,ue===n&&n!==null&&(ue=n=n.return);continue}break}while(1)}function Pg(){var e=ws.current;return ws.current=xs,e===null?xs:e}function xc(){(pe===0||pe===3||pe===2)&&(pe=4),ve===null||!(Vn&268435455)&&!(Ks&268435455)||Jt(ve,we)}function Es(e,t){var n=z;z|=2;var r=Pg();(ve!==e||we!==t)&&(Rt=null,Dn(e,t));do try{Mw();break}catch(o){Cg(e,o)}while(1);if(tc(),z=n,ws.current=r,ue!==null)throw Error(b(261));return ve=null,we=0,pe}function Mw(){for(;ue!==null;)kg(ue)}function Lw(){for(;ue!==null&&!i1();)kg(ue)}function kg(e){var t=Ng(e.alternate,e,We);e.memoizedProps=e.pendingProps,t===null?bg(e):ue=t,hc.current=null}function bg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=bw(n,t),n!==null){n.flags&=32767,ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pe=6,ue=null;return}}else if(n=kw(n,t,We),n!==null){ue=n;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);pe===0&&(pe=5)}function Cn(e,t,n){var r=$,o=ot.transition;try{ot.transition=null,$=1,Ow(e,t,n,r)}finally{ot.transition=o,$=r}return null}function Ow(e,t,n,r){do Sr();while(tn!==null);if(z&6)throw Error(b(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(b(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(m1(e,i),e===ve&&(ue=ve=null,we=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pi||(Pi=!0,Rg(os,function(){return Sr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ot.transition,ot.transition=null;var s=$;$=1;var a=z;z|=4,hc.current=null,Nw(e,n),Sg(n,e),tw(Dl),ss=!!jl,Dl=jl=null,e.current=n,Rw(n),s1(),z=a,$=s,ot.transition=i}else e.current=n;if(Pi&&(Pi=!1,tn=e,Ts=o),i=e.pendingLanes,i===0&&(un=null),u1(n.stateNode),$e(e,le()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ss)throw Ss=!1,e=Zl,Zl=null,e;return Ts&1&&e.tag!==0&&Sr(),i=e.pendingLanes,i&1?e===Jl?wo++:(wo=0,Jl=e):wo=0,xn(),null}function Sr(){if(tn!==null){var e=am(Ts),t=ot.transition,n=$;try{if(ot.transition=null,$=16>e?16:e,tn===null)var r=!1;else{if(e=tn,tn=null,Ts=0,z&6)throw Error(b(331));var o=z;for(z|=4,N=e.current;N!==null;){var i=N,s=i.child;if(N.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(N=u;N!==null;){var c=N;switch(c.tag){case 0:case 11:case 15:yo(8,c,i)}var d=c.child;if(d!==null)d.return=c,N=d;else for(;N!==null;){c=N;var f=c.sibling,y=c.return;if(yg(c),c===u){N=null;break}if(f!==null){f.return=y,N=f;break}N=y}}}var S=i.alternate;if(S!==null){var g=S.child;if(g!==null){S.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}N=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,N=s;else e:for(;N!==null;){if(i=N,i.flags&2048)switch(i.tag){case 0:case 11:case 15:yo(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,N=p;break e}N=i.return}}var m=e.current;for(N=m;N!==null;){s=N;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,N=x;else e:for(s=m;N!==null;){if(a=N,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Hs(9,a)}}catch(E){se(a,a.return,E)}if(a===s){N=null;break e}var T=a.sibling;if(T!==null){T.return=a.return,N=T;break e}N=a.return}}if(z=o,xn(),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Is,e)}catch{}r=!0}return r}finally{$=n,ot.transition=t}}return!1}function Cf(e,t,n){t=jr(n,t),t=ag(e,t,1),e=ln(e,t,1),t=Oe(),e!==null&&(Zo(e,1,t),$e(e,t))}function se(e,t,n){if(e.tag===3)Cf(e,e,n);else for(;t!==null;){if(t.tag===3){Cf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(un===null||!un.has(r))){e=jr(n,e),e=lg(t,e,1),t=ln(t,e,1),e=Oe(),t!==null&&(Zo(t,1,e),$e(t,e));break}}t=t.return}}function _w(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,ve===e&&(we&n)===n&&(pe===4||pe===3&&(we&130023424)===we&&500>le()-gc?Dn(e,0):mc|=n),$e(e,t)}function Ag(e,t){t===0&&(e.mode&1?(t=mi,mi<<=1,!(mi&130023424)&&(mi=4194304)):t=1);var n=Oe();e=Vt(e,t),e!==null&&(Zo(e,t,n),$e(e,n))}function Iw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ag(e,n)}function Fw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Ag(e,n)}var Ng;Ng=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ze.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,Pw(e,t,n);Be=!!(e.flags&131072)}else Be=!1,J&&t.flags&1048576&&Mm(t,ps,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wi(e,t),e=t.pendingProps;var o=br(t,Re.current);wr(t,n),o=uc(null,t,r,e,o,n);var i=cc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(i=!0,ds(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,oc(t),o.updater=Ws,t.stateNode=o,o._reactInternals=t,zl(t,r,e,n),t=Wl(null,t,r,!0,i,n)):(t.tag=0,J&&i&&qu(t),Le(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Bw(r),e=ut(r,e),o){case 0:t=$l(null,t,r,e,n);break e;case 1:t=hf(null,t,r,e,n);break e;case 11:t=ff(null,t,r,e,n);break e;case 14:t=pf(null,t,r,ut(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),$l(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),hf(e,t,r,o,n);case 3:e:{if(fg(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Vm(e,t),gs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=jr(Error(b(423)),t),t=mf(e,t,r,n,o);break e}else if(r!==o){o=jr(Error(b(424)),t),t=mf(e,t,r,n,o);break e}else for(He=an(t.stateNode.containerInfo.firstChild),Ke=t,J=!0,dt=null,n=Im(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ar(),r===o){t=Bt(e,t,n);break e}Le(e,t,r,n)}t=t.child}return t;case 5:return Bm(t),e===null&&Fl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ml(r,o)?s=null:i!==null&&Ml(r,i)&&(t.flags|=32),dg(e,t),Le(e,t,s,n),t.child;case 6:return e===null&&Fl(t),null;case 13:return pg(e,t,n);case 4:return ic(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nr(t,null,r,n):Le(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),ff(e,t,r,o,n);case 7:return Le(e,t,t.pendingProps,n),t.child;case 8:return Le(e,t,t.pendingProps.children,n),t.child;case 12:return Le(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,K(hs,r._currentValue),r._currentValue=s,i!==null)if(mt(i.value,s)){if(i.children===o.children&&!ze.current){t=Bt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Lt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Vl(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(b(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Vl(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Le(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wr(t,n),o=it(o),r=r(o),t.flags|=1,Le(e,t,r,n),t.child;case 14:return r=t.type,o=ut(r,t.pendingProps),o=ut(r.type,o),pf(e,t,r,o,n);case 15:return ug(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),Wi(e,t),t.tag=1,Ue(r)?(e=!0,ds(t)):e=!1,wr(t,n),sg(t,r,o),zl(t,r,o,n),Wl(null,t,r,!0,e,n);case 19:return hg(e,t,n);case 22:return cg(e,t,n)}throw Error(b(156,t.tag))};function Rg(e,t){return rm(e,t)}function Vw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new Vw(e,t,n,r)}function wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bw(e){if(typeof e=="function")return wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vu)return 11;if(e===Bu)return 14}return 2}function dn(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")wc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case er:return Mn(n.children,o,i,t);case Fu:s=8,o|=8;break;case dl:return e=rt(12,n,t,o|2),e.elementType=dl,e.lanes=i,e;case fl:return e=rt(13,n,t,o),e.elementType=fl,e.lanes=i,e;case pl:return e=rt(19,n,t,o),e.elementType=pl,e.lanes=i,e;case Bh:return Gs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fh:s=10;break e;case Vh:s=9;break e;case Vu:s=11;break e;case Bu:s=14;break e;case Qt:s=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Mn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function Gs(e,t,n,r){return e=rt(22,e,r,t),e.elementType=Bh,e.lanes=n,e.stateNode={isHidden:!1},e}function Oa(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function _a(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ga(0),this.expirationTimes=ga(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ga(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sc(e,t,n,r,o,i,s,a,l){return e=new zw(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oc(i),e}function Uw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function jg(e){if(!e)return hn;e=e._reactInternals;e:{if(Wn(e)!==e||e.tag!==1)throw Error(b(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ue(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(b(171))}if(e.tag===1){var n=e.type;if(Ue(n))return jm(e,n,t)}return t}function Dg(e,t,n,r,o,i,s,a,l){return e=Sc(n,r,!0,e,o,i,s,a,l),e.context=jg(null),n=e.current,r=Oe(),o=cn(n),i=Lt(r,o),i.callback=t??null,ln(n,i,o),e.current.lanes=o,Zo(e,o,r),$e(e,r),e}function Ys(e,t,n,r){var o=t.current,i=Oe(),s=cn(o);return n=jg(n),t.context===null?t.context=n:t.pendingContext=n,t=Lt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ln(o,t,s),e!==null&&(ht(e,o,s,i),zi(e,o,s)),s}function Cs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Pf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Tc(e,t){Pf(e,t),(e=e.alternate)&&Pf(e,t)}function $w(){return null}var Mg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ec(e){this._internalRoot=e}Xs.prototype.render=Ec.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(b(409));Ys(e,t,null,null)};Xs.prototype.unmount=Ec.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bn(function(){Ys(null,e,null,null)}),t[Ft]=null}};function Xs(e){this._internalRoot=e}Xs.prototype.unstable_scheduleHydration=function(e){if(e){var t=cm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zt.length&&t!==0&&t<Zt[n].priority;n++);Zt.splice(n,0,e),n===0&&fm(e)}};function Cc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kf(){}function Ww(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Cs(s);i.call(u)}}var s=Dg(t,r,e,0,null,!1,!1,"",kf);return e._reactRootContainer=s,e[Ft]=s.current,Mo(e.nodeType===8?e.parentNode:e),Bn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Cs(l);a.call(u)}}var l=Sc(e,0,!1,null,null,!1,!1,"",kf);return e._reactRootContainer=l,e[Ft]=l.current,Mo(e.nodeType===8?e.parentNode:e),Bn(function(){Ys(t,l,n,r)}),l}function qs(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Cs(s);a.call(l)}}Ys(t,s,e,o)}else s=Ww(n,t,e,o,r);return Cs(s)}lm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=so(t.pendingLanes);n!==0&&($u(t,n|1),$e(t,le()),!(z&6)&&(Dr=le()+500,xn()))}break;case 13:Bn(function(){var r=Vt(e,1);if(r!==null){var o=Oe();ht(r,e,1,o)}}),Tc(e,1)}};Wu=function(e){if(e.tag===13){var t=Vt(e,134217728);if(t!==null){var n=Oe();ht(t,e,134217728,n)}Tc(e,134217728)}};um=function(e){if(e.tag===13){var t=cn(e),n=Vt(e,t);if(n!==null){var r=Oe();ht(n,e,t,r)}Tc(e,t)}};cm=function(){return $};dm=function(e,t){var n=$;try{return $=e,t()}finally{$=n}};El=function(e,t,n){switch(t){case"input":if(gl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=zs(r);if(!o)throw Error(b(90));Uh(r),gl(r,o)}}}break;case"textarea":Wh(e,n);break;case"select":t=n.value,t!=null&&gr(e,!!n.multiple,t,!1)}};qh=vc;Zh=Bn;var Hw={usingClientEntryPoint:!1,Events:[ei,or,zs,Xh,Qh,vc]},Zr={findFiberByHostInstance:An,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Kw={bundleType:Zr.bundleType,version:Zr.version,rendererPackageName:Zr.rendererPackageName,rendererConfig:Zr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$t.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tm(e),e===null?null:e.stateNode},findFiberByHostInstance:Zr.findFiberByHostInstance||$w,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ki.isDisabled&&ki.supportsFiber)try{Is=ki.inject(Kw),Et=ki}catch{}}qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hw;qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cc(t))throw Error(b(200));return Uw(e,t,null,n)};qe.createRoot=function(e,t){if(!Cc(e))throw Error(b(299));var n=!1,r="",o=Mg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Sc(e,1,!1,null,null,n,!1,r,o),e[Ft]=t.current,Mo(e.nodeType===8?e.parentNode:e),new Ec(t)};qe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(b(188)):(e=Object.keys(e).join(","),Error(b(268,e)));return e=tm(t),e=e===null?null:e.stateNode,e};qe.flushSync=function(e){return Bn(e)};qe.hydrate=function(e,t,n){if(!Qs(t))throw Error(b(200));return qs(null,e,t,!0,n)};qe.hydrateRoot=function(e,t,n){if(!Cc(e))throw Error(b(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Mg;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Dg(t,null,e,1,n??null,o,!1,i,s),e[Ft]=t.current,Mo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xs(t)};qe.render=function(e,t,n){if(!Qs(t))throw Error(b(200));return qs(null,e,t,!1,n)};qe.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(b(40));return e._reactRootContainer?(Bn(function(){qs(null,null,e,!1,function(){e._reactRootContainer=null,e[Ft]=null})}),!0):!1};qe.unstable_batchedUpdates=vc;qe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(b(200));if(e==null||e._reactInternals===void 0)throw Error(b(38));return qs(e,t,n,!1,r)};qe.version="18.3.1-next-f1338f8080-20240426";function Lg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lg)}catch(e){console.error(e)}}Lg(),Lh.exports=qe;var Zs=Lh.exports;const Gw=Ir(Zs);var bf=Zs;ul.createRoot=bf.createRoot,ul.hydrateRoot=bf.hydrateRoot;/**
* @remix-run/router v1.23.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uo.apply(this,arguments)}var nn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(nn||(nn={}));const Af="popstate";function Yw(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return nu("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Ps(o)}return Qw(t,n,null,e)}function ce(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Xw(){return Math.random().toString(36).substr(2,8)}function Nf(e,t){return{usr:e.state,key:e.key,idx:t}}function nu(e,t,n,r){return n===void 0&&(n=null),Uo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zr(t):t,{state:n,key:t&&t.key||r||Xw()})}function Ps(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function zr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Qw(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=nn.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Uo({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=nn.Pop;let w=c(),p=w==null?null:w-u;u=w,l&&l({action:a,location:g.location,delta:p})}function f(w,p){a=nn.Push;let m=nu(g.location,w,p);n&&n(m,w),u=c()+1;let x=Nf(m,u),T=g.createHref(m);try{s.pushState(x,"",T)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(T)}i&&l&&l({action:a,location:g.location,delta:1})}function y(w,p){a=nn.Replace;let m=nu(g.location,w,p);n&&n(m,w),u=c();let x=Nf(m,u),T=g.createHref(m);s.replaceState(x,"",T),i&&l&&l({action:a,location:g.location,delta:0})}function S(w){let p=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:Ps(w);return m=m.replace(/ $/,"%20"),ce(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let g={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Af,d),l=w,()=>{o.removeEventListener(Af,d),l=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let p=S(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:y,go(w){return s.go(w)}};return g}var Rf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Rf||(Rf={}));function qw(e,t,n){return n===void 0&&(n="/"),Zw(e,t,n,!1)}function Zw(e,t,n,r){let o=typeof t=="string"?zr(t):t,i=kc(o.pathname||"/",n);if(i==null)return null;let s=Og(e);Jw(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=cS(i);a=lS(s[l],u,r)}return a}function Og(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ce(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=fn([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(ce(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Og(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:sS(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of _g(i.path))o(i,s,l)}),t}function _g(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=_g(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Jw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const eS=/^:[\w-]+$/,tS=3,nS=2,rS=1,oS=10,iS=-2,jf=e=>e==="*";function sS(e,t){let n=e.split("/"),r=n.length;return n.some(jf)&&(r+=iS),t&&(r+=nS),n.filter(o=>!jf(o)).reduce((o,i)=>o+(eS.test(i)?tS:i===""?rS:oS),r)}function aS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function lS(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=Df({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Df({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(o,d.params),s.push({params:o,pathname:fn([i,d.pathname]),pathnameBase:mS(fn([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=fn([i,d.pathnameBase]))}return s}function Df(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=uS(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:y}=c;if(f==="*"){let g=a[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const S=a[d];return y&&!S?u[f]=void 0:u[f]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function uS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Pc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function cS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function kc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const dS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fS=e=>dS.test(e);function pS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?zr(e):e,i;if(n)if(fS(n))i=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),Pc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?i=Mf(n.substring(1),"/"):i=Mf(n,t)}else i=t;return{pathname:i,search:gS(r),hash:vS(o)}}function Mf(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ia(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function hS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ig(e,t){let n=hS(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Fg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=zr(e):(o=Uo({},e),ce(!o.pathname||!o.pathname.includes("?"),Ia("?","pathname","search",o)),ce(!o.pathname||!o.pathname.includes("#"),Ia("#","pathname","hash",o)),ce(!o.search||!o.search.includes("#"),Ia("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=pS(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const fn=e=>e.join("/").replace(/\/\/+/g,"/"),mS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vg=["post","put","patch","delete"];new Set(Vg);const xS=["get",...Vg];new Set(xS);/**
* React Router v6.30.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$o.apply(this,arguments)}const bc=v.createContext(null),wS=v.createContext(null),Hn=v.createContext(null),Js=v.createContext(null),Kn=v.createContext({outlet:null,matches:[],isDataRoute:!1}),Bg=v.createContext(null);function SS(e,t){let{relative:n}=t===void 0?{}:t;ni()||ce(!1);let{basename:r,navigator:o}=v.useContext(Hn),{hash:i,pathname:s,search:a}=Ug(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:fn([r,s])),o.createHref({pathname:l,search:a,hash:i})}function ni(){return v.useContext(Js)!=null}function Ur(){return ni()||ce(!1),v.useContext(Js).location}function zg(e){v.useContext(Hn).static||v.useLayoutEffect(e)}function ea(){let{isDataRoute:e}=v.useContext(Kn);return e?LS():TS()}function TS(){ni()||ce(!1);let e=v.useContext(bc),{basename:t,future:n,navigator:r}=v.useContext(Hn),{matches:o}=v.useContext(Kn),{pathname:i}=Ur(),s=JSON.stringify(Ig(o,n.v7_relativeSplatPath)),a=v.useRef(!1);return zg(()=>{a.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=Fg(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:fn([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}function Ug(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Hn),{matches:o}=v.useContext(Kn),{pathname:i}=Ur(),s=JSON.stringify(Ig(o,r.v7_relativeSplatPath));return v.useMemo(()=>Fg(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function ES(e,t){return CS(e,t)}function CS(e,t,n,r){ni()||ce(!1);let{navigator:o}=v.useContext(Hn),{matches:i}=v.useContext(Kn),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Ur(),c;if(t){var d;let w=typeof t=="string"?zr(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||ce(!1),c=w}else c=u;let f=c.pathname||"/",y=f;if(l!=="/"){let w=l.replace(/^\//,"").split("/");y="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=qw(e,{pathname:y}),g=NS(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:fn([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:fn([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&g?v.createElement(Js.Provider,{value:{location:$o({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:nn.Pop}},g):g}function PS(){let e=MS(),t=yS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,i)}const kS=v.createElement(PS,null);class bS extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Kn.Provider,{value:this.props.routeContext},v.createElement(Bg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function AS(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(bc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Kn.Provider,{value:t},r)}function NS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||ce(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:y}=n,S=d.route.loader&&f[d.route.id]===void 0&&(!y||y[d.route.id]===void 0);if(d.route.lazy||S){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let y,S=!1,g=null,w=null;n&&(y=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||kS,l&&(u<0&&f===0?(OS("route-fallback",!1),S=!0,w=null):u===f&&(S=!0,w=d.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,f+1)),m=()=>{let x;return y?x=g:S?x=w:d.route.Component?x=v.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,v.createElement(AS,{match:d,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(bS,{location:n.location,revalidation:n.revalidation,component:g,error:y,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var $g=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($g||{}),ks=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ks||{});function RS(e){let t=v.useContext(bc);return t||ce(!1),t}function jS(e){let t=v.useContext(wS);return t||ce(!1),t}function DS(e){let t=v.useContext(Kn);return t||ce(!1),t}function Wg(e){let t=DS(),n=t.matches[t.matches.length-1];return n.route.id||ce(!1),n.route.id}function MS(){var e;let t=v.useContext(Bg),n=jS(ks.UseRouteError),r=Wg(ks.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function LS(){let{router:e}=RS($g.UseNavigateStable),t=Wg(ks.UseNavigateStable),n=v.useRef(!1);return zg(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,$o({fromRouteId:t},i)))},[e,t])}const Lf={};function OS(e,t,n){!t&&!Lf[e]&&(Lf[e]=!0)}function _S(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function Yi(e){ce(!1)}function IS(e){let{basename:t="/",children:n=null,location:r,navigationType:o=nn.Pop,navigator:i,static:s=!1,future:a}=e;ni()&&ce(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:s,future:$o({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=zr(r));let{pathname:c="/",search:d="",hash:f="",state:y=null,key:S="default"}=r,g=v.useMemo(()=>{let w=kc(c,l);return w==null?null:{location:{pathname:w,search:d,hash:f,state:y,key:S},navigationType:o}},[l,c,d,f,y,S,o]);return g==null?null:v.createElement(Hn.Provider,{value:u},v.createElement(Js.Provider,{children:n,value:g}))}function FS(e){let{children:t,location:n}=e;return ES(ru(t),n)}new Promise(()=>{});function ru(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,ru(r.props.children,i));return}r.type!==Yi&&ce(!1),!r.props.index||!r.props.children||ce(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=ru(r.props.children,i)),n.push(s)}),n}/**
* React Router DOM v6.30.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ou.apply(this,arguments)}function VS(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function BS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zS(e,t){return e.button===0&&(!t||t==="_self")&&!BS(e)}const US=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],$S="6";try{window.__reactRouterVersion=$S}catch{}const WS="startTransition",Of=Dh[WS];function HS(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=Yw({window:o,v5Compat:!0}));let s=i.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&Of?Of(()=>l(d)):l(d)},[l,u]);return v.useLayoutEffect(()=>s.listen(c),[s,c]),v.useEffect(()=>_S(r),[r]),v.createElement(IS,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const KS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",GS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_f=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,f=VS(t,US),{basename:y}=v.useContext(Hn),S,g=!1;if(typeof u=="string"&&GS.test(u)&&(S=u,KS))try{let x=new URL(window.location.href),T=u.startsWith("//")?new URL(x.protocol+u):new URL(u),E=kc(T.pathname,y);T.origin===x.origin&&E!=null?u=E+T.search+T.hash:g=!0}catch{}let w=SS(u,{relative:o}),p=YS(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o,viewTransition:d});function m(x){r&&r(x),x.defaultPrevented||p(x)}return v.createElement("a",ou({},f,{href:S||w,onClick:g||i?r:m,ref:n,target:l}))});var If;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(If||(If={}));var Ff;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ff||(Ff={}));function YS(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=ea(),u=Ur(),c=Ug(e,{relative:s});return v.useCallback(d=>{if(zS(d,n)){d.preventDefault();let f=r!==void 0?r:Ps(u)===Ps(c);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[u,l,c,r,o,n,e,i,s,a])}function XS(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function ta(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const iu=e=>Array.isArray(e);function Hg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Wo(e){return typeof e=="string"||Array.isArray(e)}function Vf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ac(e,t,n,r){if(typeof t=="function"){const[o,i]=Vf(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Vf(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function na(e,t,n){const r=e.getProps();return Ac(r,t,n!==void 0?n:r.custom,e)}const Nc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rc=["initial",...Nc],ri=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gn=new Set(ri),Ot=e=>e*1e3,_t=e=>e/1e3,QS={type:"spring",stiffness:500,damping:25,restSpeed:10},qS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZS={type:"keyframes",duration:.8},JS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eT=(e,{keyframes:t})=>t.length>2?ZS:Gn.has(e)?e.startsWith("scale")?qS(t[1]):QS:JS;function jc(e,t){return e?e[t]||e.default||e:void 0}const tT={skipAnimations:!1,useManualTiming:!1},nT=e=>e!==null;function ra(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(nT),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Ge=e=>e;let Kg=Ge;function rT(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const y=d&&r?t:n;return c&&i.add(u),y.has(u)||y.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}const bi=["read","resolveKeyframes","update","preRender","render","postRender"],oT=40;function Gg(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=bi.reduce((p,m)=>(p[m]=rT(i),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,y=()=>{const p=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(p-o.timestamp,oT),1),o.timestamp=p,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:bi.reduce((p,m)=>{const x=s[m];return p[m]=(T,E=!1,P=!1)=>(n||S(),x.schedule(T,E,P)),p},{}),cancel:p=>{for(let m=0;m<bi.length;m++)s[bi[m]].cancel(p)},state:o,steps:s}}const{schedule:Q,cancel:mn,state:xe,steps:Fa}=Gg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0),Yg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,iT=1e-7,sT=12;function aT(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Yg(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>iT&&++a<sT);return s}function oi(e,t,n,r){if(e===t&&n===r)return Ge;const o=i=>aT(i,0,1,e,n);return i=>i===0||i===1?i:Yg(o(i),t,r)}const Xg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qg=e=>t=>1-e(1-t),qg=oi(.33,1.53,.69,.99),Dc=Qg(qg),Zg=Xg(Dc),Jg=e=>(e*=2)<1?.5*Dc(e):.5*(2-Math.pow(2,-10*(e-1))),Mc=e=>1-Math.sin(Math.acos(e)),ev=Qg(Mc),tv=Xg(Mc),nv=e=>/^0[^.\s]+$/u.test(e);function lT(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nv(e):!0}const rv=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ov=e=>t=>typeof t=="string"&&t.startsWith(e),iv=ov("--"),uT=ov("var(--"),Lc=e=>uT(e)?cT.test(e.split("/*")[0].trim()):!1,cT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fT(e){const t=dT.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function sv(e,t,n=1){const[r,o]=fT(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return rv(s)?parseFloat(s):s}return Lc(o)?sv(o,t,n+1):o}const zt=(e,t,n)=>n>t?t:n<e?e:n,$r={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ho={...$r,transform:e=>zt(0,1,e)},Ai={...$r,default:1},ii=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yt=ii("deg"),Pt=ii("%"),M=ii("px"),pT=ii("vh"),hT=ii("vw"),Bf={...Pt,parse:e=>Pt.parse(e)/100,transform:e=>Pt.transform(e*100)},mT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),zf=e=>e===$r||e===M,Uf=(e,t)=>parseFloat(e.split(", ")[t]),$f=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Uf(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Uf(i[1],e):0}},gT=new Set(["x","y","z"]),vT=ri.filter(e=>!gT.has(e));function yT(e){const t=[];return vT.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:$f(4,13),y:$f(5,14)};Mr.translateX=Mr.x;Mr.translateY=Mr.y;const av=e=>t=>t.test(e),xT={test:e=>e==="auto",parse:e=>e},lv=[$r,M,Pt,Yt,hT,pT,xT],Wf=e=>lv.find(av(e)),Ln=new Set;let su=!1,au=!1;function uv(){if(au){const e=Array.from(Ln).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=yT(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}au=!1,su=!1,Ln.forEach(e=>e.complete()),Ln.clear()}function cv(){Ln.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(au=!0)})}function wT(){cv(),uv()}class Oc{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ln.add(this),su||(su=!0,Q.read(cv),Q.resolveKeyframes(uv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const s=o==null?void 0:o.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ln.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ln.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const So=e=>Math.round(e*1e5)/1e5,_c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ST(e){return e==null}const TT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ic=(e,t)=>n=>!!(typeof n=="string"&&TT.test(n)&&n.startsWith(e)||t&&!ST(n)&&Object.prototype.hasOwnProperty.call(n,t)),dv=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(_c);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ET=e=>zt(0,255,e),Va={...$r,transform:e=>Math.round(ET(e))},jn={test:Ic("rgb","red"),parse:dv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Va.transform(e)+", "+Va.transform(t)+", "+Va.transform(n)+", "+So(Ho.transform(r))+")"};function CT(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const lu={test:Ic("#"),parse:CT,transform:jn.transform},dr={test:Ic("hsl","hue"),parse:dv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Pt.transform(So(t))+", "+Pt.transform(So(n))+", "+So(Ho.transform(r))+")"},ke={test:e=>jn.test(e)||lu.test(e)||dr.test(e),parse:e=>jn.test(e)?jn.parse(e):dr.test(e)?dr.parse(e):lu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?jn.transform(e):dr.transform(e)},PT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kT(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(_c))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(PT))===null||n===void 0?void 0:n.length)||0)>0}const fv="number",pv="color",bT="var",AT="var(",Hf="${}",NT=/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 Ko(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(NT,l=>(ke.test(l)?(r.color.push(i),o.push(pv),n.push(ke.parse(l))):l.startsWith(AT)?(r.var.push(i),o.push(bT),n.push(l)):(r.number.push(i),o.push(fv),n.push(parseFloat(l))),++i,Hf)).split(Hf);return{values:n,split:a,indexes:r,types:o}}function hv(e){return Ko(e).values}function mv(e){const{split:t,types:n}=Ko(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===fv?i+=So(o[s]):a===pv?i+=ke.transform(o[s]):i+=o[s]}return i}}const RT=e=>typeof e=="number"?0:e;function jT(e){const t=hv(e);return mv(e)(t.map(RT))}const gn={test:kT,parse:hv,createTransformer:mv,getAnimatableNone:jT},DT=new Set(["brightness","contrast","saturate","opacity"]);function MT(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(_c)||[];if(!r)return e;const o=n.replace(r,"");let i=DT.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const LT=/\b([a-z-]*)\(.*?\)/gu,uu={...gn,getAnimatableNone:e=>{const t=e.match(LT);return t?t.map(MT).join(" "):e}},OT={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,backgroundPositionX:M,backgroundPositionY:M},_T={rotate:Yt,rotateX:Yt,rotateY:Yt,rotateZ:Yt,scale:Ai,scaleX:Ai,scaleY:Ai,scaleZ:Ai,skew:Yt,skewX:Yt,skewY:Yt,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Ho,originX:Bf,originY:Bf,originZ:M},Kf={...$r,transform:Math.round},Fc={...OT,..._T,zIndex:Kf,size:M,fillOpacity:Ho,strokeOpacity:Ho,numOctaves:Kf},IT={...Fc,color:ke,backgroundColor:ke,outlineColor:ke,fill:ke,stroke:ke,borderColor:ke,borderTopColor:ke,borderRightColor:ke,borderBottomColor:ke,borderLeftColor:ke,filter:uu,WebkitFilter:uu},Vc=e=>IT[e];function gv(e,t){let n=Vc(e);return n!==uu&&(n=gn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const FT=new Set(["auto","none","0"]);function VT(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!FT.has(i)&&Ko(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=gv(n,o)}class vv extends Oc{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Lc(u))){const c=sv(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!mT.has(r)||t.length!==2)return;const[o,i]=t,s=Wf(o),a=Wf(i);if(s!==a)if(zf(s)&&zf(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)lT(t[o])&&r.push(o);r.length&&VT(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const s=o.length-1,a=o[s];o[s]=Mr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Bc(e){return typeof e=="function"}let Xi;function BT(){Xi=void 0}const kt={now:()=>(Xi===void 0&&kt.set(xe.isProcessing||tT.useManualTiming?xe.timestamp:performance.now()),Xi),set:e=>{Xi=e,queueMicrotask(BT)}},Gf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(gn.test(e)||e==="0")&&!e.startsWith("url("));function zT(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function UT(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Gf(o,t),a=Gf(i,t);return!s||!a?!1:zT(e)||(n==="spring"||Bc(n))&&r}const $T=40;class yv{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=kt.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$T?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&wT(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=kt.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!UT(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(ra(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Lr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xv=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=e(Lr(0,o-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function wv(e,t){return t?e*(1e3/t):0}const WT=5;function Sv(e,t,n){const r=Math.max(t-WT,0);return wv(n-e(r),t-r)}const ie={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},Ba=.001;function HT({duration:e=ie.duration,bounce:t=ie.bounce,velocity:n=ie.velocity,mass:r=ie.mass}){let o,i,s=1-t;s=zt(ie.minDamping,ie.maxDamping,s),e=zt(ie.minDuration,ie.maxDuration,_t(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,y=cu(u,s),S=Math.exp(-d);return Ba-f/y*S},i=u=>{const d=u*s*e,f=d*n+n,y=Math.pow(s,2)*Math.pow(u,2)*e,S=Math.exp(-d),g=cu(Math.pow(u,2),s);return(-o(u)+Ba>0?-1:1)*((f-y)*S)/g}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Ba+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=GT(o,i,a);if(e=Ot(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const KT=12;function GT(e,t,n){let r=n;for(let o=1;o<KT;o++)r=r-e(r)/t(r);return r}function cu(e,t){return e*Math.sqrt(1-t*t)}const du=2e4;function Tv(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<du;)t+=n,r=e.next(t);return t>=du?1/0:t}const YT=["duration","bounce"],XT=["stiffness","damping","mass"];function Yf(e,t){return t.some(n=>e[n]!==void 0)}function QT(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!Yf(e,XT)&&Yf(e,YT))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*zt(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:ie.mass,stiffness:o,damping:i}}else{const n=HT(e);t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function Ev(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=QT({...n,velocity:-_t(n.velocity||0)}),S=f||0,g=u/(2*Math.sqrt(l*c)),w=s-i,p=_t(Math.sqrt(l/c)),m=Math.abs(w)<5;r||(r=m?ie.restSpeed.granular:ie.restSpeed.default),o||(o=m?ie.restDelta.granular:ie.restDelta.default);let x;if(g<1){const E=cu(p,g);x=P=>{const C=Math.exp(-g*p*P);return s-C*((S+g*p*w)/E*Math.sin(E*P)+w*Math.cos(E*P))}}else if(g===1)x=E=>s-Math.exp(-p*E)*(w+(S+p*w)*E);else{const E=p*Math.sqrt(g*g-1);x=P=>{const C=Math.exp(-g*p*P),k=Math.min(E*P,300);return s-C*((S+g*p*w)*Math.sinh(k)+E*w*Math.cosh(k))/E}}const T={calculatedDuration:y&&d||null,next:E=>{const P=x(E);if(y)a.done=E>=d;else{let C=0;g<1&&(C=E===0?Ot(S):Sv(x,E,P));const k=Math.abs(C)<=r,D=Math.abs(s-P)<=o;a.done=k&&D}return a.value=a.done?s:P,a},toString:()=>{const E=Math.min(Tv(T),du),P=xv(C=>T.next(E*C).value,E,30);return E+"ms "+P}};return T}function Xf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=k=>a!==void 0&&k<a||l!==void 0&&k>l,S=k=>a===void 0?l:l===void 0||Math.abs(a-k)<Math.abs(l-k)?a:l;let g=n*t;const w=d+g,p=s===void 0?w:s(w);p!==w&&(g=p-d);const m=k=>-g*Math.exp(-k/r),x=k=>p+m(k),T=k=>{const D=m(k),R=x(k);f.done=Math.abs(D)<=u,f.value=f.done?p:R};let E,P;const C=k=>{y(f.value)&&(E=k,P=Ev({keyframes:[f.value,S(f.value)],velocity:Sv(x,k,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:k=>{let D=!1;return!P&&E===void 0&&(D=!0,T(k),C(k)),E!==void 0&&k>=E?P.next(k-E):(!D&&T(k),f)}}}const qT=oi(.42,0,1,1),ZT=oi(0,0,.58,1),Cv=oi(.42,0,.58,1),JT=e=>Array.isArray(e)&&typeof e[0]!="number",zc=e=>Array.isArray(e)&&typeof e[0]=="number",eE={linear:Ge,easeIn:qT,easeInOut:Cv,easeOut:ZT,circIn:Mc,circInOut:tv,circOut:ev,backIn:Dc,backInOut:Zg,backOut:qg,anticipate:Jg},Qf=e=>{if(zc(e)){Kg(e.length===4);const[t,n,r,o]=e;return oi(t,n,r,o)}else if(typeof e=="string")return eE[e];return e},tE=(e,t)=>n=>t(e(n)),si=(...e)=>e.reduce(tE),te=(e,t,n)=>e+(t-e)*n;function za(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nE({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=za(l,a,e+1/3),i=za(l,a,e),s=za(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function bs(e,t){return n=>n>0?t:e}const Ua=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},rE=[lu,jn,dr],oE=e=>rE.find(t=>t.test(e));function qf(e){const t=oE(e);if(!t)return!1;let n=t.parse(e);return t===dr&&(n=nE(n)),n}const Zf=(e,t)=>{const n=qf(e),r=qf(t);if(!n||!r)return bs(e,t);const o={...n};return i=>(o.red=Ua(n.red,r.red,i),o.green=Ua(n.green,r.green,i),o.blue=Ua(n.blue,r.blue,i),o.alpha=te(n.alpha,r.alpha,i),jn.transform(o))},fu=new Set(["none","hidden"]);function iE(e,t){return fu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sE(e,t){return n=>te(e,t,n)}function Uc(e){return typeof e=="number"?sE:typeof e=="string"?Lc(e)?bs:ke.test(e)?Zf:uE:Array.isArray(e)?Pv:typeof e=="object"?ke.test(e)?Zf:aE:bs}function Pv(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Uc(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function aE(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Uc(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function lE(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,o[s]++}return r}const uE=(e,t)=>{const n=gn.createTransformer(t),r=Ko(e),o=Ko(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?fu.has(e)&&!o.values.length||fu.has(t)&&!r.values.length?iE(e,t):si(Pv(lE(r,o),o.values),n):bs(e,t)};function kv(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?te(e,t,n):Uc(e)(e,t)}function cE(e,t,n){const r=[],o=n||kv,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Ge:t;a=si(l,a)}r.push(a)}return r}function dE(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Kg(i===t.length),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=cE(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const d=Lr(e[c],e[c+1],u);return s[c](d)};return n?u=>l(zt(e[0],e[i-1],u)):l}function fE(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Lr(0,t,r);e.push(te(n,1,o))}}function pE(e){const t=[0];return fE(t,e.length-1),t}function hE(e,t){return e.map(n=>n*t)}function mE(e,t){return e.map(()=>t||Cv).splice(0,e.length-1)}function As({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=JT(r)?r.map(Qf):Qf(r),i={done:!1,value:t[0]},s=hE(n&&n.length===t.length?n:pE(t),e),a=dE(s,t,{ease:Array.isArray(o)?o:mE(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const gE=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Q.update(t,!0),stop:()=>mn(t),now:()=>xe.isProcessing?xe.timestamp:kt.now()}},vE={decay:Xf,inertia:Xf,tween:As,keyframes:As,spring:Ev},yE=e=>e/100;class $c extends yv{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||Oc,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Bc(n)?n:vE[n]||As;let l,u;a!==As&&typeof t[0]!="number"&&(l=si(yE,kv(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Tv(c));const{calculatedDuration:d}=c,f=d+o,y=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:y,repeatType:S,repeatDelay:g,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),m=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,T=i;if(y){const k=Math.min(this.currentTime,c)/d;let D=Math.floor(k),R=k%1;!R&&k>=1&&(R=1),R===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(S==="reverse"?(R=1-R,g&&(R-=g/d)):S==="mirror"&&(T=s)),x=zt(0,1,R)*d}const E=m?{done:!1,value:l[0]}:T.next(x);a&&(E.value=a(E.value));let{done:P}=E;!m&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return C&&o!==void 0&&(E.value=ra(l,this.options,o)),w&&w(E.value),C&&this.finish(),E}get duration(){const{resolved:t}=this;return t?_t(t.calculatedDuration):0}get time(){return _t(this.currentTime)}set time(t){t=Ot(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 n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=_t(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=gE,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):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)}}const xE=new Set(["opacity","clipPath","filter","transform"]);function Wc(e){let t;return()=>(t===void 0&&(t=e()),t)}const wE={linearEasing:void 0};function SE(e,t){const n=Wc(e);return()=>{var r;return(r=wE[t])!==null&&r!==void 0?r:n()}}const Ns=SE(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function bv(e){return!!(typeof e=="function"&&Ns()||!e||typeof e=="string"&&(e in pu||Ns())||zc(e)||Array.isArray(e)&&e.every(bv))}const lo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lo([0,.65,.55,1]),circOut:lo([.55,0,1,.45]),backIn:lo([.31,.01,.66,-.59]),backOut:lo([.33,1.53,.69,.99])};function Av(e,t){if(e)return typeof e=="function"&&Ns()?xv(e,t):zc(e)?lo(e):Array.isArray(e)?e.map(n=>Av(n,t)||pu.easeOut):pu[e]}function TE(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Av(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Jf(e,t){e.timeline=t,e.onfinish=null}const EE=Wc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rs=10,CE=2e4;function PE(e){return Bc(e.type)||e.type==="spring"||!bv(e.ease)}function kE(e,t){const n=new $c({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<CE;)r=n.sample(i),o.push(r.value),i+=Rs;return{times:void 0,keyframes:o,duration:i-Rs,ease:"linear"}}const Nv={anticipate:Jg,backInOut:Zg,circInOut:tv};function bE(e){return e in Nv}class ep extends yv{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:i}=this.options;this.resolver=new vv(i,(s,a)=>this.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Ns()&&bE(s)&&(s=Nv[s]),PE(this.options)){const{onComplete:f,onUpdate:y,motionValue:S,element:g,...w}=this.options,p=kE(t,w);t=p.keyframes,t.length===1&&(t[1]=t[0]),o=p.duration,i=p.times,s=p.ease,a="keyframes"}const d=TE(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Jf(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(ra(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return _t(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return _t(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ot(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ge;const{animation:r}=n;Jf(r,t)}return Ge}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.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:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...y}=this.options,S=new $c({...y,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),g=Ot(this.time);u.setWithVelocity(S.sample(g-Rs).value,S.sample(g).value,Rs)}const{onStop:l}=this.options;l&&l(),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:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return EE()&&r&&xE.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const AE=Wc(()=>window.ScrollTimeline!==void 0);class NE{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>AE()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function RE({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Hc=(e,t,n,r={},o,i)=>s=>{const a=jc(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ot(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};RE(a)||(c={...c,...eT(e,c)}),c.duration&&(c.duration=Ot(c.duration)),c.repeatDelay&&(c.repeatDelay=Ot(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=ra(c.keyframes,a);if(f!==void 0)return Q.update(()=>{c.onUpdate(f),c.onComplete()}),new NE([])}return!i&&ep.supports(c)?new ep(c):new $c(c)},jE=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),DE=e=>iu(e)?e[e.length-1]||0:e;function Kc(e,t){e.indexOf(t)===-1&&e.push(t)}function Gc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yc{constructor(){this.subscriptions=[]}add(t){return Kc(this.subscriptions,t),()=>Gc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const tp=30,ME=e=>!isNaN(parseFloat(e));class LE{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=kt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=kt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ME(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yc);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=kt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>tp)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,tp);return wv(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Go(e,t){return new LE(e,t)}function OE(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Go(n))}function _E(e,t){const n=na(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=DE(i[s]);OE(e,s,a)}}const Xc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),IE="framerAppearId",Rv="data-"+Xc(IE);function jv(e){return e.props[Rv]}const Ne=e=>!!(e&&e.getVelocity);function FE(e){return!!(Ne(e)&&e.add)}function hu(e,t){const n=e.getValue("willChange");if(FE(n))return n.add(t)}function VE({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Dv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=l[d];if(y===void 0||c&&VE(c,d))continue;const S={delay:n,...jc(s||{},d)};let g=!1;if(window.MotionHandoffAnimation){const p=jv(e);if(p){const m=window.MotionHandoffAnimation(p,d,Q);m!==null&&(S.startTime=m,g=!0)}}hu(e,d),f.start(Hc(d,f,y,e.shouldReduceMotion&&Gn.has(d)?{type:!1}:S,e,g));const w=f.animation;w&&u.push(w)}return a&&Promise.all(u).then(()=>{Q.update(()=>{a&&_E(e,a)})}),u}function mu(e,t,n={}){var r;const o=na(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(Dv(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return BE(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function BE(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(zE).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(mu(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function zE(e,t){return e.sortNodePosition(t)}function UE(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>mu(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=mu(e,t,n);else{const o=typeof t=="function"?na(e,t,n.custom):t;r=Promise.all(Dv(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const $E=Rc.length;function Mv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Mv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<$E;n++){const r=Rc[n],o=e.props[r];(Wo(o)||o===!1)&&(t[r]=o)}return t}const WE=[...Nc].reverse(),HE=Nc.length;function KE(e){return t=>Promise.all(t.map(({animation:n,options:r})=>UE(e,n,r)))}function GE(e){let t=KE(e),n=np(),r=!0;const o=l=>(u,c)=>{var d;const f=na(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:y,transitionEnd:S,...g}=f;u={...u,...g,...S}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=Mv(e.parent)||{},d=[],f=new Set;let y={},S=1/0;for(let w=0;w<HE;w++){const p=WE[w],m=n[p],x=u[p]!==void 0?u[p]:c[p],T=Wo(x),E=p===l?m.isActive:null;E===!1&&(S=w);let P=x===c[p]&&x!==u[p]&&T;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),m.protectedKeys={...y},!m.isActive&&E===null||!x&&!m.prevProp||ta(x)||typeof x=="boolean")continue;const C=YE(m.prevProp,x);let k=C||p===l&&m.isActive&&!P&&T||w>S&&T,D=!1;const R=Array.isArray(x)?x:[x];let U=R.reduce(o(p),{});E===!1&&(U={});const{prevResolvedValues:I={}}=m,De={...I,...U},O=W=>{k=!0,f.has(W)&&(D=!0,f.delete(W)),m.needsAnimating[W]=!0;const A=e.getValue(W);A&&(A.liveStyle=!1)};for(const W in De){const A=U[W],j=I[W];if(y.hasOwnProperty(W))continue;let L=!1;iu(A)&&iu(j)?L=!Hg(A,j):L=A!==j,L?A!=null?O(W):f.add(W):A!==void 0&&f.has(W)?O(W):m.protectedKeys[W]=!0}m.prevProp=x,m.prevResolvedValues=U,m.isActive&&(y={...y,...U}),r&&e.blockInitialAnimation&&(k=!1),k&&(!(P&&C)||D)&&d.push(...R.map(W=>({animation:W,options:{type:p}})))}if(f.size){const w={};f.forEach(p=>{const m=e.getBaseTarget(p),x=e.getValue(p);x&&(x.liveStyle=!0),w[p]=m??null}),d.push({animation:w})}let g=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=np(),r=!0}}}function YE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Hg(t,e):!1}function Tn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function np(){return{animate:Tn(!0),whileInView:Tn(),whileHover:Tn(),whileTap:Tn(),whileDrag:Tn(),whileFocus:Tn(),exit:Tn()}}class wn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class XE extends wn{constructor(t){super(t),t.animationState||(t.animationState=GE(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ta(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let QE=0;class qE extends wn{constructor(){super(...arguments),this.id=QE++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ZE={animation:{Feature:XE},exit:{Feature:qE}},lt={x:!1,y:!1};function Lv(){return lt.x||lt.y}function JE(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);const i=(r=n==null?void 0:n[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Ov(e,t){const n=JE(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function rp(e){return t=>{t.pointerType==="touch"||Lv()||e(t)}}function eC(e,t,n={}){const[r,o,i]=Ov(e,n),s=rp(a=>{const{target:l}=a,u=t(a);if(!u||!l)return;const c=rp(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Qc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,uo=new WeakSet;function op(e){return t=>{t.key==="Enter"&&e(t)}}function $a(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const tC=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=op(()=>{if(uo.has(n))return;$a(n,"down");const o=op(()=>{$a(n,"up")}),i=()=>$a(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},nC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rC(e){return nC.has(e.tagName)||e.tabIndex!==-1}const _v=(e,t)=>t?e===t?!0:_v(e,t.parentElement):!1;function ip(e){return Qc(e)&&!Lv()}function oC(e,t,n={}){const[r,o,i]=Ov(e,n),s=a=>{const l=a.currentTarget;if(!ip(a)||uo.has(l))return;uo.add(l);const u=t(a),c=(y,S)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!ip(y)||!uo.has(l))&&(uo.delete(l),u&&u(y,{success:S}))},d=y=>{c(y,n.useGlobalTarget||_v(l,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{rC(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",u=>tC(u,o),o)}),i}function iC(e){return e==="x"||e==="y"?lt[e]?null:(lt[e]=!0,()=>{lt[e]=!1}):lt.x||lt.y?null:(lt.x=lt.y=!0,()=>{lt.x=lt.y=!1})}function ai(e){return{point:{x:e.pageX,y:e.pageY}}}const sC=e=>t=>Qc(t)&&e(t,ai(t));function Yo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function To(e,t,n,r){return Yo(e,t,sC(n),r)}const sp=(e,t)=>Math.abs(e-t);function aC(e,t){const n=sp(e.x,t.x),r=sp(e.y,t.y);return Math.sqrt(n**2+r**2)}class Iv{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ha(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=aC(d.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:S}=d,{timestamp:g}=xe;this.history.push({...S,timestamp:g});const{onStart:w,onMove:p}=this.handlers;f||(w&&w(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Wa(f,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Ha(d.type==="pointercancel"?this.lastMoveEventInfo:Wa(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,w),S&&S(d,w)},!Qc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=ai(t),a=Wa(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=xe;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Ha(a,this.history)),this.removeListeners=si(To(this.contextWindow,"pointermove",this.handlePointerMove),To(this.contextWindow,"pointerup",this.handlePointerUp),To(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),mn(this.updatePoint)}}function Wa(e,t){return t?{point:t(e.point)}:e}function ap(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ha({point:e},t){return{point:e,delta:ap(e,Fv(t)),offset:ap(e,lC(t)),velocity:uC(t,.1)}}function lC(e){return e[0]}function Fv(e){return e[e.length-1]}function uC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Fv(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ot(t)));)n--;if(!r)return{x:0,y:0};const i=_t(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function fr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Vv=1e-4,cC=1-Vv,dC=1+Vv,Bv=.01,fC=0-Bv,pC=0+Bv;function Xe(e){return e.max-e.min}function hC(e,t,n){return Math.abs(e-t)<=n}function lp(e,t,n,r=.5){e.origin=r,e.originPoint=te(t.min,t.max,e.origin),e.scale=Xe(n)/Xe(t),e.translate=te(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cC&&e.scale<=dC||isNaN(e.scale))&&(e.scale=1),(e.translate>=fC&&e.translate<=pC||isNaN(e.translate))&&(e.translate=0)}function Eo(e,t,n,r){lp(e.x,t.x,n.x,r?r.originX:void 0),lp(e.y,t.y,n.y,r?r.originY:void 0)}function up(e,t,n){e.min=n.min+t.min,e.max=e.min+Xe(t)}function mC(e,t,n){up(e.x,t.x,n.x),up(e.y,t.y,n.y)}function cp(e,t,n){e.min=t.min-n.min,e.max=e.min+Xe(t)}function Co(e,t,n){cp(e.x,t.x,n.x),cp(e.y,t.y,n.y)}function gC(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?te(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?te(n,e,r.max):Math.min(e,n)),e}function dp(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function vC(e,{top:t,left:n,bottom:r,right:o}){return{x:dp(e.x,n,o),y:dp(e.y,t,r)}}function fp(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function yC(e,t){return{x:fp(e.x,t.x),y:fp(e.y,t.y)}}function xC(e,t){let n=.5;const r=Xe(e),o=Xe(t);return o>r?n=Lr(t.min,t.max-r,e.min):r>o&&(n=Lr(e.min,e.max-o,t.min)),zt(0,1,n)}function wC(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const gu=.35;function SC(e=gu){return e===!1?e=0:e===!0&&(e=gu),{x:pp(e,"left","right"),y:pp(e,"top","bottom")}}function pp(e,t,n){return{min:hp(e,t),max:hp(e,n)}}function hp(e,t){return typeof e=="number"?e:e[t]||0}const mp=()=>({translate:0,scale:1,origin:0,originPoint:0}),pr=()=>({x:mp(),y:mp()}),gp=()=>({min:0,max:0}),ae=()=>({x:gp(),y:gp()});function et(e){return[e("x"),e("y")]}function zv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function TC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function EC(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ka(e){return e===void 0||e===1}function vu({scale:e,scaleX:t,scaleY:n}){return!Ka(e)||!Ka(t)||!Ka(n)}function Pn(e){return vu(e)||Uv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Uv(e){return vp(e.x)||vp(e.y)}function vp(e){return e&&e!=="0%"}function js(e,t,n){const r=e-n,o=t*r;return n+o}function yp(e,t,n,r,o){return o!==void 0&&(e=js(e,o,r)),js(e,n,r)+t}function yu(e,t=0,n=1,r,o){e.min=yp(e.min,t,n,r,o),e.max=yp(e.max,t,n,r,o)}function $v(e,{x:t,y:n}){yu(e.x,t.translate,t.scale,t.originPoint),yu(e.y,n.translate,n.scale,n.originPoint)}const xp=.999999999999,wp=1.0000000000001;function CC(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&mr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,$v(e,s)),r&&Pn(i.latestValues)&&mr(e,i.latestValues))}t.x<wp&&t.x>xp&&(t.x=1),t.y<wp&&t.y>xp&&(t.y=1)}function hr(e,t){e.min=e.min+t,e.max=e.max+t}function Sp(e,t,n,r,o=.5){const i=te(e.min,e.max,o);yu(e,t,n,i,r)}function mr(e,t){Sp(e.x,t.x,t.scaleX,t.scale,t.originX),Sp(e.y,t.y,t.scaleY,t.scale,t.originY)}function Wv(e,t){return zv(EC(e.getBoundingClientRect(),t))}function PC(e,t,n){const r=Wv(e,n),{scroll:o}=t;return o&&(hr(r.x,o.offset.x),hr(r.y,o.offset.y)),r}const Hv=({current:e})=>e?e.ownerDocument.defaultView:null,kC=new WeakMap;class bC{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=ae(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ai(c).point)},i=(c,d)=>{const{drag:f,dragPropagation:y,onDragStart:S}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iC(f),!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),et(w=>{let p=this.getAxisMotionValue(w).get()||0;if(Pt.test(p)){const{projection:m}=this.visualElement;if(m&&m.layout){const x=m.layout.layoutBox[w];x&&(p=Xe(x)*(parseFloat(p)/100))}}this.originPoint[w]=p}),S&&Q.postRender(()=>S(c,d)),hu(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:S,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:w}=d;if(y&&this.currentDirection===null){this.currentDirection=AC(w),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.render(),g&&g(c,d)},a=(c,d)=>this.stop(c,d),l=()=>et(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Iv(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Hv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Q.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ni(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=gC(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&fr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=vC(o.layoutBox,n):this.constraints=!1,this.elastic=SC(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&et(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=wC(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=PC(r,o.root,this.visualElement.getTransformPagePoint());let s=yC(o.layout.layoutBox,i);if(n){const a=n(TC(s));this.hasMutatedConstraints=!!a,a&&(s=zv(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=et(c=>{if(!Ni(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,y=o?40:1e7,S={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,S)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return hu(this.visualElement,t),r.start(Hc(t,r,0,n,this.visualElement,!1))}stopAnimation(){et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){et(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){et(n=>{const{drag:r}=this.getProps();if(!Ni(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-te(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};et(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=xC({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),et(s=>{if(!Ni(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(te(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;kC.set(this.visualElement,this);const t=this.visualElement.current,n=To(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();fr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Q.read(r);const s=Yo(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(et(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=gu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ni(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function AC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class NC extends wn{constructor(t){super(t),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new bC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}unmount(){this.removeGroupControls(),this.removeListeners()}}const Tp=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))};class RC extends wn{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(t){this.session=new Iv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Hv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Tp(t),onStart:Tp(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Q.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=To(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 qc=v.createContext(null);function jC(){const e=v.useContext(qc);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=v.useId();v.useEffect(()=>r(o),[]);const i=v.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const Kv=v.createContext({}),Gv=v.createContext({}),Qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ep(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Jr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(M.test(e))e=parseFloat(e);else return e;const n=Ep(e,t.target.x),r=Ep(e,t.target.y);return`${n}% ${r}%`}},DC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=gn.parse(e);if(o.length>5)return r;const i=gn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=te(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},Ds={};function MC(e){Object.assign(Ds,e)}const{schedule:Zc,cancel:OR}=Gg(queueMicrotask,!1);class LC extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;MC(OC),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Qi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Q.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Zc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Yv(e){const[t,n]=jC(),r=v.useContext(Kv);return h.jsx(LC,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(Gv),isPresent:t,safeToRemove:n})}const OC={borderRadius:{...Jr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Jr,borderTopRightRadius:Jr,borderBottomLeftRadius:Jr,borderBottomRightRadius:Jr,boxShadow:DC},Xv=["TopLeft","TopRight","BottomLeft","BottomRight"],_C=Xv.length,Cp=e=>typeof e=="string"?parseFloat(e):e,Pp=e=>typeof e=="number"||M.test(e);function IC(e,t,n,r,o,i){o?(e.opacity=te(0,n.opacity!==void 0?n.opacity:1,FC(r)),e.opacityExit=te(t.opacity!==void 0?t.opacity:1,0,VC(r))):i&&(e.opacity=te(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<_C;s++){const a=`border${Xv[s]}Radius`;let l=kp(t,a),u=kp(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Pp(l)===Pp(u)?(e[a]=Math.max(te(Cp(l),Cp(u),r),0),(Pt.test(u)||Pt.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=te(t.rotate||0,n.rotate||0,r))}function kp(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const FC=Qv(0,.5,ev),VC=Qv(.5,.95,Ge);function Qv(e,t,n){return r=>r<e?0:r>t?1:n(Lr(e,t,r))}function bp(e,t){e.min=t.min,e.max=t.max}function Je(e,t){bp(e.x,t.x),bp(e.y,t.y)}function Ap(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Np(e,t,n,r,o){return e-=t,e=js(e,1/n,r),o!==void 0&&(e=js(e,1/o,r)),e}function BC(e,t=0,n=1,r=.5,o,i=e,s=e){if(Pt.test(t)&&(t=parseFloat(t),t=te(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=te(i.min,i.max,r);e===i&&(a-=t),e.min=Np(e.min,t,n,a,o),e.max=Np(e.max,t,n,a,o)}function Rp(e,t,[n,r,o],i,s){BC(e,t[n],t[r],t[o],t.scale,i,s)}const zC=["x","scaleX","originX"],UC=["y","scaleY","originY"];function jp(e,t,n,r){Rp(e.x,t,zC,n?n.x:void 0,r?r.x:void 0),Rp(e.y,t,UC,n?n.y:void 0,r?r.y:void 0)}function Dp(e){return e.translate===0&&e.scale===1}function qv(e){return Dp(e.x)&&Dp(e.y)}function Mp(e,t){return e.min===t.min&&e.max===t.max}function $C(e,t){return Mp(e.x,t.x)&&Mp(e.y,t.y)}function Lp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Zv(e,t){return Lp(e.x,t.x)&&Lp(e.y,t.y)}function Op(e){return Xe(e.x)/Xe(e.y)}function _p(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class WC{constructor(){this.members=[]}add(t){Kc(this.members,t),t.scheduleRender()}remove(t){if(Gc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HC(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:y,skewY:S}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const KC=(e,t)=>e.depth-t.depth;class GC{constructor(){this.children=[],this.isDirty=!1}add(t){Kc(this.children,t),this.isDirty=!0}remove(t){Gc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KC),this.isDirty=!1,this.children.forEach(t)}}function qi(e){const t=Ne(e)?e.get():e;return jE(t)?t.toValue():t}function YC(e,t){const n=kt.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(mn(r),e(i-t))};return Q.read(r,!0),()=>mn(r)}function XC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function QC(e,t,n){const r=Ne(e)?e:Go(e);return r.start(Hc("",r,t,n)),r.animation}const kn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},co=typeof window<"u"&&window.MotionDebug!==void 0,Ga=["","X","Y","Z"],qC={visibility:"hidden"},Ip=1e3;let ZC=0;function Ya(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=jv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Jv(r)}function ey({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=ZC++,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,co&&(kn.totalNodes=kn.resolvedTargetDeltas=kn.recalculatedProjection=0),this.nodes.forEach(tP),this.nodes.forEach(sP),this.nodes.forEach(aP),this.nodes.forEach(nP),co&&window.MotionDebug.record(kn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new GC)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Yc),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=XC(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=YC(f,250),Qi.hasAnimatedSinceResize&&(Qi.hasAnimatedSinceResize=!1,this.nodes.forEach(Vp))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||fP,{onLayoutAnimationStart:w,onLayoutAnimationComplete:p}=c.getProps(),m=!this.targetLayout||!Zv(this.targetLayout,S)||y,x=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const T={...jc(g,"layout"),onPlay:w,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||Vp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,mn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(lP),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Fp);return}this.isUpdating||this.nodes.forEach(oP),this.isUpdating=!1,this.nodes.forEach(iP),this.nodes.forEach(JC),this.nodes.forEach(eP),this.clearAllSnapshots();const a=kt.now();xe.delta=zt(0,1e3/60,a-xe.timestamp),xe.timestamp=a,xe.isProcessing=!0,Fa.update.process(xe),Fa.preRender.process(xe),Fa.render.process(xe),xe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rP),this.sharedNodes.forEach(uP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!qv(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||Pn(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),pP(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return ae();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(hP))){const{scroll:c}=this.root;c&&(hr(l.x,c.offset.x),hr(l.y,c.offset.y))}return l}removeElementScroll(s){var a;const l=ae();if(Je(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Je(l,s),hr(l.x,d.offset.x),hr(l.y,d.offset.y))}return l}applyTransform(s,a=!1){const l=ae();Je(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&mr(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Pn(c.latestValues)&&mr(l,c.latestValues)}return Pn(this.latestValues)&&mr(l,this.latestValues),l}removeTransform(s){const a=ae();Je(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Pn(u.latestValues))continue;vu(u.latestValues)&&u.updateSnapshot();const c=ae(),d=u.measurePageBox();Je(c,d),jp(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Pn(this.latestValues)&&jp(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=xe.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),Co(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),Je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ae(),this.targetWithTransforms=ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),mC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Je(this.target,this.layout.layoutBox),$v(this.target,this.targetDelta)):Je(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),Co(this.relativeTargetOrigin,this.target,y.target),Je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}co&&kn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||vu(this.parent.latestValues)||Uv(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===xe.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Je(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,y=this.treeScale.y;CC(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ae());const{target:S}=a;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ap(this.prevProjectionDelta.x,this.projectionDelta.x),Ap(this.prevProjectionDelta.y,this.projectionDelta.y)),Eo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==y||!_p(this.projectionDelta.x,this.prevProjectionDelta.x)||!_p(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),co&&kn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=pr(),this.projectionDelta=pr(),this.projectionDeltaWithTransform=pr()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=pr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=ae(),y=l?l.source:void 0,S=this.layout?this.layout.source:void 0,g=y!==S,w=this.getStack(),p=!w||w.members.length<=1,m=!!(g&&!p&&this.options.crossfade===!0&&!this.path.some(dP));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const E=T/1e3;Bp(d.x,s.x,E),Bp(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Co(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cP(this.relativeTarget,this.relativeTargetOrigin,f,E),x&&$C(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=ae()),Je(x,this.relativeTarget)),g&&(this.animationValues=c,IC(c,u,this.latestValues,E,m,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(mn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{Qi.hasAnimatedSinceResize=!0,this.currentAnimation=QC(0,Ip,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ip),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&ty(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ae();const d=Xe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Xe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Je(a,l),mr(a,c),Eo(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new WC),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ya("z",s,u,this.animationValues);for(let c=0;c<Ga.length;c++)Ya(`rotate${Ga[c]}`,s,u,this.animationValues),Ya(`skew${Ga[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return qC;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=qi(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=qi(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Pn(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=HC(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:y,y:S}=this.projectionDelta;u.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in Ds){if(f[g]===void 0)continue;const{correct:w,applyTo:p}=Ds[g],m=u.transform==="none"?f[g]:w(f[g],d);if(p){const x=p.length;for(let T=0;T<x;T++)u[p[T]]=m}else u[g]=m}return this.options.layoutId&&(u.pointerEvents=d===this?qi(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Fp),this.root.sharedNodes.clear()}}}function JC(e){e.updateLayout()}function eP(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?et(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=Xe(f);f.min=r[d].min,f.max=f.min+y}):ty(i,n.layoutBox,r)&&et(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=Xe(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=pr();Eo(a,r,n.layoutBox);const l=pr();s?Eo(l,e.applyTransform(o,!0),n.measuredBox):Eo(l,r,n.layoutBox);const u=!qv(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const S=ae();Co(S,n.layoutBox,f.layoutBox);const g=ae();Co(g,r,y.layoutBox),Zv(S,g)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=S,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function tP(e){co&&kn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rP(e){e.clearSnapshot()}function Fp(e){e.clearMeasurements()}function oP(e){e.isLayoutDirty=!1}function iP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Vp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sP(e){e.resolveTargetDelta()}function aP(e){e.calcProjection()}function lP(e){e.resetSkewAndRotation()}function uP(e){e.removeLeadSnapshot()}function Bp(e,t,n){e.translate=te(t.translate,0,n),e.scale=te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zp(e,t,n,r){e.min=te(t.min,n.min,r),e.max=te(t.max,n.max,r)}function cP(e,t,n,r){zp(e.x,t.x,n.x,r),zp(e.y,t.y,n.y,r)}function dP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fP={duration:.45,ease:[.4,0,.1,1]},Up=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$p=Up("applewebkit/")&&!Up("chrome/")?Math.round:Ge;function Wp(e){e.min=$p(e.min),e.max=$p(e.max)}function pP(e){Wp(e.x),Wp(e.y)}function ty(e,t,n){return e==="position"||e==="preserve-aspect"&&!hC(Op(t),Op(n),.2)}function hP(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const mP=ey({attachResizeListener:(e,t)=>Yo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xa={current:void 0},ny=ey({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xa.current){const e=new mP({});e.mount(window),e.setOptions({layoutScroll:!0}),Xa.current=e}return Xa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gP={pan:{Feature:RC},drag:{Feature:NC,ProjectionNode:ny,MeasureLayout:Yv}};function Hp(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Q.postRender(()=>i(t,ai(t)))}class vP extends wn{mount(){const{current:t}=this.node;t&&(this.unmount=eC(t,n=>(Hp(this.node,n,"Start"),r=>Hp(this.node,r,"End"))))}unmount(){}}class yP extends wn{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=si(Yo(this.node.current,"focus",()=>this.onFocus()),Yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Kp(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Q.postRender(()=>i(t,ai(t)))}class xP extends wn{mount(){const{current:t}=this.node;t&&(this.unmount=oC(t,n=>(Kp(this.node,n,"Start"),(r,{success:o})=>Kp(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xu=new WeakMap,Qa=new WeakMap,wP=e=>{const t=xu.get(e.target);t&&t(e)},SP=e=>{e.forEach(wP)};function TP({root:e,...t}){const n=e||document;Qa.has(n)||Qa.set(n,{});const r=Qa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(SP,{root:e,...t})),r[o]}function EP(e,t,n){const r=TP(t);return xu.set(e,n),r.observe(e),()=>{xu.delete(e),r.unobserve(e)}}const CP={some:0,all:1};class PP extends wn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:CP[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return EP(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(kP(t,n))&&this.startObserver()}unmount(){}}function kP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bP={inView:{Feature:PP},tap:{Feature:xP},focus:{Feature:yP},hover:{Feature:vP}},AP={layout:{ProjectionNode:ny,MeasureLayout:Yv}},ry=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),oa=v.createContext({}),Jc=typeof window<"u",NP=Jc?v.useLayoutEffect:v.useEffect,oy=v.createContext({strict:!1});function RP(e,t,n,r,o){var i,s;const{visualElement:a}=v.useContext(oa),l=v.useContext(oy),u=v.useContext(qc),c=v.useContext(ry).reducedMotion,d=v.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,y=v.useContext(Gv);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&jP(d.current,n,o,y);const S=v.useRef(!1);v.useInsertionEffect(()=>{f&&S.current&&f.update(n,u)});const g=n[Rv],w=v.useRef(!!g&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return NP(()=>{f&&(S.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Zc.render(f.render),w.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!w.current&&f.animationState&&f.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,g)}),w.current=!1))}),f}function jP(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:iy(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&fr(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function iy(e){if(e)return e.options.allowProjection!==!1?e.projection:iy(e.parent)}function DP(e,t,n){return v.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):fr(n)&&(n.current=r))},[t])}function ia(e){return ta(e.animate)||Rc.some(t=>Wo(e[t]))}function sy(e){return!!(ia(e)||e.variants)}function MP(e,t){if(ia(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Wo(n)?n:void 0,animate:Wo(r)?r:void 0}}return e.inherit!==!1?t:{}}function LP(e){const{initial:t,animate:n}=MP(e,v.useContext(oa));return v.useMemo(()=>({initial:t,animate:n}),[Gp(t),Gp(n)])}function Gp(e){return Array.isArray(e)?e.join(" "):e}const Yp={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"]},Or={};for(const e in Yp)Or[e]={isEnabled:t=>Yp[e].some(n=>!!t[n])};function OP(e){for(const t in e)Or[t]={...Or[t],...e[t]}}const _P=Symbol.for("motionComponentSymbol");function IP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&OP(e);function i(a,l){let u;const c={...v.useContext(ry),...a,layoutId:FP(a)},{isStatic:d}=c,f=LP(a),y=r(a,d);if(!d&&Jc){VP();const S=BP(c);u=S.MeasureLayout,f.visualElement=RP(o,y,c,t,S.ProjectionNode)}return h.jsxs(oa.Provider,{value:f,children:[u&&f.visualElement?h.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,DP(y,f.visualElement,l),y,d,f.visualElement)]})}const s=v.forwardRef(i);return s[_P]=o,s}function FP({layoutId:e}){const t=v.useContext(Kv).id;return t&&e!==void 0?t+"-"+e:e}function VP(e,t){v.useContext(oy).strict}function BP(e){const{drag:t,layout:n}=Or;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const zP=["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 ed(e){return typeof e!="string"||e.includes("-")?!1:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}function ay(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const ly=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 uy(e,t,n,r){ay(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(ly.has(o)?o:Xc(o),t.attrs[o])}function cy(e,{layout:t,layoutId:n}){return Gn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ds[e]||e==="opacity")}function td(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ne(o[s])||t.style&&Ne(t.style[s])||cy(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function dy(e,t,n){const r=td(e,t,n);for(const o in e)if(Ne(e[o])||Ne(t[o])){const i=ri.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function UP(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}function $P({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:WP(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const fy=e=>(t,n)=>{const r=v.useContext(oa),o=v.useContext(qc),i=()=>$P(e,t,r,o);return n?i():UP(i)};function WP(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=qi(i[f]);let{initial:s,animate:a}=e;const l=ia(e),u=sy(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!ta(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y<f.length;y++){const S=Ac(e,f[y]);if(S){const{transitionEnd:g,transition:w,...p}=S;for(const m in p){let x=p[m];if(Array.isArray(x)){const T=c?x.length-1:0;x=x[T]}x!==null&&(o[m]=x)}for(const m in g)o[m]=g[m]}}}return o}const nd=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),py=()=>({...nd(),attrs:{}}),hy=(e,t)=>t&&typeof e=="number"?t.transform(e):e,HP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KP=ri.length;function GP(e,t,n){let r="",o=!0;for(let i=0;i<KP;i++){const s=ri[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=hy(a,Fc[s]);if(!l){o=!1;const c=HP[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function rd(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Gn.has(l)){s=!0;continue}else if(iv(l)){o[l]=u;continue}else{const c=hy(u,Fc[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=GP(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}function Xp(e,t,n){return typeof e=="string"?e:M.transform(t+n*e)}function YP(e,t,n){const r=Xp(t,e.x,e.width),o=Xp(n,e.y,e.height);return`${r} ${o}`}const XP={offset:"stroke-dashoffset",array:"stroke-dasharray"},QP={offset:"strokeDashoffset",array:"strokeDasharray"};function qP(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?XP:QP;e[i.offset]=M.transform(-r);const s=M.transform(t),a=M.transform(n);e[i.array]=`${s} ${a}`}function od(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(rd(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:y,dimensions:S}=e;f.transform&&(S&&(y.transform=f.transform),delete f.transform),S&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=YP(S,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&qP(f,s,a,l,!1)}const id=e=>typeof e=="string"&&e.toLowerCase()==="svg",ZP={useVisualState:fy({scrapeMotionValuesFromProps:dy,createRenderState:py,onMount:(e,t,{renderState:n,latestValues:r})=>{Q.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Q.render(()=>{od(n,r,id(t.tagName),e.transformTemplate),uy(t,n)})}})},JP={useVisualState:fy({scrapeMotionValuesFromProps:td,createRenderState:nd})};function my(e,t,n){for(const r in t)!Ne(t[r])&&!cy(r,n)&&(e[r]=t[r])}function ek({transformTemplate:e},t){return v.useMemo(()=>{const n=nd();return rd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function tk(e,t){const n=e.style||{},r={};return my(r,n,e),Object.assign(r,ek(e,t)),r}function nk(e,t){const n={},r=tk(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const rk=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 Ms(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rk.has(e)}let gy=e=>!Ms(e);function ok(e){e&&(gy=t=>t.startsWith("on")?!Ms(t):e(t))}try{ok(require("@emotion/is-prop-valid").default)}catch{}function ik(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(gy(o)||n===!0&&Ms(o)||!t&&!Ms(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function sk(e,t,n,r){const o=v.useMemo(()=>{const i=py();return od(i,t,id(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};my(i,e.style,e),o.style={...i,...o.style}}return o}function ak(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(ed(n)?sk:nk)(r,i,s,n),u=ik(r,typeof n=="string",e),c=n!==v.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=v.useMemo(()=>Ne(d)?d.get():d,[d]);return v.createElement(n,{...c,children:f})}}function lk(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...ed(r)?ZP:JP,preloadedFeatures:e,useRender:ak(o),createVisualElement:t,Component:r};return IP(s)}}const wu={current:null},vy={current:!1};function uk(){if(vy.current=!0,!!Jc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wu.current=e.matches;e.addListener(t),t()}else wu.current=!1}function ck(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ne(o))e.addValue(r,o);else if(Ne(i))e.addValue(r,Go(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Go(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qp=new WeakMap,dk=[...lv,ke,gn],fk=e=>dk.find(av(e)),qp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pk{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Oc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=kt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Q.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=ia(n),this.isVariantNode=sy(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const y=d[f];l[f]!==void 0&&Ne(y)&&y.set(l[f],!1)}}mount(t){this.current=t,Qp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),vy.current||uk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Qp.delete(this.current),this.projection&&this.projection.unmount(),mn(this.notifyUpdate),mn(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 n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Gn.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Or){const n=Or[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ae()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<qp.length;r++){const o=qp[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=ck(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Go(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=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 o!=null&&(typeof o=="string"&&(rv(o)||nv(o))?o=parseFloat(o):!fk(o)&&gn.test(n)&&(o=gv(t,n)),this.setBaseTarget(t,Ne(o)?o.get():o)),Ne(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Ac(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ne(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class yy extends pk{constructor(){super(...arguments),this.KeyframeResolver=vv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ne(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function hk(e){return window.getComputedStyle(e)}class mk extends yy{constructor(){super(...arguments),this.type="html",this.renderInstance=ay}readValueFromInstance(t,n){if(Gn.has(n)){const r=Vc(n);return r&&r.default||0}else{const r=hk(t),o=(iv(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Wv(t,n)}build(t,n,r){rd(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return td(t,n,r)}}class gk extends yy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gn.has(n)){const r=Vc(n);return r&&r.default||0}return n=ly.has(n)?n:Xc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return dy(t,n,r)}build(t,n,r){od(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){uy(t,n,r,o)}mount(t){this.isSVGTag=id(t.tagName),super.mount(t)}}const vk=(e,t)=>ed(e)?new gk(t):new mk(t,{allowProjection:e!==v.Fragment}),yk=lk({...ZE,...bP,...gP,...AP},vk),be=XS(yk),xk=({className:e})=>h.jsx(be.div,{className:`relative flex items-center justify-center ${e}`,initial:{rotate:-5},whileHover:{rotate:0},transition:{type:"spring",stiffness:300},children:h.jsx("div",{className:"w-10 h-10 bg-electric-yellow rounded-full flex items-center justify-center shadow-lg border-2 border-electric-navy overflow-hidden",children:h.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-7 h-7",children:h.jsx("path",{d:"M13 2L3 14H12L11 22L21 10H12L13 2Z",fill:"#001F3F",stroke:"#001F3F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),wk=()=>{const e=Ur(),t=[{path:"/",label:"Home"},{path:"/booking",label:"Book Appointment"},{path:"/appointments",label:"My Appointments"}];return h.jsx(be.nav,{initial:{y:-100},animate:{y:0},className:"fixed top-0 left-0 right-0 z-50 bg-electric-navy shadow-md border-b border-electric-yellow/20",children:h.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:h.jsxs("div",{className:"flex justify-between items-center h-16",children:[h.jsxs(_f,{to:"/",className:"flex items-center gap-3 group",children:[h.jsx(xk,{}),h.jsxs("span",{className:"text-xl font-bold text-white group-hover:text-electric-yellow transition-colors",children:["Quick Book ",h.jsx("span",{className:"text-electric-yellow",children:"Electrical"})]})]}),h.jsx("div",{className:"flex items-center gap-6",children:t.map(n=>h.jsxs(_f,{to:n.path,className:`relative text-sm font-medium transition-colors hover:text-electric-yellow py-2 ${e.pathname===n.path?"text-electric-yellow":"text-gray-200"}`,children:[n.label,e.pathname===n.path&&h.jsx(be.div,{layoutId:"underline",className:"absolute left-0 right-0 bottom-0 h-0.5 bg-electric-yellow"})]},n.path))})]})})})};var xy={exports:{}},Sk="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Tk=Sk,Ek=Tk;function wy(){}function Sy(){}Sy.resetWarningCache=wy;var Ck=function(){function e(r,o,i,s,a,l){if(l!==Ek){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Sy,resetWarningCache:wy};return n.PropTypes=n,n};xy.exports=Ck();var Pk=xy.exports;const q=Ir(Pk);function kk(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Ty=v,bk=kk(Ty);function Zp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ak(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Nk=!!(typeof window<"u"&&window.document&&window.document.createElement);function Rk(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=e(s.map(function(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){Ak(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var S=a;return a=void 0,s=[],S};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var S=s.indexOf(this);s.splice(S,1),l()},f.render=function(){return bk.createElement(i,this.props)},d}(Ty.PureComponent);return Zp(u,"displayName","SideEffect("+r(i)+")"),Zp(u,"canUseDOM",Nk),u}}var jk=Rk;const Dk=Ir(jk);var Mk=typeof Element<"u",Lk=typeof Map=="function",Ok=typeof Set=="function",_k=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Zi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Zi(e[r],t[r]))return!1;return!0}var i;if(Lk&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Zi(r.value[1],t.get(r.value[0])))return!1;return!0}if(Ok&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(_k&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Mk&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Zi(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var Ik=function(t,n){try{return Zi(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Fk=Ir(Ik);/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Jp=Object.getOwnPropertySymbols,Vk=Object.prototype.hasOwnProperty,Bk=Object.prototype.propertyIsEnumerable;function zk(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Uk(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var $k=Uk()?Object.assign:function(e,t){for(var n,r=zk(e),o,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)Vk.call(n,s)&&(r[s]=n[s]);if(Jp){o=Jp(n);for(var a=0;a<o.length;a++)Bk.call(n,o[a])&&(r[o[a]]=n[o[a]])}}return r};const Wk=Ir($k);var On={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},_={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(_).map(function(e){return _[e]});var Z={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Ls={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Xo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},Hk=Object.keys(Ls).reduce(function(e,t){return e[Ls[t]]=t,e},{}),Kk=[_.NOSCRIPT,_.SCRIPT,_.STYLE],ft="data-react-helmet",Gk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yk=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Xk=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qk=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},eh=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},qk=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Su=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Zk=function(t){var n=Tr(t,_.TITLE),r=Tr(t,Xo.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=Tr(t,Xo.DEFAULT_TITLE);return n||o||void 0},Jk=function(t){return Tr(t,Xo.ON_CHANGE_CLIENT_STATE)||function(){}},qa=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return Fe({},r,o)},{})},eb=function(t,n){return n.filter(function(r){return typeof r[_.BASE]<"u"}).map(function(r){return r[_.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),s=0;s<i.length;s++){var a=i[s],l=a.toLowerCase();if(t.indexOf(l)!==-1&&o[l])return r.concat(o)}return r},[])},eo=function(t,n,r){var o={};return r.filter(function(i){return Array.isArray(i[t])?!0:(typeof i[t]<"u"&&ob("Helmet: "+t+' should be of type "Array". Instead found type "'+Gk(i[t])+'"'),!1)}).map(function(i){return i[t]}).reverse().reduce(function(i,s){var a={};s.filter(function(f){for(var y=void 0,S=Object.keys(f),g=0;g<S.length;g++){var w=S[g],p=w.toLowerCase();n.indexOf(p)!==-1&&!(y===Z.REL&&f[y].toLowerCase()==="canonical")&&!(p===Z.REL&&f[p].toLowerCase()==="stylesheet")&&(y=p),n.indexOf(w)!==-1&&(w===Z.INNER_HTML||w===Z.CSS_TEXT||w===Z.ITEM_PROP)&&(y=w)}if(!y||!f[y])return!1;var m=f[y].toLowerCase();return o[y]||(o[y]={}),a[y]||(a[y]={}),o[y][m]?!1:(a[y][m]=!0,!0)}).reverse().forEach(function(f){return i.push(f)});for(var l=Object.keys(a),u=0;u<l.length;u++){var c=l[u],d=Wk({},o[c],a[c]);o[c]=d}return i},[]).reverse()},Tr=function(t,n){for(var r=t.length-1;r>=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},tb=function(t){return{baseTag:eb([Z.HREF,Z.TARGET],t),bodyAttributes:qa(On.BODY,t),defer:Tr(t,Xo.DEFER),encode:Tr(t,Xo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:qa(On.HTML,t),linkTags:eo(_.LINK,[Z.REL,Z.HREF],t),metaTags:eo(_.META,[Z.NAME,Z.CHARSET,Z.HTTPEQUIV,Z.PROPERTY,Z.ITEM_PROP],t),noscriptTags:eo(_.NOSCRIPT,[Z.INNER_HTML],t),onChangeClientState:Jk(t),scriptTags:eo(_.SCRIPT,[Z.SRC,Z.INNER_HTML],t),styleTags:eo(_.STYLE,[Z.CSS_TEXT],t),title:Zk(t),titleAttributes:qa(On.TITLE,t)}},Tu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Tu(t)},0)}}(),th=function(t){return clearTimeout(t)},nb=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Tu:global.requestAnimationFrame||Tu,rb=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||th:global.cancelAnimationFrame||th,ob=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},to=null,ib=function(t){to&&rb(to),t.defer?to=nb(function(){nh(t,function(){to=null})}):(nh(t),to=null)},nh=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,d=t.styleTags,f=t.title,y=t.titleAttributes;Eu(_.BODY,o),Eu(_.HTML,i),sb(f,y);var S={baseTag:Xn(_.BASE,r),linkTags:Xn(_.LINK,s),metaTags:Xn(_.META,a),noscriptTags:Xn(_.NOSCRIPT,l),scriptTags:Xn(_.SCRIPT,c),styleTags:Xn(_.STYLE,d)},g={},w={};Object.keys(S).forEach(function(p){var m=S[p],x=m.newTags,T=m.oldTags;x.length&&(g[p]=x),T.length&&(w[p]=S[p].oldTags)}),n&&n(),u(t,g,w)},Ey=function(t){return Array.isArray(t)?t.join(""):t},sb=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Ey(t)),Eu(_.TITLE,n)},Eu=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(ft),i=o?o.split(","):[],s=[].concat(i),a=Object.keys(n),l=0;l<a.length;l++){var u=a[l],c=n[u]||"";r.getAttribute(u)!==c&&r.setAttribute(u,c),i.indexOf(u)===-1&&i.push(u);var d=s.indexOf(u);d!==-1&&s.splice(d,1)}for(var f=s.length-1;f>=0;f--)r.removeAttribute(s[f]);i.length===s.length?r.removeAttribute(ft):r.getAttribute(ft)!==a.join(",")&&r.setAttribute(ft,a.join(","))}},Xn=function(t,n){var r=document.head||document.querySelector(_.HEAD),o=r.querySelectorAll(t+"["+ft+"]"),i=Array.prototype.slice.call(o),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===Z.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===Z.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[c]>"u"?"":l[c];u.setAttribute(c,d)}u.setAttribute(ft,"true"),i.some(function(f,y){return a=y,u.isEqualNode(f)})?i.splice(a,1):s.push(u)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:i,newTags:s}},Cy=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},ab=function(t,n,r,o){var i=Cy(r),s=Ey(n);return i?"<"+t+" "+ft+'="true" '+i+">"+Su(s,o)+"</"+t+">":"<"+t+" "+ft+'="true">'+Su(s,o)+"</"+t+">"},lb=function(t,n,r){return n.reduce(function(o,i){var s=Object.keys(i).filter(function(u){return!(u===Z.INNER_HTML||u===Z.CSS_TEXT)}).reduce(function(u,c){var d=typeof i[c]>"u"?c:c+'="'+Su(i[c],r)+'"';return u?u+" "+d:d},""),a=i.innerHTML||i.cssText||"",l=Kk.indexOf(t)===-1;return o+"<"+t+" "+ft+'="true" '+s+(l?"/>":">"+a+"</"+t+">")},"")},Py=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Ls[o]||o]=t[o],r},n)},ub=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Hk[o]||o]=t[o],r},n)},cb=function(t,n,r){var o,i=(o={key:n},o[ft]=!0,o),s=Py(r,i);return[H.createElement(_.TITLE,s,n)]},db=function(t,n){return n.map(function(r,o){var i,s=(i={key:o},i[ft]=!0,i);return Object.keys(r).forEach(function(a){var l=Ls[a]||a;if(l===Z.INNER_HTML||l===Z.CSS_TEXT){var u=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:u}}else s[l]=r[a]}),H.createElement(t,s)})},At=function(t,n,r){switch(t){case _.TITLE:return{toComponent:function(){return cb(t,n.title,n.titleAttributes)},toString:function(){return ab(t,n.title,n.titleAttributes,r)}};case On.BODY:case On.HTML:return{toComponent:function(){return Py(n)},toString:function(){return Cy(n)}};default:return{toComponent:function(){return db(t,n)},toString:function(){return lb(t,n,r)}}}},ky=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,c=t.styleTags,d=t.title,f=d===void 0?"":d,y=t.titleAttributes;return{base:At(_.BASE,n,o),bodyAttributes:At(On.BODY,r,o),htmlAttributes:At(On.HTML,i,o),link:At(_.LINK,s,o),meta:At(_.META,a,o),noscript:At(_.NOSCRIPT,l,o),script:At(_.SCRIPT,u,o),style:At(_.STYLE,c,o),title:At(_.TITLE,{title:f,titleAttributes:y},o)}},fb=function(t){var n,r;return r=n=function(o){Qk(i,o);function i(){return Yk(this,i),qk(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(a){return!Fk(this.props,a)},i.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case _.SCRIPT:case _.NOSCRIPT:return{innerHTML:l};case _.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,c=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return Fe({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[Fe({},d,this.mapNestedChildrenToProps(u,f))]),l))},i.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,d=a.newProps,f=a.newChildProps,y=a.nestedChildren;switch(c.type){case _.TITLE:return Fe({},d,(l={},l[c.type]=y,l.titleAttributes=Fe({},f),l));case _.BODY:return Fe({},d,{bodyAttributes:Fe({},f)});case _.HTML:return Fe({},d,{htmlAttributes:Fe({},f)})}return Fe({},d,(u={},u[c.type]=Fe({},f),u))},i.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=Fe({},l);return Object.keys(a).forEach(function(c){var d;u=Fe({},u,(d={},d[c]=a[c],d))}),u},i.prototype.warnOnInvalidChildren=function(a,l){return!0},i.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return H.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,y=f.children,S=eh(f,["children"]),g=ub(S);switch(u.warnOnInvalidChildren(d,y),d.type){case _.LINK:case _.META:case _.NOSCRIPT:case _.SCRIPT:case _.STYLE:c=u.flattenArrayTypeChildren({child:d,arrayTypeChildren:c,newChildProps:g,nestedChildren:y});break;default:l=u.mapObjectTypeChildren({child:d,newProps:l,newChildProps:g,nestedChildren:y});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},i.prototype.render=function(){var a=this.props,l=a.children,u=eh(a,["children"]),c=Fe({},u);return l&&(c=this.mapChildrenToProps(l,c)),H.createElement(t,c)},Xk(i,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),i}(H.Component),n.propTypes={base:q.object,bodyAttributes:q.object,children:q.oneOfType([q.arrayOf(q.node),q.node]),defaultTitle:q.string,defer:q.bool,encodeSpecialCharacters:q.bool,htmlAttributes:q.object,link:q.arrayOf(q.object),meta:q.arrayOf(q.object),noscript:q.arrayOf(q.object),onChangeClientState:q.func,script:q.arrayOf(q.object),style:q.arrayOf(q.object),title:q.string,titleAttributes:q.object,titleTemplate:q.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=ky({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},pb=function(){return null},hb=Dk(tb,ib,ky)(pb),zn=fb(hb);zn.renderStatic=zn.rewind;function by(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=by(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ay(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=by(e))&&(r&&(r+=" "),r+=t);return r}const sd="-",mb=e=>{const t=vb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(sd);return a[0]===""&&a.length!==1&&a.shift(),Ny(a,t)||gb(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},Ny=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ny(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(sd);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},rh=/^\[(.+)\]$/,gb=e=>{if(rh.test(e)){const t=rh.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},vb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return xb(Object.entries(e.classGroups),n).forEach(([i,s])=>{Cu(s,r,i,t)}),r},Cu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:oh(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(yb(o)){Cu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Cu(s,oh(t,i),n,r)})})},oh=(e,t)=>{let n=e;return t.split(sd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},yb=e=>e.isThemeGetter,xb=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,wb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Ry="!",Sb=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,c=0,d;for(let w=0;w<a.length;w++){let p=a[w];if(u===0){if(p===o&&(r||a.slice(w,w+i)===t)){l.push(a.slice(c,w)),c=w+i;continue}if(p==="/"){d=w;continue}}p==="["?u++:p==="]"&&u--}const f=l.length===0?a:a.substring(c),y=f.startsWith(Ry),S=y?f.substring(1):f,g=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:s}):s},Tb=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Eb=e=>({cache:wb(e.cacheSize),parseClassName:Sb(e),...mb(e)}),Cb=/\s+/,Pb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Cb);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:y}=n(u);let S=!!y,g=r(S?f.substring(0,y):f);if(!g){if(!S){a=u+(a.length>0?" "+a:a);continue}if(g=r(f),!g){a=u+(a.length>0?" "+a:a);continue}S=!1}const w=Tb(c).join(":"),p=d?w+Ry:w,m=p+g;if(i.includes(m))continue;i.push(m);const x=o(g,S);for(let T=0;T<x.length;++T){const E=x[T];i.push(p+E)}a=u+(a.length>0?" "+a:a)}return a};function kb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=jy(t))&&(r&&(r+=" "),r+=n);return r}const jy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=jy(e[r]))&&(n&&(n+=" "),n+=t);return n};function bb(e,...t){let n,r,o,i=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=Eb(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=Pb(l,n);return o(l,c),c}return function(){return i(kb.apply(null,arguments))}}const G=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Dy=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ab=/^\d+\/\d+$/,Nb=new Set(["px","full","screen"]),Rb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Db=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Mb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nt=e=>Er(e)||Nb.has(e)||Ab.test(e),Kt=e=>Wr(e,"length",Ub),Er=e=>!!e&&!Number.isNaN(Number(e)),Za=e=>Wr(e,"number",Er),no=e=>!!e&&Number.isInteger(Number(e)),Ob=e=>e.endsWith("%")&&Er(e.slice(0,-1)),F=e=>Dy.test(e),Gt=e=>Rb.test(e),_b=new Set(["length","size","percentage"]),Ib=e=>Wr(e,_b,My),Fb=e=>Wr(e,"position",My),Vb=new Set(["image","url"]),Bb=e=>Wr(e,Vb,Wb),zb=e=>Wr(e,"",$b),ro=()=>!0,Wr=(e,t,n)=>{const r=Dy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Ub=e=>jb.test(e)&&!Db.test(e),My=()=>!1,$b=e=>Mb.test(e),Wb=e=>Lb.test(e),Hb=()=>{const e=G("colors"),t=G("spacing"),n=G("blur"),r=G("brightness"),o=G("borderColor"),i=G("borderRadius"),s=G("borderSpacing"),a=G("borderWidth"),l=G("contrast"),u=G("grayscale"),c=G("hueRotate"),d=G("invert"),f=G("gap"),y=G("gradientColorStops"),S=G("gradientColorStopPositions"),g=G("inset"),w=G("margin"),p=G("opacity"),m=G("padding"),x=G("saturate"),T=G("scale"),E=G("sepia"),P=G("skew"),C=G("space"),k=G("translate"),D=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",F,t],I=()=>[F,t],De=()=>["",Nt,Kt],O=()=>["auto",Er,F],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],me=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",F],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Er,F];return{cacheSize:500,separator:":",theme:{colors:[ro],spacing:[Nt,Kt],blur:["none","",Gt,F],brightness:B(),borderColor:[e],borderRadius:["none","","full",Gt,F],borderSpacing:I(),borderWidth:De(),contrast:B(),grayscale:j(),hueRotate:B(),invert:j(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[Ob,Kt],inset:U(),margin:U(),opacity:B(),padding:I(),saturate:B(),scale:B(),sepia:j(),skew:B(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",F]}],container:["container"],columns:[{columns:[Gt]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...he(),F]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",no,F]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",F]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",no,F]}],"grid-cols":[{"grid-cols":[ro]}],"col-start-end":[{col:["auto",{span:["full",no,F]},F]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[ro]}],"row-start-end":[{row:["auto",{span:[no,F]},F]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",F]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",F]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",F,t]}],"min-w":[{"min-w":[F,t,"min","max","fit"]}],"max-w":[{"max-w":[F,t,"none","full","min","max","fit","prose",{screen:[Gt]},Gt]}],h:[{h:[F,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[F,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Gt,Kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Za]}],"font-family":[{font:[ro]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",F]}],"line-clamp":[{"line-clamp":["none",Er,Za]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Nt,F]}],"list-image":[{"list-image":["none",F]}],"list-style-type":[{list:["none","disc","decimal",F]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Nt,Kt]}],"underline-offset":[{"underline-offset":["auto",Nt,F]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),Fb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ib]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Bb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...me(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:me()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...me()]}],"outline-offset":[{"outline-offset":[Nt,F]}],"outline-w":[{outline:[Nt,Kt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:De()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[Nt,Kt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Gt,zb]}],"shadow-color":[{shadow:[ro]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Gt,F]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",F]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",F]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",F]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[no,F]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",F]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Nt,Kt,Za]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Kb=bb(Hb);function je(...e){return Kb(Ay(e))}function ih(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ly(...e){return t=>{let n=!1;const r=e.map(o=>{const i=ih(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():ih(e[o],null)}}}}function Qe(...e){return v.useCallback(Ly(...e),e)}var _r=v.forwardRef((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(Gb);if(i){const s=i.props.children,a=o.map(l=>l===i?v.Children.count(s)>1?v.Children.only(null):v.isValidElement(s)?s.props.children:null:l);return h.jsx(Pu,{...r,ref:t,children:v.isValidElement(s)?v.cloneElement(s,void 0,a):null})}return h.jsx(Pu,{...r,ref:t,children:n})});_r.displayName="Slot";var Pu=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const o=Xb(n);return v.cloneElement(n,{...Yb(r,n.props),ref:t?Ly(t,o):o})}return v.Children.count(n)>1?v.Children.only(null):null});Pu.displayName="SlotClone";var Oy=({children:e})=>h.jsx(h.Fragment,{children:e});function Gb(e){return v.isValidElement(e)&&e.type===Oy}function Yb(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Xb(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const sh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ah=Ay,_y=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ah(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=sh(c)||sh(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...y}=c;return Object.entries(y).every(S=>{let[g,w]=S;return Array.isArray(w)?w.includes({...i,...a}[g]):{...i,...a}[g]===w})?[...u,d,f]:u},[]);return ah(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},Qb=_y("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-electric-yellow text-electric-navy hover:bg-electric-yellow/90 hover:shadow-md font-bold",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-electric-navy text-electric-yellow hover:bg-electric-navy/90 font-semibold",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ut=H.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?_r:"button";return h.jsx(s,{className:je(Qb({variant:t,size:n,className:e})),ref:i,...o})});Ut.displayName="Button";/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Iy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Zb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jb=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>v.createElement("svg",{ref:l,...Zb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Iy("lucide",o),...a},[...s.map(([u,c])=>v.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Te=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(Jb,{ref:i,iconNode:t,className:Iy(`lucide-${qb(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eA=Te("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tA=Te("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fy=Te("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nA=Te("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rA=Te("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vy=Te("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oA=Te("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const By=Te("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zy=Te("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iA=Te("Snowflake",[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sA=Te("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aA=Te("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lA=Te("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uA=Te("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cA=Te("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dA=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uy=Te("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),fA=({name:e,description:t,image:n,icon:r})=>{const o=ea();return h.jsxs(be.div,{whileHover:{scale:1.05,y:-8},transition:{duration:.3},className:"bg-electric-navy rounded-xl shadow-lg overflow-hidden group cursor-pointer border-l-4 border-electric-yellow relative h-full flex flex-col",children:[h.jsxs("div",{className:"relative h-48 overflow-hidden",children:[h.jsx("img",{src:n,alt:`${e} service`,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500 opacity-90 group-hover:opacity-100"}),h.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-electric-navy/90 to-transparent"}),h.jsx("div",{className:"absolute top-4 right-4 bg-electric-yellow p-2 rounded-lg shadow-lg",children:h.jsx(r,{className:"w-6 h-6 text-electric-navy"})})]}),h.jsxs("div",{className:"p-6 flex flex-col flex-grow",children:[h.jsx("h3",{className:"text-xl font-bold text-white mb-3 group-hover:text-electric-yellow transition-colors",children:e}),h.jsx("p",{className:"text-gray-300 mb-6 line-clamp-3 flex-grow",children:t}),h.jsxs(Ut,{onClick:()=>o("/booking",{state:{selectedService:e}}),className:"w-full bg-electric-yellow text-electric-navy hover:bg-white hover:text-electric-navy font-semibold transition-colors mt-auto",children:["Book Now",h.jsx(eA,{className:"w-4 h-4 ml-2"})]})]}),h.jsx("div",{className:"absolute -bottom-2 -right-2 w-20 h-20 bg-electric-yellow/20 rounded-full blur-xl group-hover:bg-electric-yellow/40 transition-colors"})]})},pA=()=>{const e=ea(),t=[{name:"Washing Machine Repair",description:"Expert repair services for all washing machine brands. We fix drainage issues, motor problems, and electronic faults.",image:"https://images.unsplash.com/photo-1699457062599-da2e073c78ee",icon:cA},{name:"Geyser Repair",description:"Professional geyser repair. We handle heating element replacement, thermostat issues, and leak repairs.",image:"https://images.unsplash.com/photo-1689798889867-67c2b1794743",icon:oA},{name:"Fridge Repair",description:"Comprehensive refrigerator repair services. From cooling issues to compressor problems, we ensure efficiency.",image:"https://images.unsplash.com/photo-1676210132787-7ed33de174d6",icon:iA}],n=[{name:"Sarah Johnson",rating:5,comment:"Excellent service! They fixed my washing machine in no time. Very professional and affordable."},{name:"Michael Chen",rating:5,comment:"Best electrical service in town. Quick response and quality work. Highly recommended!"},{name:"Emily Davis",rating:5,comment:"Very satisfied with their geyser repair service. The technician was knowledgeable and courteous."}],r=[{icon:tA,value:"15+",label:"Years Experience"},{icon:uA,value:"10,000+",label:"Happy Customers"},{icon:Uy,value:"25,000+",label:"Repairs Completed"}];return h.jsxs(h.Fragment,{children:[h.jsxs(zn,{children:[h.jsx("title",{children:"Quick Book Electrical - Expert Electrical Appliance Repair"}),h.jsx("meta",{name:"description",content:"Professional electrical repair services. Fast, reliable, and energetic service for all your home appliances!"})]}),h.jsxs("div",{className:"min-h-screen bg-gray-50",children:[h.jsxs("section",{className:"relative h-screen flex items-center justify-center overflow-hidden",children:[h.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:"url(https://images.unsplash.com/photo-1585531454154-c8ad0a6af12b)"},children:h.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-electric-navy/90 via-electric-navy/80 to-electric-yellow/30"})}),h.jsxs(be.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"relative z-10 text-center px-4 max-w-5xl mx-auto",children:[h.jsxs("h1",{className:"text-5xl md:text-7xl font-bold text-white mb-6 leading-tight drop-shadow-lg",children:["Expert Electrical ",h.jsx("br",{}),h.jsx("span",{className:"text-electric-yellow",children:"Repair Services"})]}),h.jsx("p",{className:"text-xl md:text-2xl text-gray-100 mb-8 font-medium drop-shadow-md",children:"Fast, reliable, and energetic service for all your home appliances"}),h.jsx(Ut,{onClick:()=>e("/booking"),size:"lg",className:"bg-electric-yellow text-electric-navy hover:bg-yellow-400 hover:text-electric-navy text-lg px-8 py-6 rounded-full shadow-xl hover:shadow-electric-yellow/50 transition-all duration-300 font-bold border-2 border-transparent hover:border-white",children:"Book Appointment Now"})]})]}),h.jsx("section",{className:"py-20 px-4 bg-gray-50",children:h.jsxs("div",{className:"max-w-7xl mx-auto",children:[h.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[h.jsx("h2",{className:"text-4xl font-bold text-electric-navy mb-4",children:"Our Services"}),h.jsx("p",{className:"text-xl text-gray-600",children:"Professional repair services powered by expertise"})]}),h.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map((o,i)=>h.jsx(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.2},children:h.jsx(fA,{...o})},o.name))})]})}),h.jsxs("section",{className:"py-20 bg-electric-navy relative overflow-hidden",children:[h.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-electric-yellow/10 rounded-full blur-3xl translate-x-1/2 -translate-y-1/2"}),h.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-electric-yellow/10 rounded-full blur-3xl -translate-x-1/2 translate-y-1/2"}),h.jsx("div",{className:"max-w-7xl mx-auto px-4 relative z-10",children:h.jsx("div",{className:"grid md:grid-cols-3 gap-12",children:r.map((o,i)=>h.jsxs(be.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:i*.1},className:"text-center text-white",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 bg-electric-yellow/20 backdrop-blur-sm rounded-full mb-6 border border-electric-yellow/30",children:h.jsx(o.icon,{className:"w-10 h-10 text-electric-yellow"})}),h.jsx("div",{className:"text-5xl font-bold mb-2 text-white",children:o.value}),h.jsx("div",{className:"text-lg text-electric-yellow font-medium tracking-wide uppercase",children:o.label})]},o.label))})})]}),h.jsx("section",{className:"py-20 px-4",children:h.jsxs("div",{className:"max-w-7xl mx-auto",children:[h.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[h.jsx("h2",{className:"text-4xl font-bold text-electric-navy mb-4",children:"What Our Customers Say"}),h.jsx("p",{className:"text-xl text-gray-600",children:"Trusted by thousands of satisfied customers"})]}),h.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:n.map((o,i)=>h.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.2},className:"bg-white rounded-xl shadow-lg p-8 border-t-4 border-electric-yellow hover:shadow-2xl transition-all hover:-translate-y-1",children:[h.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(o.rating)].map((s,a)=>h.jsx(sA,{className:"w-5 h-5 fill-electric-yellow text-electric-yellow"},a))}),h.jsxs("p",{className:"text-electric-navy mb-6 italic text-lg leading-relaxed",children:['"',o.comment,'"']}),h.jsx("div",{className:"font-bold text-electric-navy text-lg",children:o.name})]},o.name))})]})}),h.jsx("section",{className:"py-20 px-4 bg-gradient-to-br from-electric-navy to-slate-900 text-center",children:h.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"max-w-4xl mx-auto",children:[h.jsx("h2",{className:"text-4xl font-bold text-electric-yellow mb-6",children:"Ready to Get Your Appliance Fixed?"}),h.jsx("p",{className:"text-xl text-white mb-10 max-w-2xl mx-auto",children:"Book an appointment today and experience professional repair service powered by experts."}),h.jsx(Ut,{onClick:()=>e("/booking"),size:"lg",className:"bg-electric-yellow text-electric-navy hover:bg-white hover:text-electric-navy text-lg px-10 py-6 rounded-full shadow-xl font-bold transition-all",children:"Schedule Your Repair"})]})})]})]})};var hA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ee=hA.reduce((e,t)=>{const n=v.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?_r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $y(e,t){e&&Zs.flushSync(()=>e.dispatchEvent(t))}var mA="Label",Wy=v.forwardRef((e,t)=>h.jsx(Ee.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Wy.displayName=mA;var Hy=Wy;const bn=H.forwardRef(({className:e,...t},n)=>h.jsx(Hy,{ref:n,className:je("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));bn.displayName=Hy.displayName;const gA=1;let Ja=0;function vA(){return Ja=(Ja+1)%Number.MAX_VALUE,Ja.toString()}const Me={state:{toasts:[]},listeners:[],getState:()=>Me.state,setState:e=>{typeof e=="function"?Me.state=e(Me.state):Me.state={...Me.state,...e},Me.listeners.forEach(t=>t(Me.state))},subscribe:e=>(Me.listeners.push(e),()=>{Me.listeners=Me.listeners.filter(t=>t!==e)})},yA=({...e})=>{const t=vA(),n=o=>Me.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>Me.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return Me.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,gA)})),{id:t,dismiss:r,update:n}};function ad(){const[e,t]=v.useState(Me.getState());return v.useEffect(()=>Me.subscribe(r=>{t(r)}),[]),v.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:yA,toasts:e.toasts}}const xA=({appointment:e})=>{const t=ea();return h.jsxs(be.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-xl shadow-2xl p-8 max-w-2xl mx-auto",children:[h.jsxs("div",{className:"text-center mb-8",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-green-100 rounded-full mb-4",children:h.jsx(rA,{className:"w-10 h-10 text-green-600"})}),h.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Booking Confirmed!"}),h.jsx("p",{className:"text-gray-600",children:"Your appointment has been successfully scheduled"})]}),h.jsxs("div",{className:"bg-gradient-to-br from-blue-50 to-purple-50 rounded-lg p-6 mb-6",children:[h.jsx("div",{className:"text-sm text-gray-600 mb-1",children:"Booking Reference"}),h.jsx("div",{className:"text-2xl font-bold text-blue-600",children:e.id})]}),h.jsxs("div",{className:"space-y-4 mb-8",children:[h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("div",{className:"bg-blue-100 p-2 rounded-lg",children:h.jsx(Fy,{className:"w-5 h-5 text-blue-600"})}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm text-gray-600",children:"Service & Date"}),h.jsxs("div",{className:"font-semibold text-gray-900",children:[e.serviceType," - ",new Date(e.date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})]})]})]}),h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("div",{className:"bg-purple-100 p-2 rounded-lg",children:h.jsx(Vy,{className:"w-5 h-5 text-purple-600"})}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm text-gray-600",children:"Time"}),h.jsx("div",{className:"font-semibold text-gray-900",children:e.time})]})]}),h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("div",{className:"bg-green-100 p-2 rounded-lg",children:h.jsx(lA,{className:"w-5 h-5 text-green-600"})}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm text-gray-600",children:"Customer Name"}),h.jsx("div",{className:"font-semibold text-gray-900",children:e.customerName})]})]}),h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("div",{className:"bg-yellow-100 p-2 rounded-lg",children:h.jsx(zy,{className:"w-5 h-5 text-yellow-600"})}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm text-gray-600",children:"Phone Number"}),h.jsx("div",{className:"font-semibold text-gray-900",children:e.phone})]})]}),h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("div",{className:"bg-red-100 p-2 rounded-lg",children:h.jsx(By,{className:"w-5 h-5 text-red-600"})}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm text-gray-600",children:"Address"}),h.jsx("div",{className:"font-semibold text-gray-900",children:e.address})]})]})]}),h.jsxs("div",{className:"flex gap-4",children:[h.jsx(Ut,{onClick:()=>t("/booking"),variant:"outline",className:"flex-1",children:"Book Another"}),h.jsx(Ut,{onClick:()=>t("/appointments"),className:"flex-1 bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white",children:"View All Appointments"})]})]})},wA=()=>{var g;const e=Ur(),{toast:t}=ad(),[n,r]=v.useState(!1),[o,i]=v.useState(null),[s,a]=v.useState({serviceType:((g=e.state)==null?void 0:g.selectedService)||"",date:"",time:"",customerName:"",phone:"",address:""}),[l,u]=v.useState({}),c=["Washing Machine","Geyser","Fridge"],d=["09:00","10:00","11:00","12:00","14:00","15:00","16:00","17:00"],f=()=>{const w={};if(s.serviceType||(w.serviceType="Please select a service"),!s.date)w.date="Please select a date";else{const p=new Date(s.date),m=new Date;m.setHours(0,0,0,0),p<m&&(w.date="Date cannot be in the past")}return s.time||(w.time="Please select a time"),s.customerName.trim()||(w.customerName="Please enter your name"),s.phone.trim()?/^\d{10}$/.test(s.phone.replace(/\D/g,""))||(w.phone="Please enter a valid 10-digit phone number"):w.phone="Please enter your phone number",s.address.trim()||(w.address="Please enter your address"),u(w),Object.keys(w).length===0},y=w=>{if(w.preventDefault(),!f()){t({variant:"destructive",title:"Validation Error",description:"Please fill in all required fields correctly."});return}const p={id:`APT-${Date.now()}`,...s,status:"pending",createdAt:new Date().toISOString()},m=JSON.parse(localStorage.getItem("appointments")||"[]");m.push(p),localStorage.setItem("appointments",JSON.stringify(m)),i(p),r(!0),t({title:"Success!",description:"Your appointment has been booked successfully."})},S=w=>{const{name:p,value:m}=w.target;a(x=>({...x,[p]:m})),l[p]&&u(x=>({...x,[p]:""}))};return n&&o?h.jsxs(h.Fragment,{children:[h.jsxs(zn,{children:[h.jsx("title",{children:"Appointment Confirmed - Quick Book Electrical"}),h.jsx("meta",{name:"description",content:"Your repair appointment has been confirmed. We'll contact you shortly."})]}),h.jsx("div",{className:"min-h-screen bg-gray-50 pt-24 pb-12 px-4",children:h.jsx(xA,{appointment:o})})]}):h.jsxs(h.Fragment,{children:[h.jsxs(zn,{children:[h.jsx("title",{children:"Book Appointment - Quick Book Electrical"}),h.jsx("meta",{name:"description",content:"Schedule your appliance repair appointment online. Fast, easy, and convenient booking."})]}),h.jsx("div",{className:"min-h-screen bg-gray-50 pt-24 pb-12 px-4",children:h.jsxs(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl mx-auto",children:[h.jsxs("div",{className:"text-center mb-8",children:[h.jsx("h1",{className:"text-4xl font-bold text-electric-navy mb-2",children:"Book Your Appointment"}),h.jsx("p",{className:"text-lg text-gray-600",children:"Fill in the details below to schedule your expert repair service"})]}),h.jsxs("div",{className:"bg-white rounded-xl shadow-xl p-8 border-t-8 border-electric-navy relative overflow-hidden",children:[h.jsx("div",{className:"absolute top-0 right-0 w-16 h-16 bg-gradient-to-bl from-electric-yellow to-transparent opacity-50"}),h.jsxs("form",{onSubmit:y,className:"space-y-6 relative z-10",children:[h.jsxs("div",{children:[h.jsxs(bn,{htmlFor:"serviceType",className:"text-electric-navy font-semibold",children:["Service Type ",h.jsx("span",{className:"text-red-500",children:"*"})]}),h.jsxs("select",{id:"serviceType",name:"serviceType",value:s.serviceType,onChange:S,className:"w-full mt-2 px-4 py-3 bg-white border border-electric-navy/20 rounded-lg focus:ring-2 focus:ring-electric-yellow focus:border-electric-yellow transition-all text-gray-900 shadow-sm",children:[h.jsx("option",{value:"",children:"Select a service"}),c.map(w=>h.jsxs("option",{value:w,children:[w," Repair"]},w))]}),l.serviceType&&h.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.serviceType})]}),h.jsxs("div",{children:[h.jsxs(bn,{htmlFor:"date",className:"text-electric-navy font-semibold",children:["Preferred Date ",h.jsx("span",{className:"text-red-500",children:"*"})]}),h.jsx("input",{type:"date",id:"date",name:"date",value:s.date,onChange:S,min:new Date().toISOString().split("T")[0],className:"w-full mt-2 px-4 py-3 bg-white border border-electric-navy/20 rounded-lg focus:ring-2 focus:ring-electric-yellow focus:border-electric-yellow transition-all text-gray-900 shadow-sm"}),l.date&&h.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.date})]}),h.jsxs("div",{children:[h.jsxs(bn,{htmlFor:"time",className:"text-electric-navy font-semibold",children:["Preferred Time ",h.jsx("span",{className:"text-red-500",children:"*"})]}),h.jsxs("select",{id:"time",name:"time",value:s.time,onChange:S,className:"w-full mt-2 px-4 py-3 bg-white border border-electric-navy/20 rounded-lg focus:ring-2 focus:ring-electric-yellow focus:border-electric-yellow transition-all text-gray-900 shadow-sm",children:[h.jsx("option",{value:"",children:"Select a time slot"}),d.map(w=>h.jsx("option",{value:w,children:w},w))]}),l.time&&h.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.time})]}),h.jsxs("div",{children:[h.jsxs(bn,{htmlFor:"customerName",className:"text-electric-navy font-semibold",children:["Full Name ",h.jsx("span",{className:"text-red-500",children:"*"})]}),h.jsx("input",{type:"text",id:"customerName",name:"customerName",value:s.customerName,onChange:S,placeholder:"Enter your full name",className:"w-full mt-2 px-4 py-3 bg-white border border-electric-navy/20 rounded-lg focus:ring-2 focus:ring-electric-yellow focus:border-electric-yellow transition-all text-gray-900 placeholder-gray-400 shadow-sm"}),l.customerName&&h.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.customerName})]}),h.jsxs("div",{children:[h.jsxs(bn,{htmlFor:"phone",className:"text-electric-navy font-semibold",children:["Phone Number ",h.jsx("span",{className:"text-red-500",children:"*"})]}),h.jsx("input",{type:"tel",id:"phone",name:"phone",value:s.phone,onChange:S,placeholder:"Enter your 10-digit phone number",className:"w-full mt-2 px-4 py-3 bg-white border border-electric-navy/20 rounded-lg focus:ring-2 focus:ring-electric-yellow focus:border-electric-yellow transition-all text-gray-900 placeholder-gray-400 shadow-sm"}),l.phone&&h.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.phone})]}),h.jsxs("div",{children:[h.jsxs(bn,{htmlFor:"address",className:"text-electric-navy font-semibold",children:["Service Address ",h.jsx("span",{className:"text-red-500",children:"*"})]}),h.jsx("textarea",{id:"address",name:"address",value:s.address,onChange:S,rows:3,placeholder:"Enter your complete address",className:"w-full mt-2 px-4 py-3 bg-white border border-electric-navy/20 rounded-lg focus:ring-2 focus:ring-electric-yellow focus:border-electric-yellow transition-all resize-none text-gray-900 placeholder-gray-400 shadow-sm"}),l.address&&h.jsx("p",{className:"text-red-500 text-sm mt-1",children:l.address})]}),h.jsx(Ut,{type:"submit",className:"w-full bg-electric-yellow text-electric-navy hover:bg-electric-navy hover:text-electric-yellow py-6 text-lg font-bold rounded-lg shadow-lg hover:shadow-xl transition-all",children:"Confirm Booking"})]})]})]})})]})};function SA(e,t){const n=v.createContext(t),r=i=>{const{children:s,...a}=i,l=v.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=v.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function sa(e,t=[]){let n=[];function r(i,s){const a=v.createContext(s),l=n.length;n=[...n,s];const u=d=>{var p;const{scope:f,children:y,...S}=d,g=((p=f==null?void 0:f[e])==null?void 0:p[l])||a,w=v.useMemo(()=>S,Object.values(S));return h.jsx(g.Provider,{value:w,children:y})};u.displayName=i+"Provider";function c(d,f){var g;const y=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,S=v.useContext(y);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,TA(o,...t)]}function TA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function fe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Qo=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},EA=Dh["useId".toString()]||(()=>{}),CA=0;function el(e){const[t,n]=v.useState(EA());return Qo(()=>{e||n(r=>r??String(CA++))},[e]),e||(t?`radix-${t}`:"")}function gt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ky({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=PA({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=gt(n),l=v.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else o(u)},[i,e,o,a]);return[s,l]}function PA({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),i=gt(t);return v.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function kA(e,t=globalThis==null?void 0:globalThis.document){const n=gt(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var bA="DismissableLayer",ku="dismissableLayer.update",AA="dismissableLayer.pointerDownOutside",NA="dismissableLayer.focusOutside",lh,Gy=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ld=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=v.useContext(Gy),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=v.useState({}),S=Qe(t,C=>d(C)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),p=g.indexOf(w),m=c?g.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,T=m>=p,E=jA(C=>{const k=C.target,D=[...u.branches].some(R=>R.contains(k));!T||D||(o==null||o(C),s==null||s(C),C.defaultPrevented||a==null||a())},f),P=DA(C=>{const k=C.target;[...u.branches].some(R=>R.contains(k))||(i==null||i(C),s==null||s(C),C.defaultPrevented||a==null||a())},f);return kA(C=>{m===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},f),v.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(lh=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),uh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=lh)}},[c,f,n,u]),v.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),uh())},[c,u]),v.useEffect(()=>{const C=()=>y({});return document.addEventListener(ku,C),()=>document.removeEventListener(ku,C)},[]),h.jsx(Ee.div,{...l,ref:S,style:{pointerEvents:x?T?"auto":"none":void 0,...e.style},onFocusCapture:fe(e.onFocusCapture,P.onFocusCapture),onBlurCapture:fe(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:fe(e.onPointerDownCapture,E.onPointerDownCapture)})});ld.displayName=bA;var RA="DismissableLayerBranch",Yy=v.forwardRef((e,t)=>{const n=v.useContext(Gy),r=v.useRef(null),o=Qe(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(Ee.div,{...e,ref:o})});Yy.displayName=RA;function jA(e,t=globalThis==null?void 0:globalThis.document){const n=gt(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Xy(AA,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function DA(e,t=globalThis==null?void 0:globalThis.document){const n=gt(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&Xy(NA,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function uh(){const e=new CustomEvent(ku);document.dispatchEvent(e)}function Xy(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$y(o,i):o.dispatchEvent(i)}var MA=ld,LA=Yy,tl="focusScope.autoFocusOnMount",nl="focusScope.autoFocusOnUnmount",ch={bubbles:!1,cancelable:!0},OA="FocusScope",Qy=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=v.useState(null),u=gt(o),c=gt(i),d=v.useRef(null),f=Qe(t,g=>l(g)),y=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let g=function(x){if(y.paused||!a)return;const T=x.target;a.contains(T)?d.current=T:Xt(d.current,{select:!0})},w=function(x){if(y.paused||!a)return;const T=x.relatedTarget;T!==null&&(a.contains(T)||Xt(d.current,{select:!0}))},p=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&Xt(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",w);const m=new MutationObserver(p);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),m.disconnect()}}},[r,a,y.paused]),v.useEffect(()=>{if(a){fh.add(y);const g=document.activeElement;if(!a.contains(g)){const p=new CustomEvent(tl,ch);a.addEventListener(tl,u),a.dispatchEvent(p),p.defaultPrevented||(_A(zA(qy(a)),{select:!0}),document.activeElement===g&&Xt(a))}return()=>{a.removeEventListener(tl,u),setTimeout(()=>{const p=new CustomEvent(nl,ch);a.addEventListener(nl,c),a.dispatchEvent(p),p.defaultPrevented||Xt(g??document.body,{select:!0}),a.removeEventListener(nl,c),fh.remove(y)},0)}}},[a,u,c,y]);const S=v.useCallback(g=>{if(!n&&!r||y.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,p=document.activeElement;if(w&&p){const m=g.currentTarget,[x,T]=IA(m);x&&T?!g.shiftKey&&p===T?(g.preventDefault(),n&&Xt(x,{select:!0})):g.shiftKey&&p===x&&(g.preventDefault(),n&&Xt(T,{select:!0})):p===m&&g.preventDefault()}},[n,r,y.paused]);return h.jsx(Ee.div,{tabIndex:-1,...s,ref:f,onKeyDown:S})});Qy.displayName=OA;function _A(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Xt(r,{select:t}),document.activeElement!==n)return}function IA(e){const t=qy(e),n=dh(t,e),r=dh(t.reverse(),e);return[n,r]}function qy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function dh(e,t){for(const n of e)if(!FA(n,{upTo:t}))return n}function FA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function VA(e){return e instanceof HTMLInputElement&&"select"in e}function Xt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&VA(e)&&t&&e.select()}}var fh=BA();function BA(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ph(e,t),e.unshift(t)},remove(t){var n;e=ph(e,t),(n=e[0])==null||n.resume()}}}function ph(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zA(e){return e.filter(t=>t.tagName!=="A")}var UA="Portal",ud=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);Qo(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Gw.createPortal(h.jsx(Ee.div,{...r,ref:t}),s):null});ud.displayName=UA;function $A(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var li=e=>{const{present:t,children:n}=e,r=WA(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Qe(r.ref,HA(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};li.displayName="Presence";function WA(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=$A(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Ri(r.current);i.current=a==="mounted"?u:"none"},[a]),Qo(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,y=Ri(u);e?l("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Qo(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=y=>{const g=Ri(r.current).includes(y.animationName);if(y.target===t&&g&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},f=y=>{y.target===t&&(i.current=Ri(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ri(e){return(e==null?void 0:e.animationName)||"none"}function HA(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rl=0;function KA(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hh()),document.body.insertAdjacentElement("beforeend",e[1]??hh()),rl++,()=>{rl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rl--}},[])}function hh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Tt=function(){return Tt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Tt.apply(this,arguments)};function Zy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function GA(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Ji="right-scroll-bar-position",es="width-before-scroll-bar",YA="with-scroll-bars-hidden",XA="--removed-body-scroll-bar-size";function ol(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function QA(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var qA=typeof window<"u"?v.useLayoutEffect:v.useEffect,mh=new WeakMap;function ZA(e,t){var n=QA(t||null,function(r){return e.forEach(function(o){return ol(o,r)})});return qA(function(){var r=mh.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||ol(a,null)}),i.forEach(function(a){o.has(a)||ol(a,s)})}mh.set(n,e)},[e]),n}function JA(e){return e}function eN(e,t){t===void 0&&(t=JA);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function tN(e){e===void 0&&(e={});var t=eN(null);return t.options=Tt({async:!0,ssr:!1},e),t}var Jy=function(e){var t=e.sideCar,n=Zy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Tt({},n))};Jy.isSideCarExport=!0;function nN(e,t){return e.useMedium(t),Jy}var e0=tN(),il=function(){},aa=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:il,onWheelCapture:il,onTouchMoveCapture:il}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,y=e.noIsolation,S=e.inert,g=e.allowPinchZoom,w=e.as,p=w===void 0?"div":w,m=e.gapMode,x=Zy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=f,E=ZA([n,t]),P=Tt(Tt({},x),o);return v.createElement(v.Fragment,null,c&&v.createElement(T,{sideCar:e0,removeScrollBar:u,shards:d,noIsolation:y,inert:S,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:m}),s?v.cloneElement(v.Children.only(a),Tt(Tt({},P),{ref:E})):v.createElement(p,Tt({},P,{className:l,ref:E}),a))});aa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};aa.classNames={fullWidth:es,zeroRight:Ji};var gh,rN=function(){if(gh)return gh;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rN();return t&&e.setAttribute("nonce",t),e}function iN(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sN(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aN=function(){var e=0,t=null;return{add:function(n){e==0&&(t=oN())&&(iN(t,n),sN(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lN=function(){var e=aN();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},t0=function(){var e=lN(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},uN={left:0,top:0,right:0,gap:0},sl=function(e){return parseInt(e||"",10)||0},cN=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[sl(n),sl(r),sl(o)]},dN=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return uN;var t=cN(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},fN=t0(),Cr="data-scroll-locked",pN=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat(YA,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(a,"px ").concat(r,`;
}
body[`).concat(Cr,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(s,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Ji,` {
right: `).concat(a,"px ").concat(r,`;
}
.`).concat(es,` {
margin-right: `).concat(a,"px ").concat(r,`;
}
.`).concat(Ji," .").concat(Ji,` {
right: 0 `).concat(r,`;
}
.`).concat(es," .").concat(es,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Cr,`] {
`).concat(XA,": ").concat(a,`px;
}
`)},vh=function(){var e=parseInt(document.body.getAttribute(Cr)||"0",10);return isFinite(e)?e:0},hN=function(){v.useEffect(function(){return document.body.setAttribute(Cr,(vh()+1).toString()),function(){var e=vh()-1;e<=0?document.body.removeAttribute(Cr):document.body.setAttribute(Cr,e.toString())}},[])},mN=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;hN();var i=v.useMemo(function(){return dN(o)},[o]);return v.createElement(fN,{styles:pN(i,!t,o,n?"":"!important")})},bu=!1;if(typeof window<"u")try{var ji=Object.defineProperty({},"passive",{get:function(){return bu=!0,!0}});window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{bu=!1}var Qn=bu?{passive:!1}:!1,gN=function(e){return e.tagName==="TEXTAREA"},n0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!gN(e)&&n[t]==="visible")},vN=function(e){return n0(e,"overflowY")},yN=function(e){return n0(e,"overflowX")},yh=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=r0(e,r);if(o){var i=o0(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xN=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wN=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},r0=function(e,t){return e==="v"?vN(t):yN(t)},o0=function(e,t){return e==="v"?xN(t):wN(t)},SN=function(e,t){return e==="h"&&t==="rtl"?-1:1},TN=function(e,t,n,r,o){var i=SN(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,d=0,f=0;do{var y=o0(e,a),S=y[0],g=y[1],w=y[2],p=g-w-i*S;(S||p)&&r0(e,a)&&(d+=p,f+=S),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(o&&Math.abs(d)<1||!o&&s>d)||!c&&(o&&Math.abs(f)<1||!o&&-s>f))&&(u=!0),u},Di=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xh=function(e){return[e.deltaX,e.deltaY]},wh=function(e){return e&&"current"in e?e.current:e},EN=function(e,t){return e[0]===t[0]&&e[1]===t[1]},CN=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},PN=0,qn=[];function kN(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(PN++)[0],i=v.useState(t0)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=GA([e.lockRef.current],(e.shards||[]).map(wh),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(g,w){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var p=Di(g),m=n.current,x="deltaX"in g?g.deltaX:m[0]-p[0],T="deltaY"in g?g.deltaY:m[1]-p[1],E,P=g.target,C=Math.abs(x)>Math.abs(T)?"h":"v";if("touches"in g&&C==="h"&&P.type==="range")return!1;var k=yh(C,P);if(!k)return!0;if(k?E=C:(E=C==="v"?"h":"v",k=yh(C,P)),!k)return!1;if(!r.current&&"changedTouches"in g&&(x||T)&&(r.current=E),!E)return!0;var D=r.current||E;return TN(D,w,g,D==="h"?x:T,!0)},[]),l=v.useCallback(function(g){var w=g;if(!(!qn.length||qn[qn.length-1]!==i)){var p="deltaY"in w?xh(w):Di(w),m=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&EN(E.delta,p)})[0];if(m&&m.should){w.cancelable&&w.preventDefault();return}if(!m){var x=(s.current.shards||[]).map(wh).filter(Boolean).filter(function(E){return E.contains(w.target)}),T=x.length>0?a(w,x[0]):!s.current.noIsolation;T&&w.cancelable&&w.preventDefault()}}},[]),u=v.useCallback(function(g,w,p,m){var x={name:g,delta:w,target:p,should:m,shadowParent:bN(p)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(T){return T!==x})},1)},[]),c=v.useCallback(function(g){n.current=Di(g),r.current=void 0},[]),d=v.useCallback(function(g){u(g.type,xh(g),g.target,a(g,e.lockRef.current))},[]),f=v.useCallback(function(g){u(g.type,Di(g),g.target,a(g,e.lockRef.current))},[]);v.useEffect(function(){return qn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Qn),document.addEventListener("touchmove",l,Qn),document.addEventListener("touchstart",c,Qn),function(){qn=qn.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,Qn),document.removeEventListener("touchmove",l,Qn),document.removeEventListener("touchstart",c,Qn)}},[]);var y=e.removeScrollBar,S=e.inert;return v.createElement(v.Fragment,null,S?v.createElement(i,{styles:CN(o)}):null,y?v.createElement(mN,{gapMode:e.gapMode}):null)}function bN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const AN=nN(e0,kN);var i0=v.forwardRef(function(e,t){return v.createElement(aa,Tt({},e,{ref:t,sideCar:AN}))});i0.classNames=aa.classNames;const NN=i0;var RN=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zn=new WeakMap,Mi=new WeakMap,Li={},al=0,s0=function(e){return e&&(e.host||s0(e.parentNode))},jN=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=s0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},DN=function(e,t,n,r){var o=jN(t,Array.isArray(e)?e:[e]);Li[n]||(Li[n]=new WeakMap);var i=Li[n],s=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))c(f);else try{var y=f.getAttribute(r),S=y!==null&&y!=="false",g=(Zn.get(f)||0)+1,w=(i.get(f)||0)+1;Zn.set(f,g),i.set(f,w),s.push(f),g===1&&S&&Mi.set(f,!0),w===1&&f.setAttribute(n,"true"),S||f.setAttribute(r,"true")}catch(p){console.error("aria-hidden: cannot operate on ",f,p)}})};return c(t),a.clear(),al++,function(){s.forEach(function(d){var f=Zn.get(d)-1,y=i.get(d)-1;Zn.set(d,f),i.set(d,y),f||(Mi.has(d)||d.removeAttribute(r),Mi.delete(d)),y||d.removeAttribute(n)}),al--,al||(Zn=new WeakMap,Zn=new WeakMap,Mi=new WeakMap,Li={})}},MN=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||RN(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),DN(r,o,n,"aria-hidden")):function(){return null}},cd="Dialog",[a0,l0]=sa(cd),[LN,vt]=a0(cd),u0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=v.useRef(null),l=v.useRef(null),[u=!1,c]=Ky({prop:r,defaultProp:o,onChange:i});return h.jsx(LN,{scope:t,triggerRef:a,contentRef:l,contentId:el(),titleId:el(),descriptionId:el(),open:u,onOpenChange:c,onOpenToggle:v.useCallback(()=>c(d=>!d),[c]),modal:s,children:n})};u0.displayName=cd;var c0="DialogTrigger",d0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vt(c0,n),i=Qe(t,o.triggerRef);return h.jsx(Ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":pd(o.open),...r,ref:i,onClick:fe(e.onClick,o.onOpenToggle)})});d0.displayName=c0;var dd="DialogPortal",[ON,f0]=a0(dd,{forceMount:void 0}),p0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=vt(dd,t);return h.jsx(ON,{scope:t,forceMount:n,children:v.Children.map(r,s=>h.jsx(li,{present:n||i.open,children:h.jsx(ud,{asChild:!0,container:o,children:s})}))})};p0.displayName=dd;var Os="DialogOverlay",h0=v.forwardRef((e,t)=>{const n=f0(Os,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vt(Os,e.__scopeDialog);return i.modal?h.jsx(li,{present:r||i.open,children:h.jsx(_N,{...o,ref:t})}):null});h0.displayName=Os;var _N=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vt(Os,n);return h.jsx(NN,{as:_r,allowPinchZoom:!0,shards:[o.contentRef],children:h.jsx(Ee.div,{"data-state":pd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Un="DialogContent",m0=v.forwardRef((e,t)=>{const n=f0(Un,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=vt(Un,e.__scopeDialog);return h.jsx(li,{present:r||i.open,children:i.modal?h.jsx(IN,{...o,ref:t}):h.jsx(FN,{...o,ref:t})})});m0.displayName=Un;var IN=v.forwardRef((e,t)=>{const n=vt(Un,e.__scopeDialog),r=v.useRef(null),o=Qe(t,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return MN(i)},[]),h.jsx(g0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fe(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:fe(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:fe(e.onFocusOutside,i=>i.preventDefault())})}),FN=v.forwardRef((e,t)=>{const n=vt(Un,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return h.jsx(g0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),g0=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=vt(Un,n),l=v.useRef(null),u=Qe(t,l);return KA(),h.jsxs(h.Fragment,{children:[h.jsx(Qy,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:h.jsx(ld,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":pd(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(BN,{titleId:a.titleId}),h.jsx(UN,{contentRef:l,descriptionId:a.descriptionId})]})]})}),fd="DialogTitle",v0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vt(fd,n);return h.jsx(Ee.h2,{id:o.titleId,...r,ref:t})});v0.displayName=fd;var y0="DialogDescription",x0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vt(y0,n);return h.jsx(Ee.p,{id:o.descriptionId,...r,ref:t})});x0.displayName=y0;var w0="DialogClose",S0=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=vt(w0,n);return h.jsx(Ee.button,{type:"button",...r,ref:t,onClick:fe(e.onClick,()=>o.onOpenChange(!1))})});S0.displayName=w0;function pd(e){return e?"open":"closed"}var T0="DialogTitleWarning",[VN,E0]=SA(T0,{contentName:Un,titleName:fd,docsSlug:"dialog"}),BN=({titleId:e})=>{const t=E0(T0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},zN="DialogDescriptionWarning",UN=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${E0(zN).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$N=u0,WN=d0,HN=p0,KN=h0,GN=m0,YN=v0,XN=x0,C0=S0,P0="AlertDialog",[QN,IR]=sa(P0,[l0]),Wt=l0(),k0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Wt(t);return h.jsx($N,{...r,...n,modal:!0})};k0.displayName=P0;var qN="AlertDialogTrigger",ZN=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wt(n);return h.jsx(WN,{...o,...r,ref:t})});ZN.displayName=qN;var JN="AlertDialogPortal",b0=e=>{const{__scopeAlertDialog:t,...n}=e,r=Wt(t);return h.jsx(HN,{...r,...n})};b0.displayName=JN;var eR="AlertDialogOverlay",A0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wt(n);return h.jsx(KN,{...o,...r,ref:t})});A0.displayName=eR;var Pr="AlertDialogContent",[tR,nR]=QN(Pr),N0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Wt(n),s=v.useRef(null),a=Qe(t,s),l=v.useRef(null);return h.jsx(VN,{contentName:Pr,titleName:R0,docsSlug:"alert-dialog",children:h.jsx(tR,{scope:n,cancelRef:l,children:h.jsxs(GN,{role:"alertdialog",...i,...o,ref:a,onOpenAutoFocus:fe(o.onOpenAutoFocus,u=>{var c;u.preventDefault(),(c=l.current)==null||c.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[h.jsx(Oy,{children:r}),h.jsx(oR,{contentRef:s})]})})})});N0.displayName=Pr;var R0="AlertDialogTitle",j0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wt(n);return h.jsx(YN,{...o,...r,ref:t})});j0.displayName=R0;var D0="AlertDialogDescription",M0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wt(n);return h.jsx(XN,{...o,...r,ref:t})});M0.displayName=D0;var rR="AlertDialogAction",L0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wt(n);return h.jsx(C0,{...o,...r,ref:t})});L0.displayName=rR;var O0="AlertDialogCancel",_0=v.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=nR(O0,n),i=Wt(n),s=Qe(t,o);return h.jsx(C0,{...i,...r,ref:s})});_0.displayName=O0;var oR=({contentRef:e})=>{const t=`\`${Pr}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${Pr}\` by passing a \`${D0}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Pr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},iR=k0,sR=b0,I0=A0,F0=N0,V0=L0,B0=_0,z0=j0,U0=M0;const aR=iR,lR=sR,$0=H.forwardRef(({className:e,...t},n)=>h.jsx(I0,{className:je("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));$0.displayName=I0.displayName;const W0=H.forwardRef(({className:e,...t},n)=>h.jsxs(lR,{children:[h.jsx($0,{}),h.jsx(F0,{ref:n,className:je("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));W0.displayName=F0.displayName;const H0=({className:e,...t})=>h.jsx("div",{className:je("flex flex-col space-y-2 text-center sm:text-left",e),...t});H0.displayName="AlertDialogHeader";const K0=({className:e,...t})=>h.jsx("div",{className:je("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});K0.displayName="AlertDialogFooter";const G0=H.forwardRef(({className:e,...t},n)=>h.jsx(z0,{ref:n,className:je("text-lg font-semibold text-gray-900",e),...t}));G0.displayName=z0.displayName;const Y0=H.forwardRef(({className:e,...t},n)=>h.jsx(U0,{ref:n,className:je("text-sm text-gray-600",e),...t}));Y0.displayName=U0.displayName;const X0=H.forwardRef(({className:e,...t},n)=>h.jsx(V0,{ref:n,className:je("inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t}));X0.displayName=V0.displayName;const Q0=H.forwardRef(({className:e,...t},n)=>h.jsx(B0,{ref:n,className:je("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-white px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:mt-0",e),...t}));Q0.displayName=B0.displayName;const uR=()=>{const[e,t]=v.useState([]),[n,r]=v.useState(null),{toast:o}=ad();v.useEffect(()=>{i()},[]);const i=()=>{const l=localStorage.getItem("appointments");if(l){const u=JSON.parse(l);t(u.sort((c,d)=>new Date(d.createdAt)-new Date(c.createdAt)))}},s=l=>{const u=e.filter(c=>c.id!==l);localStorage.setItem("appointments",JSON.stringify(u)),t(u),r(null),o({title:"Appointment Cancelled",description:"Your appointment has been cancelled successfully."})},a=l=>{const u={pending:"bg-yellow-500/20 text-yellow-300 border border-yellow-500/50",confirmed:"bg-green-500/20 text-green-300 border border-green-500/50",cancelled:"bg-red-500/20 text-red-300 border border-red-500/50"};return h.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wide ${u[l]||u.pending}`,children:l})};return e.length===0?h.jsxs(h.Fragment,{children:[h.jsxs(zn,{children:[h.jsx("title",{children:"My Appointments - Quick Book Electrical"}),h.jsx("meta",{name:"description",content:"View and manage your repair appointments."})]}),h.jsx("div",{className:"min-h-screen bg-gray-50 pt-24 pb-12 px-4",children:h.jsx("div",{className:"max-w-4xl mx-auto text-center",children:h.jsxs(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-electric-navy rounded-xl shadow-lg p-12 border border-electric-yellow/20",children:[h.jsx("div",{className:"bg-electric-navy-light w-24 h-24 rounded-full flex items-center justify-center mx-auto mb-6",children:h.jsx(nA,{className:"w-12 h-12 text-electric-yellow"})}),h.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"No Appointments Yet"}),h.jsx("p",{className:"text-gray-300 mb-8",children:"You haven't booked any appointments yet. Schedule your first expert repair service today!"}),h.jsx(Ut,{onClick:()=>window.location.href="/booking",className:"bg-electric-yellow text-electric-navy hover:bg-white hover:text-electric-navy font-bold text-lg px-8 py-4",children:"Book Your First Appointment"})]})})})]}):h.jsxs(h.Fragment,{children:[h.jsxs(zn,{children:[h.jsx("title",{children:"My Appointments - Quick Book Electrical"}),h.jsx("meta",{name:"description",content:"View and manage your repair appointments."})]}),h.jsxs("div",{className:"min-h-screen bg-gray-50 pt-24 pb-12 px-4",children:[h.jsxs("div",{className:"max-w-6xl mx-auto",children:[h.jsxs(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-8",children:[h.jsxs("h1",{className:"text-4xl font-bold text-electric-navy mb-2 flex items-center gap-3",children:[h.jsx(Uy,{className:"text-electric-yellow fill-electric-yellow"}),"My Appointments"]}),h.jsx("p",{className:"text-lg text-gray-600",children:"View and manage your scheduled repairs"})]}),h.jsx("div",{className:"space-y-6",children:e.map((l,u)=>h.jsx(be.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:u*.1},className:"bg-electric-navy rounded-xl shadow-xl p-6 hover:shadow-2xl transition-all border-l-4 border-electric-yellow text-white",children:h.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-6",children:[h.jsxs("div",{className:"flex-1",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[h.jsxs("h3",{className:"text-xl font-bold text-white",children:[l.serviceType," Repair"]}),a(l.status)]}),h.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[h.jsxs("div",{className:"flex items-center gap-3 text-gray-300",children:[h.jsx(Fy,{className:"w-5 h-5 text-electric-yellow"}),h.jsx("span",{children:new Date(l.date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]}),h.jsxs("div",{className:"flex items-center gap-3 text-gray-300",children:[h.jsx(Vy,{className:"w-5 h-5 text-electric-yellow"}),h.jsx("span",{children:l.time})]}),h.jsxs("div",{className:"flex items-center gap-3 text-gray-300",children:[h.jsx(zy,{className:"w-5 h-5 text-electric-yellow"}),h.jsx("span",{children:l.phone})]}),h.jsxs("div",{className:"flex items-center gap-3 text-gray-300",children:[h.jsx(By,{className:"w-5 h-5 text-electric-yellow"}),h.jsx("span",{className:"line-clamp-1",children:l.address})]})]}),h.jsxs("div",{className:"mt-4 text-xs font-mono text-gray-400 bg-electric-navy-light inline-block px-2 py-1 rounded",children:["ID: ",l.id]})]}),h.jsx("div",{className:"flex items-center gap-3 border-t md:border-t-0 md:border-l border-gray-700 pt-4 md:pt-0 md:pl-6",children:h.jsxs(Ut,{variant:"outline",size:"sm",onClick:()=>r(l.id),className:"text-red-300 hover:text-white hover:bg-red-600/50 border-red-500/30 w-full md:w-auto",children:[h.jsx(aA,{className:"w-4 h-4 mr-2"}),"Cancel"]})})]})},l.id))})]}),h.jsx(aR,{open:n!==null,onOpenChange:()=>r(null),children:h.jsxs(W0,{className:"bg-white border-electric-navy",children:[h.jsxs(H0,{children:[h.jsx(G0,{className:"text-electric-navy",children:"Cancel Appointment"}),h.jsx(Y0,{children:"Are you sure you want to cancel this appointment? This action cannot be undone."})]}),h.jsxs(K0,{children:[h.jsx(Q0,{className:"border-electric-navy text-electric-navy hover:bg-gray-100",children:"Keep Appointment"}),h.jsx(X0,{onClick:()=>s(n),className:"bg-red-600 hover:bg-red-700 text-white",children:"Cancel Appointment"})]})]})})]})]})};function cR(e){const t=e+"CollectionProvider",[n,r]=sa(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:S,children:g}=y,w=H.useRef(null),p=H.useRef(new Map).current;return h.jsx(o,{scope:S,itemMap:p,collectionRef:w,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=H.forwardRef((y,S)=>{const{scope:g,children:w}=y,p=i(a,g),m=Qe(S,p.collectionRef);return h.jsx(_r,{ref:m,children:w})});l.displayName=a;const u=e+"CollectionItemSlot",c="data-radix-collection-item",d=H.forwardRef((y,S)=>{const{scope:g,children:w,...p}=y,m=H.useRef(null),x=Qe(S,m),T=i(u,g);return H.useEffect(()=>(T.itemMap.set(m,{ref:m,...p}),()=>void T.itemMap.delete(m))),h.jsx(_r,{[c]:"",ref:x,children:w})});d.displayName=u;function f(y){const S=i(e+"CollectionConsumer",y);return H.useCallback(()=>{const w=S.collectionRef.current;if(!w)return[];const p=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(S.itemMap.values()).sort((T,E)=>p.indexOf(T.ref.current)-p.indexOf(E.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},f,r]}var dR="VisuallyHidden",hd=v.forwardRef((e,t)=>h.jsx(Ee.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));hd.displayName=dR;var md="ToastProvider",[gd,fR,pR]=cR("Toast"),[q0,FR]=sa("Toast",[pR]),[hR,la]=q0(md),Z0=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=v.useState(null),[u,c]=v.useState(0),d=v.useRef(!1),f=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${md}\`. Expected non-empty \`string\`.`),h.jsx(gd.Provider,{scope:t,children:h.jsx(hR,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>c(y=>y+1),[]),onToastRemove:v.useCallback(()=>c(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};Z0.displayName=md;var J0="ToastViewport",mR=["F8"],Au="toast.viewportPause",Nu="toast.viewportResume",ex=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=mR,label:o="Notifications ({hotkey})",...i}=e,s=la(J0,n),a=fR(n),l=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=Qe(t,d,s.onViewportChange),y=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=s.toastCount>0;v.useEffect(()=>{const w=p=>{var x;r.length!==0&&r.every(T=>p[T]||p.code===T)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),v.useEffect(()=>{const w=l.current,p=d.current;if(S&&w&&p){const m=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(Au);p.dispatchEvent(P),s.isClosePausedRef.current=!0}},x=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(Nu);p.dispatchEvent(P),s.isClosePausedRef.current=!1}},T=P=>{!w.contains(P.relatedTarget)&&x()},E=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",m),w.addEventListener("focusout",T),w.addEventListener("pointermove",m),w.addEventListener("pointerleave",E),window.addEventListener("blur",m),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",m),w.removeEventListener("focusout",T),w.removeEventListener("pointermove",m),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",m),window.removeEventListener("focus",x)}}},[S,s.isClosePausedRef]);const g=v.useCallback(({tabbingDirection:w})=>{const m=a().map(x=>{const T=x.ref.current,E=[T,...AR(T)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?m.reverse():m).flat()},[a]);return v.useEffect(()=>{const w=d.current;if(w){const p=m=>{var E,P,C;const x=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!x){const k=document.activeElement,D=m.shiftKey;if(m.target===w&&D){(E=u.current)==null||E.focus();return}const I=g({tabbingDirection:D?"backwards":"forwards"}),De=I.findIndex(O=>O===k);ll(I.slice(De+1))?m.preventDefault():D?(P=u.current)==null||P.focus():(C=c.current)==null||C.focus()}};return w.addEventListener("keydown",p),()=>w.removeEventListener("keydown",p)}},[a,g]),h.jsxs(LA,{ref:l,role:"region","aria-label":o.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&h.jsx(Ru,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});ll(w)}}),h.jsx(gd.Slot,{scope:n,children:h.jsx(Ee.ol,{tabIndex:-1,...i,ref:f})}),S&&h.jsx(Ru,{ref:c,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});ll(w)}})]})});ex.displayName=J0;var tx="ToastFocusProxy",Ru=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=la(tx,n);return h.jsx(hd,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Ru.displayName=tx;var ua="Toast",gR="toast.swipeStart",vR="toast.swipeMove",yR="toast.swipeCancel",xR="toast.swipeEnd",nx=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a=!0,l]=Ky({prop:r,defaultProp:o,onChange:i});return h.jsx(li,{present:n||a,children:h.jsx(TR,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:gt(e.onPause),onResume:gt(e.onResume),onSwipeStart:fe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:fe(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:fe(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:fe(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});nx.displayName=ua;var[wR,SR]=q0(ua,{onClose(){}}),TR=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:y,...S}=e,g=la(ua,n),[w,p]=v.useState(null),m=Qe(t,O=>p(O)),x=v.useRef(null),T=v.useRef(null),E=o||g.duration,P=v.useRef(0),C=v.useRef(E),k=v.useRef(0),{onToastAdd:D,onToastRemove:R}=g,U=gt(()=>{var he;(w==null?void 0:w.contains(document.activeElement))&&((he=g.viewport)==null||he.focus()),s()}),I=v.useCallback(O=>{!O||O===1/0||(window.clearTimeout(k.current),P.current=new Date().getTime(),k.current=window.setTimeout(U,O))},[U]);v.useEffect(()=>{const O=g.viewport;if(O){const he=()=>{I(C.current),u==null||u()},me=()=>{const W=new Date().getTime()-P.current;C.current=C.current-W,window.clearTimeout(k.current),l==null||l()};return O.addEventListener(Au,me),O.addEventListener(Nu,he),()=>{O.removeEventListener(Au,me),O.removeEventListener(Nu,he)}}},[g.viewport,E,l,u,I]),v.useEffect(()=>{i&&!g.isClosePausedRef.current&&I(E)},[i,E,g.isClosePausedRef,I]),v.useEffect(()=>(D(),()=>R()),[D,R]);const De=v.useMemo(()=>w?ux(w):null,[w]);return g.viewport?h.jsxs(h.Fragment,{children:[De&&h.jsx(ER,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:De}),h.jsx(wR,{scope:n,onClose:U,children:Zs.createPortal(h.jsx(gd.ItemSlot,{scope:n,children:h.jsx(MA,{asChild:!0,onEscapeKeyDown:fe(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||U(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(Ee.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...S,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:fe(e.onKeyDown,O=>{O.key==="Escape"&&(a==null||a(O.nativeEvent),O.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:fe(e.onPointerDown,O=>{O.button===0&&(x.current={x:O.clientX,y:O.clientY})}),onPointerMove:fe(e.onPointerMove,O=>{if(!x.current)return;const he=O.clientX-x.current.x,me=O.clientY-x.current.y,W=!!T.current,A=["left","right"].includes(g.swipeDirection),j=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,L=A?j(0,he):0,B=A?0:j(0,me),oe=O.pointerType==="touch"?10:2,bt={x:L,y:B},yt={originalEvent:O,delta:bt};W?(T.current=bt,Oi(vR,d,yt,{discrete:!1})):Sh(bt,g.swipeDirection,oe)?(T.current=bt,Oi(gR,c,yt,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(he)>oe||Math.abs(me)>oe)&&(x.current=null)}),onPointerUp:fe(e.onPointerUp,O=>{const he=T.current,me=O.target;if(me.hasPointerCapture(O.pointerId)&&me.releasePointerCapture(O.pointerId),T.current=null,x.current=null,he){const W=O.currentTarget,A={originalEvent:O,delta:he};Sh(he,g.swipeDirection,g.swipeThreshold)?Oi(xR,y,A,{discrete:!0}):Oi(yR,f,A,{discrete:!0}),W.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),ER=e=>{const{__scopeToast:t,children:n,...r}=e,o=la(ua,t),[i,s]=v.useState(!1),[a,l]=v.useState(!1);return kR(()=>s(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:h.jsx(ud,{asChild:!0,children:h.jsx(hd,{...r,children:i&&h.jsxs(h.Fragment,{children:[o.label," ",n]})})})},CR="ToastTitle",rx=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(Ee.div,{...r,ref:t})});rx.displayName=CR;var PR="ToastDescription",ox=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(Ee.div,{...r,ref:t})});ox.displayName=PR;var ix="ToastAction",sx=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(lx,{altText:n,asChild:!0,children:h.jsx(vd,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ix}\`. Expected non-empty \`string\`.`),null)});sx.displayName=ix;var ax="ToastClose",vd=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=SR(ax,n);return h.jsx(lx,{asChild:!0,children:h.jsx(Ee.button,{type:"button",...r,ref:t,onClick:fe(e.onClick,o.onClose)})})});vd.displayName=ax;var lx=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return h.jsx(Ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function ux(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),bR(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...ux(r))}}),t}function Oi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$y(o,i):o.dispatchEvent(i)}var Sh=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function kR(e=()=>{}){const t=gt(e);Qo(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function bR(e){return e.nodeType===e.ELEMENT_NODE}function AR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ll(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var NR=Z0,cx=ex,dx=nx,fx=rx,px=ox,hx=sx,mx=vd;const RR=NR,gx=H.forwardRef(({className:e,...t},n)=>h.jsx(cx,{ref:n,className:je("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));gx.displayName=cx.displayName;const jR=_y("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),vx=H.forwardRef(({className:e,variant:t,...n},r)=>h.jsx(dx,{ref:r,className:je(jR({variant:t}),e),...n}));vx.displayName=dx.displayName;const DR=H.forwardRef(({className:e,...t},n)=>h.jsx(hx,{ref:n,className:je("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));DR.displayName=hx.displayName;const yx=H.forwardRef(({className:e,...t},n)=>h.jsx(mx,{ref:n,className:je("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:h.jsx(dA,{className:"h-4 w-4"})}));yx.displayName=mx.displayName;const xx=H.forwardRef(({className:e,...t},n)=>h.jsx(fx,{ref:n,className:je("text-sm font-semibold",e),...t}));xx.displayName=fx.displayName;const wx=H.forwardRef(({className:e,...t},n)=>h.jsx(px,{ref:n,className:je("text-sm opacity-90",e),...t}));wx.displayName=px.displayName;function MR(){const{toasts:e}=ad();return h.jsxs(RR,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>h.jsxs(vx,{...i,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(xx,{children:n}),r&&h.jsx(wx,{children:r})]}),o,h.jsx(yx,{})]},t)),h.jsx(gx,{})]})}function LR(){return h.jsx(HS,{children:h.jsxs("div",{className:"min-h-screen",children:[h.jsx(wk,{}),h.jsxs(FS,{children:[h.jsx(Yi,{path:"/",element:h.jsx(pA,{})}),h.jsx(Yi,{path:"/booking",element:h.jsx(wA,{})}),h.jsx(Yi,{path:"/appointments",element:h.jsx(uR,{})})]}),h.jsx(MR,{})]})})}ul.createRoot(document.getElementById("root")).render(h.jsx(LR,{}));