var Ub=Object.defineProperty;var gh=e=>{throw TypeError(e)};var Wb=(e,t,n)=>t in e?Ub(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qt=(e,t,n)=>Wb(e,typeof t!="symbol"?t+"":t,n),Ml=(e,t,n)=>t.has(e)||gh("Cannot "+n);var T=(e,t,n)=>(Ml(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?gh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),z=(e,t,n,r)=>(Ml(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Se=(e,t,n)=>(Ml(e,t,"access private method"),n);var fo=(e,t,n,r)=>({set _(s){z(e,t,s,n)},get _(){return T(e,t,r)}});function qb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(r,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();function Ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ug={exports:{}},el={},Wg={exports:{}},W={};/**
 * @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 Qa=Symbol.for("react.element"),Kb=Symbol.for("react.portal"),Gb=Symbol.for("react.fragment"),Yb=Symbol.for("react.strict_mode"),Qb=Symbol.for("react.profiler"),Xb=Symbol.for("react.provider"),Zb=Symbol.for("react.context"),Jb=Symbol.for("react.forward_ref"),e1=Symbol.for("react.suspense"),t1=Symbol.for("react.memo"),n1=Symbol.for("react.lazy"),xh=Symbol.iterator;function r1(e){return e===null||typeof e!="object"?null:(e=xh&&e[xh]||e["@@iterator"],typeof e=="function"?e:null)}var qg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kg=Object.assign,Gg={};function As(e,t,n){this.props=e,this.context=t,this.refs=Gg,this.updater=n||qg}As.prototype.isReactComponent={};As.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")};As.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yg(){}Yg.prototype=As.prototype;function yd(e,t,n){this.props=e,this.context=t,this.refs=Gg,this.updater=n||qg}var vd=yd.prototype=new Yg;vd.constructor=yd;Kg(vd,As.prototype);vd.isPureReactComponent=!0;var yh=Array.isArray,Qg=Object.prototype.hasOwnProperty,wd={current:null},Xg={key:!0,ref:!0,__self:!0,__source:!0};function Zg(e,t,n){var r,s={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Qg.call(t,r)&&!Xg.hasOwnProperty(r)&&(s[r]=t[r]);var i=arguments.length-2;if(i===1)s.children=n;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)s[r]===void 0&&(s[r]=i[r]);return{$$typeof:Qa,type:e,key:a,ref:o,props:s,_owner:wd.current}}function s1(e,t){return{$$typeof:Qa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qa}function a1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vh=/\/+/g;function Dl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?a1(""+e.key):t.toString(36)}function Ho(e,t,n,r,s){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Qa:case Kb:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Dl(o,0):r,yh(s)?(n="",e!=null&&(n=e.replace(vh,"$&/")+"/"),Ho(s,t,n,"",function(u){return u})):s!=null&&(bd(s)&&(s=s1(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(vh,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",yh(e))for(var i=0;i<e.length;i++){a=e[i];var l=r+Dl(a,i);o+=Ho(a,t,n,l,s)}else if(l=r1(e),typeof l=="function")for(e=l.call(e),i=0;!(a=e.next()).done;)a=a.value,l=r+Dl(a,i++),o+=Ho(a,t,n,l,s);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ho(e,t,n){if(e==null)return e;var r=[],s=0;return Ho(e,r,"","",function(a){return t.call(n,a,s++)}),r}function o1(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 Ve={current:null},$o={transition:null},i1={ReactCurrentDispatcher:Ve,ReactCurrentBatchConfig:$o,ReactCurrentOwner:wd};function Jg(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:ho,forEach:function(e,t,n){ho(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ho(e,function(){t++}),t},toArray:function(e){return ho(e,function(t){return t})||[]},only:function(e){if(!bd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=As;W.Fragment=Gb;W.Profiler=Qb;W.PureComponent=yd;W.StrictMode=Yb;W.Suspense=e1;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i1;W.act=Jg;W.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=Kg({},e.props),s=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=wd.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)Qg.call(t,l)&&!Xg.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:Qa,type:e.type,key:s,ref:a,props:r,_owner:o}};W.createContext=function(e){return e={$$typeof:Zb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Xb,_context:e},e.Consumer=e};W.createElement=Zg;W.createFactory=function(e){var t=Zg.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:Jb,render:e}};W.isValidElement=bd;W.lazy=function(e){return{$$typeof:n1,_payload:{_status:-1,_result:e},_init:o1}};W.memo=function(e,t){return{$$typeof:t1,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=$o.transition;$o.transition={};try{e()}finally{$o.transition=t}};W.unstable_act=Jg;W.useCallback=function(e,t){return Ve.current.useCallback(e,t)};W.useContext=function(e){return Ve.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return Ve.current.useDeferredValue(e)};W.useEffect=function(e,t){return Ve.current.useEffect(e,t)};W.useId=function(){return Ve.current.useId()};W.useImperativeHandle=function(e,t,n){return Ve.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Ve.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Ve.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Ve.current.useMemo(e,t)};W.useReducer=function(e,t,n){return Ve.current.useReducer(e,t,n)};W.useRef=function(e){return Ve.current.useRef(e)};W.useState=function(e){return Ve.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return Ve.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Ve.current.useTransition()};W.version="18.3.1";Wg.exports=W;var w=Wg.exports;const Bt=Ji(w),Pd=qb({__proto__:null,default:Bt},[w]);/**
 * @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 l1=w,c1=Symbol.for("react.element"),u1=Symbol.for("react.fragment"),d1=Object.prototype.hasOwnProperty,f1=l1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h1={key:!0,ref:!0,__self:!0,__source:!0};function ex(e,t,n){var r,s={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)d1.call(t,r)&&!h1.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:c1,type:e,key:a,ref:o,props:s,_owner:f1.current}}el.Fragment=u1;el.jsx=ex;el.jsxs=ex;Ug.exports=el;var c=Ug.exports,tx={exports:{}},tt={},nx={exports:{}},rx={};/**
 * @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(E,M){var _=E.length;E.push(M);e:for(;0<_;){var B=_-1>>>1,Y=E[B];if(0<s(Y,M))E[B]=M,E[_]=Y,_=B;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var M=E[0],_=E.pop();if(_!==M){E[0]=_;e:for(var B=0,Y=E.length,mt=Y>>>1;B<mt;){var rt=2*(B+1)-1,zs=E[rt],Yt=rt+1,Lr=E[Yt];if(0>s(zs,_))Yt<Y&&0>s(Lr,zs)?(E[B]=Lr,E[Yt]=_,B=Yt):(E[B]=zs,E[rt]=_,B=rt);else if(Yt<Y&&0>s(Lr,_))E[B]=Lr,E[Yt]=_,B=Yt;else break e}}return M}function s(E,M){var _=E.sortIndex-M.sortIndex;return _!==0?_:E.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,i=o.now();e.unstable_now=function(){return o.now()-i}}var l=[],u=[],d=1,f=null,h=3,m=!1,x=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(E){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=E)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function P(E){if(v=!1,y(E),!x)if(n(l)!==null)x=!0,V(S);else{var M=n(u);M!==null&&K(P,M.startTime-E)}}function S(E,M){x=!1,v&&(v=!1,g(C),C=-1),m=!0;var _=h;try{for(y(M),f=n(l);f!==null&&(!(f.expirationTime>M)||E&&!I());){var B=f.callback;if(typeof B=="function"){f.callback=null,h=f.priorityLevel;var Y=B(f.expirationTime<=M);M=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(l)&&r(l),y(M)}else r(l);f=n(l)}if(f!==null)var mt=!0;else{var rt=n(u);rt!==null&&K(P,rt.startTime-M),mt=!1}return mt}finally{f=null,h=_,m=!1}}var k=!1,j=null,C=-1,A=5,N=-1;function I(){return!(e.unstable_now()-N<A)}function O(){if(j!==null){var E=e.unstable_now();N=E;var M=!0;try{M=j(!0,E)}finally{M?H():(k=!1,j=null)}}else k=!1}var H;if(typeof p=="function")H=function(){p(O)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,$=D.port2;D.port1.onmessage=O,H=function(){$.postMessage(null)}}else H=function(){b(O,0)};function V(E){j=E,k||(k=!0,H())}function K(E,M){C=b(function(){E(e.unstable_now())},M)}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(E){E.callback=null},e.unstable_continueExecution=function(){x||m||(x=!0,V(S))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(E){switch(h){case 1:case 2:case 3:var M=3;break;default:M=h}var _=h;h=M;try{return E()}finally{h=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,M){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var _=h;h=E;try{return M()}finally{h=_}},e.unstable_scheduleCallback=function(E,M,_){var B=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?B+_:B):_=B,E){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=_+Y,E={id:d++,callback:M,priorityLevel:E,startTime:_,expirationTime:Y,sortIndex:-1},_>B?(E.sortIndex=_,t(u,E),n(l)===null&&E===n(u)&&(v?(g(C),C=-1):v=!0,K(P,_-B))):(E.sortIndex=Y,t(l,E),x||m||(x=!0,V(S))),E},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(E){var M=h;return function(){var _=h;h=M;try{return E.apply(this,arguments)}finally{h=_}}}})(rx);nx.exports=rx;var p1=nx.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 m1=w,et=p1;function R(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 sx=new Set,ba={};function Nr(e,t){vs(e,t),vs(e+"Capture",t)}function vs(e,t){for(ba[e]=t,e=0;e<t.length;e++)sx.add(t[e])}var ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=Object.prototype.hasOwnProperty,g1=/^[: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]*$/,wh={},bh={};function x1(e){return Oc.call(bh,e)?!0:Oc.call(wh,e)?!1:g1.test(e)?bh[e]=!0:(wh[e]=!0,!1)}function y1(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 v1(e,t,n,r){if(t===null||typeof t>"u"||y1(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 ze(e,t,n,r,s,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new ze(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){Te[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sd=/[\-:]([a-z])/g;function kd(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(Sd,kd);Te[t]=new ze(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(Sd,kd);Te[t]=new ze(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(Sd,kd);Te[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cd(e,t,n,r){var s=Te.hasOwnProperty(t)?Te[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(v1(t,n,s,r)&&(n=null),r||s===null?x1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var pn=m1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,po=Symbol.for("react.element"),Vr=Symbol.for("react.portal"),zr=Symbol.for("react.fragment"),jd=Symbol.for("react.strict_mode"),Lc=Symbol.for("react.profiler"),ax=Symbol.for("react.provider"),ox=Symbol.for("react.context"),Ed=Symbol.for("react.forward_ref"),Ic=Symbol.for("react.suspense"),Fc=Symbol.for("react.suspense_list"),Td=Symbol.for("react.memo"),bn=Symbol.for("react.lazy"),ix=Symbol.for("react.offscreen"),Ph=Symbol.iterator;function Hs(e){return e===null||typeof e!="object"?null:(e=Ph&&e[Ph]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Object.assign,Ol;function ta(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||""}return`
`+Ol+e}var Ll=!1;function Il(e,t){if(!e||Ll)return"";Ll=!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 s=u.stack.split(`
`),a=r.stack.split(`
`),o=s.length-1,i=a.length-1;1<=o&&0<=i&&s[o]!==a[i];)i--;for(;1<=o&&0<=i;o--,i--)if(s[o]!==a[i]){if(o!==1||i!==1)do if(o--,i--,0>i||s[o]!==a[i]){var l=`
`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=i);break}}}finally{Ll=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ta(e):""}function w1(e){switch(e.tag){case 5:return ta(e.type);case 16:return ta("Lazy");case 13:return ta("Suspense");case 19:return ta("SuspenseList");case 0:case 2:case 15:return e=Il(e.type,!1),e;case 11:return e=Il(e.type.render,!1),e;case 1:return e=Il(e.type,!0),e;default:return""}}function _c(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 zr:return"Fragment";case Vr:return"Portal";case Lc:return"Profiler";case jd:return"StrictMode";case Ic:return"Suspense";case Fc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ox:return(e.displayName||"Context")+".Consumer";case ax:return(e._context.displayName||"Context")+".Provider";case Ed:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Td:return t=e.displayName||null,t!==null?t:_c(e.type)||"Memo";case bn:t=e._payload,e=e._init;try{return _c(e(t))}catch{}}return null}function b1(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 _c(t);case 8:return t===jd?"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 Un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function P1(e){var t=lx(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 s=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mo(e){e._valueTracker||(e._valueTracker=P1(e))}function cx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fi(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 Vc(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Un(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 ux(e,t){t=t.checked,t!=null&&Cd(e,"checked",t,!1)}function zc(e,t){ux(e,t);var n=Un(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")?Bc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bc(e,t.type,Un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kh(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 Bc(e,t,n){(t!=="number"||fi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var na=Array.isArray;function es(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Un(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Hc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ch(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(na(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Un(n)}}function dx(e,t){var n=Un(t.value),r=Un(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 jh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fx(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 $c(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var go,hx=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(go=go||document.createElement("div"),go.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=go.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var oa={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},S1=["Webkit","ms","Moz","O"];Object.keys(oa).forEach(function(e){S1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),oa[t]=oa[e]})});function px(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||oa.hasOwnProperty(e)&&oa[e]?(""+t).trim():t+"px"}function mx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=px(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var k1=ie({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 Uc(e,t){if(t){if(k1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Wc(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 qc=null;function Nd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kc=null,ts=null,ns=null;function Eh(e){if(e=Ja(e)){if(typeof Kc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=al(t),Kc(e.stateNode,e.type,t))}}function gx(e){ts?ns?ns.push(e):ns=[e]:ts=e}function xx(){if(ts){var e=ts,t=ns;if(ns=ts=null,Eh(e),t)for(e=0;e<t.length;e++)Eh(t[e])}}function yx(e,t){return e(t)}function vx(){}var Fl=!1;function wx(e,t,n){if(Fl)return e(t,n);Fl=!0;try{return yx(e,t,n)}finally{Fl=!1,(ts!==null||ns!==null)&&(vx(),xx())}}function Sa(e,t){var n=e.stateNode;if(n===null)return null;var r=al(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(R(231,t,typeof n));return n}var Gc=!1;if(ln)try{var $s={};Object.defineProperty($s,"passive",{get:function(){Gc=!0}}),window.addEventListener("test",$s,$s),window.removeEventListener("test",$s,$s)}catch{Gc=!1}function C1(e,t,n,r,s,a,o,i,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var ia=!1,hi=null,pi=!1,Yc=null,j1={onError:function(e){ia=!0,hi=e}};function E1(e,t,n,r,s,a,o,i,l){ia=!1,hi=null,C1.apply(j1,arguments)}function T1(e,t,n,r,s,a,o,i,l){if(E1.apply(this,arguments),ia){if(ia){var u=hi;ia=!1,hi=null}else throw Error(R(198));pi||(pi=!0,Yc=u)}}function Ar(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 bx(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 Th(e){if(Ar(e)!==e)throw Error(R(188))}function N1(e){var t=e.alternate;if(!t){if(t=Ar(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var a=s.alternate;if(a===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===a.child){for(a=s.child;a;){if(a===n)return Th(s),e;if(a===r)return Th(s),t;a=a.sibling}throw Error(R(188))}if(n.return!==r.return)n=s,r=a;else{for(var o=!1,i=s.child;i;){if(i===n){o=!0,n=s,r=a;break}if(i===r){o=!0,r=s,n=a;break}i=i.sibling}if(!o){for(i=a.child;i;){if(i===n){o=!0,n=a,r=s;break}if(i===r){o=!0,r=a,n=s;break}i=i.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Px(e){return e=N1(e),e!==null?Sx(e):null}function Sx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Sx(e);if(t!==null)return t;e=e.sibling}return null}var kx=et.unstable_scheduleCallback,Nh=et.unstable_cancelCallback,A1=et.unstable_shouldYield,R1=et.unstable_requestPaint,de=et.unstable_now,M1=et.unstable_getCurrentPriorityLevel,Ad=et.unstable_ImmediatePriority,Cx=et.unstable_UserBlockingPriority,mi=et.unstable_NormalPriority,D1=et.unstable_LowPriority,jx=et.unstable_IdlePriority,tl=null,$t=null;function O1(e){if($t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(tl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ct=Math.clz32?Math.clz32:F1,L1=Math.log,I1=Math.LN2;function F1(e){return e>>>=0,e===0?32:31-(L1(e)/I1|0)|0}var xo=64,yo=4194304;function ra(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 gi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var i=o&~s;i!==0?r=ra(i):(a&=o,a!==0&&(r=ra(a)))}else o=n&~s,o!==0?r=ra(o):a!==0&&(r=ra(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,a=t&-t,s>=a||s===16&&(a&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-Ct(t),s=1<<n,r|=e[n],t&=~s;return r}function _1(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 V1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ct(a),i=1<<o,l=s[o];l===-1?(!(i&n)||i&r)&&(s[o]=_1(i,t)):l<=t&&(e.expiredLanes|=i),a&=~i}}function Qc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ex(){var e=xo;return xo<<=1,!(xo&4194240)&&(xo=64),e}function _l(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function z1(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 s=31-Ct(n),a=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~a}}function Rd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ct(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var X=0;function Tx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Nx,Md,Ax,Rx,Mx,Xc=!1,vo=[],Ln=null,In=null,Fn=null,ka=new Map,Ca=new Map,Sn=[],B1="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 Ah(e,t){switch(e){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":ka.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ca.delete(t.pointerId)}}function Us(e,t,n,r,s,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[s]},t!==null&&(t=Ja(t),t!==null&&Md(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function H1(e,t,n,r,s){switch(t){case"focusin":return Ln=Us(Ln,e,t,n,r,s),!0;case"dragenter":return In=Us(In,e,t,n,r,s),!0;case"mouseover":return Fn=Us(Fn,e,t,n,r,s),!0;case"pointerover":var a=s.pointerId;return ka.set(a,Us(ka.get(a)||null,e,t,n,r,s)),!0;case"gotpointercapture":return a=s.pointerId,Ca.set(a,Us(Ca.get(a)||null,e,t,n,r,s)),!0}return!1}function Dx(e){var t=ir(e.target);if(t!==null){var n=Ar(t);if(n!==null){if(t=n.tag,t===13){if(t=bx(n),t!==null){e.blockedOn=t,Mx(e.priority,function(){Ax(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 Uo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qc=r,n.target.dispatchEvent(r),qc=null}else return t=Ja(n),t!==null&&Md(t),e.blockedOn=n,!1;t.shift()}return!0}function Rh(e,t,n){Uo(e)&&n.delete(t)}function $1(){Xc=!1,Ln!==null&&Uo(Ln)&&(Ln=null),In!==null&&Uo(In)&&(In=null),Fn!==null&&Uo(Fn)&&(Fn=null),ka.forEach(Rh),Ca.forEach(Rh)}function Ws(e,t){e.blockedOn===t&&(e.blockedOn=null,Xc||(Xc=!0,et.unstable_scheduleCallback(et.unstable_NormalPriority,$1)))}function ja(e){function t(s){return Ws(s,e)}if(0<vo.length){Ws(vo[0],e);for(var n=1;n<vo.length;n++){var r=vo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ln!==null&&Ws(Ln,e),In!==null&&Ws(In,e),Fn!==null&&Ws(Fn,e),ka.forEach(t),Ca.forEach(t),n=0;n<Sn.length;n++)r=Sn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Sn.length&&(n=Sn[0],n.blockedOn===null);)Dx(n),n.blockedOn===null&&Sn.shift()}var rs=pn.ReactCurrentBatchConfig,xi=!0;function U1(e,t,n,r){var s=X,a=rs.transition;rs.transition=null;try{X=1,Dd(e,t,n,r)}finally{X=s,rs.transition=a}}function W1(e,t,n,r){var s=X,a=rs.transition;rs.transition=null;try{X=4,Dd(e,t,n,r)}finally{X=s,rs.transition=a}}function Dd(e,t,n,r){if(xi){var s=Zc(e,t,n,r);if(s===null)Gl(e,t,r,yi,n),Ah(e,r);else if(H1(s,e,t,n,r))r.stopPropagation();else if(Ah(e,r),t&4&&-1<B1.indexOf(e)){for(;s!==null;){var a=Ja(s);if(a!==null&&Nx(a),a=Zc(e,t,n,r),a===null&&Gl(e,t,r,yi,n),a===s)break;s=a}s!==null&&r.stopPropagation()}else Gl(e,t,r,null,n)}}var yi=null;function Zc(e,t,n,r){if(yi=null,e=Nd(r),e=ir(e),e!==null)if(t=Ar(e),t===null)e=null;else if(n=t.tag,n===13){if(e=bx(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 yi=e,null}function Ox(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(M1()){case Ad:return 1;case Cx:return 4;case mi:case D1:return 16;case jx:return 536870912;default:return 16}default:return 16}}var Rn=null,Od=null,Wo=null;function Lx(){if(Wo)return Wo;var e,t=Od,n=t.length,r,s="value"in Rn?Rn.value:Rn.textContent,a=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[a-r];r++);return Wo=s.slice(e,1<r?1-r:void 0)}function qo(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 wo(){return!0}function Mh(){return!1}function nt(e){function t(n,r,s,a,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(a):a[i]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?wo:Mh,this.isPropagationStopped=Mh,this}return ie(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=wo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wo)},persist:function(){},isPersistent:wo}),t}var Rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ld=nt(Rs),Za=ie({},Rs,{view:0,detail:0}),q1=nt(Za),Vl,zl,qs,nl=ie({},Za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Id,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!==qs&&(qs&&e.type==="mousemove"?(Vl=e.screenX-qs.screenX,zl=e.screenY-qs.screenY):zl=Vl=0,qs=e),Vl)},movementY:function(e){return"movementY"in e?e.movementY:zl}}),Dh=nt(nl),K1=ie({},nl,{dataTransfer:0}),G1=nt(K1),Y1=ie({},Za,{relatedTarget:0}),Bl=nt(Y1),Q1=ie({},Rs,{animationName:0,elapsedTime:0,pseudoElement:0}),X1=nt(Q1),Z1=ie({},Rs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),J1=nt(Z1),eP=ie({},Rs,{data:0}),Oh=nt(eP),tP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nP={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"},rP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rP[e])?!!t[e]:!1}function Id(){return sP}var aP=ie({},Za,{key:function(e){if(e.key){var t=tP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Id,charCode:function(e){return e.type==="keypress"?qo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),oP=nt(aP),iP=ie({},nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lh=nt(iP),lP=ie({},Za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Id}),cP=nt(lP),uP=ie({},Rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),dP=nt(uP),fP=ie({},nl,{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}),hP=nt(fP),pP=[9,13,27,32],Fd=ln&&"CompositionEvent"in window,la=null;ln&&"documentMode"in document&&(la=document.documentMode);var mP=ln&&"TextEvent"in window&&!la,Ix=ln&&(!Fd||la&&8<la&&11>=la),Ih=" ",Fh=!1;function Fx(e,t){switch(e){case"keyup":return pP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _x(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function gP(e,t){switch(e){case"compositionend":return _x(t);case"keypress":return t.which!==32?null:(Fh=!0,Ih);case"textInput":return e=t.data,e===Ih&&Fh?null:e;default:return null}}function xP(e,t){if(Br)return e==="compositionend"||!Fd&&Fx(e,t)?(e=Lx(),Wo=Od=Rn=null,Br=!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 Ix&&t.locale!=="ko"?null:t.data;default:return null}}var yP={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 _h(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yP[e.type]:t==="textarea"}function Vx(e,t,n,r){gx(r),t=vi(t,"onChange"),0<t.length&&(n=new Ld("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ca=null,Ea=null;function vP(e){Qx(e,0)}function rl(e){var t=Ur(e);if(cx(t))return e}function wP(e,t){if(e==="change")return t}var zx=!1;if(ln){var Hl;if(ln){var $l="oninput"in document;if(!$l){var Vh=document.createElement("div");Vh.setAttribute("oninput","return;"),$l=typeof Vh.oninput=="function"}Hl=$l}else Hl=!1;zx=Hl&&(!document.documentMode||9<document.documentMode)}function zh(){ca&&(ca.detachEvent("onpropertychange",Bx),Ea=ca=null)}function Bx(e){if(e.propertyName==="value"&&rl(Ea)){var t=[];Vx(t,Ea,e,Nd(e)),wx(vP,t)}}function bP(e,t,n){e==="focusin"?(zh(),ca=t,Ea=n,ca.attachEvent("onpropertychange",Bx)):e==="focusout"&&zh()}function PP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rl(Ea)}function SP(e,t){if(e==="click")return rl(t)}function kP(e,t){if(e==="input"||e==="change")return rl(t)}function CP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:CP;function Ta(e,t){if(Tt(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 s=n[r];if(!Oc.call(t,s)||!Tt(e[s],t[s]))return!1}return!0}function Bh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hh(e,t){var n=Bh(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=Bh(n)}}function Hx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $x(){for(var e=window,t=fi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fi(e.document)}return t}function _d(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 jP(e){var t=$x(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hx(n.ownerDocument.documentElement,n)){if(r!==null&&_d(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 s=n.textContent.length,a=Math.min(r.start,s);r=r.end===void 0?a:Math.min(r.end,s),!e.extend&&a>r&&(s=r,r=a,a=s),s=Hh(n,a);var o=Hh(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 EP=ln&&"documentMode"in document&&11>=document.documentMode,Hr=null,Jc=null,ua=null,eu=!1;function $h(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eu||Hr==null||Hr!==fi(r)||(r=Hr,"selectionStart"in r&&_d(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}),ua&&Ta(ua,r)||(ua=r,r=vi(Jc,"onSelect"),0<r.length&&(t=new Ld("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function bo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $r={animationend:bo("Animation","AnimationEnd"),animationiteration:bo("Animation","AnimationIteration"),animationstart:bo("Animation","AnimationStart"),transitionend:bo("Transition","TransitionEnd")},Ul={},Ux={};ln&&(Ux=document.createElement("div").style,"AnimationEvent"in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),"TransitionEvent"in window||delete $r.transitionend.transition);function sl(e){if(Ul[e])return Ul[e];if(!$r[e])return e;var t=$r[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ux)return Ul[e]=t[n];return e}var Wx=sl("animationend"),qx=sl("animationiteration"),Kx=sl("animationstart"),Gx=sl("transitionend"),Yx=new Map,Uh="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 Xn(e,t){Yx.set(e,t),Nr(t,[e])}for(var Wl=0;Wl<Uh.length;Wl++){var ql=Uh[Wl],TP=ql.toLowerCase(),NP=ql[0].toUpperCase()+ql.slice(1);Xn(TP,"on"+NP)}Xn(Wx,"onAnimationEnd");Xn(qx,"onAnimationIteration");Xn(Kx,"onAnimationStart");Xn("dblclick","onDoubleClick");Xn("focusin","onFocus");Xn("focusout","onBlur");Xn(Gx,"onTransitionEnd");vs("onMouseEnter",["mouseout","mouseover"]);vs("onMouseLeave",["mouseout","mouseover"]);vs("onPointerEnter",["pointerout","pointerover"]);vs("onPointerLeave",["pointerout","pointerover"]);Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sa="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(" "),AP=new Set("cancel close invalid load scroll toggle".split(" ").concat(sa));function Wh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,T1(r,t,void 0,e),e.currentTarget=null}function Qx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==a&&s.isPropagationStopped())break e;Wh(s,i,u),a=l}else for(o=0;o<r.length;o++){if(i=r[o],l=i.instance,u=i.currentTarget,i=i.listener,l!==a&&s.isPropagationStopped())break e;Wh(s,i,u),a=l}}}if(pi)throw e=Yc,pi=!1,Yc=null,e}function ne(e,t){var n=t[au];n===void 0&&(n=t[au]=new Set);var r=e+"__bubble";n.has(r)||(Xx(t,e,2,!1),n.add(r))}function Kl(e,t,n){var r=0;t&&(r|=4),Xx(n,e,r,t)}var Po="_reactListening"+Math.random().toString(36).slice(2);function Na(e){if(!e[Po]){e[Po]=!0,sx.forEach(function(n){n!=="selectionchange"&&(AP.has(n)||Kl(n,!1,e),Kl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Po]||(t[Po]=!0,Kl("selectionchange",!1,t))}}function Xx(e,t,n,r){switch(Ox(t)){case 1:var s=U1;break;case 4:s=W1;break;default:s=Dd}n=s.bind(null,t,n,e),s=void 0,!Gc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Gl(e,t,n,r,s){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var i=r.stateNode.containerInfo;if(i===s||i.nodeType===8&&i.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;i!==null;){if(o=ir(i),o===null)return;if(l=o.tag,l===5||l===6){r=a=o;continue e}i=i.parentNode}}r=r.return}wx(function(){var u=a,d=Nd(n),f=[];e:{var h=Yx.get(e);if(h!==void 0){var m=Ld,x=e;switch(e){case"keypress":if(qo(n)===0)break e;case"keydown":case"keyup":m=oP;break;case"focusin":x="focus",m=Bl;break;case"focusout":x="blur",m=Bl;break;case"beforeblur":case"afterblur":m=Bl;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":m=Dh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=G1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=cP;break;case Wx:case qx:case Kx:m=X1;break;case Gx:m=dP;break;case"scroll":m=q1;break;case"wheel":m=hP;break;case"copy":case"cut":case"paste":m=J1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Lh}var v=(t&4)!==0,b=!v&&e==="scroll",g=v?h!==null?h+"Capture":null:h;v=[];for(var p=u,y;p!==null;){y=p;var P=y.stateNode;if(y.tag===5&&P!==null&&(y=P,g!==null&&(P=Sa(p,g),P!=null&&v.push(Aa(p,P,y)))),b)break;p=p.return}0<v.length&&(h=new m(h,x,null,n,d),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==qc&&(x=n.relatedTarget||n.fromElement)&&(ir(x)||x[cn]))break e;if((m||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,m?(x=n.relatedTarget||n.toElement,m=u,x=x?ir(x):null,x!==null&&(b=Ar(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(m=null,x=u),m!==x)){if(v=Dh,P="onMouseLeave",g="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=Lh,P="onPointerLeave",g="onPointerEnter",p="pointer"),b=m==null?h:Ur(m),y=x==null?h:Ur(x),h=new v(P,p+"leave",m,n,d),h.target=b,h.relatedTarget=y,P=null,ir(d)===u&&(v=new v(g,p+"enter",x,n,d),v.target=y,v.relatedTarget=b,P=v),b=P,m&&x)t:{for(v=m,g=x,p=0,y=v;y;y=Ir(y))p++;for(y=0,P=g;P;P=Ir(P))y++;for(;0<p-y;)v=Ir(v),p--;for(;0<y-p;)g=Ir(g),y--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=Ir(v),g=Ir(g)}v=null}else v=null;m!==null&&qh(f,h,m,v,!1),x!==null&&b!==null&&qh(f,b,x,v,!0)}}e:{if(h=u?Ur(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var S=wP;else if(_h(h))if(zx)S=kP;else{S=PP;var k=bP}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=SP);if(S&&(S=S(e,u))){Vx(f,S,n,d);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Bc(h,"number",h.value)}switch(k=u?Ur(u):window,e){case"focusin":(_h(k)||k.contentEditable==="true")&&(Hr=k,Jc=u,ua=null);break;case"focusout":ua=Jc=Hr=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,$h(f,n,d);break;case"selectionchange":if(EP)break;case"keydown":case"keyup":$h(f,n,d)}var j;if(Fd)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Br?Fx(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Ix&&n.locale!=="ko"&&(Br||C!=="onCompositionStart"?C==="onCompositionEnd"&&Br&&(j=Lx()):(Rn=d,Od="value"in Rn?Rn.value:Rn.textContent,Br=!0)),k=vi(u,C),0<k.length&&(C=new Oh(C,e,null,n,d),f.push({event:C,listeners:k}),j?C.data=j:(j=_x(n),j!==null&&(C.data=j)))),(j=mP?gP(e,n):xP(e,n))&&(u=vi(u,"onBeforeInput"),0<u.length&&(d=new Oh("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=j))}Qx(f,t)})}function Aa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vi(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,a=s.stateNode;s.tag===5&&a!==null&&(s=a,a=Sa(e,n),a!=null&&r.unshift(Aa(e,a,s)),a=Sa(e,t),a!=null&&r.push(Aa(e,a,s))),e=e.return}return r}function Ir(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qh(e,t,n,r,s){for(var a=t._reactName,o=[];n!==null&&n!==r;){var i=n,l=i.alternate,u=i.stateNode;if(l!==null&&l===r)break;i.tag===5&&u!==null&&(i=u,s?(l=Sa(n,a),l!=null&&o.unshift(Aa(n,l,i))):s||(l=Sa(n,a),l!=null&&o.push(Aa(n,l,i)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var RP=/\r\n?/g,MP=/\u0000|\uFFFD/g;function Kh(e){return(typeof e=="string"?e:""+e).replace(RP,`
`).replace(MP,"")}function So(e,t,n){if(t=Kh(t),Kh(e)!==t&&n)throw Error(R(425))}function wi(){}var tu=null,nu=null;function ru(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 su=typeof setTimeout=="function"?setTimeout:void 0,DP=typeof clearTimeout=="function"?clearTimeout:void 0,Gh=typeof Promise=="function"?Promise:void 0,OP=typeof queueMicrotask=="function"?queueMicrotask:typeof Gh<"u"?function(e){return Gh.resolve(null).then(e).catch(LP)}:su;function LP(e){setTimeout(function(){throw e})}function Yl(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ja(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ja(t)}function _n(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 Yh(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 Ms=Math.random().toString(36).slice(2),zt="__reactFiber$"+Ms,Ra="__reactProps$"+Ms,cn="__reactContainer$"+Ms,au="__reactEvents$"+Ms,IP="__reactListeners$"+Ms,FP="__reactHandles$"+Ms;function ir(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Yh(e);e!==null;){if(n=e[zt])return n;e=Yh(e)}return t}e=n,n=e.parentNode}return null}function Ja(e){return e=e[zt]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ur(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function al(e){return e[Ra]||null}var ou=[],Wr=-1;function Zn(e){return{current:e}}function re(e){0>Wr||(e.current=ou[Wr],ou[Wr]=null,Wr--)}function ee(e,t){Wr++,ou[Wr]=e.current,e.current=t}var Wn={},De=Zn(Wn),Ue=Zn(!1),Sr=Wn;function ws(e,t){var n=e.type.contextTypes;if(!n)return Wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},a;for(a in n)s[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function We(e){return e=e.childContextTypes,e!=null}function bi(){re(Ue),re(De)}function Qh(e,t,n){if(De.current!==Wn)throw Error(R(168));ee(De,t),ee(Ue,n)}function Zx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(R(108,b1(e)||"Unknown",s));return ie({},n,r)}function Pi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,Sr=De.current,ee(De,e),ee(Ue,Ue.current),!0}function Xh(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Zx(e,t,Sr),r.__reactInternalMemoizedMergedChildContext=e,re(Ue),re(De),ee(De,e)):re(Ue),ee(Ue,n)}var tn=null,ol=!1,Ql=!1;function Jx(e){tn===null?tn=[e]:tn.push(e)}function _P(e){ol=!0,Jx(e)}function Jn(){if(!Ql&&tn!==null){Ql=!0;var e=0,t=X;try{var n=tn;for(X=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}tn=null,ol=!1}catch(s){throw tn!==null&&(tn=tn.slice(e+1)),kx(Ad,Jn),s}finally{X=t,Ql=!1}}return null}var qr=[],Kr=0,Si=null,ki=0,it=[],lt=0,kr=null,rn=1,sn="";function sr(e,t){qr[Kr++]=ki,qr[Kr++]=Si,Si=e,ki=t}function ey(e,t,n){it[lt++]=rn,it[lt++]=sn,it[lt++]=kr,kr=e;var r=rn;e=sn;var s=32-Ct(r)-1;r&=~(1<<s),n+=1;var a=32-Ct(t)+s;if(30<a){var o=s-s%5;a=(r&(1<<o)-1).toString(32),r>>=o,s-=o,rn=1<<32-Ct(t)+s|n<<s|r,sn=a+e}else rn=1<<a|n<<s|r,sn=e}function Vd(e){e.return!==null&&(sr(e,1),ey(e,1,0))}function zd(e){for(;e===Si;)Si=qr[--Kr],qr[Kr]=null,ki=qr[--Kr],qr[Kr]=null;for(;e===kr;)kr=it[--lt],it[lt]=null,sn=it[--lt],it[lt]=null,rn=it[--lt],it[lt]=null}var Xe=null,Qe=null,se=!1,St=null;function ty(e,t){var n=ct(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 Zh(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,Xe=e,Qe=_n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,Qe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=kr!==null?{id:rn,overflow:sn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xe=e,Qe=null,!0):!1;default:return!1}}function iu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function lu(e){if(se){var t=Qe;if(t){var n=t;if(!Zh(e,t)){if(iu(e))throw Error(R(418));t=_n(n.nextSibling);var r=Xe;t&&Zh(e,t)?ty(r,n):(e.flags=e.flags&-4097|2,se=!1,Xe=e)}}else{if(iu(e))throw Error(R(418));e.flags=e.flags&-4097|2,se=!1,Xe=e}}}function Jh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function ko(e){if(e!==Xe)return!1;if(!se)return Jh(e),se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ru(e.type,e.memoizedProps)),t&&(t=Qe)){if(iu(e))throw ny(),Error(R(418));for(;t;)ty(e,t),t=_n(t.nextSibling)}if(Jh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Qe=_n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Qe=null}}else Qe=Xe?_n(e.stateNode.nextSibling):null;return!0}function ny(){for(var e=Qe;e;)e=_n(e.nextSibling)}function bs(){Qe=Xe=null,se=!1}function Bd(e){St===null?St=[e]:St.push(e)}var VP=pn.ReactCurrentBatchConfig;function Ks(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(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var s=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var i=s.refs;o===null?delete i[a]:i[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function Co(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ep(e){var t=e._init;return t(e._payload)}function ry(e){function t(g,p){if(e){var y=g.deletions;y===null?(g.deletions=[p],g.flags|=16):y.push(p)}}function n(g,p){if(!e)return null;for(;p!==null;)t(g,p),p=p.sibling;return null}function r(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function s(g,p){return g=Hn(g,p),g.index=0,g.sibling=null,g}function a(g,p,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<p?(g.flags|=2,p):y):(g.flags|=2,p)):(g.flags|=1048576,p)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function i(g,p,y,P){return p===null||p.tag!==6?(p=rc(y,g.mode,P),p.return=g,p):(p=s(p,y),p.return=g,p)}function l(g,p,y,P){var S=y.type;return S===zr?d(g,p,y.props.children,P,y.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===bn&&ep(S)===p.type)?(P=s(p,y.props),P.ref=Ks(g,p,y),P.return=g,P):(P=Jo(y.type,y.key,y.props,null,g.mode,P),P.ref=Ks(g,p,y),P.return=g,P)}function u(g,p,y,P){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=sc(y,g.mode,P),p.return=g,p):(p=s(p,y.children||[]),p.return=g,p)}function d(g,p,y,P,S){return p===null||p.tag!==7?(p=wr(y,g.mode,P,S),p.return=g,p):(p=s(p,y),p.return=g,p)}function f(g,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=rc(""+p,g.mode,y),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case po:return y=Jo(p.type,p.key,p.props,null,g.mode,y),y.ref=Ks(g,null,p),y.return=g,y;case Vr:return p=sc(p,g.mode,y),p.return=g,p;case bn:var P=p._init;return f(g,P(p._payload),y)}if(na(p)||Hs(p))return p=wr(p,g.mode,y,null),p.return=g,p;Co(g,p)}return null}function h(g,p,y,P){var S=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:i(g,p,""+y,P);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case po:return y.key===S?l(g,p,y,P):null;case Vr:return y.key===S?u(g,p,y,P):null;case bn:return S=y._init,h(g,p,S(y._payload),P)}if(na(y)||Hs(y))return S!==null?null:d(g,p,y,P,null);Co(g,y)}return null}function m(g,p,y,P,S){if(typeof P=="string"&&P!==""||typeof P=="number")return g=g.get(y)||null,i(p,g,""+P,S);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case po:return g=g.get(P.key===null?y:P.key)||null,l(p,g,P,S);case Vr:return g=g.get(P.key===null?y:P.key)||null,u(p,g,P,S);case bn:var k=P._init;return m(g,p,y,k(P._payload),S)}if(na(P)||Hs(P))return g=g.get(y)||null,d(p,g,P,S,null);Co(p,P)}return null}function x(g,p,y,P){for(var S=null,k=null,j=p,C=p=0,A=null;j!==null&&C<y.length;C++){j.index>C?(A=j,j=null):A=j.sibling;var N=h(g,j,y[C],P);if(N===null){j===null&&(j=A);break}e&&j&&N.alternate===null&&t(g,j),p=a(N,p,C),k===null?S=N:k.sibling=N,k=N,j=A}if(C===y.length)return n(g,j),se&&sr(g,C),S;if(j===null){for(;C<y.length;C++)j=f(g,y[C],P),j!==null&&(p=a(j,p,C),k===null?S=j:k.sibling=j,k=j);return se&&sr(g,C),S}for(j=r(g,j);C<y.length;C++)A=m(j,g,C,y[C],P),A!==null&&(e&&A.alternate!==null&&j.delete(A.key===null?C:A.key),p=a(A,p,C),k===null?S=A:k.sibling=A,k=A);return e&&j.forEach(function(I){return t(g,I)}),se&&sr(g,C),S}function v(g,p,y,P){var S=Hs(y);if(typeof S!="function")throw Error(R(150));if(y=S.call(y),y==null)throw Error(R(151));for(var k=S=null,j=p,C=p=0,A=null,N=y.next();j!==null&&!N.done;C++,N=y.next()){j.index>C?(A=j,j=null):A=j.sibling;var I=h(g,j,N.value,P);if(I===null){j===null&&(j=A);break}e&&j&&I.alternate===null&&t(g,j),p=a(I,p,C),k===null?S=I:k.sibling=I,k=I,j=A}if(N.done)return n(g,j),se&&sr(g,C),S;if(j===null){for(;!N.done;C++,N=y.next())N=f(g,N.value,P),N!==null&&(p=a(N,p,C),k===null?S=N:k.sibling=N,k=N);return se&&sr(g,C),S}for(j=r(g,j);!N.done;C++,N=y.next())N=m(j,g,C,N.value,P),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?C:N.key),p=a(N,p,C),k===null?S=N:k.sibling=N,k=N);return e&&j.forEach(function(O){return t(g,O)}),se&&sr(g,C),S}function b(g,p,y,P){if(typeof y=="object"&&y!==null&&y.type===zr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case po:e:{for(var S=y.key,k=p;k!==null;){if(k.key===S){if(S=y.type,S===zr){if(k.tag===7){n(g,k.sibling),p=s(k,y.props.children),p.return=g,g=p;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===bn&&ep(S)===k.type){n(g,k.sibling),p=s(k,y.props),p.ref=Ks(g,k,y),p.return=g,g=p;break e}n(g,k);break}else t(g,k);k=k.sibling}y.type===zr?(p=wr(y.props.children,g.mode,P,y.key),p.return=g,g=p):(P=Jo(y.type,y.key,y.props,null,g.mode,P),P.ref=Ks(g,p,y),P.return=g,g=P)}return o(g);case Vr:e:{for(k=y.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(g,p.sibling),p=s(p,y.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=sc(y,g.mode,P),p.return=g,g=p}return o(g);case bn:return k=y._init,b(g,p,k(y._payload),P)}if(na(y))return x(g,p,y,P);if(Hs(y))return v(g,p,y,P);Co(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(g,p.sibling),p=s(p,y),p.return=g,g=p):(n(g,p),p=rc(y,g.mode,P),p.return=g,g=p),o(g)):n(g,p)}return b}var Ps=ry(!0),sy=ry(!1),Ci=Zn(null),ji=null,Gr=null,Hd=null;function $d(){Hd=Gr=ji=null}function Ud(e){var t=Ci.current;re(Ci),e._currentValue=t}function cu(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 ss(e,t){ji=e,Hd=Gr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(Hd!==e)if(e={context:e,memoizedValue:t,next:null},Gr===null){if(ji===null)throw Error(R(308));Gr=e,ji.dependencies={lanes:0,firstContext:e}}else Gr=Gr.next=e;return t}var lr=null;function Wd(e){lr===null?lr=[e]:lr.push(e)}function ay(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Wd(t)):(n.next=s.next,s.next=n),t.interleaved=n,un(e,r)}function un(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 Pn=!1;function qd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oy(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 an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,un(e,n)}return s=r.interleaved,s===null?(t.next=t,Wd(r)):(t.next=s.next,s.next=t),r.interleaved=t,un(e,n)}function Ko(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,Rd(e,n)}}function tp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?s=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?s=a=t:a=a.next=t}else s=a=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:a,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 Ei(e,t,n,r){var s=e.updateQueue;Pn=!1;var a=s.firstBaseUpdate,o=s.lastBaseUpdate,i=s.shared.pending;if(i!==null){s.shared.pending=null;var l=i,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==o&&(i===null?d.firstBaseUpdate=u:i.next=u,d.lastBaseUpdate=l))}if(a!==null){var f=s.baseState;o=0,d=u=l=null,i=a;do{var h=i.lane,m=i.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:m,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var x=e,v=i;switch(h=t,m=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){f=x.call(m,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,h=typeof x=="function"?x.call(m,f,h):x,h==null)break e;f=ie({},f,h);break e;case 2:Pn=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[i]:h.push(i))}else m={eventTime:m,lane:h,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=m,l=f):d=d.next=m,o|=h;if(i=i.next,i===null){if(i=s.shared.pending,i===null)break;h=i,i=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else a===null&&(s.shared.lanes=0);jr|=o,e.lanes=o,e.memoizedState=f}}function np(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(R(191,s));s.call(r)}}}var eo={},Ut=Zn(eo),Ma=Zn(eo),Da=Zn(eo);function cr(e){if(e===eo)throw Error(R(174));return e}function Kd(e,t){switch(ee(Da,t),ee(Ma,e),ee(Ut,eo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$c(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$c(t,e)}re(Ut),ee(Ut,t)}function Ss(){re(Ut),re(Ma),re(Da)}function iy(e){cr(Da.current);var t=cr(Ut.current),n=$c(t,e.type);t!==n&&(ee(Ma,e),ee(Ut,n))}function Gd(e){Ma.current===e&&(re(Ut),re(Ma))}var ae=Zn(0);function Ti(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 Xl=[];function Yd(){for(var e=0;e<Xl.length;e++)Xl[e]._workInProgressVersionPrimary=null;Xl.length=0}var Go=pn.ReactCurrentDispatcher,Zl=pn.ReactCurrentBatchConfig,Cr=0,oe=null,ge=null,we=null,Ni=!1,da=!1,Oa=0,zP=0;function Ne(){throw Error(R(321))}function Qd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function Xd(e,t,n,r,s,a){if(Cr=a,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Go.current=e===null||e.memoizedState===null?UP:WP,e=n(r,s),da){a=0;do{if(da=!1,Oa=0,25<=a)throw Error(R(301));a+=1,we=ge=null,t.updateQueue=null,Go.current=qP,e=n(r,s)}while(da)}if(Go.current=Ai,t=ge!==null&&ge.next!==null,Cr=0,we=ge=oe=null,Ni=!1,t)throw Error(R(300));return e}function Zd(){var e=Oa!==0;return Oa=0,e}function Ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?oe.memoizedState=we=e:we=we.next=e,we}function pt(){if(ge===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=we===null?oe.memoizedState:we.next;if(t!==null)we=t,ge=e;else{if(e===null)throw Error(R(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},we===null?oe.memoizedState=we=e:we=we.next=e}return we}function La(e,t){return typeof t=="function"?t(e):t}function Jl(e){var t=pt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=ge,s=r.baseQueue,a=n.pending;if(a!==null){if(s!==null){var o=s.next;s.next=a.next,a.next=o}r.baseQueue=s=a,n.pending=null}if(s!==null){a=s.next,r=r.baseState;var i=o=null,l=null,u=a;do{var d=u.lane;if((Cr&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(i=l=f,o=r):l=l.next=f,oe.lanes|=d,jr|=d}u=u.next}while(u!==null&&u!==a);l===null?o=r:l.next=i,Tt(r,t.memoizedState)||($e=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do a=s.lane,oe.lanes|=a,jr|=a,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ec(e){var t=pt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,a=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do a=e(a,o.action),o=o.next;while(o!==s);Tt(a,t.memoizedState)||($e=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ly(){}function cy(e,t){var n=oe,r=pt(),s=t(),a=!Tt(r.memoizedState,s);if(a&&(r.memoizedState=s,$e=!0),r=r.queue,Jd(fy.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||we!==null&&we.memoizedState.tag&1){if(n.flags|=2048,Ia(9,dy.bind(null,n,r,s,t),void 0,null),be===null)throw Error(R(349));Cr&30||uy(n,t,s)}return s}function uy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dy(e,t,n,r){t.value=n,t.getSnapshot=r,hy(t)&&py(e)}function fy(e,t,n){return n(function(){hy(t)&&py(e)})}function hy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function py(e){var t=un(e,1);t!==null&&jt(t,e,1,-1)}function rp(e){var t=Ot();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:e},t.queue=e,e=e.dispatch=$P.bind(null,oe,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.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 my(){return pt().memoizedState}function Yo(e,t,n,r){var s=Ot();oe.flags|=e,s.memoizedState=Ia(1|t,n,void 0,r===void 0?null:r)}function il(e,t,n,r){var s=pt();r=r===void 0?null:r;var a=void 0;if(ge!==null){var o=ge.memoizedState;if(a=o.destroy,r!==null&&Qd(r,o.deps)){s.memoizedState=Ia(t,n,a,r);return}}oe.flags|=e,s.memoizedState=Ia(1|t,n,a,r)}function sp(e,t){return Yo(8390656,8,e,t)}function Jd(e,t){return il(2048,8,e,t)}function gy(e,t){return il(4,2,e,t)}function xy(e,t){return il(4,4,e,t)}function yy(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 vy(e,t,n){return n=n!=null?n.concat([e]):null,il(4,4,yy.bind(null,t,e),n)}function ef(){}function wy(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function by(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Py(e,t,n){return Cr&21?(Tt(n,t)||(n=Ex(),oe.lanes|=n,jr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$e=!0),e.memoizedState=n)}function BP(e,t){var n=X;X=n!==0&&4>n?n:4,e(!0);var r=Zl.transition;Zl.transition={};try{e(!1),t()}finally{X=n,Zl.transition=r}}function Sy(){return pt().memoizedState}function HP(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ky(e))Cy(t,n);else if(n=ay(e,t,n,r),n!==null){var s=_e();jt(n,e,r,s),jy(n,t,r)}}function $P(e,t,n){var r=Bn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ky(e))Cy(t,s);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,i=a(o,n);if(s.hasEagerState=!0,s.eagerState=i,Tt(i,o)){var l=t.interleaved;l===null?(s.next=s,Wd(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=ay(e,t,s,r),n!==null&&(s=_e(),jt(n,e,r,s),jy(n,t,r))}}function ky(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Cy(e,t){da=Ni=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rd(e,n)}}var Ai={readContext:ht,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},UP={readContext:ht,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:sp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yo(4194308,4,yy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yo(4,2,e,t)},useMemo:function(e,t){var n=Ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ot();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=HP.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:rp,useDebugValue:ef,useDeferredValue:function(e){return Ot().memoizedState=e},useTransition:function(){var e=rp(!1),t=e[0];return e=BP.bind(null,e[1]),Ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,s=Ot();if(se){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),be===null)throw Error(R(349));Cr&30||uy(r,t,n)}s.memoizedState=n;var a={value:n,getSnapshot:t};return s.queue=a,sp(fy.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,dy.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ot(),t=be.identifierPrefix;if(se){var n=sn,r=rn;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Oa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zP++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},WP={readContext:ht,useCallback:wy,useContext:ht,useEffect:Jd,useImperativeHandle:vy,useInsertionEffect:gy,useLayoutEffect:xy,useMemo:by,useReducer:Jl,useRef:my,useState:function(){return Jl(La)},useDebugValue:ef,useDeferredValue:function(e){var t=pt();return Py(t,ge.memoizedState,e)},useTransition:function(){var e=Jl(La)[0],t=pt().memoizedState;return[e,t]},useMutableSource:ly,useSyncExternalStore:cy,useId:Sy,unstable_isNewReconciler:!1},qP={readContext:ht,useCallback:wy,useContext:ht,useEffect:Jd,useImperativeHandle:vy,useInsertionEffect:gy,useLayoutEffect:xy,useMemo:by,useReducer:ec,useRef:my,useState:function(){return ec(La)},useDebugValue:ef,useDeferredValue:function(e){var t=pt();return ge===null?t.memoizedState=e:Py(t,ge.memoizedState,e)},useTransition:function(){var e=ec(La)[0],t=pt().memoizedState;return[e,t]},useMutableSource:ly,useSyncExternalStore:cy,useId:Sy,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function uu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ll={isMounted:function(e){return(e=e._reactInternals)?Ar(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_e(),s=Bn(e),a=an(r,s);a.payload=t,n!=null&&(a.callback=n),t=Vn(e,a,s),t!==null&&(jt(t,e,s,r),Ko(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_e(),s=Bn(e),a=an(r,s);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Vn(e,a,s),t!==null&&(jt(t,e,s,r),Ko(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_e(),r=Bn(e),s=an(n,r);s.tag=2,t!=null&&(s.callback=t),t=Vn(e,s,r),t!==null&&(jt(t,e,r,n),Ko(t,e,r))}};function ap(e,t,n,r,s,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ta(n,r)||!Ta(s,a):!0}function Ey(e,t,n){var r=!1,s=Wn,a=t.contextType;return typeof a=="object"&&a!==null?a=ht(a):(s=We(t)?Sr:De.current,r=t.contextTypes,a=(r=r!=null)?ws(e,s):Wn),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ll,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=a),t}function op(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&&ll.enqueueReplaceState(t,t.state,null)}function du(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},qd(e);var a=t.contextType;typeof a=="object"&&a!==null?s.context=ht(a):(a=We(t)?Sr:De.current,s.context=ws(e,a)),s.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(uu(e,t,a,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&ll.enqueueReplaceState(s,s.state,null),Ei(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function ks(e,t){try{var n="",r=t;do n+=w1(r),r=r.return;while(r);var s=n}catch(a){s=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:s,digest:null}}function tc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function fu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var KP=typeof WeakMap=="function"?WeakMap:Map;function Ty(e,t,n){n=an(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mi||(Mi=!0,Pu=r),fu(e,t)},n}function Ny(e,t,n){n=an(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){fu(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){fu(e,t),typeof r!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ip(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new KP;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=iS.bind(null,e,t,n),t.then(e,e))}function lp(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 cp(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=an(-1,1),t.tag=2,Vn(n,t,1))),n.lanes|=1),e)}var GP=pn.ReactCurrentOwner,$e=!1;function Oe(e,t,n,r){t.child=e===null?sy(t,null,n,r):Ps(t,e.child,n,r)}function up(e,t,n,r,s){n=n.render;var a=t.ref;return ss(t,s),r=Xd(e,t,n,r,a,s),n=Zd(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,dn(e,t,s)):(se&&n&&Vd(t),t.flags|=1,Oe(e,t,r,s),t.child)}function dp(e,t,n,r,s){if(e===null){var a=n.type;return typeof a=="function"&&!cf(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Ay(e,t,a,r,s)):(e=Jo(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&s)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Ta,n(o,r)&&e.ref===t.ref)return dn(e,t,s)}return t.flags|=1,e=Hn(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ay(e,t,n,r,s){if(e!==null){var a=e.memoizedProps;if(Ta(a,r)&&e.ref===t.ref)if($e=!1,t.pendingProps=r=a,(e.lanes&s)!==0)e.flags&131072&&($e=!0);else return t.lanes=e.lanes,dn(e,t,s)}return hu(e,t,n,r,s)}function Ry(e,t,n){var r=t.pendingProps,s=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ee(Qr,Ke),Ke|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ee(Qr,Ke),Ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,ee(Qr,Ke),Ke|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,ee(Qr,Ke),Ke|=r;return Oe(e,t,s,n),t.child}function My(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hu(e,t,n,r,s){var a=We(n)?Sr:De.current;return a=ws(t,a),ss(t,s),n=Xd(e,t,n,r,a,s),r=Zd(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,dn(e,t,s)):(se&&r&&Vd(t),t.flags|=1,Oe(e,t,n,s),t.child)}function fp(e,t,n,r,s){if(We(n)){var a=!0;Pi(t)}else a=!1;if(ss(t,s),t.stateNode===null)Qo(e,t),Ey(t,n,r),du(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=ht(u):(u=We(n)?Sr:De.current,u=ws(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||l!==u)&&op(t,o,r,u),Pn=!1;var h=t.memoizedState;o.state=h,Ei(t,r,o,s),l=t.memoizedState,i!==r||h!==l||Ue.current||Pn?(typeof d=="function"&&(uu(t,n,d,r),l=t.memoizedState),(i=Pn||ap(t,n,i,r,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,oy(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:vt(t.type,i),o.props=u,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=ht(l):(l=We(n)?Sr:De.current,l=ws(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==f||h!==l)&&op(t,o,r,l),Pn=!1,h=t.memoizedState,o.state=h,Ei(t,r,o,s);var x=t.memoizedState;i!==f||h!==x||Ue.current||Pn?(typeof m=="function"&&(uu(t,n,m,r),x=t.memoizedState),(u=Pn||ap(t,n,u,r,h,x,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return pu(e,t,n,r,a,s)}function pu(e,t,n,r,s,a){My(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Xh(t,n,!1),dn(e,t,a);r=t.stateNode,GP.current=t;var i=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ps(t,e.child,null,a),t.child=Ps(t,null,i,a)):Oe(e,t,i,a),t.memoizedState=r.state,s&&Xh(t,n,!0),t.child}function Dy(e){var t=e.stateNode;t.pendingContext?Qh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qh(e,t.context,!1),Kd(e,t.containerInfo)}function hp(e,t,n,r,s){return bs(),Bd(s),t.flags|=256,Oe(e,t,n,r),t.child}var mu={dehydrated:null,treeContext:null,retryLane:0};function gu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Oy(e,t,n){var r=t.pendingProps,s=ae.current,a=!1,o=(t.flags&128)!==0,i;if((i=o)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ee(ae,s&1),e===null)return lu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=dl(o,r,0,null),e=wr(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=gu(n),t.memoizedState=mu,e):tf(t,o));if(s=e.memoizedState,s!==null&&(i=s.dehydrated,i!==null))return YP(e,t,o,r,i,s,n);if(a){a=r.fallback,o=t.mode,s=e.child,i=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Hn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),i!==null?a=Hn(i,a):(a=wr(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?gu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=mu,r}return a=e.child,e=a.sibling,r=Hn(a,{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 tf(e,t){return t=dl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jo(e,t,n,r){return r!==null&&Bd(r),Ps(t,e.child,null,n),e=tf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function YP(e,t,n,r,s,a,o){if(n)return t.flags&256?(t.flags&=-257,r=tc(Error(R(422))),jo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,s=t.mode,r=dl({mode:"visible",children:r.children},s,0,null),a=wr(a,s,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Ps(t,e.child,null,o),t.child.memoizedState=gu(o),t.memoizedState=mu,a);if(!(t.mode&1))return jo(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var i=r.dgst;return r=i,a=Error(R(419)),r=tc(a,r,void 0),jo(e,t,o,r)}if(i=(o&e.childLanes)!==0,$e||i){if(r=be,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==a.retryLane&&(a.retryLane=s,un(e,s),jt(r,e,s,-1))}return lf(),r=tc(Error(R(421))),jo(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=lS.bind(null,e),s._reactRetry=t,null):(e=a.treeContext,Qe=_n(s.nextSibling),Xe=t,se=!0,St=null,e!==null&&(it[lt++]=rn,it[lt++]=sn,it[lt++]=kr,rn=e.id,sn=e.overflow,kr=t),t=tf(t,r.children),t.flags|=4096,t)}function pp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),cu(e.return,t,n)}function nc(e,t,n,r,s){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=s)}function Ly(e,t,n){var r=t.pendingProps,s=r.revealOrder,a=r.tail;if(Oe(e,t,r.children,n),r=ae.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&&pp(e,n,t);else if(e.tag===19)pp(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(ee(ae,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Ti(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),nc(t,!1,s,n,a);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ti(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}nc(t,!0,n,null,a);break;case"together":nc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),jr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function QP(e,t,n){switch(t.tag){case 3:Dy(t),bs();break;case 5:iy(t);break;case 1:We(t.type)&&Pi(t);break;case 4:Kd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ee(Ci,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ee(ae,ae.current&1),t.flags|=128,null):n&t.child.childLanes?Oy(e,t,n):(ee(ae,ae.current&1),e=dn(e,t,n),e!==null?e.sibling:null);ee(ae,ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ly(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ee(ae,ae.current),r)break;return null;case 22:case 23:return t.lanes=0,Ry(e,t,n)}return dn(e,t,n)}var Iy,xu,Fy,_y;Iy=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}};xu=function(){};Fy=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,cr(Ut.current);var a=null;switch(n){case"input":s=Vc(e,s),r=Vc(e,r),a=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),a=[];break;case"textarea":s=Hc(e,s),r=Hc(e,r),a=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wi)}Uc(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var i=s[u];for(o in i)i.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ba.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(i=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==i&&(l!=null||i!=null))if(u==="style")if(i){for(o in i)!i.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&i[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ba.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ne("scroll",e),a||i===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};_y=function(e,t,n,r){n!==r&&(t.flags|=4)};function Gs(e,t){if(!se)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 Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function XP(e,t,n){var r=t.pendingProps;switch(zd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return We(t.type)&&bi(),Ae(t),null;case 3:return r=t.stateNode,Ss(),re(Ue),re(De),Yd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ko(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,St!==null&&(Cu(St),St=null))),xu(e,t),Ae(t),null;case 5:Gd(t);var s=cr(Da.current);if(n=t.type,e!==null&&t.stateNode!=null)Fy(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Ae(t),null}if(e=cr(Ut.current),ko(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[zt]=t,r[Ra]=a,e=(t.mode&1)!==0,n){case"dialog":ne("cancel",r),ne("close",r);break;case"iframe":case"object":case"embed":ne("load",r);break;case"video":case"audio":for(s=0;s<sa.length;s++)ne(sa[s],r);break;case"source":ne("error",r);break;case"img":case"image":case"link":ne("error",r),ne("load",r);break;case"details":ne("toggle",r);break;case"input":Sh(r,a),ne("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ne("invalid",r);break;case"textarea":Ch(r,a),ne("invalid",r)}Uc(n,a),s=null;for(var o in a)if(a.hasOwnProperty(o)){var i=a[o];o==="children"?typeof i=="string"?r.textContent!==i&&(a.suppressHydrationWarning!==!0&&So(r.textContent,i,e),s=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(a.suppressHydrationWarning!==!0&&So(r.textContent,i,e),s=["children",""+i]):ba.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&ne("scroll",r)}switch(n){case"input":mo(r),kh(r,a,!0);break;case"textarea":mo(r),jh(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=wi)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[zt]=t,e[Ra]=r,Iy(e,t,!1,!1),t.stateNode=e;e:{switch(o=Wc(n,r),n){case"dialog":ne("cancel",e),ne("close",e),s=r;break;case"iframe":case"object":case"embed":ne("load",e),s=r;break;case"video":case"audio":for(s=0;s<sa.length;s++)ne(sa[s],e);s=r;break;case"source":ne("error",e),s=r;break;case"img":case"image":case"link":ne("error",e),ne("load",e),s=r;break;case"details":ne("toggle",e),s=r;break;case"input":Sh(e,r),s=Vc(e,r),ne("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ie({},r,{value:void 0}),ne("invalid",e);break;case"textarea":Ch(e,r),s=Hc(e,r),ne("invalid",e);break;default:s=r}Uc(n,s),i=s;for(a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="style"?mx(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&hx(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Pa(e,l):typeof l=="number"&&Pa(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ba.hasOwnProperty(a)?l!=null&&a==="onScroll"&&ne("scroll",e):l!=null&&Cd(e,a,l,o))}switch(n){case"input":mo(e),kh(e,r,!1);break;case"textarea":mo(e),jh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Un(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?es(e,!!r.multiple,a,!1):r.defaultValue!=null&&es(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=wi)}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 Ae(t),null;case 6:if(e&&t.stateNode!=null)_y(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=cr(Da.current),cr(Ut.current),ko(t)){if(r=t.stateNode,n=t.memoizedProps,r[zt]=t,(a=r.nodeValue!==n)&&(e=Xe,e!==null))switch(e.tag){case 3:So(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&So(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[zt]=t,t.stateNode=r}return Ae(t),null;case 13:if(re(ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(se&&Qe!==null&&t.mode&1&&!(t.flags&128))ny(),bs(),t.flags|=98560,a=!1;else if(a=ko(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(R(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(R(317));a[zt]=t}else bs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ae(t),a=!1}else St!==null&&(Cu(St),St=null),a=!0;if(!a)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||ae.current&1?ye===0&&(ye=3):lf())),t.updateQueue!==null&&(t.flags|=4),Ae(t),null);case 4:return Ss(),xu(e,t),e===null&&Na(t.stateNode.containerInfo),Ae(t),null;case 10:return Ud(t.type._context),Ae(t),null;case 17:return We(t.type)&&bi(),Ae(t),null;case 19:if(re(ae),a=t.memoizedState,a===null)return Ae(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Gs(a,!1);else{if(ye!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ti(e),o!==null){for(t.flags|=128,Gs(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ee(ae,ae.current&1|2),t.child}e=e.sibling}a.tail!==null&&de()>Cs&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304)}else{if(!r)if(e=Ti(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!se)return Ae(t),null}else 2*de()-a.renderingStartTime>Cs&&n!==1073741824&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=de(),t.sibling=null,n=ae.current,ee(ae,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return of(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function ZP(e,t){switch(zd(t),t.tag){case 1:return We(t.type)&&bi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ss(),re(Ue),re(De),Yd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gd(t),null;case 13:if(re(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));bs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(ae),null;case 4:return Ss(),null;case 10:return Ud(t.type._context),null;case 22:case 23:return of(),null;case 24:return null;default:return null}}var Eo=!1,Me=!1,JP=typeof WeakSet=="function"?WeakSet:Set,L=null;function Yr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function yu(e,t,n){try{n()}catch(r){ue(e,t,r)}}var mp=!1;function eS(e,t){if(tu=xi,e=$x(),_d(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 s=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,i=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var m;f!==n||s!==0&&f.nodeType!==3||(i=o+s),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++u===s&&(i=o),h===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=i===-1||l===-1?null:{start:i,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(nu={focusedElem:e,selectionRange:n},xi=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,b=x.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:vt(t.type,v),b);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(P){ue(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return x=mp,mp=!1,x}function fa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var a=s.destroy;s.destroy=void 0,a!==void 0&&yu(t,n,a)}s=s.next}while(s!==r)}}function cl(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 vu(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 Vy(e){var t=e.alternate;t!==null&&(e.alternate=null,Vy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[Ra],delete t[au],delete t[IP],delete t[FP])),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 zy(e){return e.tag===5||e.tag===3||e.tag===4}function gp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zy(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 wu(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=wi));else if(r!==4&&(e=e.child,e!==null))for(wu(e,t,n),e=e.sibling;e!==null;)wu(e,t,n),e=e.sibling}function bu(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(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}var ke=null,Pt=!1;function gn(e,t,n){for(n=n.child;n!==null;)By(e,t,n),n=n.sibling}function By(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(tl,n)}catch{}switch(n.tag){case 5:Me||Yr(n,t);case 6:var r=ke,s=Pt;ke=null,gn(e,t,n),ke=r,Pt=s,ke!==null&&(Pt?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(Pt?(e=ke,n=n.stateNode,e.nodeType===8?Yl(e.parentNode,n):e.nodeType===1&&Yl(e,n),ja(e)):Yl(ke,n.stateNode));break;case 4:r=ke,s=Pt,ke=n.stateNode.containerInfo,Pt=!0,gn(e,t,n),ke=r,Pt=s;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var a=s,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&yu(n,t,o),s=s.next}while(s!==r)}gn(e,t,n);break;case 1:if(!Me&&(Yr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){ue(n,t,i)}gn(e,t,n);break;case 21:gn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,gn(e,t,n),Me=r):gn(e,t,n);break;default:gn(e,t,n)}}function xp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new JP),t.forEach(function(r){var s=cS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var a=e,o=t,i=o;e:for(;i!==null;){switch(i.tag){case 5:ke=i.stateNode,Pt=!1;break e;case 3:ke=i.stateNode.containerInfo,Pt=!0;break e;case 4:ke=i.stateNode.containerInfo,Pt=!0;break e}i=i.return}if(ke===null)throw Error(R(160));By(a,o,s),ke=null,Pt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){ue(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hy(t,e),t=t.sibling}function Hy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gt(t,e),Mt(e),r&4){try{fa(3,e,e.return),cl(3,e)}catch(v){ue(e,e.return,v)}try{fa(5,e,e.return)}catch(v){ue(e,e.return,v)}}break;case 1:gt(t,e),Mt(e),r&512&&n!==null&&Yr(n,n.return);break;case 5:if(gt(t,e),Mt(e),r&512&&n!==null&&Yr(n,n.return),e.flags&32){var s=e.stateNode;try{Pa(s,"")}catch(v){ue(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&a.type==="radio"&&a.name!=null&&ux(s,a),Wc(i,o);var u=Wc(i,a);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?mx(s,f):d==="dangerouslySetInnerHTML"?hx(s,f):d==="children"?Pa(s,f):Cd(s,d,f,u)}switch(i){case"input":zc(s,a);break;case"textarea":dx(s,a);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!a.multiple;var m=a.value;m!=null?es(s,!!a.multiple,m,!1):h!==!!a.multiple&&(a.defaultValue!=null?es(s,!!a.multiple,a.defaultValue,!0):es(s,!!a.multiple,a.multiple?[]:"",!1))}s[Ra]=a}catch(v){ue(e,e.return,v)}}break;case 6:if(gt(t,e),Mt(e),r&4){if(e.stateNode===null)throw Error(R(162));s=e.stateNode,a=e.memoizedProps;try{s.nodeValue=a}catch(v){ue(e,e.return,v)}}break;case 3:if(gt(t,e),Mt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ja(t.containerInfo)}catch(v){ue(e,e.return,v)}break;case 4:gt(t,e),Mt(e);break;case 13:gt(t,e),Mt(e),s=e.child,s.flags&8192&&(a=s.memoizedState!==null,s.stateNode.isHidden=a,!a||s.alternate!==null&&s.alternate.memoizedState!==null||(sf=de())),r&4&&xp(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Me=(u=Me)||d,gt(t,e),Me=u):gt(t,e),Mt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(L=e,d=e.child;d!==null;){for(f=L=d;L!==null;){switch(h=L,m=h.child,h.tag){case 0:case 11:case 14:case 15:fa(4,h,h.return);break;case 1:Yr(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){ue(r,n,v)}}break;case 5:Yr(h,h.return);break;case 22:if(h.memoizedState!==null){vp(f);continue}}m!==null?(m.return=h,L=m):vp(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(a=s.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(i=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=px("display",o))}catch(v){ue(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){ue(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gt(t,e),Mt(e),r&4&&xp(e);break;case 21:break;default:gt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(zy(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Pa(s,""),r.flags&=-33);var a=gp(e);bu(e,a,s);break;case 3:case 4:var o=r.stateNode.containerInfo,i=gp(e);wu(e,i,o);break;default:throw Error(R(161))}}catch(l){ue(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tS(e,t,n){L=e,$y(e)}function $y(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var s=L,a=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Eo;if(!o){var i=s.alternate,l=i!==null&&i.memoizedState!==null||Me;i=Eo;var u=Me;if(Eo=o,(Me=l)&&!u)for(L=s;L!==null;)o=L,l=o.child,o.tag===22&&o.memoizedState!==null?wp(s):l!==null?(l.return=o,L=l):wp(s);for(;a!==null;)L=a,$y(a),a=a.sibling;L=s,Eo=i,Me=u}yp(e)}else s.subtreeFlags&8772&&a!==null?(a.return=s,L=a):yp(e)}}function yp(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Me||cl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Me)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:vt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&np(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}np(t,o,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ja(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Me||t.flags&512&&vu(t)}catch(h){ue(t,t.return,h)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function vp(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function wp(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{cl(4,t)}catch(l){ue(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){ue(t,s,l)}}var a=t.return;try{vu(t)}catch(l){ue(t,a,l)}break;case 5:var o=t.return;try{vu(t)}catch(l){ue(t,o,l)}}}catch(l){ue(t,t.return,l)}if(t===e){L=null;break}var i=t.sibling;if(i!==null){i.return=t.return,L=i;break}L=t.return}}var nS=Math.ceil,Ri=pn.ReactCurrentDispatcher,nf=pn.ReactCurrentOwner,dt=pn.ReactCurrentBatchConfig,G=0,be=null,he=null,Ee=0,Ke=0,Qr=Zn(0),ye=0,Fa=null,jr=0,ul=0,rf=0,ha=null,He=null,sf=0,Cs=1/0,en=null,Mi=!1,Pu=null,zn=null,To=!1,Mn=null,Di=0,pa=0,Su=null,Xo=-1,Zo=0;function _e(){return G&6?de():Xo!==-1?Xo:Xo=de()}function Bn(e){return e.mode&1?G&2&&Ee!==0?Ee&-Ee:VP.transition!==null?(Zo===0&&(Zo=Ex()),Zo):(e=X,e!==0||(e=window.event,e=e===void 0?16:Ox(e.type)),e):1}function jt(e,t,n,r){if(50<pa)throw pa=0,Su=null,Error(R(185));Xa(e,n,r),(!(G&2)||e!==be)&&(e===be&&(!(G&2)&&(ul|=n),ye===4&&kn(e,Ee)),qe(e,r),n===1&&G===0&&!(t.mode&1)&&(Cs=de()+500,ol&&Jn()))}function qe(e,t){var n=e.callbackNode;V1(e,t);var r=gi(e,e===be?Ee:0);if(r===0)n!==null&&Nh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Nh(n),t===1)e.tag===0?_P(bp.bind(null,e)):Jx(bp.bind(null,e)),OP(function(){!(G&6)&&Jn()}),n=null;else{switch(Tx(r)){case 1:n=Ad;break;case 4:n=Cx;break;case 16:n=mi;break;case 536870912:n=jx;break;default:n=mi}n=Xy(n,Uy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Uy(e,t){if(Xo=-1,Zo=0,G&6)throw Error(R(327));var n=e.callbackNode;if(as()&&e.callbackNode!==n)return null;var r=gi(e,e===be?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Oi(e,r);else{t=r;var s=G;G|=2;var a=qy();(be!==e||Ee!==t)&&(en=null,Cs=de()+500,vr(e,t));do try{aS();break}catch(i){Wy(e,i)}while(!0);$d(),Ri.current=a,G=s,he!==null?t=0:(be=null,Ee=0,t=ye)}if(t!==0){if(t===2&&(s=Qc(e),s!==0&&(r=s,t=ku(e,s))),t===1)throw n=Fa,vr(e,0),kn(e,r),qe(e,de()),n;if(t===6)kn(e,r);else{if(s=e.current.alternate,!(r&30)&&!rS(s)&&(t=Oi(e,r),t===2&&(a=Qc(e),a!==0&&(r=a,t=ku(e,a))),t===1))throw n=Fa,vr(e,0),kn(e,r),qe(e,de()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:ar(e,He,en);break;case 3:if(kn(e,r),(r&130023424)===r&&(t=sf+500-de(),10<t)){if(gi(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){_e(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=su(ar.bind(null,e,He,en),t);break}ar(e,He,en);break;case 4:if(kn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Ct(r);a=1<<o,o=t[o],o>s&&(s=o),r&=~a}if(r=s,r=de()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nS(r/1960))-r,10<r){e.timeoutHandle=su(ar.bind(null,e,He,en),r);break}ar(e,He,en);break;case 5:ar(e,He,en);break;default:throw Error(R(329))}}}return qe(e,de()),e.callbackNode===n?Uy.bind(null,e):null}function ku(e,t){var n=ha;return e.current.memoizedState.isDehydrated&&(vr(e,t).flags|=256),e=Oi(e,t),e!==2&&(t=He,He=n,t!==null&&Cu(t)),e}function Cu(e){He===null?He=e:He.push.apply(He,e)}function rS(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 s=n[r],a=s.getSnapshot;s=s.value;try{if(!Tt(a(),s))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 kn(e,t){for(t&=~rf,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ct(t),r=1<<n;e[n]=-1,t&=~r}}function bp(e){if(G&6)throw Error(R(327));as();var t=gi(e,0);if(!(t&1))return qe(e,de()),null;var n=Oi(e,t);if(e.tag!==0&&n===2){var r=Qc(e);r!==0&&(t=r,n=ku(e,r))}if(n===1)throw n=Fa,vr(e,0),kn(e,t),qe(e,de()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ar(e,He,en),qe(e,de()),null}function af(e,t){var n=G;G|=1;try{return e(t)}finally{G=n,G===0&&(Cs=de()+500,ol&&Jn())}}function Er(e){Mn!==null&&Mn.tag===0&&!(G&6)&&as();var t=G;G|=1;var n=dt.transition,r=X;try{if(dt.transition=null,X=1,e)return e()}finally{X=r,dt.transition=n,G=t,!(G&6)&&Jn()}}function of(){Ke=Qr.current,re(Qr)}function vr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,DP(n)),he!==null)for(n=he.return;n!==null;){var r=n;switch(zd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&bi();break;case 3:Ss(),re(Ue),re(De),Yd();break;case 5:Gd(r);break;case 4:Ss();break;case 13:re(ae);break;case 19:re(ae);break;case 10:Ud(r.type._context);break;case 22:case 23:of()}n=n.return}if(be=e,he=e=Hn(e.current,null),Ee=Ke=t,ye=0,Fa=null,rf=ul=jr=0,He=ha=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=s,r.next=o}n.pending=r}lr=null}return e}function Wy(e,t){do{var n=he;try{if($d(),Go.current=Ai,Ni){for(var r=oe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ni=!1}if(Cr=0,we=ge=oe=null,da=!1,Oa=0,nf.current=null,n===null||n.return===null){ye=1,Fa=t,he=null;break}e:{var a=e,o=n.return,i=n,l=t;if(t=Ee,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=i,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=lp(o);if(m!==null){m.flags&=-257,cp(m,o,i,a,t),m.mode&1&&ip(a,u,t),t=m,l=u;var x=t.updateQueue;if(x===null){var v=new Set;v.add(l),t.updateQueue=v}else x.add(l);break e}else{if(!(t&1)){ip(a,u,t),lf();break e}l=Error(R(426))}}else if(se&&i.mode&1){var b=lp(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),cp(b,o,i,a,t),Bd(ks(l,i));break e}}a=l=ks(l,i),ye!==4&&(ye=2),ha===null?ha=[a]:ha.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=Ty(a,l,t);tp(a,g);break e;case 1:i=l;var p=a.type,y=a.stateNode;if(!(a.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(zn===null||!zn.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t;var P=Ny(a,i,t);tp(a,P);break e}}a=a.return}while(a!==null)}Gy(n)}catch(S){t=S,he===n&&n!==null&&(he=n=n.return);continue}break}while(!0)}function qy(){var e=Ri.current;return Ri.current=Ai,e===null?Ai:e}function lf(){(ye===0||ye===3||ye===2)&&(ye=4),be===null||!(jr&268435455)&&!(ul&268435455)||kn(be,Ee)}function Oi(e,t){var n=G;G|=2;var r=qy();(be!==e||Ee!==t)&&(en=null,vr(e,t));do try{sS();break}catch(s){Wy(e,s)}while(!0);if($d(),G=n,Ri.current=r,he!==null)throw Error(R(261));return be=null,Ee=0,ye}function sS(){for(;he!==null;)Ky(he)}function aS(){for(;he!==null&&!A1();)Ky(he)}function Ky(e){var t=Qy(e.alternate,e,Ke);e.memoizedProps=e.pendingProps,t===null?Gy(e):he=t,nf.current=null}function Gy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ZP(n,t),n!==null){n.flags&=32767,he=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ye=6,he=null;return}}else if(n=XP(n,t,Ke),n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);ye===0&&(ye=5)}function ar(e,t,n){var r=X,s=dt.transition;try{dt.transition=null,X=1,oS(e,t,n,r)}finally{dt.transition=s,X=r}return null}function oS(e,t,n,r){do as();while(Mn!==null);if(G&6)throw Error(R(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(z1(e,a),e===be&&(he=be=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||To||(To=!0,Xy(mi,function(){return as(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=dt.transition,dt.transition=null;var o=X;X=1;var i=G;G|=4,nf.current=null,eS(e,n),Hy(n,e),jP(nu),xi=!!tu,nu=tu=null,e.current=n,tS(n),R1(),G=i,X=o,dt.transition=a}else e.current=n;if(To&&(To=!1,Mn=e,Di=s),a=e.pendingLanes,a===0&&(zn=null),O1(n.stateNode),qe(e,de()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Mi)throw Mi=!1,e=Pu,Pu=null,e;return Di&1&&e.tag!==0&&as(),a=e.pendingLanes,a&1?e===Su?pa++:(pa=0,Su=e):pa=0,Jn(),null}function as(){if(Mn!==null){var e=Tx(Di),t=dt.transition,n=X;try{if(dt.transition=null,X=16>e?16:e,Mn===null)var r=!1;else{if(e=Mn,Mn=null,Di=0,G&6)throw Error(R(331));var s=G;for(G|=4,L=e.current;L!==null;){var a=L,o=a.child;if(L.flags&16){var i=a.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(L=u;L!==null;){var d=L;switch(d.tag){case 0:case 11:case 15:fa(8,d,a)}var f=d.child;if(f!==null)f.return=d,L=f;else for(;L!==null;){d=L;var h=d.sibling,m=d.return;if(Vy(d),d===u){L=null;break}if(h!==null){h.return=m,L=h;break}L=m}}}var x=a.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}L=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,L=o;else e:for(;L!==null;){if(a=L,a.flags&2048)switch(a.tag){case 0:case 11:case 15:fa(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,L=g;break e}L=a.return}}var p=e.current;for(L=p;L!==null;){o=L;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,L=y;else e:for(o=p;L!==null;){if(i=L,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:cl(9,i)}}catch(S){ue(i,i.return,S)}if(i===o){L=null;break e}var P=i.sibling;if(P!==null){P.return=i.return,L=P;break e}L=i.return}}if(G=s,Jn(),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(tl,e)}catch{}r=!0}return r}finally{X=n,dt.transition=t}}return!1}function Pp(e,t,n){t=ks(n,t),t=Ty(e,t,1),e=Vn(e,t,1),t=_e(),e!==null&&(Xa(e,1,t),qe(e,t))}function ue(e,t,n){if(e.tag===3)Pp(e,e,n);else for(;t!==null;){if(t.tag===3){Pp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zn===null||!zn.has(r))){e=ks(n,e),e=Ny(t,e,1),t=Vn(t,e,1),e=_e(),t!==null&&(Xa(t,1,e),qe(t,e));break}}t=t.return}}function iS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_e(),e.pingedLanes|=e.suspendedLanes&n,be===e&&(Ee&n)===n&&(ye===4||ye===3&&(Ee&130023424)===Ee&&500>de()-sf?vr(e,0):rf|=n),qe(e,t)}function Yy(e,t){t===0&&(e.mode&1?(t=yo,yo<<=1,!(yo&130023424)&&(yo=4194304)):t=1);var n=_e();e=un(e,t),e!==null&&(Xa(e,t,n),qe(e,n))}function lS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yy(e,n)}function cS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Yy(e,n)}var Qy;Qy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,QP(e,t,n);$e=!!(e.flags&131072)}else $e=!1,se&&t.flags&1048576&&ey(t,ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qo(e,t),e=t.pendingProps;var s=ws(t,De.current);ss(t,n),s=Xd(null,t,r,e,s,n);var a=Zd();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(a=!0,Pi(t)):a=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,qd(t),s.updater=ll,t.stateNode=s,s._reactInternals=t,du(t,r,e,n),t=pu(null,t,r,!0,a,n)):(t.tag=0,se&&a&&Vd(t),Oe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qo(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=dS(r),e=vt(r,e),s){case 0:t=hu(null,t,r,e,n);break e;case 1:t=fp(null,t,r,e,n);break e;case 11:t=up(null,t,r,e,n);break e;case 14:t=dp(null,t,r,vt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),hu(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),fp(e,t,r,s,n);case 3:e:{if(Dy(t),e===null)throw Error(R(387));r=t.pendingProps,a=t.memoizedState,s=a.element,oy(e,t),Ei(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){s=ks(Error(R(423)),t),t=hp(e,t,r,n,s);break e}else if(r!==s){s=ks(Error(R(424)),t),t=hp(e,t,r,n,s);break e}else for(Qe=_n(t.stateNode.containerInfo.firstChild),Xe=t,se=!0,St=null,n=sy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bs(),r===s){t=dn(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return iy(t),e===null&&lu(t),r=t.type,s=t.pendingProps,a=e!==null?e.memoizedProps:null,o=s.children,ru(r,s)?o=null:a!==null&&ru(r,a)&&(t.flags|=32),My(e,t),Oe(e,t,o,n),t.child;case 6:return e===null&&lu(t),null;case 13:return Oy(e,t,n);case 4:return Kd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ps(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),up(e,t,r,s,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,a=t.memoizedProps,o=s.value,ee(Ci,r._currentValue),r._currentValue=o,a!==null)if(Tt(a.value,o)){if(a.children===s.children&&!Ue.current){t=dn(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){o=a.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=an(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),cu(a.return,n,t),i.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(R(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),cu(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Oe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,ss(t,n),s=ht(s),r=r(s),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,s=vt(r,t.pendingProps),s=vt(r.type,s),dp(e,t,r,s,n);case 15:return Ay(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),Qo(e,t),t.tag=1,We(r)?(e=!0,Pi(t)):e=!1,ss(t,n),Ey(t,r,s),du(t,r,s,n),pu(null,t,r,!0,e,n);case 19:return Ly(e,t,n);case 22:return Ry(e,t,n)}throw Error(R(156,t.tag))};function Xy(e,t){return kx(e,t)}function uS(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 ct(e,t,n,r){return new uS(e,t,n,r)}function cf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dS(e){if(typeof e=="function")return cf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ed)return 11;if(e===Td)return 14}return 2}function Hn(e,t){var n=e.alternate;return n===null?(n=ct(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 Jo(e,t,n,r,s,a){var o=2;if(r=e,typeof e=="function")cf(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case zr:return wr(n.children,s,a,t);case jd:o=8,s|=8;break;case Lc:return e=ct(12,n,t,s|2),e.elementType=Lc,e.lanes=a,e;case Ic:return e=ct(13,n,t,s),e.elementType=Ic,e.lanes=a,e;case Fc:return e=ct(19,n,t,s),e.elementType=Fc,e.lanes=a,e;case ix:return dl(n,s,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ax:o=10;break e;case ox:o=9;break e;case Ed:o=11;break e;case Td:o=14;break e;case bn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=ct(o,n,t,s),t.elementType=e,t.type=r,t.lanes=a,t}function wr(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function dl(e,t,n,r){return e=ct(22,e,r,t),e.elementType=ix,e.lanes=n,e.stateNode={isHidden:!1},e}function rc(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function sc(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fS(e,t,n,r,s){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=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function uf(e,t,n,r,s,a,o,i,l){return e=new fS(e,t,n,i,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ct(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qd(a),e}function hS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Zy(e){if(!e)return Wn;e=e._reactInternals;e:{if(Ar(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(We(n))return Zx(e,n,t)}return t}function Jy(e,t,n,r,s,a,o,i,l){return e=uf(n,r,!0,e,s,a,o,i,l),e.context=Zy(null),n=e.current,r=_e(),s=Bn(n),a=an(r,s),a.callback=t??null,Vn(n,a,s),e.current.lanes=s,Xa(e,s,r),qe(e,r),e}function fl(e,t,n,r){var s=t.current,a=_e(),o=Bn(s);return n=Zy(n),t.context===null?t.context=n:t.pendingContext=n,t=an(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vn(s,t,o),e!==null&&(jt(e,s,o,a),Ko(e,s,o)),o}function Li(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 Sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function df(e,t){Sp(e,t),(e=e.alternate)&&Sp(e,t)}function pS(){return null}var ev=typeof reportError=="function"?reportError:function(e){console.error(e)};function ff(e){this._internalRoot=e}hl.prototype.render=ff.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));fl(e,t,null,null)};hl.prototype.unmount=ff.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Er(function(){fl(null,e,null,null)}),t[cn]=null}};function hl(e){this._internalRoot=e}hl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sn.length&&t!==0&&t<Sn[n].priority;n++);Sn.splice(n,0,e),n===0&&Dx(e)}};function hf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kp(){}function mS(e,t,n,r,s){if(s){if(typeof r=="function"){var a=r;r=function(){var u=Li(o);a.call(u)}}var o=Jy(t,r,e,0,null,!1,!1,"",kp);return e._reactRootContainer=o,e[cn]=o.current,Na(e.nodeType===8?e.parentNode:e),Er(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var i=r;r=function(){var u=Li(l);i.call(u)}}var l=uf(e,0,!1,null,null,!1,!1,"",kp);return e._reactRootContainer=l,e[cn]=l.current,Na(e.nodeType===8?e.parentNode:e),Er(function(){fl(t,l,n,r)}),l}function ml(e,t,n,r,s){var a=n._reactRootContainer;if(a){var o=a;if(typeof s=="function"){var i=s;s=function(){var l=Li(o);i.call(l)}}fl(t,o,e,s)}else o=mS(n,t,e,s,r);return Li(o)}Nx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ra(t.pendingLanes);n!==0&&(Rd(t,n|1),qe(t,de()),!(G&6)&&(Cs=de()+500,Jn()))}break;case 13:Er(function(){var r=un(e,1);if(r!==null){var s=_e();jt(r,e,1,s)}}),df(e,1)}};Md=function(e){if(e.tag===13){var t=un(e,134217728);if(t!==null){var n=_e();jt(t,e,134217728,n)}df(e,134217728)}};Ax=function(e){if(e.tag===13){var t=Bn(e),n=un(e,t);if(n!==null){var r=_e();jt(n,e,t,r)}df(e,t)}};Rx=function(){return X};Mx=function(e,t){var n=X;try{return X=e,t()}finally{X=n}};Kc=function(e,t,n){switch(t){case"input":if(zc(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 s=al(r);if(!s)throw Error(R(90));cx(r),zc(r,s)}}}break;case"textarea":dx(e,n);break;case"select":t=n.value,t!=null&&es(e,!!n.multiple,t,!1)}};yx=af;vx=Er;var gS={usingClientEntryPoint:!1,Events:[Ja,Ur,al,gx,xx,af]},Ys={findFiberByHostInstance:ir,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xS={bundleType:Ys.bundleType,version:Ys.version,rendererPackageName:Ys.rendererPackageName,rendererConfig:Ys.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Px(e),e===null?null:e.stateNode},findFiberByHostInstance:Ys.findFiberByHostInstance||pS,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 No=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!No.isDisabled&&No.supportsFiber)try{tl=No.inject(xS),$t=No}catch{}}tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gS;tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hf(t))throw Error(R(200));return hS(e,t,null,n)};tt.createRoot=function(e,t){if(!hf(e))throw Error(R(299));var n=!1,r="",s=ev;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=uf(e,1,!1,null,null,n,!1,r,s),e[cn]=t.current,Na(e.nodeType===8?e.parentNode:e),new ff(t)};tt.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Px(t),e=e===null?null:e.stateNode,e};tt.flushSync=function(e){return Er(e)};tt.hydrate=function(e,t,n){if(!pl(t))throw Error(R(200));return ml(null,e,t,!0,n)};tt.hydrateRoot=function(e,t,n){if(!hf(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,s=!1,a="",o=ev;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Jy(t,null,e,1,n??null,s,!1,a,o),e[cn]=t.current,Na(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new hl(t)};tt.render=function(e,t,n){if(!pl(t))throw Error(R(200));return ml(null,e,t,!1,n)};tt.unmountComponentAtNode=function(e){if(!pl(e))throw Error(R(40));return e._reactRootContainer?(Er(function(){ml(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1};tt.unstable_batchedUpdates=af;tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pl(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return ml(e,t,n,!1,r)};tt.version="18.3.1-next-f1338f8080-20240426";function tv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tv)}catch(e){console.error(e)}}tv(),tx.exports=tt;var to=tx.exports,nv,Cp=to;nv=Cp.createRoot,Cp.hydrateRoot;const yS=1,vS=1e6;let ac=0;function wS(){return ac=(ac+1)%Number.MAX_SAFE_INTEGER,ac.toString()}const oc=new Map,jp=e=>{if(oc.has(e))return;const t=setTimeout(()=>{oc.delete(e),ma({type:"REMOVE_TOAST",toastId:e})},vS);oc.set(e,t)},bS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,yS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?jp(n):e.toasts.forEach(r=>{jp(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ei=[];let ti={toasts:[]};function ma(e){ti=bS(ti,e),ei.forEach(t=>{t(ti)})}function PS({...e}){const t=wS(),n=s=>ma({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>ma({type:"DISMISS_TOAST",toastId:t});return ma({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function rv(){const[e,t]=w.useState(ti);return w.useEffect(()=>(ei.push(t),()=>{const n=ei.indexOf(t);n>-1&&ei.splice(n,1)}),[e]),{...e,toast:PS,dismiss:n=>ma({type:"DISMISS_TOAST",toastId:n})}}function xe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Ep(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function SS(...e){return t=>{let n=!1;const r=e.map(s=>{const a=Ep(s,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let s=0;s<r.length;s++){const a=r[s];typeof a=="function"?a():Ep(e[s],null)}}}}function Nt(...e){return w.useCallback(SS(...e),e)}function gl(e,t=[]){let n=[];function r(a,o){const i=w.createContext(o);i.displayName=a+"Context";const l=n.length;n=[...n,o];const u=f=>{var g;const{scope:h,children:m,...x}=f,v=((g=h==null?void 0:h[e])==null?void 0:g[l])||i,b=w.useMemo(()=>x,Object.values(x));return c.jsx(v.Provider,{value:b,children:m})};u.displayName=a+"Provider";function d(f,h){var v;const m=((v=h==null?void 0:h[e])==null?void 0:v[l])||i,x=w.useContext(m);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,d]}const s=()=>{const a=n.map(o=>w.createContext(o));return function(i){const l=(i==null?void 0:i[e])||a;return w.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return s.scopeName=e,[r,kS(s,...t)]}function kS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=r.reduce((i,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...i,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Ii(e){const t=w.forwardRef((n,r)=>{let{children:s,...a}=n,o=null,i=!1;const l=[];Tp(s)&&typeof Ao=="function"&&(s=Ao(s._payload)),w.Children.forEach(s,h=>{var m;if(AS(h)){i=!0;const x=h;let v="child"in x.props?x.props.child:x.props.children;Tp(v)&&typeof Ao=="function"&&(v=Ao(v._payload)),o=ES(x,v),l.push((m=o==null?void 0:o.props)==null?void 0:m.children)}else l.push(h)}),o?o=w.cloneElement(o,void 0,l):!i&&w.Children.count(s)===1&&w.isValidElement(s)&&(o=s);const u=o?NS(o):void 0,d=Nt(r,u);if(!o){if(s||s===0)throw new Error(i?OS(e):DS(e));return s}const f=TS(a,o.props??{});return o.type!==w.Fragment&&(f.ref=r?d:u),w.cloneElement(o,f)});return t.displayName=`${e}.Slot`,t}var CS=Ii("Slot"),sv=Symbol.for("radix.slottable");function jS(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=sv,t}var ES=(e,t)=>{if("child"in e.props){const n=e.props.child;return w.isValidElement(n)?w.cloneElement(n,void 0,e.props.children(n.props.children)):null}return w.isValidElement(t)?t:null};function TS(e,t){const n={...t};for(const r in t){const s=e[r],a=t[r];/^on[A-Z]/.test(r)?s&&a?n[r]=(...i)=>{const l=a(...i);return s(...i),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...a}:r==="className"&&(n[r]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function NS(e){var r,s;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=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function AS(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sv}var RS=Symbol.for("react.lazy");function Tp(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===RS&&"_payload"in e&&MS(e._payload)}function MS(e){return typeof e=="object"&&e!==null&&"then"in e}var DS=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,OS=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Ao=Pd[" use ".trim().toString()];function LS(e){const t=e+"CollectionProvider",[n,r]=gl(t),[s,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:b,children:g}=v,p=w.useRef(null),y=w.useRef(new Map).current;return c.jsx(s,{scope:b,itemMap:y,collectionRef:p,children:g})};o.displayName=t;const i=e+"CollectionSlot",l=Ii(i),u=w.forwardRef((v,b)=>{const{scope:g,children:p}=v,y=a(i,g),P=Nt(b,y.collectionRef);return c.jsx(l,{ref:P,children:p})});u.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=Ii(d),m=w.forwardRef((v,b)=>{const{scope:g,children:p,...y}=v,P=w.useRef(null),S=Nt(b,P),k=a(d,g);return w.useEffect(()=>(k.itemMap.set(P,{ref:P,...y}),()=>void k.itemMap.delete(P))),c.jsx(h,{[f]:"",ref:S,children:p})});m.displayName=d;function x(v){const b=a(e+"CollectionConsumer",v);return w.useCallback(()=>{const p=b.collectionRef.current;if(!p)return[];const y=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((k,j)=>y.indexOf(k.ref.current)-y.indexOf(j.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},x,r]}var IS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=IS.reduce((e,t)=>{const n=Ii(`Primitive.${t}`),r=w.forwardRef((s,a)=>{const{asChild:o,...i}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function av(e,t){e&&to.flushSync(()=>e.dispatchEvent(t))}function qn(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function FS(e,t=globalThis==null?void 0:globalThis.document){const n=qn(e);w.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _S="DismissableLayer",ju="dismissableLayer.update",VS="dismissableLayer.pointerDownOutside",zS="dismissableLayer.focusOutside",Np,ov=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),pf=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:l,...u}=e,d=w.useContext(ov),[f,h]=w.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=w.useState({}),v=Nt(t,A=>h(A)),b=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),p=b.indexOf(g),y=f?b.indexOf(f):-1,P=d.layersWithOutsidePointerEventsDisabled.size>0,S=y>=p,k=w.useRef(!1),j=HS(A=>{const N=A.target;if(!(N instanceof Node))return;const I=[...d.branches].some(O=>O.contains(N));!S||I||(a==null||a(A),i==null||i(A),A.defaultPrevented||l==null||l())},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:k,dismissableSurfaces:d.dismissableSurfaces}),C=$S(A=>{if(r&&k.current)return;const N=A.target;[...d.branches].some(O=>O.contains(N))||(o==null||o(A),i==null||i(A),A.defaultPrevented||l==null||l())},m);return FS(A=>{y===d.layers.size-1&&(s==null||s(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},m),w.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Np=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ap(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Np))}},[f,m,n,d]),w.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ap())},[f,d]),w.useEffect(()=>{const A=()=>x({});return document.addEventListener(ju,A),()=>document.removeEventListener(ju,A)},[]),c.jsx(Be.div,{...u,ref:v,style:{pointerEvents:P?S?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,C.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,j.onPointerDownCapture)})});pf.displayName=_S;var BS="DismissableLayerBranch",iv=w.forwardRef((e,t)=>{const n=w.useContext(ov),r=w.useRef(null),s=Nt(t,r);return w.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.jsx(Be.div,{...e,ref:s})});iv.displayName=BS;function HS(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:a}=t,o=qn(e),i=w.useRef(!1),l=w.useRef(!1),u=w.useRef(new Map),d=w.useRef(()=>{});return w.useEffect(()=>{function f(){l.current=!1,s.current=!1,u.current.clear()}function h(){return Array.from(u.current.values()).some(Boolean)}function m(p){if(!l.current)return;const y=p.target;y instanceof Node&&[...a].some(S=>S.contains(y))||u.current.set(p.type,!0),p.type==="click"&&window.setTimeout(()=>{l.current&&d.current()},0)}function x(p){l.current&&u.current.set(p.type,!1)}const v=p=>{if(p.target&&!i.current){let y=function(){n.removeEventListener("click",d.current);const S=h();f(),S||lv(VS,o,P,{discrete:!0})};const P={originalEvent:p};l.current=!0,s.current=r&&p.button===0,u.current.clear(),!r||p.button!==0?y():(n.removeEventListener("click",d.current),d.current=y,n.addEventListener("click",d.current,{once:!0}))}else n.removeEventListener("click",d.current),f();i.current=!1},b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const p of b)n.addEventListener(p,m,!0),n.addEventListener(p,x);const g=window.setTimeout(()=>{n.addEventListener("pointerdown",v)},0);return()=>{window.clearTimeout(g),n.removeEventListener("pointerdown",v),n.removeEventListener("click",d.current);for(const p of b)n.removeEventListener(p,m,!0),n.removeEventListener(p,x)}},[n,o,r,s,a]),{onPointerDownCapture:()=>i.current=!0}}function $S(e,t=globalThis==null?void 0:globalThis.document){const n=qn(e),r=w.useRef(!1);return w.useEffect(()=>{const s=a=>{a.target&&!r.current&&lv(zS,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ap(){const e=new CustomEvent(ju);document.dispatchEvent(e)}function lv(e,t,n,{discrete:r}){const s=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?av(s,a):s.dispatchEvent(a)}var US=pf,WS=iv,on=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},qS="Portal",mf=w.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[s,a]=w.useState(!1);on(()=>a(!0),[]);const o=n||s&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return o?to.createPortal(c.jsx(Be.div,{...r,ref:t}),o):null});mf.displayName=qS;function KS(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var xl=e=>{const{present:t,children:n}=e,r=GS(t),s=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),a=YS(r.ref,QS(s));return typeof n=="function"||r.isPresent?w.cloneElement(s,{ref:a}):null};xl.displayName="Presence";function GS(e){const[t,n]=w.useState(),r=w.useRef(null),s=w.useRef(e),a=w.useRef("none"),o=e?"mounted":"unmounted",[i,l]=KS(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=Ro(r.current);a.current=i==="mounted"?u:"none"},[i]),on(()=>{const u=r.current,d=s.current;if(d!==e){const h=a.current,m=Ro(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),on(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=m=>{const v=Ro(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=m=>{m.target===t&&(a.current=Ro(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Rp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function YS(...e){const t=w.useRef(e);return t.current=e,w.useCallback(n=>{const r=t.current;let s=!1;const a=r.map(o=>{const i=Rp(o,n);return!s&&typeof i=="function"&&(s=!0),i});if(s)return()=>{for(let o=0;o<a.length;o++){const i=a[o];typeof i=="function"?i():Rp(r[o],null)}}},[])}function Ro(e){return(e==null?void 0:e.animationName)||"none"}function QS(e){var r,s;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=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var XS=Pd[" useInsertionEffect ".trim().toString()]||on;function ZS({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,a,o]=JS({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:s;{const d=w.useRef(e!==void 0);w.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,r])}const u=w.useCallback(d=>{var f;if(i){const h=ek(d)?d(e):d;h!==e&&((f=o.current)==null||f.call(o,h))}else a(d)},[i,e,a,o]);return[l,u]}function JS({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),s=w.useRef(n),a=w.useRef(t);return XS(()=>{a.current=t},[t]),w.useEffect(()=>{var o;s.current!==n&&((o=a.current)==null||o.call(a,n),s.current=n)},[n,s]),[n,r,a]}function ek(e){return typeof e=="function"}var tk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),nk="VisuallyHidden",yl=w.forwardRef((e,t)=>c.jsx(Be.span,{...e,ref:t,style:{...tk,...e.style}}));yl.displayName=nk;var rk=yl,gf="ToastProvider",[xf,sk,ak]=LS("Toast"),[cv]=gl("Toast",[ak]),[ok,vl]=cv(gf),uv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:a=50,announcerContainer:o,children:i}=e,[l,u]=w.useState(null),[d,f]=w.useState(0),h=w.useRef(!1),m=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${gf}\`. Expected non-empty \`string\`.`),c.jsx(xf.Provider,{scope:t,children:c.jsx(ok,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:a,toastCount:d,viewport:l,onViewportChange:u,onToastAdd:w.useCallback(()=>f(x=>x+1),[]),onToastRemove:w.useCallback(()=>f(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:m,announcerContainer:o,children:i})})};uv.displayName=gf;var dv="ToastViewport",ik=["F8"],Eu="toast.viewportPause",Tu="toast.viewportResume",fv=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=ik,label:s="Notifications ({hotkey})",...a}=e,o=vl(dv,n),i=sk(n),l=w.useRef(null),u=w.useRef(null),d=w.useRef(null),f=w.useRef(null),h=Nt(t,f,o.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=o.toastCount>0;w.useEffect(()=>{const b=g=>{var y;r.length!==0&&r.every(P=>g[P]||g.code===P)&&((y=f.current)==null||y.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),w.useEffect(()=>{const b=l.current,g=f.current;if(x&&b&&g){const p=()=>{if(!o.isClosePausedRef.current){const k=new CustomEvent(Eu);g.dispatchEvent(k),o.isClosePausedRef.current=!0}},y=()=>{if(o.isClosePausedRef.current){const k=new CustomEvent(Tu);g.dispatchEvent(k),o.isClosePausedRef.current=!1}},P=k=>{!b.contains(k.relatedTarget)&&y()},S=()=>{b.contains(document.activeElement)||y()};return b.addEventListener("focusin",p),b.addEventListener("focusout",P),b.addEventListener("pointermove",p),b.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",y),()=>{b.removeEventListener("focusin",p),b.removeEventListener("focusout",P),b.removeEventListener("pointermove",p),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",y)}}},[x,o.isClosePausedRef]);const v=w.useCallback(({tabbingDirection:b})=>{const p=i().map(y=>{const P=y.ref.current,S=[P,...wk(P)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?p.reverse():p).flat()},[i]);return w.useEffect(()=>{const b=f.current;if(b){const g=p=>{var S,k,j;const y=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!y){const C=document.activeElement,A=p.shiftKey;if(p.target===b&&A){(S=u.current)==null||S.focus();return}const O=v({tabbingDirection:A?"backwards":"forwards"}),H=O.findIndex(D=>D===C);ic(O.slice(H+1))?p.preventDefault():A?(k=u.current)==null||k.focus():(j=d.current)==null||j.focus()}};return b.addEventListener("keydown",g),()=>b.removeEventListener("keydown",g)}},[i,v]),c.jsxs(WS,{ref:l,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&c.jsx(Nu,{ref:u,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"forwards"});ic(b)}}),c.jsx(xf.Slot,{scope:n,children:c.jsx(Be.ol,{tabIndex:-1,...a,ref:h})}),x&&c.jsx(Nu,{ref:d,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"backwards"});ic(b)}})]})});fv.displayName=dv;var hv="ToastFocusProxy",Nu=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,a=vl(hv,n);return c.jsx(yl,{tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const i=o.relatedTarget;!((u=a.viewport)!=null&&u.contains(i))&&r()}})});Nu.displayName=hv;var no="Toast",lk="toast.swipeStart",ck="toast.swipeMove",uk="toast.swipeCancel",dk="toast.swipeEnd",pv=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:a,...o}=e,[i,l]=ZS({prop:r,defaultProp:s??!0,onChange:a,caller:no});return c.jsx(xl,{present:n||i,children:c.jsx(pk,{open:i,...o,ref:t,onClose:()=>l(!1),onPause:qn(e.onPause),onResume:qn(e.onResume),onSwipeStart:xe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:xe(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:xe(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:xe(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});pv.displayName=no;var[fk,hk]=cv(no,{onClose(){}}),pk=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:a,onClose:o,onEscapeKeyDown:i,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...x}=e,v=vl(no,n),[b,g]=w.useState(null),p=Nt(t,D=>g(D)),y=w.useRef(null),P=w.useRef(null),S=s||v.duration,k=w.useRef(0),j=w.useRef(S),C=w.useRef(0),{onToastAdd:A,onToastRemove:N}=v,I=qn(()=>{var $;(b==null?void 0:b.contains(document.activeElement))&&(($=v.viewport)==null||$.focus()),o()}),O=w.useCallback(D=>{!D||D===1/0||(window.clearTimeout(C.current),k.current=new Date().getTime(),C.current=window.setTimeout(I,D))},[I]);w.useEffect(()=>{const D=v.viewport;if(D){const $=()=>{O(j.current),u==null||u()},V=()=>{const K=new Date().getTime()-k.current;j.current=j.current-K,window.clearTimeout(C.current),l==null||l()};return D.addEventListener(Eu,V),D.addEventListener(Tu,$),()=>{D.removeEventListener(Eu,V),D.removeEventListener(Tu,$)}}},[v.viewport,S,l,u,O]),w.useEffect(()=>{a&&!v.isClosePausedRef.current&&O(S)},[a,S,v.isClosePausedRef,O]),w.useEffect(()=>(A(),()=>N()),[A,N]);const H=w.useMemo(()=>b?bv(b):null,[b]);return v.viewport?c.jsxs(c.Fragment,{children:[H&&c.jsx(mk,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:H}),c.jsx(fk,{scope:n,onClose:I,children:to.createPortal(c.jsx(xf.ItemSlot,{scope:n,children:c.jsx(US,{asChild:!0,onEscapeKeyDown:xe(i,()=>{v.isFocusedToastEscapeKeyDownRef.current||I(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(Be.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":v.swipeDirection,...x,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:xe(e.onKeyDown,D=>{D.key==="Escape"&&(i==null||i(D.nativeEvent),D.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:xe(e.onPointerDown,D=>{D.button===0&&(y.current={x:D.clientX,y:D.clientY})}),onPointerMove:xe(e.onPointerMove,D=>{if(!y.current)return;const $=D.clientX-y.current.x,V=D.clientY-y.current.y,K=!!P.current,E=["left","right"].includes(v.swipeDirection),M=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,_=E?M(0,$):0,B=E?0:M(0,V),Y=D.pointerType==="touch"?10:2,mt={x:_,y:B},rt={originalEvent:D,delta:mt};K?(P.current=mt,Mo(ck,f,rt,{discrete:!1})):Mp(mt,v.swipeDirection,Y)?(P.current=mt,Mo(lk,d,rt,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs($)>Y||Math.abs(V)>Y)&&(y.current=null)}),onPointerUp:xe(e.onPointerUp,D=>{const $=P.current,V=D.target;if(V.hasPointerCapture(D.pointerId)&&V.releasePointerCapture(D.pointerId),P.current=null,y.current=null,$){const K=D.currentTarget,E={originalEvent:D,delta:$};Mp($,v.swipeDirection,v.swipeThreshold)?Mo(dk,m,E,{discrete:!0}):Mo(uk,h,E,{discrete:!0}),K.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),mk=e=>{const{__scopeToast:t,children:n,...r}=e,s=vl(no,t),[a,o]=w.useState(!1),[i,l]=w.useState(!1);return yk(()=>o(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),i?null:c.jsx(mf,{asChild:!0,container:s.announcerContainer||void 0,children:c.jsx(yl,{...r,children:a&&c.jsxs(c.Fragment,{children:[s.label," ",n]})})})},gk="ToastTitle",mv=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Be.div,{...r,ref:t})});mv.displayName=gk;var xk="ToastDescription",gv=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Be.div,{...r,ref:t})});gv.displayName=xk;var xv="ToastAction",yv=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(wv,{altText:n,asChild:!0,children:c.jsx(yf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${xv}\`. Expected non-empty \`string\`.`),null)});yv.displayName=xv;var vv="ToastClose",yf=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=hk(vv,n);return c.jsx(wv,{asChild:!0,children:c.jsx(Be.button,{type:"button",...r,ref:t,onClick:xe(e.onClick,s.onClose)})})});yf.displayName=vv;var wv=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return c.jsx(Be.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function bv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),vk(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!s)if(a){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...bv(r))}}),t}function Mo(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?av(s,a):s.dispatchEvent(a)}var Mp=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),a=r>s;return t==="left"||t==="right"?a&&r>n:!a&&s>n};function yk(e=()=>{}){const t=qn(e);on(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function vk(e){return e.nodeType===e.ELEMENT_NODE}function wk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ic(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var bk=uv,Pv=fv,Sv=pv,kv=mv,Cv=gv,jv=yv,Ev=yf;function Tv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Tv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nv(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Tv(e))&&(r&&(r+=" "),r+=t);return r}const Dp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Op=Nv,vf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Op(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:a}=t,o=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],f=a==null?void 0:a[u];if(d===null)return null;const h=Dp(d)||Dp(f);return s[u][h]}),i=n&&Object.entries(n).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(x=>{let[v,b]=x;return Array.isArray(b)?b.includes({...a,...i}[v]):{...a,...i}[v]===b})?[...u,f,h]:u},[]);return Op(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Lp=e=>{const t=Sk(e);return t.charAt(0).toUpperCase()+t.slice(1)},Av=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),kk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ck={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.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jk=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:a,iconNode:o,...i},l)=>w.createElement("svg",{ref:l,...Ck,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Av("lucide",s),...!a&&!kk(i)&&{"aria-hidden":"true"},...i},[...o.map(([u,d])=>w.createElement(u,d)),...Array.isArray(a)?a:[a]]));/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wl=(e,t)=>{const n=w.forwardRef(({className:r,...s},a)=>w.createElement(jk,{ref:a,iconNode:t,className:Av(`lucide-${Pk(Lp(e))}`,`lucide-${e}`,r),...s}));return n.displayName=Lp(e),n};/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ek=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],Tk=wl("house",Ek);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nk=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ip=wl("refresh-cw",Nk);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ak=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Fp=wl("triangle-alert",Ak);/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Mk=wl("x",Rk),wf="-",Dk=e=>{const t=Lk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const i=o.split(wf);return i[0]===""&&i.length!==1&&i.shift(),Rv(i,t)||Ok(o)},getConflictingClassGroupIds:(o,i)=>{const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}}},Rv=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Rv(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(wf);return(o=t.validators.find(({validator:i})=>i(a)))==null?void 0:o.classGroupId},_p=/^\[(.+)\]$/,Ok=e=>{if(_p.test(e)){const t=_p.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Lk=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Fk(Object.entries(e.classGroups),n).forEach(([a,o])=>{Au(o,r,a,t)}),r},Au=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?t:Vp(t,s);a.classGroupId=n;return}if(typeof s=="function"){if(Ik(s)){Au(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,o])=>{Au(o,Vp(t,a),n,r)})})},Vp=(e,t)=>{let n=e;return t.split(wf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ik=e=>e.isThemeGetter,Fk=(e,t)=>t?e.map(([n,r])=>{const s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,i])=>[t+o,i])):a);return[n,s]}):e,_k=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(a,o)=>{n.set(a,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return s(a,o),o},set(a,o){n.has(a)?n.set(a,o):s(a,o)}}},Mv="!",Vk=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],a=t.length,o=i=>{const l=[];let u=0,d=0,f;for(let b=0;b<i.length;b++){let g=i[b];if(u===0){if(g===s&&(r||i.slice(b,b+a)===t)){l.push(i.slice(d,b)),d=b+a;continue}if(g==="/"){f=b;continue}}g==="["?u++:g==="]"&&u--}const h=l.length===0?i:i.substring(d),m=h.startsWith(Mv),x=m?h.substring(1):h,v=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:v}};return n?i=>n({className:i,parseClassName:o}):o},zk=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},Bk=e=>({cache:_k(e.cacheSize),parseClassName:Vk(e),...Dk(e)}),Hk=/\s+/,$k=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],o=e.trim().split(Hk);let i="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(u);let x=!!m,v=r(x?h.substring(0,m):h);if(!v){if(!x){i=u+(i.length>0?" "+i:i);continue}if(v=r(h),!v){i=u+(i.length>0?" "+i:i);continue}x=!1}const b=zk(d).join(":"),g=f?b+Mv:b,p=g+v;if(a.includes(p))continue;a.push(p);const y=s(v,x);for(let P=0;P<y.length;++P){const S=y[P];a.push(g+S)}i=u+(i.length>0?" "+i:i)}return i};function Uk(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Dv(t))&&(r&&(r+=" "),r+=n);return r}const Dv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Dv(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wk(e,...t){let n,r,s,a=o;function o(l){const u=t.reduce((d,f)=>f(d),e());return n=Bk(u),r=n.cache.get,s=n.cache.set,a=i,i(l)}function i(l){const u=r(l);if(u)return u;const d=$k(l,n);return s(l,d),d}return function(){return a(Uk.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ov=/^\[(?:([a-z-]+):)?(.+)\]$/i,qk=/^\d+\/\d+$/,Kk=new Set(["px","full","screen"]),Gk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yk=/\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$/,Qk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>os(e)||Kk.has(e)||qk.test(e),xn=e=>Ds(e,"length",oC),os=e=>!!e&&!Number.isNaN(Number(e)),lc=e=>Ds(e,"number",os),Qs=e=>!!e&&Number.isInteger(Number(e)),Jk=e=>e.endsWith("%")&&os(e.slice(0,-1)),U=e=>Ov.test(e),yn=e=>Gk.test(e),eC=new Set(["length","size","percentage"]),tC=e=>Ds(e,eC,Lv),nC=e=>Ds(e,"position",Lv),rC=new Set(["image","url"]),sC=e=>Ds(e,rC,lC),aC=e=>Ds(e,"",iC),Xs=()=>!0,Ds=(e,t,n)=>{const r=Ov.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},oC=e=>Yk.test(e)&&!Qk.test(e),Lv=()=>!1,iC=e=>Xk.test(e),lC=e=>Zk.test(e),cC=()=>{const e=te("colors"),t=te("spacing"),n=te("blur"),r=te("brightness"),s=te("borderColor"),a=te("borderRadius"),o=te("borderSpacing"),i=te("borderWidth"),l=te("contrast"),u=te("grayscale"),d=te("hueRotate"),f=te("invert"),h=te("gap"),m=te("gradientColorStops"),x=te("gradientColorStopPositions"),v=te("inset"),b=te("margin"),g=te("opacity"),p=te("padding"),y=te("saturate"),P=te("scale"),S=te("sepia"),k=te("skew"),j=te("space"),C=te("translate"),A=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",U,t],O=()=>[U,t],H=()=>["",Xt,xn],D=()=>["auto",os,U],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",U],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[os,U];return{cacheSize:500,separator:":",theme:{colors:[Xs],spacing:[Xt,xn],blur:["none","",yn,U],brightness:B(),borderColor:[e],borderRadius:["none","","full",yn,U],borderSpacing:O(),borderWidth:H(),contrast:B(),grayscale:M(),hueRotate:B(),invert:M(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Jk,xn],inset:I(),margin:I(),opacity:B(),padding:O(),saturate:B(),scale:B(),sepia:M(),skew:B(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",U]}],container:["container"],columns:[{columns:[yn]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:[...$(),U]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qs,U]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",U]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Qs,U]}],"grid-cols":[{"grid-cols":[Xs]}],"col-start-end":[{col:["auto",{span:["full",Qs,U]},U]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Xs]}],"row-start-end":[{row:["auto",{span:[Qs,U]},U]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",U]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",U]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",U,t]}],"min-w":[{"min-w":[U,t,"min","max","fit"]}],"max-w":[{"max-w":[U,t,"none","full","min","max","fit","prose",{screen:[yn]},yn]}],h:[{h:[U,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[U,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yn,xn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",lc]}],"font-family":[{font:[Xs]}],"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",U]}],"line-clamp":[{"line-clamp":["none",os,lc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xt,U]}],"list-image":[{"list-image":["none",U]}],"list-style-type":[{list:["none","disc","decimal",U]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xt,xn]}],"underline-offset":[{"underline-offset":["auto",Xt,U]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U]}],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",U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),nC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:V()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Xt,U]}],"outline-w":[{outline:[Xt,xn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Xt,xn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yn,aC]}],"shadow-color":[{shadow:[Xs]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",yn,U]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",U]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",U]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",U]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[Qs,U]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",U]}],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",U]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",U]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xt,xn,lc]}],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"]}}},uC=Wk(cC);function Pe(...e){return uC(Nv(e))}const dC=bk,Iv=w.forwardRef(({className:e,...t},n)=>c.jsx(Pv,{ref:n,className:Pe("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}));Iv.displayName=Pv.displayName;const fC=vf("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Fv=w.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(Sv,{ref:r,className:Pe(fC({variant:t}),e),...n}));Fv.displayName=Sv.displayName;const hC=w.forwardRef(({className:e,...t},n)=>c.jsx(jv,{ref:n,className:Pe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));hC.displayName=jv.displayName;const _v=w.forwardRef(({className:e,...t},n)=>c.jsx(Ev,{ref:n,className:Pe("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 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:c.jsx(Mk,{className:"h-4 w-4"})}));_v.displayName=Ev.displayName;const Vv=w.forwardRef(({className:e,...t},n)=>c.jsx(kv,{ref:n,className:Pe("text-sm font-semibold [&+div]:text-xs",e),...t}));Vv.displayName=kv.displayName;const zv=w.forwardRef(({className:e,...t},n)=>c.jsx(Cv,{ref:n,className:Pe("text-sm opacity-90",e),...t}));zv.displayName=Cv.displayName;function pC(){const{toasts:e}=rv();return c.jsxs(dC,{children:[e.map(function({id:t,title:n,description:r,action:s,...a}){return c.jsxs(Fv,{...a,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Vv,{children:n}),r&&c.jsx(zv,{children:r})]}),s,c.jsx(_v,{})]},t)}),c.jsx(Iv,{})]})}const mC=["top","right","bottom","left"],Kn=Math.min,Ye=Math.max,Fi=Math.round,Do=Math.floor,Wt=e=>({x:e,y:e}),gC={left:"right",right:"left",bottom:"top",top:"bottom"};function Ru(e,t,n){return Ye(e,Kn(t,n))}function fn(e,t){return typeof e=="function"?e(t):e}function hn(e){return e.split("-")[0]}function Os(e){return e.split("-")[1]}function bf(e){return e==="x"?"y":"x"}function Pf(e){return e==="y"?"height":"width"}function Ht(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Sf(e){return bf(Ht(e))}function xC(e,t,n){n===void 0&&(n=!1);const r=Os(e),s=Sf(e),a=Pf(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=_i(o)),[o,_i(o)]}function yC(e){const t=_i(e);return[Mu(e),t,Mu(t)]}function Mu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const zp=["left","right"],Bp=["right","left"],vC=["top","bottom"],wC=["bottom","top"];function bC(e,t,n){switch(e){case"top":case"bottom":return n?t?Bp:zp:t?zp:Bp;case"left":case"right":return t?vC:wC;default:return[]}}function PC(e,t,n,r){const s=Os(e);let a=bC(hn(e),n==="start",r);return s&&(a=a.map(o=>o+"-"+s),t&&(a=a.concat(a.map(Mu)))),a}function _i(e){const t=hn(e);return gC[t]+e.slice(t.length)}function SC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bv(e){return typeof e!="number"?SC(e):{top:e,right:e,bottom:e,left:e}}function Vi(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Hp(e,t,n){let{reference:r,floating:s}=e;const a=Ht(t),o=Sf(t),i=Pf(o),l=hn(t),u=a==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[i]/2-s[i]/2;let m;switch(l){case"top":m={x:d,y:r.y-s.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-s.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Os(t)){case"start":m[o]-=h*(n&&u?-1:1);break;case"end":m[o]+=h*(n&&u?-1:1);break}return m}async function kC(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:a,rects:o,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=fn(t,e),x=Bv(m),b=i[h?f==="floating"?"reference":"floating":f],g=Vi(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),p=f==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),P=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Vi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:p,offsetParent:y,strategy:l}):p);return{top:(g.top-S.top+x.top)/P.y,bottom:(S.bottom-g.bottom+x.bottom)/P.y,left:(g.left-S.left+x.left)/P.x,right:(S.right-g.right+x.right)/P.x}}const CC=50,jC=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:o}=n,i=o.detectOverflow?o:{...o,detectOverflow:kC},l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=Hp(u,r,l),h=r,m=0;const x={};for(let v=0;v<a.length;v++){const b=a[v];if(!b)continue;const{name:g,fn:p}=b,{x:y,y:P,data:S,reset:k}=await p({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:x,rects:u,platform:i,elements:{reference:e,floating:t}});d=y??d,f=P??f,x[g]={...x[g],...S},k&&m<CC&&(m++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(u=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:d,y:f}=Hp(u,h,l)),v=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:x}},EC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:a,platform:o,elements:i,middlewareData:l}=t,{element:u,padding:d=0}=fn(e,t)||{};if(u==null)return{};const f=Bv(d),h={x:n,y:r},m=Sf(s),x=Pf(m),v=await o.getDimensions(u),b=m==="y",g=b?"top":"left",p=b?"bottom":"right",y=b?"clientHeight":"clientWidth",P=a.reference[x]+a.reference[m]-h[m]-a.floating[x],S=h[m]-a.reference[m],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let j=k?k[y]:0;(!j||!await(o.isElement==null?void 0:o.isElement(k)))&&(j=i.floating[y]||a.floating[x]);const C=P/2-S/2,A=j/2-v[x]/2-1,N=Kn(f[g],A),I=Kn(f[p],A),O=N,H=j-v[x]-I,D=j/2-v[x]/2+C,$=Ru(O,D,H),V=!l.arrow&&Os(s)!=null&&D!==$&&a.reference[x]/2-(D<O?N:I)-v[x]/2<0,K=V?D<O?D-O:D-H:0;return{[m]:h[m]+K,data:{[m]:$,centerOffset:D-$-K,...V&&{alignmentOffset:K}},reset:V}}}),TC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:a,rects:o,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...b}=fn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=hn(s),p=Ht(i),y=hn(i)===i,P=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=h||(y||!v?[_i(i)]:yC(i)),k=x!=="none";!h&&k&&S.push(...PC(i,v,x,P));const j=[i,...S],C=await l.detectOverflow(t,b),A=[];let N=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&A.push(C[g]),f){const D=xC(s,o,P);A.push(C[D[0]],C[D[1]])}if(N=[...N,{placement:s,overflows:A}],!A.every(D=>D<=0)){var I,O;const D=(((I=a.flip)==null?void 0:I.index)||0)+1,$=j[D];if($&&(!(f==="alignment"?p!==Ht($):!1)||N.every(E=>Ht(E.placement)===p?E.overflows[0]>0:!0)))return{data:{index:D,overflows:N},reset:{placement:$}};let V=(O=N.filter(K=>K.overflows[0]<=0).sort((K,E)=>K.overflows[1]-E.overflows[1])[0])==null?void 0:O.placement;if(!V)switch(m){case"bestFit":{var H;const K=(H=N.filter(E=>{if(k){const M=Ht(E.placement);return M===p||M==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(M=>M>0).reduce((M,_)=>M+_,0)]).sort((E,M)=>E[1]-M[1])[0])==null?void 0:H[0];K&&(V=K);break}case"initialPlacement":V=i;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function $p(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Up(e){return mC.some(t=>e[t]>=0)}const NC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:s="referenceHidden",...a}=fn(e,t);switch(s){case"referenceHidden":{const o=await r.detectOverflow(t,{...a,elementContext:"reference"}),i=$p(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Up(i)}}}case"escaped":{const o=await r.detectOverflow(t,{...a,altBoundary:!0}),i=$p(o,n.floating);return{data:{escapedOffsets:i,escaped:Up(i)}}}default:return{}}}}},Hv=new Set(["left","top"]);async function AC(e,t){const{placement:n,platform:r,elements:s}=e,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=hn(n),i=Os(n),l=Ht(n)==="y",u=Hv.has(o)?-1:1,d=a&&l?-1:1,f=fn(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof x=="number"&&(m=i==="end"?x*-1:x),l?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const RC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:a,placement:o,middlewareData:i}=t,l=await AC(t,e);return o===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:a+l.y,data:{...l,placement:o}}}}},MC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s,platform:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:g=>{let{x:p,y}=g;return{x:p,y}}},...u}=fn(e,t),d={x:n,y:r},f=await a.detectOverflow(t,u),h=Ht(hn(s)),m=bf(h);let x=d[m],v=d[h];if(o){const g=m==="y"?"top":"left",p=m==="y"?"bottom":"right",y=x+f[g],P=x-f[p];x=Ru(y,x,P)}if(i){const g=h==="y"?"top":"left",p=h==="y"?"bottom":"right",y=v+f[g],P=v-f[p];v=Ru(y,v,P)}const b=l.fn({...t,[m]:x,[h]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[m]:o,[h]:i}}}}}},DC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:a,middlewareData:o}=t,{offset:i=0,mainAxis:l=!0,crossAxis:u=!0}=fn(e,t),d={x:n,y:r},f=Ht(s),h=bf(f);let m=d[h],x=d[f];const v=fn(i,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=h==="y"?"height":"width",P=a.reference[h]-a.floating[y]+b.mainAxis,S=a.reference[h]+a.reference[y]-b.mainAxis;m<P?m=P:m>S&&(m=S)}if(u){var g,p;const y=h==="y"?"width":"height",P=Hv.has(hn(s)),S=a.reference[f]-a.floating[y]+(P&&((g=o.offset)==null?void 0:g[f])||0)+(P?0:b.crossAxis),k=a.reference[f]+a.reference[y]+(P?0:((p=o.offset)==null?void 0:p[f])||0)-(P?b.crossAxis:0);x<S?x=S:x>k&&(x=k)}return{[h]:m,[f]:x}}}},OC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:a,platform:o,elements:i}=t,{apply:l=()=>{},...u}=fn(e,t),d=await o.detectOverflow(t,u),f=hn(s),h=Os(s),m=Ht(s)==="y",{width:x,height:v}=a.floating;let b,g;f==="top"||f==="bottom"?(b=f,g=h===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=f,b=h==="end"?"top":"bottom");const p=v-d.top-d.bottom,y=x-d.left-d.right,P=Kn(v-d[b],p),S=Kn(x-d[g],y),k=!t.middlewareData.shift;let j=P,C=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=p),k&&!h){const N=Ye(d.left,0),I=Ye(d.right,0),O=Ye(d.top,0),H=Ye(d.bottom,0);m?C=x-2*(N!==0||I!==0?N+I:Ye(d.left,d.right)):j=v-2*(O!==0||H!==0?O+H:Ye(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:j});const A=await o.getDimensions(i.floating);return x!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function bl(){return typeof window<"u"}function Ls(e){return $v(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gt(e){var t;return(t=($v(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $v(e){return bl()?e instanceof Node||e instanceof Ze(e).Node:!1}function At(e){return bl()?e instanceof Element||e instanceof Ze(e).Element:!1}function mn(e){return bl()?e instanceof HTMLElement||e instanceof Ze(e).HTMLElement:!1}function Wp(e){return!bl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}function ro(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&s!=="inline"&&s!=="contents"}function LC(e){return/^(table|td|th)$/.test(Ls(e))}function Pl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const IC=/transform|translate|scale|rotate|perspective|filter/,FC=/paint|layout|strict|content/,nr=e=>!!e&&e!=="none";let cc;function kf(e){const t=At(e)?Rt(e):e;return nr(t.transform)||nr(t.translate)||nr(t.scale)||nr(t.rotate)||nr(t.perspective)||!Cf()&&(nr(t.backdropFilter)||nr(t.filter))||IC.test(t.willChange||"")||FC.test(t.contain||"")}function _C(e){let t=Gn(e);for(;mn(t)&&!js(t);){if(kf(t))return t;if(Pl(t))return null;t=Gn(t)}return null}function Cf(){return cc==null&&(cc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),cc}function js(e){return/^(html|body|#document)$/.test(Ls(e))}function Rt(e){return Ze(e).getComputedStyle(e)}function Sl(e){return At(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gn(e){if(Ls(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wp(e)&&e.host||Gt(e);return Wp(t)?t.host:t}function Uv(e){const t=Gn(e);return js(t)?e.ownerDocument?e.ownerDocument.body:e.body:mn(t)&&ro(t)?t:Uv(t)}function _a(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Uv(e),a=s===((r=e.ownerDocument)==null?void 0:r.body),o=Ze(s);if(a){const i=Du(o);return t.concat(o,o.visualViewport||[],ro(s)?s:[],i&&n?_a(i):[])}else return t.concat(s,_a(s,[],n))}function Du(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wv(e){const t=Rt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=mn(e),a=s?e.offsetWidth:n,o=s?e.offsetHeight:r,i=Fi(n)!==a||Fi(r)!==o;return i&&(n=a,r=o),{width:n,height:r,$:i}}function jf(e){return At(e)?e:e.contextElement}function is(e){const t=jf(e);if(!mn(t))return Wt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:a}=Wv(t);let o=(a?Fi(n.width):n.width)/r,i=(a?Fi(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const VC=Wt(0);function qv(e){const t=Ze(e);return!Cf()||!t.visualViewport?VC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ze(e)?!1:t}function Tr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=jf(e);let o=Wt(1);t&&(r?At(r)&&(o=is(r)):o=is(e));const i=zC(a,n,r)?qv(a):Wt(0);let l=(s.left+i.x)/o.x,u=(s.top+i.y)/o.y,d=s.width/o.x,f=s.height/o.y;if(a){const h=Ze(a),m=r&&At(r)?Ze(r):r;let x=h,v=Du(x);for(;v&&r&&m!==x;){const b=is(v),g=v.getBoundingClientRect(),p=Rt(v),y=g.left+(v.clientLeft+parseFloat(p.paddingLeft))*b.x,P=g.top+(v.clientTop+parseFloat(p.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,f*=b.y,l+=y,u+=P,x=Ze(v),v=Du(x)}}return Vi({width:d,height:f,x:l,y:u})}function kl(e,t){const n=Sl(e).scrollLeft;return t?t.left+n:Tr(Gt(e)).left+n}function Kv(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-kl(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function BC(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const a=s==="fixed",o=Gt(r),i=t?Pl(t.floating):!1;if(r===o||i&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Wt(1);const d=Wt(0),f=mn(r);if((f||!f&&!a)&&((Ls(r)!=="body"||ro(o))&&(l=Sl(r)),f)){const m=Tr(r);u=is(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=o&&!f&&!a?Kv(o,l):Wt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}}function HC(e){return Array.from(e.getClientRects())}function $C(e){const t=Gt(e),n=Sl(e),r=e.ownerDocument.body,s=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+kl(e);const i=-n.scrollTop;return Rt(r).direction==="rtl"&&(o+=Ye(t.clientWidth,r.clientWidth)-s),{width:s,height:a,x:o,y:i}}const qp=25;function UC(e,t){const n=Ze(e),r=Gt(e),s=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;const d=Cf();(!d||d&&t==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}const u=kl(r);if(u<=0){const d=r.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,x=Math.abs(r.clientWidth-f.clientWidth-m);x<=qp&&(a-=x)}else u<=qp&&(a+=u);return{width:a,height:o,x:i,y:l}}function WC(e,t){const n=Tr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,a=mn(e)?is(e):Wt(1),o=e.clientWidth*a.x,i=e.clientHeight*a.y,l=s*a.x,u=r*a.y;return{width:o,height:i,x:l,y:u}}function Kp(e,t,n){let r;if(t==="viewport")r=UC(e,n);else if(t==="document")r=$C(Gt(e));else if(At(t))r=WC(t,n);else{const s=qv(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Vi(r)}function Gv(e,t){const n=Gn(e);return n===t||!At(n)||js(n)?!1:Rt(n).position==="fixed"||Gv(n,t)}function qC(e,t){const n=t.get(e);if(n)return n;let r=_a(e,[],!1).filter(i=>At(i)&&Ls(i)!=="body"),s=null;const a=Rt(e).position==="fixed";let o=a?Gn(e):e;for(;At(o)&&!js(o);){const i=Rt(o),l=kf(o);!l&&i.position==="fixed"&&(s=null),(a?!l&&!s:!l&&i.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||ro(o)&&!l&&Gv(e,o))?r=r.filter(d=>d!==o):s=i,o=Gn(o)}return t.set(e,r),r}function KC(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Pl(t)?[]:qC(t,this._c):[].concat(n),r],i=Kp(t,o[0],s);let l=i.top,u=i.right,d=i.bottom,f=i.left;for(let h=1;h<o.length;h++){const m=Kp(t,o[h],s);l=Ye(m.top,l),u=Kn(m.right,u),d=Kn(m.bottom,d),f=Ye(m.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function GC(e){const{width:t,height:n}=Wv(e);return{width:t,height:n}}function YC(e,t,n){const r=mn(t),s=Gt(t),a=n==="fixed",o=Tr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Wt(0);function u(){l.x=kl(s)}if(r||!r&&!a)if((Ls(t)!=="body"||ro(s))&&(i=Sl(t)),r){const m=Tr(t,!0,a,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else s&&u();a&&!r&&s&&u();const d=s&&!r&&!a?Kv(s,i):Wt(0),f=o.left+i.scrollLeft-l.x-d.x,h=o.top+i.scrollTop-l.y-d.y;return{x:f,y:h,width:o.width,height:o.height}}function uc(e){return Rt(e).position==="static"}function Gp(e,t){if(!mn(e)||Rt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Gt(e)===n&&(n=n.ownerDocument.body),n}function Yv(e,t){const n=Ze(e);if(Pl(e))return n;if(!mn(e)){let s=Gn(e);for(;s&&!js(s);){if(At(s)&&!uc(s))return s;s=Gn(s)}return n}let r=Gp(e,t);for(;r&&LC(r)&&uc(r);)r=Gp(r,t);return r&&js(r)&&uc(r)&&!kf(r)?n:r||_C(e)||n}const QC=async function(e){const t=this.getOffsetParent||Yv,n=this.getDimensions,r=await n(e.floating);return{reference:YC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function XC(e){return Rt(e).direction==="rtl"}const ZC={convertOffsetParentRelativeRectToViewportRelativeRect:BC,getDocumentElement:Gt,getClippingRect:KC,getOffsetParent:Yv,getElementRects:QC,getClientRects:HC,getDimensions:GC,getScale:is,isElement:At,isRTL:XC};function Qv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JC(e,t){let n=null,r;const s=Gt(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function o(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=u;if(i||t(),!h||!m)return;const x=Do(f),v=Do(s.clientWidth-(d+h)),b=Do(s.clientHeight-(f+m)),g=Do(d),y={rootMargin:-x+"px "+-v+"px "+-b+"px "+-g+"px",threshold:Ye(0,Kn(1,l))||1};let P=!0;function S(k){const j=k[0].intersectionRatio;if(j!==l){if(!P)return o();j?o(!1,j):r=setTimeout(()=>{o(!1,1e-7)},1e3)}j===1&&!Qv(u,e.getBoundingClientRect())&&o(),P=!1}try{n=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return o(!0),a}function ej(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=jf(e),d=s||a?[...u?_a(u):[],...t?_a(t):[]]:[];d.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const f=u&&i?JC(u,n):null;let h=-1,m=null;o&&(m=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),u&&!l&&m.observe(u),t&&m.observe(t));let x,v=l?Tr(e):null;l&&b();function b(){const g=Tr(e);v&&!Qv(v,g)&&n(),v=g,x=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(p=>{s&&p.removeEventListener("scroll",n),a&&p.removeEventListener("resize",n)}),f==null||f(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(x)}}const tj=RC,nj=MC,rj=TC,sj=OC,aj=NC,Yp=EC,oj=DC,ij=(e,t,n)=>{const r=new Map,s={platform:ZC,...n},a={...s.platform,_c:r};return jC(e,t,{...s,platform:a})};var lj=typeof document<"u",cj=function(){},ni=lj?w.useLayoutEffect:cj;function zi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!zi(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&e.$$typeof)&&!zi(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Xv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qp(e,t){const n=Xv(e);return Math.round(t*n)/n}function dc(e){const t=w.useRef(e);return ni(()=>{t.current=e}),t}function uj(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:o}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[d,f]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=w.useState(r);zi(h,r)||m(r);const[x,v]=w.useState(null),[b,g]=w.useState(null),p=w.useCallback(E=>{E!==k.current&&(k.current=E,v(E))},[]),y=w.useCallback(E=>{E!==j.current&&(j.current=E,g(E))},[]),P=a||x,S=o||b,k=w.useRef(null),j=w.useRef(null),C=w.useRef(d),A=l!=null,N=dc(l),I=dc(s),O=dc(u),H=w.useCallback(()=>{if(!k.current||!j.current)return;const E={placement:t,strategy:n,middleware:h};I.current&&(E.platform=I.current),ij(k.current,j.current,E).then(M=>{const _={...M,isPositioned:O.current!==!1};D.current&&!zi(C.current,_)&&(C.current=_,to.flushSync(()=>{f(_)}))})},[h,t,n,I,O]);ni(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(E=>({...E,isPositioned:!1})))},[u]);const D=w.useRef(!1);ni(()=>(D.current=!0,()=>{D.current=!1}),[]),ni(()=>{if(P&&(k.current=P),S&&(j.current=S),P&&S){if(N.current)return N.current(P,S,H);H()}},[P,S,H,N,A]);const $=w.useMemo(()=>({reference:k,floating:j,setReference:p,setFloating:y}),[p,y]),V=w.useMemo(()=>({reference:P,floating:S}),[P,S]),K=w.useMemo(()=>{const E={position:n,left:0,top:0};if(!V.floating)return E;const M=Qp(V.floating,d.x),_=Qp(V.floating,d.y);return i?{...E,transform:"translate("+M+"px, "+_+"px)",...Xv(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:_}},[n,i,V.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:H,refs:$,elements:V,floatingStyles:K}),[d,H,$,V,K])}const dj=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Yp({element:r.current,padding:s}).fn(n):{}:r?Yp({element:r,padding:s}).fn(n):{}}}},fj=(e,t)=>{const n=tj(e);return{name:n.name,fn:n.fn,options:[e,t]}},hj=(e,t)=>{const n=nj(e);return{name:n.name,fn:n.fn,options:[e,t]}},pj=(e,t)=>({fn:oj(e).fn,options:[e,t]}),mj=(e,t)=>{const n=rj(e);return{name:n.name,fn:n.fn,options:[e,t]}},gj=(e,t)=>{const n=sj(e);return{name:n.name,fn:n.fn,options:[e,t]}},xj=(e,t)=>{const n=aj(e);return{name:n.name,fn:n.fn,options:[e,t]}},yj=(e,t)=>{const n=dj(e);return{name:n.name,fn:n.fn,options:[e,t]}};var vj="Arrow",Zv=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...a}=e;return c.jsx(Be.svg,{...a,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zv.displayName=vj;var wj=Zv;function bj(e){const[t,n]=w.useState(void 0);return on(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let o,i;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,i=u.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Jv="Popper",[e0,t0]=gl(Jv),[qM,n0]=e0(Jv),r0="PopperAnchor",s0=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,a=n0(r0,n),o=w.useRef(null),i=a.onAnchorChange,l=w.useCallback(x=>{o.current=x,x&&i(x)},[i]),u=Nt(t,l),d=w.useRef(null);w.useEffect(()=>{if(!r)return;const x=d.current;d.current=r.current,x!==d.current&&i(d.current)});const f=a.placementState&&Tf(a.placementState),h=f==null?void 0:f[0],m=f==null?void 0:f[1];return r?null:c.jsx(Be.div,{"data-radix-popper-side":h,"data-radix-popper-align":m,...s,ref:u})});s0.displayName=r0;var Ef="PopperContent",[Pj,Sj]=e0(Ef),a0=w.forwardRef((e,t)=>{var ch,uh,dh,fh,hh,ph;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:a="center",alignOffset:o=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:x,...v}=e,b=n0(Ef,n),[g,p]=w.useState(null),y=Nt(t,Bs=>p(Bs)),[P,S]=w.useState(null),k=bj(P),j=(k==null?void 0:k.width)??0,C=(k==null?void 0:k.height)??0,A=r+(a!=="center"?"-"+a:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(u)?u:[u],O=I.length>0,H={padding:N,boundary:I.filter(Cj),altBoundary:O},{refs:D,floatingStyles:$,placement:V,isPositioned:K,middlewareData:E}=uj({strategy:"fixed",placement:A,whileElementsMounted:(...Bs)=>ej(...Bs,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[fj({mainAxis:s+C,alignmentAxis:o}),l&&hj({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?pj():void 0,...H}),l&&mj({...H}),gj({...H,apply:({elements:Bs,rects:mh,availableWidth:zb,availableHeight:Bb})=>{const{width:Hb,height:$b}=mh.reference,uo=Bs.floating.style;uo.setProperty("--radix-popper-available-width",`${zb}px`),uo.setProperty("--radix-popper-available-height",`${Bb}px`),uo.setProperty("--radix-popper-anchor-width",`${Hb}px`),uo.setProperty("--radix-popper-anchor-height",`${$b}px`)}}),P&&yj({element:P,padding:i}),jj({arrowWidth:j,arrowHeight:C}),h&&xj({strategy:"referenceHidden",...H,boundary:O?H.boundary:void 0})]}),M=b.setPlacementState;on(()=>(M(V),()=>{M(void 0)}),[V,M]);const[_,B]=Tf(V),Y=qn(x);on(()=>{K&&(Y==null||Y())},[K,Y]);const mt=(ch=E.arrow)==null?void 0:ch.x,rt=(uh=E.arrow)==null?void 0:uh.y,zs=((dh=E.arrow)==null?void 0:dh.centerOffset)!==0,[Yt,Lr]=w.useState();return on(()=>{g&&Lr(window.getComputedStyle(g).zIndex)},[g]),c.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:K?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Yt,"--radix-popper-transform-origin":[(fh=E.transformOrigin)==null?void 0:fh.x,(hh=E.transformOrigin)==null?void 0:hh.y].join(" "),...((ph=E.hide)==null?void 0:ph.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Pj,{scope:n,placedSide:_,placedAlign:B,onArrowChange:S,arrowX:mt,arrowY:rt,shouldHideArrow:zs,children:c.jsx(Be.div,{"data-side":_,"data-align":B,...v,ref:y,style:{...v.style,animation:K?void 0:"none"}})})})});a0.displayName=Ef;var o0="PopperArrow",kj={top:"bottom",right:"left",bottom:"top",left:"right"},i0=w.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,a=Sj(o0,r),o=kj[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:c.jsx(wj,{...s,ref:n,style:{...s.style,display:"block"}})})});i0.displayName=o0;function Cj(e){return e!==null}var jj=e=>({name:"transformOrigin",options:e,fn(t){var b,g,p;const{placement:n,rects:r,middlewareData:s}=t,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,i=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,d]=Tf(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((g=s.arrow)==null?void 0:g.x)??0)+i/2,m=(((p=s.arrow)==null?void 0:p.y)??0)+l/2;let x="",v="";return u==="bottom"?(x=o?f:`${h}px`,v=`${-l}px`):u==="top"?(x=o?f:`${h}px`,v=`${r.floating.height+l}px`):u==="right"?(x=`${-l}px`,v=o?f:`${m}px`):u==="left"&&(x=`${r.floating.width+l}px`,v=o?f:`${m}px`),{data:{x,y:v}}}});function Tf(e){const[t,n="center"]=e.split("-");return[t,n]}var Ej=s0,Tj=a0,Nj=i0,[Cl]=gl("Tooltip",[t0]),Nf=t0(),l0="TooltipProvider",Aj=700,Xp="tooltip.open",[Rj,c0]=Cl(l0),u0=e=>{const{__scopeTooltip:t,delayDuration:n=Aj,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:a}=e,o=w.useRef(!0),i=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(Rj,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:w.useCallback(()=>{r<=0||(window.clearTimeout(l.current),o.current=!1)},[r]),onClose:w.useCallback(()=>{r<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:i,onPointerInTransitChange:w.useCallback(u=>{i.current=u},[]),disableHoverableContent:s,children:a})};u0.displayName=l0;var d0="Tooltip",[KM,so]=Cl(d0),Ou="TooltipTrigger",Mj=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=so(Ou,n),a=c0(Ou,n),o=Nf(n),i=w.useRef(null),l=Nt(t,i,s.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),f=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(Ej,{asChild:!0,...o,children:c.jsx(Be.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:xe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:xe(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:xe(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:xe(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:xe(e.onBlur,s.onClose),onClick:xe(e.onClick,s.onClose)})})});Mj.displayName=Ou;var Af="TooltipPortal",[Dj,Oj]=Cl(Af,{forceMount:void 0}),f0=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:s}=e,a=so(Af,t);return c.jsx(Dj,{scope:t,forceMount:n,children:c.jsx(xl,{present:n||a.open,children:c.jsx(mf,{asChild:!0,container:s,children:r})})})};f0.displayName=Af;var Es="TooltipContent",h0=w.forwardRef((e,t)=>{const n=Oj(Es,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...a}=e,o=so(Es,e.__scopeTooltip);return c.jsx(xl,{present:r||o.open,children:o.disableHoverableContent?c.jsx(p0,{side:s,...a,ref:t}):c.jsx(Lj,{side:s,...a,ref:t})})}),Lj=w.forwardRef((e,t)=>{const n=so(Es,e.__scopeTooltip),r=c0(Es,e.__scopeTooltip),s=w.useRef(null),a=Nt(t,s),[o,i]=w.useState(null),{trigger:l,onClose:u}=n,d=s.current,{onPointerInTransitChange:f}=r,h=w.useCallback(()=>{i(null),f(!1)},[f]),m=w.useCallback((x,v)=>{const b=x.currentTarget,g={x:x.clientX,y:x.clientY},p=zj(g,b.getBoundingClientRect()),y=Bj(g,p),P=Hj(v.getBoundingClientRect()),S=Uj([...y,...P]);i(S),f(!0)},[f]);return w.useEffect(()=>()=>h(),[h]),w.useEffect(()=>{if(l&&d){const x=b=>m(b,d),v=b=>m(b,l);return l.addEventListener("pointerleave",x),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",v)}}},[l,d,m,h]),w.useEffect(()=>{if(o){const x=v=>{const b=v.target,g={x:v.clientX,y:v.clientY},p=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),y=!$j(g,o);p?h():y&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,d,o,u,h]),c.jsx(p0,{...e,ref:a})}),[Ij,Fj]=Cl(d0,{isInside:!1}),_j=jS("TooltipContent"),p0=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:o,...i}=e,l=so(Es,n),u=Nf(n),{onClose:d}=l;return w.useEffect(()=>(document.addEventListener(Xp,d),()=>document.removeEventListener(Xp,d)),[d]),w.useEffect(()=>{if(l.trigger){const f=h=>{h.target instanceof Node&&h.target.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(pf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(Tj,{"data-state":l.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(_j,{children:r}),c.jsx(Ij,{scope:n,isInside:!0,children:c.jsx(rk,{id:l.contentId,role:"tooltip",children:s||r})})]})})});h0.displayName=Es;var m0="TooltipArrow",Vj=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Nf(n);return Fj(m0,n).isInside?null:c.jsx(Nj,{...s,...r,ref:t})});Vj.displayName=m0;function zj(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,s,a)){case a:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Bj(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Hj(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function $j(e,t){const{x:n,y:r}=e;let s=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const i=t[a],l=t[o],u=i.x,d=i.y,f=l.x,h=l.y;d>r!=h>r&&n<(f-u)*(r-d)/(h-d)+u&&(s=!s)}return s}function Uj(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Wj(t)}function Wj(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(s.y-o.y)>=(a.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(s.y-o.y)>=(a.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var qj=u0,Kj=f0,g0=h0;const Gj=qj,Yj=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Kj,{children:c.jsx(g0,{ref:r,sideOffset:t,className:Pe("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));Yj.displayName=g0.displayName;var jl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},fr,Cn,us,Lg,Qj=(Lg=class extends jl{constructor(){super();q(this,fr);q(this,Cn);q(this,us);z(this,us,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,Cn)||this.setEventListener(T(this,us))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Cn))==null||t.call(this),z(this,Cn,void 0))}setEventListener(t){var n;z(this,us,t),(n=T(this,Cn))==null||n.call(this),z(this,Cn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,fr)!==t&&(z(this,fr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,fr)=="boolean"?T(this,fr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},fr=new WeakMap,Cn=new WeakMap,us=new WeakMap,Lg),x0=new Qj,Xj={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},jn,xd,Ig,Zj=(Ig=class{constructor(){q(this,jn,Xj);q(this,xd,!1)}setTimeoutProvider(e){z(this,jn,e)}setTimeout(e,t){return T(this,jn).setTimeout(e,t)}clearTimeout(e){T(this,jn).clearTimeout(e)}setInterval(e,t){return T(this,jn).setInterval(e,t)}clearInterval(e){T(this,jn).clearInterval(e)}},jn=new WeakMap,xd=new WeakMap,Ig),Lu=new Zj;function Jj(e){setTimeout(e,0)}var e2=typeof window>"u"||"Deno"in globalThis;function wt(){}function t2(e,t){return typeof e=="function"?e(t):e}function n2(e){return typeof e=="number"&&e>=0&&e!==1/0}function r2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Iu(e,t){return typeof e=="function"?e(t):e}function s2(e,t){return typeof e=="function"?e(t):e}function Zp(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:a,queryKey:o,stale:i}=e;if(o){if(r){if(t.queryHash!==Rf(o,t.options))return!1}else if(!za(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||s&&s!==t.state.fetchStatus||a&&!a(t))}function Jp(e,t){const{exact:n,status:r,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Va(t.options.mutationKey)!==Va(a))return!1}else if(!za(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Rf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Va)(e)}function Va(e){return JSON.stringify(e,(t,n)=>Fu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function za(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>za(e[n],t[n])):!1}var a2=Object.prototype.hasOwnProperty;function y0(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=em(e)&&em(t);if(!r&&!(Fu(e)&&Fu(t)))return t;const a=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),i=o.length,l=r?new Array(i):{};let u=0;for(let d=0;d<i;d++){const f=r?d:o[d],h=e[f],m=t[f];if(h===m){l[f]=h,(r?d<a:a2.call(e,f))&&u++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){l[f]=m;continue}const x=y0(h,m,n+1);l[f]=x,x===h&&u++}return a===i&&u===a?e:l}function em(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fu(e){if(!tm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!tm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function tm(e){return Object.prototype.toString.call(e)==="[object Object]"}function o2(e){return new Promise(t=>{Lu.setTimeout(t,e)})}function i2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?y0(e,t):t}function l2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function c2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Mf=Symbol();function v0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Mf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function u2(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var w0=(()=>{let e=()=>e2;return{isServer(){return e()},setIsServer(t){e=t}}})();function d2(){let e,t;const n=new Promise((s,a)=>{e=s,t=a});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var f2=Jj;function h2(){let e=[],t=0,n=i=>{i()},r=i=>{i()},s=f2;const a=i=>{t?e.push(i):s(()=>{n(i)})},o=()=>{const i=e;e=[],i.length&&s(()=>{r(()=>{i.forEach(l=>{n(l)})})})};return{batch:i=>{let l;t++;try{l=i()}finally{t--,t||o()}return l},batchCalls:i=>(...l)=>{a(()=>{i(...l)})},schedule:a,setNotifyFunction:i=>{n=i},setBatchNotifyFunction:i=>{r=i},setScheduler:i=>{s=i}}}var Le=h2(),ds,En,fs,Fg,p2=(Fg=class extends jl{constructor(){super();q(this,ds,!0);q(this,En);q(this,fs);z(this,fs,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,En)||this.setEventListener(T(this,fs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,En))==null||t.call(this),z(this,En,void 0))}setEventListener(t){var n;z(this,fs,t),(n=T(this,En))==null||n.call(this),z(this,En,t(this.setOnline.bind(this)))}setOnline(t){T(this,ds)!==t&&(z(this,ds,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,ds)}},ds=new WeakMap,En=new WeakMap,fs=new WeakMap,Fg),Bi=new p2;function m2(e){return Math.min(1e3*2**e,3e4)}function b0(e){return(e??"online")==="online"?Bi.isOnline():!0}var _u=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function P0(e){let t=!1,n=0,r;const s=d2(),a=()=>s.status!=="pending",o=v=>{var b;if(!a()){const g=new _u(v);h(g),(b=e.onCancel)==null||b.call(e,g)}},i=()=>{t=!0},l=()=>{t=!1},u=()=>x0.isFocused()&&(e.networkMode==="always"||Bi.isOnline())&&e.canRun(),d=()=>b0(e.networkMode)&&e.canRun(),f=v=>{a()||(r==null||r(),s.resolve(v))},h=v=>{a()||(r==null||r(),s.reject(v))},m=()=>new Promise(v=>{var b;r=g=>{(a()||u())&&v(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var v;r=void 0,a()||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(a())return;let v;const b=n===0?e.initialPromise:void 0;try{v=b??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(f).catch(g=>{var k;if(a())return;const p=e.retry??(w0.isServer()?0:3),y=e.retryDelay??m2,P=typeof y=="function"?y(n,g):y,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,g);if(t||!S){h(g);return}n++,(k=e.onFail)==null||k.call(e,n,g),o2(P).then(()=>u()?void 0:m()).then(()=>{t?h(g):x()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r==null||r(),s),cancelRetry:i,continueRetry:l,canStart:d,start:()=>(d()?x():m().then(x),s)}}var hr,_g,S0=(_g=class{constructor(){q(this,hr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),n2(this.gcTime)&&z(this,hr,Lu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(w0.isServer()?1/0:5*60*1e3))}clearGcTimeout(){T(this,hr)!==void 0&&(Lu.clearTimeout(T(this,hr)),z(this,hr,void 0))}},hr=new WeakMap,_g);function g2(e){return{onFetch:(t,n)=>{var d,f,h,m,x;const r=t.options,s=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let i={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const b=y=>{u2(y,()=>t.signal,()=>v=!0)},g=v0(t.options,t.fetchOptions),p=async(y,P,S)=>{if(v)return Promise.reject(t.signal.reason);if(P==null&&y.pages.length)return Promise.resolve(y);const j=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:P,direction:S?"backward":"forward",meta:t.options.meta};return b(I),I})(),C=await g(j),{maxPages:A}=t.options,N=S?c2:l2;return{pages:N(y.pages,C,A),pageParams:N(y.pageParams,P,A)}};if(s&&a.length){const y=s==="backward",P=y?x2:nm,S={pages:a,pageParams:o},k=P(r,S);i=await p(S,k,y)}else{const y=e??a.length;do{const P=l===0?o[0]??r.initialPageParam:nm(r,i);if(l>0&&P==null)break;i=await p(i,P),l++}while(l<y)}return i};t.options.persister?t.fetchFn=()=>{var v,b;return(b=(v=t.options).persister)==null?void 0:b.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function nm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function x2(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var hs,pr,ps,ot,mr,ve,Ka,gr,Ge,k0,Zt,Vg,y2=(Vg=class extends S0{constructor(t){super();q(this,Ge);q(this,hs);q(this,pr);q(this,ps);q(this,ot);q(this,mr);q(this,ve);q(this,Ka);q(this,gr);z(this,gr,!1),z(this,Ka,t.defaultOptions),this.setOptions(t.options),this.observers=[],z(this,mr,t.client),z(this,ot,T(this,mr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,pr,sm(this.options)),this.state=t.state??T(this,pr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,hs)}get promise(){var t;return(t=T(this,ve))==null?void 0:t.promise}setOptions(t){if(this.options={...T(this,Ka),...t},t!=null&&t._type&&z(this,hs,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=sm(this.options);n.data!==void 0&&(this.setState(rm(n.data,n.dataUpdatedAt)),z(this,pr,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,ot).remove(this)}setData(t,n){const r=i2(this.state.data,t,this.options);return Se(this,Ge,Zt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Se(this,Ge,Zt).call(this,{type:"setState",state:t})}cancel(t){var r,s;const n=(r=T(this,ve))==null?void 0:r.promise;return(s=T(this,ve))==null||s.cancel(t),n?n.then(wt).catch(wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,pr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>s2(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Iu(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!r2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,ot).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,ve)&&(T(this,gr)||Se(this,Ge,k0).call(this)?T(this,ve).cancel({revert:!0}):T(this,ve).cancelRetry()),this.scheduleGc()),T(this,ot).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,Ge,Zt).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,f,h,m,x,v,b,g,p,y;if(this.state.fetchStatus!=="idle"&&((u=T(this,ve))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,ve))return T(this,ve).continueRetry(),T(this,ve).promise}if(t&&this.setOptions(t),!this.options.queryFn){const P=this.observers.find(S=>S.options.queryFn);P&&this.setOptions(P.options)}const r=new AbortController,s=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(z(this,gr,!0),r.signal)})},a=()=>{const P=v0(this.options,n),k=(()=>{const j={client:T(this,mr),queryKey:this.queryKey,meta:this.meta};return s(j),j})();return z(this,gr,!1),this.options.persister?this.options.persister(P,k,this):P(k)},i=(()=>{const P={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,mr),state:this.state,fetchFn:a};return s(P),P})(),l=T(this,hs)==="infinite"?g2(this.options.pages):this.options.behavior;l==null||l.onFetch(i,this),z(this,ps,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=i.fetchOptions)==null?void 0:d.meta))&&Se(this,Ge,Zt).call(this,{type:"fetch",meta:(f=i.fetchOptions)==null?void 0:f.meta}),z(this,ve,P0({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,onCancel:P=>{P instanceof _u&&P.revert&&this.setState({...T(this,ps),fetchStatus:"idle"}),r.abort()},onFail:(P,S)=>{Se(this,Ge,Zt).call(this,{type:"failed",failureCount:P,error:S})},onPause:()=>{Se(this,Ge,Zt).call(this,{type:"pause"})},onContinue:()=>{Se(this,Ge,Zt).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}));try{const P=await T(this,ve).start();if(P===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(P),(m=(h=T(this,ot).config).onSuccess)==null||m.call(h,P,this),(v=(x=T(this,ot).config).onSettled)==null||v.call(x,P,this.state.error,this),P}catch(P){if(P instanceof _u){if(P.silent)return T(this,ve).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw Se(this,Ge,Zt).call(this,{type:"error",error:P}),(g=(b=T(this,ot).config).onError)==null||g.call(b,P,this),(y=(p=T(this,ot).config).onSettled)==null||y.call(p,this.state.data,P,this),P}finally{this.scheduleGc()}}},hs=new WeakMap,pr=new WeakMap,ps=new WeakMap,ot=new WeakMap,mr=new WeakMap,ve=new WeakMap,Ka=new WeakMap,gr=new WeakMap,Ge=new WeakSet,k0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Zt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...v2(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...rm(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return z(this,ps,t.manual?s:void 0),s;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Le.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,ot).notify({query:this,type:"updated",action:t})})},Vg);function v2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:b0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function rm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function sm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ga,It,Re,xr,Ft,vn,zg,w2=(zg=class extends S0{constructor(t){super();q(this,Ft);q(this,Ga);q(this,It);q(this,Re);q(this,xr);z(this,Ga,t.client),this.mutationId=t.mutationId,z(this,Re,t.mutationCache),z(this,It,[]),this.state=t.state||b2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,It).includes(t)||(T(this,It).push(t),this.clearGcTimeout(),T(this,Re).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,It,T(this,It).filter(n=>n!==t)),this.scheduleGc(),T(this,Re).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,It).length||(this.state.status==="pending"?this.scheduleGc():T(this,Re).remove(this))}continue(){var t;return((t=T(this,xr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,l,u,d,f,h,m,x,v,b,g,p,y,P,S,k,j;const n=()=>{Se(this,Ft,vn).call(this,{type:"continue"})},r={client:T(this,Ga),meta:this.options.meta,mutationKey:this.options.mutationKey};z(this,xr,P0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(C,A)=>{Se(this,Ft,vn).call(this,{type:"failed",failureCount:C,error:A})},onPause:()=>{Se(this,Ft,vn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Re).canRun(this)}));const s=this.state.status==="pending",a=!T(this,xr).canStart();try{if(s)n();else{Se(this,Ft,vn).call(this,{type:"pending",variables:t,isPaused:a}),T(this,Re).config.onMutate&&await T(this,Re).config.onMutate(t,this,r);const A=await((i=(o=this.options).onMutate)==null?void 0:i.call(o,t,r));A!==this.state.context&&Se(this,Ft,vn).call(this,{type:"pending",context:A,variables:t,isPaused:a})}const C=await T(this,xr).start();return await((u=(l=T(this,Re).config).onSuccess)==null?void 0:u.call(l,C,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,C,t,this.state.context,r)),await((m=(h=T(this,Re).config).onSettled)==null?void 0:m.call(h,C,null,this.state.variables,this.state.context,this,r)),await((v=(x=this.options).onSettled)==null?void 0:v.call(x,C,null,t,this.state.context,r)),Se(this,Ft,vn).call(this,{type:"success",data:C}),C}catch(C){try{await((g=(b=T(this,Re).config).onError)==null?void 0:g.call(b,C,t,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((y=(p=this.options).onError)==null?void 0:y.call(p,C,t,this.state.context,r))}catch(A){Promise.reject(A)}try{await((S=(P=T(this,Re).config).onSettled)==null?void 0:S.call(P,void 0,C,this.state.variables,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((j=(k=this.options).onSettled)==null?void 0:j.call(k,void 0,C,t,this.state.context,r))}catch(A){Promise.reject(A)}throw Se(this,Ft,vn).call(this,{type:"error",error:C}),C}finally{T(this,Re).runNext(this)}}},Ga=new WeakMap,It=new WeakMap,Re=new WeakMap,xr=new WeakMap,Ft=new WeakSet,vn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Le.batch(()=>{T(this,It).forEach(r=>{r.onMutationUpdate(t)}),T(this,Re).notify({mutation:this,type:"updated",action:t})})},zg);function b2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nn,bt,Ya,Bg,P2=(Bg=class extends jl{constructor(t={}){super();q(this,nn);q(this,bt);q(this,Ya);this.config=t,z(this,nn,new Set),z(this,bt,new Map),z(this,Ya,0)}build(t,n,r){const s=new w2({client:t,mutationCache:this,mutationId:++fo(this,Ya)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){T(this,nn).add(t);const n=Oo(t);if(typeof n=="string"){const r=T(this,bt).get(n);r?r.push(t):T(this,bt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,nn).delete(t)){const n=Oo(t);if(typeof n=="string"){const r=T(this,bt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&T(this,bt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Oo(t);if(typeof n=="string"){const r=T(this,bt).get(n),s=r==null?void 0:r.find(a=>a.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Oo(t);if(typeof n=="string"){const s=(r=T(this,bt).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Le.batch(()=>{T(this,nn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,nn).clear(),T(this,bt).clear()})}getAll(){return Array.from(T(this,nn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Jp(n,r))}findAll(t={}){return this.getAll().filter(n=>Jp(t,n))}notify(t){Le.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Le.batch(()=>Promise.all(t.map(n=>n.continue().catch(wt))))}},nn=new WeakMap,bt=new WeakMap,Ya=new WeakMap,Bg);function Oo(e){var t;return(t=e.options.scope)==null?void 0:t.id}var _t,Hg,S2=(Hg=class extends jl{constructor(t={}){super();q(this,_t);this.config=t,z(this,_t,new Map)}build(t,n,r){const s=n.queryKey,a=n.queryHash??Rf(s,n);let o=this.get(a);return o||(o=new y2({client:t,queryKey:s,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){T(this,_t).has(t.queryHash)||(T(this,_t).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,_t).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,_t).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Le.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,_t).get(t)}getAll(){return[...T(this,_t).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Zp(t,r)):n}notify(t){Le.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Le.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Le.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},_t=new WeakMap,Hg),le,Tn,Nn,ms,gs,An,xs,ys,$g,k2=($g=class{constructor(e={}){q(this,le);q(this,Tn);q(this,Nn);q(this,ms);q(this,gs);q(this,An);q(this,xs);q(this,ys);z(this,le,e.queryCache||new S2),z(this,Tn,e.mutationCache||new P2),z(this,Nn,e.defaultOptions||{}),z(this,ms,new Map),z(this,gs,new Map),z(this,An,0)}mount(){fo(this,An)._++,T(this,An)===1&&(z(this,xs,x0.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,le).onFocus())})),z(this,ys,Bi.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,le).onOnline())})))}unmount(){var e,t;fo(this,An)._--,T(this,An)===0&&((e=T(this,xs))==null||e.call(this),z(this,xs,void 0),(t=T(this,ys))==null||t.call(this),z(this,ys,void 0))}isFetching(e){return T(this,le).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Tn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,le).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,le).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Iu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,le).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=T(this,le).get(r.queryHash),a=s==null?void 0:s.state.data,o=t2(t,a);if(o!==void 0)return T(this,le).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Le.batch(()=>T(this,le).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,le).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,le);Le.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,le);return Le.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Le.batch(()=>T(this,le).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(wt).catch(wt)}invalidateQueries(e,t={}){return Le.batch(()=>(T(this,le).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Le.batch(()=>T(this,le).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,n);return n.throwOnError||(a=a.catch(wt)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(wt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,le).build(this,t);return n.isStaleByTime(Iu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(wt).catch(wt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(wt).catch(wt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Bi.isOnline()?T(this,Tn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,le)}getMutationCache(){return T(this,Tn)}getDefaultOptions(){return T(this,Nn)}setDefaultOptions(e){z(this,Nn,e)}setQueryDefaults(e,t){T(this,ms).set(Va(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,ms).values()],n={};return t.forEach(r=>{za(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,gs).set(Va(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,gs).values()],n={};return t.forEach(r=>{za(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Nn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Rf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Mf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Nn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,le).clear(),T(this,Tn).clear()}},le=new WeakMap,Tn=new WeakMap,Nn=new WeakMap,ms=new WeakMap,gs=new WeakMap,An=new WeakMap,xs=new WeakMap,ys=new WeakMap,$g),C2=w.createContext(void 0),j2=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(C2.Provider,{value:e,children:t}));/**
 * @remix-run/router v1.23.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 Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ba.apply(null,arguments)}var Dn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Dn||(Dn={}));const am="popstate";function E2(e){e===void 0&&(e={});function t(r,s){let{pathname:a,search:o,hash:i}=r.location;return Vu("",{pathname:a,search:o,hash:i},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Hi(s)}return N2(t,n,null,e)}function pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Df(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function T2(){return Math.random().toString(36).substr(2,8)}function om(e,t){return{usr:e.state,key:e.key,idx:t}}function Vu(e,t,n,r){return n===void 0&&(n=null),Ba({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Is(t):t,{state:n,key:t&&t.key||r||T2()})}function Hi(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 Is(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 N2(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:a=!1}=r,o=s.history,i=Dn.Pop,l=null,u=d();u==null&&(u=0,o.replaceState(Ba({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){i=Dn.Pop;let b=d(),g=b==null?null:b-u;u=b,l&&l({action:i,location:v.location,delta:g})}function h(b,g){i=Dn.Push;let p=Vu(v.location,b,g);u=d()+1;let y=om(p,u),P=v.createHref(p);try{o.pushState(y,"",P)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(P)}a&&l&&l({action:i,location:v.location,delta:1})}function m(b,g){i=Dn.Replace;let p=Vu(v.location,b,g);u=d();let y=om(p,u),P=v.createHref(p);o.replaceState(y,"",P),a&&l&&l({action:i,location:v.location,delta:0})}function x(b){let g=s.location.origin!=="null"?s.location.origin:s.location.href,p=typeof b=="string"?b:Hi(b);return p=p.replace(/ $/,"%20"),pe(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let v={get action(){return i},get location(){return e(s,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(am,f),l=b,()=>{s.removeEventListener(am,f),l=null}},createHref(b){return t(s,b)},createURL:x,encodeLocation(b){let g=x(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:m,go(b){return o.go(b)}};return v}var im;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(im||(im={}));function A2(e,t,n){return n===void 0&&(n="/"),R2(e,t,n)}function R2(e,t,n,r){let s=typeof t=="string"?Is(t):t,a=Of(s.pathname||"/",n);if(a==null)return null;let o=C0(e);M2(o);let i=null,l=U2(a);for(let u=0;i==null&&u<o.length;++u)i=B2(o[u],l);return i}function C0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(a,o,i)=>{let l={relativePath:i===void 0?a.path||"":i,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(pe(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=$n([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(pe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),C0(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:V2(u,a.index),routesMeta:d})};return e.forEach((a,o)=>{var i;if(a.path===""||!((i=a.path)!=null&&i.includes("?")))s(a,o);else for(let l of j0(a.path))s(a,o,l)}),t}function j0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return s?[a,""]:[a];let o=j0(r.join("/")),i=[];return i.push(...o.map(l=>l===""?a:[a,l].join("/"))),s&&i.push(...o),i.map(l=>e.startsWith("/")&&l===""?"/":l)}function M2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:z2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const D2=/^:[\w-]+$/,O2=3,L2=2,I2=1,F2=10,_2=-2,lm=e=>e==="*";function V2(e,t){let n=e.split("/"),r=n.length;return n.some(lm)&&(r+=_2),t&&(r+=L2),n.filter(s=>!lm(s)).reduce((s,a)=>s+(D2.test(a)?O2:a===""?I2:F2),r)}function z2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function B2(e,t,n){let{routesMeta:r}=e,s={},a="/",o=[];for(let i=0;i<r.length;++i){let l=r[i],u=i===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=H2({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!f)return null;Object.assign(s,f.params),o.push({params:s,pathname:$n([a,f.pathname]),pathnameBase:Y2($n([a,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(a=$n([a,f.pathnameBase]))}return o}function H2(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$2(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let a=s[0],o=a.replace(/(.)\/+$/,"$1"),i=s.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:h,isOptional:m}=d;if(h==="*"){let v=i[f]||"";o=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const x=i[f];return m&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function $2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Df(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,i,l)=>(r.push({paramName:i,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function U2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Df(!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 Of(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 W2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q2=e=>W2.test(e);function K2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Is(e):e,a;if(n)if(q2(n))a=n;else{if(n.includes("//")){let o=n;n=N0(n),Df(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?a=cm(n.substring(1),"/"):a=cm(n,t)}else a=t;return{pathname:a,search:Q2(r),hash:X2(s)}}function cm(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function fc(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 G2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function E0(e,t){let n=G2(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function T0(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Is(e):(s=Ba({},e),pe(!s.pathname||!s.pathname.includes("?"),fc("?","pathname","search",s)),pe(!s.pathname||!s.pathname.includes("#"),fc("#","pathname","hash",s)),pe(!s.search||!s.search.includes("#"),fc("#","search","hash",s)));let a=e===""||s.pathname==="",o=a?"/":s.pathname,i;if(o==null)i=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}i=f>=0?t[f]:"/"}let l=K2(s,i),u=o&&o!=="/"&&o.endsWith("/"),d=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const N0=e=>e.replace(/\/\/+/g,"/"),$n=e=>N0(e.join("/")),Y2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Q2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,X2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Z2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const A0=["post","put","patch","delete"];new Set(A0);const J2=["get",...A0];new Set(J2);/**
 * React Router v6.30.4
 *
 * 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 Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha.apply(null,arguments)}const Lf=w.createContext(null),eE=w.createContext(null),Rr=w.createContext(null),El=w.createContext(null),er=w.createContext({outlet:null,matches:[],isDataRoute:!1}),R0=w.createContext(null);function tE(e,t){let{relative:n}=t===void 0?{}:t;ao()||pe(!1);let{basename:r,navigator:s}=w.useContext(Rr),{hash:a,pathname:o,search:i}=D0(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:$n([r,o])),s.createHref({pathname:l,search:i,hash:a})}function ao(){return w.useContext(El)!=null}function Mr(){return ao()||pe(!1),w.useContext(El).location}function M0(e){w.useContext(Rr).static||w.useLayoutEffect(e)}function nE(){let{isDataRoute:e}=w.useContext(er);return e?xE():rE()}function rE(){ao()||pe(!1);let e=w.useContext(Lf),{basename:t,future:n,navigator:r}=w.useContext(Rr),{matches:s}=w.useContext(er),{pathname:a}=Mr(),o=JSON.stringify(E0(s,n.v7_relativeSplatPath)),i=w.useRef(!1);return M0(()=>{i.current=!0}),w.useCallback(function(u,d){if(d===void 0&&(d={}),!i.current)return;if(typeof u=="number"){r.go(u);return}let f=T0(u,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$n([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,a,e])}const sE=w.createContext(null);function aE(e){let t=w.useContext(er).outlet;return t&&w.createElement(sE.Provider,{value:e},t)}function D0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(Rr),{matches:s}=w.useContext(er),{pathname:a}=Mr(),o=JSON.stringify(E0(s,r.v7_relativeSplatPath));return w.useMemo(()=>T0(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function oE(e,t){return iE(e,t)}function iE(e,t,n,r){ao()||pe(!1);let{navigator:s}=w.useContext(Rr),{matches:a}=w.useContext(er),o=a[a.length-1],i=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Mr(),d;if(t){var f;let b=typeof t=="string"?Is(t):t;l==="/"||(f=b.pathname)!=null&&f.startsWith(l)||pe(!1),d=b}else d=u;let h=d.pathname||"/",m=h;if(l!=="/"){let b=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=A2(e,{pathname:m}),v=fE(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},i,b.params),pathname:$n([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:$n([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,n,r);return t&&v?w.createElement(El.Provider,{value:{location:Ha({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Dn.Pop}},v):v}function lE(){let e=gE(),t=Z2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:s},n):null,null)}const cE=w.createElement(lE,null);class uE extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(er.Provider,{value:this.props.routeContext},w.createElement(R0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dE(e){let{routeContext:t,match:n,children:r}=e,s=w.useContext(Lf);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(er.Provider,{value:t},r)}function fE(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,i=(s=n)==null?void 0:s.errors;if(i!=null){let d=o.findIndex(f=>f.route.id&&(i==null?void 0:i[f.route.id])!==void 0);d>=0||pe(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:m}=n,x=f.route.loader&&h[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||x){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let m,x=!1,v=null,b=null;n&&(m=i&&f.route.id?i[f.route.id]:void 0,v=f.route.errorElement||cE,l&&(u<0&&h===0?(yE("route-fallback"),x=!0,b=null):u===h&&(x=!0,b=f.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),p=()=>{let y;return m?y=v:x?y=b:f.route.Component?y=w.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,w.createElement(dE,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?w.createElement(uE,{location:n.location,revalidation:n.revalidation,component:v,error:m,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var O0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(O0||{}),L0=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}(L0||{});function hE(e){let t=w.useContext(Lf);return t||pe(!1),t}function pE(e){let t=w.useContext(eE);return t||pe(!1),t}function mE(e){let t=w.useContext(er);return t||pe(!1),t}function I0(e){let t=mE(),n=t.matches[t.matches.length-1];return n.route.id||pe(!1),n.route.id}function gE(){var e;let t=w.useContext(R0),n=pE(),r=I0();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function xE(){let{router:e}=hE(O0.UseNavigateStable),t=I0(L0.UseNavigateStable),n=w.useRef(!1);return M0(()=>{n.current=!0}),w.useCallback(function(s,a){a===void 0&&(a={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ha({fromRouteId:t},a)))},[e,t])}const um={};function yE(e,t,n){um[e]||(um[e]=!0)}function vE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function wE(e){return aE(e.context)}function Dt(e){pe(!1)}function bE(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Dn.Pop,navigator:a,static:o=!1,future:i}=e;ao()&&pe(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:a,static:o,future:Ha({v7_relativeSplatPath:!1},i)}),[l,i,a,o]);typeof r=="string"&&(r=Is(r));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:x="default"}=r,v=w.useMemo(()=>{let b=Of(d,l);return b==null?null:{location:{pathname:b,search:f,hash:h,state:m,key:x},navigationType:s}},[l,d,f,h,m,x,s]);return v==null?null:w.createElement(Rr.Provider,{value:u},w.createElement(El.Provider,{children:n,value:v}))}function PE(e){let{children:t,location:n}=e;return oE(zu(t),n)}new Promise(()=>{});function zu(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,s)=>{if(!w.isValidElement(r))return;let a=[...t,s];if(r.type===w.Fragment){n.push.apply(n,zu(r.props.children,a));return}r.type!==Dt&&pe(!1),!r.props.index||!r.props.children||pe(!1);let o={id:r.props.id||a.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&&(o.children=zu(r.props.children,a)),n.push(o)}),n}/**
 * React Router DOM v6.30.4
 *
 * 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 Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bu.apply(null,arguments)}function SE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function CE(e,t){return e.button===0&&(!t||t==="_self")&&!kE(e)}const jE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],EE="6";try{window.__reactRouterVersion=EE}catch{}const TE="startTransition",dm=Pd[TE];function NE(e){let{basename:t,children:n,future:r,window:s}=e,a=w.useRef();a.current==null&&(a.current=E2({window:s,v5Compat:!0}));let o=a.current,[i,l]=w.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=w.useCallback(f=>{u&&dm?dm(()=>l(f)):l(f)},[l,u]);return w.useLayoutEffect(()=>o.listen(d),[o,d]),w.useEffect(()=>vE(r),[r]),w.createElement(bE,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:o,future:r})}const AE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Q=w.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:a,replace:o,state:i,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,h=SE(t,jE),{basename:m}=w.useContext(Rr),x,v=!1;if(typeof u=="string"&&RE.test(u)&&(x=u,AE))try{let y=new URL(window.location.href),P=u.startsWith("//")?new URL(y.protocol+u):new URL(u),S=Of(P.pathname,m);P.origin===y.origin&&S!=null?u=S+P.search+P.hash:v=!0}catch{}let b=tE(u,{relative:s}),g=ME(u,{replace:o,state:i,target:l,preventScrollReset:d,relative:s,viewTransition:f});function p(y){r&&r(y),y.defaultPrevented||g(y)}return w.createElement("a",Bu({},h,{href:x||b,onClick:v||a?r:p,ref:n,target:l}))});var fm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(fm||(fm={}));var hm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hm||(hm={}));function ME(e,t){let{target:n,replace:r,state:s,preventScrollReset:a,relative:o,viewTransition:i}=t===void 0?{}:t,l=nE(),u=Mr(),d=D0(e,{relative:o});return w.useCallback(f=>{if(CE(f,n)){f.preventDefault();let h=r!==void 0?r:Hi(u)===Hi(d);l(e,{replace:h,state:s,preventScrollReset:a,relative:o,viewTransition:i})}},[u,l,d,r,s,n,e,a,o,i])}const DE=w.createContext(null),hc={didCatch:!1,error:null};class OE extends w.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=hc}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){var r,s;const{error:n}=this.state;n!==null&&((s=(r=this.props).onReset)==null||s.call(r,{args:t,reason:"imperative-api"}),this.setState(hc))}componentDidCatch(t,n){var r,s;(s=(r=this.props).onError)==null||s.call(r,t,n)}componentDidUpdate(t,n){var a,o;const{didCatch:r}=this.state,{resetKeys:s}=this.props;r&&n.error!==null&&LE(t.resetKeys,s)&&((o=(a=this.props).onReset)==null||o.call(a,{next:s,prev:t.resetKeys,reason:"keys"}),this.setState(hc))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:s}=this.props,{didCatch:a,error:o}=this.state;let i=t;if(a){const l={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")i=n(l);else if(r)i=w.createElement(r,l);else if(s!==void 0)i=s;else throw o}return w.createElement(DE.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},i)}}function LE(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}var IE=typeof Element<"u",FE=typeof Map=="function",_E=typeof Set=="function",VE=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ri(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,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ri(e[r],t[r]))return!1;return!0}var a;if(FE&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!ri(r.value[1],t.get(r.value[0])))return!1;return!0}if(_E&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(VE&&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(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(IE&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!ri(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var zE=function(t,n){try{return ri(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 BE=Ji(zE);var HE=function(e,t,n,r,s,a,o,i){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,s,a,o,i],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},$E=HE;const pm=Ji($E);var UE=function(t,n,r,s){var a=r?r.call(s,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),i=Object.keys(n);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<o.length;u++){var d=o[u];if(!l(d))return!1;var f=t[d],h=n[d];if(a=r?r.call(s,f,h,d):void 0,a===!1||a===void 0&&f!==h)return!1}return!0};const WE=Ji(UE);var F0=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(F0||{}),pc={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},mm=Object.values(F0),If={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},qE=Object.entries(If).reduce((e,[t,n])=>(e[n]=t,e),{}),kt="data-rh",ls={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},cs=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},KE=e=>{let t=cs(e,"title");const n=cs(e,ls.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=cs(e,ls.DEFAULT_TITLE);return t||r||void 0},GE=e=>cs(e,ls.ON_CHANGE_CLIENT_STATE)||(()=>{}),mc=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),YE=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let a=0;a<s.length;a+=1){const i=s[a].toLowerCase();if(e.indexOf(i)!==-1&&r[i])return n.concat(r)}}return n},[]),QE=e=>console&&typeof console.warn=="function"&&console.warn(e),Zs=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&QE(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,a)=>{const o={};a.filter(l=>{let u;const d=Object.keys(l);for(let h=0;h<d.length;h+=1){const m=d[h],x=m.toLowerCase();t.indexOf(x)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(x==="rel"&&l[x].toLowerCase()==="stylesheet")&&(u=x),t.indexOf(m)!==-1&&(m==="innerHTML"||m==="cssText"||m==="itemprop")&&(u=m)}if(!u||!l[u])return!1;const f=l[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][f]?!1:(o[u][f]=!0,!0)}).reverse().forEach(l=>s.push(l));const i=Object.keys(o);for(let l=0;l<i.length;l+=1){const u=i[l],d={...r[u],...o[u]};r[u]=d}return s},[]).reverse()},XE=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},ZE=e=>({baseTag:YE(["href"],e),bodyAttributes:mc("bodyAttributes",e),defer:cs(e,ls.DEFER),encode:cs(e,ls.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:mc("htmlAttributes",e),linkTags:Zs("link",["rel","href"],e),metaTags:Zs("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Zs("noscript",["innerHTML"],e),onChangeClientState:GE(e),scriptTags:Zs("script",["src","innerHTML"],e),styleTags:Zs("style",["cssText"],e),title:KE(e),titleAttributes:mc("titleAttributes",e),prioritizeSeoTags:XE(e,ls.PRIORITIZE_SEO_TAGS)}),_0=e=>Array.isArray(e)?e.join(""):e,JE=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},gc=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(JE(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},gm=(e,t)=>({...e,[t]:void 0}),eT=["noscript","script","style"],Hu=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),V0=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),tT=(e,t,n,r)=>{const s=V0(n),a=_0(t);return s?`<${e} ${kt}="true" ${s}>${Hu(a,r)}</${e}>`:`<${e} ${kt}="true">${Hu(a,r)}</${e}>`},nT=(e,t,n=!0)=>t.reduce((r,s)=>{const a=s,o=Object.keys(a).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof a[d]>"u"?d:`${d}="${Hu(a[d],n)}"`;return u?`${u} ${f}`:f},""),i=a.innerHTML||a.cssText||"",l=eT.indexOf(e)===-1;return`${r}<${e} ${kt}="true" ${o}${l?"/>":`>${i}</${e}>`}`},""),z0=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=If[r];return n[s||r]=e[r],n},t),rT=(e,t,n)=>{const r={key:t,[kt]:!0},s=z0(n,r);return[Bt.createElement("title",s,t)]},si=(e,t)=>t.map((n,r)=>{const s={key:r,[kt]:!0};return Object.keys(n).forEach(a=>{const i=If[a]||a;if(i==="innerHTML"||i==="cssText"){const l=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[i]=n[a]}),Bt.createElement(e,s)}),at=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>rT(e,t.title,t.titleAttributes),toString:()=>tT(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>z0(t),toString:()=>V0(t)};default:return{toComponent:()=>si(e,t),toString:()=>nT(e,t,n)}}},sT=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=gc(e,pc.meta),a=gc(t,pc.link),o=gc(n,pc.script);return{priorityMethods:{toComponent:()=>[...si("meta",s.priority),...si("link",a.priority),...si("script",o.priority)],toString:()=>`${at("meta",s.priority,r)} ${at("link",a.priority,r)} ${at("script",o.priority,r)}`},metaTags:s.default,linkTags:a.default,scriptTags:o.default}},aT=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:a,styleTags:o,title:i="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:f,scriptTags:h}=e,m={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:m,linkTags:d,metaTags:f,scriptTags:h}=sT(e)),{priority:m,base:at("base",t,r),bodyAttributes:at("bodyAttributes",n,r),htmlAttributes:at("htmlAttributes",s,r),link:at("link",d,r),meta:at("meta",f,r),noscript:at("noscript",a,r),script:at("script",h,r),style:at("style",o,r),title:at("title",{title:i,titleAttributes:l},r)}},$u=aT,Lo=[],B0=!!(typeof window<"u"&&window.document&&window.document.createElement),Uu=class{constructor(e,t){Qt(this,"instances",[]);Qt(this,"canUseDOM",B0);Qt(this,"context");Qt(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Lo:this.instances,add:e=>{(this.canUseDOM?Lo:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Lo:this.instances).indexOf(e);(this.canUseDOM?Lo:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=$u({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},oT={},H0=Bt.createContext(oT),yr,$0=(yr=class extends w.Component{constructor(n){super(n);Qt(this,"helmetData");this.helmetData=new Uu(this.props.context||{},yr.canUseDOM)}render(){return Bt.createElement(H0.Provider,{value:this.helmetData.value},this.props.children)}},Qt(yr,"canUseDOM",B0),yr),Fr=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${kt}]`),s=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(i=>{const l=document.createElement(e);for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u))if(u==="innerHTML")l.innerHTML=i.innerHTML;else if(u==="cssText")l.styleSheet?l.styleSheet.cssText=i.cssText:l.appendChild(document.createTextNode(i.cssText));else{const d=u,f=typeof i[d]>"u"?"":i[d];l.setAttribute(u,f)}l.setAttribute(kt,"true"),s.some((u,d)=>(o=d,l.isEqualNode(u)))?s.splice(o,1):a.push(l)}),s.forEach(i=>{var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),a.forEach(i=>n.appendChild(i)),{oldTags:s,newTags:a}},Wu=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(kt),s=r?r.split(","):[],a=[...s],o=Object.keys(t);for(const i of o){const l=t[i]||"";n.getAttribute(i)!==l&&n.setAttribute(i,l),s.indexOf(i)===-1&&s.push(i);const u=a.indexOf(i);u!==-1&&a.splice(u,1)}for(let i=a.length-1;i>=0;i-=1)n.removeAttribute(a[i]);s.length===a.length?n.removeAttribute(kt):n.getAttribute(kt)!==o.join(",")&&n.setAttribute(kt,o.join(","))},iT=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=_0(e)),Wu("title",t)},xm=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:a,metaTags:o,noscriptTags:i,onChangeClientState:l,scriptTags:u,styleTags:d,title:f,titleAttributes:h}=e;Wu("body",r),Wu("html",s),iT(f,h);const m={baseTag:Fr("base",n),linkTags:Fr("link",a),metaTags:Fr("meta",o),noscriptTags:Fr("noscript",i),scriptTags:Fr("script",u),styleTags:Fr("style",d)},x={},v={};Object.keys(m).forEach(b=>{const{newTags:g,oldTags:p}=m[b];g.length&&(x[b]=g),p.length&&(v[b]=m[b].oldTags)}),t&&t(),l(e,x,v)},Js=null,lT=e=>{Js&&cancelAnimationFrame(Js),e.defer?Js=requestAnimationFrame(()=>{xm(e,()=>{Js=null})}):(xm(e),Js=null)},cT=lT,ym=class extends w.Component{constructor(){super(...arguments);Qt(this,"rendered",!1)}shouldComponentUpdate(t){return!WE(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=ZE(t.get().map(a=>{const o={...a.props};return delete o.context,o}));$0.canUseDOM?cT(s):$u&&(r=$u(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Dc,uT=(Dc=class extends w.Component{shouldComponentUpdate(e){return!BE(gm(this.props,"helmetData"),gm(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return pm(mm.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${mm.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),pm(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return Bt.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...a}=r.props,o=Object.keys(a).reduce((l,u)=>(l[qE[u]||u]=a[u],l),{});let{type:i}=r;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(r,s),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:t=this.mapObjectTypeChildren(r,t,o,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Uu)){const s=r;r=new Uu(s.context,!0),delete n.helmetData}return r?Bt.createElement(ym,{...n,context:r.value}):Bt.createElement(H0.Consumer,null,s=>Bt.createElement(ym,{...n,context:s}))}},Qt(Dc,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Dc);const dT=vf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ga=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},a)=>{const o=r?CS:"button";return c.jsx(o,{className:Pe(dT({variant:t,size:n,className:e})),ref:a,...s})});ga.displayName="Button";const U0=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Pe("rounded-xl border bg-card text-card-foreground shadow",e),...t}));U0.displayName="Card";const W0=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Pe("flex flex-col space-y-1.5 p-6",e),...t}));W0.displayName="CardHeader";const q0=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Pe("font-semibold leading-none tracking-tight",e),...t}));q0.displayName="CardTitle";const K0=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));K0.displayName="CardDescription";const G0=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Pe("p-6 pt-0",e),...t}));G0.displayName="CardContent";const Y0=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Pe("flex items-center p-6 pt-0",e),...t}));Y0.displayName="CardFooter";const fT=vf("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Q0=w.forwardRef(({className:e,variant:t,...n},r)=>c.jsx("div",{ref:r,role:"alert",className:Pe(fT({variant:t}),e),...n}));Q0.displayName="Alert";const hT=w.forwardRef(({className:e,...t},n)=>c.jsx("h5",{ref:n,className:Pe("mb-1 font-medium leading-none tracking-tight",e),...t}));hT.displayName="AlertTitle";const X0=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Pe("text-sm [&_p]:leading-relaxed",e),...t}));X0.displayName="AlertDescription";var pT="Separator",vm="horizontal",mT=["horizontal","vertical"],Z0=w.forwardRef((e,t)=>{const{decorative:n,orientation:r=vm,...s}=e,a=gT(r)?r:vm,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return c.jsx(Be.div,{"data-orientation":a,...i,...s,ref:t})});Z0.displayName=pT;function gT(e){return mT.includes(e)}var J0=Z0;const ew=w.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},s)=>c.jsx(J0,{ref:s,decorative:n,orientation:t,className:Pe("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));ew.displayName=J0.displayName;const xT=({error:e,resetErrorBoundary:t})=>{Bt.useEffect(()=>{e&&window.dispatchEvent(new ErrorEvent("error",{error:e,message:e.message,filename:window.location.href,lineno:0,colno:0}))},[e]);const n=()=>{window.location.reload()},r=()=>{window.location.href="/"};return c.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4","data-id":"ctaslkpk2","data-path":"src/components/error-fallback.tsx",children:c.jsxs(U0,{className:"w-full max-w-md","data-id":"63y0mv257","data-path":"src/components/error-fallback.tsx",children:[c.jsxs(W0,{className:"text-center","data-id":"fls7zza1e","data-path":"src/components/error-fallback.tsx",children:[c.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-destructive/15 ring-2 ring-destructive/20","data-id":"d1pi7exwb","data-path":"src/components/error-fallback.tsx",children:c.jsx(Fp,{className:"h-8 w-8 text-destructive drop-shadow-sm","data-id":"k4fxvwsjf","data-path":"src/components/error-fallback.tsx"})}),c.jsx(q0,{className:"text-xl font-semibold","data-id":"rk3bs5ur6","data-path":"src/components/error-fallback.tsx",children:"Something went wrong"}),c.jsx(K0,{"data-id":"ezvp6sgeo","data-path":"src/components/error-fallback.tsx",children:"Sorry, the application encountered an unexpected error"})]}),c.jsxs(G0,{className:"space-y-4","data-id":"89mqrsnki","data-path":"src/components/error-fallback.tsx",children:[e&&c.jsxs(Q0,{variant:"destructive","data-id":"8fxpyh19n","data-path":"src/components/error-fallback.tsx",children:[c.jsx(Fp,{className:"h-5 w-5","data-id":"cx2vw657g","data-path":"src/components/error-fallback.tsx"}),c.jsx(X0,{className:"text-sm","data-id":"iqa975ejf","data-path":"src/components/error-fallback.tsx",children:c.jsxs("details",{className:"mt-2","data-id":"fpigrja3t","data-path":"src/components/error-fallback.tsx",children:[c.jsx("summary",{className:"cursor-pointer font-medium","data-id":"i2jczq5t8","data-path":"src/components/error-fallback.tsx",children:"Error Details"}),c.jsx("div",{id:"capture-error-detail",className:"mt-2 text-xs font-mono bg-muted/80 dark:bg-muted/20 p-3 rounded border dark:border-border/50 overflow-auto max-h-32 text-foreground dark:text-muted-foreground","data-id":"1ccnnnnns","data-path":"src/components/error-fallback.tsx",children:e.message})]})})]}),c.jsx("div",{className:"text-sm text-muted-foreground text-center","data-id":"3y154m6yh","data-path":"src/components/error-fallback.tsx",children:"You can try refreshing the page or returning to the homepage to resolve this issue"})]}),c.jsx(ew,{"data-id":"g06gwa0d2","data-path":"src/components/error-fallback.tsx"}),c.jsxs(Y0,{className:"flex flex-col gap-2 pt-6","data-id":"vhhczd7sm","data-path":"src/components/error-fallback.tsx",children:[c.jsxs("div",{className:"flex w-full gap-2","data-id":"j7wh7bc9e","data-path":"src/components/error-fallback.tsx",children:[t&&c.jsxs(ga,{onClick:t,className:"flex-1",variant:"default","data-id":"1eytkmwal","data-path":"src/components/error-fallback.tsx",children:[c.jsx(Ip,{className:"mr-2 h-4 w-4 opacity-90","data-id":"mlmaptf33","data-path":"src/components/error-fallback.tsx"}),"Retry"]}),c.jsxs(ga,{onClick:n,variant:"outline",className:"flex-1","data-id":"98jthcxyy","data-path":"src/components/error-fallback.tsx",children:[c.jsx(Ip,{className:"mr-2 h-4 w-4 opacity-90","data-id":"ll09v97ud","data-path":"src/components/error-fallback.tsx"}),"Refresh Page"]})]}),c.jsxs(ga,{onClick:r,variant:"ghost",className:"w-full","data-id":"dh5f2aqlr","data-path":"src/components/error-fallback.tsx",children:[c.jsx(Tk,{className:"mr-2 h-4 w-4 opacity-80","data-id":"6k3lhtuaw","data-path":"src/components/error-fallback.tsx"}),"Go Home"]})]})]})})},yT=()=>{const e=Mr(),t=window.location.origin+e.pathname;return c.jsxs(c.Fragment,{children:[c.jsx(uT,{"data-id":"hrhqpzjvc","data-path":"src/components/canonical-manager.tsx",children:c.jsx("link",{rel:"canonical",href:t,"data-id":"0g3579rdu","data-path":"src/components/canonical-manager.tsx"})}),c.jsx(wE,{"data-id":"v4kyb7y14","data-path":"src/components/canonical-manager.tsx"})]})},wm=[{label:"Home",href:"/"},{label:"About",href:"/about"},{label:"Programs",href:"/programs",dropdown:[{label:"Future Leaders Mentorship",href:"/programs#mentorship"},{label:"Pathways to Positive Choices",href:"/programs#lifeskills"},{label:"Youth Environmental Stewardship",href:"/programs#stewardship"}]},{label:"Our Impact",href:"/impact"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/contact"}];function Dr(){const[e,t]=w.useState(!1),[n,r]=w.useState(!1),[s,a]=w.useState(!1),o=Mr();w.useEffect(()=>{const l=()=>t(window.scrollY>40);return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]),w.useEffect(()=>{r(!1),a(!1)},[o.pathname]);const i=l=>l==="/"?o.pathname==="/":o.pathname.startsWith(l);return c.jsxs("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${e||n?"nav-scrolled":"bg-transparent"}`,"data-id":"vzqs40zxy","data-path":"src/components/Navigation.tsx",children:[c.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8","data-id":"fkb0q855w","data-path":"src/components/Navigation.tsx",children:c.jsxs("div",{className:"flex items-center justify-between h-20","data-id":"a80wwo6xc","data-path":"src/components/Navigation.tsx",children:[c.jsxs(Q,{to:"/",className:"flex items-center gap-3 group","data-id":"4g2axbp3z","data-path":"src/components/Navigation.tsx",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-amber-brand flex items-center justify-center shrink-0 transition-transform group-hover:scale-110","data-id":"srvjn1pdg","data-path":"src/components/Navigation.tsx",children:c.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-6 h-6",stroke:"white",strokeWidth:"1.8","data-id":"o3p7mwmbd","data-path":"src/components/Navigation.tsx",children:[c.jsx("path",{d:"M3 20c3-3 6-5 9-5s6 2 9 5",strokeLinecap:"round","data-id":"vsehpkmti","data-path":"src/components/Navigation.tsx"}),c.jsx("path",{d:"M12 15V8",strokeLinecap:"round","data-id":"udu8t6udv","data-path":"src/components/Navigation.tsx"}),c.jsx("path",{d:"M8 10c0-2.2 1.8-4 4-4s4 1.8 4 4",strokeLinecap:"round","data-id":"yrlwo6xgi","data-path":"src/components/Navigation.tsx"}),c.jsx("circle",{cx:"12",cy:"4",r:"1.5",fill:"white",stroke:"none","data-id":"qu5fd3qm4","data-path":"src/components/Navigation.tsx"})]})}),c.jsxs("div",{className:"leading-tight","data-id":"nb14tjsms","data-path":"src/components/Navigation.tsx",children:[c.jsx("div",{className:"text-white font-display font-bold text-base leading-none","data-id":"l038pjf0i","data-path":"src/components/Navigation.tsx",children:"HOOKED ON FISHING"}),c.jsx("div",{className:"text-amber-brand text-xs font-body tracking-wider uppercase","data-id":"rkuxvrfpw","data-path":"src/components/Navigation.tsx",children:"NOT ON VIOLENCE FOUNDATION"})]})]}),c.jsxs("div",{className:"hidden lg:flex items-center gap-1","data-id":"4h3dc44jf","data-path":"src/components/Navigation.tsx",children:[wm.map(l=>c.jsx("div",{className:"relative group","data-id":"bw0l5lldk","data-path":"src/components/Navigation.tsx",children:l.dropdown?c.jsxs(c.Fragment,{children:[c.jsxs("button",{onClick:()=>a(!s),className:`px-4 py-2 rounded-lg font-body text-sm font-600 transition-all flex items-center gap-1 ${i(l.href)?"text-amber-brand":"text-white/90 hover:text-amber-brand"}`,"data-id":"kg21vw623","data-path":"src/components/Navigation.tsx",children:[l.label,c.jsx("svg",{className:"w-3.5 h-3.5 opacity-70 group-hover:rotate-180 transition-transform duration-200",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"dm0f6y7vw","data-path":"src/components/Navigation.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7","data-id":"9nol5qqo0","data-path":"src/components/Navigation.tsx"})})]}),c.jsx("div",{className:"absolute top-full left-0 w-64 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 pt-2","data-id":"v85azrxe3","data-path":"src/components/Navigation.tsx",children:c.jsx("div",{className:"bg-forest border border-white/10 rounded-xl shadow-2xl overflow-hidden","data-id":"9p8i28ip2","data-path":"src/components/Navigation.tsx",children:l.dropdown.map(u=>c.jsx(Q,{to:u.href,className:"block px-4 py-3 text-sm text-white/80 hover:text-amber-brand hover:bg-white/5 transition-colors font-body border-b border-white/5 last:border-0","data-id":"uijdm6m0f","data-path":"src/components/Navigation.tsx",children:u.label},u.href))})})]}):c.jsx(Q,{to:l.href,className:`px-4 py-2 rounded-lg font-body text-sm font-600 transition-all ${i(l.href)?"text-amber-brand":"text-white/90 hover:text-amber-brand"}`,"data-id":"h5sbte0ef","data-path":"src/components/Navigation.tsx",children:l.label})},l.href)),c.jsx(Q,{to:"/donate",className:"ml-3 px-5 py-2.5 rounded-full bg-amber-brand text-white font-body text-sm font-700 hover:bg-amber-light transition-colors shadow-lg shadow-amber/20","data-id":"96f3rez22","data-path":"src/components/Navigation.tsx",children:"Donate Now"})]}),c.jsxs("button",{onClick:()=>r(!n),className:"lg:hidden flex flex-col gap-1.5 p-2","aria-label":"Toggle menu","data-id":"51nykc86o","data-path":"src/components/Navigation.tsx",children:[c.jsx("span",{className:`block w-6 h-0.5 bg-white transition-all duration-300 ${n?"rotate-45 translate-y-2":""}`,"data-id":"ki59k54up","data-path":"src/components/Navigation.tsx"}),c.jsx("span",{className:`block w-6 h-0.5 bg-white transition-all duration-300 ${n?"opacity-0":""}`,"data-id":"15uy4shxd","data-path":"src/components/Navigation.tsx"}),c.jsx("span",{className:`block w-6 h-0.5 bg-white transition-all duration-300 ${n?"-rotate-45 -translate-y-2":""}`,"data-id":"f4ut7xrre","data-path":"src/components/Navigation.tsx"})]})]})}),c.jsx("div",{className:`lg:hidden overflow-hidden transition-all duration-400 ${n?"max-h-screen":"max-h-0"}`,"data-id":"osqowskp5","data-path":"src/components/Navigation.tsx",children:c.jsxs("div",{className:"bg-forest border-t border-white/10 px-4 pb-6 pt-2","data-id":"8lx4lkw4a","data-path":"src/components/Navigation.tsx",children:[wm.map(l=>c.jsxs("div",{"data-id":"5viq43ac6","data-path":"src/components/Navigation.tsx",children:[c.jsx(Q,{to:l.href,className:`block py-3 font-body text-base border-b border-white/10 ${i(l.href)?"text-amber-brand":"text-white/90"}`,"data-id":"asztvh3jb","data-path":"src/components/Navigation.tsx",children:l.label}),l.dropdown&&c.jsx("div",{className:"pl-4","data-id":"debb22w5t","data-path":"src/components/Navigation.tsx",children:l.dropdown.map(u=>c.jsx(Q,{to:u.href,className:"block py-2 text-sm text-white/60 hover:text-amber-brand font-body border-b border-white/5","data-id":"n69glx4c3","data-path":"src/components/Navigation.tsx",children:u.label},u.href))})]},l.href)),c.jsx(Q,{to:"/donate",className:"mt-4 block text-center py-3 rounded-full bg-amber-brand text-white font-body font-700 text-base","data-id":"2r969jc4q","data-path":"src/components/Navigation.tsx",children:"Donate Now"})]})})]})}function Or(){return c.jsxs("footer",{className:"bg-forest text-white","data-id":"hdj77fpbo","data-path":"src/components/Footer.tsx",children:[c.jsx("div",{className:"bg-amber-brand py-12 px-4","data-id":"ajmgablxy","data-path":"src/components/Footer.tsx",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center","data-id":"80oml1b3v","data-path":"src/components/Footer.tsx",children:[c.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-white mb-4","data-id":"anyu3lzoh","data-path":"src/components/Footer.tsx",children:"Help Us Build the Next Generation of Leaders"}),c.jsx("p",{className:"font-body text-white/85 text-lg mb-8 max-w-2xl mx-auto","data-id":"z2dnkbst5","data-path":"src/components/Footer.tsx",children:"Your support empowers young people to discover confidence, purpose, and positive futures through mentorship and outdoor experiences."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center","data-id":"h2l9q2ix5","data-path":"src/components/Footer.tsx",children:[c.jsx(Q,{to:"/donate",className:"px-8 py-4 bg-white text-amber-brand font-body font-700 rounded-full hover:bg-cream transition-colors shadow-lg text-lg","data-id":"3dityapxx","data-path":"src/components/Footer.tsx",children:"Donate Today"}),c.jsx(Q,{to:"/programs",className:"px-8 py-4 border-2 border-white text-white font-body font-700 rounded-full hover:bg-white/10 transition-colors text-lg","data-id":"jepgpcpcn","data-path":"src/components/Footer.tsx",children:"Explore Programs"})]})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16","data-id":"0qc2m2shm","data-path":"src/components/Footer.tsx",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10 mb-14","data-id":"hc69d3d4w","data-path":"src/components/Footer.tsx",children:[c.jsxs("div",{className:"lg:col-span-1","data-id":"mrdzaq42w","data-path":"src/components/Footer.tsx",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-5","data-id":"7g27ti1fk","data-path":"src/components/Footer.tsx",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-amber-brand flex items-center justify-center shrink-0","data-id":"083wrobr2","data-path":"src/components/Footer.tsx",children:c.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-6 h-6",stroke:"white",strokeWidth:"1.8","data-id":"7ndyqt5vx","data-path":"src/components/Footer.tsx",children:[c.jsx("path",{d:"M3 20c3-3 6-5 9-5s6 2 9 5",strokeLinecap:"round","data-id":"kkm1awyzk","data-path":"src/components/Footer.tsx"}),c.jsx("path",{d:"M12 15V8",strokeLinecap:"round","data-id":"2hqz4ps3p","data-path":"src/components/Footer.tsx"}),c.jsx("path",{d:"M8 10c0-2.2 1.8-4 4-4s4 1.8 4 4",strokeLinecap:"round","data-id":"t3h1ky5ja","data-path":"src/components/Footer.tsx"}),c.jsx("circle",{cx:"12",cy:"4",r:"1.5",fill:"white",stroke:"none","data-id":"plrm1zly9","data-path":"src/components/Footer.tsx"})]})}),c.jsxs("div",{className:"leading-tight","data-id":"ponqk8hd1","data-path":"src/components/Footer.tsx",children:[c.jsx("div",{className:"text-white font-display font-bold text-sm leading-none","data-id":"gh0fwxirp","data-path":"src/components/Footer.tsx",children:"HOOKED ON FISHING"}),c.jsx("div",{className:"text-amber-brand text-xs font-body tracking-wider uppercase mt-0.5","data-id":"lgtmbtebs","data-path":"src/components/Footer.tsx",children:"NOT ON VIOLENCE FOUNDATION"})]})]}),c.jsx("p",{className:"font-body text-white/60 text-sm leading-relaxed mb-5","data-id":"w85j1avj9","data-path":"src/components/Footer.tsx",children:"Casting Lines, Building Futures. We engage youth through mentorship, outdoor experiences, and character development to create positive, productive lives."}),c.jsx("div",{className:"text-xs font-body text-white/40 mt-4","data-id":"f01nf2bo8","data-path":"src/components/Footer.tsx",children:"EIN: 81-4448442"})]}),c.jsxs("div",{"data-id":"0p6gbb7zh","data-path":"src/components/Footer.tsx",children:[c.jsx("h4",{className:"font-display font-bold text-white text-base mb-5 border-b border-white/15 pb-3","data-id":"hl4phag30","data-path":"src/components/Footer.tsx",children:"Our Focus"}),c.jsx("ul",{className:"space-y-3","data-id":"0o5x7wt3f","data-path":"src/components/Footer.tsx",children:[{label:"Youth Mentorship",href:"/programs#mentorship"},{label:"Character Development",href:"/programs#lifeskills"},{label:"Violence Prevention",href:"/programs#lifeskills"},{label:"Environmental Stewardship",href:"/programs#stewardship"},{label:"Leadership Training",href:"/programs"}].map(e=>c.jsx("li",{"data-id":"5he8m2g3z","data-path":"src/components/Footer.tsx",children:c.jsxs(Q,{to:e.href,className:"font-body text-white/60 hover:text-amber-brand text-sm transition-colors flex items-center gap-2","data-id":"e0rzhy9f6","data-path":"src/components/Footer.tsx",children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-brand inline-block shrink-0","data-id":"29tanmgvi","data-path":"src/components/Footer.tsx"}),e.label]})},e.label))})]}),c.jsxs("div",{"data-id":"ehj95p9g1","data-path":"src/components/Footer.tsx",children:[c.jsx("h4",{className:"font-display font-bold text-white text-base mb-5 border-b border-white/15 pb-3","data-id":"cphecnymk","data-path":"src/components/Footer.tsx",children:"Navigate"}),c.jsx("ul",{className:"space-y-3","data-id":"nwsccsow2","data-path":"src/components/Footer.tsx",children:[{label:"About Us",href:"/about"},{label:"Our Programs",href:"/programs"},{label:"Impact Stories",href:"/impact"},{label:"Blog & Resources",href:"/blog"},{label:"Volunteer",href:"/contact"},{label:"Donate",href:"/donate"}].map(e=>c.jsx("li",{"data-id":"rgox8mgjm","data-path":"src/components/Footer.tsx",children:c.jsx(Q,{to:e.href,className:"font-body text-white/60 hover:text-amber-brand text-sm transition-colors","data-id":"6yjew0ig0","data-path":"src/components/Footer.tsx",children:e.label})},e.label))})]}),c.jsxs("div",{"data-id":"kkrrvr56o","data-path":"src/components/Footer.tsx",children:[c.jsx("h4",{className:"font-display font-bold text-white text-base mb-5 border-b border-white/15 pb-3","data-id":"8g5giev4s","data-path":"src/components/Footer.tsx",children:"Contact Us"}),c.jsxs("div",{className:"space-y-4","data-id":"j59aqkye2","data-path":"src/components/Footer.tsx",children:[c.jsxs("div",{className:"flex items-start gap-3","data-id":"l77ku0lit","data-path":"src/components/Footer.tsx",children:[c.jsxs("svg",{className:"w-4 h-4 text-amber-brand mt-0.5 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"txmgy9mhg","data-path":"src/components/Footer.tsx",children:[c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z","data-id":"lauu3p4y3","data-path":"src/components/Footer.tsx"}),c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z","data-id":"90iy67c7h","data-path":"src/components/Footer.tsx"})]}),c.jsxs("p",{className:"font-body text-white/60 text-sm leading-relaxed","data-id":"sgfjgozew","data-path":"src/components/Footer.tsx",children:["4625 44th Street Suite 2",c.jsx("br",{"data-id":"sc30qkmmh","data-path":"src/components/Footer.tsx"}),"Sacramento, CA 95820"]})]}),c.jsxs("div",{className:"flex items-center gap-3","data-id":"svh46wxcs","data-path":"src/components/Footer.tsx",children:[c.jsx("svg",{className:"w-4 h-4 text-amber-brand shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"ys8y8jwjz","data-path":"src/components/Footer.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z","data-id":"wyr09ozqk","data-path":"src/components/Footer.tsx"})}),c.jsx("a",{href:"tel:+19168890105",className:"font-body text-white/60 hover:text-amber-brand text-sm transition-colors","data-id":"kdlkmt8v6","data-path":"src/components/Footer.tsx",children:"+1-916-889-0105"})]}),c.jsxs("div",{className:"flex items-center gap-3","data-id":"zr6feq9wx","data-path":"src/components/Footer.tsx",children:[c.jsx("svg",{className:"w-4 h-4 text-amber-brand shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"u87asu0gz","data-path":"src/components/Footer.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z","data-id":"l52wuc4ka","data-path":"src/components/Footer.tsx"})}),c.jsx("a",{href:"mailto:enquiries@purehorizonx.com",className:"font-body text-white/60 hover:text-amber-brand text-sm transition-colors break-all","data-id":"rivt3s616","data-path":"src/components/Footer.tsx",children:"enquiries@purehorizonx.com"})]})]}),c.jsx("div",{className:"mt-6 flex gap-3","data-id":"usldrwheu","data-path":"src/components/Footer.tsx",children:["Facebook","Instagram","Twitter","YouTube"].map(e=>c.jsx("div",{className:"w-9 h-9 rounded-full border border-white/20 flex items-center justify-center hover:border-amber-brand hover:bg-amber-brand/10 transition-all cursor-pointer",title:e,"data-id":"omzvag904","data-path":"src/components/Footer.tsx",children:c.jsx("span",{className:"text-white/50 text-xs font-body","data-id":"g5b2x3wzd","data-path":"src/components/Footer.tsx",children:e[0]})},e))})]})]}),c.jsxs("div",{className:"border-t border-white/10 pt-8 flex flex-col sm:flex-row items-center justify-between gap-4","data-id":"cdxexhzfr","data-path":"src/components/Footer.tsx",children:[c.jsxs("p",{className:"font-body text-white/40 text-sm text-center sm:text-left","data-id":"dn516757f","data-path":"src/components/Footer.tsx",children:["© ",new Date().getFullYear()," HOOKED ON FISHING NOT ON VIOLENCE FOUNDATION. All rights reserved."]}),c.jsxs("div",{className:"flex gap-6","data-id":"wl3lq73fm","data-path":"src/components/Footer.tsx",children:[c.jsx(Q,{to:"/contact",className:"font-body text-white/40 hover:text-white/70 text-sm transition-colors","data-id":"49rjhcvt3","data-path":"src/components/Footer.tsx",children:"Privacy Policy"}),c.jsx(Q,{to:"/contact",className:"font-body text-white/40 hover:text-white/70 text-sm transition-colors","data-id":"47uc4pqun","data-path":"src/components/Footer.tsx",children:"Terms of Use"})]})]})]})]})}function vT(){w.useEffect(()=>{const e=document.querySelectorAll(".reveal, .reveal-left, .reveal-right"),t=new IntersectionObserver(n=>n.forEach(r=>{r.isIntersecting&&r.target.classList.add("visible")}),{threshold:.12});return e.forEach(n=>t.observe(n)),()=>t.disconnect()},[])}function wT(e,t=2e3,n=!1){const[r,s]=w.useState(0);return w.useEffect(()=>{if(!n)return;let a=null;const o=i=>{a||(a=i);const l=Math.min((i-a)/t,1);s(Math.floor(l*e)),l<1&&requestAnimationFrame(o)};requestAnimationFrame(o)},[n,e,t]),r}function Io({value:e,label:t,suffix:n=""}){const r=w.useRef(null),[s,a]=w.useState(!1),o=wT(e,2200,s);return w.useEffect(()=>{const i=r.current;if(!i)return;const l=new IntersectionObserver(([u])=>{u.isIntersecting&&a(!0)},{threshold:.5});return l.observe(i),()=>l.disconnect()},[]),c.jsxs("div",{ref:r,className:"text-center py-8 px-6","data-id":"wfz3v6mdq","data-path":"src/pages/HomePage.tsx",children:[c.jsxs("div",{className:"font-display text-5xl md:text-6xl font-800 gradient-text mb-2","data-id":"gbwpp5iuh","data-path":"src/pages/HomePage.tsx",children:[o.toLocaleString(),n]}),c.jsx("div",{className:"font-body text-white/70 text-sm uppercase tracking-widest","data-id":"s0ra73evu","data-path":"src/pages/HomePage.tsx",children:t})]})}const bT=[{icon:c.jsxs("svg",{viewBox:"0 0 48 48",fill:"none",className:"w-12 h-12",stroke:"currentColor",strokeWidth:"1.5","data-id":"91du7ou8r","data-path":"src/pages/HomePage.tsx",children:[c.jsx("circle",{cx:"24",cy:"16",r:"8","data-id":"lyjfdikoj","data-path":"src/pages/HomePage.tsx"}),c.jsx("path",{d:"M12 42c0-6.627 5.373-12 12-12s12 5.373 12 12","data-id":"lvwxz289b","data-path":"src/pages/HomePage.tsx"}),c.jsx("path",{d:"M36 8c2.5 1.5 4 4.2 4 7M12 8C9.5 9.5 8 12.2 8 15","data-id":"q4yz6yxi8","data-path":"src/pages/HomePage.tsx"}),c.jsx("path",{d:"M44 38c0-5-3.6-9.2-8.5-10.7M4 38c0-5 3.6-9.2 8.5-10.7","data-id":"rqq3n8fcc","data-path":"src/pages/HomePage.tsx"})]}),title:"Future Leaders Mentorship Network",purpose:"Youth Mentorship",color:"#2E6B4A",desc:"One-on-one and group mentorship with caring adult role models who guide youth toward goal-setting, confidence, and leadership.",href:"/programs#mentorship"},{icon:c.jsxs("svg",{viewBox:"0 0 48 48",fill:"none",className:"w-12 h-12",stroke:"currentColor",strokeWidth:"1.5","data-id":"nv7w40os1","data-path":"src/pages/HomePage.tsx",children:[c.jsx("path",{d:"M24 4L4 18v8h40v-8L24 4z","data-id":"zac6086wt","data-path":"src/pages/HomePage.tsx"}),c.jsx("rect",{x:"10",y:"26",width:"6",height:"16",rx:"1","data-id":"necu363yi","data-path":"src/pages/HomePage.tsx"}),c.jsx("rect",{x:"21",y:"26",width:"6",height:"16",rx:"1","data-id":"lpk0dllrr","data-path":"src/pages/HomePage.tsx"}),c.jsx("rect",{x:"32",y:"26",width:"6",height:"16",rx:"1","data-id":"pvcy3r22j","data-path":"src/pages/HomePage.tsx"}),c.jsx("path",{d:"M2 42h44","data-id":"7t3dpbjm9","data-path":"src/pages/HomePage.tsx"})]}),title:"Pathways to Positive Choices",purpose:"Life Skills & Prevention",color:"#1E4E7A",desc:"Evidence-based workshops teaching decision-making, conflict resolution, and personal responsibility — turning challenges into opportunities.",href:"/programs#lifeskills"},{icon:c.jsxs("svg",{viewBox:"0 0 48 48",fill:"none",className:"w-12 h-12",stroke:"currentColor",strokeWidth:"1.5","data-id":"xf0zl2g7a","data-path":"src/pages/HomePage.tsx",children:[c.jsx("path",{d:"M24 4C14 4 6 12 6 22c0 8 5 15 12 18v4h12v-4c7-3 12-10 12-18C42 12 34 4 24 4z","data-id":"071e9d33f","data-path":"src/pages/HomePage.tsx"}),c.jsx("path",{d:"M16 28c2-4 4-6 8-6s6 2 8 6","data-id":"xxoo711lp","data-path":"src/pages/HomePage.tsx"}),c.jsx("circle",{cx:"24",cy:"20",r:"4","data-id":"n0b6twqyj","data-path":"src/pages/HomePage.tsx"})]}),title:"Youth Environmental Stewardship Project",purpose:"Outdoor Leadership",color:"#C8783A",desc:"Hands-on conservation education, fishing skills, and outdoor leadership experiences that build responsibility and environmental awareness.",href:"/programs#stewardship"}],PT=[{category:"Youth Mentorship",title:"Why Positive Role Models Change Everything for Young People",excerpt:"The presence of a caring mentor doesn't just improve grades — it reshapes how a young person sees their own future.",img:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=600&q=80"},{category:"Character & Life Skills",title:"Teaching Responsibility Through Real Outdoor Experiences",excerpt:"When youth face the natural world with guidance, they develop accountability, patience, and pride that carries into every area of life.",img:"https://images.unsplash.com/photo-1472745942893-4b9f730c7668?w=600&q=80"},{category:"Violence Prevention",title:"Creating Positive Alternatives: Community Engagement as Prevention",excerpt:"Meaningful structured activities are among the most effective tools for steering youth toward constructive, productive choices.",img:"https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=600&q=80"}];function ST(){return vT(),c.jsxs("div",{className:"min-h-screen",style:{background:"var(--cream)"},"data-id":"rf1d3ds5o","data-path":"src/pages/HomePage.tsx",children:[c.jsx(Dr,{"data-id":"9nri5z96w","data-path":"src/pages/HomePage.tsx"}),c.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden",style:{backgroundImage:"url(https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?w=1600&q=85)",backgroundSize:"cover",backgroundPosition:"center 30%"},"data-id":"lbe6xoxkk","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"absolute inset-0 hero-overlay","data-id":"3y7tg0dys","data-path":"src/pages/HomePage.tsx"}),c.jsx("div",{className:"absolute right-24 bottom-36 hidden md:block","data-id":"6mnbd77rj","data-path":"src/pages/HomePage.tsx",children:[80,120,160].map((e,t)=>c.jsx("div",{className:"ripple-ring absolute",style:{width:e,height:e,top:-e/2,left:-e/2,animationDelay:`${t*.9}s`},"data-id":"edmbhi6lc","data-path":"src/pages/HomePage.tsx"},e))}),c.jsxs("div",{className:"relative z-10 max-w-5xl mx-auto px-4 text-center","data-id":"d825ad54d","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"inline-block mb-6 px-5 py-2 rounded-full border text-amber-brand font-body text-sm tracking-widest uppercase animate-fade-in",style:{borderColor:"rgba(200,120,58,0.4)",background:"rgba(200,120,58,0.12)"},"data-id":"acyj1xmza","data-path":"src/pages/HomePage.tsx",children:"Sacramento, CA · Est. 2016"}),c.jsxs("h1",{className:"font-display text-5xl sm:text-6xl md:text-7xl lg:text-8xl font-800 text-white leading-tight mb-6 animate-fade-up","data-id":"vlpgm187a","data-path":"src/pages/HomePage.tsx",children:["Casting Lines,",c.jsx("br",{"data-id":"we0wvh3w3","data-path":"src/pages/HomePage.tsx"}),c.jsx("em",{className:"gradient-text not-italic","data-id":"2vq2fijnj","data-path":"src/pages/HomePage.tsx",children:"Building Futures"})]}),c.jsx("p",{className:"font-body text-white/80 text-xl md:text-2xl max-w-3xl mx-auto leading-relaxed mb-10 animate-fade-up delay-200","data-id":"azgq7itjj","data-path":"src/pages/HomePage.tsx",children:"We mentor Sacramento's youth through outdoor experiences that develop confidence, character, leadership, and the life skills to build productive, successful futures."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center animate-fade-up delay-400","data-id":"r5cabuca8","data-path":"src/pages/HomePage.tsx",children:[c.jsx(Q,{to:"/programs",className:"px-8 py-4 rounded-full bg-amber-brand text-white font-body font-700 text-lg hover:bg-amber-light transition-colors shadow-xl","data-id":"strhs565n","data-path":"src/pages/HomePage.tsx",children:"Explore Our Programs"}),c.jsx(Q,{to:"/impact",className:"px-8 py-4 rounded-full border-2 border-white text-white font-body font-700 text-lg hover:bg-white/10 transition-colors","data-id":"cqighm6ci","data-path":"src/pages/HomePage.tsx",children:"See Our Impact"})]})]}),c.jsxs("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 animate-float","data-id":"4oytiz9k0","data-path":"src/pages/HomePage.tsx",children:[c.jsx("span",{className:"font-body text-white/40 text-xs tracking-widest uppercase","data-id":"lpa8lo1p3","data-path":"src/pages/HomePage.tsx",children:"Scroll"}),c.jsx("svg",{className:"w-5 h-5 text-white/40",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"4xesg17q9","data-path":"src/pages/HomePage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19 9l-7 7-7-7","data-id":"7wgu45ste","data-path":"src/pages/HomePage.tsx"})})]})]}),c.jsx("section",{className:"bg-forest py-10 px-4","data-id":"omb0ognef","data-path":"src/pages/HomePage.tsx",children:c.jsx("div",{className:"max-w-5xl mx-auto text-center","data-id":"k4a74h511","data-path":"src/pages/HomePage.tsx",children:c.jsx("p",{className:"font-display italic text-xl md:text-2xl text-white/85 leading-relaxed","data-id":"j6li73s8q","data-path":"src/pages/HomePage.tsx",children:'"Our mission is to engage youth in positive outdoor activities through fishing, mentoring, and educational programs that promote character development, life skills, academic achievement, environmental stewardship, and violence prevention."'})})}),c.jsx("section",{className:"bg-bark py-16 px-4","data-id":"jh58lega7","data-path":"src/pages/HomePage.tsx",children:c.jsx("div",{className:"max-w-6xl mx-auto","data-id":"co3sdchm0","data-path":"src/pages/HomePage.tsx",children:c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-0 divide-x divide-white/10","data-id":"dm4gkdmq0","data-path":"src/pages/HomePage.tsx",children:[c.jsx(Io,{value:850,label:"Youth Mentored",suffix:"+","data-id":"r9lu8l6l8","data-path":"src/pages/HomePage.tsx"}),c.jsx(Io,{value:120,label:"Leadership Workshops",suffix:"+","data-id":"9dwsb7ohe","data-path":"src/pages/HomePage.tsx"}),c.jsx(Io,{value:3200,label:"Volunteer Hours",suffix:"+","data-id":"hfamxh5fo","data-path":"src/pages/HomePage.tsx"}),c.jsx(Io,{value:94,label:"Youth Reporting Growth",suffix:"%","data-id":"y20h99nby","data-path":"src/pages/HomePage.tsx"})]})})}),c.jsx("section",{className:"py-24 px-4","data-id":"vrmfqxchd","data-path":"src/pages/HomePage.tsx",children:c.jsxs("div",{className:"max-w-7xl mx-auto","data-id":"k9pwye3u9","data-path":"src/pages/HomePage.tsx",children:[c.jsxs("div",{className:"text-center mb-16 reveal","data-id":"6oqxdquo7","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"satsji8dg","data-path":"src/pages/HomePage.tsx"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600","data-id":"026x6nlk2","data-path":"src/pages/HomePage.tsx",children:"What We Do"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-700 text-forest mt-2 mb-4","data-id":"jkwu8prs0","data-path":"src/pages/HomePage.tsx",children:["Four Pillars of ",c.jsx("em",{"data-id":"qltgb8y7c","data-path":"src/pages/HomePage.tsx",children:"Youth Transformation"})]}),c.jsx("p",{className:"font-body text-stone max-w-2xl mx-auto text-lg","data-id":"q3m2yzesy","data-path":"src/pages/HomePage.tsx",children:"Every program, mentorship session, and outdoor experience connects to one or more of our core operational purposes."})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6","data-id":"xx3ii6ece","data-path":"src/pages/HomePage.tsx",children:[{num:"01",emoji:"🤝",title:"Youth Mentorship & Positive Role Modeling",desc:"Connecting young people with caring adults who model integrity, purpose, and possibility.",color:"#2E6B4A"},{num:"02",emoji:"🌱",title:"Character Development & Life Skills",desc:"Building the inner tools — responsibility, communication, resilience — that lead to lifelong success.",color:"#1E4E7A"},{num:"03",emoji:"🛡️",title:"Violence Prevention Through Positive Engagement",desc:"Replacing risk and idleness with meaningful structured activities that redirect energy toward growth.",color:"#C8783A"},{num:"04",emoji:"🌿",title:"Environmental Stewardship & Outdoor Leadership",desc:"Teaching conservation, ecology, and outdoor skills that instill respect for our world and community.",color:"#1A3A2A"}].map((e,t)=>c.jsxs("div",{className:"reveal card-lift bg-white rounded-2xl overflow-hidden shadow-sm border border-gray-100",style:{transitionDelay:`${t*.1}s`},"data-id":"k7j4epgnr","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"h-1.5 w-full",style:{background:e.color},"data-id":"d6wj7hc6n","data-path":"src/pages/HomePage.tsx"}),c.jsxs("div",{className:"p-8","data-id":"wl1sblaou","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"w-14 h-14 rounded-xl flex items-center justify-center text-2xl mb-5",style:{background:e.color+"18"},"data-id":"bbfu5djin","data-path":"src/pages/HomePage.tsx",children:e.emoji}),c.jsx("div",{className:"font-display text-5xl font-800 mb-3",style:{color:e.color+"30"},"data-id":"4hqe5374o","data-path":"src/pages/HomePage.tsx",children:e.num}),c.jsx("h3",{className:"font-display text-xl font-700 text-forest mb-3 leading-tight","data-id":"5r61e20ss","data-path":"src/pages/HomePage.tsx",children:e.title}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed","data-id":"dp7gvnt8t","data-path":"src/pages/HomePage.tsx",children:e.desc})]})]},e.num))})]})}),c.jsx("section",{className:"py-24 px-4 bg-cream-dark","data-id":"locef0fdz","data-path":"src/pages/HomePage.tsx",children:c.jsxs("div",{className:"max-w-7xl mx-auto","data-id":"ajnjhmqdn","data-path":"src/pages/HomePage.tsx",children:[c.jsxs("div",{className:"text-center mb-16 reveal","data-id":"wg4rc1j2l","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"azlhtyrlo","data-path":"src/pages/HomePage.tsx"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600","data-id":"k3pt3veux","data-path":"src/pages/HomePage.tsx",children:"Programs"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-700 text-forest mt-2 mb-4","data-id":"ehi9flbae","data-path":"src/pages/HomePage.tsx",children:["Structured Pathways to ",c.jsx("em",{"data-id":"tpi1kdqbo","data-path":"src/pages/HomePage.tsx",children:"Personal Growth"})]}),c.jsx("p",{className:"font-body text-stone max-w-2xl mx-auto text-lg","data-id":"kcubn7uz6","data-path":"src/pages/HomePage.tsx",children:"Three distinct programs, each targeting a specific operational purpose, designed to meet youth where they are and guide them forward."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8","data-id":"3l2ojjnij","data-path":"src/pages/HomePage.tsx",children:bT.map((e,t)=>c.jsxs("div",{className:"reveal card-lift bg-white rounded-2xl overflow-hidden shadow-md",style:{transitionDelay:`${t*.15}s`},"data-id":"g0m2n90lj","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"h-2",style:{background:e.color},"data-id":"tyy12mmb4","data-path":"src/pages/HomePage.tsx"}),c.jsxs("div",{className:"p-8","data-id":"o5lvjim0k","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mb-5",style:{background:e.color+"18",color:e.color},"data-id":"lfbmn7qz7","data-path":"src/pages/HomePage.tsx",children:e.icon}),c.jsx("span",{className:"font-body text-xs font-700 uppercase tracking-widest px-3 py-1 rounded-full mb-4 inline-block",style:{background:e.color+"18",color:e.color},"data-id":"9y202kql0","data-path":"src/pages/HomePage.tsx",children:e.purpose}),c.jsx("h3",{className:"font-display text-xl font-700 text-forest mb-3 leading-tight","data-id":"7kb382gx8","data-path":"src/pages/HomePage.tsx",children:e.title}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed mb-6","data-id":"0u8k3b5wp","data-path":"src/pages/HomePage.tsx",children:e.desc}),c.jsxs(Q,{to:e.href,className:"font-body text-sm font-700 flex items-center gap-2 hover:gap-3 transition-all",style:{color:e.color},"data-id":"rhuovw776","data-path":"src/pages/HomePage.tsx",children:["Learn More",c.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"0fnv8z27p","data-path":"src/pages/HomePage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M9 5l7 7-7 7","data-id":"jggyk1rnt","data-path":"src/pages/HomePage.tsx"})})]})]})]},e.title))}),c.jsx("div",{className:"text-center mt-12 reveal","data-id":"lir1w02b2","data-path":"src/pages/HomePage.tsx",children:c.jsx(Q,{to:"/programs",className:"inline-block px-8 py-4 rounded-full bg-forest text-white font-body font-700 text-lg hover:bg-canopy transition-colors shadow-lg","data-id":"t7pxpa3mo","data-path":"src/pages/HomePage.tsx",children:"View All Programs"})})]})}),c.jsx("section",{className:"py-24 px-4","data-id":"6tkvnfsjd","data-path":"src/pages/HomePage.tsx",children:c.jsx("div",{className:"max-w-7xl mx-auto","data-id":"cjnkiy14m","data-path":"src/pages/HomePage.tsx",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center","data-id":"4rr9x3qxi","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"reveal-left","data-id":"f6797oi8b","data-path":"src/pages/HomePage.tsx",children:c.jsxs("div",{className:"relative rounded-3xl overflow-hidden shadow-2xl aspect-[4/3]","data-id":"x4mcm3rfi","data-path":"src/pages/HomePage.tsx",children:[c.jsx("img",{src:"https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=800&q=80",alt:"Youth mentorship success story",className:"w-full h-full object-cover","data-id":"6b75fr0xf","data-path":"src/pages/HomePage.tsx"}),c.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6",style:{background:"linear-gradient(to top, rgba(26,58,42,0.9) 0%, transparent 100%)"},"data-id":"9s8tl753m","data-path":"src/pages/HomePage.tsx",children:[c.jsx("span",{className:"font-body text-amber-brand text-xs uppercase tracking-widest font-700","data-id":"2nfr00ffc","data-path":"src/pages/HomePage.tsx",children:"Success Story"}),c.jsx("p",{className:"font-display text-white text-lg font-600 mt-1","data-id":"5bd5taxfg","data-path":"src/pages/HomePage.tsx",children:"Marcus, Age 16 · Sacramento"})]})]})}),c.jsxs("div",{className:"reveal-right","data-id":"vpx6y3w83","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mb-4 rounded-full","data-id":"gx8eoifll","data-path":"src/pages/HomePage.tsx"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600","data-id":"07nowvap1","data-path":"src/pages/HomePage.tsx",children:"From the Field"}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl font-700 text-forest mt-2 mb-6 leading-tight","data-id":"ylfhzro3h","data-path":"src/pages/HomePage.tsx",children:`"I Didn't Know I Could Be a Leader"`}),c.jsx("p",{className:"font-body text-stone text-lg leading-relaxed mb-4","data-id":"yltc1l9gd","data-path":"src/pages/HomePage.tsx",children:'When Marcus joined our Future Leaders Mentorship Network at 14, he described himself as "someone who never finishes anything." Two years later, he mentors younger participants and earned a scholarship to a STEM summer program.'}),c.jsx("p",{className:"font-body text-stone text-lg leading-relaxed mb-8","data-id":"68ul3qke6","data-path":"src/pages/HomePage.tsx",children:'"Being out on the water taught me patience. My mentor taught me to believe in what I could become. Now I show up — for myself and for the younger kids coming up behind me."'}),c.jsxs("div",{className:"flex items-center gap-4 mb-8","data-id":"5htlyl5a7","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"flex-1 h-px bg-cream-dark","data-id":"eaod7cuge","data-path":"src/pages/HomePage.tsx"}),c.jsx("span",{className:"font-body text-stone text-sm italic","data-id":"0mrbbltc6","data-path":"src/pages/HomePage.tsx",children:"— Marcus, Program Graduate"})]}),c.jsxs(Q,{to:"/impact",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full bg-amber-brand text-white font-body font-700 hover:bg-amber-light transition-colors","data-id":"jq6dve6yr","data-path":"src/pages/HomePage.tsx",children:["Read More Stories",c.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"z8n5p95pn","data-path":"src/pages/HomePage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M9 5l7 7-7 7","data-id":"5xmb4k00r","data-path":"src/pages/HomePage.tsx"})})]})]})]})})}),c.jsx("section",{className:"py-24 px-4 bg-forest","data-id":"v31cqmnaj","data-path":"src/pages/HomePage.tsx",children:c.jsxs("div",{className:"max-w-7xl mx-auto","data-id":"3ub8k54pw","data-path":"src/pages/HomePage.tsx",children:[c.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between mb-12","data-id":"khknefnos","data-path":"src/pages/HomePage.tsx",children:[c.jsxs("div",{className:"reveal","data-id":"a9zf635wc","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mb-4 rounded-full","data-id":"dld39dm2j","data-path":"src/pages/HomePage.tsx"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600","data-id":"lbzyydaib","data-path":"src/pages/HomePage.tsx",children:"Latest Insights"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-700 text-white mt-2 leading-tight","data-id":"vtbcr8hlv","data-path":"src/pages/HomePage.tsx",children:["Perspectives on ",c.jsx("em",{"data-id":"pyo7lik7y","data-path":"src/pages/HomePage.tsx",children:"Youth Growth"})]})]}),c.jsxs(Q,{to:"/blog",className:"mt-6 md:mt-0 inline-flex items-center gap-2 font-body text-amber-brand font-700 hover:text-amber-light transition-colors","data-id":"7j9tew7yf","data-path":"src/pages/HomePage.tsx",children:["View All Articles",c.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"1k5kzkstp","data-path":"src/pages/HomePage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M9 5l7 7-7 7","data-id":"hjfp8mvif","data-path":"src/pages/HomePage.tsx"})})]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6","data-id":"ehenkhi7b","data-path":"src/pages/HomePage.tsx",children:PT.map((e,t)=>c.jsxs("div",{className:"reveal card-lift rounded-2xl overflow-hidden group border border-white/10",style:{transitionDelay:`${t*.15}s`,background:"rgba(255,255,255,0.05)"},"data-id":"4ow5x7lp9","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"aspect-video overflow-hidden","data-id":"l3j66zjio","data-path":"src/pages/HomePage.tsx",children:c.jsx("img",{src:e.img,alt:e.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500","data-id":"ogpe682ui","data-path":"src/pages/HomePage.tsx"})}),c.jsxs("div",{className:"p-6","data-id":"d25aia562","data-path":"src/pages/HomePage.tsx",children:[c.jsx("span",{className:"font-body text-xs font-700 uppercase tracking-widest text-amber-brand mb-3 block","data-id":"4vqng74gq","data-path":"src/pages/HomePage.tsx",children:e.category}),c.jsx("h3",{className:"font-display text-lg font-700 text-white mb-3 leading-tight group-hover:text-amber-brand transition-colors","data-id":"c4mov6vts","data-path":"src/pages/HomePage.tsx",children:e.title}),c.jsx("p",{className:"font-body text-sm leading-relaxed",style:{color:"rgba(255,255,255,0.55)"},"data-id":"7hzyilbfc","data-path":"src/pages/HomePage.tsx",children:e.excerpt})]})]},e.title))})]})}),c.jsxs("section",{className:"py-28 px-4 relative overflow-hidden",style:{backgroundImage:"url(https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1400&q=80)",backgroundSize:"cover",backgroundPosition:"center"},"data-id":"9wcm46w9y","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"absolute inset-0",style:{background:"rgba(26,58,42,0.85)"},"data-id":"qi44ryr9o","data-path":"src/pages/HomePage.tsx"}),c.jsx("div",{className:"relative z-10 max-w-4xl mx-auto text-center","data-id":"wjbol1rbe","data-path":"src/pages/HomePage.tsx",children:c.jsxs("div",{className:"reveal","data-id":"u5sdmyuid","data-path":"src/pages/HomePage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"20bu6adbo","data-path":"src/pages/HomePage.tsx"}),c.jsxs("h2",{className:"font-display text-4xl md:text-6xl font-700 text-white mb-6 leading-tight","data-id":"r4h6rie6k","data-path":"src/pages/HomePage.tsx",children:["Be Part of a Young Person's",c.jsx("br",{"data-id":"t72xlh6dz","data-path":"src/pages/HomePage.tsx"}),c.jsx("em",{className:"gradient-text","data-id":"xmanhz0bn","data-path":"src/pages/HomePage.tsx",children:"Turning Point"})]}),c.jsx("p",{className:"font-body text-white/75 text-xl max-w-2xl mx-auto mb-10 leading-relaxed","data-id":"abzdtjo1d","data-path":"src/pages/HomePage.tsx",children:"Whether you mentor, volunteer, donate, or simply spread the word — every action creates a ripple of opportunity for a young person in our community."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center","data-id":"ubcw5p2ws","data-path":"src/pages/HomePage.tsx",children:[c.jsx(Q,{to:"/donate",className:"px-8 py-4 rounded-full bg-amber-brand text-white font-body font-700 text-lg hover:bg-amber-light transition-colors shadow-xl","data-id":"tokg7ti4g","data-path":"src/pages/HomePage.tsx",children:"Make a Donation"}),c.jsx(Q,{to:"/contact",className:"px-8 py-4 rounded-full border-2 border-white text-white font-body font-700 text-lg hover:bg-white/10 transition-colors","data-id":"w8tez4k1d","data-path":"src/pages/HomePage.tsx",children:"Volunteer With Us"})]})]})})]}),c.jsx(Or,{"data-id":"jko2kyiae","data-path":"src/pages/HomePage.tsx"})]})}function kT(){w.useEffect(()=>{const e=document.querySelectorAll(".reveal, .reveal-left, .reveal-right"),t=new IntersectionObserver(n=>n.forEach(r=>{r.isIntersecting&&r.target.classList.add("visible")}),{threshold:.1});return e.forEach(n=>t.observe(n)),()=>t.disconnect()},[])}const CT=[{id:"mentorship",badge:"Program 01",color:"#2E6B4A",img:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=900&q=80",title:"Future Leaders Mentorship Network",purpose:"Youth Mentorship & Positive Role Modeling",tagline:"Every young person deserves a trusted adult who believes in their potential.",overview:"Our flagship mentorship program pairs youth ages 10–18 with trained adult mentors from Sacramento's professional community. Through weekly one-on-one sessions and monthly group gatherings, young participants develop the confidence, vision, and accountability that transforms lives.",outcomes:["One-on-one mentorship with a trained, background-checked adult mentor","Monthly group sessions focused on leadership and goal-setting","Academic support and career exploration workshops","Public speaking and communication skill-building","Access to community events, job shadows, and scholarship guidance","Quarterly outdoor experiences that reinforce mentorship concepts"],impact:[{stat:"95%",label:"Report improved confidence"},{stat:"88%",label:"Improved school attendance"},{stat:"3:1",label:"Mentor-to-youth ratio"}],eligibility:"Youth ages 10–18 residing in Sacramento County. No prior experience required.",schedule:"Weekday evenings and Saturday mornings. Year-round enrollment available."},{id:"lifeskills",badge:"Program 02",color:"#1E4E7A",img:"https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=900&q=80",title:"Pathways to Positive Choices",purpose:"Character Development & Violence Prevention",tagline:"Equipping youth with the decision-making tools that open doors — and close risk.",overview:"This evidence-based curriculum combines classroom workshops, peer-group discussions, and hands-on learning to build the inner resources young people need to navigate challenges wisely. We address conflict resolution, personal responsibility, and self-advocacy — replacing reactive choices with intentional ones.",outcomes:["Eight-week structured curriculum on decision-making and self-regulation","Conflict resolution and de-escalation skill-building","Communication, negotiation, and interpersonal effectiveness training","Personal goal-setting and accountability systems","Guest speakers from law, healthcare, community leadership, and the arts","Safe space peer discussions facilitated by trained youth workers"],impact:[{stat:"82%",label:"Reduced conflict incidents"},{stat:"91%",label:"Improved communication skills"},{stat:"200+",label:"Youth enrolled annually"}],eligibility:"Youth ages 12–17. Referrals accepted from schools, counselors, and families.",schedule:"Eight-week cohorts offered three times per year. After-school and weekend formats available."},{id:"stewardship",badge:"Program 03",color:"#C8783A",img:"https://images.unsplash.com/photo-1536700503339-1e4b06520771?w=900&q=80",title:"Youth Environmental Stewardship Project",purpose:"Environmental Stewardship & Outdoor Leadership",tagline:"Where the natural world becomes a young person's most powerful classroom.",overview:"Through fishing education, conservation field experiences, and outdoor leadership challenges, youth discover that they are capable, responsible, and connected to something larger than themselves. This program uses the outdoors as a transformative learning environment — developing patience, teamwork, environmental awareness, and pride.",outcomes:["Fishing techniques and water safety certification","Environmental science and ecosystem health education","Conservation projects including waterway cleanups and habitat restoration","Outdoor leadership challenges: navigation, teamwork, problem-solving","California fishing license preparation and regulatory education","Community stewardship projects that connect youth to local ecosystems"],impact:[{stat:"400+",label:"Outdoor experiences delivered"},{stat:"78%",label:"Develop environmental stewardship values"},{stat:"15+",label:"Conservation sites engaged annually"}],eligibility:"Youth ages 8–18. No fishing experience required. All equipment provided.",schedule:"Monthly half-day and full-day outdoor sessions. Seasonal intensives during summer."}];function jT(){return kT(),c.jsxs("div",{className:"min-h-screen",style:{background:"var(--cream)"},"data-id":"hn4k1mlbh","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx(Dr,{"data-id":"d9n1e872k","data-path":"src/pages/ProgramsPage.tsx"}),c.jsxs("section",{className:"relative pt-40 pb-24 px-4 overflow-hidden",style:{backgroundImage:"url(https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1400&q=80)",backgroundSize:"cover",backgroundPosition:"center"},"data-id":"ef0y4ofae","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("div",{className:"absolute inset-0 hero-overlay","data-id":"1l44xd4k9","data-path":"src/pages/ProgramsPage.tsx"}),c.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto text-center","data-id":"4vtqvekpk","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600 mb-4 block animate-fade-in","data-id":"juh2p278g","data-path":"src/pages/ProgramsPage.tsx",children:"Our Programs"}),c.jsxs("h1",{className:"font-display text-5xl md:text-7xl font-800 text-white leading-tight mb-6 animate-fade-up","data-id":"1to1bdhg1","data-path":"src/pages/ProgramsPage.tsx",children:["Structured Paths to",c.jsx("br",{"data-id":"5r351cl80","data-path":"src/pages/ProgramsPage.tsx"}),c.jsx("em",{className:"gradient-text not-italic","data-id":"3w85tmri7","data-path":"src/pages/ProgramsPage.tsx",children:"Lasting Growth"})]}),c.jsx("p",{className:"font-body text-white/80 text-xl max-w-2xl mx-auto animate-fade-up delay-200","data-id":"72ek9rfue","data-path":"src/pages/ProgramsPage.tsx",children:"Three mission-aligned programs — each designed to develop a distinct dimension of a young person's character, capability, and future."})]})]}),CT.map((e,t)=>c.jsx("section",{id:e.id,className:`py-24 px-4 ${t%2===1?"bg-cream-dark":""}`,"data-id":"9dppj33c1","data-path":"src/pages/ProgramsPage.tsx",children:c.jsx("div",{className:"max-w-7xl mx-auto","data-id":"g2plpxzhq","data-path":"src/pages/ProgramsPage.tsx",children:c.jsxs("div",{className:`grid grid-cols-1 lg:grid-cols-2 gap-14 items-center ${t%2===1?"lg:flex-row-reverse":""}`,"data-id":"rhsfzsug8","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("div",{className:t%2===1?"reveal-right lg:order-2":"reveal-left","data-id":"6x83ee2i6","data-path":"src/pages/ProgramsPage.tsx",children:c.jsxs("div",{className:"relative rounded-3xl overflow-hidden shadow-2xl aspect-[4/3]","data-id":"2eaqbln55","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("img",{src:e.img,alt:e.title,className:"w-full h-full object-cover","data-id":"q4kssf88t","data-path":"src/pages/ProgramsPage.tsx"}),c.jsx("div",{className:"absolute top-6 left-6","data-id":"v3t0y0g5s","data-path":"src/pages/ProgramsPage.tsx",children:c.jsx("span",{className:"font-body text-white text-xs font-700 uppercase tracking-widest px-4 py-2 rounded-full",style:{background:e.color},"data-id":"0jw2k00ko","data-path":"src/pages/ProgramsPage.tsx",children:e.badge})}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-6",style:{background:`linear-gradient(to top, ${e.color}CC 0%, transparent 100%)`},"data-id":"s6zq26sc1","data-path":"src/pages/ProgramsPage.tsx",children:c.jsx("div",{className:"grid grid-cols-3 gap-4","data-id":"suk1hr0so","data-path":"src/pages/ProgramsPage.tsx",children:e.impact.map(n=>c.jsxs("div",{className:"text-center","data-id":"l1rqd8ih2","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("div",{className:"font-display text-2xl font-800 text-white","data-id":"i52xsq41x","data-path":"src/pages/ProgramsPage.tsx",children:n.stat}),c.jsx("div",{className:"font-body text-white/70 text-xs","data-id":"3gdt0vpu8","data-path":"src/pages/ProgramsPage.tsx",children:n.label})]},n.label))})})]})}),c.jsxs("div",{className:t%2===1?"reveal-left lg:order-1":"reveal-right","data-id":"kvx6prln9","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("div",{className:"w-16 h-1 rounded-full mb-4",style:{background:e.color},"data-id":"3zhe1nkeo","data-path":"src/pages/ProgramsPage.tsx"}),c.jsx("span",{className:"font-body text-xs font-700 uppercase tracking-widest px-3 py-1 rounded-full mb-4 inline-block",style:{background:e.color+"18",color:e.color},"data-id":"kfq8nlv8i","data-path":"src/pages/ProgramsPage.tsx",children:e.purpose}),c.jsx("h2",{className:"font-display text-3xl md:text-4xl font-700 text-forest mt-3 mb-3 leading-tight","data-id":"vraanplkv","data-path":"src/pages/ProgramsPage.tsx",children:e.title}),c.jsxs("p",{className:"font-display italic text-xl text-stone mb-5","data-id":"bv05e56xm","data-path":"src/pages/ProgramsPage.tsx",children:['"',e.tagline,'"']}),c.jsx("p",{className:"font-body text-stone leading-relaxed mb-7","data-id":"hg0hjj9fm","data-path":"src/pages/ProgramsPage.tsx",children:e.overview}),c.jsx("h3",{className:"font-display text-lg font-700 text-forest mb-4","data-id":"jge3pj0a5","data-path":"src/pages/ProgramsPage.tsx",children:"What Participants Experience"}),c.jsx("ul",{className:"space-y-2.5 mb-8","data-id":"5d8rfk6if","data-path":"src/pages/ProgramsPage.tsx",children:e.outcomes.map(n=>c.jsxs("li",{className:"flex items-start gap-3 font-body text-stone text-sm","data-id":"pi800ednx","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("span",{className:"w-5 h-5 rounded-full flex items-center justify-center shrink-0 mt-0.5",style:{background:e.color+"20"},"data-id":"p3qbmw6z2","data-path":"src/pages/ProgramsPage.tsx",children:c.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,style:{color:e.color},"data-id":"qml6calkg","data-path":"src/pages/ProgramsPage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7","data-id":"2xbeys5h2","data-path":"src/pages/ProgramsPage.tsx"})})}),n]},n))}),c.jsx("div",{className:"p-5 rounded-2xl mb-7 border",style:{background:e.color+"08",borderColor:e.color+"25"},"data-id":"b4hy77l0o","data-path":"src/pages/ProgramsPage.tsx",children:c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3","data-id":"w4adxgozc","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsxs("div",{"data-id":"5aazophu4","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("span",{className:"font-body text-xs uppercase tracking-widest font-700",style:{color:e.color},"data-id":"660lie4y0","data-path":"src/pages/ProgramsPage.tsx",children:"Eligibility"}),c.jsx("p",{className:"font-body text-stone text-sm mt-1","data-id":"dz42hzvsl","data-path":"src/pages/ProgramsPage.tsx",children:e.eligibility})]}),c.jsxs("div",{"data-id":"dd9owirm5","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("span",{className:"font-body text-xs uppercase tracking-widest font-700",style:{color:e.color},"data-id":"des162qt0","data-path":"src/pages/ProgramsPage.tsx",children:"Schedule"}),c.jsx("p",{className:"font-body text-stone text-sm mt-1","data-id":"ha8dmpvo5","data-path":"src/pages/ProgramsPage.tsx",children:e.schedule})]})]})}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4","data-id":"uao7q4t0n","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx(Q,{to:"/contact",className:"px-6 py-3 rounded-full text-white font-body font-700 text-sm hover:opacity-90 transition-opacity text-center",style:{background:e.color},"data-id":"okl8gj2fq","data-path":"src/pages/ProgramsPage.tsx",children:"Apply / Enroll"}),c.jsx(Q,{to:"/donate",className:"px-6 py-3 rounded-full font-body font-700 text-sm border-2 transition-colors text-center",style:{borderColor:e.color,color:e.color},"data-id":"lvhcnte6q","data-path":"src/pages/ProgramsPage.tsx",children:"Support This Program"})]})]})]})})},e.id)),c.jsx("section",{className:"py-20 px-4 bg-forest","data-id":"n9wsiei82","data-path":"src/pages/ProgramsPage.tsx",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center reveal","data-id":"3ejok5mod","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"bx366xp35","data-path":"src/pages/ProgramsPage.tsx"}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl font-700 text-white mb-5","data-id":"0gq2wpyi7","data-path":"src/pages/ProgramsPage.tsx",children:"Ready to Get Started?"}),c.jsx("p",{className:"font-body text-white/70 text-lg mb-8","data-id":"aq0poehqw","data-path":"src/pages/ProgramsPage.tsx",children:"Contact us to enroll a young person, become a mentor, or partner with our organization."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center","data-id":"zqcdmgaoc","data-path":"src/pages/ProgramsPage.tsx",children:[c.jsx(Q,{to:"/contact",className:"px-8 py-4 rounded-full bg-amber-brand text-white font-body font-700 text-lg hover:bg-amber-light transition-colors","data-id":"jyad6weru","data-path":"src/pages/ProgramsPage.tsx",children:"Contact Us to Enroll"}),c.jsx(Q,{to:"/donate",className:"px-8 py-4 rounded-full border-2 border-white text-white font-body font-700 text-lg hover:bg-white/10 transition-colors","data-id":"qxjuzbb3v","data-path":"src/pages/ProgramsPage.tsx",children:"Fund a Program"})]})]})}),c.jsx(Or,{"data-id":"jxdi5o1se","data-path":"src/pages/ProgramsPage.tsx"})]})}function ET(){w.useEffect(()=>{const e=document.querySelectorAll(".reveal, .reveal-left, .reveal-right"),t=new IntersectionObserver(n=>n.forEach(r=>{r.isIntersecting&&r.target.classList.add("visible")}),{threshold:.1});return e.forEach(n=>t.observe(n)),()=>t.disconnect()},[])}const TT=[{name:"Darnell Washington",role:"Executive Director",purpose:"Youth Mentorship",bio:"A former mentee-turned-leader with 15 years in youth development, Darnell built this organization from community conviction and lived experience.",img:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&q=80",color:"#2E6B4A"},{name:"Priya Nambiar",role:"Director of Programs",purpose:"Character Development",bio:"Priya brings 12 years designing evidence-based curriculum for youth serving organizations across California.",img:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=400&q=80",color:"#1E4E7A"},{name:"James Ortega",role:"Violence Prevention Specialist",purpose:"Violence Prevention",bio:"A certified conflict resolution trainer and community health advocate, James leads our Pathways to Positive Choices program.",img:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=400&q=80",color:"#C8783A"},{name:"Keisha Monroe",role:"Outdoor Education Coordinator",purpose:"Environmental Stewardship",bio:"A licensed fishing guide and conservation educator, Keisha has introduced over 500 youth to the wonders of California waterways.",img:"https://images.unsplash.com/photo-1531123897727-8f129e1688ce?w=400&q=80",color:"#1A3A2A"},{name:"Marcus Delgado",role:"Mentorship Program Manager",purpose:"Youth Mentorship",bio:"Marcus coordinates our mentor network — matching, training, and supporting over 80 adult volunteers each year.",img:"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=400&q=80",color:"#2E6B4A"},{name:"Tamara Ellis",role:"Community Partnerships Director",purpose:"All Four Pillars",bio:"Tamara cultivates relationships with schools, businesses, and government agencies to expand our reach and resources.",img:"https://images.unsplash.com/photo-1580489944761-15a19d654956?w=400&q=80",color:"#C8783A"}],NT=[{title:"Every Youth Has Potential",desc:"We see capability and possibility in every young person who walks through our door — not a problem to fix, but a future to nurture.",icon:"✨"},{title:"Mentorship Changes Outcomes",desc:"A single caring adult relationship can permanently redirect a young person's trajectory. We build those relationships with intention.",icon:"🤝"},{title:"Nature as Teacher",desc:"The outdoors strips away distraction and reveals character. We use this truth to build confidence, patience, and environmental respect.",icon:"🌿"},{title:"Community Responsibility",desc:"Youth thrive when families, organizations, and neighbors invest together. We build bridges, not silos.",icon:"🌍"}];function AT(){return ET(),c.jsxs("div",{className:"min-h-screen",style:{background:"var(--cream)"},children:[c.jsx(Dr,{}),c.jsxs("section",{className:"relative pt-40 pb-24 px-4",style:{backgroundImage:"url(https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1400&q=80)",backgroundSize:"cover",backgroundPosition:"center 60%"},children:[c.jsx("div",{className:"absolute inset-0 hero-overlay"}),c.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto text-center",children:[c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600 mb-4 block animate-fade-in",children:"Our Story"}),c.jsxs("h1",{className:"font-display text-5xl md:text-7xl font-800 text-white leading-tight mb-6 animate-fade-up",children:["We Believe in",c.jsx("br",{}),c.jsx("em",{className:"gradient-text not-italic",children:"Young People"})]}),c.jsx("p",{className:"font-body text-white/80 text-xl max-w-2xl mx-auto animate-fade-up delay-200",children:"Hooked on Fishing Not on Violence Foundation was built on a simple conviction: give young people meaningful experiences and caring guides, and they will thrive."})]})]}),c.jsx("section",{className:"py-24 px-4",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-14 items-center",children:[c.jsxs("div",{className:"reveal-left",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mb-4 rounded-full"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600",children:"Why We Exist"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-700 text-forest mt-2 mb-6 leading-tight",children:["Outdoor Experience as a Gateway to ",c.jsx("em",{children:"Positive Futures"})]}),c.jsx("p",{className:"font-body text-stone text-lg leading-relaxed mb-5",children:"Founded in Sacramento in 2016, Hooked on Fishing Not on Violence Foundation emerged from a community that recognized a gap: too many young people had energy, talent, and potential — but no structured outlet, no mentor, and no safe space to grow."}),c.jsx("p",{className:"font-body text-stone text-lg leading-relaxed mb-5",children:"We use fishing — not as an end goal, but as a vehicle. The patience of waiting for a catch teaches self-regulation. The discipline of conservation teaches responsibility. The presence of a mentor on the water teaches trust. And the experience of succeeding outdoors teaches young people that they are capable of anything they commit to."}),c.jsx("p",{className:"font-body text-stone text-lg leading-relaxed",children:"Today, our programs serve hundreds of youth across Sacramento County — mentoring, teaching life skills, preventing violence, and building leaders who give back to their communities."})]}),c.jsx("div",{className:"reveal-right",children:c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx("img",{src:"https://images.unsplash.com/photo-1472745942893-4b9f730c7668?w=500&q=80",alt:"Youth outdoor experience",className:"rounded-2xl shadow-lg w-full aspect-square object-cover"}),c.jsx("img",{src:"https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=500&q=80",alt:"Youth mentorship",className:"rounded-2xl shadow-lg w-full aspect-square object-cover mt-8"}),c.jsx("img",{src:"https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=500&q=80",alt:"Community gathering",className:"rounded-2xl shadow-lg w-full aspect-square object-cover -mt-8"}),c.jsx("img",{src:"https://images.unsplash.com/photo-1536700503339-1e4b06520771?w=500&q=80",alt:"Outdoor education",className:"rounded-2xl shadow-lg w-full aspect-square object-cover"})]})})]})})}),c.jsx("section",{className:"py-20 px-4 bg-forest",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center reveal",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-6 rounded-full"}),c.jsx("h2",{className:"font-display text-2xl font-600 text-amber-brand mb-4",children:"Our Mission"}),c.jsx("p",{className:"font-display italic text-2xl md:text-3xl text-white leading-relaxed",children:'"To engage youth in positive outdoor activities through fishing, mentoring, and educational programs that promote character development, life skills, academic achievement, environmental stewardship, and violence prevention, helping young people build productive and successful futures."'}),c.jsx("div",{className:"mt-8 font-body text-white/50 text-sm",children:"EIN: 81-4448442 · Sacramento, CA"})]})}),c.jsx("section",{className:"py-24 px-4 bg-cream-dark",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-16 reveal",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600",children:"What Drives Us"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-700 text-forest mt-2",children:["Four Operational ",c.jsx("em",{children:"Purposes"})]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[{num:"01",title:"Youth Mentorship & Positive Role Modeling",desc:"We connect youth with adult mentors who model integrity, vision, and possibility. These relationships provide the stable, trusting connections that research shows are the single most powerful predictor of positive youth outcomes.",color:"#2E6B4A",img:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=400&q=80"},{num:"02",title:"Character Development & Life Skills Training",desc:"Through structured curriculum and guided reflection, youth build the inner architecture of success: communication, accountability, goal-setting, resilience, and self-advocacy — tools they carry into every area of life.",color:"#1E4E7A",img:"https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=400&q=80"},{num:"03",title:"Violence Prevention Through Positive Engagement",desc:"Idle time and disconnection create fertile ground for harmful choices. We fill that space with purpose, community, and structure — proven tools that redirect young people toward constructive, life-affirming paths.",color:"#C8783A",img:"https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=400&q=80"},{num:"04",title:"Environmental Stewardship & Outdoor Leadership",desc:"The natural world teaches responsibility, patience, and systems thinking in ways no classroom can replicate. We leverage these experiences to build outdoor leaders who respect their environment and their communities.",color:"#1A3A2A",img:"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=400&q=80"}].map((e,t)=>c.jsxs("div",{className:"reveal card-lift bg-white rounded-2xl overflow-hidden shadow-md flex flex-col sm:flex-row",style:{transitionDelay:`${t*.1}s`},children:[c.jsx("div",{className:"sm:w-48 shrink-0 aspect-square sm:aspect-auto overflow-hidden",children:c.jsx("img",{src:e.img,alt:e.title,className:"w-full h-full object-cover"})}),c.jsxs("div",{className:"p-7 flex flex-col justify-center",children:[c.jsx("div",{className:"font-display text-3xl font-800 mb-2",style:{color:e.color+"30"},children:e.num}),c.jsx("h3",{className:"font-display text-xl font-700 mb-3 leading-tight",style:{color:e.color},children:e.title}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed",children:e.desc})]})]},e.num))})]})}),c.jsx("section",{className:"py-24 px-4",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-14 reveal",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600",children:"Our Values"}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl font-700 text-forest mt-2",children:"What We Stand For"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:NT.map((e,t)=>c.jsxs("div",{className:"reveal card-lift bg-white rounded-2xl p-8 shadow-sm border border-gray-100 text-center",style:{transitionDelay:`${t*.1}s`},children:[c.jsx("div",{className:"text-4xl mb-5",children:e.icon}),c.jsx("h3",{className:"font-display text-xl font-700 text-forest mb-3",children:e.title}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed",children:e.desc})]},e.title))})]})}),c.jsx("section",{className:"py-24 px-4 bg-cream-dark",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-14 reveal",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600",children:"Our People"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-700 text-forest mt-2",children:["The Team Behind ",c.jsx("em",{children:"Every Story"})]})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:TT.map((e,t)=>c.jsxs("div",{className:"reveal card-lift bg-white rounded-2xl overflow-hidden shadow-md",style:{transitionDelay:`${t*.1}s`},children:[c.jsx("div",{className:"h-1.5",style:{background:e.color}}),c.jsx("div",{className:"aspect-square overflow-hidden",children:c.jsx("img",{src:e.img,alt:e.name,className:"w-full h-full object-cover"})}),c.jsxs("div",{className:"p-6",children:[c.jsx("span",{className:"font-body text-xs font-700 uppercase tracking-widest px-3 py-1 rounded-full mb-3 inline-block",style:{background:e.color+"18",color:e.color},children:e.purpose}),c.jsx("h3",{className:"font-display text-xl font-700 text-forest mb-0.5",children:e.name}),c.jsx("p",{className:"font-body text-amber-brand text-sm font-600 mb-3",children:e.role}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed",children:e.bio})]})]},e.name))})]})}),c.jsx("section",{className:"py-20 px-4 bg-forest",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center reveal",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full"}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl font-700 text-white mb-5",children:"Join Our Mission"}),c.jsx("p",{className:"font-body text-white/70 text-lg mb-8",children:"Whether you volunteer your time, share your expertise, or make a financial gift — you become part of every young person's story."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[c.jsx(Q,{to:"/contact",className:"px-8 py-4 rounded-full bg-amber-brand text-white font-body font-700 text-lg hover:bg-amber-light transition-colors",children:"Volunteer or Partner"}),c.jsx(Q,{to:"/donate",className:"px-8 py-4 rounded-full border-2 border-white text-white font-body font-700 text-lg hover:bg-white/10 transition-colors",children:"Make a Gift"})]})]})}),c.jsx(Or,{})]})}function RT(){w.useEffect(()=>{const e=document.querySelectorAll(".reveal, .reveal-left, .reveal-right"),t=new IntersectionObserver(n=>n.forEach(r=>{r.isIntersecting&&r.target.classList.add("visible")}),{threshold:.1});return e.forEach(n=>t.observe(n)),()=>t.disconnect()},[])}function MT(e,t=2e3,n=!1){const[r,s]=w.useState(0);return w.useEffect(()=>{if(!n)return;let a=null;const o=i=>{a||(a=i);const l=Math.min((i-a)/t,1);s(Math.floor(l*e)),l<1&&requestAnimationFrame(o)};requestAnimationFrame(o)},[n,e,t]),r}function DT({value:e,suffix:t="",label:n}){const r=w.useRef(null),[s,a]=w.useState(!1),o=MT(e,2e3,s);return w.useEffect(()=>{const i=r.current;if(!i)return;const l=new IntersectionObserver(([u])=>{u.isIntersecting&&a(!0)},{threshold:.5});return l.observe(i),()=>l.disconnect()},[]),c.jsxs("div",{ref:r,className:"text-center p-6","data-id":"qgqgsygv6","data-path":"src/pages/ImpactPage.tsx",children:[c.jsxs("div",{className:"font-display text-5xl md:text-6xl font-800 gradient-text mb-2","data-id":"4zb2bbpaf","data-path":"src/pages/ImpactPage.tsx",children:[o.toLocaleString(),t]}),c.jsx("div",{className:"font-body text-white/65 text-sm uppercase tracking-widest","data-id":"8mg0igd1b","data-path":"src/pages/ImpactPage.tsx",children:n})]})}const OT=[{value:850,suffix:"+",label:"Youth Mentored"},{value:120,suffix:"+",label:"Leadership Workshops Delivered"},{value:3200,suffix:"+",label:"Volunteer Service Hours"},{value:40,suffix:"+",label:"Conservation Projects Led"},{value:94,suffix:"%",label:"Youth Reporting Improved Confidence"},{value:88,suffix:"%",label:"Improved School Attendance"},{value:28,suffix:"+",label:"Community Partnerships"},{value:200,suffix:"+",label:"Youth Advancing to Higher Education"}],LT=[{name:"Destiny R.",age:17,program:"Future Leaders Mentorship Network",purpose:"Youth Mentorship",color:"#2E6B4A",img:"https://images.unsplash.com/photo-1531123897727-8f129e1688ce?w=600&q=80",headline:"From Doubt to Determination",story:"When Destiny first came to us, she described herself as someone who 'didn't believe in the future.' Her mentor — a local nurse practitioner — met with her every week for two years, not to solve her problems, but to walk alongside her while she solved them herself.",outcome:"Destiny is now a certified nursing assistant and is enrolled in community college pursuing a degree in public health. She volunteers as a junior mentor in our Saturday program.",quote:"My mentor didn't fix me. She believed in me until I believed in myself."},{name:"Jaylen M.",age:15,program:"Pathways to Positive Choices",purpose:"Violence Prevention",color:"#1E4E7A",img:"https://images.unsplash.com/photo-1499996860823-5214fcc65f8f?w=600&q=80",headline:"Choosing a Different Path",story:"Jaylen entered our Pathways program through a school counselor referral after two suspensions in one semester. He was smart, frustrated, and felt invisible. The program didn't lecture him about consequences — it gave him a community that valued his intelligence and channeled his energy into leadership.",outcome:"Jaylen has had zero disciplinary incidents in 14 months. He now leads peer conflict mediation sessions and was selected to present at a Sacramento school board meeting on youth mental health.",quote:"I realized that choosing right isn't weakness. It takes more strength than anything else."},{name:"Amara T.",age:13,program:"Youth Environmental Stewardship Project",purpose:"Environmental Stewardship",color:"#C8783A",img:"https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=600&q=80",headline:"Nature Changed Everything",story:"Amara had never left her neighborhood. Her first trip to the American River — fishing rod in hand, stewardship coordinator by her side — opened something inside her. She became obsessed with ecosystems, conservation, and what it means to be responsible for the world around you.",outcome:"Amara started a recycling initiative at her school and was invited to speak at Sacramento's Earth Day youth summit. She plans to study environmental science.",quote:"When you take care of something living, you start taking better care of yourself too."}],IT=[{year:"2016",event:"Foundation established in Sacramento with 12 founding youth participants."},{year:"2017",event:"Future Leaders Mentorship Network launched with 20 mentor pairs."},{year:"2018",event:"Pathways to Positive Choices curriculum developed and piloted at 3 schools."},{year:"2019",event:"100th youth mentored. Youth Environmental Stewardship Project launched."},{year:"2020",event:"Virtual programming during pandemic reaches 200+ youth digitally."},{year:"2021",event:"Community Partnerships expand to 15+ Sacramento schools and organizations."},{year:"2022",event:"500th youth served milestone. Annual Conservation Day event established."},{year:"2023",event:"Violence Prevention program recognized by Sacramento County Health Department."},{year:"2024",event:"850+ youth mentored. 28+ community partnerships. Three full-time programs running."}];function FT(){return RT(),c.jsxs("div",{className:"min-h-screen",style:{background:"var(--cream)"},"data-id":"egew74nak","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx(Dr,{"data-id":"bvlamv4d2","data-path":"src/pages/ImpactPage.tsx"}),c.jsxs("section",{className:"relative pt-40 pb-24 px-4",style:{backgroundImage:"url(https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?w=1400&q=80)",backgroundSize:"cover",backgroundPosition:"center"},"data-id":"ujfgng6pq","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("div",{className:"absolute inset-0 hero-overlay","data-id":"c5f05lxin","data-path":"src/pages/ImpactPage.tsx"}),c.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto text-center","data-id":"iubtqnjig","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600 mb-4 block animate-fade-in","data-id":"wl54gf7hi","data-path":"src/pages/ImpactPage.tsx",children:"Our Impact"}),c.jsxs("h1",{className:"font-display text-5xl md:text-7xl font-800 text-white leading-tight mb-6 animate-fade-up","data-id":"bkirofgjz","data-path":"src/pages/ImpactPage.tsx",children:["Real Youth.",c.jsx("br",{"data-id":"tewjpitjt","data-path":"src/pages/ImpactPage.tsx"}),c.jsx("em",{className:"gradient-text not-italic","data-id":"31pdh5ips","data-path":"src/pages/ImpactPage.tsx",children:"Real Change."})]}),c.jsx("p",{className:"font-body text-white/80 text-xl max-w-2xl mx-auto animate-fade-up delay-200","data-id":"k5dvdiois","data-path":"src/pages/ImpactPage.tsx",children:"Every number here represents a young person who discovered their capability, claimed their future, and grew into something remarkable."})]})]}),c.jsx("section",{className:"bg-bark py-20 px-4","data-id":"1bsssairz","data-path":"src/pages/ImpactPage.tsx",children:c.jsx("div",{className:"max-w-6xl mx-auto","data-id":"5kzyxkena","data-path":"src/pages/ImpactPage.tsx",children:c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-0 divide-x divide-y divide-white/10","data-id":"w5ifxczqd","data-path":"src/pages/ImpactPage.tsx",children:OT.map(e=>c.jsx(DT,{value:e.value,suffix:e.suffix,label:e.label,"data-id":"e5zmzx625","data-path":"src/pages/ImpactPage.tsx"},e.label))})})}),c.jsx("section",{className:"py-24 px-4","data-id":"ixj70rw2z","data-path":"src/pages/ImpactPage.tsx",children:c.jsxs("div",{className:"max-w-7xl mx-auto","data-id":"qm72wbl4j","data-path":"src/pages/ImpactPage.tsx",children:[c.jsxs("div",{className:"text-center mb-16 reveal","data-id":"cffswu5tk","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"eh2xs6gkc","data-path":"src/pages/ImpactPage.tsx"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600","data-id":"oghkjs8ga","data-path":"src/pages/ImpactPage.tsx",children:"Stories of Growth"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-700 text-forest mt-2 mb-4","data-id":"pxodo7s83","data-path":"src/pages/ImpactPage.tsx",children:["The Faces Behind ",c.jsx("em",{"data-id":"ia0u60tnc","data-path":"src/pages/ImpactPage.tsx",children:"the Numbers"})]}),c.jsx("p",{className:"font-body text-stone max-w-xl mx-auto text-lg","data-id":"62295uzrn","data-path":"src/pages/ImpactPage.tsx",children:"These young people didn't overcome their challenges despite our programs. They overcame them because of the mentors, communities, and opportunities those programs provided."})]}),c.jsx("div",{className:"space-y-16","data-id":"y1jlhdbpt","data-path":"src/pages/ImpactPage.tsx",children:LT.map((e,t)=>c.jsxs("div",{className:"reveal grid grid-cols-1 lg:grid-cols-2 gap-12 items-center","data-id":"2kz6gsbn2","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("div",{className:t%2===1?"lg:order-2":"","data-id":"ovo2abxfs","data-path":"src/pages/ImpactPage.tsx",children:c.jsxs("div",{className:"relative rounded-3xl overflow-hidden shadow-2xl aspect-[4/3]","data-id":"rdv3c8me5","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("img",{src:e.img,alt:e.name,className:"w-full h-full object-cover","data-id":"m6gyj9qq6","data-path":"src/pages/ImpactPage.tsx"}),c.jsx("div",{className:"absolute top-6 left-6 px-4 py-2 rounded-full font-body text-white text-xs font-700 uppercase tracking-widest",style:{background:e.color},"data-id":"cvqv9w64j","data-path":"src/pages/ImpactPage.tsx",children:e.purpose}),c.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6",style:{background:`linear-gradient(to top, ${e.color}CC, transparent)`},"data-id":"h2rndfurq","data-path":"src/pages/ImpactPage.tsx",children:[c.jsxs("p",{className:"font-display text-white text-xl font-600","data-id":"qt00agecf","data-path":"src/pages/ImpactPage.tsx",children:[e.name,", Age ",e.age]}),c.jsx("p",{className:"font-body text-white/70 text-sm","data-id":"zmskxwy9b","data-path":"src/pages/ImpactPage.tsx",children:e.program})]})]})}),c.jsxs("div",{className:t%2===1?"lg:order-1":"","data-id":"oyvqws3zl","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("div",{className:"w-14 h-1 rounded-full mb-4",style:{background:e.color},"data-id":"xc6k2enr4","data-path":"src/pages/ImpactPage.tsx"}),c.jsx("h3",{className:"font-display text-3xl md:text-4xl font-700 text-forest mb-5 leading-tight","data-id":"lsdrpj3he","data-path":"src/pages/ImpactPage.tsx",children:e.headline}),c.jsx("p",{className:"font-body text-stone text-lg leading-relaxed mb-5","data-id":"88jyqqmxd","data-path":"src/pages/ImpactPage.tsx",children:e.story}),c.jsxs("div",{className:"border-l-4 pl-6 mb-5 italic font-display text-xl",style:{borderColor:e.color,color:e.color},"data-id":"b2ku00k1d","data-path":"src/pages/ImpactPage.tsx",children:['"',e.quote,'"']}),c.jsxs("div",{className:"p-5 rounded-2xl",style:{background:e.color+"10",border:`1px solid ${e.color}25`},"data-id":"ldj8mus2d","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("span",{className:"font-body text-xs uppercase tracking-widest font-700 block mb-2",style:{color:e.color},"data-id":"cd1y1rqjj","data-path":"src/pages/ImpactPage.tsx",children:"Outcome"}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed","data-id":"hcxlf93rn","data-path":"src/pages/ImpactPage.tsx",children:e.outcome})]})]})]},e.name))})]})}),c.jsx("section",{className:"py-24 px-4 bg-forest","data-id":"ymm9dz6zv","data-path":"src/pages/ImpactPage.tsx",children:c.jsxs("div",{className:"max-w-4xl mx-auto","data-id":"gire680xk","data-path":"src/pages/ImpactPage.tsx",children:[c.jsxs("div",{className:"text-center mb-14 reveal","data-id":"rwapv4fon","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"rwd2liuil","data-path":"src/pages/ImpactPage.tsx"}),c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600","data-id":"gt3nscuda","data-path":"src/pages/ImpactPage.tsx",children:"Our Journey"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl font-700 text-white mt-2","data-id":"5chpotxkd","data-path":"src/pages/ImpactPage.tsx",children:["Eight Years of ",c.jsx("em",{"data-id":"rnrkutjrl","data-path":"src/pages/ImpactPage.tsx",children:"Community Impact"})]})]}),c.jsxs("div",{className:"relative","data-id":"mlz3gmyj7","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("div",{className:"absolute left-8 top-0 bottom-0 w-0.5 bg-white/15","data-id":"269zaxlll","data-path":"src/pages/ImpactPage.tsx"}),c.jsx("div",{className:"space-y-8","data-id":"y10gwrd7m","data-path":"src/pages/ImpactPage.tsx",children:IT.map((e,t)=>c.jsxs("div",{className:"reveal flex gap-8 items-start",style:{transitionDelay:`${t*.08}s`},"data-id":"jrhptlsts","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("div",{className:"shrink-0 w-16 h-16 rounded-full flex items-center justify-center font-display font-800 text-sm z-10",style:{background:"var(--amber)",color:"white"},"data-id":"lg37qacdk","data-path":"src/pages/ImpactPage.tsx",children:e.year}),c.jsx("div",{className:"pt-3 pb-2","data-id":"b2oxunjao","data-path":"src/pages/ImpactPage.tsx",children:c.jsx("p",{className:"font-body text-white/80 text-base leading-relaxed","data-id":"at1v0ba6j","data-path":"src/pages/ImpactPage.tsx",children:e.event})})]},e.year))})]})]})}),c.jsx("section",{className:"py-20 px-4 bg-cream-dark","data-id":"rn9z6h7lm","data-path":"src/pages/ImpactPage.tsx",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center reveal","data-id":"mn5hri25u","data-path":"src/pages/ImpactPage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"sjyv5an58","data-path":"src/pages/ImpactPage.tsx"}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl font-700 text-forest mb-5","data-id":"et206o0cu","data-path":"src/pages/ImpactPage.tsx",children:"Add Your Chapter to Our Story"}),c.jsx("p",{className:"font-body text-stone text-lg mb-8","data-id":"zsa2dxi0q","data-path":"src/pages/ImpactPage.tsx",children:"Your donation directly funds the mentors, programs, and outdoor experiences that change young lives."}),c.jsx(Q,{to:"/donate",className:"inline-block px-8 py-4 rounded-full bg-amber-brand text-white font-body font-700 text-lg hover:bg-amber-light transition-colors shadow-lg","data-id":"x6lq2zy17","data-path":"src/pages/ImpactPage.tsx",children:"Make an Impact Today"})]})}),c.jsx(Or,{"data-id":"s7q83b3qr","data-path":"src/pages/ImpactPage.tsx"})]})}function _T(){w.useEffect(()=>{const e=document.querySelectorAll(".reveal, .reveal-left, .reveal-right"),t=new IntersectionObserver(n=>n.forEach(r=>{r.isIntersecting&&r.target.classList.add("visible")}),{threshold:.1});return e.forEach(n=>t.observe(n)),()=>t.disconnect()},[])}const VT=[{key:"all",label:"All Articles"},{key:"mentorship",label:"Youth Mentorship"},{key:"lifeskills",label:"Character & Life Skills"},{key:"prevention",label:"Violence Prevention"},{key:"environment",label:"Environmental Leadership"}],st=[{category:"mentorship",categoryLabel:"Youth Mentorship",color:"#2E6B4A",title:"Why Positive Role Models Change Everything for Young People",excerpt:"The presence of a caring mentor doesn't just improve grades — it reshapes how a young person sees their own future and what they believe they're capable of achieving.",img:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=600&q=80",read:"5 min read",date:"March 12, 2025"},{category:"lifeskills",categoryLabel:"Character & Life Skills",color:"#1E4E7A",title:"Teaching Responsibility Through Real Outdoor Experiences",excerpt:"When youth face the natural world with guidance, they develop accountability, patience, and pride that carries into every area of life — from school to relationships.",img:"https://images.unsplash.com/photo-1472745942893-4b9f730c7668?w=600&q=80",read:"7 min read",date:"February 28, 2025"},{category:"prevention",categoryLabel:"Violence Prevention",color:"#C8783A",title:"Creating Positive Alternatives: Community Engagement as Prevention",excerpt:"Meaningful, structured activities are among the most effective tools for steering youth away from harmful environments toward constructive, life-affirming paths.",img:"https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=600&q=80",read:"6 min read",date:"February 10, 2025"},{category:"environment",categoryLabel:"Environmental Leadership",color:"#1A3A2A",title:"Why Outdoor Education Builds the Next Generation of Responsible Leaders",excerpt:"Conservation isn't just an environmental concept. When young people learn to steward nature, they internalize the very same values that make them extraordinary community leaders.",img:"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=600&q=80",read:"8 min read",date:"January 22, 2025"},{category:"mentorship",categoryLabel:"Youth Mentorship",color:"#2E6B4A",title:"How Mentorship Builds Future Leaders: What the Research Shows",excerpt:"Decades of longitudinal research confirm what our mentors experience every day: a trusted adult relationship is the single most powerful predictor of positive youth outcomes.",img:"https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=600&q=80",read:"10 min read",date:"January 8, 2025"},{category:"lifeskills",categoryLabel:"Character & Life Skills",color:"#1E4E7A",title:"Life Skills That Help Young People Succeed — Beyond the Classroom",excerpt:"Communication, conflict resolution, goal-setting, and self-advocacy. These are the capabilities that open doors — and they can be taught, practiced, and mastered.",img:"https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=600&q=80",read:"6 min read",date:"December 15, 2024"},{category:"prevention",categoryLabel:"Violence Prevention",color:"#C8783A",title:"Structured Time, Meaningful Purpose: The Formula for Youth Safety",excerpt:"Idle time and disconnection create the conditions for harmful choices. Filling that space with purpose, community, and structured activity is prevention in its most effective form.",img:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?w=600&q=80",read:"5 min read",date:"December 2, 2024"},{category:"environment",categoryLabel:"Environmental Leadership",color:"#1A3A2A",title:"Teaching Conservation Through Hands-On Learning at the Water's Edge",excerpt:"Abstract environmental values become lived principles when young people wade into a river, identify species, restore habitat, and discover that their actions have real consequences.",img:"https://images.unsplash.com/photo-1536700503339-1e4b06520771?w=600&q=80",read:"7 min read",date:"November 18, 2024"}];function zT(){_T();const[e,t]=w.useState("all"),n=e==="all"?st:st.filter(r=>r.category===e);return c.jsxs("div",{className:"min-h-screen",style:{background:"var(--cream)"},"data-id":"d0sm4b6sk","data-path":"src/pages/BlogPage.tsx",children:[c.jsx(Dr,{"data-id":"pwweeondg","data-path":"src/pages/BlogPage.tsx"}),c.jsxs("section",{className:"relative pt-40 pb-24 px-4",style:{backgroundImage:"url(https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?w=1400&q=80)",backgroundSize:"cover",backgroundPosition:"center 40%"},"data-id":"rdtjmr7uu","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("div",{className:"absolute inset-0 hero-overlay","data-id":"3wkqcy7mq","data-path":"src/pages/BlogPage.tsx"}),c.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto text-center","data-id":"lvl4w2dji","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600 mb-4 block animate-fade-in","data-id":"wgmkgv4cz","data-path":"src/pages/BlogPage.tsx",children:"Blog & Resources"}),c.jsxs("h1",{className:"font-display text-5xl md:text-7xl font-800 text-white leading-tight mb-6 animate-fade-up","data-id":"lla721ylg","data-path":"src/pages/BlogPage.tsx",children:["Insights for Youth",c.jsx("br",{"data-id":"65ezbea1a","data-path":"src/pages/BlogPage.tsx"}),c.jsx("em",{className:"gradient-text not-italic","data-id":"kuxb2tzmt","data-path":"src/pages/BlogPage.tsx",children:"Advocates & Leaders"})]}),c.jsx("p",{className:"font-body text-white/80 text-xl max-w-2xl mx-auto animate-fade-up delay-200","data-id":"x516r7t0g","data-path":"src/pages/BlogPage.tsx",children:"Practical wisdom, motivational perspectives, and community stories across our four operational purposes."})]})]}),c.jsx("section",{className:"py-10 px-4 bg-white border-b border-gray-100 sticky top-20 z-40","data-id":"gvjr2saui","data-path":"src/pages/BlogPage.tsx",children:c.jsx("div",{className:"max-w-7xl mx-auto flex flex-wrap gap-3 justify-center","data-id":"ibdluff40","data-path":"src/pages/BlogPage.tsx",children:VT.map(r=>c.jsx("button",{onClick:()=>t(r.key),className:`px-5 py-2.5 rounded-full font-body text-sm font-700 transition-all ${e===r.key?"bg-forest text-white shadow-md":"bg-cream-dark text-stone hover:bg-forest hover:text-white"}`,"data-id":"ve1jg05e0","data-path":"src/pages/BlogPage.tsx",children:r.label},r.key))})}),c.jsx("section",{className:"py-20 px-4","data-id":"5mlamib41","data-path":"src/pages/BlogPage.tsx",children:c.jsxs("div",{className:"max-w-7xl mx-auto","data-id":"ncnx344pj","data-path":"src/pages/BlogPage.tsx",children:[e==="all"&&c.jsx("div",{className:"reveal mb-12","data-id":"db1v08f5w","data-path":"src/pages/BlogPage.tsx",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 rounded-3xl overflow-hidden shadow-xl bg-white","data-id":"qrlmdlmyi","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("div",{className:"aspect-video lg:aspect-auto overflow-hidden","data-id":"xlbobbuqa","data-path":"src/pages/BlogPage.tsx",children:c.jsx("img",{src:st[0].img,alt:st[0].title,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500","data-id":"nsjs1cne2","data-path":"src/pages/BlogPage.tsx"})}),c.jsxs("div",{className:"p-10 flex flex-col justify-center","data-id":"myn4i6r0f","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("span",{className:"font-body text-xs font-700 uppercase tracking-widest px-3 py-1 rounded-full inline-block w-fit mb-4",style:{background:st[0].color+"15",color:st[0].color},"data-id":"5ovhapedp","data-path":"src/pages/BlogPage.tsx",children:st[0].categoryLabel}),c.jsx("h2",{className:"font-display text-3xl md:text-4xl font-700 text-forest mb-4 leading-tight","data-id":"485hq04q1","data-path":"src/pages/BlogPage.tsx",children:st[0].title}),c.jsx("p",{className:"font-body text-stone text-lg leading-relaxed mb-6","data-id":"znf160qyl","data-path":"src/pages/BlogPage.tsx",children:st[0].excerpt}),c.jsxs("div",{className:"flex items-center gap-4 text-stone/60 font-body text-sm mb-6","data-id":"0aqsojalu","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("span",{"data-id":"t85vm4m1r","data-path":"src/pages/BlogPage.tsx",children:st[0].date}),c.jsx("span",{"data-id":"fp6xontyk","data-path":"src/pages/BlogPage.tsx",children:"·"}),c.jsx("span",{"data-id":"kflah1fch","data-path":"src/pages/BlogPage.tsx",children:st[0].read})]}),c.jsxs("button",{className:"inline-flex items-center gap-2 font-body font-700 text-sm",style:{color:st[0].color},"data-id":"o7iwsq6ls","data-path":"src/pages/BlogPage.tsx",children:["Read Article",c.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"q893jp7sb","data-path":"src/pages/BlogPage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M9 5l7 7-7 7","data-id":"27yxbbkrn","data-path":"src/pages/BlogPage.tsx"})})]})]})]})}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8","data-id":"a7xmf1k8p","data-path":"src/pages/BlogPage.tsx",children:(e==="all"?n.slice(1):n).map((r,s)=>c.jsxs("div",{className:"reveal card-lift bg-white rounded-2xl overflow-hidden shadow-md group",style:{transitionDelay:`${s*.1}s`},"data-id":"fm094sniu","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("div",{className:"aspect-video overflow-hidden","data-id":"ixh422x8i","data-path":"src/pages/BlogPage.tsx",children:c.jsx("img",{src:r.img,alt:r.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500","data-id":"hvdfydff1","data-path":"src/pages/BlogPage.tsx"})}),c.jsxs("div",{className:"p-6","data-id":"c8eqp26hw","data-path":"src/pages/BlogPage.tsx",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3","data-id":"woc4u49gd","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("span",{className:"font-body text-xs font-700 uppercase tracking-widest px-3 py-1 rounded-full",style:{background:r.color+"15",color:r.color},"data-id":"kdqdr5kba","data-path":"src/pages/BlogPage.tsx",children:r.categoryLabel}),c.jsx("span",{className:"font-body text-stone/50 text-xs","data-id":"t9nqw93tw","data-path":"src/pages/BlogPage.tsx",children:r.read})]}),c.jsx("h3",{className:"font-display text-xl font-700 text-forest mb-3 leading-tight group-hover:text-canopy transition-colors","data-id":"0a4unzr7q","data-path":"src/pages/BlogPage.tsx",children:r.title}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed mb-4","data-id":"dh3edxtlq","data-path":"src/pages/BlogPage.tsx",children:r.excerpt}),c.jsxs("div",{className:"flex items-center justify-between","data-id":"nuo94znkm","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("span",{className:"font-body text-stone/50 text-xs","data-id":"ayz2w0le7","data-path":"src/pages/BlogPage.tsx",children:r.date}),c.jsxs("button",{className:"font-body text-xs font-700 flex items-center gap-1 hover:gap-2 transition-all",style:{color:r.color},"data-id":"rgyt12elu","data-path":"src/pages/BlogPage.tsx",children:["Read",c.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"sc4qlxicg","data-path":"src/pages/BlogPage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M9 5l7 7-7 7","data-id":"pqggz6zrc","data-path":"src/pages/BlogPage.tsx"})})]})]})]})]},r.title))})]})}),c.jsx("section",{className:"py-20 px-4 bg-forest","data-id":"3aub73xkp","data-path":"src/pages/BlogPage.tsx",children:c.jsxs("div",{className:"max-w-2xl mx-auto text-center reveal","data-id":"flc1vozvc","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"voglkanmk","data-path":"src/pages/BlogPage.tsx"}),c.jsx("h2",{className:"font-display text-4xl font-700 text-white mb-4","data-id":"07f9kab6e","data-path":"src/pages/BlogPage.tsx",children:"Stay Informed"}),c.jsx("p",{className:"font-body text-white/70 text-lg mb-8","data-id":"mkw4ofeby","data-path":"src/pages/BlogPage.tsx",children:"Get our latest stories, program updates, and youth development insights delivered to your inbox."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3","data-id":"y5irovy5m","data-path":"src/pages/BlogPage.tsx",children:[c.jsx("input",{type:"email",placeholder:"Your email address",className:"flex-1 px-6 py-4 rounded-full bg-white/10 border border-white/20 text-white placeholder-white/40 font-body focus:bg-white/15 outline-none","data-id":"vdgkoahae","data-path":"src/pages/BlogPage.tsx"}),c.jsx("button",{className:"px-8 py-4 rounded-full bg-amber-brand text-white font-body font-700 hover:bg-amber-light transition-colors whitespace-nowrap","data-id":"amiwtt5rk","data-path":"src/pages/BlogPage.tsx",children:"Subscribe"})]})]})}),c.jsx(Or,{"data-id":"dbhatth0r","data-path":"src/pages/BlogPage.tsx"})]})}function BT(){w.useEffect(()=>{const e=document.querySelectorAll(".reveal, .reveal-left, .reveal-right"),t=new IntersectionObserver(n=>n.forEach(r=>{r.isIntersecting&&r.target.classList.add("visible")}),{threshold:.1});return e.forEach(n=>t.observe(n)),()=>t.disconnect()},[])}const HT=[{amount:25,label:"Supporter",color:"#2E6B4A",impact:"Provides fishing equipment and safety gear for one youth participant for an outdoor session.",outcomes:["One youth geared for their first outdoor experience","Introduction to environmental stewardship","Foundation for confidence and new skill development"]},{amount:100,label:"Mentor Champion",color:"#1E4E7A",featured:!0,impact:"Sponsors one month of dedicated mentorship sessions for a young person in our Future Leaders program.",outcomes:["Four one-on-one mentorship sessions","Goal-setting workshop and academic support","Access to community leadership events"]},{amount:250,label:"Program Sponsor",color:"#C8783A",impact:"Funds a full cohort session of our Pathways to Positive Choices life skills curriculum for 8 participants.",outcomes:["Eight youth complete a life skills workshop","Conflict resolution and decision-making training","Peer leadership development and community support"]},{amount:1e3,label:"Youth Transformation Partner",color:"#1A3A2A",impact:"Underwrites a full month of programming across all three programs — touching the lives of 20+ youth participants.",outcomes:["20+ youth served across all three programs","Mentorship, life skills, and outdoor education combined","Named recognition in our annual report"]}],$T=[{quote:"I watched my grandson go from withdrawn and angry to confident and compassionate. This organization gave him something no school program could — a mentor who showed up consistently.",name:"Gloria T.",role:"Grandmother of a Program Participant"},{quote:"As a donor, I want to know my money creates real, lasting change — not just numbers. HOFNOV Foundation proves outcomes with stories and data. That trust is everything.",name:"Michael B.",role:"Annual Donor Since 2020"},{quote:"Partnering with this organization was one of the best decisions our company made. The youth they develop are future employees, neighbors, and leaders. Investing here invests in Sacramento.",name:"Sandra K.",role:"Corporate Partner Representative"}];function UT(){BT();const[e,t]=w.useState(100),[n,r]=w.useState(""),[s,a]=w.useState("monthly"),o=n?parseInt(n)||0:e;return c.jsxs("div",{className:"min-h-screen",style:{background:"var(--cream)"},"data-id":"o7cafqe2x","data-path":"src/pages/DonatePage.tsx",children:[c.jsx(Dr,{"data-id":"jzjzxtd5l","data-path":"src/pages/DonatePage.tsx"}),c.jsxs("section",{className:"relative pt-40 pb-24 px-4",style:{backgroundImage:"url(https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1400&q=80)",backgroundSize:"cover",backgroundPosition:"center 40%"},"data-id":"lcud6khmf","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("div",{className:"absolute inset-0 hero-overlay","data-id":"fgsu6klei","data-path":"src/pages/DonatePage.tsx"}),c.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto text-center","data-id":"yb7uczipe","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600 mb-4 block animate-fade-in","data-id":"wxe0t3hkf","data-path":"src/pages/DonatePage.tsx",children:"Make a Gift"}),c.jsxs("h1",{className:"font-display text-5xl md:text-7xl font-800 text-white leading-tight mb-6 animate-fade-up","data-id":"yydmdswr0","data-path":"src/pages/DonatePage.tsx",children:["Your Donation",c.jsx("br",{"data-id":"e6k0zjefy","data-path":"src/pages/DonatePage.tsx"}),c.jsx("em",{className:"gradient-text not-italic","data-id":"y1gusd35d","data-path":"src/pages/DonatePage.tsx",children:"Changes a Life"})]}),c.jsx("p",{className:"font-body text-white/80 text-xl max-w-2xl mx-auto animate-fade-up delay-200","data-id":"5sftfjg1o","data-path":"src/pages/DonatePage.tsx",children:"Every dollar you give directly funds mentorship sessions, life skills workshops, and outdoor experiences that build young leaders in Sacramento."})]})]}),c.jsx("section",{className:"py-24 px-4","data-id":"o3fdmph9b","data-path":"src/pages/DonatePage.tsx",children:c.jsx("div",{className:"max-w-5xl mx-auto","data-id":"6pjt0lese","data-path":"src/pages/DonatePage.tsx",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-10 items-start","data-id":"34885uc0h","data-path":"src/pages/DonatePage.tsx",children:[c.jsxs("div",{className:"lg:col-span-3 bg-white rounded-3xl shadow-xl p-8 reveal-left","data-id":"rghc35g17","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("h2",{className:"font-display text-3xl font-700 text-forest mb-2","data-id":"fmj6tdrq5","data-path":"src/pages/DonatePage.tsx",children:"Choose Your Impact"}),c.jsx("p",{className:"font-body text-stone text-sm mb-8","data-id":"p0i4444ud","data-path":"src/pages/DonatePage.tsx",children:"All donations are tax-deductible. EIN: 81-4448442"}),c.jsx("div",{className:"flex gap-2 p-1.5 bg-cream-dark rounded-full mb-8","data-id":"goih49wjd","data-path":"src/pages/DonatePage.tsx",children:["monthly","one-time"].map(i=>c.jsx("button",{onClick:()=>a(i),className:`flex-1 py-2.5 rounded-full font-body text-sm font-700 capitalize transition-all ${s===i?"bg-forest text-white shadow-md":"text-stone hover:text-forest"}`,"data-id":"fx9l3o6lr","data-path":"src/pages/DonatePage.tsx",children:i==="monthly"?"Monthly Giving":"One-Time Gift"},i))}),c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-6","data-id":"cqgbenddf","data-path":"src/pages/DonatePage.tsx",children:[25,100,250,1e3].map(i=>c.jsxs("button",{onClick:()=>{t(i),r("")},className:`py-4 rounded-2xl font-display font-700 text-xl border-2 transition-all ${e===i&&!n?"bg-forest text-white border-forest shadow-lg":"bg-cream-dark text-forest border-transparent hover:border-forest"}`,"data-id":"5qni9u1ne","data-path":"src/pages/DonatePage.tsx",children:["$",i]},i))}),c.jsxs("div",{className:"relative mb-8","data-id":"73hx49k21","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("span",{className:"absolute left-5 top-1/2 -translate-y-1/2 font-display text-2xl text-stone/50 font-700","data-id":"mxc8kfy0j","data-path":"src/pages/DonatePage.tsx",children:"$"}),c.jsx("input",{type:"number",value:n,onChange:i=>r(i.target.value),placeholder:"Custom amount",className:"w-full pl-10 pr-5 py-4 rounded-2xl border-2 border-cream-dark bg-cream-dark font-display text-2xl font-700 text-forest placeholder-stone/30 focus:border-forest outline-none transition-colors","data-id":"tusnbaepq","data-path":"src/pages/DonatePage.tsx"})]}),o>0&&c.jsxs("div",{className:"p-5 rounded-2xl mb-8 bg-forest/5 border border-forest/15","data-id":"c1uqsy2a8","data-path":"src/pages/DonatePage.tsx",children:[c.jsxs("p",{className:"font-body text-forest text-sm font-700 mb-1","data-id":"mb3rcf74b","data-path":"src/pages/DonatePage.tsx",children:["Your $",o,s==="monthly"?"/month":""," gift:"]}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed","data-id":"9xcqgq8ui","data-path":"src/pages/DonatePage.tsx",children:o>=1e3?"Underwrites 20+ youth across all three programs for a full month of mentorship, life skills, and outdoor leadership.":o>=250?"Funds a full Pathways to Positive Choices workshop session for 8 youth participants.":o>=100?"Sponsors one month of mentorship for a youth in the Future Leaders program.":"Provides fishing equipment and outdoor gear for a youth participant's first experience."})]}),c.jsxs("div",{className:"space-y-4 mb-6","data-id":"xkuwv6dsq","data-path":"src/pages/DonatePage.tsx",children:[c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4","data-id":"nrs5pzxly","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("input",{type:"text",placeholder:"First name",className:"w-full px-5 py-3.5 rounded-xl bg-cream-dark border border-transparent focus:border-forest font-body text-stone outline-none transition-colors","data-id":"rerqw7qi2","data-path":"src/pages/DonatePage.tsx"}),c.jsx("input",{type:"text",placeholder:"Last name",className:"w-full px-5 py-3.5 rounded-xl bg-cream-dark border border-transparent focus:border-forest font-body text-stone outline-none transition-colors","data-id":"67hkc1rlg","data-path":"src/pages/DonatePage.tsx"})]}),c.jsx("input",{type:"email",placeholder:"Email address",className:"w-full px-5 py-3.5 rounded-xl bg-cream-dark border border-transparent focus:border-forest font-body text-stone outline-none transition-colors","data-id":"r2kut15np","data-path":"src/pages/DonatePage.tsx"})]}),c.jsxs("button",{className:"w-full py-5 rounded-full bg-amber-brand text-white font-body font-700 text-lg hover:bg-amber-light transition-colors shadow-xl","data-id":"895nbvkof","data-path":"src/pages/DonatePage.tsx",children:["Donate $",o||"--",s==="monthly"?"/Month":""]}),c.jsx("p",{className:"font-body text-stone/50 text-xs text-center mt-4","data-id":"1qyz1fazw","data-path":"src/pages/DonatePage.tsx",children:"Secure checkout · 100% of your donation supports programs"})]}),c.jsx("div",{className:"lg:col-span-2 space-y-6","data-id":"nw3vyvc64","data-path":"src/pages/DonatePage.tsx",children:HT.map(i=>c.jsxs("div",{className:`reveal card-lift rounded-2xl p-6 border-2 cursor-pointer transition-all ${(n?parseInt(n):e)===i.amount?"shadow-lg":"bg-white border-gray-100 hover:border-opacity-50"}`,style:(n?parseInt(n):e)===i.amount?{background:i.color+"08",borderColor:i.color}:{},onClick:()=>{t(i.amount),r("")},"data-id":"t5vhwykf2","data-path":"src/pages/DonatePage.tsx",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2","data-id":"l21d19xqn","data-path":"src/pages/DonatePage.tsx",children:[c.jsxs("span",{className:"font-display text-2xl font-800",style:{color:i.color},"data-id":"ouxgiyite","data-path":"src/pages/DonatePage.tsx",children:["$",i.amount]}),c.jsx("span",{className:"font-body text-xs font-700 uppercase tracking-widest px-3 py-1 rounded-full",style:{background:i.color+"15",color:i.color},"data-id":"9h21t8wu8","data-path":"src/pages/DonatePage.tsx",children:i.label})]}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed","data-id":"ffbduf7yi","data-path":"src/pages/DonatePage.tsx",children:i.impact})]},i.amount))})]})})}),c.jsx("section",{className:"py-24 px-4 bg-forest","data-id":"xdj2nvhhm","data-path":"src/pages/DonatePage.tsx",children:c.jsxs("div",{className:"max-w-7xl mx-auto","data-id":"ito3z18nr","data-path":"src/pages/DonatePage.tsx",children:[c.jsxs("div",{className:"text-center mb-12 reveal","data-id":"5pskgpws4","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"3vf0j6jdy","data-path":"src/pages/DonatePage.tsx"}),c.jsx("h2",{className:"font-display text-4xl font-700 text-white","data-id":"rt9zl6suf","data-path":"src/pages/DonatePage.tsx",children:"Why Donors Give"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6","data-id":"idgcqlupw","data-path":"src/pages/DonatePage.tsx",children:$T.map((i,l)=>c.jsxs("div",{className:"reveal bg-white/5 border border-white/10 rounded-2xl p-8",style:{transitionDelay:`${l*.1}s`},"data-id":"9n2ixbaf2","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("div",{className:"text-amber-brand text-4xl font-display mb-4","data-id":"mscq7n7l0","data-path":"src/pages/DonatePage.tsx",children:'"'}),c.jsx("p",{className:"font-body text-white/80 text-base leading-relaxed mb-6 italic","data-id":"pkjg1m159","data-path":"src/pages/DonatePage.tsx",children:i.quote}),c.jsxs("div",{"data-id":"w9ij7ilpx","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("p",{className:"font-display font-700 text-white","data-id":"93aa7r2fc","data-path":"src/pages/DonatePage.tsx",children:i.name}),c.jsx("p",{className:"font-body text-amber-brand text-sm","data-id":"ror2uuk1g","data-path":"src/pages/DonatePage.tsx",children:i.role})]})]},i.name))})]})}),c.jsx("section",{className:"py-20 px-4 bg-cream-dark","data-id":"42edwyudb","data-path":"src/pages/DonatePage.tsx",children:c.jsxs("div",{className:"max-w-4xl mx-auto","data-id":"r6mwiq0oi","data-path":"src/pages/DonatePage.tsx",children:[c.jsxs("div",{className:"text-center mb-12 reveal","data-id":"bf07hl8wn","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mx-auto mb-4 rounded-full","data-id":"a2c87lbdn","data-path":"src/pages/DonatePage.tsx"}),c.jsx("h2",{className:"font-display text-4xl font-700 text-forest","data-id":"wuhd9mqsh","data-path":"src/pages/DonatePage.tsx",children:"Other Ways to Support"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6","data-id":"dds50sy5a","data-path":"src/pages/DonatePage.tsx",children:[{title:"Volunteer Your Time",desc:"Become a mentor, workshop facilitator, or outdoor guide. Your expertise directly shapes young lives.",cta:"Volunteer",href:"/contact",color:"#2E6B4A"},{title:"Corporate Partnership",desc:"Align your company with meaningful community impact. We offer custom partnership packages for businesses.",cta:"Partner With Us",href:"/contact",color:"#1E4E7A"},{title:"In-Kind Donations",desc:"Fishing equipment, outdoor gear, workshop supplies, and professional services are always needed.",cta:"Learn More",href:"/contact",color:"#C8783A"}].map((i,l)=>c.jsxs("div",{className:"reveal card-lift bg-white rounded-2xl p-7 shadow-sm border border-gray-100 text-center",style:{transitionDelay:`${l*.1}s`},"data-id":"abnrnzdhg","data-path":"src/pages/DonatePage.tsx",children:[c.jsx("h3",{className:"font-display text-xl font-700 mb-3",style:{color:i.color},"data-id":"bcnsludzn","data-path":"src/pages/DonatePage.tsx",children:i.title}),c.jsx("p",{className:"font-body text-stone text-sm leading-relaxed mb-6","data-id":"zet7j99nv","data-path":"src/pages/DonatePage.tsx",children:i.desc}),c.jsx(Q,{to:i.href,className:"inline-block px-6 py-2.5 rounded-full font-body text-sm font-700 text-white transition-opacity hover:opacity-80",style:{background:i.color},"data-id":"v46ivjwcm","data-path":"src/pages/DonatePage.tsx",children:i.cta})]},i.title))})]})}),c.jsx(Or,{"data-id":"8wdoxgbee","data-path":"src/pages/DonatePage.tsx"})]})}function WT(){w.useEffect(()=>{const e=document.querySelectorAll(".reveal, .reveal-left, .reveal-right"),t=new IntersectionObserver(n=>n.forEach(r=>{r.isIntersecting&&r.target.classList.add("visible")}),{threshold:.1});return e.forEach(n=>t.observe(n)),()=>t.disconnect()},[])}function qT(){WT();const{toast:e}=rv(),[t,n]=w.useState({name:"",email:"",phone:"",interest:"",message:""}),[r,s]=w.useState(!1),a=async o=>{if(o.preventDefault(),!t.name||!t.email||!t.message){e({title:"Required fields missing",description:"Please complete all required fields.",variant:"destructive"});return}s(!0),await new Promise(i=>setTimeout(i,1e3)),s(!1),e({title:"Message received!",description:"We'll be in touch within 2 business days. Thank you for connecting with us."}),n({name:"",email:"",phone:"",interest:"",message:""})};return c.jsxs("div",{className:"min-h-screen",style:{background:"var(--cream)"},"data-id":"eohj02vx5","data-path":"src/pages/ContactPage.tsx",children:[c.jsx(Dr,{"data-id":"kgntqadl8","data-path":"src/pages/ContactPage.tsx"}),c.jsxs("section",{className:"relative pt-40 pb-24 px-4",style:{backgroundImage:"url(https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1400&q=80)",backgroundSize:"cover",backgroundPosition:"center"},"data-id":"3lsxb96r1","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("div",{className:"absolute inset-0 hero-overlay","data-id":"0qdl9m0ri","data-path":"src/pages/ContactPage.tsx"}),c.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto text-center","data-id":"f36goa9pi","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("span",{className:"font-body text-amber-brand text-sm tracking-widest uppercase font-600 mb-4 block animate-fade-in","data-id":"uazzag30l","data-path":"src/pages/ContactPage.tsx",children:"Get in Touch"}),c.jsxs("h1",{className:"font-display text-5xl md:text-7xl font-800 text-white leading-tight mb-6 animate-fade-up","data-id":"zmhdhqc9t","data-path":"src/pages/ContactPage.tsx",children:["Let's Build",c.jsx("br",{"data-id":"wy9syi281","data-path":"src/pages/ContactPage.tsx"}),c.jsx("em",{className:"gradient-text not-italic","data-id":"r4w7bmus8","data-path":"src/pages/ContactPage.tsx",children:"Something Together"})]}),c.jsx("p",{className:"font-body text-white/80 text-xl max-w-2xl mx-auto animate-fade-up delay-200","data-id":"3nbr7c6gp","data-path":"src/pages/ContactPage.tsx",children:"Whether you're enrolling a young person, interested in volunteering, or exploring a partnership — we want to hear from you."})]})]}),c.jsx("section",{className:"py-24 px-4","data-id":"fu76eqanw","data-path":"src/pages/ContactPage.tsx",children:c.jsx("div",{className:"max-w-7xl mx-auto","data-id":"k35y1vbh0","data-path":"src/pages/ContactPage.tsx",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-12","data-id":"duyj2cqwh","data-path":"src/pages/ContactPage.tsx",children:[c.jsxs("div",{className:"lg:col-span-3 reveal-left","data-id":"bgmfw3j2d","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("div",{className:"w-16 h-1 bg-amber-brand mb-4 rounded-full","data-id":"jah8a8qnu","data-path":"src/pages/ContactPage.tsx"}),c.jsx("h2",{className:"font-display text-4xl font-700 text-forest mb-2","data-id":"omhzrj5fu","data-path":"src/pages/ContactPage.tsx",children:"Send Us a Message"}),c.jsx("p",{className:"font-body text-stone mb-8","data-id":"ihx5w5a77","data-path":"src/pages/ContactPage.tsx",children:"We respond to all inquiries within 2 business days."}),c.jsxs("form",{onSubmit:a,className:"space-y-5","data-id":"v5dpqqmgh","data-path":"src/pages/ContactPage.tsx",children:[c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5","data-id":"7vekccwus","data-path":"src/pages/ContactPage.tsx",children:[c.jsxs("div",{"data-id":"h549z44m3","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("label",{className:"font-body text-xs font-700 uppercase tracking-widest text-stone/70 block mb-2","data-id":"4t70g4xkp","data-path":"src/pages/ContactPage.tsx",children:"Full Name *"}),c.jsx("input",{type:"text",value:t.name,onChange:o=>n({...t,name:o.target.value}),placeholder:"Your full name",className:"w-full px-5 py-4 rounded-xl bg-white border-2 border-gray-100 font-body text-stone focus:border-forest outline-none transition-colors shadow-sm","data-id":"ofmzzh16d","data-path":"src/pages/ContactPage.tsx"})]}),c.jsxs("div",{"data-id":"c3v93a1dw","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("label",{className:"font-body text-xs font-700 uppercase tracking-widest text-stone/70 block mb-2","data-id":"bbcccwyp3","data-path":"src/pages/ContactPage.tsx",children:"Email Address *"}),c.jsx("input",{type:"email",value:t.email,onChange:o=>n({...t,email:o.target.value}),placeholder:"your@email.com",className:"w-full px-5 py-4 rounded-xl bg-white border-2 border-gray-100 font-body text-stone focus:border-forest outline-none transition-colors shadow-sm","data-id":"cjxoojdeg","data-path":"src/pages/ContactPage.tsx"})]})]}),c.jsxs("div",{"data-id":"oj45elc86","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("label",{className:"font-body text-xs font-700 uppercase tracking-widest text-stone/70 block mb-2","data-id":"rvno42ty2","data-path":"src/pages/ContactPage.tsx",children:"Phone Number"}),c.jsx("input",{type:"tel",value:t.phone,onChange:o=>n({...t,phone:o.target.value}),placeholder:"+1 (916) 000-0000",className:"w-full px-5 py-4 rounded-xl bg-white border-2 border-gray-100 font-body text-stone focus:border-forest outline-none transition-colors shadow-sm","data-id":"xa2ik10gz","data-path":"src/pages/ContactPage.tsx"})]}),c.jsxs("div",{"data-id":"bq33vc664","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("label",{className:"font-body text-xs font-700 uppercase tracking-widest text-stone/70 block mb-2","data-id":"8j0625vyu","data-path":"src/pages/ContactPage.tsx",children:"I'm Interested In"}),c.jsxs("select",{value:t.interest,onChange:o=>n({...t,interest:o.target.value}),className:"w-full px-5 py-4 rounded-xl bg-white border-2 border-gray-100 font-body text-stone focus:border-forest outline-none transition-colors shadow-sm appearance-none","data-id":"s713mok1j","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("option",{value:"","data-id":"doluz3e8d","data-path":"src/pages/ContactPage.tsx",children:"Select an option"}),c.jsx("option",{value:"enroll","data-id":"nf14am0je","data-path":"src/pages/ContactPage.tsx",children:"Enrolling a youth in a program"}),c.jsx("option",{value:"mentor","data-id":"emf40a737","data-path":"src/pages/ContactPage.tsx",children:"Becoming a mentor or volunteer"}),c.jsx("option",{value:"partner","data-id":"jhz4k20n0","data-path":"src/pages/ContactPage.tsx",children:"Corporate or organizational partnership"}),c.jsx("option",{value:"donate","data-id":"mwe6pa7zp","data-path":"src/pages/ContactPage.tsx",children:"Making a donation"}),c.jsx("option",{value:"media","data-id":"knob73fg1","data-path":"src/pages/ContactPage.tsx",children:"Media or press inquiry"}),c.jsx("option",{value:"other","data-id":"u6sdywxuj","data-path":"src/pages/ContactPage.tsx",children:"Other"})]})]}),c.jsxs("div",{"data-id":"ewmuneynf","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("label",{className:"font-body text-xs font-700 uppercase tracking-widest text-stone/70 block mb-2","data-id":"fjcre05nf","data-path":"src/pages/ContactPage.tsx",children:"Message *"}),c.jsx("textarea",{value:t.message,onChange:o=>n({...t,message:o.target.value}),placeholder:"Tell us how we can help or how you'd like to get involved...",rows:5,className:"w-full px-5 py-4 rounded-xl bg-white border-2 border-gray-100 font-body text-stone focus:border-forest outline-none transition-colors shadow-sm resize-none","data-id":"745fgrp0y","data-path":"src/pages/ContactPage.tsx"})]}),c.jsx("button",{type:"submit",disabled:r,className:"w-full py-5 rounded-full bg-forest text-white font-body font-700 text-lg hover:bg-canopy transition-colors shadow-lg disabled:opacity-60","data-id":"lgzb1hi0q","data-path":"src/pages/ContactPage.tsx",children:r?"Sending...":"Send Message"})]})]}),c.jsxs("div",{className:"lg:col-span-2 space-y-6 reveal-right","data-id":"rc0mg46ko","data-path":"src/pages/ContactPage.tsx",children:[[{icon:c.jsxs("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"njwr7mtvt","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z","data-id":"eneqjf4ma","data-path":"src/pages/ContactPage.tsx"}),c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z","data-id":"hpzaoxrc8","data-path":"src/pages/ContactPage.tsx"})]}),label:"Our Address",value:`4625 44th Street Suite 2
Sacramento, CA 95820`,link:null},{icon:c.jsx("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"abfg7b9wn","data-path":"src/pages/ContactPage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z","data-id":"rjam70pb2","data-path":"src/pages/ContactPage.tsx"})}),label:"Phone",value:"+1-916-889-0105",link:"tel:+19168890105"},{icon:c.jsx("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"zy82an0kf","data-path":"src/pages/ContactPage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z","data-id":"44d1w3mhm","data-path":"src/pages/ContactPage.tsx"})}),label:"Email",value:"enquiries@purehorizonx.com",link:"mailto:enquiries@purehorizonx.com"}].map(o=>c.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-sm border border-gray-100 flex items-start gap-4","data-id":"i4z25ama6","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl bg-forest/10 flex items-center justify-center shrink-0 text-forest","data-id":"bzv812ipl","data-path":"src/pages/ContactPage.tsx",children:o.icon}),c.jsxs("div",{"data-id":"vhhwh1auw","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("span",{className:"font-body text-xs font-700 uppercase tracking-widest text-stone/50 block mb-1","data-id":"cha4ow74b","data-path":"src/pages/ContactPage.tsx",children:o.label}),o.link?c.jsx("a",{href:o.link,className:"font-body text-forest font-600 hover:text-canopy transition-colors","data-id":"ty03t9hcu","data-path":"src/pages/ContactPage.tsx",children:o.value}):c.jsx("p",{className:"font-body text-forest font-600 whitespace-pre-line","data-id":"9idh7y6uc","data-path":"src/pages/ContactPage.tsx",children:o.value})]})]},o.label)),c.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-sm border border-gray-100","data-id":"mmwxfdxjc","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("h3",{className:"font-display font-700 text-forest text-lg mb-4","data-id":"0mrv2inld","data-path":"src/pages/ContactPage.tsx",children:"Office Hours"}),c.jsxs("div",{className:"space-y-2 font-body text-stone text-sm","data-id":"ku7v94ys5","data-path":"src/pages/ContactPage.tsx",children:[c.jsxs("div",{className:"flex justify-between","data-id":"a5aq4vj7m","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("span",{"data-id":"l5z2noej2","data-path":"src/pages/ContactPage.tsx",children:"Monday – Friday"}),c.jsx("span",{className:"font-600 text-forest","data-id":"vpw9e362p","data-path":"src/pages/ContactPage.tsx",children:"9:00 AM – 5:00 PM"})]}),c.jsxs("div",{className:"flex justify-between","data-id":"dod3bhx91","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("span",{"data-id":"99tyx8rax","data-path":"src/pages/ContactPage.tsx",children:"Saturday"}),c.jsx("span",{className:"font-600 text-forest","data-id":"8n4qta867","data-path":"src/pages/ContactPage.tsx",children:"9:00 AM – 2:00 PM"})]}),c.jsxs("div",{className:"flex justify-between","data-id":"obwtpinsv","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("span",{"data-id":"p990az7n4","data-path":"src/pages/ContactPage.tsx",children:"Sunday"}),c.jsx("span",{className:"font-600 text-stone/50","data-id":"f8lw078qs","data-path":"src/pages/ContactPage.tsx",children:"Closed"})]})]})]}),c.jsxs("div",{className:"bg-forest rounded-2xl p-6 text-white","data-id":"pelylflz9","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("h3",{className:"font-display font-700 text-white text-lg mb-3","data-id":"3n3ckmxd0","data-path":"src/pages/ContactPage.tsx",children:"Ready to Enroll?"}),c.jsx("p",{className:"font-body text-white/70 text-sm mb-4","data-id":"dkqsddzw2","data-path":"src/pages/ContactPage.tsx",children:"Call us directly to speak with a program coordinator and find the right fit for a young person in your life."}),c.jsxs("a",{href:"tel:+19168890105",className:"inline-flex items-center gap-2 px-5 py-3 rounded-full bg-amber-brand text-white font-body font-700 text-sm hover:bg-amber-light transition-colors","data-id":"2btpm1vwo","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"xtjsmle5t","data-path":"src/pages/ContactPage.tsx",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z","data-id":"5s3jc8xlt","data-path":"src/pages/ContactPage.tsx"})}),"Call +1-916-889-0105"]})]})]})]})})}),c.jsx("section",{className:"px-4 pb-16","data-id":"0o1lpw9yf","data-path":"src/pages/ContactPage.tsx",children:c.jsx("div",{className:"max-w-7xl mx-auto","data-id":"wfnbqqm9y","data-path":"src/pages/ContactPage.tsx",children:c.jsx("div",{className:"w-full rounded-3xl overflow-hidden shadow-xl h-80 flex items-center justify-center reveal",style:{background:"linear-gradient(135deg, var(--forest) 0%, var(--canopy) 100%)"},"data-id":"64reg7jow","data-path":"src/pages/ContactPage.tsx",children:c.jsxs("div",{className:"text-center text-white","data-id":"qbzadrc19","data-path":"src/pages/ContactPage.tsx",children:[c.jsxs("svg",{className:"w-16 h-16 mx-auto mb-4 opacity-50",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-id":"3mri8y8qf","data-path":"src/pages/ContactPage.tsx",children:[c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z","data-id":"w86o7j3ns","data-path":"src/pages/ContactPage.tsx"}),c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z","data-id":"iihsq8d69","data-path":"src/pages/ContactPage.tsx"})]}),c.jsx("p",{className:"font-display text-2xl font-700","data-id":"1ci4zi78g","data-path":"src/pages/ContactPage.tsx",children:"4625 44th Street Suite 2"}),c.jsx("p",{className:"font-body text-white/60 text-lg","data-id":"x5uwdfhnh","data-path":"src/pages/ContactPage.tsx",children:"Sacramento, CA 95820"})]})})})}),c.jsx(Or,{"data-id":"ltgj0tghx","data-path":"src/pages/ContactPage.tsx"})]})}const tw=w.createContext({});function KT(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const GT=typeof window<"u",YT=GT?w.useLayoutEffect:w.useEffect,Ff=w.createContext(null);function _f(e,t){e.indexOf(t)===-1&&e.push(t)}function $i(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Kt=(e,t,n)=>n>t?t:n<e?e:n;let Vf=()=>{};const Yn={},nw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),rw=e=>typeof e=="object"&&e!==null,sw=e=>/^0[^.\s]+$/u.test(e);function aw(e){let t;return()=>(t===void 0&&(t=e()),t)}const ft=e=>e,oo=(...e)=>e.reduce((t,n)=>r=>n(t(r))),$a=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class zf{constructor(){this.subscriptions=[]}add(t){return _f(this.subscriptions,t),()=>$i(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let a=0;a<s;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Je=e=>e*1e3,ut=e=>e/1e3,ow=(e,t)=>t?e*(1e3/t):0,iw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,QT=1e-7,XT=12;function ZT(e,t,n,r,s){let a,o,i=0;do o=t+(n-t)/2,a=iw(o,r,s)-e,a>0?n=o:t=o;while(Math.abs(a)>QT&&++i<XT);return o}function io(e,t,n,r){if(e===t&&n===r)return ft;const s=a=>ZT(a,0,1,e,n);return a=>a===0||a===1?a:iw(s(a),t,r)}const lw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,cw=e=>t=>1-e(1-t),uw=io(.33,1.53,.69,.99),Bf=cw(uw),dw=lw(Bf),fw=e=>e>=1?1:(e*=2)<1?.5*Bf(e):.5*(2-Math.pow(2,-10*(e-1))),Hf=e=>1-Math.sin(Math.acos(e)),hw=cw(Hf),pw=lw(Hf),JT=io(.42,0,1,1),eN=io(0,0,.58,1),mw=io(.42,0,.58,1),tN=e=>Array.isArray(e)&&typeof e[0]!="number",gw=e=>Array.isArray(e)&&typeof e[0]=="number",nN={linear:ft,easeIn:JT,easeInOut:mw,easeOut:eN,circIn:Hf,circInOut:pw,circOut:hw,backIn:Bf,backInOut:dw,backOut:uw,anticipate:fw},rN=e=>typeof e=="string",bm=e=>{if(gw(e)){Vf(e.length===4);const[t,n,r,s]=e;return io(t,n,r,s)}else if(rN(e))return nN[e];return e},Fo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function sN(e,t){let n=new Set,r=new Set,s=!1,a=!1;const o=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(u.schedule(d),e()),d(i)}const u={schedule:(d,f=!1,h=!1)=>{const x=h&&s?n:r;return f&&o.add(d),x.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(i=d,s){a=!0;return}s=!0;const f=n;n=r,r=f,n.forEach(l),n.clear(),s=!1,a&&(a=!1,u.process(d))}};return u}const aN=40;function xw(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Fo.reduce((y,P)=>(y[P]=sN(a),y),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:h,render:m,postRender:x}=o,v=()=>{const y=Yn.useManualTiming,P=y?s.timestamp:performance.now();n=!1,y||(s.delta=r?1e3/60:Math.max(Math.min(P-s.timestamp,aN),1)),s.timestamp=P,s.isProcessing=!0,i.process(s),l.process(s),u.process(s),d.process(s),f.process(s),h.process(s),m.process(s),x.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,s.isProcessing||e(v)};return{schedule:Fo.reduce((y,P)=>{const S=o[P];return y[P]=(k,j=!1,C=!1)=>(n||b(),S.schedule(k,j,C)),y},{}),cancel:y=>{for(let P=0;P<Fo.length;P++)o[Fo[P]].cancel(y)},state:s,steps:o}}const{schedule:J,cancel:Qn,state:Ce,steps:xc}=xw(typeof requestAnimationFrame<"u"?requestAnimationFrame:ft,!0);let ai;function oN(){ai=void 0}const Ie={now:()=>(ai===void 0&&Ie.set(Ce.isProcessing||Yn.useManualTiming?Ce.timestamp:performance.now()),ai),set:e=>{ai=e,queueMicrotask(oN)}},yw=e=>t=>typeof t=="string"&&t.startsWith(e),vw=yw("--"),iN=yw("var(--"),$f=e=>iN(e)?lN.test(e.split("/*")[0].trim()):!1,lN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Pm(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Fs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ua={...Fs,transform:e=>Kt(0,1,e)},_o={...Fs,default:1},xa=e=>Math.round(e*1e5)/1e5,Uf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function cN(e){return e==null}const uN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wf=(e,t)=>n=>!!(typeof n=="string"&&uN.test(n)&&n.startsWith(e)||t&&!cN(n)&&Object.prototype.hasOwnProperty.call(n,t)),ww=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,a,o,i]=r.match(Uf);return{[e]:parseFloat(s),[t]:parseFloat(a),[n]:parseFloat(o),alpha:i!==void 0?parseFloat(i):1}},dN=e=>Kt(0,255,e),yc={...Fs,transform:e=>Math.round(dN(e))},ur={test:Wf("rgb","red"),parse:ww("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+yc.transform(e)+", "+yc.transform(t)+", "+yc.transform(n)+", "+xa(Ua.transform(r))+")"};function fN(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const qu={test:Wf("#"),parse:fN,transform:ur.transform},lo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jt=lo("deg"),qt=lo("%"),F=lo("px"),hN=lo("vh"),pN=lo("vw"),Sm={...qt,parse:e=>qt.parse(e)/100,transform:e=>qt.transform(e*100)},Xr={test:Wf("hsl","hue"),parse:ww("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qt.transform(xa(t))+", "+qt.transform(xa(n))+", "+xa(Ua.transform(r))+")"},fe={test:e=>ur.test(e)||qu.test(e)||Xr.test(e),parse:e=>ur.test(e)?ur.parse(e):Xr.test(e)?Xr.parse(e):qu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ur.transform(e):Xr.transform(e),getAnimatableNone:e=>{const t=fe.parse(e);return t.alpha=0,fe.transform(t)}},mN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gN(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Uf))==null?void 0:t.length)||0)+(((n=e.match(mN))==null?void 0:n.length)||0)>0}const bw="number",Pw="color",xN="var",yN="var(",km="${}",vN=/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 Ts(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let a=0;const i=t.replace(vN,l=>(fe.test(l)?(r.color.push(a),s.push(Pw),n.push(fe.parse(l))):l.startsWith(yN)?(r.var.push(a),s.push(xN),n.push(l)):(r.number.push(a),s.push(bw),n.push(parseFloat(l))),++a,km)).split(km);return{values:n,split:i,indexes:r,types:s}}function wN(e){return Ts(e).values}function Sw({split:e,types:t}){const n=e.length;return r=>{let s="";for(let a=0;a<n;a++)if(s+=e[a],r[a]!==void 0){const o=t[a];o===bw?s+=xa(r[a]):o===Pw?s+=fe.transform(r[a]):s+=r[a]}return s}}function bN(e){return Sw(Ts(e))}const PN=e=>typeof e=="number"?0:fe.test(e)?fe.getAnimatableNone(e):e,SN=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:PN(e);function kN(e){const t=Ts(e);return Sw(t)(t.values.map((r,s)=>SN(r,t.split[s])))}const Et={test:gN,parse:wN,createTransformer:bN,getAnimatableNone:kN};function vc(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 CN({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,a=0,o=0;if(!t)s=a=o=n;else{const i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;s=vc(l,i,e+1/3),a=vc(l,i,e),o=vc(l,i,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ui(e,t){return n=>n>0?t:e}const Z=(e,t,n)=>e+(t-e)*n,wc=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},jN=[qu,ur,Xr],EN=e=>jN.find(t=>t.test(e));function Cm(e){const t=EN(e);if(!t)return!1;let n=t.parse(e);return t===Xr&&(n=CN(n)),n}const jm=(e,t)=>{const n=Cm(e),r=Cm(t);if(!n||!r)return Ui(e,t);const s={...n};return a=>(s.red=wc(n.red,r.red,a),s.green=wc(n.green,r.green,a),s.blue=wc(n.blue,r.blue,a),s.alpha=Z(n.alpha,r.alpha,a),ur.transform(s))},Ku=new Set(["none","hidden"]);function TN(e,t){return Ku.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function NN(e,t){return n=>Z(e,t,n)}function qf(e){return typeof e=="number"?NN:typeof e=="string"?$f(e)?Ui:fe.test(e)?jm:MN:Array.isArray(e)?kw:typeof e=="object"?fe.test(e)?jm:AN:Ui}function kw(e,t){const n=[...e],r=n.length,s=e.map((a,o)=>qf(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=s[o](a);return n}}function AN(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=qf(e[s])(e[s],t[s]));return s=>{for(const a in r)n[a]=r[a](s);return n}}function RN(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],o=e.indexes[a][r[a]],i=e.values[o]??0;n[s]=i,r[a]++}return n}const MN=(e,t)=>{const n=Et.createTransformer(t),r=Ts(e),s=Ts(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Ku.has(e)&&!s.values.length||Ku.has(t)&&!r.values.length?TN(e,t):oo(kw(RN(r,s),s.values),n):Ui(e,t)};function Cw(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Z(e,t,n):qf(e)(e,t)}const DN=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>J.update(t,n),stop:()=>Qn(t),now:()=>Ce.isProcessing?Ce.timestamp:Ie.now()}},jw=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let a=0;a<s;a++)r+=Math.round(e(a/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Wi=2e4;function Kf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Wi;)t+=n,r=e.next(t);return t>=Wi?1/0:t}function ON(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Kf(r),Wi);return{type:"keyframes",ease:a=>r.next(s*a).value/t,duration:ut(s)}}const ce={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};function Gu(e,t){return e*Math.sqrt(1-t*t)}const LN=12;function IN(e,t,n){let r=n;for(let s=1;s<LN;s++)r=r-e(r)/t(r);return r}const bc=.001;function FN({duration:e=ce.duration,bounce:t=ce.bounce,velocity:n=ce.velocity,mass:r=ce.mass}){let s,a,o=1-t;o=Kt(ce.minDamping,ce.maxDamping,o),e=Kt(ce.minDuration,ce.maxDuration,ut(e)),o<1?(s=u=>{const d=u*o,f=d*e,h=d-n,m=Gu(u,o),x=Math.exp(-f);return bc-h/m*x},a=u=>{const f=u*o*e,h=f*n+n,m=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-f),v=Gu(Math.pow(u,2),o);return(-s(u)+bc>0?-1:1)*((h-m)*x)/v}):(s=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-bc+d*f},a=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const i=5/e,l=IN(s,a,i);if(e=Je(e),isNaN(l))return{stiffness:ce.stiffness,damping:ce.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const _N=["duration","bounce"],VN=["stiffness","damping","mass"];function Em(e,t){return t.some(n=>e[n]!==void 0)}function zN(e){let t={velocity:ce.velocity,stiffness:ce.stiffness,damping:ce.damping,mass:ce.mass,isResolvedFromDuration:!1,...e};if(!Em(e,VN)&&Em(e,_N))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,a=2*Kt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ce.mass,stiffness:s,damping:a}}else{const n=FN({...e,velocity:0});t={...t,...n,mass:ce.mass},t.isResolvedFromDuration=!0}return t}function qi(e=ce.visualDuration,t=ce.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],i={done:!1,value:a},{stiffness:l,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=zN({...n,velocity:-ut(n.velocity||0)}),x=h||0,v=u/(2*Math.sqrt(l*d)),b=o-a,g=ut(Math.sqrt(l/d)),p=Math.abs(b)<5;r||(r=p?ce.restSpeed.granular:ce.restSpeed.default),s||(s=p?ce.restDelta.granular:ce.restDelta.default);let y,P,S,k,j,C;if(v<1)S=Gu(g,v),k=(x+v*g*b)/S,y=N=>{const I=Math.exp(-v*g*N);return o-I*(k*Math.sin(S*N)+b*Math.cos(S*N))},j=v*g*k+b*S,C=v*g*b-k*S,P=N=>Math.exp(-v*g*N)*(j*Math.sin(S*N)+C*Math.cos(S*N));else if(v===1){y=I=>o-Math.exp(-g*I)*(b+(x+g*b)*I);const N=x+g*b;P=I=>Math.exp(-g*I)*(g*N*I-x)}else{const N=g*Math.sqrt(v*v-1);y=D=>{const $=Math.exp(-v*g*D),V=Math.min(N*D,300);return o-$*((x+v*g*b)*Math.sinh(V)+N*b*Math.cosh(V))/N};const I=(x+v*g*b)/N,O=v*g*I-b*N,H=v*g*b-I*N;P=D=>{const $=Math.exp(-v*g*D),V=Math.min(N*D,300);return $*(O*Math.sinh(V)+H*Math.cosh(V))}}const A={calculatedDuration:m&&f||null,velocity:N=>Je(P(N)),next:N=>{if(!m&&v<1){const O=Math.exp(-v*g*N),H=Math.sin(S*N),D=Math.cos(S*N),$=o-O*(k*H+b*D),V=Je(O*(j*H+C*D));return i.done=Math.abs(V)<=r&&Math.abs(o-$)<=s,i.value=i.done?o:$,i}const I=y(N);if(m)i.done=N>=f;else{const O=Je(P(N));i.done=Math.abs(O)<=r&&Math.abs(o-I)<=s}return i.value=i.done?o:I,i},toString:()=>{const N=Math.min(Kf(A),Wi),I=jw(O=>A.next(N*O).value,N,30);return N+"ms "+I},toTransition:()=>{}};return A}qi.applyToOptions=e=>{const t=ON(e,100,qi);return e.ease=t.ease,e.duration=Je(t.duration),e.type="keyframes",e};const BN=5;function Ew(e,t,n){const r=Math.max(t-BN,0);return ow(n-e(r),t-r)}function Yu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:i,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},m=C=>i!==void 0&&C<i||l!==void 0&&C>l,x=C=>i===void 0?l:l===void 0||Math.abs(i-C)<Math.abs(l-C)?i:l;let v=n*t;const b=f+v,g=o===void 0?b:o(b);g!==b&&(v=g-f);const p=C=>-v*Math.exp(-C/r),y=C=>g+p(C),P=C=>{const A=p(C),N=y(C);h.done=Math.abs(A)<=u,h.value=h.done?g:N};let S,k;const j=C=>{m(h.value)&&(S=C,k=qi({keyframes:[h.value,x(h.value)],velocity:Ew(y,C,h.value),damping:s,stiffness:a,restDelta:u,restSpeed:d}))};return j(0),{calculatedDuration:null,next:C=>{let A=!1;return!k&&S===void 0&&(A=!0,P(C),j(C)),S!==void 0&&C>=S?k.next(C-S):(!A&&P(C),h)}}}function HN(e,t,n){const r=[],s=n||Yn.mix||Cw,a=e.length-1;for(let o=0;o<a;o++){let i=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||ft:t;i=oo(l,i)}r.push(i)}return r}function $N(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const a=e.length;if(Vf(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=HN(t,r,s),l=i.length,u=d=>{if(o&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=$a(e[f],e[f+1],d);return i[f](h)};return n?d=>u(Kt(e[0],e[a-1],d)):u}function UN(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=$a(0,t,r);e.push(Z(n,1,s))}}function WN(e){const t=[0];return UN(t,e.length-1),t}function qN(e,t){return e.map(n=>n*t)}function KN(e,t){return e.map(()=>t||mw).splice(0,e.length-1)}function ya({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=tN(r)?r.map(bm):bm(r),a={done:!1,value:t[0]},o=qN(n&&n.length===t.length?n:WN(t),e),i=$N(o,t,{ease:Array.isArray(s)?s:KN(t,s)});return{calculatedDuration:e,next:l=>(a.value=i(l),a.done=l>=e,a)}}const GN=e=>e!==null;function Tl(e,{repeat:t,repeatType:n="loop"},r,s=1){const a=e.filter(GN),i=s<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}const YN={decay:Yu,inertia:Yu,tween:ya,keyframes:ya,spring:qi};function Tw(e){typeof e.type=="string"&&(e.type=YN[e.type])}class Gf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const QN=e=>e/100;class Ki extends Gf{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==Ie.now()&&this.tick(Ie.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Tw(t);const{type:n=ya,repeat:r=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=t;let{keyframes:i}=t;const l=n||ya;l!==ya&&typeof i[0]!="number"&&(this.mixKeyframes=oo(QN,Cw(i[0],i[1])),i=[0,100]);const u=l({...t,keyframes:i});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Kf(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:m,type:x,onUpdate:v,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),p=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let y=this.currentTime,P=r;if(f){const C=Math.min(this.currentTime,s)/i;let A=Math.floor(C),N=C%1;!N&&C>=1&&(N=1),N===1&&A--,A=Math.min(A,f+1),!!(A%2)&&(h==="reverse"?(N=1-N,m&&(N-=m/i)):h==="mirror"&&(P=o)),y=Kt(0,1,N)*i}let S;p?(this.delayState.value=d[0],S=this.delayState):S=P.next(y),a&&!p&&(S.value=a(S.value));let{done:k}=S;!p&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return j&&x!==Yu&&(S.value=Tl(d,this.options,b,this.speed)),v&&v(S.value),j&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return ut(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ut(t)}get time(){return ut(this.currentTime)}set time(t){t=Je(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Ew(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Ie.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ut(this.currentTime))}play(){var s,a;if(this.isStopped)return;const{driver:t=DN,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(a=(s=this.options).onPlay)==null||a.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ie.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function XN(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const dr=e=>e*180/Math.PI,Qu=e=>{const t=dr(Math.atan2(e[1],e[0]));return Xu(t)},ZN={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qu,rotateZ:Qu,skewX:e=>dr(Math.atan(e[1])),skewY:e=>dr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xu=e=>(e=e%360,e<0&&(e+=360),e),Tm=Qu,Nm=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Am=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),JN={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nm,scaleY:Am,scale:e=>(Nm(e)+Am(e))/2,rotateX:e=>Xu(dr(Math.atan2(e[6],e[5]))),rotateY:e=>Xu(dr(Math.atan2(-e[2],e[0]))),rotateZ:Tm,rotate:Tm,skewX:e=>dr(Math.atan(e[4])),skewY:e=>dr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zu(e){return e.includes("scale")?1:0}function Ju(e,t){if(!e||e==="none")return Zu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=JN,s=n;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ZN,s=i}if(!s)return Zu(t);const a=r[t],o=s[1].split(",").map(tA);return typeof a=="function"?a(o):o[a]}const eA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ju(n,t)};function tA(e){return parseFloat(e.trim())}const _s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vs=new Set([..._s,"pathRotation"]),Rm=e=>e===Fs||e===F,nA=new Set(["x","y","z"]),rA=_s.filter(e=>!nA.has(e));function sA(e){const t=[];return rA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const On={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ju(t,"x"),y:(e,{transform:t})=>Ju(t,"y")};On.translateX=On.x;On.translateY=On.y;const br=new Set;let ed=!1,td=!1,nd=!1;function Nw(){if(td){const e=Array.from(br).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=sA(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([a,o])=>{var i;(i=r.getValue(a))==null||i.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}td=!1,ed=!1,br.forEach(e=>e.complete(nd)),br.clear()}function Aw(){br.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(td=!0)})}function aA(){nd=!0,Aw(),Nw(),nd=!1}class Yf{constructor(t,n,r,s,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(br.add(this),ed||(ed=!0,J.read(Aw),J.resolveKeyframes(Nw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const a=s==null?void 0:s.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const i=r.readValue(n,o);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=o),s&&a===void 0&&s.set(t[0])}XN(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),br.delete(this)}cancel(){this.state==="scheduled"&&(br.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const oA=e=>e.startsWith("--");function Rw(e,t,n){oA(t)?e.style.setProperty(t,n):e.style[t]=n}const iA={};function Mw(e,t){const n=aw(e);return()=>iA[t]??n()}const lA=Mw(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Dw=Mw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),aa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:aa([0,.65,.55,1]),circOut:aa([.55,0,1,.45]),backIn:aa([.31,.01,.66,-.59]),backOut:aa([.33,1.53,.69,.99])};function Ow(e,t){if(e)return typeof e=="function"?Dw()?jw(e,t):"ease-out":gw(e)?aa(e):Array.isArray(e)?e.map(n=>Ow(n,t)||Mm.easeOut):Mm[e]}function cA(e,t,n,{delay:r=0,duration:s=300,repeat:a=0,repeatType:o="loop",ease:i="easeOut",times:l}={},u=void 0){const d={[t]:n};l&&(d.offset=l);const f=Ow(i,s);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(d,h)}function Lw(e){return typeof e=="function"&&"applyToOptions"in e}function uA({type:e,...t}){return Lw(e)&&Dw()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Iw extends Gf{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Vf(typeof t.type!="string");const u=uA(t);this.animation=cA(n,r,s,u,a),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=Tl(s,this.options,i,this.speed);this.updateMotionValue&&this.updateMotionValue(d),Rw(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ut(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ut(t)}get time(){return ut(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Je(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var a;return this.allowFlatten&&((a=this.animation.effect)==null||a.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&lA()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),ft):s(this)}}const Fw={anticipate:fw,backInOut:dw,circInOut:pw};function dA(e){return e in Fw}function fA(e){typeof e.ease=="string"&&dA(e.ease)&&(e.ease=Fw[e.ease])}const Pc=10;class hA extends Iw{constructor(t){fA(t),Tw(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const i=new Ki({...o,autoplay:!1}),l=Math.max(Pc,Ie.now()-this.startTime),u=Kt(0,Pc,l-Pc),d=i.sample(l).value,{name:f}=this.options;a&&f&&Rw(a,f,d),n.setWithVelocity(i.sample(Math.max(0,l-u)).value,d,u),i.stop()}}const Dm=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Et.test(e)||e==="0")&&!e.startsWith("url("));function pA(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 mA(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=Dm(s,t),i=Dm(a,t);return!o||!i?!1:pA(e)||(n==="spring"||Lw(n))&&r}function rd(e){e.duration=0,e.type="keyframes"}const _w=new Set(["opacity","clipPath","filter","transform"]),gA=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function xA(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&gA.test(e[t]))return!0;return!1}const yA=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),vA=aw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function wA(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:a,type:o,keyframes:i}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=t.owner.getProps();return vA()&&n&&(_w.has(n)||yA.has(n)&&xA(i))&&(n!=="transform"||!d)&&!u&&!r&&s!=="mirror"&&a!==0&&o!=="inertia"}const bA=40;class PA extends Gf{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:o="loop",keyframes:i,name:l,motionValue:u,element:d,...f}){var x;super(),this.stop=()=>{var v,b;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=Ie.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:a,repeatType:o,name:l,motionValue:u,element:d,...f},m=(d==null?void 0:d.KeyframeResolver)||Yf;this.keyframeResolver=new m(i,(v,b,g)=>this.onKeyframesResolved(v,b,h,!g),l,u,d),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,s){var g,p;this.keyframeResolver=void 0;const{name:a,type:o,velocity:i,delay:l,isHandoff:u,onUpdate:d}=r;this.resolvedAt=Ie.now();let f=!0;mA(t,a,o,i)||(f=!1,(Yn.instantAnimations||!l)&&(d==null||d(Tl(t,r,n))),t[0]=t[t.length-1],rd(r),r.repeat=0);const m={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>bA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=f&&!u&&wA(m),v=(p=(g=m.motionValue)==null?void 0:g.owner)==null?void 0:p.current;let b;if(x)try{b=new hA({...m,element:v})}catch{b=new Ki(m)}else b=new Ki(m);b.finished.then(()=>{this.notifyFinished()}).catch(ft),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),aA()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Vw(e,t,n,r=0,s=1){const a=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),o=e.size,i=(o-1)*r;return typeof n=="function"?n(a,o):s===1?a*r:i-a*r}const Om=30,SA=e=>!isNaN(parseFloat(e));class kA{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const s=Ie.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ie.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=SA(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 zf);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ie.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Om)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Om);return ow(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ns(e,t){return new kA(e,t)}function zw(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Qf(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?zw(n,e):n}const CA={type:"spring",stiffness:500,damping:25,restSpeed:10},jA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),EA={type:"keyframes",duration:.8},TA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},NA=(e,{keyframes:t})=>t.length>2?EA:Vs.has(e)?e.startsWith("scale")?jA(t[1]):CA:TA,AA=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function RA(e){for(const t in e)if(!AA.has(t))return!0;return!1}const Xf=(e,t,n,r={},s,a)=>o=>{const i=Qf(r,e)||{},l=i.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Je(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:h=>{t.set(h),i.onUpdate&&i.onUpdate(h)},onComplete:()=>{o(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:a?void 0:s};RA(i)||Object.assign(d,NA(e,d)),d.duration&&(d.duration=Je(d.duration)),d.repeatDelay&&(d.repeatDelay=Je(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(rd(d),d.delay===0&&(f=!0)),(Yn.instantAnimations||Yn.skipAnimations||s!=null&&s.shouldSkipAnimations||i.skipAnimations)&&(f=!0,rd(d),d.delay=0),d.allowFlatten=!i.type&&!i.ease,f&&!a&&t.get()!==void 0){const h=Tl(d.keyframes,i);if(h!==void 0){J.update(()=>{d.onUpdate(h),d.onComplete()});return}}return i.isSync?new Ki(d):new PA(d)},MA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DA(e){const t=MA.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function Bw(e,t,n=1){const[r,s]=DA(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return nw(o)?parseFloat(o):o}return $f(s)?Bw(s,t,n+1):s}function Lm(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Zf(e,t,n,r){if(typeof t=="function"){const[s,a]=Lm(r);t=t(n!==void 0?n:e.custom,s,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,a]=Lm(r);t=t(n!==void 0?n:e.custom,s,a)}return t}function Pr(e,t,n){const r=e.getProps();return Zf(r,t,n!==void 0?n:r.custom,e)}const Hw=new Set(["width","height","top","left","right","bottom",..._s]),sd=e=>Array.isArray(e);function OA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ns(n))}function LA(e){return sd(e)?e[e.length-1]||0:e}function IA(e,t){const n=Pr(e,t);let{transitionEnd:r={},transition:s={},...a}=n||{};a={...a,...r};for(const o in a){const i=LA(a[o]);OA(e,o,i)}}const je=e=>!!(e&&e.getVelocity);function FA(e){return!!(je(e)&&e.add)}function ad(e,t){const n=e.getValue("willChange");if(FA(n))return n.add(t);if(!n&&Yn.WillChange){const r=new Yn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Jf(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const _A="framerAppearId",$w="data-"+Jf(_A);function Uw(e){return e.props[$w]}function VA({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ww(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:a,transitionEnd:o,...i}=t;const l=e.getDefaultTransition();a=a?zw(a,l):l;const u=a==null?void 0:a.reduceMotion,d=a==null?void 0:a.skipAnimations;r&&(a=r);const f=[],h=s&&e.animationState&&e.animationState.getState()[s],m=a==null?void 0:a.path;m&&m.animateVisualElement(e,i,a,n,f);for(const x in i){const v=e.getValue(x,e.latestValues[x]??null),b=i[x];if(b===void 0||h&&VA(h,x))continue;const g={delay:n,...Qf(a||{},x)};d&&(g.skipAnimations=!0);const p=v.get();if(p!==void 0&&!v.isAnimating()&&!Array.isArray(b)&&b===p&&!g.velocity){J.update(()=>v.set(b));continue}let y=!1;if(window.MotionHandoffAnimation){const k=Uw(e);if(k){const j=window.MotionHandoffAnimation(k,x,J);j!==null&&(g.startTime=j,y=!0)}}ad(e,x);const P=u??e.shouldReduceMotion;v.start(Xf(x,v,b,P&&Hw.has(x)?{type:!1}:g,e,y));const S=v.animation;S&&f.push(S)}if(o){const x=()=>J.update(()=>{o&&IA(e,o)});f.length?Promise.all(f).then(x):x()}return f}function od(e,t,n={}){var l;const r=Pr(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(Ww(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return zA(e,t,u,d,f,h,n)}:()=>Promise.resolve(),{when:i}=s;if(i){const[u,d]=i==="beforeChildren"?[a,o]:[o,a];return u().then(()=>d())}else return Promise.all([a(),o(n.delay)])}function zA(e,t,n=0,r=0,s=0,a=1,o){const i=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),i.push(od(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Vw(e.variantChildren,l,r,s,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(i)}function BA(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(a=>od(e,a,n));r=Promise.all(s)}else if(typeof t=="string")r=od(e,t,n);else{const s=typeof t=="function"?Pr(e,t,n.custom):t;r=Promise.all(Ww(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const HA={test:e=>e==="auto",parse:e=>e},qw=e=>t=>t.test(e),Kw=[Fs,F,qt,Jt,pN,hN,HA],Im=e=>Kw.find(qw(e));function $A(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||sw(e):!0}const UA=new Set(["brightness","contrast","saturate","opacity"]);function WA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Uf)||[];if(!r)return e;const s=n.replace(r,"");let a=UA.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+s+")"}const qA=/\b([a-z-]*)\(.*?\)/gu,id={...Et,getAnimatableNone:e=>{const t=e.match(qA);return t?t.map(WA).join(" "):e}},ld={...Et,getAnimatableNone:e=>{const t=Et.parse(e);return Et.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Fm={...Fs,transform:Math.round},KA={rotate:Jt,pathRotation:Jt,rotateX:Jt,rotateY:Jt,rotateZ:Jt,scale:_o,scaleX:_o,scaleY:_o,scaleZ:_o,skew:Jt,skewX:Jt,skewY:Jt,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:Ua,originX:Sm,originY:Sm,originZ:F},Gi={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,fontSize:F,backgroundPositionX:F,backgroundPositionY:F,...KA,zIndex:Fm,fillOpacity:Ua,strokeOpacity:Ua,numOctaves:Fm},GA={...Gi,color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:id,WebkitFilter:id,mask:ld,WebkitMask:ld},Gw=e=>GA[e],YA=new Set([id,ld]);function Yw(e,t){let n=Gw(e);return YA.has(n)||(n=Et),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const QA=new Set(["auto","none","0"]);function XA(e,t,n){let r=0,s;for(;r<e.length&&!s;){const a=e[r];typeof a=="string"&&!QA.has(a)&&Ts(a).values.length&&(s=e[r]),r++}if(s&&n)for(const a of t)e[a]=Yw(n,s)}class ZA extends Yf{constructor(t,n,r,s,a){super(t,n,r,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),$f(f))){const h=Bw(f,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Hw.has(r)||t.length!==2)return;const[s,a]=t,o=Im(s),i=Im(a),l=Pm(s),u=Pm(a);if(l!==u&&On[r]){this.needsMeasurement=!0;return}if(o!==i)if(Rm(o)&&Rm(i))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else On[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||$A(t[s]))&&r.push(s);r.length&&XA(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=On[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var i;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=On[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(i=this.removedTransforms)!=null&&i.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Qw(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const s=(n==null?void 0:n[e])??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const cd=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function JA(e){return rw(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:eh}=xw(queueMicrotask,!1),yt={x:!1,y:!1};function Xw(){return yt.x||yt.y}function e4(e){return e==="x"||e==="y"?yt[e]?null:(yt[e]=!0,()=>{yt[e]=!1}):yt.x||yt.y?null:(yt.x=yt.y=!0,()=>{yt.x=yt.y=!1})}function Zw(e,t){const n=Qw(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function t4(e){return!(e.pointerType==="touch"||Xw())}function n4(e,t,n={}){const[r,s,a]=Zw(e,n);return r.forEach(o=>{let i=!1,l=!1,u;const d=()=>{o.removeEventListener("pointerleave",x)},f=b=>{u&&(u(b),u=void 0),d()},h=b=>{i=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,f(b))},m=()=>{i=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},x=b=>{if(b.pointerType!=="touch"){if(i){l=!0;return}f(b)}},v=b=>{if(!t4(b))return;l=!1;const g=t(o,b);typeof g=="function"&&(u=g,o.addEventListener("pointerleave",x,s))};o.addEventListener("pointerenter",v,s),o.addEventListener("pointerdown",m,s)}),a}const Jw=(e,t)=>t?e===t?!0:Jw(e,t.parentElement):!1,th=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,r4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function s4(e){return r4.has(e.tagName)||e.isContentEditable===!0}const a4=new Set(["INPUT","SELECT","TEXTAREA"]);function o4(e){return a4.has(e.tagName)||e.isContentEditable===!0}const oi=new WeakSet;function _m(e){return t=>{t.key==="Enter"&&e(t)}}function Sc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const i4=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_m(()=>{if(oi.has(n))return;Sc(n,"down");const s=_m(()=>{Sc(n,"up")}),a=()=>Sc(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Vm(e){return th(e)&&!Xw()}const zm=new WeakSet;function l4(e,t,n={}){const[r,s,a]=Zw(e,n),o=i=>{const l=i.currentTarget;if(!Vm(i)||zm.has(i))return;oi.add(l),n.stopPropagation&&zm.add(i);const u=t(l,i),d=(m,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),oi.has(l)&&oi.delete(l),Vm(m)&&typeof u=="function"&&u(m,{success:x})},f=m=>{d(m,l===window||l===document||n.useGlobalTarget||Jw(l,m.target))},h=m=>{d(m,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return r.forEach(i=>{(n.useGlobalTarget?window:i).addEventListener("pointerdown",o,s),JA(i)&&(i.addEventListener("focus",u=>i4(u,s)),!s4(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),a}function nh(e){return rw(e)&&"ownerSVGElement"in e}const ii=new WeakMap;let wn;const eb=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:nh(r)&&"getBBox"in r?r.getBBox()[t]:r[n],c4=eb("inline","width","offsetWidth"),u4=eb("block","height","offsetHeight");function d4({target:e,borderBoxSize:t}){var n;(n=ii.get(e))==null||n.forEach(r=>{r(e,{get width(){return c4(e,t)},get height(){return u4(e,t)}})})}function f4(e){e.forEach(d4)}function h4(){typeof ResizeObserver>"u"||(wn=new ResizeObserver(f4))}function p4(e,t){wn||h4();const n=Qw(e);return n.forEach(r=>{let s=ii.get(r);s||(s=new Set,ii.set(r,s)),s.add(t),wn==null||wn.observe(r)}),()=>{n.forEach(r=>{const s=ii.get(r);s==null||s.delete(t),s!=null&&s.size||wn==null||wn.unobserve(r)})}}const li=new Set;let Zr;function m4(){Zr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};li.forEach(t=>t(e))},window.addEventListener("resize",Zr)}function g4(e){return li.add(e),Zr||m4(),()=>{li.delete(e),!li.size&&typeof Zr=="function"&&(window.removeEventListener("resize",Zr),Zr=void 0)}}function Bm(e,t){return typeof e=="function"?g4(e):p4(e,t)}function x4(e){return nh(e)&&e.tagName==="svg"}const y4=[...Kw,fe,Et],v4=e=>y4.find(qw(e)),Hm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jr=()=>({x:Hm(),y:Hm()}),$m=()=>({min:0,max:0}),me=()=>({x:$m(),y:$m()}),w4=new WeakMap;function Nl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Wa(e){return typeof e=="string"||Array.isArray(e)}const rh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sh=["initial",...rh];function Al(e){return Nl(e.animate)||sh.some(t=>Wa(e[t]))}function tb(e){return!!(Al(e)||e.variants)}function b4(e,t,n){for(const r in t){const s=t[r],a=n[r];if(je(s))e.addValue(r,s);else if(je(a))e.addValue(r,Ns(s,{owner:e}));else if(a!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Ns(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ud={current:null},nb={current:!1},P4=typeof window<"u";function S4(){if(nb.current=!0,!!P4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ud.current=e.matches;e.addEventListener("change",t),t()}else ud.current=!1}const Um=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Yi={};function rb(e){Yi=e}function k4(){return Yi}class C4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:a,blockInitialAnimation:o,visualState:i},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Yf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Ie.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,J.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=i;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=a,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Al(n),this.isVariantNode=tb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const x=h[m];u[m]!==void 0&&je(x)&&x.set(u[m])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,w4.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,a)=>this.bindToMotionValue(a,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(nb.current||S4(),this.shouldReduceMotion=ud.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Qn(this.notifyUpdate),Qn(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&_w.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:i,times:l,ease:u,duration:d}=n.accelerate,f=new Iw({element:this.current,name:t,keyframes:i,times:l,ease:u,duration:Je(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=Vs.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),a&&a()})}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 Yi){const n=Yi[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):me()}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<Um.length;r++){const s=Um[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,o=t[a];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=b4(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=Ns(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(nw(r)||sw(r))?r=parseFloat(r):!v4(r)&&Et.test(n)&&(r=Yw(t,n)),this.setBaseTarget(t,je(r)?r.get():r)),je(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Zf(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!je(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){eh.render(this.render)}}class sb extends C4{constructor(){super(...arguments),this.KeyframeResolver=ZA}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;je(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class tr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ab({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function j4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function E4(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 kc(e){return e===void 0||e===1}function dd({scale:e,scaleX:t,scaleY:n}){return!kc(e)||!kc(t)||!kc(n)}function or(e){return dd(e)||ob(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ob(e){return Wm(e.x)||Wm(e.y)}function Wm(e){return e&&e!=="0%"}function Qi(e,t,n){const r=e-n,s=t*r;return n+s}function qm(e,t,n,r,s){return s!==void 0&&(e=Qi(e,s,r)),Qi(e,n,r)+t}function fd(e,t=0,n=1,r,s){e.min=qm(e.min,t,n,r,s),e.max=qm(e.max,t,n,r,s)}function ib(e,{x:t,y:n}){fd(e.x,t.translate,t.scale,t.originPoint),fd(e.y,n.translate,n.scale,n.originPoint)}const Km=.999999999999,Gm=1.0000000000001;function T4(e,t,n,r=!1){var i;const s=n.length;if(!s)return;t.x=t.y=1;let a,o;for(let l=0;l<s;l++){a=n[l],o=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Vt(e.x,-a.scroll.offset.x),Vt(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ib(e,o)),r&&or(a.latestValues)&&ci(e,a.latestValues,(i=a.layout)==null?void 0:i.layoutBox))}t.x<Gm&&t.x>Km&&(t.x=1),t.y<Gm&&t.y>Km&&(t.y=1)}function Vt(e,t){e.min+=t,e.max+=t}function Ym(e,t,n,r,s=.5){const a=Z(e.min,e.max,s);fd(e,t,n,a,r)}function Qm(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ci(e,t,n){const r=n??e;Ym(e.x,Qm(t.x,r.x),t.scaleX,t.scale,t.originX),Ym(e.y,Qm(t.y,r.y),t.scaleY,t.scale,t.originY)}function lb(e,t){return ab(E4(e.getBoundingClientRect(),t))}function N4(e,t,n){const r=lb(e,n),{scroll:s}=t;return s&&(Vt(r.x,s.offset.x),Vt(r.y,s.offset.y)),r}const A4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R4=_s.length;function M4(e,t,n){let r="",s=!0;for(let o=0;o<R4;o++){const i=_s[o],l=e[i];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(i.startsWith("scale")?1:0);else{const d=parseFloat(l);u=i.startsWith("scale")?d===1:d===0}if(!u||n){const d=cd(l,Gi[i]);if(!u){s=!1;const f=A4[i]||i;r+=`${f}(${d}) `}n&&(t[i]=d)}}const a=e.pathRotation;return a&&(s=!1,r+=`rotate(${cd(a,Gi.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function ah(e,t,n){const{style:r,vars:s,transformOrigin:a}=e;let o=!1,i=!1;for(const l in t){const u=t[l];if(Vs.has(l)){o=!0;continue}else if(vw(l)){s[l]=u;continue}else{const d=cd(u,Gi[l]);l.startsWith("origin")?(i=!0,a[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=M4(t,e.transform,n):r.transform&&(r.transform="none")),i){const{originX:l="50%",originY:u="50%",originZ:d=0}=a;r.transformOrigin=`${l} ${u} ${d}`}}function cb(e,{style:t,vars:n},r,s){const a=e.style;let o;for(o in t)a[o]=t[o];s==null||s.applyProjectionStyles(a,r);for(o in n)a.setProperty(o,n[o])}function Xm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ea={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const n=Xm(e,t.target.x),r=Xm(e,t.target.y);return`${n}% ${r}%`}},D4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Et.parse(e);if(s.length>5)return r;const a=Et.createTransformer(e),o=typeof s[0]!="number"?1:0,i=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=i,s[1+o]/=l;const u=Z(i,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),a(s)}},hd={borderRadius:{...ea,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ea,borderTopRightRadius:ea,borderBottomLeftRadius:ea,borderBottomRightRadius:ea,boxShadow:D4};function ub(e,{layout:t,layoutId:n}){return Vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!hd[e]||e==="opacity")}function oh(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,a={};if(!r)return a;for(const i in r)(je(r[i])||s&&je(s[i])||ub(i,e)||((o=n==null?void 0:n.getValue(i))==null?void 0:o.liveStyle)!==void 0)&&(a[i]=r[i]);return a}function O4(e){return window.getComputedStyle(e)}class L4 extends sb{constructor(){super(...arguments),this.type="html",this.renderInstance=cb}readValueFromInstance(t,n){var r;if(Vs.has(n))return(r=this.projection)!=null&&r.isProjecting?Zu(n):eA(t,n);{const s=O4(t),a=(vw(n)?s.getPropertyValue(n):s[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lb(t,n)}build(t,n,r){ah(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return oh(t,n,r)}}const I4={offset:"stroke-dashoffset",array:"stroke-dasharray"},F4={offset:"strokeDashoffset",array:"strokeDasharray"};function _4(e,t,n=1,r=0,s=!0){e.pathLength=1;const a=s?I4:F4;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}const V4=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function db(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:a=1,pathOffset:o=0,...i},l,u,d){if(ah(e,i,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const m of V4)f[m]!==void 0&&(h[m]=f[m],delete f[m]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&_4(f,s,a,o,!1)}const fb=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"]),hb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function z4(e,t,n,r){cb(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(fb.has(s)?s:Jf(s),t.attrs[s])}function pb(e,t,n){const r=oh(e,t,n);for(const s in e)if(je(e[s])||je(t[s])){const a=_s.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[a]=e[s]}return r}class B4 extends sb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=me}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vs.has(n)){const r=Gw(n);return r&&r.default||0}return n=fb.has(n)?n:Jf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return pb(t,n,r)}build(t,n,r){db(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){z4(t,n,r,s)}mount(t){this.isSVGTag=hb(t.tagName),super.mount(t)}}const H4=sh.length;function mb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?mb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<H4;n++){const r=sh[n],s=e.props[r];(Wa(s)||s===!1)&&(t[r]=s)}return t}function gb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const $4=[...rh].reverse(),U4=rh.length;function W4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>BA(e,n,r)))}function q4(e){let t=W4(e),n=Zm(),r=!0,s=!1;const a=u=>(d,f)=>{var m;const h=Pr(e,f,u==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);if(h){const{transition:x,transitionEnd:v,...b}=h;d={...d,...b,...v}}return d};function o(u){t=u(e)}function i(u){const{props:d}=e,f=mb(e.parent)||{},h=[],m=new Set;let x={},v=1/0;for(let g=0;g<U4;g++){const p=$4[g],y=n[p],P=d[p]!==void 0?d[p]:f[p],S=Wa(P),k=p===u?y.isActive:null;k===!1&&(v=g);let j=P===f[p]&&P!==d[p]&&S;if(j&&(r||s)&&e.manuallyAnimateOnMount&&(j=!1),y.protectedKeys={...x},!y.isActive&&k===null||!P&&!y.prevProp||Nl(P)||typeof P=="boolean")continue;if(p==="exit"&&y.isActive&&k!==!0){y.prevResolvedValues&&(x={...x,...y.prevResolvedValues});continue}const C=K4(y.prevProp,P);let A=C||p===u&&y.isActive&&!j&&S||g>v&&S,N=!1;const I=Array.isArray(P)?P:[P];let O=I.reduce(a(p),{});k===!1&&(O={});const{prevResolvedValues:H={}}=y,D={...H,...O},$=E=>{A=!0,m.has(E)&&(N=!0,m.delete(E)),y.needsAnimating[E]=!0;const M=e.getValue(E);M&&(M.liveStyle=!1)};for(const E in D){const M=O[E],_=H[E];if(x.hasOwnProperty(E))continue;let B=!1;sd(M)&&sd(_)?B=!gb(M,_)||C:B=M!==_,B?M!=null?$(E):m.add(E):M!==void 0&&m.has(E)?$(E):y.protectedKeys[E]=!0}y.prevProp=P,y.prevResolvedValues=O,y.isActive&&(x={...x,...O}),(r||s)&&e.blockInitialAnimation&&(A=!1);const V=j&&C;A&&(!V||N)&&h.push(...I.map(E=>{const M={type:p};if(typeof E=="string"&&(r||s)&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:_}=e,B=Pr(_,E);if(_.enteringChildren&&B){const{delayChildren:Y}=B.transition||{};M.delay=Vw(_.enteringChildren,e,Y)}}return{animation:E,options:M}}))}if(m.size){const g={};if(typeof d.initial!="boolean"){const p=Pr(e,Array.isArray(d.initial)?d.initial[0]:d.initial);p&&p.transition&&(g.transition=p.transition)}m.forEach(p=>{const y=e.getBaseTarget(p),P=e.getValue(p);P&&(P.liveStyle=!0),g[p]=y??null}),h.push({animation:g})}let b=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,s=!1,b?t(h):Promise.resolve()}function l(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(m=>{var x;return(x=m.animationState)==null?void 0:x.setActive(u,d)}),n[u].isActive=d;const f=i(u);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:i,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Zm(),s=!0}}}function K4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gb(t,e):!1}function rr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zm(){return{animate:rr(!0),whileInView:rr(),whileHover:rr(),whileTap:rr(),whileDrag:rr(),whileFocus:rr(),exit:rr()}}function pd(e,t){e.min=t.min,e.max=t.max}function xt(e,t){pd(e.x,t.x),pd(e.y,t.y)}function Jm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const xb=1e-4,G4=1-xb,Y4=1+xb,yb=.01,Q4=0-yb,X4=0+yb;function Fe(e){return e.max-e.min}function Z4(e,t,n){return Math.abs(e-t)<=n}function eg(e,t,n,r=.5){e.origin=r,e.originPoint=Z(t.min,t.max,e.origin),e.scale=Fe(n)/Fe(t),e.translate=Z(n.min,n.max,e.origin)-e.originPoint,(e.scale>=G4&&e.scale<=Y4||isNaN(e.scale))&&(e.scale=1),(e.translate>=Q4&&e.translate<=X4||isNaN(e.translate))&&(e.translate=0)}function va(e,t,n,r){eg(e.x,t.x,n.x,r?r.originX:void 0),eg(e.y,t.y,n.y,r?r.originY:void 0)}function tg(e,t,n,r=0){const s=r?Z(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+Fe(t)}function J4(e,t,n,r){tg(e.x,t.x,n.x,r==null?void 0:r.x),tg(e.y,t.y,n.y,r==null?void 0:r.y)}function ng(e,t,n,r=0){const s=r?Z(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+Fe(t)}function Xi(e,t,n,r){ng(e.x,t.x,n.x,r==null?void 0:r.x),ng(e.y,t.y,n.y,r==null?void 0:r.y)}function rg(e,t,n,r,s){return e-=t,e=Qi(e,1/n,r),s!==void 0&&(e=Qi(e,1/s,r)),e}function eR(e,t=0,n=1,r=.5,s,a=e,o=e){if(qt.test(t)&&(t=parseFloat(t),t=Z(o.min,o.max,t/100)-o.min),typeof t!="number")return;let i=Z(a.min,a.max,r);e===a&&(i-=t),e.min=rg(e.min,t,n,i,s),e.max=rg(e.max,t,n,i,s)}function sg(e,t,[n,r,s],a,o){eR(e,t[n],t[r],t[s],t.scale,a,o)}const tR=["x","scaleX","originX"],nR=["y","scaleY","originY"];function ag(e,t,n,r){sg(e.x,t,tR,n?n.x:void 0,r?r.x:void 0),sg(e.y,t,nR,n?n.y:void 0,r?r.y:void 0)}function og(e){return e.translate===0&&e.scale===1}function vb(e){return og(e.x)&&og(e.y)}function ig(e,t){return e.min===t.min&&e.max===t.max}function rR(e,t){return ig(e.x,t.x)&&ig(e.y,t.y)}function lg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wb(e,t){return lg(e.x,t.x)&&lg(e.y,t.y)}function cg(e){return Fe(e.x)/Fe(e.y)}function ug(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Lt(e){return[e("x"),e("y")]}function sR(e,t,n){let r="";const s=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||a||o)&&(r=`translate3d(${s}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,pathRotation:f,rotateX:h,rotateY:m,skewX:x,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),x&&(r+=`skewX(${x}deg) `),v&&(r+=`skewY(${v}deg) `)}const i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(r+=`scale(${i}, ${l})`),r||"none"}const bb=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],aR=bb.length,dg=e=>typeof e=="string"?parseFloat(e):e,fg=e=>typeof e=="number"||F.test(e);function oR(e,t,n,r,s,a){s?(e.opacity=Z(0,n.opacity??1,iR(r)),e.opacityExit=Z(t.opacity??1,0,lR(r))):a&&(e.opacity=Z(t.opacity??1,n.opacity??1,r));for(let o=0;o<aR;o++){const i=bb[o];let l=hg(t,i),u=hg(n,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||fg(l)===fg(u)?(e[i]=Math.max(Z(dg(l),dg(u),r),0),(qt.test(u)||qt.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||n.rotate)&&(e.rotate=Z(t.rotate||0,n.rotate||0,r))}function hg(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const iR=Pb(0,.5,hw),lR=Pb(.5,.95,ft);function Pb(e,t,n){return r=>r<e?0:r>t?1:n($a(e,t,r))}function cR(e,t,n){const r=je(e)?e:Ns(e);return r.start(Xf("",r,t,n)),r.animation}function qa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const uR=(e,t)=>e.depth-t.depth;class dR{constructor(){this.children=[],this.isDirty=!1}add(t){_f(this.children,t),this.isDirty=!0}remove(t){$i(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(uR),this.isDirty=!1,this.children.forEach(t)}}function fR(e,t){const n=Ie.now(),r=({timestamp:s})=>{const a=s-n;a>=t&&(Qn(r),e(a-t))};return J.setup(r,!0),()=>Qn(r)}function ui(e){return je(e)?e.get():e}class hR{constructor(){this.members=[]}add(t){_f(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;(!s||s.isConnected===!1)&&!r.snapshot&&($i(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if($i(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){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:a}=r.options,{layoutDependency:o}=t.options;(a===void 0||a!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,s,a,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(s=t.resumingFrom)==null?void 0:(a=s.options).onExitComplete)==null||o.call(a)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const di={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Cc=["","X","Y","Z"],pR=1e3;let mR=0;function jc(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Sb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Uw(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",J,!(s||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Sb(r)}function kb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},i=t==null?void 0:t()){this.id=mR++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(yR),this.nodes.forEach(kR),this.nodes.forEach(CR),this.nodes.forEach(vR)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new dR)}addEventListener(o,i){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new zf),this.eventHandlers.get(o).add(i)}notifyListeners(o,...i){const l=this.eventHandlers.get(o);l&&l.notify(...i)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=nh(o)&&!x4(o),this.instance=o;const{layoutId:i,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||i)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;J.read(()=>{f=window.innerWidth}),e(o,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,d&&d(),d=fR(h,250),di.hasAnimatedSinceResize&&(di.hasAnimatedSinceResize=!1,this.nodes.forEach(gg)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||AR,{onLayoutAnimationStart:v,onLayoutAnimationComplete:b}=u.getProps(),g=!this.targetLayout||!wb(this.targetLayout,m),p=!f&&h;if(this.options.layoutRoot||this.resumeFrom||p||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...Qf(x,"layout"),onPlay:v,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,p,y.path)}else f||gg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Qn(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(jR),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Sb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(bR),this.nodes.forEach(pg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(mg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(PR),this.nodes.forEach(SR),this.nodes.forEach(gR),this.nodes.forEach(xR)):this.nodes.forEach(mg),this.clearAllSnapshots();const i=Ie.now();Ce.delta=Kt(0,1e3/60,i-Ce.timestamp),Ce.timestamp=i,Ce.isProcessing=!0,xc.update.process(Ce),xc.preRender.process(Ce),xc.render.process(Ce),Ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wR),this.sharedNodes.forEach(ER)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Fe(this.snapshot.measuredBox.x)&&!Fe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=me()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(i=!1),i&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!vb(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&this.instance&&(i||or(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const i=this.measurePageBox();let l=this.removeElementScroll(i);return o&&(l=this.removeTransform(l)),RR(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return me();const i=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(MR))){const{scroll:d}=this.root;d&&(Vt(i.x,d.offset.x),Vt(i.y,d.offset.y))}return i}removeElementScroll(o){var l;const i=me();if(xt(i,o),(l=this.scroll)!=null&&l.wasRoot)return i;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&xt(i,o),Vt(i.x,f.offset.x),Vt(i.y,f.offset.y))}return i}applyTransform(o,i=!1,l){var d,f;const u=l||me();xt(u,o);for(let h=0;h<this.path.length;h++){const m=this.path[h];!i&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(Vt(u.x,-m.scroll.offset.x),Vt(u.y,-m.scroll.offset.y)),or(m.latestValues)&&ci(u,m.latestValues,(d=m.layout)==null?void 0:d.layoutBox)}return or(this.latestValues)&&ci(u,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),u}removeTransform(o){var l;const i=me();xt(i,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!or(d.latestValues))continue;let f;d.instance&&(dd(d.latestValues)&&d.updateSnapshot(),f=me(),xt(f,d.measurePageBox())),ag(i,d.latestValues,(l=d.snapshot)==null?void 0:l.layoutBox,f)}return or(this.latestValues)&&ag(i,this.latestValues),i}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var m;const i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==i;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=Ce.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=me(),this.targetWithTransforms=me()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),J4(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):xt(this.target,this.layout.layoutBox),ib(this.target,this.targetDelta)):xt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||dd(this.parent.latestValues)||ob(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,i,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=me(),this.relativeTargetOrigin=me(),Xi(this.relativeTargetOrigin,i,l,this.options.layoutAnchor||void 0),xt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const o=this.getLead(),i=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(l=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ce.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;xt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;T4(this.layoutCorrected,this.treeScale,this.path,i),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=me());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jm(this.prevProjectionDelta.x,this.projectionDelta.x),Jm(this.prevProjectionDelta.y,this.projectionDelta.y)),va(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!ug(this.projectionDelta.x,this.prevProjectionDelta.x)||!ug(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var i;if((i=this.options.visualElement)==null||i.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Jr(),this.projectionDelta=Jr(),this.projectionDeltaWithTransform=Jr()}setAnimationOrigin(o,i=!1,l){const u=this.snapshot,d=u?u.latestValues:{},f={...this.latestValues},h=Jr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const m=me(),x=u?u.source:void 0,v=this.layout?this.layout.source:void 0,b=x!==v,g=this.getStack(),p=!g||g.members.length<=1,y=!!(b&&!p&&this.options.crossfade===!0&&!this.path.some(NR));this.animationProgress=0;let P;const S=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=k=>{const j=k/1e3,C=S==null?void 0:S(j);C?(h.x.translate=C.x,h.x.scale=Z(o.x.scale,1,j),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=C.y,h.y.scale=Z(o.y.scale,1,j),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(xg(h.x,o.x,j),xg(h.y,o.y,j)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xi(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),TR(this.relativeTarget,this.relativeTargetOrigin,m,j),P&&rR(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=me()),xt(P,this.relativeTarget)),b&&(this.animationValues=f,oR(f,d,this.latestValues,j,y,p)),C&&C.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var i,l,u;this.notifyListeners("animationStart"),(i=this.currentAnimation)==null||i.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Qn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{di.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ns(0)),this.motionValue.jump(0,!1),this.currentAnimation=cR(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:i,target:l,layout:u,latestValues:d}=o;if(!(!i||!l||!u)){if(this!==o&&this.layout&&u&&Cb(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||me();const f=Fe(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Fe(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}xt(i,l),ci(i,d),va(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(o,i){this.sharedNodes.has(o)||this.sharedNodes.set(o,new hR),this.sharedNodes.get(o).add(i);const u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var i;const{layoutId:o}=this.options;return o?((i=this.getStack())==null?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:o}=this.options;return o?(i=this.getStack())==null?void 0:i.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:i,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let i=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;const u={};l.z&&jc("z",o,u,this.animationValues);for(let d=0;d<Cc.length;d++)jc(`rotate${Cc[d]}`,o,u,this.animationValues),jc(`skew${Cc[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}applyProjectionStyles(o,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=ui(i==null?void 0:i.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=ui(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!or(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=sR(this.projectionDeltaWithTransform,this.treeScale,d);l&&(f=l(d,f)),o.transform=f;const{x:h,y:m}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,u.animationValues?o.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const x in hd){if(d[x]===void 0)continue;const{correct:v,applyTo:b,isCSSVariable:g}=hd[x],p=f==="none"?d[x]:v(d[x],u);if(b){const y=b.length;for(let P=0;P<y;P++)o[b[P]]=p}else g?this.options.visualElement.renderState.vars[x]=p:o[x]=p}this.options.layoutId&&(o.pointerEvents=u===this?ui(i==null?void 0:i.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var i;return(i=o.currentAnimation)==null?void 0:i.stop()}),this.root.nodes.forEach(pg),this.root.sharedNodes.clear()}}}function gR(e){e.updateLayout()}function xR(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;if(a==="size")Lt(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],m=Fe(h);h.min=r[f].min,h.max=h.min+m});else if(a==="x"||a==="y"){const f=a==="x"?"y":"x";pd(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else Cb(a,t.layoutBox,r)&&Lt(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],m=Fe(r[f]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const i=Jr();va(i,r,t.layoutBox);const l=Jr();o?va(l,e.applyTransform(s,!0),t.measuredBox):va(l,r,t.layoutBox);const u=!vb(i);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:m}=f;if(h&&m){const x=e.options.layoutAnchor||void 0,v=me();Xi(v,t.layoutBox,h.layoutBox,x);const b=me();Xi(b,r,m.layoutBox,x),wb(v,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:i,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function yR(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function vR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function wR(e){e.clearSnapshot()}function pg(e){e.clearMeasurements()}function bR(e){e.isLayoutDirty=!0,e.updateLayout()}function mg(e){e.isLayoutDirty=!1}function PR(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function SR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function kR(e){e.resolveTargetDelta()}function CR(e){e.calcProjection()}function jR(e){e.resetSkewAndRotation()}function ER(e){e.removeLeadSnapshot()}function xg(e,t,n){e.translate=Z(t.translate,0,n),e.scale=Z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function yg(e,t,n,r){e.min=Z(t.min,n.min,r),e.max=Z(t.max,n.max,r)}function TR(e,t,n,r){yg(e.x,t.x,n.x,r),yg(e.y,t.y,n.y,r)}function NR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const AR={duration:.45,ease:[.4,0,.1,1]},vg=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wg=vg("applewebkit/")&&!vg("chrome/")?Math.round:ft;function bg(e){e.min=wg(e.min),e.max=wg(e.max)}function RR(e){bg(e.x),bg(e.y)}function Cb(e,t,n){return e==="position"||e==="preserve-aspect"&&!Z4(cg(t),cg(n),.2)}function MR(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const DR=kb({attachResizeListener:(e,t)=>qa(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Ec={current:void 0},jb=kb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ec.current){const e=new DR({});e.mount(window),e.setOptions({layoutScroll:!0}),Ec.current=e}return Ec.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Eb=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function OR(e=!0){const t=w.useContext(Ff);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,a=w.useId();w.useEffect(()=>{if(e)return s(a)},[e]);const o=w.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const Tb=w.createContext({strict:!1}),Pg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Sg=!1;function LR(){if(Sg)return;const e={};for(const t in Pg)e[t]={isEnabled:n=>Pg[t].some(r=>!!n[r])};rb(e),Sg=!0}function Nb(){return LR(),k4()}function IR(e){const t=Nb();for(const n in e)t[n]={...t[n],...e[n]};rb(t)}const FR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Zi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||FR.has(e)}let Ab=e=>!Zi(e);function _R(e){typeof e=="function"&&(Ab=t=>t.startsWith("on")?!Zi(t):e(t))}try{_R(require("@emotion/is-prop-valid").default)}catch{}function VR(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||je(e[s])||(Ab(s)||n===!0&&Zi(s)||!t&&!Zi(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Rl=w.createContext({});function zR(e,t){if(Al(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Wa(n)?n:void 0,animate:Wa(r)?r:void 0}}return e.inherit!==!1?t:{}}function BR(e){const{initial:t,animate:n}=zR(e,w.useContext(Rl));return w.useMemo(()=>({initial:t,animate:n}),[kg(t),kg(n)])}function kg(e){return Array.isArray(e)?e.join(" "):e}const ih=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rb(e,t,n){for(const r in t)!je(t[r])&&!ub(r,n)&&(e[r]=t[r])}function HR({transformTemplate:e},t){return w.useMemo(()=>{const n=ih();return ah(n,t,e),Object.assign({},n.vars,n.style)},[t])}function $R(e,t){const n=e.style||{},r={};return Rb(r,n,e),Object.assign(r,HR(e,t)),r}function UR(e,t){const n={},r=$R(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 Mb=()=>({...ih(),attrs:{}});function WR(e,t,n,r){const s=w.useMemo(()=>{const a=Mb();return db(a,t,hb(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Rb(a,e.style,e),s.style={...a,...s.style}}return s}const qR=["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 lh(e){return typeof e!="string"||e.includes("-")?!1:!!(qR.indexOf(e)>-1||/[A-Z]/u.test(e))}function KR(e,t,n,{latestValues:r},s,a=!1,o){const l=(o??lh(e)?WR:UR)(t,r,s,e),u=VR(t,typeof e=="string",a),d=e!==w.Fragment?{...u,...l,ref:n}:{},{children:f}=t,h=w.useMemo(()=>je(f)?f.get():f,[f]);return w.createElement(e,{...d,children:h})}function GR({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:YR(n,r,s,e),renderState:t()}}function YR(e,t,n,r){const s={},a=r(e,{});for(const h in a)s[h]=ui(a[h]);let{initial:o,animate:i}=e;const l=Al(e),u=tb(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),i===void 0&&(i=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?i:o;if(f&&typeof f!="boolean"&&!Nl(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const x=Zf(e,h[m]);if(x){const{transitionEnd:v,transition:b,...g}=x;for(const p in g){let y=g[p];if(Array.isArray(y)){const P=d?y.length-1:0;y=y[P]}y!==null&&(s[p]=y)}for(const p in v)s[p]=v[p]}}}return s}const Db=e=>(t,n)=>{const r=w.useContext(Rl),s=w.useContext(Ff),a=()=>GR(e,t,r,s);return n?a():KT(a)},QR=Db({scrapeMotionValuesFromProps:oh,createRenderState:ih}),XR=Db({scrapeMotionValuesFromProps:pb,createRenderState:Mb}),ZR=Symbol.for("motionComponentSymbol");function JR(e,t,n){const r=w.useRef(n);w.useInsertionEffect(()=>{r.current=n});const s=w.useRef(null);return w.useCallback(a=>{var i;a&&((i=e.onMount)==null||i.call(e,a)),t&&(a?t.mount(a):t.unmount());const o=r.current;if(typeof o=="function")if(a){const l=o(a);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(a);else o&&(o.current=a)},[t])}const Ob=w.createContext({});function _r(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eM(e,t,n,r,s,a){var y,P;const{visualElement:o}=w.useContext(Rl),i=w.useContext(Tb),l=w.useContext(Ff),u=w.useContext(Eb),d=u.reducedMotion,f=u.skipAnimations,h=w.useRef(null),m=w.useRef(!1);r=r||i.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:a}),m.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const x=h.current,v=w.useContext(Ob);x&&!x.projection&&s&&(x.type==="html"||x.type==="svg")&&tM(h.current,n,s,v);const b=w.useRef(!1);w.useInsertionEffect(()=>{x&&b.current&&x.update(n,l)});const g=n[$w],p=w.useRef(!!g&&typeof window<"u"&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,g))&&((P=window.MotionHasOptimisedAnimation)==null?void 0:P.call(window,g)));return YT(()=>{m.current=!0,x&&(b.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),p.current&&x.animationState&&x.animationState.animateChanges())}),w.useEffect(()=>{x&&(!p.current&&x.animationState&&x.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,g)}),p.current=!1),x.enteringChildren=void 0)}),x}function tM(e,t,n,r){const{layoutId:s,layout:a,drag:o,dragConstraints:i,layoutScroll:l,layoutRoot:u,layoutAnchor:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Lb(e.parent)),e.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!o||i&&_r(i),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:l,layoutRoot:u,layoutAnchor:d})}function Lb(e){if(e)return e.options.allowProjection!==!1?e.projection:Lb(e.parent)}function Tc(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&IR(r);const a=n?n==="svg":lh(e),o=a?XR:QR;function i(u,d){let f;const h={...w.useContext(Eb),...u,layoutId:nM(u)},{isStatic:m}=h,x=BR(u),v=o(u,m);if(!m&&typeof window<"u"){rM();const b=sM(h);f=b.MeasureLayout,x.visualElement=eM(e,v,h,s,b.ProjectionNode,a)}return c.jsxs(Rl.Provider,{value:x,children:[f&&x.visualElement?c.jsx(f,{visualElement:x.visualElement,...h}):null,KR(e,u,JR(v,x.visualElement,d),v,m,t,a)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=w.forwardRef(i);return l[ZR]=e,l}function nM({layoutId:e}){const t=w.useContext(tw).id;return t&&e!==void 0?t+"-"+e:e}function rM(e,t){w.useContext(Tb).strict}function sM(e){const t=Nb(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function aM(e,t){if(typeof Proxy>"u")return Tc;const n=new Map,r=(a,o)=>Tc(a,o,e,t),s=(a,o)=>r(a,o);return new Proxy(s,{get:(a,o)=>o==="create"?r:(n.has(o)||n.set(o,Tc(o,void 0,e,t)),n.get(o))})}const oM=(e,t)=>t.isSVG??lh(e)?new B4(t):new L4(t,{allowProjection:e!==w.Fragment});class iM extends tr{constructor(t){super(t),t.animationState||(t.animationState=q4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Nl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let lM=0;class cM extends tr{constructor(){super(...arguments),this.id=lM++,this.isExitComplete=!1}update(){var a;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;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:i}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=Pr(this.node,o,i);if(l){const{transition:u,transitionEnd:d,...f}=l;for(const h in f)(a=this.node.getValue(h))==null||a.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const uM={animation:{Feature:iM},exit:{Feature:cM}};function co(e){return{point:{x:e.pageX,y:e.pageY}}}const dM=e=>t=>th(t)&&e(t,co(t));function wa(e,t,n,r){return qa(e,t,dM(n),r)}const Ib=({current:e})=>e?e.ownerDocument.defaultView:null,Cg=(e,t)=>Math.abs(e-t);function fM(e,t){const n=Cg(e.x,t.x),r=Cg(e.y,t.y);return Math.sqrt(n**2+r**2)}const jg=new Set(["auto","scroll"]);class Fb{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3,element:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Vo(this.lastRawMoveEventInfo,this.transformPagePoint));const m=Nc(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,v=fM(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!v)return;const{point:b}=m,{timestamp:g}=Ce;this.history.push({...b,timestamp:g});const{onStart:p,onMove:y}=this.handlers;x||(p&&p(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,m)},this.handlePointerMove=(m,x)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=Vo(x,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(m,x)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Nc(m.type==="pointercancel"?this.lastMoveEventInfo:Vo(x,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,p),b&&b(m,p)},!th(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=co(t),u=Vo(l,this.transformPagePoint),{point:d}=u,{timestamp:f}=Ce;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,Nc(u,this.history)),this.removeListeners=oo(wa(this.contextWindow,"pointermove",this.handlePointerMove),wa(this.contextWindow,"pointerup",this.handlePointerUp),wa(this.contextWindow,"pointercancel",this.handlePointerUp)),i&&this.startScrollTracking(i)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(jg.has(r.overflowX)||jg.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},a={x:s.x-n.x,y:s.y-n.y};a.x===0&&a.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(t,s),J.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Qn(this.updatePoint)}}function Vo(e,t){return t?{point:t(e.point)}:e}function Eg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nc({point:e},t){return{point:e,delta:Eg(e,_b(t)),offset:Eg(e,hM(t)),velocity:pM(t,.1)}}function hM(e){return e[0]}function _b(e){return e[e.length-1]}function pM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=_b(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Je(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Je(t)*2&&(r=e[1]);const a=ut(s.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(s.x-r.x)/a,y:(s.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function mM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Z(n,e,r.max):Math.min(e,n)),e}function Tg(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 gM(e,{top:t,left:n,bottom:r,right:s}){return{x:Tg(e.x,n,s),y:Tg(e.y,t,r)}}function Ng(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 xM(e,t){return{x:Ng(e.x,t.x),y:Ng(e.y,t.y)}}function yM(e,t){let n=.5;const r=Fe(e),s=Fe(t);return s>r?n=$a(t.min,t.max-r,e.min):r>s&&(n=$a(e.min,e.max-s,t.min)),Kt(0,1,n)}function vM(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 md=.35;function wM(e=md){return e===!1?e=0:e===!0&&(e=md),{x:Ag(e,"left","right"),y:Ag(e,"top","bottom")}}function Ag(e,t,n){return{min:Rg(e,t),max:Rg(e,n)}}function Rg(e,t){return typeof e=="number"?e:e[t]||0}const bM=new WeakMap;class PM{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=me(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=f=>{n&&this.snapToCursor(co(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:m,dragPropagation:x,onDragStart:v}=this.getProps();if(m&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=e4(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Lt(g=>{let p=this.getAxisMotionValue(g).get()||0;if(qt.test(p)){const{projection:y}=this.visualElement;if(y&&y.layout){const P=y.layout.layoutBox[g];P&&(p=Fe(P)*(parseFloat(p)/100))}}this.originPoint[g]=p}),v&&J.update(()=>v(f,h),!1,!0),ad(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},i=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:x,onDirectionLock:v,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:g}=h;if(x&&this.currentDirection===null){this.currentDirection=kM(g),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),b&&J.update(()=>b(f,h),!1,!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new Fb(t,{onSessionStart:a,onStart:o,onMove:i,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Ib(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&J.postRender(()=>i(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!zo(t,s,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=mM(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,s=this.constraints;t&&_r(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=gM(r.layoutBox,t):this.constraints=!1,this.elastic=wM(n),s!==this.constraints&&!_r(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Lt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=vM(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_r(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const a=N4(r,s.root,this.visualElement.getTransformPagePoint());let o=xM(s.layout.layoutBox,a);if(n){const i=n(j4(o));this.hasMutatedConstraints=!!i,i&&(o=ab(i))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=Lt(d=>{if(!zo(d,n,this.currentDirection))return;let f=l&&l[d]||{};(o===!0||o===d)&&(f={min:0,max:0});const h=s?200:1e6,m=s?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(i)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ad(this.visualElement,t),r.start(Xf(t,r,0,n,this.visualElement,!1))}stopAnimation(){Lt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Lt(n=>{const{drag:r}=this.getProps();if(!zo(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:i}=s.layout.layoutBox[n],l=a.get()||0;a.set(t[n]-Z(o,i,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_r(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Lt(o=>{const i=this.getAxisMotionValue(o);if(i&&this.constraints!==!1){const l=i.get();s[o]=yM({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Lt(o=>{if(!zo(o,t,null))return;const i=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];i.set(Z(l,u,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;bM.set(this.visualElement,this);const t=this.visualElement.current,n=wa(t,"pointerdown",u=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=u.target,m=h!==t&&o4(h);d&&f&&!m&&this.start(u)});let r;const s=()=>{const{dragConstraints:u}=this.getProps();_r(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=SM(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,o=a.addEventListener("measure",s);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),J.read(s);const i=qa(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Lt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=u[f].translate,h.set(h.get()+u[f].translate))}),this.visualElement.render())});return()=>{i(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:o=md,dragMomentum:i=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:a,dragElastic:o,dragMomentum:i}}}function Mg(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function SM(e,t,n){const r=Bm(e,Mg(n)),s=Bm(t,Mg(n));return()=>{r(),s()}}function zo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class CM extends tr{constructor(t){super(t),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new PM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ac=e=>(t,n)=>{e&&J.update(()=>e(t,n),!1,!0)};class jM extends tr{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(t){this.session=new Fb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ib(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ac(t),onStart:Ac(n),onMove:Ac(r),onEnd:(a,o)=>{delete this.session,s&&J.postRender(()=>s(a,o))}}}mount(){this.removePointerDownListener=wa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Rc=!1;class EM extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:a}=t;a&&(n.group&&n.group.add(a),r&&r.register&&s&&r.register(a),Rc&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),di.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Rc=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||J.postRender(()=>{const i=o.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),eh.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Rc=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Vb(e){const[t,n]=OR(),r=w.useContext(tw);return c.jsx(EM,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Ob),isPresent:t,safeToRemove:n})}const TM={pan:{Feature:jM},drag:{Feature:CM,ProjectionNode:jb,MeasureLayout:Vb}};function Dg(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,a=r[s];a&&J.postRender(()=>a(t,co(t)))}class NM extends tr{mount(){const{current:t}=this.node;t&&(this.unmount=n4(t,(n,r)=>(Dg(this.node,r,"Start"),s=>Dg(this.node,s,"End"))))}unmount(){}}class AM extends tr{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=oo(qa(this.node.current,"focus",()=>this.onFocus()),qa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Og(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),a=r[s];a&&J.postRender(()=>a(t,co(t)))}class RM extends tr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=l4(t,(s,a)=>(Og(this.node,a,"Start"),(o,{success:i})=>Og(this.node,o,i?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const gd=new WeakMap,Mc=new WeakMap,MM=e=>{const t=gd.get(e.target);t&&t(e)},DM=e=>{e.forEach(MM)};function OM({root:e,...t}){const n=e||document;Mc.has(n)||Mc.set(n,{});const r=Mc.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(DM,{root:e,...t})),r[s]}function LM(e,t,n){const r=OM(t);return gd.set(e,n),r.observe(e),()=>{gd.delete(e),r.unobserve(e)}}const IM={some:0,all:1};class FM extends tr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:IM[s]},i=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(u)};this.stopObserver=LM(this.node.current,o,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(_M(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function _M({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const VM={inView:{Feature:FM},tap:{Feature:RM},focus:{Feature:AM},hover:{Feature:NM}},zM={layout:{ProjectionNode:jb,MeasureLayout:Vb}},BM={...uM,...VM,...TM,...zM},Bo=aM(BM,oM),HM=()=>{const e=Mr();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background","data-id":"najq18xny","data-path":"src/pages/NotFound.tsx",children:c.jsxs(Bo.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center space-y-6 p-8","data-id":"fq0kyphi5","data-path":"src/pages/NotFound.tsx",children:[c.jsx(Bo.div,{initial:{scale:.5},animate:{scale:1},transition:{duration:.5,delay:.2},"data-id":"l2jn28v2g","data-path":"src/pages/NotFound.tsx",children:c.jsx("h1",{className:"text-8xl font-bold text-primary","data-id":"wogbvbm8m","data-path":"src/pages/NotFound.tsx",children:"404"})}),c.jsxs(Bo.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4},className:"space-y-4","data-id":"15yam5qkc","data-path":"src/pages/NotFound.tsx",children:[c.jsx("h2",{className:"text-2xl font-semibold tracking-tight","data-id":"azmaf95ob","data-path":"src/pages/NotFound.tsx",children:"Page Not Found"}),c.jsx("p",{className:"text-muted-foreground","data-id":"tl54v4wyk","data-path":"src/pages/NotFound.tsx",children:"Sorry, the page you are looking for does not exist or has been removed."})]}),c.jsx(Bo.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.6},"data-id":"xepuqi4f3","data-path":"src/pages/NotFound.tsx",children:c.jsx(ga,{asChild:!0,variant:"default",size:"lg","data-id":"47moo2loa","data-path":"src/pages/NotFound.tsx",children:c.jsx("a",{href:"/","data-id":"6ulclp4o6","data-path":"src/pages/NotFound.tsx",children:"Back to Home"})})})]})})},$M=new k2,UM=()=>c.jsx(OE,{FallbackComponent:xT,onError:(e,t)=>{console.error(`Error Boundary caught an error(pathname:${location.pathname+location.search}):`,e,t),setTimeout(()=>{throw e},0)},"data-id":"5zi3k6yjw","data-path":"src/App.tsx",children:c.jsx($0,{"data-id":"2wnplmhu6","data-path":"src/App.tsx",children:c.jsx(j2,{client:$M,"data-id":"jqnxc619t","data-path":"src/App.tsx",children:c.jsxs(Gj,{"data-id":"1vsytu9ex","data-path":"src/App.tsx",children:[c.jsx(pC,{"data-id":"4d8iylig3","data-path":"src/App.tsx"}),c.jsx(NE,{"data-id":"xyw9iq63y","data-path":"src/App.tsx",children:c.jsx(PE,{"data-id":"xne9j7noa","data-path":"src/App.tsx",children:c.jsxs(Dt,{element:c.jsx(yT,{"data-id":"eiujegtby","data-path":"src/App.tsx"}),"data-id":"89p7zhb8q","data-path":"src/App.tsx",children:[c.jsx(Dt,{path:"/",element:c.jsx(ST,{"data-id":"2um6mjiz6","data-path":"src/App.tsx"}),"data-id":"c4uxku20t","data-path":"src/App.tsx"}),c.jsx(Dt,{path:"/programs",element:c.jsx(jT,{"data-id":"mmcsk6u3p","data-path":"src/App.tsx"}),"data-id":"ar04i6v6b","data-path":"src/App.tsx"}),c.jsx(Dt,{path:"/about",element:c.jsx(AT,{"data-id":"maqljlcki","data-path":"src/App.tsx"}),"data-id":"ybo81cigw","data-path":"src/App.tsx"}),c.jsx(Dt,{path:"/impact",element:c.jsx(FT,{"data-id":"w09b83gmw","data-path":"src/App.tsx"}),"data-id":"tc9pboo7k","data-path":"src/App.tsx"}),c.jsx(Dt,{path:"/blog",element:c.jsx(zT,{"data-id":"qyrrsj9c2","data-path":"src/App.tsx"}),"data-id":"odriz6hbo","data-path":"src/App.tsx"}),c.jsx(Dt,{path:"/donate",element:c.jsx(UT,{"data-id":"x3alluomf","data-path":"src/App.tsx"}),"data-id":"4buyu25ps","data-path":"src/App.tsx"}),c.jsx(Dt,{path:"/contact",element:c.jsx(qT,{"data-id":"z37w6pw9i","data-path":"src/App.tsx"}),"data-id":"l7rgw3lp9","data-path":"src/App.tsx"}),c.jsx(Dt,{path:"*",element:c.jsx(HM,{"data-id":"u90sfc49n","data-path":"src/App.tsx"}),"data-id":"labdd3ath","data-path":"src/App.tsx"})]})})})]})})})});nv(document.getElementById("root")).render(c.jsx(UM,{"data-id":"5yt9o3m2h","data-path":"src/main.tsx"}));