mirror of
https://github.com/luxfi/consensus.git
synced 2026-10-30 14:45:53 +00:00
- Update to strict black/white color palette with no gray tones in primary elements - Add 4px black borders for brutalist aesthetic - Remove all border radius for sharp, angular design - Increase font weights to black/extra-bold for maximum contrast - Update Button component with thicker borders and inverted hover states - Black stats section with white text for high contrast - Brutalist shadow effects on cards (4px solid black shadows) - Update navigation and footer with thicker borders - Uppercase typography throughout for stronger visual impact
261 lines
318 KiB
JavaScript
261 lines
318 KiB
JavaScript
function Fg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function zg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mf={exports:{}},$s={},Rf={exports:{}},_={};/**
|
|
* @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 mi=Symbol.for("react.element"),Bg=Symbol.for("react.portal"),Ug=Symbol.for("react.fragment"),$g=Symbol.for("react.strict_mode"),Wg=Symbol.for("react.profiler"),Hg=Symbol.for("react.provider"),Gg=Symbol.for("react.context"),Kg=Symbol.for("react.forward_ref"),Qg=Symbol.for("react.suspense"),Xg=Symbol.for("react.memo"),Yg=Symbol.for("react.lazy"),Gu=Symbol.iterator;function Zg(e){return e===null||typeof e!="object"?null:(e=Gu&&e[Gu]||e["@@iterator"],typeof e=="function"?e:null)}var Lf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Df=Object.assign,Vf={};function sr(e,t,n){this.props=e,this.context=t,this.refs=Vf,this.updater=n||Lf}sr.prototype.isReactComponent={};sr.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")};sr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bf(){}bf.prototype=sr.prototype;function ga(e,t,n){this.props=e,this.context=t,this.refs=Vf,this.updater=n||Lf}var ya=ga.prototype=new bf;ya.constructor=ga;Df(ya,sr.prototype);ya.isPureReactComponent=!0;var Ku=Array.isArray,_f=Object.prototype.hasOwnProperty,va={current:null},Of={key:!0,ref:!0,__self:!0,__source:!0};function If(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)_f.call(t,r)&&!Of.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:mi,type:e,key:s,ref:o,props:i,_owner:va.current}}function qg(e,t){return{$$typeof:mi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xa(e){return typeof e=="object"&&e!==null&&e.$$typeof===mi}function Jg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qu=/\/+/g;function po(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Jg(""+e.key):t.toString(36)}function Qi(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case mi:case Bg:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+po(o,0):r,Ku(i)?(n="",e!=null&&(n=e.replace(Qu,"$&/")+"/"),Qi(i,t,n,"",function(u){return u})):i!=null&&(xa(i)&&(i=qg(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Qu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Ku(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+po(s,l);o+=Qi(s,t,n,a,i)}else if(a=Zg(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+po(s,l++),o+=Qi(s,t,n,a,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ni(e,t,n){if(e==null)return e;var r=[],i=0;return Qi(e,r,"","",function(s){return t.call(n,s,i++)}),r}function ey(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 ke={current:null},Xi={transition:null},ty={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:Xi,ReactCurrentOwner:va};function Ff(){throw Error("act(...) is not supported in production builds of React.")}_.Children={map:Ni,forEach:function(e,t,n){Ni(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ni(e,function(){t++}),t},toArray:function(e){return Ni(e,function(t){return t})||[]},only:function(e){if(!xa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};_.Component=sr;_.Fragment=Ug;_.Profiler=Wg;_.PureComponent=ga;_.StrictMode=$g;_.Suspense=Qg;_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ty;_.act=Ff;_.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=Df({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=va.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)_f.call(t,a)&&!Of.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:mi,type:e.type,key:i,ref:s,props:r,_owner:o}};_.createContext=function(e){return e={$$typeof:Gg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Hg,_context:e},e.Consumer=e};_.createElement=If;_.createFactory=function(e){var t=If.bind(null,e);return t.type=e,t};_.createRef=function(){return{current:null}};_.forwardRef=function(e){return{$$typeof:Kg,render:e}};_.isValidElement=xa;_.lazy=function(e){return{$$typeof:Yg,_payload:{_status:-1,_result:e},_init:ey}};_.memo=function(e,t){return{$$typeof:Xg,type:e,compare:t===void 0?null:t}};_.startTransition=function(e){var t=Xi.transition;Xi.transition={};try{e()}finally{Xi.transition=t}};_.unstable_act=Ff;_.useCallback=function(e,t){return ke.current.useCallback(e,t)};_.useContext=function(e){return ke.current.useContext(e)};_.useDebugValue=function(){};_.useDeferredValue=function(e){return ke.current.useDeferredValue(e)};_.useEffect=function(e,t){return ke.current.useEffect(e,t)};_.useId=function(){return ke.current.useId()};_.useImperativeHandle=function(e,t,n){return ke.current.useImperativeHandle(e,t,n)};_.useInsertionEffect=function(e,t){return ke.current.useInsertionEffect(e,t)};_.useLayoutEffect=function(e,t){return ke.current.useLayoutEffect(e,t)};_.useMemo=function(e,t){return ke.current.useMemo(e,t)};_.useReducer=function(e,t,n){return ke.current.useReducer(e,t,n)};_.useRef=function(e){return ke.current.useRef(e)};_.useState=function(e){return ke.current.useState(e)};_.useSyncExternalStore=function(e,t,n){return ke.current.useSyncExternalStore(e,t,n)};_.useTransition=function(){return ke.current.useTransition()};_.version="18.3.1";Rf.exports=_;var C=Rf.exports;const zf=zg(C),ny=Fg({__proto__:null,default:zf},[C]);/**
|
|
* @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 ry=C,iy=Symbol.for("react.element"),sy=Symbol.for("react.fragment"),oy=Object.prototype.hasOwnProperty,ly=ry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ay={key:!0,ref:!0,__self:!0,__source:!0};function Bf(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)oy.call(t,r)&&!ay.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:iy,type:e,key:s,ref:o,props:i,_owner:ly.current}}$s.Fragment=sy;$s.jsx=Bf;$s.jsxs=Bf;Mf.exports=$s;var g=Mf.exports,nl={},Uf={exports:{}},_e={},$f={exports:{}},Wf={};/**
|
|
* @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(j,R){var D=j.length;j.push(R);e:for(;0<D;){var F=D-1>>>1,le=j[F];if(0<i(le,R))j[F]=R,j[D]=le,D=F;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var R=j[0],D=j.pop();if(D!==R){j[0]=D;e:for(var F=0,le=j.length,Ti=le>>>1;F<Ti;){var en=2*(F+1)-1,ho=j[en],tn=en+1,Ei=j[tn];if(0>i(ho,D))tn<le&&0>i(Ei,ho)?(j[F]=Ei,j[tn]=D,F=tn):(j[F]=ho,j[en]=D,F=en);else if(tn<le&&0>i(Ei,D))j[F]=Ei,j[tn]=D,F=tn;else break e}}return R}function i(j,R){var D=j.sortIndex-R.sortIndex;return D!==0?D:j.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,d=null,f=3,y=!1,x=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(j){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=j)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function S(j){if(v=!1,m(j),!x)if(n(a)!==null)x=!0,ct(k);else{var R=n(u);R!==null&&q(S,R.startTime-j)}}function k(j,R){x=!1,v&&(v=!1,p(P),P=-1),y=!0;var D=f;try{for(m(R),d=n(a);d!==null&&(!(d.expirationTime>R)||j&&!Z());){var F=d.callback;if(typeof F=="function"){d.callback=null,f=d.priorityLevel;var le=F(d.expirationTime<=R);R=e.unstable_now(),typeof le=="function"?d.callback=le:d===n(a)&&r(a),m(R)}else r(a);d=n(a)}if(d!==null)var Ti=!0;else{var en=n(u);en!==null&&q(S,en.startTime-R),Ti=!1}return Ti}finally{d=null,f=D,y=!1}}var E=!1,N=null,P=-1,b=5,M=-1;function Z(){return!(e.unstable_now()-M<b)}function O(){if(N!==null){var j=e.unstable_now();M=j;var R=!0;try{R=N(!0,j)}finally{R?et():(E=!1,N=null)}}else E=!1}var et;if(typeof h=="function")et=function(){h(O)};else if(typeof MessageChannel<"u"){var tt=new MessageChannel,fr=tt.port2;tt.port1.onmessage=O,et=function(){fr.postMessage(null)}}else et=function(){w(O,0)};function ct(j){N=j,E||(E=!0,et())}function q(j,R){P=w(function(){j(e.unstable_now())},R)}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(j){j.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,ct(k))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(j){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var D=f;f=R;try{return j()}finally{f=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,R){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var D=f;f=j;try{return R()}finally{f=D}},e.unstable_scheduleCallback=function(j,R,D){var F=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?F+D:F):D=F,j){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=D+le,j={id:c++,callback:R,priorityLevel:j,startTime:D,expirationTime:le,sortIndex:-1},D>F?(j.sortIndex=D,t(u,j),n(a)===null&&j===n(u)&&(v?(p(P),P=-1):v=!0,q(S,D-F))):(j.sortIndex=le,t(a,j),x||y||(x=!0,ct(k))),j},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(j){var R=f;return function(){var D=f;f=R;try{return j.apply(this,arguments)}finally{f=D}}}})(Wf);$f.exports=Wf;var uy=$f.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 cy=C,Ve=uy;function T(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 Hf=new Set,Hr={};function wn(e,t){Xn(e,t),Xn(e+"Capture",t)}function Xn(e,t){for(Hr[e]=t,e=0;e<t.length;e++)Hf.add(t[e])}var xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rl=Object.prototype.hasOwnProperty,dy=/^[: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]*$/,Xu={},Yu={};function fy(e){return rl.call(Yu,e)?!0:rl.call(Xu,e)?!1:dy.test(e)?Yu[e]=!0:(Xu[e]=!0,!1)}function hy(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 py(e,t,n,r){if(t===null||typeof t>"u"||hy(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 Ce(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new Ce(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){he[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var wa=/[\-:]([a-z])/g;function Sa(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(wa,Sa);he[t]=new Ce(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(wa,Sa);he[t]=new Ce(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(wa,Sa);he[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function ka(e,t,n,r){var i=he.hasOwnProperty(t)?he[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(py(t,n,i,r)&&(n=null),r||i===null?fy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Pt=cy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ji=Symbol.for("react.element"),Tn=Symbol.for("react.portal"),En=Symbol.for("react.fragment"),Ca=Symbol.for("react.strict_mode"),il=Symbol.for("react.profiler"),Gf=Symbol.for("react.provider"),Kf=Symbol.for("react.context"),Pa=Symbol.for("react.forward_ref"),sl=Symbol.for("react.suspense"),ol=Symbol.for("react.suspense_list"),Ta=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Qf=Symbol.for("react.offscreen"),Zu=Symbol.iterator;function hr(e){return e===null||typeof e!="object"?null:(e=Zu&&e[Zu]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,mo;function Tr(e){if(mo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);mo=t&&t[1]||""}return`
|
|
`+mo+e}var go=!1;function yo(e,t){if(!e||go)return"";go=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
`),s=r.stack.split(`
|
|
`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
|
|
`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{go=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tr(e):""}function my(e){switch(e.tag){case 5:return Tr(e.type);case 16:return Tr("Lazy");case 13:return Tr("Suspense");case 19:return Tr("SuspenseList");case 0:case 2:case 15:return e=yo(e.type,!1),e;case 11:return e=yo(e.type.render,!1),e;case 1:return e=yo(e.type,!0),e;default:return""}}function ll(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 En:return"Fragment";case Tn:return"Portal";case il:return"Profiler";case Ca:return"StrictMode";case sl:return"Suspense";case ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kf:return(e.displayName||"Context")+".Consumer";case Gf:return(e._context.displayName||"Context")+".Provider";case Pa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ta:return t=e.displayName||null,t!==null?t:ll(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return ll(e(t))}catch{}}return null}function gy(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 ll(t);case 8:return t===Ca?"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 Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yy(e){var t=Xf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.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 Ai(e){e._valueTracker||(e._valueTracker=yy(e))}function Yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cs(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 al(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(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 Zf(e,t){t=t.checked,t!=null&&ka(e,"checked",t,!1)}function ul(e,t){Zf(e,t);var n=Ht(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")?cl(e,t.type,n):t.hasOwnProperty("defaultValue")&&cl(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ju(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 cl(e,t,n){(t!=="number"||cs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Er=Array.isArray;function Un(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function dl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return Y({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ec(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(Er(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ht(n)}}function qf(e,t){var n=Ht(t.value),r=Ht(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 tc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Jf(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 fl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Jf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Mi,eh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Mi=Mi||document.createElement("div"),Mi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Mi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={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},vy=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){vy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function th(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function nh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=th(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var xy=Y({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 hl(e,t){if(t){if(xy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function pl(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 ml=null;function Ea(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gl=null,$n=null,Wn=null;function nc(e){if(e=vi(e)){if(typeof gl!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Qs(t),gl(e.stateNode,e.type,t))}}function rh(e){$n?Wn?Wn.push(e):Wn=[e]:$n=e}function ih(){if($n){var e=$n,t=Wn;if(Wn=$n=null,nc(e),t)for(e=0;e<t.length;e++)nc(t[e])}}function sh(e,t){return e(t)}function oh(){}var vo=!1;function lh(e,t,n){if(vo)return e(t,n);vo=!0;try{return sh(e,t,n)}finally{vo=!1,($n!==null||Wn!==null)&&(oh(),ih())}}function Kr(e,t){var n=e.stateNode;if(n===null)return null;var r=Qs(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(T(231,t,typeof n));return n}var yl=!1;if(xt)try{var pr={};Object.defineProperty(pr,"passive",{get:function(){yl=!0}}),window.addEventListener("test",pr,pr),window.removeEventListener("test",pr,pr)}catch{yl=!1}function wy(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Dr=!1,ds=null,fs=!1,vl=null,Sy={onError:function(e){Dr=!0,ds=e}};function ky(e,t,n,r,i,s,o,l,a){Dr=!1,ds=null,wy.apply(Sy,arguments)}function Cy(e,t,n,r,i,s,o,l,a){if(ky.apply(this,arguments),Dr){if(Dr){var u=ds;Dr=!1,ds=null}else throw Error(T(198));fs||(fs=!0,vl=u)}}function Sn(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 ah(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 rc(e){if(Sn(e)!==e)throw Error(T(188))}function Py(e){var t=e.alternate;if(!t){if(t=Sn(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return rc(i),e;if(s===r)return rc(i),t;s=s.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function uh(e){return e=Py(e),e!==null?ch(e):null}function ch(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ch(e);if(t!==null)return t;e=e.sibling}return null}var dh=Ve.unstable_scheduleCallback,ic=Ve.unstable_cancelCallback,Ty=Ve.unstable_shouldYield,Ey=Ve.unstable_requestPaint,ne=Ve.unstable_now,Ny=Ve.unstable_getCurrentPriorityLevel,Na=Ve.unstable_ImmediatePriority,fh=Ve.unstable_UserBlockingPriority,hs=Ve.unstable_NormalPriority,jy=Ve.unstable_LowPriority,hh=Ve.unstable_IdlePriority,Ws=null,ot=null;function Ay(e){if(ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Ws,e,void 0,(e.current.flags&128)===128)}catch{}}var Ze=Math.clz32?Math.clz32:Ly,My=Math.log,Ry=Math.LN2;function Ly(e){return e>>>=0,e===0?32:31-(My(e)/Ry|0)|0}var Ri=64,Li=4194304;function Nr(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 ps(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Nr(l):(s&=o,s!==0&&(r=Nr(s)))}else o=n&~i,o!==0?r=Nr(o):s!==0&&(r=Nr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ze(t),i=1<<n,r|=e[n],t&=~i;return r}function Dy(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 Vy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ze(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Dy(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function xl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ph(){var e=Ri;return Ri<<=1,!(Ri&4194240)&&(Ri=64),e}function xo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ze(t),e[t]=n}function by(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ze(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function ja(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var z=0;function mh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gh,Aa,yh,vh,xh,wl=!1,Di=[],_t=null,Ot=null,It=null,Qr=new Map,Xr=new Map,Rt=[],_y="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 sc(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Qr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xr.delete(t.pointerId)}}function mr(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=vi(t),t!==null&&Aa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Oy(e,t,n,r,i){switch(t){case"focusin":return _t=mr(_t,e,t,n,r,i),!0;case"dragenter":return Ot=mr(Ot,e,t,n,r,i),!0;case"mouseover":return It=mr(It,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Qr.set(s,mr(Qr.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Xr.set(s,mr(Xr.get(s)||null,e,t,n,r,i)),!0}return!1}function wh(e){var t=an(e.target);if(t!==null){var n=Sn(t);if(n!==null){if(t=n.tag,t===13){if(t=ah(n),t!==null){e.blockedOn=t,xh(e.priority,function(){yh(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 Yi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ml=r,n.target.dispatchEvent(r),ml=null}else return t=vi(n),t!==null&&Aa(t),e.blockedOn=n,!1;t.shift()}return!0}function oc(e,t,n){Yi(e)&&n.delete(t)}function Iy(){wl=!1,_t!==null&&Yi(_t)&&(_t=null),Ot!==null&&Yi(Ot)&&(Ot=null),It!==null&&Yi(It)&&(It=null),Qr.forEach(oc),Xr.forEach(oc)}function gr(e,t){e.blockedOn===t&&(e.blockedOn=null,wl||(wl=!0,Ve.unstable_scheduleCallback(Ve.unstable_NormalPriority,Iy)))}function Yr(e){function t(i){return gr(i,e)}if(0<Di.length){gr(Di[0],e);for(var n=1;n<Di.length;n++){var r=Di[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_t!==null&&gr(_t,e),Ot!==null&&gr(Ot,e),It!==null&&gr(It,e),Qr.forEach(t),Xr.forEach(t),n=0;n<Rt.length;n++)r=Rt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&(n=Rt[0],n.blockedOn===null);)wh(n),n.blockedOn===null&&Rt.shift()}var Hn=Pt.ReactCurrentBatchConfig,ms=!0;function Fy(e,t,n,r){var i=z,s=Hn.transition;Hn.transition=null;try{z=1,Ma(e,t,n,r)}finally{z=i,Hn.transition=s}}function zy(e,t,n,r){var i=z,s=Hn.transition;Hn.transition=null;try{z=4,Ma(e,t,n,r)}finally{z=i,Hn.transition=s}}function Ma(e,t,n,r){if(ms){var i=Sl(e,t,n,r);if(i===null)Ao(e,t,r,gs,n),sc(e,r);else if(Oy(i,e,t,n,r))r.stopPropagation();else if(sc(e,r),t&4&&-1<_y.indexOf(e)){for(;i!==null;){var s=vi(i);if(s!==null&&gh(s),s=Sl(e,t,n,r),s===null&&Ao(e,t,r,gs,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Ao(e,t,r,null,n)}}var gs=null;function Sl(e,t,n,r){if(gs=null,e=Ea(r),e=an(e),e!==null)if(t=Sn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ah(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 gs=e,null}function Sh(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(Ny()){case Na:return 1;case fh:return 4;case hs:case jy:return 16;case hh:return 536870912;default:return 16}default:return 16}}var Dt=null,Ra=null,Zi=null;function kh(){if(Zi)return Zi;var e,t=Ra,n=t.length,r,i="value"in Dt?Dt.value:Dt.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Zi=i.slice(e,1<r?1-r:void 0)}function qi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vi(){return!0}function lc(){return!1}function Oe(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Vi:lc,this.isPropagationStopped=lc,this}return Y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vi)},persist:function(){},isPersistent:Vi}),t}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},La=Oe(or),yi=Y({},or,{view:0,detail:0}),By=Oe(yi),wo,So,yr,Hs=Y({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Da,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!==yr&&(yr&&e.type==="mousemove"?(wo=e.screenX-yr.screenX,So=e.screenY-yr.screenY):So=wo=0,yr=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:So}}),ac=Oe(Hs),Uy=Y({},Hs,{dataTransfer:0}),$y=Oe(Uy),Wy=Y({},yi,{relatedTarget:0}),ko=Oe(Wy),Hy=Y({},or,{animationName:0,elapsedTime:0,pseudoElement:0}),Gy=Oe(Hy),Ky=Y({},or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qy=Oe(Ky),Xy=Y({},or,{data:0}),uc=Oe(Xy),Yy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zy={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"},qy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qy[e])?!!t[e]:!1}function Da(){return Jy}var ev=Y({},yi,{key:function(e){if(e.key){var t=Yy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Da,charCode:function(e){return e.type==="keypress"?qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tv=Oe(ev),nv=Y({},Hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cc=Oe(nv),rv=Y({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Da}),iv=Oe(rv),sv=Y({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),ov=Oe(sv),lv=Y({},Hs,{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}),av=Oe(lv),uv=[9,13,27,32],Va=xt&&"CompositionEvent"in window,Vr=null;xt&&"documentMode"in document&&(Vr=document.documentMode);var cv=xt&&"TextEvent"in window&&!Vr,Ch=xt&&(!Va||Vr&&8<Vr&&11>=Vr),dc=" ",fc=!1;function Ph(e,t){switch(e){case"keyup":return uv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function dv(e,t){switch(e){case"compositionend":return Th(t);case"keypress":return t.which!==32?null:(fc=!0,dc);case"textInput":return e=t.data,e===dc&&fc?null:e;default:return null}}function fv(e,t){if(Nn)return e==="compositionend"||!Va&&Ph(e,t)?(e=kh(),Zi=Ra=Dt=null,Nn=!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 Ch&&t.locale!=="ko"?null:t.data;default:return null}}var hv={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 hc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hv[e.type]:t==="textarea"}function Eh(e,t,n,r){rh(r),t=ys(t,"onChange"),0<t.length&&(n=new La("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var br=null,Zr=null;function pv(e){Oh(e,0)}function Gs(e){var t=Mn(e);if(Yf(t))return e}function mv(e,t){if(e==="change")return t}var Nh=!1;if(xt){var Co;if(xt){var Po="oninput"in document;if(!Po){var pc=document.createElement("div");pc.setAttribute("oninput","return;"),Po=typeof pc.oninput=="function"}Co=Po}else Co=!1;Nh=Co&&(!document.documentMode||9<document.documentMode)}function mc(){br&&(br.detachEvent("onpropertychange",jh),Zr=br=null)}function jh(e){if(e.propertyName==="value"&&Gs(Zr)){var t=[];Eh(t,Zr,e,Ea(e)),lh(pv,t)}}function gv(e,t,n){e==="focusin"?(mc(),br=t,Zr=n,br.attachEvent("onpropertychange",jh)):e==="focusout"&&mc()}function yv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gs(Zr)}function vv(e,t){if(e==="click")return Gs(t)}function xv(e,t){if(e==="input"||e==="change")return Gs(t)}function wv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Je=typeof Object.is=="function"?Object.is:wv;function qr(e,t){if(Je(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 i=n[r];if(!rl.call(t,i)||!Je(e[i],t[i]))return!1}return!0}function gc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yc(e,t){var n=gc(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=gc(n)}}function Ah(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ah(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mh(){for(var e=window,t=cs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cs(e.document)}return t}function ba(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 Sv(e){var t=Mh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ah(n.ownerDocument.documentElement,n)){if(r!==null&&ba(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=yc(n,s);var o=yc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>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 kv=xt&&"documentMode"in document&&11>=document.documentMode,jn=null,kl=null,_r=null,Cl=!1;function vc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cl||jn==null||jn!==cs(r)||(r=jn,"selectionStart"in r&&ba(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}),_r&&qr(_r,r)||(_r=r,r=ys(kl,"onSelect"),0<r.length&&(t=new La("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jn)))}function bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var An={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionend:bi("Transition","TransitionEnd")},To={},Rh={};xt&&(Rh=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function Ks(e){if(To[e])return To[e];if(!An[e])return e;var t=An[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rh)return To[e]=t[n];return e}var Lh=Ks("animationend"),Dh=Ks("animationiteration"),Vh=Ks("animationstart"),bh=Ks("transitionend"),_h=new Map,xc="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 Xt(e,t){_h.set(e,t),wn(t,[e])}for(var Eo=0;Eo<xc.length;Eo++){var No=xc[Eo],Cv=No.toLowerCase(),Pv=No[0].toUpperCase()+No.slice(1);Xt(Cv,"on"+Pv)}Xt(Lh,"onAnimationEnd");Xt(Dh,"onAnimationIteration");Xt(Vh,"onAnimationStart");Xt("dblclick","onDoubleClick");Xt("focusin","onFocus");Xt("focusout","onBlur");Xt(bh,"onTransitionEnd");Xn("onMouseEnter",["mouseout","mouseover"]);Xn("onMouseLeave",["mouseout","mouseover"]);Xn("onPointerEnter",["pointerout","pointerover"]);Xn("onPointerLeave",["pointerout","pointerover"]);wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wn("onBeforeInput",["compositionend","keypress","textInput","paste"]);wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="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(" "),Tv=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function wc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Cy(r,t,void 0,e),e.currentTarget=null}function Oh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;wc(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;wc(i,l,u),s=a}}}if(fs)throw e=vl,fs=!1,vl=null,e}function $(e,t){var n=t[jl];n===void 0&&(n=t[jl]=new Set);var r=e+"__bubble";n.has(r)||(Ih(t,e,2,!1),n.add(r))}function jo(e,t,n){var r=0;t&&(r|=4),Ih(n,e,r,t)}var _i="_reactListening"+Math.random().toString(36).slice(2);function Jr(e){if(!e[_i]){e[_i]=!0,Hf.forEach(function(n){n!=="selectionchange"&&(Tv.has(n)||jo(n,!1,e),jo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_i]||(t[_i]=!0,jo("selectionchange",!1,t))}}function Ih(e,t,n,r){switch(Sh(t)){case 1:var i=Fy;break;case 4:i=zy;break;default:i=Ma}n=i.bind(null,t,n,e),i=void 0,!yl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ao(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=an(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}lh(function(){var u=s,c=Ea(n),d=[];e:{var f=_h.get(e);if(f!==void 0){var y=La,x=e;switch(e){case"keypress":if(qi(n)===0)break e;case"keydown":case"keyup":y=tv;break;case"focusin":x="focus",y=ko;break;case"focusout":x="blur",y=ko;break;case"beforeblur":case"afterblur":y=ko;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=ac;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=$y;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=iv;break;case Lh:case Dh:case Vh:y=Gy;break;case bh:y=ov;break;case"scroll":y=By;break;case"wheel":y=av;break;case"copy":case"cut":case"paste":y=Qy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=cc}var v=(t&4)!==0,w=!v&&e==="scroll",p=v?f!==null?f+"Capture":null:f;v=[];for(var h=u,m;h!==null;){m=h;var S=m.stateNode;if(m.tag===5&&S!==null&&(m=S,p!==null&&(S=Kr(h,p),S!=null&&v.push(ei(h,S,m)))),w)break;h=h.return}0<v.length&&(f=new y(f,x,null,n,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&n!==ml&&(x=n.relatedTarget||n.fromElement)&&(an(x)||x[wt]))break e;if((y||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=u,x=x?an(x):null,x!==null&&(w=Sn(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=u),y!==x)){if(v=ac,S="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=cc,S="onPointerLeave",p="onPointerEnter",h="pointer"),w=y==null?f:Mn(y),m=x==null?f:Mn(x),f=new v(S,h+"leave",y,n,c),f.target=w,f.relatedTarget=m,S=null,an(c)===u&&(v=new v(p,h+"enter",x,n,c),v.target=m,v.relatedTarget=w,S=v),w=S,y&&x)t:{for(v=y,p=x,h=0,m=v;m;m=Pn(m))h++;for(m=0,S=p;S;S=Pn(S))m++;for(;0<h-m;)v=Pn(v),h--;for(;0<m-h;)p=Pn(p),m--;for(;h--;){if(v===p||p!==null&&v===p.alternate)break t;v=Pn(v),p=Pn(p)}v=null}else v=null;y!==null&&Sc(d,f,y,v,!1),x!==null&&w!==null&&Sc(d,w,x,v,!0)}}e:{if(f=u?Mn(u):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var k=mv;else if(hc(f))if(Nh)k=xv;else{k=yv;var E=gv}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=vv);if(k&&(k=k(e,u))){Eh(d,k,n,c);break e}E&&E(e,f,u),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&cl(f,"number",f.value)}switch(E=u?Mn(u):window,e){case"focusin":(hc(E)||E.contentEditable==="true")&&(jn=E,kl=u,_r=null);break;case"focusout":_r=kl=jn=null;break;case"mousedown":Cl=!0;break;case"contextmenu":case"mouseup":case"dragend":Cl=!1,vc(d,n,c);break;case"selectionchange":if(kv)break;case"keydown":case"keyup":vc(d,n,c)}var N;if(Va)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Nn?Ph(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Ch&&n.locale!=="ko"&&(Nn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Nn&&(N=kh()):(Dt=c,Ra="value"in Dt?Dt.value:Dt.textContent,Nn=!0)),E=ys(u,P),0<E.length&&(P=new uc(P,e,null,n,c),d.push({event:P,listeners:E}),N?P.data=N:(N=Th(n),N!==null&&(P.data=N)))),(N=cv?dv(e,n):fv(e,n))&&(u=ys(u,"onBeforeInput"),0<u.length&&(c=new uc("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=N))}Oh(d,t)})}function ei(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ys(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Kr(e,n),s!=null&&r.unshift(ei(e,s,i)),s=Kr(e,t),s!=null&&r.push(ei(e,s,i))),e=e.return}return r}function Pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Sc(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=Kr(n,s),a!=null&&o.unshift(ei(n,a,l))):i||(a=Kr(n,s),a!=null&&o.push(ei(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ev=/\r\n?/g,Nv=/\u0000|\uFFFD/g;function kc(e){return(typeof e=="string"?e:""+e).replace(Ev,`
|
|
`).replace(Nv,"")}function Oi(e,t,n){if(t=kc(t),kc(e)!==t&&n)throw Error(T(425))}function vs(){}var Pl=null,Tl=null;function El(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 Nl=typeof setTimeout=="function"?setTimeout:void 0,jv=typeof clearTimeout=="function"?clearTimeout:void 0,Cc=typeof Promise=="function"?Promise:void 0,Av=typeof queueMicrotask=="function"?queueMicrotask:typeof Cc<"u"?function(e){return Cc.resolve(null).then(e).catch(Mv)}:Nl;function Mv(e){setTimeout(function(){throw e})}function Mo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Yr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Yr(t)}function Ft(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 Pc(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 lr=Math.random().toString(36).slice(2),it="__reactFiber$"+lr,ti="__reactProps$"+lr,wt="__reactContainer$"+lr,jl="__reactEvents$"+lr,Rv="__reactListeners$"+lr,Lv="__reactHandles$"+lr;function an(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wt]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pc(e);e!==null;){if(n=e[it])return n;e=Pc(e)}return t}e=n,n=e.parentNode}return null}function vi(e){return e=e[it]||e[wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Qs(e){return e[ti]||null}var Al=[],Rn=-1;function Yt(e){return{current:e}}function W(e){0>Rn||(e.current=Al[Rn],Al[Rn]=null,Rn--)}function B(e,t){Rn++,Al[Rn]=e.current,e.current=t}var Gt={},xe=Yt(Gt),Ee=Yt(!1),mn=Gt;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ne(e){return e=e.childContextTypes,e!=null}function xs(){W(Ee),W(xe)}function Tc(e,t,n){if(xe.current!==Gt)throw Error(T(168));B(xe,t),B(Ee,n)}function Fh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,gy(e)||"Unknown",i));return Y({},n,r)}function ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,mn=xe.current,B(xe,e),B(Ee,Ee.current),!0}function Ec(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Fh(e,t,mn),r.__reactInternalMemoizedMergedChildContext=e,W(Ee),W(xe),B(xe,e)):W(Ee),B(Ee,n)}var ht=null,Xs=!1,Ro=!1;function zh(e){ht===null?ht=[e]:ht.push(e)}function Dv(e){Xs=!0,zh(e)}function Zt(){if(!Ro&&ht!==null){Ro=!0;var e=0,t=z;try{var n=ht;for(z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ht=null,Xs=!1}catch(i){throw ht!==null&&(ht=ht.slice(e+1)),dh(Na,Zt),i}finally{z=t,Ro=!1}}return null}var Ln=[],Dn=0,Ss=null,ks=0,ze=[],Be=0,gn=null,pt=1,mt="";function rn(e,t){Ln[Dn++]=ks,Ln[Dn++]=Ss,Ss=e,ks=t}function Bh(e,t,n){ze[Be++]=pt,ze[Be++]=mt,ze[Be++]=gn,gn=e;var r=pt;e=mt;var i=32-Ze(r)-1;r&=~(1<<i),n+=1;var s=32-Ze(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,pt=1<<32-Ze(t)+i|n<<i|r,mt=s+e}else pt=1<<s|n<<i|r,mt=e}function _a(e){e.return!==null&&(rn(e,1),Bh(e,1,0))}function Oa(e){for(;e===Ss;)Ss=Ln[--Dn],Ln[Dn]=null,ks=Ln[--Dn],Ln[Dn]=null;for(;e===gn;)gn=ze[--Be],ze[Be]=null,mt=ze[--Be],ze[Be]=null,pt=ze[--Be],ze[Be]=null}var Le=null,Re=null,G=!1,Ye=null;function Uh(e,t){var n=Ue(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 Nc(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,Le=e,Re=Ft(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Le=e,Re=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gn!==null?{id:pt,overflow:mt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ue(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Le=e,Re=null,!0):!1;default:return!1}}function Ml(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Rl(e){if(G){var t=Re;if(t){var n=t;if(!Nc(e,t)){if(Ml(e))throw Error(T(418));t=Ft(n.nextSibling);var r=Le;t&&Nc(e,t)?Uh(r,n):(e.flags=e.flags&-4097|2,G=!1,Le=e)}}else{if(Ml(e))throw Error(T(418));e.flags=e.flags&-4097|2,G=!1,Le=e}}}function jc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Le=e}function Ii(e){if(e!==Le)return!1;if(!G)return jc(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!El(e.type,e.memoizedProps)),t&&(t=Re)){if(Ml(e))throw $h(),Error(T(418));for(;t;)Uh(e,t),t=Ft(t.nextSibling)}if(jc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Re=Ft(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Re=null}}else Re=Le?Ft(e.stateNode.nextSibling):null;return!0}function $h(){for(var e=Re;e;)e=Ft(e.nextSibling)}function Zn(){Re=Le=null,G=!1}function Ia(e){Ye===null?Ye=[e]:Ye.push(e)}var Vv=Pt.ReactCurrentBatchConfig;function vr(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(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Fi(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ac(e){var t=e._init;return t(e._payload)}function Wh(e){function t(p,h){if(e){var m=p.deletions;m===null?(p.deletions=[h],p.flags|=16):m.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=$t(p,h),p.index=0,p.sibling=null,p}function s(p,h,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<h?(p.flags|=2,h):m):(p.flags|=2,h)):(p.flags|=1048576,h)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,h,m,S){return h===null||h.tag!==6?(h=Io(m,p.mode,S),h.return=p,h):(h=i(h,m),h.return=p,h)}function a(p,h,m,S){var k=m.type;return k===En?c(p,h,m.props.children,S,m.key):h!==null&&(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===At&&Ac(k)===h.type)?(S=i(h,m.props),S.ref=vr(p,h,m),S.return=p,S):(S=ss(m.type,m.key,m.props,null,p.mode,S),S.ref=vr(p,h,m),S.return=p,S)}function u(p,h,m,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=Fo(m,p.mode,S),h.return=p,h):(h=i(h,m.children||[]),h.return=p,h)}function c(p,h,m,S,k){return h===null||h.tag!==7?(h=hn(m,p.mode,S,k),h.return=p,h):(h=i(h,m),h.return=p,h)}function d(p,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Io(""+h,p.mode,m),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ji:return m=ss(h.type,h.key,h.props,null,p.mode,m),m.ref=vr(p,null,h),m.return=p,m;case Tn:return h=Fo(h,p.mode,m),h.return=p,h;case At:var S=h._init;return d(p,S(h._payload),m)}if(Er(h)||hr(h))return h=hn(h,p.mode,m,null),h.return=p,h;Fi(p,h)}return null}function f(p,h,m,S){var k=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return k!==null?null:l(p,h,""+m,S);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ji:return m.key===k?a(p,h,m,S):null;case Tn:return m.key===k?u(p,h,m,S):null;case At:return k=m._init,f(p,h,k(m._payload),S)}if(Er(m)||hr(m))return k!==null?null:c(p,h,m,S,null);Fi(p,m)}return null}function y(p,h,m,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return p=p.get(m)||null,l(h,p,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ji:return p=p.get(S.key===null?m:S.key)||null,a(h,p,S,k);case Tn:return p=p.get(S.key===null?m:S.key)||null,u(h,p,S,k);case At:var E=S._init;return y(p,h,m,E(S._payload),k)}if(Er(S)||hr(S))return p=p.get(m)||null,c(h,p,S,k,null);Fi(h,S)}return null}function x(p,h,m,S){for(var k=null,E=null,N=h,P=h=0,b=null;N!==null&&P<m.length;P++){N.index>P?(b=N,N=null):b=N.sibling;var M=f(p,N,m[P],S);if(M===null){N===null&&(N=b);break}e&&N&&M.alternate===null&&t(p,N),h=s(M,h,P),E===null?k=M:E.sibling=M,E=M,N=b}if(P===m.length)return n(p,N),G&&rn(p,P),k;if(N===null){for(;P<m.length;P++)N=d(p,m[P],S),N!==null&&(h=s(N,h,P),E===null?k=N:E.sibling=N,E=N);return G&&rn(p,P),k}for(N=r(p,N);P<m.length;P++)b=y(N,p,P,m[P],S),b!==null&&(e&&b.alternate!==null&&N.delete(b.key===null?P:b.key),h=s(b,h,P),E===null?k=b:E.sibling=b,E=b);return e&&N.forEach(function(Z){return t(p,Z)}),G&&rn(p,P),k}function v(p,h,m,S){var k=hr(m);if(typeof k!="function")throw Error(T(150));if(m=k.call(m),m==null)throw Error(T(151));for(var E=k=null,N=h,P=h=0,b=null,M=m.next();N!==null&&!M.done;P++,M=m.next()){N.index>P?(b=N,N=null):b=N.sibling;var Z=f(p,N,M.value,S);if(Z===null){N===null&&(N=b);break}e&&N&&Z.alternate===null&&t(p,N),h=s(Z,h,P),E===null?k=Z:E.sibling=Z,E=Z,N=b}if(M.done)return n(p,N),G&&rn(p,P),k;if(N===null){for(;!M.done;P++,M=m.next())M=d(p,M.value,S),M!==null&&(h=s(M,h,P),E===null?k=M:E.sibling=M,E=M);return G&&rn(p,P),k}for(N=r(p,N);!M.done;P++,M=m.next())M=y(N,p,P,M.value,S),M!==null&&(e&&M.alternate!==null&&N.delete(M.key===null?P:M.key),h=s(M,h,P),E===null?k=M:E.sibling=M,E=M);return e&&N.forEach(function(O){return t(p,O)}),G&&rn(p,P),k}function w(p,h,m,S){if(typeof m=="object"&&m!==null&&m.type===En&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ji:e:{for(var k=m.key,E=h;E!==null;){if(E.key===k){if(k=m.type,k===En){if(E.tag===7){n(p,E.sibling),h=i(E,m.props.children),h.return=p,p=h;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===At&&Ac(k)===E.type){n(p,E.sibling),h=i(E,m.props),h.ref=vr(p,E,m),h.return=p,p=h;break e}n(p,E);break}else t(p,E);E=E.sibling}m.type===En?(h=hn(m.props.children,p.mode,S,m.key),h.return=p,p=h):(S=ss(m.type,m.key,m.props,null,p.mode,S),S.ref=vr(p,h,m),S.return=p,p=S)}return o(p);case Tn:e:{for(E=m.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Fo(m,p.mode,S),h.return=p,p=h}return o(p);case At:return E=m._init,w(p,h,E(m._payload),S)}if(Er(m))return x(p,h,m,S);if(hr(m))return v(p,h,m,S);Fi(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=Io(m,p.mode,S),h.return=p,p=h),o(p)):n(p,h)}return w}var qn=Wh(!0),Hh=Wh(!1),Cs=Yt(null),Ps=null,Vn=null,Fa=null;function za(){Fa=Vn=Ps=null}function Ba(e){var t=Cs.current;W(Cs),e._currentValue=t}function Ll(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 Gn(e,t){Ps=e,Fa=Vn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Te=!0),e.firstContext=null)}function We(e){var t=e._currentValue;if(Fa!==e)if(e={context:e,memoizedValue:t,next:null},Vn===null){if(Ps===null)throw Error(T(308));Vn=e,Ps.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return t}var un=null;function Ua(e){un===null?un=[e]:un.push(e)}function Gh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ua(t)):(n.next=i.next,i.next=n),t.interleaved=n,St(e,r)}function St(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 Mt=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kh(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 gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,St(e,n)}return i=r.interleaved,i===null?(t.next=t,Ua(r)):(t.next=i.next,i.next=t),r.interleaved=t,St(e,n)}function Ji(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,ja(e,n)}}function Mc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ts(e,t,n,r){var i=e.updateQueue;Mt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var d=i.baseState;o=0,c=u=a=null,l=s;do{var f=l.lane,y=l.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,v=l;switch(f=t,y=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){d=x.call(y,d,f);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,f=typeof x=="function"?x.call(y,d,f):x,f==null)break e;d=Y({},d,f);break e;case 2:Mt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else y={eventTime:y,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=y,a=d):c=c.next=y,o|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);vn|=o,e.lanes=o,e.memoizedState=d}}function Rc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var xi={},lt=Yt(xi),ni=Yt(xi),ri=Yt(xi);function cn(e){if(e===xi)throw Error(T(174));return e}function Wa(e,t){switch(B(ri,t),B(ni,e),B(lt,xi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fl(t,e)}W(lt),B(lt,t)}function Jn(){W(lt),W(ni),W(ri)}function Qh(e){cn(ri.current);var t=cn(lt.current),n=fl(t,e.type);t!==n&&(B(ni,e),B(lt,n))}function Ha(e){ni.current===e&&(W(lt),W(ni))}var K=Yt(0);function Es(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 Lo=[];function Ga(){for(var e=0;e<Lo.length;e++)Lo[e]._workInProgressVersionPrimary=null;Lo.length=0}var es=Pt.ReactCurrentDispatcher,Do=Pt.ReactCurrentBatchConfig,yn=0,X=null,se=null,ae=null,Ns=!1,Or=!1,ii=0,bv=0;function pe(){throw Error(T(321))}function Ka(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Je(e[n],t[n]))return!1;return!0}function Qa(e,t,n,r,i,s){if(yn=s,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,es.current=e===null||e.memoizedState===null?Fv:zv,e=n(r,i),Or){s=0;do{if(Or=!1,ii=0,25<=s)throw Error(T(301));s+=1,ae=se=null,t.updateQueue=null,es.current=Bv,e=n(r,i)}while(Or)}if(es.current=js,t=se!==null&&se.next!==null,yn=0,ae=se=X=null,Ns=!1,t)throw Error(T(300));return e}function Xa(){var e=ii!==0;return ii=0,e}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?X.memoizedState=ae=e:ae=ae.next=e,ae}function He(){if(se===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=se.next;var t=ae===null?X.memoizedState:ae.next;if(t!==null)ae=t,se=e;else{if(e===null)throw Error(T(310));se=e,e={memoizedState:se.memoizedState,baseState:se.baseState,baseQueue:se.baseQueue,queue:se.queue,next:null},ae===null?X.memoizedState=ae=e:ae=ae.next=e}return ae}function si(e,t){return typeof t=="function"?t(e):t}function Vo(e){var t=He(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=se,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var c=u.lane;if((yn&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,o=r):a=a.next=d,X.lanes|=c,vn|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,Je(r,t.memoizedState)||(Te=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,X.lanes|=s,vn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bo(e){var t=He(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Je(s,t.memoizedState)||(Te=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Xh(){}function Yh(e,t){var n=X,r=He(),i=t(),s=!Je(r.memoizedState,i);if(s&&(r.memoizedState=i,Te=!0),r=r.queue,Ya(Jh.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ae!==null&&ae.memoizedState.tag&1){if(n.flags|=2048,oi(9,qh.bind(null,n,r,i,t),void 0,null),ue===null)throw Error(T(349));yn&30||Zh(n,t,i)}return i}function Zh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qh(e,t,n,r){t.value=n,t.getSnapshot=r,ep(t)&&tp(e)}function Jh(e,t,n){return n(function(){ep(t)&&tp(e)})}function ep(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Je(e,n)}catch{return!0}}function tp(e){var t=St(e,1);t!==null&&qe(t,e,1,-1)}function Lc(e){var t=rt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:e},t.queue=e,e=e.dispatch=Iv.bind(null,X,e),[t.memoizedState,e]}function oi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.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 np(){return He().memoizedState}function ts(e,t,n,r){var i=rt();X.flags|=e,i.memoizedState=oi(1|t,n,void 0,r===void 0?null:r)}function Ys(e,t,n,r){var i=He();r=r===void 0?null:r;var s=void 0;if(se!==null){var o=se.memoizedState;if(s=o.destroy,r!==null&&Ka(r,o.deps)){i.memoizedState=oi(t,n,s,r);return}}X.flags|=e,i.memoizedState=oi(1|t,n,s,r)}function Dc(e,t){return ts(8390656,8,e,t)}function Ya(e,t){return Ys(2048,8,e,t)}function rp(e,t){return Ys(4,2,e,t)}function ip(e,t){return Ys(4,4,e,t)}function sp(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 op(e,t,n){return n=n!=null?n.concat([e]):null,Ys(4,4,sp.bind(null,t,e),n)}function Za(){}function lp(e,t){var n=He();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ap(e,t){var n=He();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function up(e,t,n){return yn&21?(Je(n,t)||(n=ph(),X.lanes|=n,vn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Te=!0),e.memoizedState=n)}function _v(e,t){var n=z;z=n!==0&&4>n?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{z=n,Do.transition=r}}function cp(){return He().memoizedState}function Ov(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dp(e))fp(t,n);else if(n=Gh(e,t,n,r),n!==null){var i=Se();qe(n,e,r,i),hp(n,t,r)}}function Iv(e,t,n){var r=Ut(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dp(e))fp(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Je(l,o)){var a=t.interleaved;a===null?(i.next=i,Ua(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Gh(e,t,i,r),n!==null&&(i=Se(),qe(n,e,r,i),hp(n,t,r))}}function dp(e){var t=e.alternate;return e===X||t!==null&&t===X}function fp(e,t){Or=Ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ja(e,n)}}var js={readContext:We,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},Fv={readContext:We,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:Dc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ts(4194308,4,sp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return ts(4,2,e,t)},useMemo:function(e,t){var n=rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rt();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=Ov.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:Lc,useDebugValue:Za,useDeferredValue:function(e){return rt().memoizedState=e},useTransition:function(){var e=Lc(!1),t=e[0];return e=_v.bind(null,e[1]),rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=rt();if(G){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ue===null)throw Error(T(349));yn&30||Zh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Dc(Jh.bind(null,r,s,e),[e]),r.flags|=2048,oi(9,qh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=rt(),t=ue.identifierPrefix;if(G){var n=mt,r=pt;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zv={readContext:We,useCallback:lp,useContext:We,useEffect:Ya,useImperativeHandle:op,useInsertionEffect:rp,useLayoutEffect:ip,useMemo:ap,useReducer:Vo,useRef:np,useState:function(){return Vo(si)},useDebugValue:Za,useDeferredValue:function(e){var t=He();return up(t,se.memoizedState,e)},useTransition:function(){var e=Vo(si)[0],t=He().memoizedState;return[e,t]},useMutableSource:Xh,useSyncExternalStore:Yh,useId:cp,unstable_isNewReconciler:!1},Bv={readContext:We,useCallback:lp,useContext:We,useEffect:Ya,useImperativeHandle:op,useInsertionEffect:rp,useLayoutEffect:ip,useMemo:ap,useReducer:bo,useRef:np,useState:function(){return bo(si)},useDebugValue:Za,useDeferredValue:function(e){var t=He();return se===null?t.memoizedState=e:up(t,se.memoizedState,e)},useTransition:function(){var e=bo(si)[0],t=He().memoizedState;return[e,t]},useMutableSource:Xh,useSyncExternalStore:Yh,useId:cp,unstable_isNewReconciler:!1};function Qe(e,t){if(e&&e.defaultProps){t=Y({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Dl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zs={isMounted:function(e){return(e=e._reactInternals)?Sn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Ut(e),s=gt(r,i);s.payload=t,n!=null&&(s.callback=n),t=zt(e,s,i),t!==null&&(qe(t,e,i,r),Ji(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Ut(e),s=gt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=zt(e,s,i),t!==null&&(qe(t,e,i,r),Ji(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Se(),r=Ut(e),i=gt(n,r);i.tag=2,t!=null&&(i.callback=t),t=zt(e,i,r),t!==null&&(qe(t,e,r,n),Ji(t,e,r))}};function Vc(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!qr(n,r)||!qr(i,s):!0}function pp(e,t,n){var r=!1,i=Gt,s=t.contextType;return typeof s=="object"&&s!==null?s=We(s):(i=Ne(t)?mn:xe.current,r=t.contextTypes,s=(r=r!=null)?Yn(e,i):Gt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function bc(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&&Zs.enqueueReplaceState(t,t.state,null)}function Vl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},$a(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=We(s):(s=Ne(t)?mn:xe.current,i.context=Yn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Dl(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Zs.enqueueReplaceState(i,i.state,null),Ts(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function er(e,t){try{var n="",r=t;do n+=my(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
Error generating stack: `+s.message+`
|
|
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function _o(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Uv=typeof WeakMap=="function"?WeakMap:Map;function mp(e,t,n){n=gt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ms||(Ms=!0,Hl=r),bl(e,t)},n}function gp(e,t,n){n=gt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bl(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){bl(e,t),typeof r!="function"&&(Bt===null?Bt=new Set([this]):Bt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function _c(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Uv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=n0.bind(null,e,t,n),t.then(e,e))}function Oc(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 Ic(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gt(-1,1),t.tag=2,zt(n,t,1))),n.lanes|=1),e)}var $v=Pt.ReactCurrentOwner,Te=!1;function we(e,t,n,r){t.child=e===null?Hh(t,null,n,r):qn(t,e.child,n,r)}function Fc(e,t,n,r,i){n=n.render;var s=t.ref;return Gn(t,i),r=Qa(e,t,n,r,s,i),n=Xa(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(G&&n&&_a(t),t.flags|=1,we(e,t,r,i),t.child)}function zc(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!su(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,yp(e,t,s,r,i)):(e=ss(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:qr,n(o,r)&&e.ref===t.ref)return kt(e,t,i)}return t.flags|=1,e=$t(s,r),e.ref=t.ref,e.return=t,t.child=e}function yp(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(qr(s,r)&&e.ref===t.ref)if(Te=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Te=!0);else return t.lanes=e.lanes,kt(e,t,i)}return _l(e,t,n,r,i)}function vp(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},B(_n,Me),Me|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,B(_n,Me),Me|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,B(_n,Me),Me|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,B(_n,Me),Me|=r;return we(e,t,i,n),t.child}function xp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,i){var s=Ne(n)?mn:xe.current;return s=Yn(t,s),Gn(t,i),n=Qa(e,t,n,r,s,i),r=Xa(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(G&&r&&_a(t),t.flags|=1,we(e,t,n,i),t.child)}function Bc(e,t,n,r,i){if(Ne(n)){var s=!0;ws(t)}else s=!1;if(Gn(t,i),t.stateNode===null)ns(e,t),pp(t,n,r),Vl(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=We(u):(u=Ne(n)?mn:xe.current,u=Yn(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&bc(t,o,r,u),Mt=!1;var f=t.memoizedState;o.state=f,Ts(t,r,o,i),a=t.memoizedState,l!==r||f!==a||Ee.current||Mt?(typeof c=="function"&&(Dl(t,n,c,r),a=t.memoizedState),(l=Mt||Vc(t,n,l,r,f,a,u))?(d||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=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Kh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Qe(t.type,l),o.props=u,d=t.pendingProps,f=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=We(a):(a=Ne(n)?mn:xe.current,a=Yn(t,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==d||f!==a)&&bc(t,o,r,a),Mt=!1,f=t.memoizedState,o.state=f,Ts(t,r,o,i);var x=t.memoizedState;l!==d||f!==x||Ee.current||Mt?(typeof y=="function"&&(Dl(t,n,y,r),x=t.memoizedState),(u=Mt||Vc(t,n,u,r,f,x,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ol(e,t,n,r,s,i)}function Ol(e,t,n,r,i,s){xp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Ec(t,n,!1),kt(e,t,s);r=t.stateNode,$v.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=qn(t,e.child,null,s),t.child=qn(t,null,l,s)):we(e,t,l,s),t.memoizedState=r.state,i&&Ec(t,n,!0),t.child}function wp(e){var t=e.stateNode;t.pendingContext?Tc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Tc(e,t.context,!1),Wa(e,t.containerInfo)}function Uc(e,t,n,r,i){return Zn(),Ia(i),t.flags|=256,we(e,t,n,r),t.child}var Il={dehydrated:null,treeContext:null,retryLane:0};function Fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sp(e,t,n){var r=t.pendingProps,i=K.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),B(K,i&1),e===null)return Rl(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,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=eo(o,r,0,null),e=hn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fl(n),t.memoizedState=Il,e):qa(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Wv(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=$t(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=$t(l,s):(s=hn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Fl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Il,r}return s=e.child,e=s.sibling,r=$t(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function qa(e,t){return t=eo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zi(e,t,n,r){return r!==null&&Ia(r),qn(t,e.child,null,n),e=qa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wv(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=_o(Error(T(422))),zi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=eo({mode:"visible",children:r.children},i,0,null),s=hn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&qn(t,e.child,null,o),t.child.memoizedState=Fl(o),t.memoizedState=Il,s);if(!(t.mode&1))return zi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(T(419)),r=_o(s,r,void 0),zi(e,t,o,r)}if(l=(o&e.childLanes)!==0,Te||l){if(r=ue,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,St(e,i),qe(r,e,i,-1))}return iu(),r=_o(Error(T(421))),zi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=r0.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Re=Ft(i.nextSibling),Le=t,G=!0,Ye=null,e!==null&&(ze[Be++]=pt,ze[Be++]=mt,ze[Be++]=gn,pt=e.id,mt=e.overflow,gn=t),t=qa(t,r.children),t.flags|=4096,t)}function $c(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ll(e.return,t,n)}function Oo(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function kp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(we(e,t,r.children,n),r=K.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&&$c(e,n,t);else if(e.tag===19)$c(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(B(K,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Es(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Es(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oo(t,!0,n,null,s);break;case"together":Oo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ns(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=$t(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$t(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hv(e,t,n){switch(t.tag){case 3:wp(t),Zn();break;case 5:Qh(t);break;case 1:Ne(t.type)&&ws(t);break;case 4:Wa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;B(Cs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(K,K.current&1),t.flags|=128,null):n&t.child.childLanes?Sp(e,t,n):(B(K,K.current&1),e=kt(e,t,n),e!==null?e.sibling:null);B(K,K.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return kp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),B(K,K.current),r)break;return null;case 22:case 23:return t.lanes=0,vp(e,t,n)}return kt(e,t,n)}var Cp,zl,Pp,Tp;Cp=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}};zl=function(){};Pp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,cn(lt.current);var s=null;switch(n){case"input":i=al(e,i),r=al(e,r),s=[];break;case"select":i=Y({},i,{value:void 0}),r=Y({},r,{value:void 0}),s=[];break;case"textarea":i=dl(e,i),r=dl(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vs)}hl(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Hr.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Hr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&$("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Tp=function(e,t,n,r){n!==r&&(t.flags|=4)};function xr(e,t){if(!G)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 me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gv(e,t,n){var r=t.pendingProps;switch(Oa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return Ne(t.type)&&xs(),me(t),null;case 3:return r=t.stateNode,Jn(),W(Ee),W(xe),Ga(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ye!==null&&(Ql(Ye),Ye=null))),zl(e,t),me(t),null;case 5:Ha(t);var i=cn(ri.current);if(n=t.type,e!==null&&t.stateNode!=null)Pp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return me(t),null}if(e=cn(lt.current),Ii(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[it]=t,r[ti]=s,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(i=0;i<jr.length;i++)$(jr[i],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":qu(r,s),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$("invalid",r);break;case"textarea":ec(r,s),$("invalid",r)}hl(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),i=["children",""+l]):Hr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&$("scroll",r)}switch(n){case"input":Ai(r),Ju(r,s,!0);break;case"textarea":Ai(r),tc(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=vs)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Jf(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[it]=t,e[ti]=r,Cp(e,t,!1,!1),t.stateNode=e;e:{switch(o=pl(n,r),n){case"dialog":$("cancel",e),$("close",e),i=r;break;case"iframe":case"object":case"embed":$("load",e),i=r;break;case"video":case"audio":for(i=0;i<jr.length;i++)$(jr[i],e);i=r;break;case"source":$("error",e),i=r;break;case"img":case"image":case"link":$("error",e),$("load",e),i=r;break;case"details":$("toggle",e),i=r;break;case"input":qu(e,r),i=al(e,r),$("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Y({},r,{value:void 0}),$("invalid",e);break;case"textarea":ec(e,r),i=dl(e,r),$("invalid",e);break;default:i=r}hl(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?nh(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&eh(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Gr(e,a):typeof a=="number"&&Gr(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Hr.hasOwnProperty(s)?a!=null&&s==="onScroll"&&$("scroll",e):a!=null&&ka(e,s,a,o))}switch(n){case"input":Ai(e),Ju(e,r,!1);break;case"textarea":Ai(e),tc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ht(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Un(e,!!r.multiple,s,!1):r.defaultValue!=null&&Un(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=vs)}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 me(t),null;case 6:if(e&&t.stateNode!=null)Tp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=cn(ri.current),cn(lt.current),Ii(t)){if(r=t.stateNode,n=t.memoizedProps,r[it]=t,(s=r.nodeValue!==n)&&(e=Le,e!==null))switch(e.tag){case 3:Oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[it]=t,t.stateNode=r}return me(t),null;case 13:if(W(K),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&Re!==null&&t.mode&1&&!(t.flags&128))$h(),Zn(),t.flags|=98560,s=!1;else if(s=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(T(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(T(317));s[it]=t}else Zn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),s=!1}else Ye!==null&&(Ql(Ye),Ye=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||K.current&1?oe===0&&(oe=3):iu())),t.updateQueue!==null&&(t.flags|=4),me(t),null);case 4:return Jn(),zl(e,t),e===null&&Jr(t.stateNode.containerInfo),me(t),null;case 10:return Ba(t.type._context),me(t),null;case 17:return Ne(t.type)&&xs(),me(t),null;case 19:if(W(K),s=t.memoizedState,s===null)return me(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)xr(s,!1);else{if(oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Es(e),o!==null){for(t.flags|=128,xr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return B(K,K.current&1|2),t.child}e=e.sibling}s.tail!==null&&ne()>tr&&(t.flags|=128,r=!0,xr(s,!1),t.lanes=4194304)}else{if(!r)if(e=Es(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!G)return me(t),null}else 2*ne()-s.renderingStartTime>tr&&n!==1073741824&&(t.flags|=128,r=!0,xr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ne(),t.sibling=null,n=K.current,B(K,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return ru(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Kv(e,t){switch(Oa(t),t.tag){case 1:return Ne(t.type)&&xs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jn(),W(Ee),W(xe),Ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ha(t),null;case 13:if(W(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(K),null;case 4:return Jn(),null;case 10:return Ba(t.type._context),null;case 22:case 23:return ru(),null;case 24:return null;default:return null}}var Bi=!1,ye=!1,Qv=typeof WeakSet=="function"?WeakSet:Set,A=null;function bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function Bl(e,t,n){try{n()}catch(r){ee(e,t,r)}}var Wc=!1;function Xv(e,t){if(Pl=ms,e=Mh(),ba(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(l=o+i),d!==s||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++c===r&&(a=o),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tl={focusedElem:e,selectionRange:n},ms=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;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,w=x.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:Qe(t.type,v),w);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(S){ee(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return x=Wc,Wc=!1,x}function Ir(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Bl(t,n,s)}i=i.next}while(i!==r)}}function qs(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 Ul(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 Ep(e){var t=e.alternate;t!==null&&(e.alternate=null,Ep(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[it],delete t[ti],delete t[jl],delete t[Rv],delete t[Lv])),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 Np(e){return e.tag===5||e.tag===3||e.tag===4}function Hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Np(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 $l(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=vs));else if(r!==4&&(e=e.child,e!==null))for($l(e,t,n),e=e.sibling;e!==null;)$l(e,t,n),e=e.sibling}function Wl(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(Wl(e,t,n),e=e.sibling;e!==null;)Wl(e,t,n),e=e.sibling}var ce=null,Xe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)jp(e,t,n),n=n.sibling}function jp(e,t,n){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Ws,n)}catch{}switch(n.tag){case 5:ye||bn(n,t);case 6:var r=ce,i=Xe;ce=null,Tt(e,t,n),ce=r,Xe=i,ce!==null&&(Xe?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(Xe?(e=ce,n=n.stateNode,e.nodeType===8?Mo(e.parentNode,n):e.nodeType===1&&Mo(e,n),Yr(e)):Mo(ce,n.stateNode));break;case 4:r=ce,i=Xe,ce=n.stateNode.containerInfo,Xe=!0,Tt(e,t,n),ce=r,Xe=i;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Bl(n,t,o),i=i.next}while(i!==r)}Tt(e,t,n);break;case 1:if(!ye&&(bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ee(n,t,l)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,Tt(e,t,n),ye=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function Gc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qv),t.forEach(function(r){var i=i0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:ce=l.stateNode,Xe=!1;break e;case 3:ce=l.stateNode.containerInfo,Xe=!0;break e;case 4:ce=l.stateNode.containerInfo,Xe=!0;break e}l=l.return}if(ce===null)throw Error(T(160));jp(s,o,i),ce=null,Xe=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ee(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ap(t,e),t=t.sibling}function Ap(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ge(t,e),nt(e),r&4){try{Ir(3,e,e.return),qs(3,e)}catch(v){ee(e,e.return,v)}try{Ir(5,e,e.return)}catch(v){ee(e,e.return,v)}}break;case 1:Ge(t,e),nt(e),r&512&&n!==null&&bn(n,n.return);break;case 5:if(Ge(t,e),nt(e),r&512&&n!==null&&bn(n,n.return),e.flags&32){var i=e.stateNode;try{Gr(i,"")}catch(v){ee(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&Zf(i,s),pl(l,o);var u=pl(l,s);for(o=0;o<a.length;o+=2){var c=a[o],d=a[o+1];c==="style"?nh(i,d):c==="dangerouslySetInnerHTML"?eh(i,d):c==="children"?Gr(i,d):ka(i,c,d,u)}switch(l){case"input":ul(i,s);break;case"textarea":qf(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?Un(i,!!s.multiple,y,!1):f!==!!s.multiple&&(s.defaultValue!=null?Un(i,!!s.multiple,s.defaultValue,!0):Un(i,!!s.multiple,s.multiple?[]:"",!1))}i[ti]=s}catch(v){ee(e,e.return,v)}}break;case 6:if(Ge(t,e),nt(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(v){ee(e,e.return,v)}}break;case 3:if(Ge(t,e),nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Yr(t.containerInfo)}catch(v){ee(e,e.return,v)}break;case 4:Ge(t,e),nt(e);break;case 13:Ge(t,e),nt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(tu=ne())),r&4&&Gc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(u=ye)||c,Ge(t,e),ye=u):Ge(t,e),nt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(A=e,c=e.child;c!==null;){for(d=A=c;A!==null;){switch(f=A,y=f.child,f.tag){case 0:case 11:case 14:case 15:Ir(4,f,f.return);break;case 1:bn(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){ee(r,n,v)}}break;case 5:bn(f,f.return);break;case 22:if(f.memoizedState!==null){Qc(d);continue}}y!==null?(y.return=f,A=y):Qc(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=d.stateNode,a=d.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=th("display",o))}catch(v){ee(e,e.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){ee(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ge(t,e),nt(e),r&4&&Gc(e);break;case 21:break;default:Ge(t,e),nt(e)}}function nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Np(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Gr(i,""),r.flags&=-33);var s=Hc(e);Wl(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Hc(e);$l(e,l,o);break;default:throw Error(T(161))}}catch(a){ee(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yv(e,t,n){A=e,Mp(e)}function Mp(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var i=A,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Bi;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||ye;l=Bi;var u=ye;if(Bi=o,(ye=a)&&!u)for(A=i;A!==null;)o=A,a=o.child,o.tag===22&&o.memoizedState!==null?Xc(i):a!==null?(a.return=o,A=a):Xc(i);for(;s!==null;)A=s,Mp(s),s=s.sibling;A=i,Bi=l,ye=u}Kc(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,A=s):Kc(e)}}function Kc(e){for(;A!==null;){var t=A;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ye||qs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Qe(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Rc(t,s,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}Rc(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Yr(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}ye||t.flags&512&&Ul(t)}catch(f){ee(t,t.return,f)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function Qc(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function Xc(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qs(4,t)}catch(a){ee(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ee(t,i,a)}}var s=t.return;try{Ul(t)}catch(a){ee(t,s,a)}break;case 5:var o=t.return;try{Ul(t)}catch(a){ee(t,o,a)}}}catch(a){ee(t,t.return,a)}if(t===e){A=null;break}var l=t.sibling;if(l!==null){l.return=t.return,A=l;break}A=t.return}}var Zv=Math.ceil,As=Pt.ReactCurrentDispatcher,Ja=Pt.ReactCurrentOwner,$e=Pt.ReactCurrentBatchConfig,I=0,ue=null,re=null,fe=0,Me=0,_n=Yt(0),oe=0,li=null,vn=0,Js=0,eu=0,Fr=null,Pe=null,tu=0,tr=1/0,ft=null,Ms=!1,Hl=null,Bt=null,Ui=!1,Vt=null,Rs=0,zr=0,Gl=null,rs=-1,is=0;function Se(){return I&6?ne():rs!==-1?rs:rs=ne()}function Ut(e){return e.mode&1?I&2&&fe!==0?fe&-fe:Vv.transition!==null?(is===0&&(is=ph()),is):(e=z,e!==0||(e=window.event,e=e===void 0?16:Sh(e.type)),e):1}function qe(e,t,n,r){if(50<zr)throw zr=0,Gl=null,Error(T(185));gi(e,n,r),(!(I&2)||e!==ue)&&(e===ue&&(!(I&2)&&(Js|=n),oe===4&&Lt(e,fe)),je(e,r),n===1&&I===0&&!(t.mode&1)&&(tr=ne()+500,Xs&&Zt()))}function je(e,t){var n=e.callbackNode;Vy(e,t);var r=ps(e,e===ue?fe:0);if(r===0)n!==null&&ic(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ic(n),t===1)e.tag===0?Dv(Yc.bind(null,e)):zh(Yc.bind(null,e)),Av(function(){!(I&6)&&Zt()}),n=null;else{switch(mh(r)){case 1:n=Na;break;case 4:n=fh;break;case 16:n=hs;break;case 536870912:n=hh;break;default:n=hs}n=Ip(n,Rp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Rp(e,t){if(rs=-1,is=0,I&6)throw Error(T(327));var n=e.callbackNode;if(Kn()&&e.callbackNode!==n)return null;var r=ps(e,e===ue?fe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ls(e,r);else{t=r;var i=I;I|=2;var s=Dp();(ue!==e||fe!==t)&&(ft=null,tr=ne()+500,fn(e,t));do try{e0();break}catch(l){Lp(e,l)}while(!0);za(),As.current=s,I=i,re!==null?t=0:(ue=null,fe=0,t=oe)}if(t!==0){if(t===2&&(i=xl(e),i!==0&&(r=i,t=Kl(e,i))),t===1)throw n=li,fn(e,0),Lt(e,r),je(e,ne()),n;if(t===6)Lt(e,r);else{if(i=e.current.alternate,!(r&30)&&!qv(i)&&(t=Ls(e,r),t===2&&(s=xl(e),s!==0&&(r=s,t=Kl(e,s))),t===1))throw n=li,fn(e,0),Lt(e,r),je(e,ne()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:sn(e,Pe,ft);break;case 3:if(Lt(e,r),(r&130023424)===r&&(t=tu+500-ne(),10<t)){if(ps(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Se(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Nl(sn.bind(null,e,Pe,ft),t);break}sn(e,Pe,ft);break;case 4:if(Lt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ze(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zv(r/1960))-r,10<r){e.timeoutHandle=Nl(sn.bind(null,e,Pe,ft),r);break}sn(e,Pe,ft);break;case 5:sn(e,Pe,ft);break;default:throw Error(T(329))}}}return je(e,ne()),e.callbackNode===n?Rp.bind(null,e):null}function Kl(e,t){var n=Fr;return e.current.memoizedState.isDehydrated&&(fn(e,t).flags|=256),e=Ls(e,t),e!==2&&(t=Pe,Pe=n,t!==null&&Ql(t)),e}function Ql(e){Pe===null?Pe=e:Pe.push.apply(Pe,e)}function qv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Je(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Lt(e,t){for(t&=~eu,t&=~Js,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ze(t),r=1<<n;e[n]=-1,t&=~r}}function Yc(e){if(I&6)throw Error(T(327));Kn();var t=ps(e,0);if(!(t&1))return je(e,ne()),null;var n=Ls(e,t);if(e.tag!==0&&n===2){var r=xl(e);r!==0&&(t=r,n=Kl(e,r))}if(n===1)throw n=li,fn(e,0),Lt(e,t),je(e,ne()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sn(e,Pe,ft),je(e,ne()),null}function nu(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(tr=ne()+500,Xs&&Zt())}}function xn(e){Vt!==null&&Vt.tag===0&&!(I&6)&&Kn();var t=I;I|=1;var n=$e.transition,r=z;try{if($e.transition=null,z=1,e)return e()}finally{z=r,$e.transition=n,I=t,!(I&6)&&Zt()}}function ru(){Me=_n.current,W(_n)}function fn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jv(n)),re!==null)for(n=re.return;n!==null;){var r=n;switch(Oa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xs();break;case 3:Jn(),W(Ee),W(xe),Ga();break;case 5:Ha(r);break;case 4:Jn();break;case 13:W(K);break;case 19:W(K);break;case 10:Ba(r.type._context);break;case 22:case 23:ru()}n=n.return}if(ue=e,re=e=$t(e.current,null),fe=Me=t,oe=0,li=null,eu=Js=vn=0,Pe=Fr=null,un!==null){for(t=0;t<un.length;t++)if(n=un[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}un=null}return e}function Lp(e,t){do{var n=re;try{if(za(),es.current=js,Ns){for(var r=X.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ns=!1}if(yn=0,ae=se=X=null,Or=!1,ii=0,Ja.current=null,n===null||n.return===null){oe=1,li=t,re=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=fe,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=Oc(o);if(y!==null){y.flags&=-257,Ic(y,o,l,s,t),y.mode&1&&_c(s,u,t),t=y,a=u;var x=t.updateQueue;if(x===null){var v=new Set;v.add(a),t.updateQueue=v}else x.add(a);break e}else{if(!(t&1)){_c(s,u,t),iu();break e}a=Error(T(426))}}else if(G&&l.mode&1){var w=Oc(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Ic(w,o,l,s,t),Ia(er(a,l));break e}}s=a=er(a,l),oe!==4&&(oe=2),Fr===null?Fr=[s]:Fr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=mp(s,a,t);Mc(s,p);break e;case 1:l=a;var h=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Bt===null||!Bt.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=gp(s,l,t);Mc(s,S);break e}}s=s.return}while(s!==null)}bp(n)}catch(k){t=k,re===n&&n!==null&&(re=n=n.return);continue}break}while(!0)}function Dp(){var e=As.current;return As.current=js,e===null?js:e}function iu(){(oe===0||oe===3||oe===2)&&(oe=4),ue===null||!(vn&268435455)&&!(Js&268435455)||Lt(ue,fe)}function Ls(e,t){var n=I;I|=2;var r=Dp();(ue!==e||fe!==t)&&(ft=null,fn(e,t));do try{Jv();break}catch(i){Lp(e,i)}while(!0);if(za(),I=n,As.current=r,re!==null)throw Error(T(261));return ue=null,fe=0,oe}function Jv(){for(;re!==null;)Vp(re)}function e0(){for(;re!==null&&!Ty();)Vp(re)}function Vp(e){var t=Op(e.alternate,e,Me);e.memoizedProps=e.pendingProps,t===null?bp(e):re=t,Ja.current=null}function bp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Kv(n,t),n!==null){n.flags&=32767,re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{oe=6,re=null;return}}else if(n=Gv(n,t,Me),n!==null){re=n;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);oe===0&&(oe=5)}function sn(e,t,n){var r=z,i=$e.transition;try{$e.transition=null,z=1,t0(e,t,n,r)}finally{$e.transition=i,z=r}return null}function t0(e,t,n,r){do Kn();while(Vt!==null);if(I&6)throw Error(T(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(by(e,s),e===ue&&(re=ue=null,fe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ui||(Ui=!0,Ip(hs,function(){return Kn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=$e.transition,$e.transition=null;var o=z;z=1;var l=I;I|=4,Ja.current=null,Xv(e,n),Ap(n,e),Sv(Tl),ms=!!Pl,Tl=Pl=null,e.current=n,Yv(n),Ey(),I=l,z=o,$e.transition=s}else e.current=n;if(Ui&&(Ui=!1,Vt=e,Rs=i),s=e.pendingLanes,s===0&&(Bt=null),Ay(n.stateNode),je(e,ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ms)throw Ms=!1,e=Hl,Hl=null,e;return Rs&1&&e.tag!==0&&Kn(),s=e.pendingLanes,s&1?e===Gl?zr++:(zr=0,Gl=e):zr=0,Zt(),null}function Kn(){if(Vt!==null){var e=mh(Rs),t=$e.transition,n=z;try{if($e.transition=null,z=16>e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,Rs=0,I&6)throw Error(T(331));var i=I;for(I|=4,A=e.current;A!==null;){var s=A,o=s.child;if(A.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(A=u;A!==null;){var c=A;switch(c.tag){case 0:case 11:case 15:Ir(8,c,s)}var d=c.child;if(d!==null)d.return=c,A=d;else for(;A!==null;){c=A;var f=c.sibling,y=c.return;if(Ep(c),c===u){A=null;break}if(f!==null){f.return=y,A=f;break}A=y}}}var x=s.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}A=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,A=o;else e:for(;A!==null;){if(s=A,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ir(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,A=p;break e}A=s.return}}var h=e.current;for(A=h;A!==null;){o=A;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,A=m;else e:for(o=h;A!==null;){if(l=A,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:qs(9,l)}}catch(k){ee(l,l.return,k)}if(l===o){A=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,A=S;break e}A=l.return}}if(I=i,Zt(),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Ws,e)}catch{}r=!0}return r}finally{z=n,$e.transition=t}}return!1}function Zc(e,t,n){t=er(n,t),t=mp(e,t,1),e=zt(e,t,1),t=Se(),e!==null&&(gi(e,1,t),je(e,t))}function ee(e,t,n){if(e.tag===3)Zc(e,e,n);else for(;t!==null;){if(t.tag===3){Zc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bt===null||!Bt.has(r))){e=er(n,e),e=gp(t,e,1),t=zt(t,e,1),e=Se(),t!==null&&(gi(t,1,e),je(t,e));break}}t=t.return}}function n0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Se(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(fe&n)===n&&(oe===4||oe===3&&(fe&130023424)===fe&&500>ne()-tu?fn(e,0):eu|=n),je(e,t)}function _p(e,t){t===0&&(e.mode&1?(t=Li,Li<<=1,!(Li&130023424)&&(Li=4194304)):t=1);var n=Se();e=St(e,t),e!==null&&(gi(e,t,n),je(e,n))}function r0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_p(e,n)}function i0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),_p(e,n)}var Op;Op=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)Te=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Te=!1,Hv(e,t,n);Te=!!(e.flags&131072)}else Te=!1,G&&t.flags&1048576&&Bh(t,ks,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ns(e,t),e=t.pendingProps;var i=Yn(t,xe.current);Gn(t,n),i=Qa(null,t,r,e,i,n);var s=Xa();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ne(r)?(s=!0,ws(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,$a(t),i.updater=Zs,t.stateNode=i,i._reactInternals=t,Vl(t,r,e,n),t=Ol(null,t,r,!0,s,n)):(t.tag=0,G&&s&&_a(t),we(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ns(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=o0(r),e=Qe(r,e),i){case 0:t=_l(null,t,r,e,n);break e;case 1:t=Bc(null,t,r,e,n);break e;case 11:t=Fc(null,t,r,e,n);break e;case 14:t=zc(null,t,r,Qe(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),_l(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),Bc(e,t,r,i,n);case 3:e:{if(wp(t),e===null)throw Error(T(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Kh(e,t),Ts(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=er(Error(T(423)),t),t=Uc(e,t,r,n,i);break e}else if(r!==i){i=er(Error(T(424)),t),t=Uc(e,t,r,n,i);break e}else for(Re=Ft(t.stateNode.containerInfo.firstChild),Le=t,G=!0,Ye=null,n=Hh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zn(),r===i){t=kt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return Qh(t),e===null&&Rl(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,El(r,i)?o=null:s!==null&&El(r,s)&&(t.flags|=32),xp(e,t),we(e,t,o,n),t.child;case 6:return e===null&&Rl(t),null;case 13:return Sp(e,t,n);case 4:return Wa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qn(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),Fc(e,t,r,i,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,B(Cs,r._currentValue),r._currentValue=o,s!==null)if(Je(s.value,o)){if(s.children===i.children&&!Ee.current){t=kt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=gt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ll(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(T(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ll(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}we(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gn(t,n),i=We(i),r=r(i),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,i=Qe(r,t.pendingProps),i=Qe(r.type,i),zc(e,t,r,i,n);case 15:return yp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),ns(e,t),t.tag=1,Ne(r)?(e=!0,ws(t)):e=!1,Gn(t,n),pp(t,r,i),Vl(t,r,i,n),Ol(null,t,r,!0,e,n);case 19:return kp(e,t,n);case 22:return vp(e,t,n)}throw Error(T(156,t.tag))};function Ip(e,t){return dh(e,t)}function s0(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 Ue(e,t,n,r){return new s0(e,t,n,r)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function o0(e){if(typeof e=="function")return su(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pa)return 11;if(e===Ta)return 14}return 2}function $t(e,t){var n=e.alternate;return n===null?(n=Ue(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 ss(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")su(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case En:return hn(n.children,i,s,t);case Ca:o=8,i|=8;break;case il:return e=Ue(12,n,t,i|2),e.elementType=il,e.lanes=s,e;case sl:return e=Ue(13,n,t,i),e.elementType=sl,e.lanes=s,e;case ol:return e=Ue(19,n,t,i),e.elementType=ol,e.lanes=s,e;case Qf:return eo(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gf:o=10;break e;case Kf:o=9;break e;case Pa:o=11;break e;case Ta:o=14;break e;case At:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=Ue(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function hn(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function eo(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=Qf,e.lanes=n,e.stateNode={isHidden:!1},e}function Io(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function Fo(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function l0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xo(0),this.expirationTimes=xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ou(e,t,n,r,i,s,o,l,a){return e=new l0(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ue(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(s),e}function a0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Fp(e){if(!e)return Gt;e=e._reactInternals;e:{if(Sn(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ne(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Ne(n))return Fh(e,n,t)}return t}function zp(e,t,n,r,i,s,o,l,a){return e=ou(n,r,!0,e,i,s,o,l,a),e.context=Fp(null),n=e.current,r=Se(),i=Ut(n),s=gt(r,i),s.callback=t??null,zt(n,s,i),e.current.lanes=i,gi(e,i,r),je(e,r),e}function to(e,t,n,r){var i=t.current,s=Se(),o=Ut(i);return n=Fp(n),t.context===null?t.context=n:t.pendingContext=n,t=gt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zt(i,t,o),e!==null&&(qe(e,i,o,s),Ji(e,i,o)),o}function Ds(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 qc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}function u0(){return null}var Bp=typeof reportError=="function"?reportError:function(e){console.error(e)};function au(e){this._internalRoot=e}no.prototype.render=au.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));to(e,t,null,null)};no.prototype.unmount=au.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xn(function(){to(null,e,null,null)}),t[wt]=null}};function no(e){this._internalRoot=e}no.prototype.unstable_scheduleHydration=function(e){if(e){var t=vh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&t!==0&&t<Rt[n].priority;n++);Rt.splice(n,0,e),n===0&&wh(e)}};function uu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ro(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jc(){}function c0(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Ds(o);s.call(u)}}var o=zp(t,r,e,0,null,!1,!1,"",Jc);return e._reactRootContainer=o,e[wt]=o.current,Jr(e.nodeType===8?e.parentNode:e),xn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Ds(a);l.call(u)}}var a=ou(e,0,!1,null,null,!1,!1,"",Jc);return e._reactRootContainer=a,e[wt]=a.current,Jr(e.nodeType===8?e.parentNode:e),xn(function(){to(t,a,n,r)}),a}function io(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=Ds(o);l.call(a)}}to(t,o,e,i)}else o=c0(n,t,e,i,r);return Ds(o)}gh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Nr(t.pendingLanes);n!==0&&(ja(t,n|1),je(t,ne()),!(I&6)&&(tr=ne()+500,Zt()))}break;case 13:xn(function(){var r=St(e,1);if(r!==null){var i=Se();qe(r,e,1,i)}}),lu(e,1)}};Aa=function(e){if(e.tag===13){var t=St(e,134217728);if(t!==null){var n=Se();qe(t,e,134217728,n)}lu(e,134217728)}};yh=function(e){if(e.tag===13){var t=Ut(e),n=St(e,t);if(n!==null){var r=Se();qe(n,e,t,r)}lu(e,t)}};vh=function(){return z};xh=function(e,t){var n=z;try{return z=e,t()}finally{z=n}};gl=function(e,t,n){switch(t){case"input":if(ul(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Qs(r);if(!i)throw Error(T(90));Yf(r),ul(r,i)}}}break;case"textarea":qf(e,n);break;case"select":t=n.value,t!=null&&Un(e,!!n.multiple,t,!1)}};sh=nu;oh=xn;var d0={usingClientEntryPoint:!1,Events:[vi,Mn,Qs,rh,ih,nu]},wr={findFiberByHostInstance:an,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},f0={bundleType:wr.bundleType,version:wr.version,rendererPackageName:wr.rendererPackageName,rendererConfig:wr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=uh(e),e===null?null:e.stateNode},findFiberByHostInstance:wr.findFiberByHostInstance||u0,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 $i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$i.isDisabled&&$i.supportsFiber)try{Ws=$i.inject(f0),ot=$i}catch{}}_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d0;_e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uu(t))throw Error(T(200));return a0(e,t,null,n)};_e.createRoot=function(e,t){if(!uu(e))throw Error(T(299));var n=!1,r="",i=Bp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ou(e,1,!1,null,null,n,!1,r,i),e[wt]=t.current,Jr(e.nodeType===8?e.parentNode:e),new au(t)};_e.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(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=uh(t),e=e===null?null:e.stateNode,e};_e.flushSync=function(e){return xn(e)};_e.hydrate=function(e,t,n){if(!ro(t))throw Error(T(200));return io(null,e,t,!0,n)};_e.hydrateRoot=function(e,t,n){if(!uu(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Bp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=zp(t,null,e,1,n??null,i,!1,s,o),e[wt]=t.current,Jr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new no(t)};_e.render=function(e,t,n){if(!ro(t))throw Error(T(200));return io(null,e,t,!1,n)};_e.unmountComponentAtNode=function(e){if(!ro(e))throw Error(T(40));return e._reactRootContainer?(xn(function(){io(null,null,e,!1,function(){e._reactRootContainer=null,e[wt]=null})}),!0):!1};_e.unstable_batchedUpdates=nu;_e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ro(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return io(e,t,n,!1,r)};_e.version="18.3.1-next-f1338f8080-20240426";function Up(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Up)}catch(e){console.error(e)}}Up(),Uf.exports=_e;var h0=Uf.exports,ed=h0;nl.createRoot=ed.createRoot,nl.hydrateRoot=ed.hydrateRoot;/**
|
|
* @remix-run/router v1.23.0
|
|
*
|
|
* 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 ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ai.apply(this,arguments)}var bt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(bt||(bt={}));const td="popstate";function p0(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:l}=r.location;return Xl("",{pathname:s,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Vs(i)}return g0(t,n,null,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $p(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function m0(){return Math.random().toString(36).substr(2,8)}function nd(e,t){return{usr:e.state,key:e.key,idx:t}}function Xl(e,t,n,r){return n===void 0&&(n=null),ai({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ar(t):t,{state:n,key:t&&t.key||r||m0()})}function Vs(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 ar(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 g0(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,l=bt.Pop,a=null,u=c();u==null&&(u=0,o.replaceState(ai({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){l=bt.Pop;let w=c(),p=w==null?null:w-u;u=w,a&&a({action:l,location:v.location,delta:p})}function f(w,p){l=bt.Push;let h=Xl(v.location,w,p);u=c()+1;let m=nd(h,u),S=v.createHref(h);try{o.pushState(m,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(S)}s&&a&&a({action:l,location:v.location,delta:1})}function y(w,p){l=bt.Replace;let h=Xl(v.location,w,p);u=c();let m=nd(h,u),S=v.createHref(h);o.replaceState(m,"",S),s&&a&&a({action:l,location:v.location,delta:0})}function x(w){let p=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof w=="string"?w:Vs(w);return h=h.replace(/ $/,"%20"),ie(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let v={get action(){return l},get location(){return e(i,o)},listen(w){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(td,d),a=w,()=>{i.removeEventListener(td,d),a=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let p=x(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:y,go(w){return o.go(w)}};return v}var rd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rd||(rd={}));function y0(e,t,n){return n===void 0&&(n="/"),v0(e,t,n)}function v0(e,t,n,r){let i=typeof t=="string"?ar(t):t,s=cu(i.pathname||"/",n);if(s==null)return null;let o=Wp(e);x0(o);let l=null;for(let a=0;l==null&&a<o.length;++a){let u=R0(s);l=j0(o[a],u)}return l}function Wp(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(ie(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Wt([r,a.relativePath]),c=n.concat(a);s.children&&s.children.length>0&&(ie(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Wp(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:E0(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let a of Hp(s.path))i(s,o,a)}),t}function Hp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Hp(r.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),i&&l.push(...o),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function x0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:N0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const w0=/^:[\w-]+$/,S0=3,k0=2,C0=1,P0=10,T0=-2,id=e=>e==="*";function E0(e,t){let n=e.split("/"),r=n.length;return n.some(id)&&(r+=T0),t&&(r+=k0),n.filter(i=>!id(i)).reduce((i,s)=>i+(w0.test(s)?S0:s===""?C0:P0),r)}function N0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function j0(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",d=A0({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},c),f=a.route;if(!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Wt([s,d.pathname]),pathnameBase:b0(Wt([s,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(s=Wt([s,d.pathnameBase]))}return o}function A0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=M0(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:y}=c;if(f==="*"){let v=l[d]||"";o=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const x=l[d];return y&&!x?u[f]=void 0:u[f]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function M0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$p(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function R0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $p(!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 cu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function L0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ar(e):e;return{pathname:n?n.startsWith("/")?n:D0(n,t):t,search:_0(r),hash:O0(i)}}function D0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function zo(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 V0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Gp(e,t){let n=V0(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Kp(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ar(e):(i=ai({},e),ie(!i.pathname||!i.pathname.includes("?"),zo("?","pathname","search",i)),ie(!i.pathname||!i.pathname.includes("#"),zo("#","pathname","hash",i)),ie(!i.search||!i.search.includes("#"),zo("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,l;if(o==null)l=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}l=d>=0?t[d]:"/"}let a=L0(i,l),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Wt=e=>e.join("/").replace(/\/\/+/g,"/"),b0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,O0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function I0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Qp=["post","put","patch","delete"];new Set(Qp);const F0=["get",...Qp];new Set(F0);/**
|
|
* React Router v6.30.1
|
|
*
|
|
* 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 ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ui.apply(this,arguments)}const du=C.createContext(null),z0=C.createContext(null),kn=C.createContext(null),so=C.createContext(null),qt=C.createContext({outlet:null,matches:[],isDataRoute:!1}),Xp=C.createContext(null);function B0(e,t){let{relative:n}=t===void 0?{}:t;wi()||ie(!1);let{basename:r,navigator:i}=C.useContext(kn),{hash:s,pathname:o,search:l}=Zp(e,{relative:n}),a=o;return r!=="/"&&(a=o==="/"?r:Wt([r,o])),i.createHref({pathname:a,search:l,hash:s})}function wi(){return C.useContext(so)!=null}function oo(){return wi()||ie(!1),C.useContext(so).location}function Yp(e){C.useContext(kn).static||C.useLayoutEffect(e)}function U0(){let{isDataRoute:e}=C.useContext(qt);return e?nx():$0()}function $0(){wi()||ie(!1);let e=C.useContext(du),{basename:t,future:n,navigator:r}=C.useContext(kn),{matches:i}=C.useContext(qt),{pathname:s}=oo(),o=JSON.stringify(Gp(i,n.v7_relativeSplatPath)),l=C.useRef(!1);return Yp(()=>{l.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=Kp(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Wt([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,s,e])}function W0(){let{matches:e}=C.useContext(qt),t=e[e.length-1];return t?t.params:{}}function Zp(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(kn),{matches:i}=C.useContext(qt),{pathname:s}=oo(),o=JSON.stringify(Gp(i,r.v7_relativeSplatPath));return C.useMemo(()=>Kp(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function H0(e,t){return G0(e,t)}function G0(e,t,n,r){wi()||ie(!1);let{navigator:i}=C.useContext(kn),{matches:s}=C.useContext(qt),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=oo(),c;if(t){var d;let w=typeof t=="string"?ar(t):t;a==="/"||(d=w.pathname)!=null&&d.startsWith(a)||ie(!1),c=w}else c=u;let f=c.pathname||"/",y=f;if(a!=="/"){let w=a.replace(/^\//,"").split("/");y="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=y0(e,{pathname:y}),v=Z0(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Wt([a,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:Wt([a,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&v?C.createElement(so.Provider,{value:{location:ui({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:bt.Pop}},v):v}function K0(){let e=tx(),t=I0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,null)}const Q0=C.createElement(K0,null);class X0 extends C.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?C.createElement(qt.Provider,{value:this.props.routeContext},C.createElement(Xp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Y0(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(du);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(qt.Provider,{value:t},r)}function Z0(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let c=o.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);c>=0||ie(!1),o=o.slice(0,Math.min(o.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<o.length;c++){let d=o[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:y}=n,x=d.route.loader&&f[d.route.id]===void 0&&(!y||y[d.route.id]===void 0);if(d.route.lazy||x){a=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,f)=>{let y,x=!1,v=null,w=null;n&&(y=l&&d.route.id?l[d.route.id]:void 0,v=d.route.errorElement||Q0,a&&(u<0&&f===0?(rx("route-fallback"),x=!0,w=null):u===f&&(x=!0,w=d.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,f+1)),h=()=>{let m;return y?m=v:x?m=w:d.route.Component?m=C.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=c,C.createElement(Y0,{match:d,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?C.createElement(X0,{location:n.location,revalidation:n.revalidation,component:v,error:y,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var qp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qp||{}),Jp=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}(Jp||{});function q0(e){let t=C.useContext(du);return t||ie(!1),t}function J0(e){let t=C.useContext(z0);return t||ie(!1),t}function ex(e){let t=C.useContext(qt);return t||ie(!1),t}function em(e){let t=ex(),n=t.matches[t.matches.length-1];return n.route.id||ie(!1),n.route.id}function tx(){var e;let t=C.useContext(Xp),n=J0(),r=em();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function nx(){let{router:e}=q0(qp.UseNavigateStable),t=em(Jp.UseNavigateStable),n=C.useRef(!1);return Yp(()=>{n.current=!0}),C.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ui({fromRouteId:t},s)))},[e,t])}const sd={};function rx(e,t,n){sd[e]||(sd[e]=!0)}function ix(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function os(e){ie(!1)}function sx(e){let{basename:t="/",children:n=null,location:r,navigationType:i=bt.Pop,navigator:s,static:o=!1,future:l}=e;wi()&&ie(!1);let a=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:a,navigator:s,static:o,future:ui({v7_relativeSplatPath:!1},l)}),[a,l,s,o]);typeof r=="string"&&(r=ar(r));let{pathname:c="/",search:d="",hash:f="",state:y=null,key:x="default"}=r,v=C.useMemo(()=>{let w=cu(c,a);return w==null?null:{location:{pathname:w,search:d,hash:f,state:y,key:x},navigationType:i}},[a,c,d,f,y,x,i]);return v==null?null:C.createElement(kn.Provider,{value:u},C.createElement(so.Provider,{children:n,value:v}))}function ox(e){let{children:t,location:n}=e;return H0(Yl(t),n)}new Promise(()=>{});function Yl(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,i)=>{if(!C.isValidElement(r))return;let s=[...t,i];if(r.type===C.Fragment){n.push.apply(n,Yl(r.props.children,s));return}r.type!==os&&ie(!1),!r.props.index||!r.props.children||ie(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Yl(r.props.children,s)),n.push(o)}),n}/**
|
|
* React Router DOM v6.30.1
|
|
*
|
|
* 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 Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zl.apply(this,arguments)}function lx(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ax(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ux(e,t){return e.button===0&&(!t||t==="_self")&&!ax(e)}const cx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],dx="6";try{window.__reactRouterVersion=dx}catch{}const fx="startTransition",od=ny[fx];function hx(e){let{basename:t,children:n,future:r,window:i}=e,s=C.useRef();s.current==null&&(s.current=p0({window:i,v5Compat:!0}));let o=s.current,[l,a]=C.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=C.useCallback(d=>{u&&od?od(()=>a(d)):a(d)},[a,u]);return C.useLayoutEffect(()=>o.listen(c),[o,c]),C.useEffect(()=>ix(r),[r]),C.createElement(sx,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const px=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,st=C.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:l,target:a,to:u,preventScrollReset:c,viewTransition:d}=t,f=lx(t,cx),{basename:y}=C.useContext(kn),x,v=!1;if(typeof u=="string"&&mx.test(u)&&(x=u,px))try{let m=new URL(window.location.href),S=u.startsWith("//")?new URL(m.protocol+u):new URL(u),k=cu(S.pathname,y);S.origin===m.origin&&k!=null?u=k+S.search+S.hash:v=!0}catch{}let w=B0(u,{relative:i}),p=gx(u,{replace:o,state:l,target:a,preventScrollReset:c,relative:i,viewTransition:d});function h(m){r&&r(m),m.defaultPrevented||p(m)}return C.createElement("a",Zl({},f,{href:x||w,onClick:v||s?r:h,ref:n,target:a}))});var ld;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ld||(ld={}));var ad;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ad||(ad={}));function gx(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:l}=t===void 0?{}:t,a=U0(),u=oo(),c=Zp(e,{relative:o});return C.useCallback(d=>{if(ux(d,n)){d.preventDefault();let f=r!==void 0?r:Vs(u)===Vs(c);a(e,{replace:f,state:i,preventScrollReset:s,relative:o,viewTransition:l})}},[u,a,c,r,i,n,e,s,o,l])}/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const yx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tm=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var vx={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.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const xx=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...l},a)=>C.createElement("svg",{ref:a,...vx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:tm("lucide",i),...l},[...o.map(([u,c])=>C.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ae=(e,t)=>{const n=C.forwardRef(({className:r,...i},s)=>C.createElement(xx,{ref:s,iconNode:t,className:tm(`lucide-${yx(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const wx=Ae("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Bo=Ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ud=Ae("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const nm=Ae("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const fu=Ae("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const cd=Ae("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Sx=Ae("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const dd=Ae("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const kx=Ae("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Cx=Ae("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Px=Ae("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Wi=Ae("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Tx=Ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
* @license lucide-react v0.395.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const fd=Ae("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function rm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=rm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ex(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=rm(e))&&(r&&(r+=" "),r+=t);return r}const hu="-",Nx=e=>{const t=Ax(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const l=o.split(hu);return l[0]===""&&l.length!==1&&l.shift(),im(l,t)||jx(o)},getConflictingClassGroupIds:(o,l)=>{const a=n[o]||[];return l&&r[o]?[...a,...r[o]]:a}}},im=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?im(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(hu);return(o=t.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},hd=/^\[(.+)\]$/,jx=e=>{if(hd.test(e)){const t=hd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ax=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Rx(Object.entries(e.classGroups),n).forEach(([s,o])=>{ql(o,r,s,t)}),r},ql=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:pd(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(Mx(i)){ql(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{ql(o,pd(t,s),n,r)})})},pd=(e,t)=>{let n=e;return t.split(hu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Mx=e=>e.isThemeGetter,Rx=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,l])=>[t+o,l])):s);return[n,i]}):e,Lx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},sm="!",Dx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=l=>{const a=[];let u=0,c=0,d;for(let w=0;w<l.length;w++){let p=l[w];if(u===0){if(p===i&&(r||l.slice(w,w+s)===t)){a.push(l.slice(c,w)),c=w+s;continue}if(p==="/"){d=w;continue}}p==="["?u++:p==="]"&&u--}const f=a.length===0?l:l.substring(c),y=f.startsWith(sm),x=y?f.substring(1):f,v=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:o}):o},Vx=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},bx=e=>({cache:Lx(e.cacheSize),parseClassName:Dx(e),...Nx(e)}),_x=/\s+/,Ox=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(_x);let l="";for(let a=o.length-1;a>=0;a-=1){const u=o[a],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:y}=n(u);let x=!!y,v=r(x?f.substring(0,y):f);if(!v){if(!x){l=u+(l.length>0?" "+l:l);continue}if(v=r(f),!v){l=u+(l.length>0?" "+l:l);continue}x=!1}const w=Vx(c).join(":"),p=d?w+sm:w,h=p+v;if(s.includes(h))continue;s.push(h);const m=i(v,x);for(let S=0;S<m.length;++S){const k=m[S];s.push(p+k)}l=u+(l.length>0?" "+l:l)}return l};function Ix(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=om(t))&&(r&&(r+=" "),r+=n);return r}const om=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=om(e[r]))&&(n&&(n+=" "),n+=t);return n};function Fx(e,...t){let n,r,i,s=o;function o(a){const u=t.reduce((c,d)=>d(c),e());return n=bx(u),r=n.cache.get,i=n.cache.set,s=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=Ox(a,n);return i(a,c),c}return function(){return s(Ix.apply(null,arguments))}}const U=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},lm=/^\[(?:([a-z-]+):)?(.+)\]$/i,zx=/^\d+\/\d+$/,Bx=new Set(["px","full","screen"]),Ux=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$x=/\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$/,Wx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Hx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dt=e=>Qn(e)||Bx.has(e)||zx.test(e),Et=e=>ur(e,"length",e1),Qn=e=>!!e&&!Number.isNaN(Number(e)),Uo=e=>ur(e,"number",Qn),Sr=e=>!!e&&Number.isInteger(Number(e)),Kx=e=>e.endsWith("%")&&Qn(e.slice(0,-1)),V=e=>lm.test(e),Nt=e=>Ux.test(e),Qx=new Set(["length","size","percentage"]),Xx=e=>ur(e,Qx,am),Yx=e=>ur(e,"position",am),Zx=new Set(["image","url"]),qx=e=>ur(e,Zx,n1),Jx=e=>ur(e,"",t1),kr=()=>!0,ur=(e,t,n)=>{const r=lm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},e1=e=>$x.test(e)&&!Wx.test(e),am=()=>!1,t1=e=>Hx.test(e),n1=e=>Gx.test(e),r1=()=>{const e=U("colors"),t=U("spacing"),n=U("blur"),r=U("brightness"),i=U("borderColor"),s=U("borderRadius"),o=U("borderSpacing"),l=U("borderWidth"),a=U("contrast"),u=U("grayscale"),c=U("hueRotate"),d=U("invert"),f=U("gap"),y=U("gradientColorStops"),x=U("gradientColorStopPositions"),v=U("inset"),w=U("margin"),p=U("opacity"),h=U("padding"),m=U("saturate"),S=U("scale"),k=U("sepia"),E=U("skew"),N=U("space"),P=U("translate"),b=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",V,t],O=()=>[V,t],et=()=>["",dt,Et],tt=()=>["auto",Qn,V],fr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ct=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",V],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[Qn,V];return{cacheSize:500,separator:":",theme:{colors:[kr],spacing:[dt,Et],blur:["none","",Nt,V],brightness:F(),borderColor:[e],borderRadius:["none","","full",Nt,V],borderSpacing:O(),borderWidth:et(),contrast:F(),grayscale:R(),hueRotate:F(),invert:R(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Kx,Et],inset:Z(),margin:Z(),opacity:F(),padding:O(),saturate:F(),scale:F(),sepia:R(),skew:F(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[Nt]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...fr(),V]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],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",Sr,V]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Sr,V]}],"grid-cols":[{"grid-cols":[kr]}],"col-start-end":[{col:["auto",{span:["full",Sr,V]},V]}],"col-start":[{"col-start":tt()}],"col-end":[{"col-end":tt()}],"grid-rows":[{"grid-rows":[kr]}],"row-start-end":[{row:["auto",{span:[Sr,V]},V]}],"row-start":[{"row-start":tt()}],"row-end":[{"row-end":tt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,t]}],"min-w":[{"min-w":[V,t,"min","max","fit"]}],"max-w":[{"max-w":[V,t,"none","full","min","max","fit","prose",{screen:[Nt]},Nt]}],h:[{h:[V,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Nt,Et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Uo]}],"font-family":[{font:[kr]}],"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",V]}],"line-clamp":[{"line-clamp":["none",Qn,Uo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dt,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ct(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dt,Et]}],"underline-offset":[{"underline-offset":["auto",dt,V]}],"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",V]}],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",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fr(),Yx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...ct(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:ct()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...ct()]}],"outline-offset":[{"outline-offset":[dt,V]}],"outline-w":[{outline:[dt,Et]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:et()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[dt,Et]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Nt,Jx]}],"shadow-color":[{shadow:[kr]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Nt,V]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[m]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"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",V]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Sr,V]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],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",V]}],"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",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dt,Et,Uo]}],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"]}}},i1=Fx(r1);function s1(...e){return i1(Ex(e))}const bs=C.forwardRef(({className:e,variant:t="default",size:n="default",asChild:r=!1,...i},s)=>{const o=r?"span":"button";return g.jsx(o,{className:s1("inline-flex items-center justify-center whitespace-nowrap text-sm font-black transition-all focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-black focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 uppercase tracking-wider",{"bg-black text-white hover:bg-white hover:text-black border-2 border-black":t==="default","border-2 border-black bg-white hover:bg-black hover:text-white text-black":t==="outline","hover:bg-black hover:text-white":t==="ghost","text-black underline-offset-4 hover:underline":t==="link"},{"h-12 px-6 py-2":n==="default","h-10 px-4":n==="sm","h-14 px-10":n==="lg","h-12 w-12":n==="icon"},e),ref:s,...i})});bs.displayName="Button";const Jl=e=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",...e,children:g.jsx("polygon",{points:"25,46.65 50,3.35 0,3.35",fill:"currentColor"})}),um=({size:e="md",href:t,outerClx:n="",textClx:r="",variant:i="full",onClick:s})=>{let o={};const l=i==="logo-only"?{span:"hidden",icon:""}:i==="text-only"?{span:"",icon:"hidden"}:{span:"",icon:""};e==="lg"||e==="xl"?(o.icon="h-10 w-10 mr-4",o.span="text-3xl"):e==="md"?(o.icon="h-8 w-8 mr-3",o.span="text-2xl tracking-tighter"):e==="sm"?(o.icon="h-6 w-6 mr-2",o.span="text-lg"):(o.icon="h-4 w-4 mr-1",o.span="text-base"),o.icon+=" "+l.icon,o.span+=" "+l.span;const a="flex flex-row items-center "+n,u="inline-block font-bold "+r+(t?" hover:text-gray-600 cursor-pointer ":" cursor-default ")+o.span;return t?g.jsxs(st,{to:t,className:a,onClick:s,children:[g.jsx(Jl,{className:o.icon}),g.jsx("span",{className:u,children:"LUX"})]}):g.jsxs("span",{className:a,onClick:s,children:[g.jsx(Jl,{className:o.icon}),g.jsx("span",{className:u,children:"LUX"})]})};function o1(){const[e,t]=C.useState(!1);return g.jsx("nav",{className:"border-b-4 border-black sticky top-0 z-50 bg-white",children:g.jsxs("div",{className:"container",children:[g.jsxs("div",{className:"flex h-20 items-center justify-between",children:[g.jsx(um,{href:"/",size:"md",variant:"full",outerClx:"no-underline",textClx:"text-black font-heading uppercase"}),g.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[g.jsx(st,{to:"/docs",className:"text-sm font-medium text-black hover:text-gray-600 transition-colors uppercase tracking-wide",children:"Documentation"}),g.jsx(st,{to:"/docs#languages",className:"text-sm font-medium text-black hover:text-gray-600 transition-colors uppercase tracking-wide",children:"Implementations"}),g.jsx(bs,{variant:"outline",size:"sm",asChild:!0,children:g.jsxs("a",{href:"https://github.com/luxfi/consensus",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center",children:[g.jsx(dd,{className:"w-4 h-4 mr-2"}),"GitHub"]})})]}),g.jsx("button",{onClick:()=>t(!e),className:"md:hidden p-2",children:e?g.jsx(Tx,{className:"w-6 h-6"}):g.jsx(Cx,{className:"w-6 h-6"})})]}),e&&g.jsx("div",{className:"md:hidden py-4 border-t border-gray-200",children:g.jsxs("div",{className:"flex flex-col space-y-4",children:[g.jsxs(st,{to:"/docs",className:"flex items-center space-x-2 py-2 text-gray-600 hover:text-black transition-colors",onClick:()=>t(!1),children:[g.jsx(nm,{className:"w-4 h-4"}),g.jsx("span",{className:"font-medium",children:"Documentation"})]}),g.jsxs(st,{to:"/docs#languages",className:"flex items-center space-x-2 py-2 text-gray-600 hover:text-black transition-colors",onClick:()=>t(!1),children:[g.jsx(fu,{className:"w-4 h-4"}),g.jsx("span",{className:"font-medium",children:"Languages"})]}),g.jsxs("a",{href:"https://github.com/luxfi/consensus",target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-2 py-2 text-gray-600 hover:text-black transition-colors",children:[g.jsx(dd,{className:"w-4 h-4"}),g.jsx("span",{className:"font-medium",children:"GitHub"})]})]})})]})})}function l1(){return g.jsx("footer",{className:"border-t-4 border-black py-12 mt-24 bg-black text-white",children:g.jsx("div",{className:"container",children:g.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0",children:[g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(Jl,{className:"w-6 h-6 text-white"}),g.jsx("span",{className:"font-mono text-sm text-gray-400 uppercase tracking-wide",children:"© 2025 Lux Network"})]}),g.jsxs("div",{className:"flex items-center space-x-8",children:[g.jsx("a",{href:"https://lux.network",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-gray-400 hover:text-white transition-colors font-medium uppercase tracking-wide",children:"Lux Network"}),g.jsx("a",{href:"https://hanzo.ai",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-gray-400 hover:text-white transition-colors font-medium uppercase tracking-wide",children:"Hanzo AI"}),g.jsx("a",{href:"https://github.com/luxfi",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-gray-400 hover:text-white transition-colors font-medium uppercase tracking-wide",children:"GitHub"})]})]})})})}function a1({children:e}){return g.jsxs("div",{className:"min-h-screen flex flex-col bg-white dark:bg-black",children:[g.jsx(o1,{}),g.jsx("main",{className:"flex-1",children:e}),g.jsx(l1,{})]})}const cm=C.createContext({});function u1(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const pu=C.createContext(null),dm=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function c1(e=!0){const t=C.useContext(pu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=C.useId();C.useEffect(()=>{e&&i(s)},[e]);const o=C.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const mu=typeof window<"u",d1=mu?C.useLayoutEffect:C.useEffect,De=e=>e;let fm=De;function gu(e){let t;return()=>(t===void 0&&(t=e()),t)}const nr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},yt=e=>e*1e3,vt=e=>e/1e3,f1={useManualTiming:!1};function h1(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(a.schedule(u),e()),u(o)}const a={schedule:(u,c=!1,d=!1)=>{const y=d&&r?t:n;return c&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,a.process(u))}};return a}const Hi=["read","resolveKeyframes","update","preRender","render","postRender"],p1=40;function hm(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Hi.reduce((p,h)=>(p[h]=h1(s),p),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:d,postRender:f}=o,y=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,p1),1),i.timestamp=p,i.isProcessing=!0,l.process(i),a.process(i),u.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},x=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Hi.reduce((p,h)=>{const m=o[h];return p[h]=(S,k=!1,E=!1)=>(n||x(),m.schedule(S,k,E)),p},{}),cancel:p=>{for(let h=0;h<Hi.length;h++)o[Hi[h]].cancel(p)},state:i,steps:o}}const{schedule:H,cancel:Kt,state:de,steps:$o}=hm(typeof requestAnimationFrame<"u"?requestAnimationFrame:De,!0),pm=C.createContext({strict:!1}),md={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"]},rr={};for(const e in md)rr[e]={isEnabled:t=>md[e].some(n=>!!t[n])};function m1(e){for(const t in e)rr[t]={...rr[t],...e[t]}}const g1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _s(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||g1.has(e)}let mm=e=>!_s(e);function y1(e){e&&(mm=t=>t.startsWith("on")?!_s(t):e(t))}try{y1(require("@emotion/is-prop-valid").default)}catch{}function v1(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(mm(i)||n===!0&&_s(i)||!t&&!_s(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function x1(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const lo=C.createContext({});function ci(e){return typeof e=="string"||Array.isArray(e)}function ao(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const yu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vu=["initial",...yu];function uo(e){return ao(e.animate)||vu.some(t=>ci(e[t]))}function gm(e){return!!(uo(e)||e.variants)}function w1(e,t){if(uo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ci(n)?n:void 0,animate:ci(r)?r:void 0}}return e.inherit!==!1?t:{}}function S1(e){const{initial:t,animate:n}=w1(e,C.useContext(lo));return C.useMemo(()=>({initial:t,animate:n}),[gd(t),gd(n)])}function gd(e){return Array.isArray(e)?e.join(" "):e}const k1=Symbol.for("motionComponentSymbol");function On(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function C1(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):On(n)&&(n.current=r))},[t])}const xu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),P1="framerAppearId",ym="data-"+xu(P1),{schedule:wu}=hm(queueMicrotask,!1),vm=C.createContext({});function T1(e,t,n,r,i){var s,o;const{visualElement:l}=C.useContext(lo),a=C.useContext(pm),u=C.useContext(pu),c=C.useContext(dm).reducedMotion,d=C.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,y=C.useContext(vm);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&E1(d.current,n,i,y);const x=C.useRef(!1);C.useInsertionEffect(()=>{f&&x.current&&f.update(n,u)});const v=n[ym],w=C.useRef(!!v&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return d1(()=>{f&&(x.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),wu.render(f.render),w.current&&f.animationState&&f.animationState.animateChanges())}),C.useEffect(()=>{f&&(!w.current&&f.animationState&&f.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,v)}),w.current=!1))}),f}function E1(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:l,layoutScroll:a,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:xm(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||l&&On(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}function xm(e){if(e)return e.options.allowProjection!==!1?e.projection:xm(e.parent)}function N1({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&m1(e);function l(u,c){let d;const f={...C.useContext(dm),...u,layoutId:j1(u)},{isStatic:y}=f,x=S1(u),v=r(u,y);if(!y&&mu){A1();const w=M1(f);d=w.MeasureLayout,x.visualElement=T1(i,v,f,t,w.ProjectionNode)}return g.jsxs(lo.Provider,{value:x,children:[d&&x.visualElement?g.jsx(d,{visualElement:x.visualElement,...f}):null,n(i,u,C1(v,x.visualElement,c),v,y,x.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const a=C.forwardRef(l);return a[k1]=i,a}function j1({layoutId:e}){const t=C.useContext(cm).id;return t&&e!==void 0?t+"-"+e:e}function A1(e,t){C.useContext(pm).strict}function M1(e){const{drag:t,layout:n}=rr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const R1=["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 Su(e){return typeof e!="string"||e.includes("-")?!1:!!(R1.indexOf(e)>-1||/[A-Z]/u.test(e))}function yd(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ku(e,t,n,r){if(typeof t=="function"){const[i,s]=yd(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=yd(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const ea=e=>Array.isArray(e),L1=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),D1=e=>ea(e)?e[e.length-1]||0:e,ve=e=>!!(e&&e.getVelocity);function ls(e){const t=ve(e)?e.get():e;return L1(t)?t.toValue():t}function V1({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:b1(r,i,s,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const wm=e=>(t,n)=>{const r=C.useContext(lo),i=C.useContext(pu),s=()=>V1(e,t,r,i);return n?s():u1(s)};function b1(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=ls(s[f]);let{initial:o,animate:l}=e;const a=uo(e),u=gm(e);t&&u&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?l:o;if(d&&typeof d!="boolean"&&!ao(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y<f.length;y++){const x=ku(e,f[y]);if(x){const{transitionEnd:v,transition:w,...p}=x;for(const h in p){let m=p[h];if(Array.isArray(m)){const S=c?m.length-1:0;m=m[S]}m!==null&&(i[h]=m)}for(const h in v)i[h]=v[h]}}}return i}const cr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cn=new Set(cr),Sm=e=>t=>typeof t=="string"&&t.startsWith(e),km=Sm("--"),_1=Sm("var(--"),Cu=e=>_1(e)?O1.test(e.split("/*")[0].trim()):!1,O1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Cm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ct=(e,t,n)=>n>t?t:n<e?e:n,dr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},di={...dr,transform:e=>Ct(0,1,e)},Gi={...dr,default:1},Si=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),jt=Si("deg"),at=Si("%"),L=Si("px"),I1=Si("vh"),F1=Si("vw"),vd={...at,parse:e=>at.parse(e)/100,transform:e=>at.transform(e*100)},z1={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,backgroundPositionX:L,backgroundPositionY:L},B1={rotate:jt,rotateX:jt,rotateY:jt,rotateZ:jt,scale:Gi,scaleX:Gi,scaleY:Gi,scaleZ:Gi,skew:jt,skewX:jt,skewY:jt,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:di,originX:vd,originY:vd,originZ:L},xd={...dr,transform:Math.round},Pu={...z1,...B1,zIndex:xd,size:L,fillOpacity:di,strokeOpacity:di,numOctaves:xd},U1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$1=cr.length;function W1(e,t,n){let r="",i=!0;for(let s=0;s<$1;s++){const o=cr[s],l=e[o];if(l===void 0)continue;let a=!0;if(typeof l=="number"?a=l===(o.startsWith("scale")?1:0):a=parseFloat(l)===0,!a||n){const u=Cm(l,Pu[o]);if(!a){i=!1;const c=U1[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Tu(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,l=!1;for(const a in t){const u=t[a];if(Cn.has(a)){o=!0;continue}else if(km(a)){i[a]=u;continue}else{const c=Cm(u,Pu[a]);a.startsWith("origin")?(l=!0,s[a]=c):r[a]=c}}if(t.transform||(o||n?r.transform=W1(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:a="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${a} ${u} ${c}`}}const H1={offset:"stroke-dashoffset",array:"stroke-dasharray"},G1={offset:"strokeDashoffset",array:"strokeDasharray"};function K1(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?H1:G1;e[s.offset]=L.transform(-r);const o=L.transform(t),l=L.transform(n);e[s.array]=`${o} ${l}`}function wd(e,t,n){return typeof e=="string"?e:L.transform(t+n*e)}function Q1(e,t,n){const r=wd(t,e.x,e.width),i=wd(n,e.y,e.height);return`${r} ${i}`}function Eu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:l=1,pathOffset:a=0,...u},c,d){if(Tu(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:y,dimensions:x}=e;f.transform&&(x&&(y.transform=f.transform),delete f.transform),x&&(i!==void 0||s!==void 0||y.transform)&&(y.transformOrigin=Q1(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&K1(f,o,l,a,!1)}const Nu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Pm=()=>({...Nu(),attrs:{}}),ju=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Tm(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const Em=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Nm(e,t,n,r){Tm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Em.has(i)?i:xu(i),t.attrs[i])}const Os={};function X1(e){Object.assign(Os,e)}function jm(e,{layout:t,layoutId:n}){return Cn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Os[e]||e==="opacity")}function Au(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(ve(i[o])||t.style&&ve(t.style[o])||jm(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function Am(e,t,n){const r=Au(e,t,n);for(const i in e)if(ve(e[i])||ve(t[i])){const s=cr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function Y1(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Sd=["x","y","width","height","cx","cy","r"],Z1={useVisualState:wm({scrapeMotionValuesFromProps:Am,createRenderState:Pm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in i)if(Cn.has(l)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let l=0;l<Sd.length;l++){const a=Sd[l];e[a]!==t[a]&&(o=!0)}o&&H.read(()=>{Y1(n,r),H.render(()=>{Eu(r,i,ju(n.tagName),e.transformTemplate),Nm(n,r)})})}})},q1={useVisualState:wm({scrapeMotionValuesFromProps:Au,createRenderState:Nu})};function Mm(e,t,n){for(const r in t)!ve(t[r])&&!jm(r,n)&&(e[r]=t[r])}function J1({transformTemplate:e},t){return C.useMemo(()=>{const n=Nu();return Tu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ew(e,t){const n=e.style||{},r={};return Mm(r,n,e),Object.assign(r,J1(e,t)),r}function tw(e,t){const n={},r=ew(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}function nw(e,t,n,r){const i=C.useMemo(()=>{const s=Pm();return Eu(s,t,ju(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Mm(s,e.style,e),i.style={...s,...i.style}}return i}function rw(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(Su(n)?nw:tw)(r,s,o,n),u=v1(r,typeof n=="string",e),c=n!==C.Fragment?{...u,...a,ref:i}:{},{children:d}=r,f=C.useMemo(()=>ve(d)?d.get():d,[d]);return C.createElement(n,{...c,children:f})}}function iw(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Su(r)?Z1:q1,preloadedFeatures:e,useRender:rw(i),createVisualElement:t,Component:r};return N1(o)}}function Rm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function co(e,t,n){const r=e.getProps();return ku(r,t,n!==void 0?n:r.custom,e)}const sw=gu(()=>window.ScrollTimeline!==void 0);class ow{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(sw()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class lw extends ow{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Mu(e,t){return e?e[t]||e.default||e:void 0}const ta=2e4;function Lm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ta;)t+=n,r=e.next(t);return t>=ta?1/0:t}function Ru(e){return typeof e=="function"}function kd(e,t){e.timeline=t,e.onfinish=null}const Lu=e=>Array.isArray(e)&&typeof e[0]=="number",aw={linearEasing:void 0};function uw(e,t){const n=gu(e);return()=>{var r;return(r=aw[t])!==null&&r!==void 0?r:n()}}const Is=uw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(nr(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function Vm(e){return!!(typeof e=="function"&&Is()||!e||typeof e=="string"&&(e in na||Is())||Lu(e)||Array.isArray(e)&&e.every(Vm))}const Ar=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,na={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ar([0,.65,.55,1]),circOut:Ar([.55,0,1,.45]),backIn:Ar([.31,.01,.66,-.59]),backOut:Ar([.33,1.53,.69,.99])};function bm(e,t){if(e)return typeof e=="function"&&Is()?Dm(e,t):Lu(e)?Ar(e):Array.isArray(e)?e.map(n=>bm(n,t)||na.easeOut):na[e]}const Ke={x:!1,y:!1};function _m(){return Ke.x||Ke.y}function cw(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function Om(e,t){const n=cw(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Cd(e){return t=>{t.pointerType==="touch"||_m()||e(t)}}function dw(e,t,n={}){const[r,i,s]=Om(e,n),o=Cd(l=>{const{target:a}=l,u=t(l);if(typeof u!="function"||!a)return;const c=Cd(d=>{u(d),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(l=>{l.addEventListener("pointerenter",o,i)}),s}const Im=(e,t)=>t?e===t?!0:Im(e,t.parentElement):!1,Du=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,fw=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hw(e){return fw.has(e.tagName)||e.tabIndex!==-1}const Mr=new WeakSet;function Pd(e){return t=>{t.key==="Enter"&&e(t)}}function Wo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const pw=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Pd(()=>{if(Mr.has(n))return;Wo(n,"down");const i=Pd(()=>{Wo(n,"up")}),s=()=>Wo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Td(e){return Du(e)&&!_m()}function mw(e,t,n={}){const[r,i,s]=Om(e,n),o=l=>{const a=l.currentTarget;if(!Td(l)||Mr.has(a))return;Mr.add(a);const u=t(l),c=(y,x)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Td(y)||!Mr.has(a))&&(Mr.delete(a),typeof u=="function"&&u(y,{success:x}))},d=y=>{c(y,n.useGlobalTarget||Im(a,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(l=>{!hw(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),l.addEventListener("focus",u=>pw(u,i),i)}),s}function gw(e){return e==="x"||e==="y"?Ke[e]?null:(Ke[e]=!0,()=>{Ke[e]=!1}):Ke.x||Ke.y?null:(Ke.x=Ke.y=!0,()=>{Ke.x=Ke.y=!1})}const Fm=new Set(["width","height","top","left","right","bottom",...cr]);let as;function yw(){as=void 0}const ut={now:()=>(as===void 0&&ut.set(de.isProcessing||f1.useManualTiming?de.timestamp:performance.now()),as),set:e=>{as=e,queueMicrotask(yw)}};function Vu(e,t){e.indexOf(t)===-1&&e.push(t)}function bu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class _u{constructor(){this.subscriptions=[]}add(t){return Vu(this.subscriptions,t),()=>bu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function zm(e,t){return t?e*(1e3/t):0}const Ed=30,vw=e=>!isNaN(parseFloat(e));class xw{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ut.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ut.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=vw(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 _u);const r=this.events[t].add(n);return t==="change"?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ut.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ed)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ed);return zm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fi(e,t){return new xw(e,t)}function ww(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fi(n))}function Sw(e,t){const n=co(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const l=D1(s[o]);ww(e,o,l)}}function kw(e){return!!(ve(e)&&e.add)}function ra(e,t){const n=e.getValue("willChange");if(kw(n))return n.add(t)}function Bm(e){return e.props[ym]}const Um=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Cw=1e-7,Pw=12;function Tw(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=Um(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Cw&&++l<Pw);return o}function ki(e,t,n,r){if(e===t&&n===r)return De;const i=s=>Tw(s,0,1,e,n);return s=>s===0||s===1?s:Um(i(s),t,r)}const $m=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Wm=e=>t=>1-e(1-t),Hm=ki(.33,1.53,.69,.99),Ou=Wm(Hm),Gm=$m(Ou),Km=e=>(e*=2)<1?.5*Ou(e):.5*(2-Math.pow(2,-10*(e-1))),Iu=e=>1-Math.sin(Math.acos(e)),Qm=Wm(Iu),Xm=$m(Iu),Ym=e=>/^0[^.\s]+$/u.test(e);function Ew(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ym(e):!0}const Br=e=>Math.round(e*1e5)/1e5,Fu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nw(e){return e==null}const jw=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zu=(e,t)=>n=>!!(typeof n=="string"&&jw.test(n)&&n.startsWith(e)||t&&!Nw(n)&&Object.prototype.hasOwnProperty.call(n,t)),Zm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,l]=r.match(Fu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Aw=e=>Ct(0,255,e),Ho={...dr,transform:e=>Math.round(Aw(e))},dn={test:zu("rgb","red"),parse:Zm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ho.transform(e)+", "+Ho.transform(t)+", "+Ho.transform(n)+", "+Br(di.transform(r))+")"};function Mw(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ia={test:zu("#"),parse:Mw,transform:dn.transform},In={test:zu("hsl","hue"),parse:Zm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+at.transform(Br(t))+", "+at.transform(Br(n))+", "+Br(di.transform(r))+")"},ge={test:e=>dn.test(e)||ia.test(e)||In.test(e),parse:e=>dn.test(e)?dn.parse(e):In.test(e)?In.parse(e):ia.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?dn.transform(e):In.transform(e)},Rw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Lw(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Fu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Rw))===null||n===void 0?void 0:n.length)||0)>0}const qm="number",Jm="color",Dw="var",Vw="var(",Nd="${}",bw=/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 hi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=t.replace(bw,a=>(ge.test(a)?(r.color.push(s),i.push(Jm),n.push(ge.parse(a))):a.startsWith(Vw)?(r.var.push(s),i.push(Dw),n.push(a)):(r.number.push(s),i.push(qm),n.push(parseFloat(a))),++s,Nd)).split(Nd);return{values:n,split:l,indexes:r,types:i}}function eg(e){return hi(e).values}function tg(e){const{split:t,types:n}=hi(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const l=n[o];l===qm?s+=Br(i[o]):l===Jm?s+=ge.transform(i[o]):s+=i[o]}return s}}const _w=e=>typeof e=="number"?0:e;function Ow(e){const t=eg(e);return tg(e)(t.map(_w))}const Qt={test:Lw,parse:eg,createTransformer:tg,getAnimatableNone:Ow},Iw=new Set(["brightness","contrast","saturate","opacity"]);function Fw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fu)||[];if(!r)return e;const i=n.replace(r,"");let s=Iw.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const zw=/\b([a-z-]*)\(.*?\)/gu,sa={...Qt,getAnimatableNone:e=>{const t=e.match(zw);return t?t.map(Fw).join(" "):e}},Bw={...Pu,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:sa,WebkitFilter:sa},Bu=e=>Bw[e];function ng(e,t){let n=Bu(e);return n!==sa&&(n=Qt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Uw=new Set(["auto","none","0"]);function $w(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Uw.has(s)&&hi(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=ng(n,i)}const jd=e=>e===dr||e===L,Ad=(e,t)=>parseFloat(e.split(", ")[t]),Md=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Ad(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Ad(s[1],e):0}},Ww=new Set(["x","y","z"]),Hw=cr.filter(e=>!Ww.has(e));function Gw(e){const t=[];return Hw.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ir={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Md(4,13),y:Md(5,14)};ir.translateX=ir.x;ir.translateY=ir.y;const pn=new Set;let oa=!1,la=!1;function rg(){if(la){const e=Array.from(pn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Gw(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var l;(l=r.getValue(s))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}la=!1,oa=!1,pn.forEach(e=>e.complete()),pn.clear()}function ig(){pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(la=!0)})}function Kw(){ig(),rg()}class Uu{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(pn.add(this),oa||(oa=!0,H.read(ig),H.resolveKeyframes(rg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,l);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=l),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),pn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,pn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Qw=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xw(e){const t=Qw.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function og(e,t,n=1){const[r,i]=Xw(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return sg(o)?parseFloat(o):o}return Cu(i)?og(i,t,n+1):i}const lg=e=>t=>t.test(e),Yw={test:e=>e==="auto",parse:e=>e},ag=[dr,L,at,jt,F1,I1,Yw],Rd=e=>ag.find(lg(e));class ug extends Uu{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="string"&&(u=u.trim(),Cu(u))){const c=og(u,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Fm.has(r)||t.length!==2)return;const[i,s]=t,o=Rd(i),l=Rd(s);if(o!==l)if(jd(o)&&jd(l))for(let a=0;a<t.length;a++){const u=t[a];typeof u=="string"&&(t[a]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Ew(t[i])&&r.push(i);r.length&&$w(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=ir[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,l=i[o];i[o]=ir[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([a,u])=>{n.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const Ld=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qt.test(e)||e==="0")&&!e.startsWith("url("));function Zw(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 qw(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Ld(i,t),l=Ld(s,t);return!o||!l?!1:Zw(e)||(n==="spring"||Ru(n))&&r}const Jw=e=>e!==null;function fo(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Jw),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const eS=40;class cg{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ut.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>eS?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Kw(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ut.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!qw(t,r,i,s))if(o)this.options.duration=0;else{a&&a(fo(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Q=(e,t,n)=>e+(t-e)*n;function Go(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 tS({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=Go(a,l,e+1/3),s=Go(a,l,e),o=Go(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Fs(e,t){return n=>n>0?t:e}const Ko=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nS=[ia,dn,In],rS=e=>nS.find(t=>t.test(e));function Dd(e){const t=rS(e);if(!t)return!1;let n=t.parse(e);return t===In&&(n=tS(n)),n}const Vd=(e,t)=>{const n=Dd(e),r=Dd(t);if(!n||!r)return Fs(e,t);const i={...n};return s=>(i.red=Ko(n.red,r.red,s),i.green=Ko(n.green,r.green,s),i.blue=Ko(n.blue,r.blue,s),i.alpha=Q(n.alpha,r.alpha,s),dn.transform(i))},iS=(e,t)=>n=>t(e(n)),Ci=(...e)=>e.reduce(iS),aa=new Set(["none","hidden"]);function sS(e,t){return aa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function oS(e,t){return n=>Q(e,t,n)}function $u(e){return typeof e=="number"?oS:typeof e=="string"?Cu(e)?Fs:ge.test(e)?Vd:uS:Array.isArray(e)?dg:typeof e=="object"?ge.test(e)?Vd:lS:Fs}function dg(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>$u(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function lS(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=$u(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function aS(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],l=e.indexes[o][i[o]],a=(n=e.values[l])!==null&&n!==void 0?n:0;r[s]=a,i[o]++}return r}const uS=(e,t)=>{const n=Qt.createTransformer(t),r=hi(e),i=hi(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?aa.has(e)&&!i.values.length||aa.has(t)&&!r.values.length?sS(e,t):Ci(dg(aS(r,i),i.values),n):Fs(e,t)};function fg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Q(e,t,n):$u(e)(e,t)}const cS=5;function hg(e,t,n){const r=Math.max(t-cS,0);return zm(n-e(r),t-r)}const J={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},Qo=.001;function dS({duration:e=J.duration,bounce:t=J.bounce,velocity:n=J.velocity,mass:r=J.mass}){let i,s,o=1-t;o=Ct(J.minDamping,J.maxDamping,o),e=Ct(J.minDuration,J.maxDuration,vt(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,y=ua(u,o),x=Math.exp(-d);return Qo-f/y*x},s=u=>{const d=u*o*e,f=d*n+n,y=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-d),v=ua(Math.pow(u,2),o);return(-i(u)+Qo>0?-1:1)*((f-y)*x)/v}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Qo+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const l=5/e,a=hS(i,s,l);if(e=yt(e),isNaN(a))return{stiffness:J.stiffness,damping:J.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const fS=12;function hS(e,t,n){let r=n;for(let i=1;i<fS;i++)r=r-e(r)/t(r);return r}function ua(e,t){return e*Math.sqrt(1-t*t)}const pS=["duration","bounce"],mS=["stiffness","damping","mass"];function bd(e,t){return t.some(n=>e[n]!==void 0)}function gS(e){let t={velocity:J.velocity,stiffness:J.stiffness,damping:J.damping,mass:J.mass,isResolvedFromDuration:!1,...e};if(!bd(e,mS)&&bd(e,pS))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ct(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:J.mass,stiffness:i,damping:s}}else{const n=dS(e);t={...t,...n,mass:J.mass},t.isResolvedFromDuration=!0}return t}function pg(e=J.visualDuration,t=J.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:a,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=gS({...n,velocity:-vt(n.velocity||0)}),x=f||0,v=u/(2*Math.sqrt(a*c)),w=o-s,p=vt(Math.sqrt(a/c)),h=Math.abs(w)<5;r||(r=h?J.restSpeed.granular:J.restSpeed.default),i||(i=h?J.restDelta.granular:J.restDelta.default);let m;if(v<1){const k=ua(p,v);m=E=>{const N=Math.exp(-v*p*E);return o-N*((x+v*p*w)/k*Math.sin(k*E)+w*Math.cos(k*E))}}else if(v===1)m=k=>o-Math.exp(-p*k)*(w+(x+p*w)*k);else{const k=p*Math.sqrt(v*v-1);m=E=>{const N=Math.exp(-v*p*E),P=Math.min(k*E,300);return o-N*((x+v*p*w)*Math.sinh(P)+k*w*Math.cosh(P))/k}}const S={calculatedDuration:y&&d||null,next:k=>{const E=m(k);if(y)l.done=k>=d;else{let N=0;v<1&&(N=k===0?yt(x):hg(m,k,E));const P=Math.abs(N)<=r,b=Math.abs(o-E)<=i;l.done=P&&b}return l.value=l.done?o:E,l},toString:()=>{const k=Math.min(Lm(S),ta),E=Dm(N=>S.next(k*N).value,k,30);return k+"ms "+E}};return S}function _d({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:a,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=P=>l!==void 0&&P<l||a!==void 0&&P>a,x=P=>l===void 0?a:a===void 0||Math.abs(l-P)<Math.abs(a-P)?l:a;let v=n*t;const w=d+v,p=o===void 0?w:o(w);p!==w&&(v=p-d);const h=P=>-v*Math.exp(-P/r),m=P=>p+h(P),S=P=>{const b=h(P),M=m(P);f.done=Math.abs(b)<=u,f.value=f.done?p:M};let k,E;const N=P=>{y(f.value)&&(k=P,E=pg({keyframes:[f.value,x(f.value)],velocity:hg(m,P,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:P=>{let b=!1;return!E&&k===void 0&&(b=!0,S(P),N(P)),k!==void 0&&P>=k?E.next(P-k):(!b&&S(P),f)}}}const yS=ki(.42,0,1,1),vS=ki(0,0,.58,1),mg=ki(.42,0,.58,1),xS=e=>Array.isArray(e)&&typeof e[0]!="number",wS={linear:De,easeIn:yS,easeInOut:mg,easeOut:vS,circIn:Iu,circInOut:Xm,circOut:Qm,backIn:Ou,backInOut:Gm,backOut:Hm,anticipate:Km},Od=e=>{if(Lu(e)){fm(e.length===4);const[t,n,r,i]=e;return ki(t,n,r,i)}else if(typeof e=="string")return wS[e];return e};function SS(e,t,n){const r=[],i=n||fg,s=e.length-1;for(let o=0;o<s;o++){let l=i(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]||De:t;l=Ci(a,l)}r.push(l)}return r}function kS(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(fm(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=SS(t,r,i),a=l.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(a>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=nr(e[d],e[d+1],c);return l[d](f)};return n?c=>u(Ct(e[0],e[s-1],c)):u}function CS(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=nr(0,t,r);e.push(Q(n,1,i))}}function PS(e){const t=[0];return CS(t,e.length-1),t}function TS(e,t){return e.map(n=>n*t)}function ES(e,t){return e.map(()=>t||mg).splice(0,e.length-1)}function zs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=xS(r)?r.map(Od):Od(r),s={done:!1,value:t[0]},o=TS(n&&n.length===t.length?n:PS(t),e),l=kS(o,t,{ease:Array.isArray(i)?i:ES(t,i)});return{calculatedDuration:e,next:a=>(s.value=l(a),s.done=a>=e,s)}}const NS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>H.update(t,!0),stop:()=>Kt(t),now:()=>de.isProcessing?de.timestamp:ut.now()}},jS={decay:_d,inertia:_d,tween:zs,keyframes:zs,spring:pg},AS=e=>e/100;class Wu extends cg{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Uu,l=(a,u)=>this.onKeyframesResolved(a,u);this.resolver=new o(s,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,l=Ru(n)?n:jS[n]||zs;let a,u;l!==zs&&typeof t[0]!="number"&&(a=Ci(AS,fg(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Lm(c));const{calculatedDuration:d}=c,f=d+i,y=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:f,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:y,repeatType:x,repeatDelay:v,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,S=s;if(y){const P=Math.min(this.currentTime,c)/d;let b=Math.floor(P),M=P%1;!M&&P>=1&&(M=1),M===1&&b--,b=Math.min(b,y+1),!!(b%2)&&(x==="reverse"?(M=1-M,v&&(M-=v/d)):x==="mirror"&&(S=o)),m=Ct(0,1,M)*d}const k=h?{done:!1,value:a[0]}:S.next(m);l&&(k.value=l(k.value));let{done:E}=k;!h&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return N&&i!==void 0&&(k.value=fo(a,this.options,i)),w&&w(k.value),N&&this.finish(),k}get duration(){const{resolved:t}=this;return t?vt(t.calculatedDuration):0}get time(){return vt(this.currentTime)}set time(t){t=yt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=vt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=NS,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const MS=new Set(["opacity","clipPath","filter","transform"]);function RS(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:l="easeInOut",times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=bm(l,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const LS=gu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bs=10,DS=2e4;function VS(e){return Ru(e.type)||e.type==="spring"||!Vm(e.ease)}function bS(e,t){const n=new Wu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<DS;)r=n.sample(s),i.push(r.value),s+=Bs;return{times:void 0,keyframes:i,duration:s-Bs,ease:"linear"}}const gg={anticipate:Km,backInOut:Gm,circInOut:Xm};function _S(e){return e in gg}class Id extends cg{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new ug(s,(o,l)=>this.onKeyframesResolved(o,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:l,name:a,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&Is()&&_S(s)&&(s=gg[s]),VS(this.options)){const{onComplete:d,onUpdate:f,motionValue:y,element:x,...v}=this.options,w=bS(t,v);t=w.keyframes,t.length===1&&(t[1]=t[0]),r=w.duration,i=w.times,s=w.ease,o="keyframes"}const c=RS(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:s});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(kd(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(fo(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return vt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return vt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=yt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return De;const{animation:r}=n;kd(r,t)}return De}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...y}=this.options,x=new Wu({...y,keyframes:r,duration:i,type:s,ease:o,times:l,isGenerator:!0}),v=yt(this.time);u.setWithVelocity(x.sample(v-Bs).value,x.sample(v).value,Bs)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=n.owner.getProps();return LS()&&r&&MS.has(r)&&!a&&!u&&!i&&s!=="mirror"&&o!==0&&l!=="inertia"}}const OS={type:"spring",stiffness:500,damping:25,restSpeed:10},IS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),FS={type:"keyframes",duration:.8},zS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},BS=(e,{keyframes:t})=>t.length>2?FS:Cn.has(e)?e.startsWith("scale")?IS(t[1]):OS:zS;function US({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}const Hu=(e,t,n,r={},i,s)=>o=>{const l=Mu(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-yt(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};US(l)||(c={...c,...BS(e,c)}),c.duration&&(c.duration=yt(c.duration)),c.repeatDelay&&(c.repeatDelay=yt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&t.get()!==void 0){const f=fo(c.keyframes,l);if(f!==void 0)return H.update(()=>{c.onUpdate(f),c.onComplete()}),new lw([])}return!s&&Id.supports(c)?new Id(c):new Wu(c)};function $S({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function yg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...a}=t;r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const f=e.getValue(d,(s=e.latestValues[d])!==null&&s!==void 0?s:null),y=a[d];if(y===void 0||c&&$S(c,d))continue;const x={delay:n,...Mu(o||{},d)};let v=!1;if(window.MotionHandoffAnimation){const p=Bm(e);if(p){const h=window.MotionHandoffAnimation(p,d,H);h!==null&&(x.startTime=h,v=!0)}}ra(e,d),f.start(Hu(d,f,y,e.shouldReduceMotion&&Fm.has(d)?{type:!1}:x,e,v));const w=f.animation;w&&u.push(w)}return l&&Promise.all(u).then(()=>{H.update(()=>{l&&Sw(e,l)})}),u}function ca(e,t,n={}){var r;const i=co(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(yg(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return WS(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[o,l]:[l,o];return u().then(()=>c())}else return Promise.all([o(),l(n.delay)])}function WS(e,t,n=0,r=0,i=1,s){const o=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(HS).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(ca(u,t,{...s,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function HS(e,t){return e.sortNodePosition(t)}function GS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>ca(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=ca(e,t,n);else{const i=typeof t=="function"?co(e,t,n.custom):t;r=Promise.all(yg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const KS=vu.length;function vg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?vg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<KS;n++){const r=vu[n],i=e.props[r];(ci(i)||i===!1)&&(t[r]=i)}return t}const QS=[...yu].reverse(),XS=yu.length;function YS(e){return t=>Promise.all(t.map(({animation:n,options:r})=>GS(e,n,r)))}function ZS(e){let t=YS(e),n=Fd(),r=!0;const i=a=>(u,c)=>{var d;const f=co(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:y,transitionEnd:x,...v}=f;u={...u,...v,...x}}return u};function s(a){t=a(e)}function o(a){const{props:u}=e,c=vg(e.parent)||{},d=[],f=new Set;let y={},x=1/0;for(let w=0;w<XS;w++){const p=QS[w],h=n[p],m=u[p]!==void 0?u[p]:c[p],S=ci(m),k=p===a?h.isActive:null;k===!1&&(x=w);let E=m===c[p]&&m!==u[p]&&S;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),h.protectedKeys={...y},!h.isActive&&k===null||!m&&!h.prevProp||ao(m)||typeof m=="boolean")continue;const N=qS(h.prevProp,m);let P=N||p===a&&h.isActive&&!E&&S||w>x&&S,b=!1;const M=Array.isArray(m)?m:[m];let Z=M.reduce(i(p),{});k===!1&&(Z={});const{prevResolvedValues:O={}}=h,et={...O,...Z},tt=q=>{P=!0,f.has(q)&&(b=!0,f.delete(q)),h.needsAnimating[q]=!0;const j=e.getValue(q);j&&(j.liveStyle=!1)};for(const q in et){const j=Z[q],R=O[q];if(y.hasOwnProperty(q))continue;let D=!1;ea(j)&&ea(R)?D=!Rm(j,R):D=j!==R,D?j!=null?tt(q):f.add(q):j!==void 0&&f.has(q)?tt(q):h.protectedKeys[q]=!0}h.prevProp=m,h.prevResolvedValues=Z,h.isActive&&(y={...y,...Z}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(E&&N)||b)&&d.push(...M.map(q=>({animation:q,options:{type:p}})))}if(f.size){const w={};f.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),w[p]=h??null}),d.push({animation:w})}let v=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function l(a,u){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(a,u)}),n[a].isActive=u;const d=o(a);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Fd(),r=!0}}}function qS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rm(t,e):!1}function nn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fd(){return{animate:nn(!0),whileInView:nn(),whileHover:nn(),whileTap:nn(),whileDrag:nn(),whileFocus:nn(),exit:nn()}}class Jt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class JS extends Jt{constructor(t){super(t),t.animationState||(t.animationState=ZS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ao(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let ek=0;class tk extends Jt{constructor(){super(...arguments),this.id=ek++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const nk={animation:{Feature:JS},exit:{Feature:tk}};function pi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Pi(e){return{point:{x:e.pageX,y:e.pageY}}}const rk=e=>t=>Du(t)&&e(t,Pi(t));function Ur(e,t,n,r){return pi(e,t,rk(n),r)}const zd=(e,t)=>Math.abs(e-t);function ik(e,t){const n=zd(e.x,t.x),r=zd(e.y,t.y);return Math.sqrt(n**2+r**2)}class xg{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Yo(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=ik(d.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:x}=d,{timestamp:v}=de;this.history.push({...x,timestamp:v});const{onStart:w,onMove:p}=this.handlers;f||(w&&w(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Xo(f,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Yo(d.type==="pointercancel"?this.lastMoveEventInfo:Xo(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,w),x&&x(d,w)},!Du(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Pi(t),l=Xo(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=de;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Yo(l,this.history)),this.removeListeners=Ci(Ur(this.contextWindow,"pointermove",this.handlePointerMove),Ur(this.contextWindow,"pointerup",this.handlePointerUp),Ur(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Kt(this.updatePoint)}}function Xo(e,t){return t?{point:t(e.point)}:e}function Bd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yo({point:e},t){return{point:e,delta:Bd(e,wg(t)),offset:Bd(e,sk(t)),velocity:ok(t,.1)}}function sk(e){return e[0]}function wg(e){return e[e.length-1]}function ok(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=wg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>yt(t)));)n--;if(!r)return{x:0,y:0};const s=vt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Sg=1e-4,lk=1-Sg,ak=1+Sg,kg=.01,uk=0-kg,ck=0+kg;function be(e){return e.max-e.min}function dk(e,t,n){return Math.abs(e-t)<=n}function Ud(e,t,n,r=.5){e.origin=r,e.originPoint=Q(t.min,t.max,e.origin),e.scale=be(n)/be(t),e.translate=Q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lk&&e.scale<=ak||isNaN(e.scale))&&(e.scale=1),(e.translate>=uk&&e.translate<=ck||isNaN(e.translate))&&(e.translate=0)}function $r(e,t,n,r){Ud(e.x,t.x,n.x,r?r.originX:void 0),Ud(e.y,t.y,n.y,r?r.originY:void 0)}function $d(e,t,n){e.min=n.min+t.min,e.max=e.min+be(t)}function fk(e,t,n){$d(e.x,t.x,n.x),$d(e.y,t.y,n.y)}function Wd(e,t,n){e.min=t.min-n.min,e.max=e.min+be(t)}function Wr(e,t,n){Wd(e.x,t.x,n.x),Wd(e.y,t.y,n.y)}function hk(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Q(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Q(n,e,r.max):Math.min(e,n)),e}function Hd(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 pk(e,{top:t,left:n,bottom:r,right:i}){return{x:Hd(e.x,n,i),y:Hd(e.y,t,r)}}function Gd(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 mk(e,t){return{x:Gd(e.x,t.x),y:Gd(e.y,t.y)}}function gk(e,t){let n=.5;const r=be(e),i=be(t);return i>r?n=nr(t.min,t.max-r,e.min):r>i&&(n=nr(e.min,e.max-i,t.min)),Ct(0,1,n)}function yk(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 da=.35;function vk(e=da){return e===!1?e=0:e===!0&&(e=da),{x:Kd(e,"left","right"),y:Kd(e,"top","bottom")}}function Kd(e,t,n){return{min:Qd(e,t),max:Qd(e,n)}}function Qd(e,t){return typeof e=="number"?e:e[t]||0}const Xd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fn=()=>({x:Xd(),y:Xd()}),Yd=()=>({min:0,max:0}),te=()=>({x:Yd(),y:Yd()});function Fe(e){return[e("x"),e("y")]}function Cg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xk({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function wk(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 Zo(e){return e===void 0||e===1}function fa({scale:e,scaleX:t,scaleY:n}){return!Zo(e)||!Zo(t)||!Zo(n)}function on(e){return fa(e)||Pg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Pg(e){return Zd(e.x)||Zd(e.y)}function Zd(e){return e&&e!=="0%"}function Us(e,t,n){const r=e-n,i=t*r;return n+i}function qd(e,t,n,r,i){return i!==void 0&&(e=Us(e,i,r)),Us(e,n,r)+t}function ha(e,t=0,n=1,r,i){e.min=qd(e.min,t,n,r,i),e.max=qd(e.max,t,n,r,i)}function Tg(e,{x:t,y:n}){ha(e.x,t.translate,t.scale,t.originPoint),ha(e.y,n.translate,n.scale,n.originPoint)}const Jd=.999999999999,ef=1.0000000000001;function Sk(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:a}=s.options;a&&a.props.style&&a.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Bn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Tg(e,o)),r&&on(s.latestValues)&&Bn(e,s.latestValues))}t.x<ef&&t.x>Jd&&(t.x=1),t.y<ef&&t.y>Jd&&(t.y=1)}function zn(e,t){e.min=e.min+t,e.max=e.max+t}function tf(e,t,n,r,i=.5){const s=Q(e.min,e.max,i);ha(e,t,n,s,r)}function Bn(e,t){tf(e.x,t.x,t.scaleX,t.scale,t.originX),tf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Eg(e,t){return Cg(wk(e.getBoundingClientRect(),t))}function kk(e,t,n){const r=Eg(e,n),{scroll:i}=t;return i&&(zn(r.x,i.offset.x),zn(r.y,i.offset.y)),r}const Ng=({current:e})=>e?e.ownerDocument.defaultView:null,Ck=new WeakMap;class Pk{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=te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pi(c).point)},s=(c,d)=>{const{drag:f,dragPropagation:y,onDragStart:x}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gw(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(w=>{let p=this.getAxisMotionValue(w).get()||0;if(at.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[w];m&&(p=be(m)*(parseFloat(p)/100))}}this.originPoint[w]=p}),x&&H.postRender(()=>x(c,d)),ra(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:x,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:w}=d;if(y&&this.currentDirection===null){this.currentDirection=Tk(w),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.render(),v&&v(c,d)},l=(c,d)=>this.stop(c,d),a=()=>Fe(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new xg(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ng(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&H.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ki(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=hk(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&On(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=pk(i.layoutBox,n):this.constraints=!1,this.elastic=vk(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Fe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=yk(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!On(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=kk(r,i.root,this.visualElement.getTransformPagePoint());let o=mk(i.layout.layoutBox,s);if(n){const l=n(xk(o));this.hasMutatedConstraints=!!l,l&&(o=Cg(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Fe(c=>{if(!Ki(c,n,this.currentDirection))return;let d=a&&a[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,y=i?40:1e7,x={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,x)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ra(this.visualElement,t),r.start(Hu(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:r}=this.getProps();if(!Ki(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];s.set(t[n]-Q(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!On(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Fe(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const a=l.get();i[o]=gk({min:a,max:a},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(o=>{if(!Ki(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(Q(a,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Ck.set(this.visualElement,this);const t=this.visualElement.current,n=Ur(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();On(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(r);const o=pi(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Fe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=da,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function Ki(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Tk(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ek extends Jt{constructor(t){super(t),this.removeGroupControls=De,this.removeListeners=De,this.controls=new Pk(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||De}unmount(){this.removeGroupControls(),this.removeListeners()}}const nf=e=>(t,n)=>{e&&H.postRender(()=>e(t,n))};class Nk extends Jt{constructor(){super(...arguments),this.removePointerDownListener=De}onPointerDown(t){this.session=new xg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ng(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:nf(t),onStart:nf(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&H.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Ur(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const us={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(L.test(e))e=parseFloat(e);else return e;const n=rf(e,t.target.x),r=rf(e,t.target.y);return`${n}% ${r}%`}},jk={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qt.parse(e);if(i.length>5)return r;const s=Qt.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=a;const u=Q(l,a,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class Ak extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;X1(Mk),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),us.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||H.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),wu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function jg(e){const[t,n]=c1(),r=C.useContext(cm);return g.jsx(Ak,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(vm),isPresent:t,safeToRemove:n})}const Mk={borderRadius:{...Cr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cr,borderTopRightRadius:Cr,borderBottomLeftRadius:Cr,borderBottomRightRadius:Cr,boxShadow:jk};function Rk(e,t,n){const r=ve(e)?e:fi(e);return r.start(Hu("",r,t,n)),r.animation}function Lk(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Dk=(e,t)=>e.depth-t.depth;class Vk{constructor(){this.children=[],this.isDirty=!1}add(t){Vu(this.children,t),this.isDirty=!0}remove(t){bu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Dk),this.isDirty=!1,this.children.forEach(t)}}function bk(e,t){const n=ut.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Kt(r),e(s-t))};return H.read(r,!0),()=>Kt(r)}const Ag=["TopLeft","TopRight","BottomLeft","BottomRight"],_k=Ag.length,sf=e=>typeof e=="string"?parseFloat(e):e,of=e=>typeof e=="number"||L.test(e);function Ok(e,t,n,r,i,s){i?(e.opacity=Q(0,n.opacity!==void 0?n.opacity:1,Ik(r)),e.opacityExit=Q(t.opacity!==void 0?t.opacity:1,0,Fk(r))):s&&(e.opacity=Q(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<_k;o++){const l=`border${Ag[o]}Radius`;let a=lf(t,l),u=lf(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||of(a)===of(u)?(e[l]=Math.max(Q(sf(a),sf(u),r),0),(at.test(u)||at.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Q(t.rotate||0,n.rotate||0,r))}function lf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ik=Mg(0,.5,Qm),Fk=Mg(.5,.95,De);function Mg(e,t,n){return r=>r<e?0:r>t?1:n(nr(e,t,r))}function af(e,t){e.min=t.min,e.max=t.max}function Ie(e,t){af(e.x,t.x),af(e.y,t.y)}function uf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cf(e,t,n,r,i){return e-=t,e=Us(e,1/n,r),i!==void 0&&(e=Us(e,1/i,r)),e}function zk(e,t=0,n=1,r=.5,i,s=e,o=e){if(at.test(t)&&(t=parseFloat(t),t=Q(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=Q(s.min,s.max,r);e===s&&(l-=t),e.min=cf(e.min,t,n,l,i),e.max=cf(e.max,t,n,l,i)}function df(e,t,[n,r,i],s,o){zk(e,t[n],t[r],t[i],t.scale,s,o)}const Bk=["x","scaleX","originX"],Uk=["y","scaleY","originY"];function ff(e,t,n,r){df(e.x,t,Bk,n?n.x:void 0,r?r.x:void 0),df(e.y,t,Uk,n?n.y:void 0,r?r.y:void 0)}function hf(e){return e.translate===0&&e.scale===1}function Rg(e){return hf(e.x)&&hf(e.y)}function pf(e,t){return e.min===t.min&&e.max===t.max}function $k(e,t){return pf(e.x,t.x)&&pf(e.y,t.y)}function mf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lg(e,t){return mf(e.x,t.x)&&mf(e.y,t.y)}function gf(e){return be(e.x)/be(e.y)}function yf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Wk{constructor(){this.members=[]}add(t){Vu(this.members,t),t.scheduleRender()}remove(t){if(bu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Hk(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:y,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),x&&(r+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,a=e.y.scale*t.y;return(l!==1||a!==1)&&(r+=`scale(${l}, ${a})`),r||"none"}const ln={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Rr=typeof window<"u"&&window.MotionDebug!==void 0,qo=["","X","Y","Z"],Gk={visibility:"hidden"},vf=1e3;let Kk=0;function Jo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Dg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Bm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",H,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Dg(r)}function Vg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=Kk++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Rr&&(ln.totalNodes=ln.resolvedTargetDeltas=ln.recalculatedProjection=0),this.nodes.forEach(Yk),this.nodes.forEach(tC),this.nodes.forEach(nC),this.nodes.forEach(Zk),Rr&&window.MotionDebug.record(ln)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vk)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new _u),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const a=this.eventHandlers.get(o);a&&a.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Lk(o),this.instance=o;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=bk(f,250),us.hasAnimatedSinceResize&&(us.hasAnimatedSinceResize=!1,this.nodes.forEach(wf))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||lC,{onLayoutAnimationStart:w,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!Lg(this.targetLayout,x)||y,m=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const S={...Mu(v,"layout"),onPlay:w,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||wf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}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,Kt(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(rC),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&&Dg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:l,layout:a}=this.options;if(l===void 0&&!a)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()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xf);return}this.isUpdating||this.nodes.forEach(Jk),this.isUpdating=!1,this.nodes.forEach(eC),this.nodes.forEach(Qk),this.nodes.forEach(Xk),this.clearAllSnapshots();const l=ut.now();de.delta=Ct(0,1e3/60,l-de.timestamp),de.timestamp=l,de.isProcessing=!0,$o.update.process(de),$o.preRender.process(de),$o.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(qk),this.sharedNodes.forEach(iC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const a=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:a,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Rg(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(l||on(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return o&&(a=this.removeTransform(a)),aC(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return te();const a=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(uC))){const{scroll:c}=this.root;c&&(zn(a.x,c.offset.x),zn(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=te();if(Ie(a,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Ie(a,o),zn(a.x,d.offset.x),zn(a.y,d.offset.y))}return a}applyTransform(o,l=!1){const a=te();Ie(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Bn(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),on(c.latestValues)&&Bn(a,c.latestValues)}return on(this.latestValues)&&Bn(a,this.latestValues),a}removeTransform(o){const l=te();Ie(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!on(u.latestValues))continue;fa(u.latestValues)&&u.updateSnapshot();const c=te(),d=u.measurePageBox();Ie(c,d),ff(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return on(this.latestValues)&&ff(l,this.latestValues),l}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!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=de.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Wr(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),Ie(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fk(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ie(this.target,this.layout.layoutBox),Tg(this.target,this.targetDelta)):Ie(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Wr(this.relativeTargetOrigin,this.target,y.target),Ie(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rr&&ln.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||fa(this.parent.latestValues)||Pg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===de.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Ie(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,y=this.treeScale.y;Sk(this.layoutCorrected,this.treeScale,this.path,a),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=te());const{target:x}=l;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(uf(this.prevProjectionDelta.x,this.projectionDelta.x),uf(this.prevProjectionDelta.y,this.projectionDelta.y)),$r(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==y||!yf(this.projectionDelta.x,this.prevProjectionDelta.x)||!yf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),Rr&&ln.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fn(),this.projectionDelta=Fn(),this.projectionDeltaWithTransform=Fn()}setAnimationOrigin(o,l=!1){const a=this.snapshot,u=a?a.latestValues:{},c={...this.latestValues},d=Fn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=te(),y=a?a.source:void 0,x=this.layout?this.layout.source:void 0,v=y!==x,w=this.getStack(),p=!w||w.members.length<=1,h=!!(v&&!p&&this.options.crossfade===!0&&!this.path.some(oC));this.animationProgress=0;let m;this.mixTargetDelta=S=>{const k=S/1e3;Sf(d.x,o.x,k),Sf(d.y,o.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sC(this.relativeTarget,this.relativeTargetOrigin,f,k),m&&$k(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=te()),Ie(m,this.relativeTarget)),v&&(this.animationValues=c,Ok(c,u,this.latestValues,k,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Kt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{us.hasAnimatedSinceResize=!0,this.currentAnimation=Rk(0,vf,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},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(vf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=o;if(!(!l||!a||!u)){if(this!==o&&this.layout&&u&&bg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||te();const d=be(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+d;const f=be(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+f}Ie(l,a),Bn(l,c),$r(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Wk),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:a}=o;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(l=!0),!l)return;const u={};a.z&&Jo("z",o,u,this.animationValues);for(let c=0;c<qo.length;c++)Jo(`rotate${qo[c]}`,o,u,this.animationValues),Jo(`skew${qo[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Gk;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ls(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=ls(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!on(this.latestValues)&&(v.transform=c?c({},""):"none",this.hasProjected=!1),v}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=Hk(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:y,y:x}=this.projectionDelta;u.transformOrigin=`${y.origin*100}% ${x.origin*100}% 0`,d.animationValues?u.opacity=d===this?(a=(l=f.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const v in Os){if(f[v]===void 0)continue;const{correct:w,applyTo:p}=Os[v],h=u.transform==="none"?f[v]:w(f[v],d);if(p){const m=p.length;for(let S=0;S<m;S++)u[p[S]]=h}else u[v]=h}return this.options.layoutId&&(u.pointerEvents=d===this?ls(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(xf),this.root.sharedNodes.clear()}}}function Qk(e){e.updateLayout()}function Xk(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Fe(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],y=be(f);f.min=r[d].min,f.max=f.min+y}):bg(s,n.layoutBox,r)&&Fe(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],y=be(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const l=Fn();$r(l,r,n.layoutBox);const a=Fn();o?$r(a,e.applyTransform(i,!0),n.measuredBox):$r(a,r,n.layoutBox);const u=!Rg(l);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const x=te();Wr(x,n.layoutBox,f.layoutBox);const v=te();Wr(v,r,y.layoutBox),Lg(x,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Yk(e){Rr&&ln.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Zk(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qk(e){e.clearSnapshot()}function xf(e){e.clearMeasurements()}function Jk(e){e.isLayoutDirty=!1}function eC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tC(e){e.resolveTargetDelta()}function nC(e){e.calcProjection()}function rC(e){e.resetSkewAndRotation()}function iC(e){e.removeLeadSnapshot()}function Sf(e,t,n){e.translate=Q(t.translate,0,n),e.scale=Q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kf(e,t,n,r){e.min=Q(t.min,n.min,r),e.max=Q(t.max,n.max,r)}function sC(e,t,n,r){kf(e.x,t.x,n.x,r),kf(e.y,t.y,n.y,r)}function oC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const lC={duration:.45,ease:[.4,0,.1,1]},Cf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Pf=Cf("applewebkit/")&&!Cf("chrome/")?Math.round:De;function Tf(e){e.min=Pf(e.min),e.max=Pf(e.max)}function aC(e){Tf(e.x),Tf(e.y)}function bg(e,t,n){return e==="position"||e==="preserve-aspect"&&!dk(gf(t),gf(n),.2)}function uC(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const cC=Vg({attachResizeListener:(e,t)=>pi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),el={current:void 0},_g=Vg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!el.current){const e=new cC({});e.mount(window),e.setOptions({layoutScroll:!0}),el.current=e}return el.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),dC={pan:{Feature:Nk},drag:{Feature:Ek,ProjectionNode:_g,MeasureLayout:jg}};function Ef(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&H.postRender(()=>s(t,Pi(t)))}class fC extends Jt{mount(){const{current:t}=this.node;t&&(this.unmount=dw(t,n=>(Ef(this.node,n,"Start"),r=>Ef(this.node,r,"End"))))}unmount(){}}class hC extends Jt{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=Ci(pi(this.node.current,"focus",()=>this.onFocus()),pi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Nf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&H.postRender(()=>s(t,Pi(t)))}class pC extends Jt{mount(){const{current:t}=this.node;t&&(this.unmount=mw(t,n=>(Nf(this.node,n,"Start"),(r,{success:i})=>Nf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pa=new WeakMap,tl=new WeakMap,mC=e=>{const t=pa.get(e.target);t&&t(e)},gC=e=>{e.forEach(mC)};function yC({root:e,...t}){const n=e||document;tl.has(n)||tl.set(n,{});const r=tl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(gC,{root:e,...t})),r[i]}function vC(e,t,n){const r=yC(t);return pa.set(e,n),r.observe(e),()=>{pa.delete(e),r.unobserve(e)}}const xC={some:0,all:1};class wC extends Jt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:xC[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(a)};return vC(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(SC(t,n))&&this.startObserver()}unmount(){}}function SC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const kC={inView:{Feature:wC},tap:{Feature:pC},focus:{Feature:hC},hover:{Feature:fC}},CC={layout:{ProjectionNode:_g,MeasureLayout:jg}},ma={current:null},Og={current:!1};function PC(){if(Og.current=!0,!!mu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ma.current=e.matches;e.addListener(t),t()}else ma.current=!1}const TC=[...ag,ge,Qt],EC=e=>TC.find(lg(e)),jf=new WeakMap;function NC(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ve(i))e.addValue(r,i);else if(ve(s))e.addValue(r,fi(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,fi(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Af=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class jC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Uu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=ut.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,H.render(this.render,!1,!0))};const{latestValues:a,renderState:u,onUpdate:c}=o;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=uo(n),this.isVariantNode=gm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in f){const x=f[y];a[y]!==void 0&&ve(x)&&x.set(a[y],!1)}}mount(t){this.current=t,jf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Og.current||PC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ma.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){jf.delete(this.current),this.projection&&this.projection.unmount(),Kt(this.notifyUpdate),Kt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Cn.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in rr){const n=rr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}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<Af.length;r++){const i=Af[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=NC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}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=fi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(sg(i)||Ym(i))?i=parseFloat(i):!EC(i)&&Qt.test(n)&&(i=ng(t,n)),this.setBaseTarget(t,ve(i)?i.get():i)),ve(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=ku(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ve(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new _u),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ig extends jC{constructor(){super(...arguments),this.KeyframeResolver=ug}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ve(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function AC(e){return window.getComputedStyle(e)}class MC extends Ig{constructor(){super(...arguments),this.type="html",this.renderInstance=Tm}readValueFromInstance(t,n){if(Cn.has(n)){const r=Bu(n);return r&&r.default||0}else{const r=AC(t),i=(km(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Eg(t,n)}build(t,n,r){Tu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Au(t,n,r)}}class RC extends Ig{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cn.has(n)){const r=Bu(n);return r&&r.default||0}return n=Em.has(n)?n:xu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Am(t,n,r)}build(t,n,r){Eu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Nm(t,n,r,i)}mount(t){this.isSVGTag=ju(t.tagName),super.mount(t)}}const LC=(e,t)=>Su(e)?new RC(t):new MC(t,{allowProjection:e!==C.Fragment}),DC=iw({...nk,...kC,...dC,...CC},LC),Pr=x1(DC);function VC(){const e=[{label:"Votes/Second",value:"14K+",icon:fd},{label:"Finality",value:"<10s",icon:Wi},{label:"Throughput",value:"625M",unit:"@40Gbps",icon:ud},{label:"Languages",value:"5",icon:fu},{label:"Engines",value:"6",icon:cd},{label:"Test Coverage",value:"100%",icon:Wi}],t=[{name:"Go",path:"go",description:"Production blockchain integration",icon:"🔷",performance:"12,000+ votes/sec"},{name:"C",path:"c",description:"High-performance native implementation",icon:"🔧",performance:"14,000+ votes/sec"},{name:"Rust",path:"rust",description:"Memory-safe systems programming",icon:"🦀",performance:"13,500+ votes/sec"},{name:"C++",path:"cpp",description:"Modern C++ with GPU acceleration",icon:"⚙️",performance:"15,000+ votes/sec"},{name:"Python",path:"python",description:"Research and prototyping",icon:"🐍",performance:"5,000+ votes/sec"}];return g.jsxs("div",{className:"min-h-screen",children:[g.jsx("section",{className:"py-24 lg:py-32",children:g.jsx("div",{className:"container",children:g.jsxs(Pr.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-4xl",children:[g.jsxs("div",{className:"flex items-center space-x-4 mb-6",children:[g.jsx(um,{variant:"logo-only",size:"xl",outerClx:"text-black"}),g.jsx("h1",{className:"text-5xl lg:text-7xl font-bold tracking-tighter",children:"CONSENSUS"})]}),g.jsx("p",{className:"text-xl lg:text-2xl text-gray-600 mb-8",children:"High-performance Byzantine fault-tolerant consensus implementations across multiple languages."}),g.jsxs("div",{className:"flex flex-wrap gap-4",children:[g.jsx(bs,{size:"lg",asChild:!0,children:g.jsxs(st,{to:"/docs",className:"inline-flex items-center",children:["DOCUMENTATION",g.jsx(Bo,{className:"ml-2 w-4 h-4"})]})}),g.jsx(bs,{variant:"outline",size:"lg",asChild:!0,children:g.jsxs("a",{href:"https://github.com/luxfi/consensus",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center",children:["VIEW ON GITHUB",g.jsx(Bo,{className:"ml-2 w-4 h-4"})]})})]})]})})}),g.jsx("section",{className:"py-16 bg-black text-white",children:g.jsx("div",{className:"container",children:g.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-8",children:e.map((n,r)=>g.jsxs(Pr.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"text-center",children:[g.jsx(n.icon,{className:"w-8 h-8 mx-auto mb-2"}),g.jsx("div",{className:"text-2xl font-black font-mono uppercase",children:n.value}),n.unit&&g.jsx("div",{className:"text-xs opacity-75 font-mono",children:n.unit}),g.jsx("div",{className:"text-sm opacity-75 mt-1 uppercase tracking-wider",children:n.label})]},n.label))})})}),g.jsx("section",{className:"py-24",id:"languages",children:g.jsx("div",{className:"container",children:g.jsxs(Pr.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},children:[g.jsx("h2",{className:"text-3xl lg:text-4xl font-black uppercase mb-12",children:"Choose Your Implementation"}),g.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map((n,r)=>g.jsx(Pr.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},children:g.jsxs(st,{to:`/docs/${n.path}`,className:"block border-2 border-black bg-white p-6 hover:shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] transition-all group",children:[g.jsxs("div",{className:"flex items-start justify-between mb-4",children:[g.jsx("div",{className:"text-3xl",children:n.icon}),g.jsx(Bo,{className:"w-5 h-5 text-gray-400 group-hover:text-black group-hover:translate-x-1 transition-all"})]}),g.jsx("h3",{className:"text-xl font-bold mb-2",children:n.name}),g.jsx("p",{className:"text-gray-600 text-sm mb-3",children:n.description}),g.jsx("div",{className:"text-xs font-mono text-gray-500",children:n.performance})]})},n.name))})]})})}),g.jsx("section",{className:"py-24 border-t border-gray-200 bg-gray-50",children:g.jsxs("div",{className:"container",children:[g.jsx("h2",{className:"text-3xl lg:text-4xl font-bold font-mono mb-12",children:"Quick Start"}),g.jsx("div",{className:"code-block",children:g.jsx("pre",{className:"language-go",children:`// Initialize consensus with Snowball engine
|
|
params := ConsensusParams{
|
|
K: 20,
|
|
AlphaPreference: 15,
|
|
AlphaConfidence: 15,
|
|
Beta: 20,
|
|
}
|
|
|
|
consensus := NewConsensus(SNOWBALL, params)
|
|
|
|
// Add block to consensus
|
|
consensus.Add(block)
|
|
|
|
// Process votes until consensus
|
|
for i := 0; i < 20; i++ {
|
|
vote := Vote{
|
|
NodeID: i,
|
|
BlockID: 0x1234,
|
|
VoteType: VOTE_PREFER,
|
|
}
|
|
consensus.ProcessVote(vote)
|
|
}
|
|
|
|
// Check if block achieved consensus
|
|
if consensus.IsAccepted(0x1234) {
|
|
fmt.Println("✓ Consensus achieved!")
|
|
}`})})]})}),g.jsx("section",{className:"py-24",children:g.jsxs("div",{className:"container",children:[g.jsx("h2",{className:"text-3xl lg:text-4xl font-bold font-mono mb-12",children:"Core Features"}),g.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[{icon:Wi,title:"Byzantine Fault Tolerance",description:"Tolerates up to f < n/3 malicious nodes with proven safety guarantees"},{icon:fd,title:"High Performance",description:"Optimized implementations achieving 14,000+ votes/second"},{icon:kx,title:"ZeroMQ Transport",description:"Binary protocol over ZeroMQ for efficient network communication"},{icon:Wi,title:"Post-Quantum Ready",description:"PostQuantum engine with ML-KEM and ML-DSA cryptography"},{icon:cd,title:"Multiple Engines",description:"Snowball, Avalanche, Snowflake, DAG, Chain, and PostQuantum"},{icon:ud,title:"Comprehensive Testing",description:"100% test coverage with parity testing across implementations"}].map((n,r)=>g.jsxs(Pr.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},className:"flex flex-col items-center text-center",children:[g.jsx(n.icon,{className:"w-12 h-12 mb-4 text-gray-400"}),g.jsx("h3",{className:"text-lg font-bold mb-2",children:n.title}),g.jsx("p",{className:"text-sm text-gray-600",children:n.description})]},n.title))})]})})]})}function bC(){const e=[{title:"Getting Started",icon:nm,links:[{label:"Installation",href:"#installation"},{label:"Quick Start",href:"#quick-start"},{label:"Basic Usage",href:"#basic-usage"}]},{title:"Core Concepts",icon:Px,links:[{label:"Consensus Engines",href:"#engines"},{label:"Block Interface",href:"#blocks"},{label:"Vote Protocol",href:"#votes"}]},{title:"Language Implementations",icon:fu,links:[{label:"Go",href:"/docs/go"},{label:"C",href:"/docs/c"},{label:"Rust",href:"/docs/rust"},{label:"C++",href:"/docs/cpp"},{label:"Python",href:"/docs/python"}]},{title:"Advanced",icon:Sx,links:[{label:"Network Integration",href:"#network"},{label:"Performance Tuning",href:"#performance"},{label:"Security",href:"#security"}]}];return g.jsx("div",{className:"min-h-screen py-12",children:g.jsx("div",{className:"container",children:g.jsxs("div",{className:"max-w-6xl mx-auto",children:[g.jsxs("div",{className:"mb-12",children:[g.jsx("h1",{className:"text-4xl lg:text-5xl font-bold font-mono mb-4",children:"Documentation"}),g.jsx("p",{className:"text-lg text-gray-600 dark:text-gray-400",children:"Everything you need to integrate high-performance consensus into your blockchain."})]}),g.jsx("div",{className:"grid md:grid-cols-2 gap-8 mb-16",children:e.map(t=>g.jsxs("div",{className:"card",children:[g.jsxs("div",{className:"flex items-center mb-4",children:[g.jsx(t.icon,{className:"w-5 h-5 mr-2 text-gray-400"}),g.jsx("h2",{className:"text-xl font-bold",children:t.title})]}),g.jsx("ul",{className:"space-y-2",children:t.links.map(n=>g.jsx("li",{children:n.href.startsWith("/")?g.jsxs(st,{to:n.href,className:"text-gray-600 dark:text-gray-400 hover:text-black dark:hover:text-white transition-colors",children:["→ ",n.label]}):g.jsxs("a",{href:n.href,className:"text-gray-600 dark:text-gray-400 hover:text-black dark:hover:text-white transition-colors",children:["→ ",n.label]})},n.label))})]},t.title))}),g.jsxs("div",{className:"prose prose-gray dark:prose-invert max-w-none",children:[g.jsxs("section",{id:"installation",className:"mb-16",children:[g.jsx("h2",{className:"text-3xl font-bold font-mono mb-6",children:"Installation"}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"code-block",children:[g.jsx("h3",{className:"text-sm font-mono mb-2 text-gray-500",children:"Go"}),g.jsx("pre",{className:"text-xs",children:"go get github.com/luxfi/consensus"})]}),g.jsxs("div",{className:"code-block",children:[g.jsx("h3",{className:"text-sm font-mono mb-2 text-gray-500",children:"Rust"}),g.jsx("pre",{className:"text-xs",children:"cargo add lux-consensus"})]}),g.jsxs("div",{className:"code-block",children:[g.jsx("h3",{className:"text-sm font-mono mb-2 text-gray-500",children:"Python"}),g.jsx("pre",{className:"text-xs",children:"pip install lux-consensus"})]}),g.jsxs("div",{className:"code-block",children:[g.jsx("h3",{className:"text-sm font-mono mb-2 text-gray-500",children:"C/C++"}),g.jsx("pre",{className:"text-xs",children:"make install"})]})]})]}),g.jsxs("section",{id:"quick-start",className:"mb-16",children:[g.jsx("h2",{className:"text-3xl font-bold font-mono mb-6",children:"Quick Start"}),g.jsx("div",{className:"code-block mb-6",children:g.jsx("pre",{className:"language-go",children:`package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/luxfi/consensus/engine/core"
|
|
)
|
|
|
|
func main() {
|
|
// Configure consensus parameters
|
|
params := core.ConsensusParams{
|
|
K: 20,
|
|
AlphaPreference: 15,
|
|
AlphaConfidence: 15,
|
|
Beta: 20,
|
|
}
|
|
|
|
// Create consensus engine
|
|
consensus, err := core.NewCGOConsensus(params)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
// Add block and process votes
|
|
consensus.Add(block)
|
|
|
|
// Check consensus
|
|
if consensus.IsAccepted(blockID) {
|
|
fmt.Println("Consensus achieved!")
|
|
}
|
|
}`})})]}),g.jsxs("section",{id:"engines",className:"mb-16",children:[g.jsx("h2",{className:"text-3xl font-bold font-mono mb-6",children:"Consensus Engines"}),g.jsx("div",{className:"grid gap-6",children:[{name:"Snowball",desc:"Classic Byzantine fault-tolerant consensus with simple voting mechanism"},{name:"Avalanche",desc:"DAG-based consensus with conflict set resolution"},{name:"Snowflake",desc:"Simplified binary consensus for quick decisions"},{name:"DAG",desc:"Full directed acyclic graph consensus with topological ordering"},{name:"Chain",desc:"Linear chain consensus for ordered block processing"},{name:"PostQuantum",desc:"Quantum-resistant consensus with lattice-based cryptography"}].map(t=>g.jsxs("div",{className:"card",children:[g.jsx("h3",{className:"font-mono font-bold mb-2",children:t.name}),g.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:t.desc})]},t.name))})]}),g.jsxs("section",{id:"performance",className:"mb-16",children:[g.jsx("h2",{className:"text-3xl font-bold font-mono mb-6",children:"Performance"}),g.jsx("div",{className:"card",children:g.jsxs("table",{className:"w-full text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"border-b border-gray-200 dark:border-gray-800",children:[g.jsx("th",{className:"text-left py-2",children:"Implementation"}),g.jsx("th",{className:"text-right py-2",children:"Votes/Second"}),g.jsx("th",{className:"text-right py-2",children:"Memory"}),g.jsx("th",{className:"text-right py-2",children:"Latency"})]})}),g.jsxs("tbody",{children:[g.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-900",children:[g.jsx("td",{className:"py-2 font-mono",children:"C++"}),g.jsx("td",{className:"text-right",children:"15,000+"}),g.jsx("td",{className:"text-right",children:"< 25 MB"}),g.jsx("td",{className:"text-right",children:"< 1ms"})]}),g.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-900",children:[g.jsx("td",{className:"py-2 font-mono",children:"C"}),g.jsx("td",{className:"text-right",children:"14,000+"}),g.jsx("td",{className:"text-right",children:"< 10 MB"}),g.jsx("td",{className:"text-right",children:"< 1ms"})]}),g.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-900",children:[g.jsx("td",{className:"py-2 font-mono",children:"Rust"}),g.jsx("td",{className:"text-right",children:"13,500+"}),g.jsx("td",{className:"text-right",children:"< 15 MB"}),g.jsx("td",{className:"text-right",children:"< 1ms"})]}),g.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-900",children:[g.jsx("td",{className:"py-2 font-mono",children:"Go"}),g.jsx("td",{className:"text-right",children:"12,000+"}),g.jsx("td",{className:"text-right",children:"< 20 MB"}),g.jsx("td",{className:"text-right",children:"< 2ms"})]}),g.jsxs("tr",{children:[g.jsx("td",{className:"py-2 font-mono",children:"Python"}),g.jsx("td",{className:"text-right",children:"5,000+"}),g.jsx("td",{className:"text-right",children:"< 50 MB"}),g.jsx("td",{className:"text-right",children:"< 5ms"})]})]})]})})]})]})]})})})}const _C={go:{name:"Go",icon:"🔷",description:"Production blockchain integration with concurrent processing",installation:"go get github.com/luxfi/consensus",example:`package main
|
|
|
|
import (
|
|
"github.com/luxfi/consensus/engine/core"
|
|
"github.com/luxfi/ids"
|
|
)
|
|
|
|
func main() {
|
|
params := core.ConsensusParams{
|
|
K: 20,
|
|
AlphaPreference: 15,
|
|
}
|
|
|
|
consensus, _ := core.NewCGOConsensus(params)
|
|
consensus.Add(block)
|
|
}`},c:{name:"C",icon:"🔧",description:"High-performance native implementation with minimal overhead",installation:"make install",example:`#include <consensus.h>
|
|
|
|
int main() {
|
|
consensus_t* consensus = consensus_new(SNOWBALL);
|
|
consensus_configure(consensus, ¶ms);
|
|
consensus_add_block(consensus, &block);
|
|
consensus_free(consensus);
|
|
return 0;
|
|
}`},rust:{name:"Rust",icon:"🦀",description:"Memory-safe systems programming with zero-cost abstractions",installation:"cargo add lux-consensus",example:`use lux_consensus::{Consensus, EngineType};
|
|
|
|
fn main() {
|
|
let consensus = Consensus::new(
|
|
EngineType::Snowball,
|
|
params
|
|
)?;
|
|
|
|
consensus.add_block(block).await?;
|
|
}`},cpp:{name:"C++",icon:"⚙️",description:"Modern C++ with MLX GPU acceleration",installation:"cmake . && make install",example:`#include <lux/consensus.hpp>
|
|
|
|
int main() {
|
|
auto consensus = lux::consensus::Consensus::create(
|
|
EngineType::Snowball,
|
|
params
|
|
);
|
|
|
|
consensus->add_block(block);
|
|
return 0;
|
|
}`},python:{name:"Python",icon:"🐍",description:"Research and prototyping with data science integration",installation:"pip install lux-consensus",example:`from lux_consensus import Consensus, EngineType
|
|
|
|
consensus = Consensus(EngineType.SNOWBALL, params)
|
|
consensus.add_block(block)
|
|
|
|
if consensus.is_accepted(block_id):
|
|
print("Consensus achieved!")`}};function OC(){const{language:e}=W0(),t=_C[e];return t?g.jsx("div",{className:"min-h-screen py-12",children:g.jsx("div",{className:"container",children:g.jsxs("div",{className:"max-w-4xl mx-auto",children:[g.jsxs(st,{to:"/docs",className:"inline-flex items-center text-gray-600 dark:text-gray-400 hover:text-black dark:hover:text-white transition-colors mb-8",children:[g.jsx(wx,{className:"w-4 h-4 mr-2"}),"Back to Documentation"]}),g.jsxs("div",{className:"mb-12",children:[g.jsxs("div",{className:"flex items-center mb-4",children:[g.jsx("span",{className:"text-5xl mr-4",children:t.icon}),g.jsxs("h1",{className:"text-4xl lg:text-5xl font-bold font-mono",children:[t.name," Implementation"]})]}),g.jsx("p",{className:"text-lg text-gray-600 dark:text-gray-400",children:t.description})]}),g.jsxs("section",{className:"mb-12",children:[g.jsx("h2",{className:"text-2xl font-bold font-mono mb-4",children:"Installation"}),g.jsx("div",{className:"code-block",children:g.jsx("pre",{children:t.installation})})]}),g.jsxs("section",{className:"mb-12",children:[g.jsx("h2",{className:"text-2xl font-bold font-mono mb-4",children:"Quick Example"}),g.jsx("div",{className:"code-block",children:g.jsx("pre",{children:t.example})})]}),g.jsxs("section",{className:"mb-12",children:[g.jsx("h2",{className:"text-2xl font-bold font-mono mb-4",children:"Key Features"}),g.jsxs("ul",{className:"space-y-2",children:[g.jsxs("li",{className:"flex items-start",children:[g.jsx("span",{className:"mr-2",children:"•"}),g.jsx("span",{children:"Full consensus engine implementation"})]}),g.jsxs("li",{className:"flex items-start",children:[g.jsx("span",{className:"mr-2",children:"•"}),g.jsx("span",{children:"ZeroMQ network transport"})]}),g.jsxs("li",{className:"flex items-start",children:[g.jsx("span",{className:"mr-2",children:"•"}),g.jsx("span",{children:"Comprehensive test coverage"})]}),g.jsxs("li",{className:"flex items-start",children:[g.jsx("span",{className:"mr-2",children:"•"}),g.jsx("span",{children:"Production-ready performance"})]})]})]}),g.jsxs("section",{className:"mb-12",children:[g.jsx("h2",{className:"text-2xl font-bold font-mono mb-4",children:"Resources"}),g.jsxs("div",{className:"flex flex-wrap gap-4",children:[g.jsx("a",{href:`https://github.com/luxfi/consensus/tree/main/src/${e}`,target:"_blank",rel:"noopener noreferrer",className:"btn",children:"View Source"}),g.jsx("a",{href:`https://github.com/luxfi/consensus/tree/main/docs/${e}`,target:"_blank",rel:"noopener noreferrer",className:"btn",children:"Full Documentation"})]})]})]})})}):g.jsx("div",{className:"min-h-screen py-12",children:g.jsxs("div",{className:"container",children:[g.jsx("h1",{className:"text-4xl font-bold font-mono mb-4",children:"Language not found"}),g.jsx(st,{to:"/docs",className:"btn",children:"Back to Documentation"})]})})}function IC(){return g.jsx(a1,{children:g.jsxs(ox,{children:[g.jsx(os,{path:"/",element:g.jsx(VC,{})}),g.jsx(os,{path:"/docs",element:g.jsx(bC,{})}),g.jsx(os,{path:"/docs/:language",element:g.jsx(OC,{})})]})})}nl.createRoot(document.getElementById("root")).render(g.jsx(zf.StrictMode,{children:g.jsx(hx,{children:g.jsx(IC,{})})}));
|