arbiter-cli 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- arbiter/__init__.py +3 -0
- arbiter/cli/__init__.py +0 -0
- arbiter/cli/app.py +699 -0
- arbiter/cli/display.py +381 -0
- arbiter/core/__init__.py +0 -0
- arbiter/core/benchmarks.py +804 -0
- arbiter/core/config.py +137 -0
- arbiter/core/discover.py +184 -0
- arbiter/core/judge.py +193 -0
- arbiter/core/leaderboard.py +197 -0
- arbiter/core/metrics.py +367 -0
- arbiter/core/providers/__init__.py +19 -0
- arbiter/core/providers/anthropic_provider.py +133 -0
- arbiter/core/providers/base.py +62 -0
- arbiter/core/providers/factory.py +79 -0
- arbiter/core/providers/google_provider.py +126 -0
- arbiter/core/providers/ollama.py +103 -0
- arbiter/core/providers/openai_provider.py +120 -0
- arbiter/core/runner.py +257 -0
- arbiter/core/swe/__init__.py +1 -0
- arbiter/core/swe/container.py +158 -0
- arbiter/core/swe/runner.py +220 -0
- arbiter/core/swe/sandbox.py +111 -0
- arbiter/core/swe/test_packs.py +548 -0
- arbiter/dashboard/__init__.py +0 -0
- arbiter/dashboard/frontend/dist/assets/index-1tkxJouQ.css +1 -0
- arbiter/dashboard/frontend/dist/assets/index-dHa4zmvw.js +298 -0
- arbiter/dashboard/frontend/dist/index.html +16 -0
- arbiter/dashboard/server.py +426 -0
- arbiter_cli-0.1.0.dist-info/METADATA +299 -0
- arbiter_cli-0.1.0.dist-info/RECORD +35 -0
- arbiter_cli-0.1.0.dist-info/WHEEL +5 -0
- arbiter_cli-0.1.0.dist-info/entry_points.txt +2 -0
- arbiter_cli-0.1.0.dist-info/licenses/LICENSE +21 -0
- arbiter_cli-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();function Jh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var al={exports:{}},ls={},ll={exports:{}},ue={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Tf;function Og(){if(Tf)return ue;Tf=1;var n=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.iterator;function k(T){return T===null||typeof T!="object"?null:(T=x&&T[x]||T["@@iterator"],typeof T=="function"?T:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function _(T,V,ae){this.props=T,this.context=V,this.refs=R,this.updater=ae||C}_.prototype.isReactComponent={},_.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,V,"setState")},_.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function L(){}L.prototype=_.prototype;function z(T,V,ae){this.props=T,this.context=V,this.refs=R,this.updater=ae||C}var $=z.prototype=new L;$.constructor=z,E($,_.prototype),$.isPureReactComponent=!0;var K=Array.isArray,U=Object.prototype.hasOwnProperty,Z={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function B(T,V,ae){var ce,he={},pe=null,we=null;if(V!=null)for(ce in V.ref!==void 0&&(we=V.ref),V.key!==void 0&&(pe=""+V.key),V)U.call(V,ce)&&!G.hasOwnProperty(ce)&&(he[ce]=V[ce]);var ve=arguments.length-2;if(ve===1)he.children=ae;else if(1<ve){for(var Te=Array(ve),lt=0;lt<ve;lt++)Te[lt]=arguments[lt+2];he.children=Te}if(T&&T.defaultProps)for(ce in ve=T.defaultProps,ve)he[ce]===void 0&&(he[ce]=ve[ce]);return{$$typeof:n,type:T,key:pe,ref:we,props:he,_owner:Z.current}}function J(T,V){return{$$typeof:n,type:T.type,key:V,ref:T.ref,props:T.props,_owner:T._owner}}function se(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function ye(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ae){return V[ae]})}var ge=/\/+/g;function Re(T,V){return typeof T=="object"&&T!==null&&T.key!=null?ye(""+T.key):V.toString(36)}function Fe(T,V,ae,ce,he){var pe=typeof T;(pe==="undefined"||pe==="boolean")&&(T=null);var we=!1;if(T===null)we=!0;else switch(pe){case"string":case"number":we=!0;break;case"object":switch(T.$$typeof){case n:case s:we=!0}}if(we)return we=T,he=he(we),T=ce===""?"."+Re(we,0):ce,K(he)?(ae="",T!=null&&(ae=T.replace(ge,"$&/")+"/"),Fe(he,V,ae,"",function(lt){return lt})):he!=null&&(se(he)&&(he=J(he,ae+(!he.key||we&&we.key===he.key?"":(""+he.key).replace(ge,"$&/")+"/")+T)),V.push(he)),1;if(we=0,ce=ce===""?".":ce+":",K(T))for(var ve=0;ve<T.length;ve++){pe=T[ve];var Te=ce+Re(pe,ve);we+=Fe(pe,V,ae,Te,he)}else if(Te=k(T),typeof Te=="function")for(T=Te.call(T),ve=0;!(pe=T.next()).done;)pe=pe.value,Te=ce+Re(pe,ve++),we+=Fe(pe,V,ae,Te,he);else if(pe==="object")throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return we}function jt(T,V,ae){if(T==null)return T;var ce=[],he=0;return Fe(T,ce,"","",function(pe){return V.call(ae,pe,he++)}),ce}function Je(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(ae){(T._status===0||T._status===-1)&&(T._status=1,T._result=ae)},function(ae){(T._status===0||T._status===-1)&&(T._status=2,T._result=ae)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var le={current:null},b={transition:null},ee={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:b,ReactCurrentOwner:Z};function H(){throw Error("act(...) is not supported in production builds of React.")}return ue.Children={map:jt,forEach:function(T,V,ae){jt(T,function(){V.apply(this,arguments)},ae)},count:function(T){var V=0;return jt(T,function(){V++}),V},toArray:function(T){return jt(T,function(V){return V})||[]},only:function(T){if(!se(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},ue.Component=_,ue.Fragment=i,ue.Profiler=u,ue.PureComponent=z,ue.StrictMode=a,ue.Suspense=m,ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,ue.act=H,ue.cloneElement=function(T,V,ae){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var ce=E({},T.props),he=T.key,pe=T.ref,we=T._owner;if(V!=null){if(V.ref!==void 0&&(pe=V.ref,we=Z.current),V.key!==void 0&&(he=""+V.key),T.type&&T.type.defaultProps)var ve=T.type.defaultProps;for(Te in V)U.call(V,Te)&&!G.hasOwnProperty(Te)&&(ce[Te]=V[Te]===void 0&&ve!==void 0?ve[Te]:V[Te])}var Te=arguments.length-2;if(Te===1)ce.children=ae;else if(1<Te){ve=Array(Te);for(var lt=0;lt<Te;lt++)ve[lt]=arguments[lt+2];ce.children=ve}return{$$typeof:n,type:T.type,key:he,ref:pe,props:ce,_owner:we}},ue.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:f,_context:T},T.Consumer=T},ue.createElement=B,ue.createFactory=function(T){var V=B.bind(null,T);return V.type=T,V},ue.createRef=function(){return{current:null}},ue.forwardRef=function(T){return{$$typeof:h,render:T}},ue.isValidElement=se,ue.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:Je}},ue.memo=function(T,V){return{$$typeof:y,type:T,compare:V===void 0?null:V}},ue.startTransition=function(T){var V=b.transition;b.transition={};try{T()}finally{b.transition=V}},ue.unstable_act=H,ue.useCallback=function(T,V){return le.current.useCallback(T,V)},ue.useContext=function(T){return le.current.useContext(T)},ue.useDebugValue=function(){},ue.useDeferredValue=function(T){return le.current.useDeferredValue(T)},ue.useEffect=function(T,V){return le.current.useEffect(T,V)},ue.useId=function(){return le.current.useId()},ue.useImperativeHandle=function(T,V,ae){return le.current.useImperativeHandle(T,V,ae)},ue.useInsertionEffect=function(T,V){return le.current.useInsertionEffect(T,V)},ue.useLayoutEffect=function(T,V){return le.current.useLayoutEffect(T,V)},ue.useMemo=function(T,V){return le.current.useMemo(T,V)},ue.useReducer=function(T,V,ae){return le.current.useReducer(T,V,ae)},ue.useRef=function(T){return le.current.useRef(T)},ue.useState=function(T){return le.current.useState(T)},ue.useSyncExternalStore=function(T,V,ae){return le.current.useSyncExternalStore(T,V,ae)},ue.useTransition=function(){return le.current.useTransition()},ue.version="18.3.1",ue}var Nf;function Hl(){return Nf||(Nf=1,ll.exports=Og()),ll.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Pf;function Fg(){if(Pf)return ls;Pf=1;var n=Hl(),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function d(h,m,y){var v,x={},k=null,C=null;y!==void 0&&(k=""+y),m.key!==void 0&&(k=""+m.key),m.ref!==void 0&&(C=m.ref);for(v in m)a.call(m,v)&&!f.hasOwnProperty(v)&&(x[v]=m[v]);if(h&&h.defaultProps)for(v in m=h.defaultProps,m)x[v]===void 0&&(x[v]=m[v]);return{$$typeof:s,type:h,key:k,ref:C,props:x,_owner:u.current}}return ls.Fragment=i,ls.jsx=d,ls.jsxs=d,ls}var Ef;function zg(){return Ef||(Ef=1,al.exports=Fg()),al.exports}var p=zg(),A=Hl();const Ig=Jh(A);var bi={},ul={exports:{}},at={},cl={exports:{}},dl={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Mf;function bg(){return Mf||(Mf=1,(function(n){function s(b,ee){var H=b.length;b.push(ee);e:for(;0<H;){var T=H-1>>>1,V=b[T];if(0<u(V,ee))b[T]=ee,b[H]=V,H=T;else break e}}function i(b){return b.length===0?null:b[0]}function a(b){if(b.length===0)return null;var ee=b[0],H=b.pop();if(H!==ee){b[0]=H;e:for(var T=0,V=b.length,ae=V>>>1;T<ae;){var ce=2*(T+1)-1,he=b[ce],pe=ce+1,we=b[pe];if(0>u(he,H))pe<V&&0>u(we,he)?(b[T]=we,b[pe]=H,T=pe):(b[T]=he,b[ce]=H,T=ce);else if(pe<V&&0>u(we,H))b[T]=we,b[pe]=H,T=pe;else break e}}return ee}function u(b,ee){var H=b.sortIndex-ee.sortIndex;return H!==0?H:b.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],y=[],v=1,x=null,k=3,C=!1,E=!1,R=!1,_=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(b){for(var ee=i(y);ee!==null;){if(ee.callback===null)a(y);else if(ee.startTime<=b)a(y),ee.sortIndex=ee.expirationTime,s(m,ee);else break;ee=i(y)}}function K(b){if(R=!1,$(b),!E)if(i(m)!==null)E=!0,Je(U);else{var ee=i(y);ee!==null&&le(K,ee.startTime-b)}}function U(b,ee){E=!1,R&&(R=!1,L(B),B=-1),C=!0;var H=k;try{for($(ee),x=i(m);x!==null&&(!(x.expirationTime>ee)||b&&!ye());){var T=x.callback;if(typeof T=="function"){x.callback=null,k=x.priorityLevel;var V=T(x.expirationTime<=ee);ee=n.unstable_now(),typeof V=="function"?x.callback=V:x===i(m)&&a(m),$(ee)}else a(m);x=i(m)}if(x!==null)var ae=!0;else{var ce=i(y);ce!==null&&le(K,ce.startTime-ee),ae=!1}return ae}finally{x=null,k=H,C=!1}}var Z=!1,G=null,B=-1,J=5,se=-1;function ye(){return!(n.unstable_now()-se<J)}function ge(){if(G!==null){var b=n.unstable_now();se=b;var ee=!0;try{ee=G(!0,b)}finally{ee?Re():(Z=!1,G=null)}}else Z=!1}var Re;if(typeof z=="function")Re=function(){z(ge)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,jt=Fe.port2;Fe.port1.onmessage=ge,Re=function(){jt.postMessage(null)}}else Re=function(){_(ge,0)};function Je(b){G=b,Z||(Z=!0,Re())}function le(b,ee){B=_(function(){b(n.unstable_now())},ee)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(b){b.callback=null},n.unstable_continueExecution=function(){E||C||(E=!0,Je(U))},n.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<b?Math.floor(1e3/b):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_getFirstCallbackNode=function(){return i(m)},n.unstable_next=function(b){switch(k){case 1:case 2:case 3:var ee=3;break;default:ee=k}var H=k;k=ee;try{return b()}finally{k=H}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(b,ee){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var H=k;k=b;try{return ee()}finally{k=H}},n.unstable_scheduleCallback=function(b,ee,H){var T=n.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?T+H:T):H=T,b){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=H+V,b={id:v++,callback:ee,priorityLevel:b,startTime:H,expirationTime:V,sortIndex:-1},H>T?(b.sortIndex=H,s(y,b),i(m)===null&&b===i(y)&&(R?(L(B),B=-1):R=!0,le(K,H-T))):(b.sortIndex=V,s(m,b),E||C||(E=!0,Je(U))),b},n.unstable_shouldYield=ye,n.unstable_wrapCallback=function(b){var ee=k;return function(){var H=k;k=ee;try{return b.apply(this,arguments)}finally{k=H}}}})(dl)),dl}var Rf;function Bg(){return Rf||(Rf=1,cl.exports=bg()),cl.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var _f;function Ug(){if(_f)return at;_f=1;var n=Hl(),s=Bg();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 a=new Set,u={};function f(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,y=/^[: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]*$/,v={},x={};function k(e){return m.call(x,e)?!0:m.call(v,e)?!1:y.test(e)?x[e]=!0:(v[e]=!0,!1)}function C(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E(e,t,r,o){if(t===null||typeof t>"u"||C(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.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 R(e,t,r,o,l,c,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=l,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=g}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_[e]=new R(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_[t]=new R(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_[e]=new R(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_[e]=new R(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){_[e]=new R(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_[e]=new R(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_[e]=new R(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_[e]=new R(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_[e]=new R(e,5,!1,e.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function z(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(L,z);_[t]=new R(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(L,z);_[t]=new R(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(L,z);_[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_[e]=new R(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_[e]=new R(e,1,!1,e.toLowerCase(),null,!0,!0)});function $(e,t,r,o){var l=_.hasOwnProperty(t)?_[t]:null;(l!==null?l.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(E(t,r,l,o)&&(r=null),o||l===null?k(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):l.mustUseProperty?e[l.propertyName]=r===null?l.type===3?!1:"":r:(t=l.attributeName,o=l.attributeNamespace,r===null?e.removeAttribute(t):(l=l.type,r=l===3||l===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var K=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),Z=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),ye=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),jt=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),le=Symbol.for("react.offscreen"),b=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=b&&e[b]||e["@@iterator"],typeof e=="function"?e:null)}var H=Object.assign,T;function V(e){if(T===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||""}return`
|
|
34
|
+
`+T+e}var ae=!1;function ce(e,t){if(!e||ae)return"";ae=!0;var r=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(M){var o=M}Reflect.construct(e,[],t)}else{try{t.call()}catch(M){o=M}e.call(t.prototype)}else{try{throw Error()}catch(M){o=M}e()}}catch(M){if(M&&o&&typeof M.stack=="string"){for(var l=M.stack.split(`
|
|
35
|
+
`),c=o.stack.split(`
|
|
36
|
+
`),g=l.length-1,w=c.length-1;1<=g&&0<=w&&l[g]!==c[w];)w--;for(;1<=g&&0<=w;g--,w--)if(l[g]!==c[w]){if(g!==1||w!==1)do if(g--,w--,0>w||l[g]!==c[w]){var S=`
|
|
37
|
+
`+l[g].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=g&&0<=w);break}}}finally{ae=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?V(e):""}function he(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=ce(e.type,!1),e;case 11:return e=ce(e.type.render,!1),e;case 1:return e=ce(e.type,!0),e;default:return""}}function pe(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 G:return"Fragment";case Z:return"Portal";case J:return"Profiler";case B:return"StrictMode";case Re:return"Suspense";case Fe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ye:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case ge:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jt:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case Je:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}function we(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 pe(t);case 8:return t===B?"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 ve(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lt(e){var t=Te(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var l=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(g){o=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(g){o=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rs(e){e._valueTracker||(e._valueTracker=lt(e))}function Ru(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=Te(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function _s(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 po(e,t){var r=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function _u(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=ve(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Au(e,t){t=t.checked,t!=null&&$(e,"checked",t,!1)}function mo(e,t){Au(e,t);var r=ve(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yo(e,t.type,r):t.hasOwnProperty("defaultValue")&&yo(e,t.type,ve(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lu(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function yo(e,t,r){(t!=="number"||_s(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var jr=Array.isArray;function bn(e,t,r,o){if(e=e.options,t){t={};for(var l=0;l<r.length;l++)t["$"+r[l]]=!0;for(r=0;r<e.length;r++)l=t.hasOwnProperty("$"+e[r].value),e[r].selected!==l&&(e[r].selected=l),l&&o&&(e[r].defaultSelected=!0)}else{for(r=""+ve(r),t=null,l=0;l<e.length;l++){if(e[l].value===r){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function go(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return H({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Du(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(i(92));if(jr(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ve(r)}}function Vu(e,t){var r=ve(t.value),o=ve(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function Ou(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Fu(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 vo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Fu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var As,zu=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,l){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(As=As||document.createElement("div"),As.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=As.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Tr={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},bm=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(e){bm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tr[t]=Tr[e]})});function Iu(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Tr.hasOwnProperty(e)&&Tr[e]?(""+t).trim():t+"px"}function bu(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,l=Iu(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,l):e[r]=l}}var Bm=H({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 xo(e,t){if(t){if(Bm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function wo(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 ko=null;function So(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jo=null,Bn=null,Un=null;function Bu(e){if(e=Gr(e)){if(typeof jo!="function")throw Error(i(280));var t=e.stateNode;t&&(t=ti(t),jo(e.stateNode,e.type,t))}}function Uu(e){Bn?Un?Un.push(e):Un=[e]:Bn=e}function $u(){if(Bn){var e=Bn,t=Un;if(Un=Bn=null,Bu(e),t)for(e=0;e<t.length;e++)Bu(t[e])}}function Wu(e,t){return e(t)}function Hu(){}var Co=!1;function Ku(e,t,r){if(Co)return e(t,r);Co=!0;try{return Wu(e,t,r)}finally{Co=!1,(Bn!==null||Un!==null)&&(Hu(),$u())}}function Nr(e,t){var r=e.stateNode;if(r===null)return null;var o=ti(r);if(o===null)return null;r=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,t,typeof r));return r}var To=!1;if(h)try{var Pr={};Object.defineProperty(Pr,"passive",{get:function(){To=!0}}),window.addEventListener("test",Pr,Pr),window.removeEventListener("test",Pr,Pr)}catch{To=!1}function Um(e,t,r,o,l,c,g,w,S){var M=Array.prototype.slice.call(arguments,3);try{t.apply(r,M)}catch(O){this.onError(O)}}var Er=!1,Ls=null,Ds=!1,No=null,$m={onError:function(e){Er=!0,Ls=e}};function Wm(e,t,r,o,l,c,g,w,S){Er=!1,Ls=null,Um.apply($m,arguments)}function Hm(e,t,r,o,l,c,g,w,S){if(Wm.apply(this,arguments),Er){if(Er){var M=Ls;Er=!1,Ls=null}else throw Error(i(198));Ds||(Ds=!0,No=M)}}function wn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Gu(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 Qu(e){if(wn(e)!==e)throw Error(i(188))}function Km(e){var t=e.alternate;if(!t){if(t=wn(e),t===null)throw Error(i(188));return t!==e?null:e}for(var r=e,o=t;;){var l=r.return;if(l===null)break;var c=l.alternate;if(c===null){if(o=l.return,o!==null){r=o;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===r)return Qu(l),e;if(c===o)return Qu(l),t;c=c.sibling}throw Error(i(188))}if(r.return!==o.return)r=l,o=c;else{for(var g=!1,w=l.child;w;){if(w===r){g=!0,r=l,o=c;break}if(w===o){g=!0,o=l,r=c;break}w=w.sibling}if(!g){for(w=c.child;w;){if(w===r){g=!0,r=c,o=l;break}if(w===o){g=!0,o=c,r=l;break}w=w.sibling}if(!g)throw Error(i(189))}}if(r.alternate!==o)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:t}function qu(e){return e=Km(e),e!==null?Yu(e):null}function Yu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Yu(e);if(t!==null)return t;e=e.sibling}return null}var Xu=s.unstable_scheduleCallback,Zu=s.unstable_cancelCallback,Gm=s.unstable_shouldYield,Qm=s.unstable_requestPaint,Le=s.unstable_now,qm=s.unstable_getCurrentPriorityLevel,Po=s.unstable_ImmediatePriority,Ju=s.unstable_UserBlockingPriority,Vs=s.unstable_NormalPriority,Ym=s.unstable_LowPriority,ec=s.unstable_IdlePriority,Os=null,At=null;function Xm(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Os,e,void 0,(e.current.flags&128)===128)}catch{}}var Ct=Math.clz32?Math.clz32:ey,Zm=Math.log,Jm=Math.LN2;function ey(e){return e>>>=0,e===0?32:31-(Zm(e)/Jm|0)|0}var Fs=64,zs=4194304;function Mr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Is(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,l=e.suspendedLanes,c=e.pingedLanes,g=r&268435455;if(g!==0){var w=g&~l;w!==0?o=Mr(w):(c&=g,c!==0&&(o=Mr(c)))}else g=r&~l,g!==0?o=Mr(g):c!==0&&(o=Mr(c));if(o===0)return 0;if(t!==0&&t!==o&&(t&l)===0&&(l=o&-o,c=t&-t,l>=c||l===16&&(c&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-Ct(t),l=1<<r,o|=e[r],t&=~l;return o}function ty(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 ny(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes;0<c;){var g=31-Ct(c),w=1<<g,S=l[g];S===-1?((w&r)===0||(w&o)!==0)&&(l[g]=ty(w,t)):S<=t&&(e.expiredLanes|=w),c&=~w}}function Eo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tc(){var e=Fs;return Fs<<=1,(Fs&4194240)===0&&(Fs=64),e}function Mo(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Rr(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=r}function ry(e,t){var r=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 o=e.eventTimes;for(e=e.expirationTimes;0<r;){var l=31-Ct(r),c=1<<l;t[l]=0,o[l]=-1,e[l]=-1,r&=~c}}function Ro(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-Ct(r),l=1<<o;l&t|e[o]&t&&(e[o]|=t),r&=~l}}var xe=0;function nc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var rc,_o,sc,ic,oc,Ao=!1,bs=[],Yt=null,Xt=null,Zt=null,_r=new Map,Ar=new Map,Jt=[],sy="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 ac(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Xt=null;break;case"mouseover":case"mouseout":Zt=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ar.delete(t.pointerId)}}function Lr(e,t,r,o,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:c,targetContainers:[l]},t!==null&&(t=Gr(t),t!==null&&_o(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function iy(e,t,r,o,l){switch(t){case"focusin":return Yt=Lr(Yt,e,t,r,o,l),!0;case"dragenter":return Xt=Lr(Xt,e,t,r,o,l),!0;case"mouseover":return Zt=Lr(Zt,e,t,r,o,l),!0;case"pointerover":var c=l.pointerId;return _r.set(c,Lr(_r.get(c)||null,e,t,r,o,l)),!0;case"gotpointercapture":return c=l.pointerId,Ar.set(c,Lr(Ar.get(c)||null,e,t,r,o,l)),!0}return!1}function lc(e){var t=kn(e.target);if(t!==null){var r=wn(t);if(r!==null){if(t=r.tag,t===13){if(t=Gu(r),t!==null){e.blockedOn=t,oc(e.priority,function(){sc(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Do(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);ko=o,r.target.dispatchEvent(o),ko=null}else return t=Gr(r),t!==null&&_o(t),e.blockedOn=r,!1;t.shift()}return!0}function uc(e,t,r){Bs(e)&&r.delete(t)}function oy(){Ao=!1,Yt!==null&&Bs(Yt)&&(Yt=null),Xt!==null&&Bs(Xt)&&(Xt=null),Zt!==null&&Bs(Zt)&&(Zt=null),_r.forEach(uc),Ar.forEach(uc)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ao||(Ao=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,oy)))}function Vr(e){function t(l){return Dr(l,e)}if(0<bs.length){Dr(bs[0],e);for(var r=1;r<bs.length;r++){var o=bs[r];o.blockedOn===e&&(o.blockedOn=null)}}for(Yt!==null&&Dr(Yt,e),Xt!==null&&Dr(Xt,e),Zt!==null&&Dr(Zt,e),_r.forEach(t),Ar.forEach(t),r=0;r<Jt.length;r++)o=Jt[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<Jt.length&&(r=Jt[0],r.blockedOn===null);)lc(r),r.blockedOn===null&&Jt.shift()}var $n=K.ReactCurrentBatchConfig,Us=!0;function ay(e,t,r,o){var l=xe,c=$n.transition;$n.transition=null;try{xe=1,Lo(e,t,r,o)}finally{xe=l,$n.transition=c}}function ly(e,t,r,o){var l=xe,c=$n.transition;$n.transition=null;try{xe=4,Lo(e,t,r,o)}finally{xe=l,$n.transition=c}}function Lo(e,t,r,o){if(Us){var l=Do(e,t,r,o);if(l===null)Xo(e,t,o,$s,r),ac(e,o);else if(iy(l,e,t,r,o))o.stopPropagation();else if(ac(e,o),t&4&&-1<sy.indexOf(e)){for(;l!==null;){var c=Gr(l);if(c!==null&&rc(c),c=Do(e,t,r,o),c===null&&Xo(e,t,o,$s,r),c===l)break;l=c}l!==null&&o.stopPropagation()}else Xo(e,t,o,null,r)}}var $s=null;function Do(e,t,r,o){if($s=null,e=So(o),e=kn(e),e!==null)if(t=wn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Gu(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $s=e,null}function cc(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(qm()){case Po:return 1;case Ju:return 4;case Vs:case Ym:return 16;case ec:return 536870912;default:return 16}default:return 16}}var en=null,Vo=null,Ws=null;function dc(){if(Ws)return Ws;var e,t=Vo,r=t.length,o,l="value"in en?en.value:en.textContent,c=l.length;for(e=0;e<r&&t[e]===l[e];e++);var g=r-e;for(o=1;o<=g&&t[r-o]===l[c-o];o++);return Ws=l.slice(e,1<o?1-o:void 0)}function Hs(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 Ks(){return!0}function fc(){return!1}function ut(e){function t(r,o,l,c,g){this._reactName=r,this._targetInst=l,this.type=o,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ks:fc,this.isPropagationStopped=fc,this}return H(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ks)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),t}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oo=ut(Wn),Or=H({},Wn,{view:0,detail:0}),uy=ut(Or),Fo,zo,Fr,Gs=H({},Or,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bo,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!==Fr&&(Fr&&e.type==="mousemove"?(Fo=e.screenX-Fr.screenX,zo=e.screenY-Fr.screenY):zo=Fo=0,Fr=e),Fo)},movementY:function(e){return"movementY"in e?e.movementY:zo}}),hc=ut(Gs),cy=H({},Gs,{dataTransfer:0}),dy=ut(cy),fy=H({},Or,{relatedTarget:0}),Io=ut(fy),hy=H({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0}),py=ut(hy),my=H({},Wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yy=ut(my),gy=H({},Wn,{data:0}),pc=ut(gy),vy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xy={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"},wy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ky(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wy[e])?!!t[e]:!1}function bo(){return ky}var Sy=H({},Or,{key:function(e){if(e.key){var t=vy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bo,charCode:function(e){return e.type==="keypress"?Hs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jy=ut(Sy),Cy=H({},Gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mc=ut(Cy),Ty=H({},Or,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bo}),Ny=ut(Ty),Py=H({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ey=ut(Py),My=H({},Gs,{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}),Ry=ut(My),_y=[9,13,27,32],Bo=h&&"CompositionEvent"in window,zr=null;h&&"documentMode"in document&&(zr=document.documentMode);var Ay=h&&"TextEvent"in window&&!zr,yc=h&&(!Bo||zr&&8<zr&&11>=zr),gc=" ",vc=!1;function xc(e,t){switch(e){case"keyup":return _y.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Ly(e,t){switch(e){case"compositionend":return wc(t);case"keypress":return t.which!==32?null:(vc=!0,gc);case"textInput":return e=t.data,e===gc&&vc?null:e;default:return null}}function Dy(e,t){if(Hn)return e==="compositionend"||!Bo&&xc(e,t)?(e=dc(),Ws=Vo=en=null,Hn=!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 yc&&t.locale!=="ko"?null:t.data;default:return null}}var Vy={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 kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vy[e.type]:t==="textarea"}function Sc(e,t,r,o){Uu(o),t=Zs(t,"onChange"),0<t.length&&(r=new Oo("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Ir=null,br=null;function Oy(e){bc(e,0)}function Qs(e){var t=Yn(e);if(Ru(t))return e}function Fy(e,t){if(e==="change")return t}var jc=!1;if(h){var Uo;if(h){var $o="oninput"in document;if(!$o){var Cc=document.createElement("div");Cc.setAttribute("oninput","return;"),$o=typeof Cc.oninput=="function"}Uo=$o}else Uo=!1;jc=Uo&&(!document.documentMode||9<document.documentMode)}function Tc(){Ir&&(Ir.detachEvent("onpropertychange",Nc),br=Ir=null)}function Nc(e){if(e.propertyName==="value"&&Qs(br)){var t=[];Sc(t,br,e,So(e)),Ku(Oy,t)}}function zy(e,t,r){e==="focusin"?(Tc(),Ir=t,br=r,Ir.attachEvent("onpropertychange",Nc)):e==="focusout"&&Tc()}function Iy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qs(br)}function by(e,t){if(e==="click")return Qs(t)}function By(e,t){if(e==="input"||e==="change")return Qs(t)}function Uy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:Uy;function Br(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var l=r[o];if(!m.call(t,l)||!Tt(e[l],t[l]))return!1}return!0}function Pc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ec(e,t){var r=Pc(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Pc(r)}}function Mc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rc(){for(var e=window,t=_s();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=_s(e.document)}return t}function Wo(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 $y(e){var t=Rc(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Mc(r.ownerDocument.documentElement,r)){if(o!==null&&Wo(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=r.textContent.length,c=Math.min(o.start,l);o=o.end===void 0?c:Math.min(o.end,l),!e.extend&&c>o&&(l=o,o=c,c=l),l=Ec(r,c);var g=Ec(r,o);l&&g&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),c>o?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Wy=h&&"documentMode"in document&&11>=document.documentMode,Kn=null,Ho=null,Ur=null,Ko=!1;function _c(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ko||Kn==null||Kn!==_s(o)||(o=Kn,"selectionStart"in o&&Wo(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ur&&Br(Ur,o)||(Ur=o,o=Zs(Ho,"onSelect"),0<o.length&&(t=new Oo("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Kn)))}function qs(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Gn={animationend:qs("Animation","AnimationEnd"),animationiteration:qs("Animation","AnimationIteration"),animationstart:qs("Animation","AnimationStart"),transitionend:qs("Transition","TransitionEnd")},Go={},Ac={};h&&(Ac=document.createElement("div").style,"AnimationEvent"in window||(delete Gn.animationend.animation,delete Gn.animationiteration.animation,delete Gn.animationstart.animation),"TransitionEvent"in window||delete Gn.transitionend.transition);function Ys(e){if(Go[e])return Go[e];if(!Gn[e])return e;var t=Gn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Ac)return Go[e]=t[r];return e}var Lc=Ys("animationend"),Dc=Ys("animationiteration"),Vc=Ys("animationstart"),Oc=Ys("transitionend"),Fc=new Map,zc="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 tn(e,t){Fc.set(e,t),f(t,[e])}for(var Qo=0;Qo<zc.length;Qo++){var qo=zc[Qo],Hy=qo.toLowerCase(),Ky=qo[0].toUpperCase()+qo.slice(1);tn(Hy,"on"+Ky)}tn(Lc,"onAnimationEnd"),tn(Dc,"onAnimationIteration"),tn(Vc,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(Oc,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $r="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(" "),Gy=new Set("cancel close invalid load scroll toggle".split(" ").concat($r));function Ic(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,Hm(o,t,void 0,e),e.currentTarget=null}function bc(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],l=o.event;o=o.listeners;e:{var c=void 0;if(t)for(var g=o.length-1;0<=g;g--){var w=o[g],S=w.instance,M=w.currentTarget;if(w=w.listener,S!==c&&l.isPropagationStopped())break e;Ic(l,w,M),c=S}else for(g=0;g<o.length;g++){if(w=o[g],S=w.instance,M=w.currentTarget,w=w.listener,S!==c&&l.isPropagationStopped())break e;Ic(l,w,M),c=S}}}if(Ds)throw e=No,Ds=!1,No=null,e}function je(e,t){var r=t[ra];r===void 0&&(r=t[ra]=new Set);var o=e+"__bubble";r.has(o)||(Bc(t,e,2,!1),r.add(o))}function Yo(e,t,r){var o=0;t&&(o|=4),Bc(r,e,o,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Xs]){e[Xs]=!0,a.forEach(function(r){r!=="selectionchange"&&(Gy.has(r)||Yo(r,!1,e),Yo(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,Yo("selectionchange",!1,t))}}function Bc(e,t,r,o){switch(cc(t)){case 1:var l=ay;break;case 4:l=ly;break;default:l=Lo}r=l.bind(null,t,r,e),l=void 0,!To||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,r,{capture:!0,passive:l}):e.addEventListener(t,r,!0):l!==void 0?e.addEventListener(t,r,{passive:l}):e.addEventListener(t,r,!1)}function Xo(e,t,r,o,l){var c=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var w=o.stateNode.containerInfo;if(w===l||w.nodeType===8&&w.parentNode===l)break;if(g===4)for(g=o.return;g!==null;){var S=g.tag;if((S===3||S===4)&&(S=g.stateNode.containerInfo,S===l||S.nodeType===8&&S.parentNode===l))return;g=g.return}for(;w!==null;){if(g=kn(w),g===null)return;if(S=g.tag,S===5||S===6){o=c=g;continue e}w=w.parentNode}}o=o.return}Ku(function(){var M=c,O=So(r),F=[];e:{var D=Fc.get(e);if(D!==void 0){var W=Oo,q=e;switch(e){case"keypress":if(Hs(r)===0)break e;case"keydown":case"keyup":W=jy;break;case"focusin":q="focus",W=Io;break;case"focusout":q="blur",W=Io;break;case"beforeblur":case"afterblur":W=Io;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=hc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=dy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=Ny;break;case Lc:case Dc:case Vc:W=py;break;case Oc:W=Ey;break;case"scroll":W=uy;break;case"wheel":W=Ry;break;case"copy":case"cut":case"paste":W=yy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=mc}var Y=(t&4)!==0,De=!Y&&e==="scroll",N=Y?D!==null?D+"Capture":null:D;Y=[];for(var j=M,P;j!==null;){P=j;var I=P.stateNode;if(P.tag===5&&I!==null&&(P=I,N!==null&&(I=Nr(j,N),I!=null&&Y.push(Hr(j,I,P)))),De)break;j=j.return}0<Y.length&&(D=new W(D,q,null,r,O),F.push({event:D,listeners:Y}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",D&&r!==ko&&(q=r.relatedTarget||r.fromElement)&&(kn(q)||q[It]))break e;if((W||D)&&(D=O.window===O?O:(D=O.ownerDocument)?D.defaultView||D.parentWindow:window,W?(q=r.relatedTarget||r.toElement,W=M,q=q?kn(q):null,q!==null&&(De=wn(q),q!==De||q.tag!==5&&q.tag!==6)&&(q=null)):(W=null,q=M),W!==q)){if(Y=hc,I="onMouseLeave",N="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(Y=mc,I="onPointerLeave",N="onPointerEnter",j="pointer"),De=W==null?D:Yn(W),P=q==null?D:Yn(q),D=new Y(I,j+"leave",W,r,O),D.target=De,D.relatedTarget=P,I=null,kn(O)===M&&(Y=new Y(N,j+"enter",q,r,O),Y.target=P,Y.relatedTarget=De,I=Y),De=I,W&&q)t:{for(Y=W,N=q,j=0,P=Y;P;P=Qn(P))j++;for(P=0,I=N;I;I=Qn(I))P++;for(;0<j-P;)Y=Qn(Y),j--;for(;0<P-j;)N=Qn(N),P--;for(;j--;){if(Y===N||N!==null&&Y===N.alternate)break t;Y=Qn(Y),N=Qn(N)}Y=null}else Y=null;W!==null&&Uc(F,D,W,Y,!1),q!==null&&De!==null&&Uc(F,De,q,Y,!0)}}e:{if(D=M?Yn(M):window,W=D.nodeName&&D.nodeName.toLowerCase(),W==="select"||W==="input"&&D.type==="file")var X=Fy;else if(kc(D))if(jc)X=By;else{X=Iy;var te=zy}else(W=D.nodeName)&&W.toLowerCase()==="input"&&(D.type==="checkbox"||D.type==="radio")&&(X=by);if(X&&(X=X(e,M))){Sc(F,X,r,O);break e}te&&te(e,D,M),e==="focusout"&&(te=D._wrapperState)&&te.controlled&&D.type==="number"&&yo(D,"number",D.value)}switch(te=M?Yn(M):window,e){case"focusin":(kc(te)||te.contentEditable==="true")&&(Kn=te,Ho=M,Ur=null);break;case"focusout":Ur=Ho=Kn=null;break;case"mousedown":Ko=!0;break;case"contextmenu":case"mouseup":case"dragend":Ko=!1,_c(F,r,O);break;case"selectionchange":if(Wy)break;case"keydown":case"keyup":_c(F,r,O)}var ne;if(Bo)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else Hn?xc(e,r)&&(oe="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(oe="onCompositionStart");oe&&(yc&&r.locale!=="ko"&&(Hn||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&Hn&&(ne=dc()):(en=O,Vo="value"in en?en.value:en.textContent,Hn=!0)),te=Zs(M,oe),0<te.length&&(oe=new pc(oe,e,null,r,O),F.push({event:oe,listeners:te}),ne?oe.data=ne:(ne=wc(r),ne!==null&&(oe.data=ne)))),(ne=Ay?Ly(e,r):Dy(e,r))&&(M=Zs(M,"onBeforeInput"),0<M.length&&(O=new pc("onBeforeInput","beforeinput",null,r,O),F.push({event:O,listeners:M}),O.data=ne))}bc(F,t)})}function Hr(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Zs(e,t){for(var r=t+"Capture",o=[];e!==null;){var l=e,c=l.stateNode;l.tag===5&&c!==null&&(l=c,c=Nr(e,r),c!=null&&o.unshift(Hr(e,c,l)),c=Nr(e,t),c!=null&&o.push(Hr(e,c,l))),e=e.return}return o}function Qn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Uc(e,t,r,o,l){for(var c=t._reactName,g=[];r!==null&&r!==o;){var w=r,S=w.alternate,M=w.stateNode;if(S!==null&&S===o)break;w.tag===5&&M!==null&&(w=M,l?(S=Nr(r,c),S!=null&&g.unshift(Hr(r,S,w))):l||(S=Nr(r,c),S!=null&&g.push(Hr(r,S,w)))),r=r.return}g.length!==0&&e.push({event:t,listeners:g})}var Qy=/\r\n?/g,qy=/\u0000|\uFFFD/g;function $c(e){return(typeof e=="string"?e:""+e).replace(Qy,`
|
|
38
|
+
`).replace(qy,"")}function Js(e,t,r){if(t=$c(t),$c(e)!==t&&r)throw Error(i(425))}function ei(){}var Zo=null,Jo=null;function ea(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 ta=typeof setTimeout=="function"?setTimeout:void 0,Yy=typeof clearTimeout=="function"?clearTimeout:void 0,Wc=typeof Promise=="function"?Promise:void 0,Xy=typeof queueMicrotask=="function"?queueMicrotask:typeof Wc<"u"?function(e){return Wc.resolve(null).then(e).catch(Zy)}:ta;function Zy(e){setTimeout(function(){throw e})}function na(e,t){var r=t,o=0;do{var l=r.nextSibling;if(e.removeChild(r),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(o===0){e.removeChild(l),Vr(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=l}while(r);Vr(t)}function nn(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 Hc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var qn=Math.random().toString(36).slice(2),Lt="__reactFiber$"+qn,Kr="__reactProps$"+qn,It="__reactContainer$"+qn,ra="__reactEvents$"+qn,Jy="__reactListeners$"+qn,eg="__reactHandles$"+qn;function kn(e){var t=e[Lt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[It]||r[Lt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Hc(e);e!==null;){if(r=e[Lt])return r;e=Hc(e)}return t}e=r,r=e.parentNode}return null}function Gr(e){return e=e[Lt]||e[It],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ti(e){return e[Kr]||null}var sa=[],Xn=-1;function rn(e){return{current:e}}function Ce(e){0>Xn||(e.current=sa[Xn],sa[Xn]=null,Xn--)}function ke(e,t){Xn++,sa[Xn]=e.current,e.current=t}var sn={},Ge=rn(sn),nt=rn(!1),Sn=sn;function Zn(e,t){var r=e.type.contextTypes;if(!r)return sn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in r)l[c]=t[c];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function rt(e){return e=e.childContextTypes,e!=null}function ni(){Ce(nt),Ce(Ge)}function Kc(e,t,r){if(Ge.current!==sn)throw Error(i(168));ke(Ge,t),ke(nt,r)}function Gc(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var l in o)if(!(l in t))throw Error(i(108,we(e)||"Unknown",l));return H({},r,o)}function ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,Sn=Ge.current,ke(Ge,e),ke(nt,nt.current),!0}function Qc(e,t,r){var o=e.stateNode;if(!o)throw Error(i(169));r?(e=Gc(e,t,Sn),o.__reactInternalMemoizedMergedChildContext=e,Ce(nt),Ce(Ge),ke(Ge,e)):Ce(nt),ke(nt,r)}var bt=null,si=!1,ia=!1;function qc(e){bt===null?bt=[e]:bt.push(e)}function tg(e){si=!0,qc(e)}function on(){if(!ia&&bt!==null){ia=!0;var e=0,t=xe;try{var r=bt;for(xe=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}bt=null,si=!1}catch(l){throw bt!==null&&(bt=bt.slice(e+1)),Xu(Po,on),l}finally{xe=t,ia=!1}}return null}var Jn=[],er=0,ii=null,oi=0,mt=[],yt=0,jn=null,Bt=1,Ut="";function Cn(e,t){Jn[er++]=oi,Jn[er++]=ii,ii=e,oi=t}function Yc(e,t,r){mt[yt++]=Bt,mt[yt++]=Ut,mt[yt++]=jn,jn=e;var o=Bt;e=Ut;var l=32-Ct(o)-1;o&=~(1<<l),r+=1;var c=32-Ct(t)+l;if(30<c){var g=l-l%5;c=(o&(1<<g)-1).toString(32),o>>=g,l-=g,Bt=1<<32-Ct(t)+l|r<<l|o,Ut=c+e}else Bt=1<<c|r<<l|o,Ut=e}function oa(e){e.return!==null&&(Cn(e,1),Yc(e,1,0))}function aa(e){for(;e===ii;)ii=Jn[--er],Jn[er]=null,oi=Jn[--er],Jn[er]=null;for(;e===jn;)jn=mt[--yt],mt[yt]=null,Ut=mt[--yt],mt[yt]=null,Bt=mt[--yt],mt[yt]=null}var ct=null,dt=null,Ne=!1,Nt=null;function Xc(e,t){var r=wt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Zc(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,dt=nn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=jn!==null?{id:Bt,overflow:Ut}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=wt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ct=e,dt=null,!0):!1;default:return!1}}function la(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ua(e){if(Ne){var t=dt;if(t){var r=t;if(!Zc(e,t)){if(la(e))throw Error(i(418));t=nn(r.nextSibling);var o=ct;t&&Zc(e,t)?Xc(o,r):(e.flags=e.flags&-4097|2,Ne=!1,ct=e)}}else{if(la(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ne=!1,ct=e}}}function Jc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function ai(e){if(e!==ct)return!1;if(!Ne)return Jc(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ea(e.type,e.memoizedProps)),t&&(t=dt)){if(la(e))throw ed(),Error(i(418));for(;t;)Xc(e,t),t=nn(t.nextSibling)}if(Jc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){dt=nn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}dt=null}}else dt=ct?nn(e.stateNode.nextSibling):null;return!0}function ed(){for(var e=dt;e;)e=nn(e.nextSibling)}function tr(){dt=ct=null,Ne=!1}function ca(e){Nt===null?Nt=[e]:Nt.push(e)}var ng=K.ReactCurrentBatchConfig;function Qr(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(i(309));var o=r.stateNode}if(!o)throw Error(i(147,e));var l=o,c=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c?t.ref:(t=function(g){var w=l.refs;g===null?delete w[c]:w[c]=g},t._stringRef=c,t)}if(typeof e!="string")throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function li(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function td(e){var t=e._init;return t(e._payload)}function nd(e){function t(N,j){if(e){var P=N.deletions;P===null?(N.deletions=[j],N.flags|=16):P.push(j)}}function r(N,j){if(!e)return null;for(;j!==null;)t(N,j),j=j.sibling;return null}function o(N,j){for(N=new Map;j!==null;)j.key!==null?N.set(j.key,j):N.set(j.index,j),j=j.sibling;return N}function l(N,j){return N=pn(N,j),N.index=0,N.sibling=null,N}function c(N,j,P){return N.index=P,e?(P=N.alternate,P!==null?(P=P.index,P<j?(N.flags|=2,j):P):(N.flags|=2,j)):(N.flags|=1048576,j)}function g(N){return e&&N.alternate===null&&(N.flags|=2),N}function w(N,j,P,I){return j===null||j.tag!==6?(j=tl(P,N.mode,I),j.return=N,j):(j=l(j,P),j.return=N,j)}function S(N,j,P,I){var X=P.type;return X===G?O(N,j,P.props.children,I,P.key):j!==null&&(j.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===Je&&td(X)===j.type)?(I=l(j,P.props),I.ref=Qr(N,j,P),I.return=N,I):(I=Ai(P.type,P.key,P.props,null,N.mode,I),I.ref=Qr(N,j,P),I.return=N,I)}function M(N,j,P,I){return j===null||j.tag!==4||j.stateNode.containerInfo!==P.containerInfo||j.stateNode.implementation!==P.implementation?(j=nl(P,N.mode,I),j.return=N,j):(j=l(j,P.children||[]),j.return=N,j)}function O(N,j,P,I,X){return j===null||j.tag!==7?(j=An(P,N.mode,I,X),j.return=N,j):(j=l(j,P),j.return=N,j)}function F(N,j,P){if(typeof j=="string"&&j!==""||typeof j=="number")return j=tl(""+j,N.mode,P),j.return=N,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return P=Ai(j.type,j.key,j.props,null,N.mode,P),P.ref=Qr(N,null,j),P.return=N,P;case Z:return j=nl(j,N.mode,P),j.return=N,j;case Je:var I=j._init;return F(N,I(j._payload),P)}if(jr(j)||ee(j))return j=An(j,N.mode,P,null),j.return=N,j;li(N,j)}return null}function D(N,j,P,I){var X=j!==null?j.key:null;if(typeof P=="string"&&P!==""||typeof P=="number")return X!==null?null:w(N,j,""+P,I);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case U:return P.key===X?S(N,j,P,I):null;case Z:return P.key===X?M(N,j,P,I):null;case Je:return X=P._init,D(N,j,X(P._payload),I)}if(jr(P)||ee(P))return X!==null?null:O(N,j,P,I,null);li(N,P)}return null}function W(N,j,P,I,X){if(typeof I=="string"&&I!==""||typeof I=="number")return N=N.get(P)||null,w(j,N,""+I,X);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case U:return N=N.get(I.key===null?P:I.key)||null,S(j,N,I,X);case Z:return N=N.get(I.key===null?P:I.key)||null,M(j,N,I,X);case Je:var te=I._init;return W(N,j,P,te(I._payload),X)}if(jr(I)||ee(I))return N=N.get(P)||null,O(j,N,I,X,null);li(j,I)}return null}function q(N,j,P,I){for(var X=null,te=null,ne=j,oe=j=0,Ue=null;ne!==null&&oe<P.length;oe++){ne.index>oe?(Ue=ne,ne=null):Ue=ne.sibling;var me=D(N,ne,P[oe],I);if(me===null){ne===null&&(ne=Ue);break}e&&ne&&me.alternate===null&&t(N,ne),j=c(me,j,oe),te===null?X=me:te.sibling=me,te=me,ne=Ue}if(oe===P.length)return r(N,ne),Ne&&Cn(N,oe),X;if(ne===null){for(;oe<P.length;oe++)ne=F(N,P[oe],I),ne!==null&&(j=c(ne,j,oe),te===null?X=ne:te.sibling=ne,te=ne);return Ne&&Cn(N,oe),X}for(ne=o(N,ne);oe<P.length;oe++)Ue=W(ne,N,oe,P[oe],I),Ue!==null&&(e&&Ue.alternate!==null&&ne.delete(Ue.key===null?oe:Ue.key),j=c(Ue,j,oe),te===null?X=Ue:te.sibling=Ue,te=Ue);return e&&ne.forEach(function(mn){return t(N,mn)}),Ne&&Cn(N,oe),X}function Y(N,j,P,I){var X=ee(P);if(typeof X!="function")throw Error(i(150));if(P=X.call(P),P==null)throw Error(i(151));for(var te=X=null,ne=j,oe=j=0,Ue=null,me=P.next();ne!==null&&!me.done;oe++,me=P.next()){ne.index>oe?(Ue=ne,ne=null):Ue=ne.sibling;var mn=D(N,ne,me.value,I);if(mn===null){ne===null&&(ne=Ue);break}e&&ne&&mn.alternate===null&&t(N,ne),j=c(mn,j,oe),te===null?X=mn:te.sibling=mn,te=mn,ne=Ue}if(me.done)return r(N,ne),Ne&&Cn(N,oe),X;if(ne===null){for(;!me.done;oe++,me=P.next())me=F(N,me.value,I),me!==null&&(j=c(me,j,oe),te===null?X=me:te.sibling=me,te=me);return Ne&&Cn(N,oe),X}for(ne=o(N,ne);!me.done;oe++,me=P.next())me=W(ne,N,oe,me.value,I),me!==null&&(e&&me.alternate!==null&&ne.delete(me.key===null?oe:me.key),j=c(me,j,oe),te===null?X=me:te.sibling=me,te=me);return e&&ne.forEach(function(Vg){return t(N,Vg)}),Ne&&Cn(N,oe),X}function De(N,j,P,I){if(typeof P=="object"&&P!==null&&P.type===G&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case U:e:{for(var X=P.key,te=j;te!==null;){if(te.key===X){if(X=P.type,X===G){if(te.tag===7){r(N,te.sibling),j=l(te,P.props.children),j.return=N,N=j;break e}}else if(te.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===Je&&td(X)===te.type){r(N,te.sibling),j=l(te,P.props),j.ref=Qr(N,te,P),j.return=N,N=j;break e}r(N,te);break}else t(N,te);te=te.sibling}P.type===G?(j=An(P.props.children,N.mode,I,P.key),j.return=N,N=j):(I=Ai(P.type,P.key,P.props,null,N.mode,I),I.ref=Qr(N,j,P),I.return=N,N=I)}return g(N);case Z:e:{for(te=P.key;j!==null;){if(j.key===te)if(j.tag===4&&j.stateNode.containerInfo===P.containerInfo&&j.stateNode.implementation===P.implementation){r(N,j.sibling),j=l(j,P.children||[]),j.return=N,N=j;break e}else{r(N,j);break}else t(N,j);j=j.sibling}j=nl(P,N.mode,I),j.return=N,N=j}return g(N);case Je:return te=P._init,De(N,j,te(P._payload),I)}if(jr(P))return q(N,j,P,I);if(ee(P))return Y(N,j,P,I);li(N,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,j!==null&&j.tag===6?(r(N,j.sibling),j=l(j,P),j.return=N,N=j):(r(N,j),j=tl(P,N.mode,I),j.return=N,N=j),g(N)):r(N,j)}return De}var nr=nd(!0),rd=nd(!1),ui=rn(null),ci=null,rr=null,da=null;function fa(){da=rr=ci=null}function ha(e){var t=ui.current;Ce(ui),e._currentValue=t}function pa(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function sr(e,t){ci=e,da=rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(st=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(da!==e)if(e={context:e,memoizedValue:t,next:null},rr===null){if(ci===null)throw Error(i(308));rr=e,ci.dependencies={lanes:0,firstContext:e}}else rr=rr.next=e;return t}var Tn=null;function ma(e){Tn===null?Tn=[e]:Tn.push(e)}function sd(e,t,r,o){var l=t.interleaved;return l===null?(r.next=r,ma(t)):(r.next=l.next,l.next=r),t.interleaved=r,$t(e,o)}function $t(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var an=!1;function ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function id(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 Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ln(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(fe&2)!==0){var l=o.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,$t(e,r)}return l=o.interleaved,l===null?(t.next=t,ma(o)):(t.next=l.next,l.next=t),o.interleaved=t,$t(e,r)}function di(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Ro(e,r)}}function od(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var l=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var g={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};c===null?l=c=g:c=c.next=g,r=r.next}while(r!==null);c===null?l=c=t:c=c.next=t}else l=c=t;r={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function fi(e,t,r,o){var l=e.updateQueue;an=!1;var c=l.firstBaseUpdate,g=l.lastBaseUpdate,w=l.shared.pending;if(w!==null){l.shared.pending=null;var S=w,M=S.next;S.next=null,g===null?c=M:g.next=M,g=S;var O=e.alternate;O!==null&&(O=O.updateQueue,w=O.lastBaseUpdate,w!==g&&(w===null?O.firstBaseUpdate=M:w.next=M,O.lastBaseUpdate=S))}if(c!==null){var F=l.baseState;g=0,O=M=S=null,w=c;do{var D=w.lane,W=w.eventTime;if((o&D)===D){O!==null&&(O=O.next={eventTime:W,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var q=e,Y=w;switch(D=t,W=r,Y.tag){case 1:if(q=Y.payload,typeof q=="function"){F=q.call(W,F,D);break e}F=q;break e;case 3:q.flags=q.flags&-65537|128;case 0:if(q=Y.payload,D=typeof q=="function"?q.call(W,F,D):q,D==null)break e;F=H({},F,D);break e;case 2:an=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,D=l.effects,D===null?l.effects=[w]:D.push(w))}else W={eventTime:W,lane:D,tag:w.tag,payload:w.payload,callback:w.callback,next:null},O===null?(M=O=W,S=F):O=O.next=W,g|=D;if(w=w.next,w===null){if(w=l.shared.pending,w===null)break;D=w,w=D.next,D.next=null,l.lastBaseUpdate=D,l.shared.pending=null}}while(!0);if(O===null&&(S=F),l.baseState=S,l.firstBaseUpdate=M,l.lastBaseUpdate=O,t=l.shared.interleaved,t!==null){l=t;do g|=l.lane,l=l.next;while(l!==t)}else c===null&&(l.shared.lanes=0);En|=g,e.lanes=g,e.memoizedState=F}}function ad(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],l=o.callback;if(l!==null){if(o.callback=null,o=r,typeof l!="function")throw Error(i(191,l));l.call(o)}}}var qr={},Dt=rn(qr),Yr=rn(qr),Xr=rn(qr);function Nn(e){if(e===qr)throw Error(i(174));return e}function ga(e,t){switch(ke(Xr,t),ke(Yr,e),ke(Dt,qr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vo(t,e)}Ce(Dt),ke(Dt,t)}function ir(){Ce(Dt),Ce(Yr),Ce(Xr)}function ld(e){Nn(Xr.current);var t=Nn(Dt.current),r=vo(t,e.type);t!==r&&(ke(Yr,e),ke(Dt,r))}function va(e){Yr.current===e&&(Ce(Dt),Ce(Yr))}var Pe=rn(0);function hi(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 xa=[];function wa(){for(var e=0;e<xa.length;e++)xa[e]._workInProgressVersionPrimary=null;xa.length=0}var pi=K.ReactCurrentDispatcher,ka=K.ReactCurrentBatchConfig,Pn=0,Ee=null,ze=null,be=null,mi=!1,Zr=!1,Jr=0,rg=0;function Qe(){throw Error(i(321))}function Sa(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Tt(e[r],t[r]))return!1;return!0}function ja(e,t,r,o,l,c){if(Pn=c,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=e===null||e.memoizedState===null?ag:lg,e=r(o,l),Zr){c=0;do{if(Zr=!1,Jr=0,25<=c)throw Error(i(301));c+=1,be=ze=null,t.updateQueue=null,pi.current=ug,e=r(o,l)}while(Zr)}if(pi.current=vi,t=ze!==null&&ze.next!==null,Pn=0,be=ze=Ee=null,mi=!1,t)throw Error(i(300));return e}function Ca(){var e=Jr!==0;return Jr=0,e}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return be===null?Ee.memoizedState=be=e:be=be.next=e,be}function vt(){if(ze===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=be===null?Ee.memoizedState:be.next;if(t!==null)be=t,ze=e;else{if(e===null)throw Error(i(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},be===null?Ee.memoizedState=be=e:be=be.next=e}return be}function es(e,t){return typeof t=="function"?t(e):t}function Ta(e){var t=vt(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var o=ze,l=o.baseQueue,c=r.pending;if(c!==null){if(l!==null){var g=l.next;l.next=c.next,c.next=g}o.baseQueue=l=c,r.pending=null}if(l!==null){c=l.next,o=o.baseState;var w=g=null,S=null,M=c;do{var O=M.lane;if((Pn&O)===O)S!==null&&(S=S.next={lane:0,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),o=M.hasEagerState?M.eagerState:e(o,M.action);else{var F={lane:O,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null};S===null?(w=S=F,g=o):S=S.next=F,Ee.lanes|=O,En|=O}M=M.next}while(M!==null&&M!==c);S===null?g=o:S.next=w,Tt(o,t.memoizedState)||(st=!0),t.memoizedState=o,t.baseState=g,t.baseQueue=S,r.lastRenderedState=o}if(e=r.interleaved,e!==null){l=e;do c=l.lane,Ee.lanes|=c,En|=c,l=l.next;while(l!==e)}else l===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Na(e){var t=vt(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var o=r.dispatch,l=r.pending,c=t.memoizedState;if(l!==null){r.pending=null;var g=l=l.next;do c=e(c,g.action),g=g.next;while(g!==l);Tt(c,t.memoizedState)||(st=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,o]}function ud(){}function cd(e,t){var r=Ee,o=vt(),l=t(),c=!Tt(o.memoizedState,l);if(c&&(o.memoizedState=l,st=!0),o=o.queue,Pa(hd.bind(null,r,o,e),[e]),o.getSnapshot!==t||c||be!==null&&be.memoizedState.tag&1){if(r.flags|=2048,ts(9,fd.bind(null,r,o,l,t),void 0,null),Be===null)throw Error(i(349));(Pn&30)!==0||dd(r,t,l)}return l}function dd(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function fd(e,t,r,o){t.value=r,t.getSnapshot=o,pd(t)&&md(e)}function hd(e,t,r){return r(function(){pd(t)&&md(e)})}function pd(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Tt(e,r)}catch{return!0}}function md(e){var t=$t(e,1);t!==null&&Rt(t,e,1,-1)}function yd(e){var t=Vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:e},t.queue=e,e=e.dispatch=og.bind(null,Ee,e),[t.memoizedState,e]}function ts(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function gd(){return vt().memoizedState}function yi(e,t,r,o){var l=Vt();Ee.flags|=e,l.memoizedState=ts(1|t,r,void 0,o===void 0?null:o)}function gi(e,t,r,o){var l=vt();o=o===void 0?null:o;var c=void 0;if(ze!==null){var g=ze.memoizedState;if(c=g.destroy,o!==null&&Sa(o,g.deps)){l.memoizedState=ts(t,r,c,o);return}}Ee.flags|=e,l.memoizedState=ts(1|t,r,c,o)}function vd(e,t){return yi(8390656,8,e,t)}function Pa(e,t){return gi(2048,8,e,t)}function xd(e,t){return gi(4,2,e,t)}function wd(e,t){return gi(4,4,e,t)}function kd(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 Sd(e,t,r){return r=r!=null?r.concat([e]):null,gi(4,4,kd.bind(null,t,e),r)}function Ea(){}function jd(e,t){var r=vt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Sa(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function Cd(e,t){var r=vt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Sa(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function Td(e,t,r){return(Pn&21)===0?(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=r):(Tt(r,t)||(r=tc(),Ee.lanes|=r,En|=r,e.baseState=!0),t)}function sg(e,t){var r=xe;xe=r!==0&&4>r?r:4,e(!0);var o=ka.transition;ka.transition={};try{e(!1),t()}finally{xe=r,ka.transition=o}}function Nd(){return vt().memoizedState}function ig(e,t,r){var o=fn(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},Pd(e))Ed(t,r);else if(r=sd(e,t,r,o),r!==null){var l=tt();Rt(r,e,o,l),Md(r,t,o)}}function og(e,t,r){var o=fn(e),l={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(Pd(e))Ed(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,w=c(g,r);if(l.hasEagerState=!0,l.eagerState=w,Tt(w,g)){var S=t.interleaved;S===null?(l.next=l,ma(t)):(l.next=S.next,S.next=l),t.interleaved=l;return}}catch{}finally{}r=sd(e,t,l,o),r!==null&&(l=tt(),Rt(r,e,o,l),Md(r,t,o))}}function Pd(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function Ed(e,t){Zr=mi=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Md(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Ro(e,r)}}var vi={readContext:gt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},ag={readContext:gt,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:vd,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,yi(4194308,4,kd.bind(null,t,e),r)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return yi(4,2,e,t)},useMemo:function(e,t){var r=Vt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=Vt();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=ig.bind(null,Ee,e),[o.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:yd,useDebugValue:Ea,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=yd(!1),t=e[0];return e=sg.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Ee,l=Vt();if(Ne){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),Be===null)throw Error(i(349));(Pn&30)!==0||dd(o,t,r)}l.memoizedState=r;var c={value:r,getSnapshot:t};return l.queue=c,vd(hd.bind(null,o,c,e),[e]),o.flags|=2048,ts(9,fd.bind(null,o,c,r,t),void 0,null),r},useId:function(){var e=Vt(),t=Be.identifierPrefix;if(Ne){var r=Ut,o=Bt;r=(o&~(1<<32-Ct(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=Jr++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=rg++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lg={readContext:gt,useCallback:jd,useContext:gt,useEffect:Pa,useImperativeHandle:Sd,useInsertionEffect:xd,useLayoutEffect:wd,useMemo:Cd,useReducer:Ta,useRef:gd,useState:function(){return Ta(es)},useDebugValue:Ea,useDeferredValue:function(e){var t=vt();return Td(t,ze.memoizedState,e)},useTransition:function(){var e=Ta(es)[0],t=vt().memoizedState;return[e,t]},useMutableSource:ud,useSyncExternalStore:cd,useId:Nd,unstable_isNewReconciler:!1},ug={readContext:gt,useCallback:jd,useContext:gt,useEffect:Pa,useImperativeHandle:Sd,useInsertionEffect:xd,useLayoutEffect:wd,useMemo:Cd,useReducer:Na,useRef:gd,useState:function(){return Na(es)},useDebugValue:Ea,useDeferredValue:function(e){var t=vt();return ze===null?t.memoizedState=e:Td(t,ze.memoizedState,e)},useTransition:function(){var e=Na(es)[0],t=vt().memoizedState;return[e,t]},useMutableSource:ud,useSyncExternalStore:cd,useId:Nd,unstable_isNewReconciler:!1};function Pt(e,t){if(e&&e.defaultProps){t=H({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Ma(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:H({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var xi={isMounted:function(e){return(e=e._reactInternals)?wn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=tt(),l=fn(e),c=Wt(o,l);c.payload=t,r!=null&&(c.callback=r),t=ln(e,c,l),t!==null&&(Rt(t,e,l,o),di(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=tt(),l=fn(e),c=Wt(o,l);c.tag=1,c.payload=t,r!=null&&(c.callback=r),t=ln(e,c,l),t!==null&&(Rt(t,e,l,o),di(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tt(),o=fn(e),l=Wt(r,o);l.tag=2,t!=null&&(l.callback=t),t=ln(e,l,o),t!==null&&(Rt(t,e,o,r),di(t,e,o))}};function Rd(e,t,r,o,l,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,c,g):t.prototype&&t.prototype.isPureReactComponent?!Br(r,o)||!Br(l,c):!0}function _d(e,t,r){var o=!1,l=sn,c=t.contextType;return typeof c=="object"&&c!==null?c=gt(c):(l=rt(t)?Sn:Ge.current,o=t.contextTypes,c=(o=o!=null)?Zn(e,l):sn),t=new t(r,c),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xi,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=c),t}function Ad(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&xi.enqueueReplaceState(t,t.state,null)}function Ra(e,t,r,o){var l=e.stateNode;l.props=r,l.state=e.memoizedState,l.refs={},ya(e);var c=t.contextType;typeof c=="object"&&c!==null?l.context=gt(c):(c=rt(t)?Sn:Ge.current,l.context=Zn(e,c)),l.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(Ma(e,t,c,r),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&xi.enqueueReplaceState(l,l.state,null),fi(e,r,l,o),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function or(e,t){try{var r="",o=t;do r+=he(o),o=o.return;while(o);var l=r}catch(c){l=`
|
|
39
|
+
Error generating stack: `+c.message+`
|
|
40
|
+
`+c.stack}return{value:e,source:t,stack:l,digest:null}}function _a(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Aa(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var cg=typeof WeakMap=="function"?WeakMap:Map;function Ld(e,t,r){r=Wt(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){Ni||(Ni=!0,Ga=o),Aa(e,t)},r}function Dd(e,t,r){r=Wt(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var l=t.value;r.payload=function(){return o(l)},r.callback=function(){Aa(e,t)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(r.callback=function(){Aa(e,t),typeof o!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),r}function Vd(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new cg;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(r)||(l.add(r),e=Cg.bind(null,e,t,r),t.then(e,e))}function Od(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 Fd(e,t,r,o,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Wt(-1,1),t.tag=2,ln(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var dg=K.ReactCurrentOwner,st=!1;function et(e,t,r,o){t.child=e===null?rd(t,null,r,o):nr(t,e.child,r,o)}function zd(e,t,r,o,l){r=r.render;var c=t.ref;return sr(t,l),o=ja(e,t,r,o,c,l),r=Ca(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(Ne&&r&&oa(t),t.flags|=1,et(e,t,o,l),t.child)}function Id(e,t,r,o,l){if(e===null){var c=r.type;return typeof c=="function"&&!el(c)&&c.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=c,bd(e,t,c,o,l)):(e=Ai(r.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,(e.lanes&l)===0){var g=c.memoizedProps;if(r=r.compare,r=r!==null?r:Br,r(g,o)&&e.ref===t.ref)return Ht(e,t,l)}return t.flags|=1,e=pn(c,o),e.ref=t.ref,e.return=t,t.child=e}function bd(e,t,r,o,l){if(e!==null){var c=e.memoizedProps;if(Br(c,o)&&e.ref===t.ref)if(st=!1,t.pendingProps=o=c,(e.lanes&l)!==0)(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Ht(e,t,l)}return La(e,t,r,o,l)}function Bd(e,t,r){var o=t.pendingProps,l=o.children,c=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(lr,ft),ft|=r;else{if((r&1073741824)===0)return e=c!==null?c.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(lr,ft),ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=c!==null?c.baseLanes:r,ke(lr,ft),ft|=o}else c!==null?(o=c.baseLanes|r,t.memoizedState=null):o=r,ke(lr,ft),ft|=o;return et(e,t,l,r),t.child}function Ud(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function La(e,t,r,o,l){var c=rt(r)?Sn:Ge.current;return c=Zn(t,c),sr(t,l),r=ja(e,t,r,o,c,l),o=Ca(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(Ne&&o&&oa(t),t.flags|=1,et(e,t,r,l),t.child)}function $d(e,t,r,o,l){if(rt(r)){var c=!0;ri(t)}else c=!1;if(sr(t,l),t.stateNode===null)ki(e,t),_d(t,r,o),Ra(t,r,o,l),o=!0;else if(e===null){var g=t.stateNode,w=t.memoizedProps;g.props=w;var S=g.context,M=r.contextType;typeof M=="object"&&M!==null?M=gt(M):(M=rt(r)?Sn:Ge.current,M=Zn(t,M));var O=r.getDerivedStateFromProps,F=typeof O=="function"||typeof g.getSnapshotBeforeUpdate=="function";F||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==o||S!==M)&&Ad(t,g,o,M),an=!1;var D=t.memoizedState;g.state=D,fi(t,o,g,l),S=t.memoizedState,w!==o||D!==S||nt.current||an?(typeof O=="function"&&(Ma(t,r,O,o),S=t.memoizedState),(w=an||Rd(t,r,w,o,D,S,M))?(F||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=S),g.props=o,g.state=S,g.context=M,o=w):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{g=t.stateNode,id(e,t),w=t.memoizedProps,M=t.type===t.elementType?w:Pt(t.type,w),g.props=M,F=t.pendingProps,D=g.context,S=r.contextType,typeof S=="object"&&S!==null?S=gt(S):(S=rt(r)?Sn:Ge.current,S=Zn(t,S));var W=r.getDerivedStateFromProps;(O=typeof W=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==F||D!==S)&&Ad(t,g,o,S),an=!1,D=t.memoizedState,g.state=D,fi(t,o,g,l);var q=t.memoizedState;w!==F||D!==q||nt.current||an?(typeof W=="function"&&(Ma(t,r,W,o),q=t.memoizedState),(M=an||Rd(t,r,M,o,D,q,S)||!1)?(O||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(o,q,S),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(o,q,S)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||w===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=q),g.props=o,g.state=q,g.context=S,o=M):(typeof g.componentDidUpdate!="function"||w===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),o=!1)}return Da(e,t,r,o,c,l)}function Da(e,t,r,o,l,c){Ud(e,t);var g=(t.flags&128)!==0;if(!o&&!g)return l&&Qc(t,r,!1),Ht(e,t,c);o=t.stateNode,dg.current=t;var w=g&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&g?(t.child=nr(t,e.child,null,c),t.child=nr(t,null,w,c)):et(e,t,w,c),t.memoizedState=o.state,l&&Qc(t,r,!0),t.child}function Wd(e){var t=e.stateNode;t.pendingContext?Kc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Kc(e,t.context,!1),ga(e,t.containerInfo)}function Hd(e,t,r,o,l){return tr(),ca(l),t.flags|=256,et(e,t,r,o),t.child}var Va={dehydrated:null,treeContext:null,retryLane:0};function Oa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Kd(e,t,r){var o=t.pendingProps,l=Pe.current,c=!1,g=(t.flags&128)!==0,w;if((w=g)||(w=e!==null&&e.memoizedState===null?!1:(l&2)!==0),w?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ke(Pe,l&1),e===null)return ua(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(g=o.children,e=o.fallback,c?(o=t.mode,c=t.child,g={mode:"hidden",children:g},(o&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=g):c=Li(g,o,0,null),e=An(e,o,r,null),c.return=t,e.return=t,c.sibling=e,t.child=c,t.child.memoizedState=Oa(r),t.memoizedState=Va,e):Fa(t,g));if(l=e.memoizedState,l!==null&&(w=l.dehydrated,w!==null))return fg(e,t,g,o,w,l,r);if(c){c=o.fallback,g=t.mode,l=e.child,w=l.sibling;var S={mode:"hidden",children:o.children};return(g&1)===0&&t.child!==l?(o=t.child,o.childLanes=0,o.pendingProps=S,t.deletions=null):(o=pn(l,S),o.subtreeFlags=l.subtreeFlags&14680064),w!==null?c=pn(w,c):(c=An(c,g,r,null),c.flags|=2),c.return=t,o.return=t,o.sibling=c,t.child=o,o=c,c=t.child,g=e.child.memoizedState,g=g===null?Oa(r):{baseLanes:g.baseLanes|r,cachePool:null,transitions:g.transitions},c.memoizedState=g,c.childLanes=e.childLanes&~r,t.memoizedState=Va,o}return c=e.child,e=c.sibling,o=pn(c,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Fa(e,t){return t=Li({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wi(e,t,r,o){return o!==null&&ca(o),nr(t,e.child,null,r),e=Fa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fg(e,t,r,o,l,c,g){if(r)return t.flags&256?(t.flags&=-257,o=_a(Error(i(422))),wi(e,t,g,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(c=o.fallback,l=t.mode,o=Li({mode:"visible",children:o.children},l,0,null),c=An(c,l,g,null),c.flags|=2,o.return=t,c.return=t,o.sibling=c,t.child=o,(t.mode&1)!==0&&nr(t,e.child,null,g),t.child.memoizedState=Oa(g),t.memoizedState=Va,c);if((t.mode&1)===0)return wi(e,t,g,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var w=o.dgst;return o=w,c=Error(i(419)),o=_a(c,o,void 0),wi(e,t,g,o)}if(w=(g&e.childLanes)!==0,st||w){if(o=Be,o!==null){switch(g&-g){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(o.suspendedLanes|g))!==0?0:l,l!==0&&l!==c.retryLane&&(c.retryLane=l,$t(e,l),Rt(o,e,l,-1))}return Ja(),o=_a(Error(i(421))),wi(e,t,g,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Tg.bind(null,e),l._reactRetry=t,null):(e=c.treeContext,dt=nn(l.nextSibling),ct=t,Ne=!0,Nt=null,e!==null&&(mt[yt++]=Bt,mt[yt++]=Ut,mt[yt++]=jn,Bt=e.id,Ut=e.overflow,jn=t),t=Fa(t,o.children),t.flags|=4096,t)}function Gd(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),pa(e.return,t,r)}function za(e,t,r,o,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:l}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=r,c.tailMode=l)}function Qd(e,t,r){var o=t.pendingProps,l=o.revealOrder,c=o.tail;if(et(e,t,o.children,r),o=Pe.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gd(e,r,t);else if(e.tag===19)Gd(e,r,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}o&=1}if(ke(Pe,o),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(r=t.child,l=null;r!==null;)e=r.alternate,e!==null&&hi(e)===null&&(l=r),r=r.sibling;r=l,r===null?(l=t.child,t.child=null):(l=r.sibling,r.sibling=null),za(t,!1,l,r,c);break;case"backwards":for(r=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&hi(e)===null){t.child=l;break}e=l.sibling,l.sibling=r,r=l,l=e}za(t,!0,r,null,c);break;case"together":za(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ki(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),En|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=pn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=pn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function hg(e,t,r){switch(t.tag){case 3:Wd(t),tr();break;case 5:ld(t);break;case 1:rt(t.type)&&ri(t);break;case 4:ga(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;ke(ui,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(ke(Pe,Pe.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Kd(e,t,r):(ke(Pe,Pe.current&1),e=Ht(e,t,r),e!==null?e.sibling:null);ke(Pe,Pe.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Qd(e,t,r);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ke(Pe,Pe.current),o)break;return null;case 22:case 23:return t.lanes=0,Bd(e,t,r)}return Ht(e,t,r)}var qd,Ia,Yd,Xd;qd=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ia=function(){},Yd=function(e,t,r,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,Nn(Dt.current);var c=null;switch(r){case"input":l=po(e,l),o=po(e,o),c=[];break;case"select":l=H({},l,{value:void 0}),o=H({},o,{value:void 0}),c=[];break;case"textarea":l=go(e,l),o=go(e,o),c=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=ei)}xo(r,o);var g;r=null;for(M in l)if(!o.hasOwnProperty(M)&&l.hasOwnProperty(M)&&l[M]!=null)if(M==="style"){var w=l[M];for(g in w)w.hasOwnProperty(g)&&(r||(r={}),r[g]="")}else M!=="dangerouslySetInnerHTML"&&M!=="children"&&M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(u.hasOwnProperty(M)?c||(c=[]):(c=c||[]).push(M,null));for(M in o){var S=o[M];if(w=l!=null?l[M]:void 0,o.hasOwnProperty(M)&&S!==w&&(S!=null||w!=null))if(M==="style")if(w){for(g in w)!w.hasOwnProperty(g)||S&&S.hasOwnProperty(g)||(r||(r={}),r[g]="");for(g in S)S.hasOwnProperty(g)&&w[g]!==S[g]&&(r||(r={}),r[g]=S[g])}else r||(c||(c=[]),c.push(M,r)),r=S;else M==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,w=w?w.__html:void 0,S!=null&&w!==S&&(c=c||[]).push(M,S)):M==="children"?typeof S!="string"&&typeof S!="number"||(c=c||[]).push(M,""+S):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&(u.hasOwnProperty(M)?(S!=null&&M==="onScroll"&&je("scroll",e),c||w===S||(c=[])):(c=c||[]).push(M,S))}r&&(c=c||[]).push("style",r);var M=c;(t.updateQueue=M)&&(t.flags|=4)}},Xd=function(e,t,r,o){r!==o&&(t.flags|=4)};function ns(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var l=e.child;l!==null;)r|=l.lanes|l.childLanes,o|=l.subtreeFlags&14680064,o|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)r|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function pg(e,t,r){var o=t.pendingProps;switch(aa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return rt(t.type)&&ni(),qe(t),null;case 3:return o=t.stateNode,ir(),Ce(nt),Ce(Ge),wa(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(ai(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Nt!==null&&(Ya(Nt),Nt=null))),Ia(e,t),qe(t),null;case 5:va(t);var l=Nn(Xr.current);if(r=t.type,e!==null&&t.stateNode!=null)Yd(e,t,r,o,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(i(166));return qe(t),null}if(e=Nn(Dt.current),ai(t)){o=t.stateNode,r=t.type;var c=t.memoizedProps;switch(o[Lt]=t,o[Kr]=c,e=(t.mode&1)!==0,r){case"dialog":je("cancel",o),je("close",o);break;case"iframe":case"object":case"embed":je("load",o);break;case"video":case"audio":for(l=0;l<$r.length;l++)je($r[l],o);break;case"source":je("error",o);break;case"img":case"image":case"link":je("error",o),je("load",o);break;case"details":je("toggle",o);break;case"input":_u(o,c),je("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},je("invalid",o);break;case"textarea":Du(o,c),je("invalid",o)}xo(r,c),l=null;for(var g in c)if(c.hasOwnProperty(g)){var w=c[g];g==="children"?typeof w=="string"?o.textContent!==w&&(c.suppressHydrationWarning!==!0&&Js(o.textContent,w,e),l=["children",w]):typeof w=="number"&&o.textContent!==""+w&&(c.suppressHydrationWarning!==!0&&Js(o.textContent,w,e),l=["children",""+w]):u.hasOwnProperty(g)&&w!=null&&g==="onScroll"&&je("scroll",o)}switch(r){case"input":Rs(o),Lu(o,c,!0);break;case"textarea":Rs(o),Ou(o);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(o.onclick=ei)}o=l,t.updateQueue=o,o!==null&&(t.flags|=4)}else{g=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Fu(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=g.createElement(r,{is:o.is}):(e=g.createElement(r),r==="select"&&(g=e,o.multiple?g.multiple=!0:o.size&&(g.size=o.size))):e=g.createElementNS(e,r),e[Lt]=t,e[Kr]=o,qd(e,t,!1,!1),t.stateNode=e;e:{switch(g=wo(r,o),r){case"dialog":je("cancel",e),je("close",e),l=o;break;case"iframe":case"object":case"embed":je("load",e),l=o;break;case"video":case"audio":for(l=0;l<$r.length;l++)je($r[l],e);l=o;break;case"source":je("error",e),l=o;break;case"img":case"image":case"link":je("error",e),je("load",e),l=o;break;case"details":je("toggle",e),l=o;break;case"input":_u(e,o),l=po(e,o),je("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=H({},o,{value:void 0}),je("invalid",e);break;case"textarea":Du(e,o),l=go(e,o),je("invalid",e);break;default:l=o}xo(r,l),w=l;for(c in w)if(w.hasOwnProperty(c)){var S=w[c];c==="style"?bu(e,S):c==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&zu(e,S)):c==="children"?typeof S=="string"?(r!=="textarea"||S!=="")&&Cr(e,S):typeof S=="number"&&Cr(e,""+S):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?S!=null&&c==="onScroll"&&je("scroll",e):S!=null&&$(e,c,S,g))}switch(r){case"input":Rs(e),Lu(e,o,!1);break;case"textarea":Rs(e),Ou(e);break;case"option":o.value!=null&&e.setAttribute("value",""+ve(o.value));break;case"select":e.multiple=!!o.multiple,c=o.value,c!=null?bn(e,!!o.multiple,c,!1):o.defaultValue!=null&&bn(e,!!o.multiple,o.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=ei)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)Xd(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(r=Nn(Xr.current),Nn(Dt.current),ai(t)){if(o=t.stateNode,r=t.memoizedProps,o[Lt]=t,(c=o.nodeValue!==r)&&(e=ct,e!==null))switch(e.tag){case 3:Js(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Js(o.nodeValue,r,(e.mode&1)!==0)}c&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Lt]=t,t.stateNode=o}return qe(t),null;case 13:if(Ce(Pe),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&dt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ed(),tr(),t.flags|=98560,c=!1;else if(c=ai(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[Lt]=t}else tr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),c=!1}else Nt!==null&&(Ya(Nt),Nt=null),c=!0;if(!c)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Pe.current&1)!==0?Ie===0&&(Ie=3):Ja())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return ir(),Ia(e,t),e===null&&Wr(t.stateNode.containerInfo),qe(t),null;case 10:return ha(t.type._context),qe(t),null;case 17:return rt(t.type)&&ni(),qe(t),null;case 19:if(Ce(Pe),c=t.memoizedState,c===null)return qe(t),null;if(o=(t.flags&128)!==0,g=c.rendering,g===null)if(o)ns(c,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(g=hi(e),g!==null){for(t.flags|=128,ns(c,!1),o=g.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)c=r,e=o,c.flags&=14680066,g=c.alternate,g===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=g.childLanes,c.lanes=g.lanes,c.child=g.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=g.memoizedProps,c.memoizedState=g.memoizedState,c.updateQueue=g.updateQueue,c.type=g.type,e=g.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ke(Pe,Pe.current&1|2),t.child}e=e.sibling}c.tail!==null&&Le()>ur&&(t.flags|=128,o=!0,ns(c,!1),t.lanes=4194304)}else{if(!o)if(e=hi(g),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ns(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Ne)return qe(t),null}else 2*Le()-c.renderingStartTime>ur&&r!==1073741824&&(t.flags|=128,o=!0,ns(c,!1),t.lanes=4194304);c.isBackwards?(g.sibling=t.child,t.child=g):(r=c.last,r!==null?r.sibling=g:t.child=g,c.last=g)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Le(),t.sibling=null,r=Pe.current,ke(Pe,o?r&1|2:r&1),t):(qe(t),null);case 22:case 23:return Za(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(ft&1073741824)!==0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function mg(e,t){switch(aa(t),t.tag){case 1:return rt(t.type)&&ni(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ir(),Ce(nt),Ce(Ge),wa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return va(t),null;case 13:if(Ce(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(Pe),null;case 4:return ir(),null;case 10:return ha(t.type._context),null;case 22:case 23:return Za(),null;case 24:return null;default:return null}}var Si=!1,Ye=!1,yg=typeof WeakSet=="function"?WeakSet:Set,Q=null;function ar(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){_e(e,t,o)}else r.current=null}function ba(e,t,r){try{r()}catch(o){_e(e,t,o)}}var Zd=!1;function gg(e,t){if(Zo=Us,e=Rc(),Wo(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var l=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var g=0,w=-1,S=-1,M=0,O=0,F=e,D=null;t:for(;;){for(var W;F!==r||l!==0&&F.nodeType!==3||(w=g+l),F!==c||o!==0&&F.nodeType!==3||(S=g+o),F.nodeType===3&&(g+=F.nodeValue.length),(W=F.firstChild)!==null;)D=F,F=W;for(;;){if(F===e)break t;if(D===r&&++M===l&&(w=g),D===c&&++O===o&&(S=g),(W=F.nextSibling)!==null)break;F=D,D=F.parentNode}F=W}r=w===-1||S===-1?null:{start:w,end:S}}else r=null}r=r||{start:0,end:0}}else r=null;for(Jo={focusedElem:e,selectionRange:r},Us=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var q=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(q!==null){var Y=q.memoizedProps,De=q.memoizedState,N=t.stateNode,j=N.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Pt(t.type,Y),De);N.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(I){_e(t,t.return,I)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return q=Zd,Zd=!1,q}function rs(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var c=l.destroy;l.destroy=void 0,c!==void 0&&ba(t,r,c)}l=l.next}while(l!==o)}}function ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function Ba(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Jd(e){var t=e.alternate;t!==null&&(e.alternate=null,Jd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lt],delete t[Kr],delete t[ra],delete t[Jy],delete t[eg])),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 ef(e){return e.tag===5||e.tag===3||e.tag===4}function tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ef(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 Ua(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ei));else if(o!==4&&(e=e.child,e!==null))for(Ua(e,t,r),e=e.sibling;e!==null;)Ua(e,t,r),e=e.sibling}function $a(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for($a(e,t,r),e=e.sibling;e!==null;)$a(e,t,r),e=e.sibling}var We=null,Et=!1;function un(e,t,r){for(r=r.child;r!==null;)nf(e,t,r),r=r.sibling}function nf(e,t,r){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Os,r)}catch{}switch(r.tag){case 5:Ye||ar(r,t);case 6:var o=We,l=Et;We=null,un(e,t,r),We=o,Et=l,We!==null&&(Et?(e=We,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):We.removeChild(r.stateNode));break;case 18:We!==null&&(Et?(e=We,r=r.stateNode,e.nodeType===8?na(e.parentNode,r):e.nodeType===1&&na(e,r),Vr(e)):na(We,r.stateNode));break;case 4:o=We,l=Et,We=r.stateNode.containerInfo,Et=!0,un(e,t,r),We=o,Et=l;break;case 0:case 11:case 14:case 15:if(!Ye&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var c=l,g=c.destroy;c=c.tag,g!==void 0&&((c&2)!==0||(c&4)!==0)&&ba(r,t,g),l=l.next}while(l!==o)}un(e,t,r);break;case 1:if(!Ye&&(ar(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(w){_e(r,t,w)}un(e,t,r);break;case 21:un(e,t,r);break;case 22:r.mode&1?(Ye=(o=Ye)||r.memoizedState!==null,un(e,t,r),Ye=o):un(e,t,r);break;default:un(e,t,r)}}function rf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new yg),t.forEach(function(o){var l=Ng.bind(null,e,o);r.has(o)||(r.add(o),o.then(l,l))})}}function Mt(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var l=r[o];try{var c=e,g=t,w=g;e:for(;w!==null;){switch(w.tag){case 5:We=w.stateNode,Et=!1;break e;case 3:We=w.stateNode.containerInfo,Et=!0;break e;case 4:We=w.stateNode.containerInfo,Et=!0;break e}w=w.return}if(We===null)throw Error(i(160));nf(c,g,l),We=null,Et=!1;var S=l.alternate;S!==null&&(S.return=null),l.return=null}catch(M){_e(l,t,M)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)sf(t,e),t=t.sibling}function sf(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Ot(e),o&4){try{rs(3,e,e.return),ji(3,e)}catch(Y){_e(e,e.return,Y)}try{rs(5,e,e.return)}catch(Y){_e(e,e.return,Y)}}break;case 1:Mt(t,e),Ot(e),o&512&&r!==null&&ar(r,r.return);break;case 5:if(Mt(t,e),Ot(e),o&512&&r!==null&&ar(r,r.return),e.flags&32){var l=e.stateNode;try{Cr(l,"")}catch(Y){_e(e,e.return,Y)}}if(o&4&&(l=e.stateNode,l!=null)){var c=e.memoizedProps,g=r!==null?r.memoizedProps:c,w=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{w==="input"&&c.type==="radio"&&c.name!=null&&Au(l,c),wo(w,g);var M=wo(w,c);for(g=0;g<S.length;g+=2){var O=S[g],F=S[g+1];O==="style"?bu(l,F):O==="dangerouslySetInnerHTML"?zu(l,F):O==="children"?Cr(l,F):$(l,O,F,M)}switch(w){case"input":mo(l,c);break;case"textarea":Vu(l,c);break;case"select":var D=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!c.multiple;var W=c.value;W!=null?bn(l,!!c.multiple,W,!1):D!==!!c.multiple&&(c.defaultValue!=null?bn(l,!!c.multiple,c.defaultValue,!0):bn(l,!!c.multiple,c.multiple?[]:"",!1))}l[Kr]=c}catch(Y){_e(e,e.return,Y)}}break;case 6:if(Mt(t,e),Ot(e),o&4){if(e.stateNode===null)throw Error(i(162));l=e.stateNode,c=e.memoizedProps;try{l.nodeValue=c}catch(Y){_e(e,e.return,Y)}}break;case 3:if(Mt(t,e),Ot(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Vr(t.containerInfo)}catch(Y){_e(e,e.return,Y)}break;case 4:Mt(t,e),Ot(e);break;case 13:Mt(t,e),Ot(e),l=e.child,l.flags&8192&&(c=l.memoizedState!==null,l.stateNode.isHidden=c,!c||l.alternate!==null&&l.alternate.memoizedState!==null||(Ka=Le())),o&4&&rf(e);break;case 22:if(O=r!==null&&r.memoizedState!==null,e.mode&1?(Ye=(M=Ye)||O,Mt(t,e),Ye=M):Mt(t,e),Ot(e),o&8192){if(M=e.memoizedState!==null,(e.stateNode.isHidden=M)&&!O&&(e.mode&1)!==0)for(Q=e,O=e.child;O!==null;){for(F=Q=O;Q!==null;){switch(D=Q,W=D.child,D.tag){case 0:case 11:case 14:case 15:rs(4,D,D.return);break;case 1:ar(D,D.return);var q=D.stateNode;if(typeof q.componentWillUnmount=="function"){o=D,r=D.return;try{t=o,q.props=t.memoizedProps,q.state=t.memoizedState,q.componentWillUnmount()}catch(Y){_e(o,r,Y)}}break;case 5:ar(D,D.return);break;case 22:if(D.memoizedState!==null){lf(F);continue}}W!==null?(W.return=D,Q=W):lf(F)}O=O.sibling}e:for(O=null,F=e;;){if(F.tag===5){if(O===null){O=F;try{l=F.stateNode,M?(c=l.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(w=F.stateNode,S=F.memoizedProps.style,g=S!=null&&S.hasOwnProperty("display")?S.display:null,w.style.display=Iu("display",g))}catch(Y){_e(e,e.return,Y)}}}else if(F.tag===6){if(O===null)try{F.stateNode.nodeValue=M?"":F.memoizedProps}catch(Y){_e(e,e.return,Y)}}else if((F.tag!==22&&F.tag!==23||F.memoizedState===null||F===e)&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===e)break e;for(;F.sibling===null;){if(F.return===null||F.return===e)break e;O===F&&(O=null),F=F.return}O===F&&(O=null),F.sibling.return=F.return,F=F.sibling}}break;case 19:Mt(t,e),Ot(e),o&4&&rf(e);break;case 21:break;default:Mt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(ef(r)){var o=r;break e}r=r.return}throw Error(i(160))}switch(o.tag){case 5:var l=o.stateNode;o.flags&32&&(Cr(l,""),o.flags&=-33);var c=tf(e);$a(e,c,l);break;case 3:case 4:var g=o.stateNode.containerInfo,w=tf(e);Ua(e,w,g);break;default:throw Error(i(161))}}catch(S){_e(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vg(e,t,r){Q=e,of(e)}function of(e,t,r){for(var o=(e.mode&1)!==0;Q!==null;){var l=Q,c=l.child;if(l.tag===22&&o){var g=l.memoizedState!==null||Si;if(!g){var w=l.alternate,S=w!==null&&w.memoizedState!==null||Ye;w=Si;var M=Ye;if(Si=g,(Ye=S)&&!M)for(Q=l;Q!==null;)g=Q,S=g.child,g.tag===22&&g.memoizedState!==null?uf(l):S!==null?(S.return=g,Q=S):uf(l);for(;c!==null;)Q=c,of(c),c=c.sibling;Q=l,Si=w,Ye=M}af(e)}else(l.subtreeFlags&8772)!==0&&c!==null?(c.return=l,Q=c):af(e)}}function af(e){for(;Q!==null;){var t=Q;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ye||ji(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Ye)if(r===null)o.componentDidMount();else{var l=t.elementType===t.type?r.memoizedProps:Pt(t.type,r.memoizedProps);o.componentDidUpdate(l,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&ad(t,c,o);break;case 3:var g=t.updateQueue;if(g!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}ad(t,g,r)}break;case 5:var w=t.stateNode;if(r===null&&t.flags&4){r=w;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&r.focus();break;case"img":S.src&&(r.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var M=t.alternate;if(M!==null){var O=M.memoizedState;if(O!==null){var F=O.dehydrated;F!==null&&Vr(F)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Ye||t.flags&512&&Ba(t)}catch(D){_e(t,t.return,D)}}if(t===e){Q=null;break}if(r=t.sibling,r!==null){r.return=t.return,Q=r;break}Q=t.return}}function lf(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Q=r;break}Q=t.return}}function uf(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ji(4,t)}catch(S){_e(t,r,S)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var l=t.return;try{o.componentDidMount()}catch(S){_e(t,l,S)}}var c=t.return;try{Ba(t)}catch(S){_e(t,c,S)}break;case 5:var g=t.return;try{Ba(t)}catch(S){_e(t,g,S)}}}catch(S){_e(t,t.return,S)}if(t===e){Q=null;break}var w=t.sibling;if(w!==null){w.return=t.return,Q=w;break}Q=t.return}}var xg=Math.ceil,Ci=K.ReactCurrentDispatcher,Wa=K.ReactCurrentOwner,xt=K.ReactCurrentBatchConfig,fe=0,Be=null,Oe=null,He=0,ft=0,lr=rn(0),Ie=0,ss=null,En=0,Ti=0,Ha=0,is=null,it=null,Ka=0,ur=1/0,Kt=null,Ni=!1,Ga=null,cn=null,Pi=!1,dn=null,Ei=0,os=0,Qa=null,Mi=-1,Ri=0;function tt(){return(fe&6)!==0?Le():Mi!==-1?Mi:Mi=Le()}function fn(e){return(e.mode&1)===0?1:(fe&2)!==0&&He!==0?He&-He:ng.transition!==null?(Ri===0&&(Ri=tc()),Ri):(e=xe,e!==0||(e=window.event,e=e===void 0?16:cc(e.type)),e)}function Rt(e,t,r,o){if(50<os)throw os=0,Qa=null,Error(i(185));Rr(e,r,o),((fe&2)===0||e!==Be)&&(e===Be&&((fe&2)===0&&(Ti|=r),Ie===4&&hn(e,He)),ot(e,o),r===1&&fe===0&&(t.mode&1)===0&&(ur=Le()+500,si&&on()))}function ot(e,t){var r=e.callbackNode;ny(e,t);var o=Is(e,e===Be?He:0);if(o===0)r!==null&&Zu(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&Zu(r),t===1)e.tag===0?tg(df.bind(null,e)):qc(df.bind(null,e)),Xy(function(){(fe&6)===0&&on()}),r=null;else{switch(nc(o)){case 1:r=Po;break;case 4:r=Ju;break;case 16:r=Vs;break;case 536870912:r=ec;break;default:r=Vs}r=xf(r,cf.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function cf(e,t){if(Mi=-1,Ri=0,(fe&6)!==0)throw Error(i(327));var r=e.callbackNode;if(cr()&&e.callbackNode!==r)return null;var o=Is(e,e===Be?He:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=_i(e,o);else{t=o;var l=fe;fe|=2;var c=hf();(Be!==e||He!==t)&&(Kt=null,ur=Le()+500,Rn(e,t));do try{Sg();break}catch(w){ff(e,w)}while(!0);fa(),Ci.current=c,fe=l,Oe!==null?t=0:(Be=null,He=0,t=Ie)}if(t!==0){if(t===2&&(l=Eo(e),l!==0&&(o=l,t=qa(e,l))),t===1)throw r=ss,Rn(e,0),hn(e,o),ot(e,Le()),r;if(t===6)hn(e,o);else{if(l=e.current.alternate,(o&30)===0&&!wg(l)&&(t=_i(e,o),t===2&&(c=Eo(e),c!==0&&(o=c,t=qa(e,c))),t===1))throw r=ss,Rn(e,0),hn(e,o),ot(e,Le()),r;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(i(345));case 2:_n(e,it,Kt);break;case 3:if(hn(e,o),(o&130023424)===o&&(t=Ka+500-Le(),10<t)){if(Is(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){tt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ta(_n.bind(null,e,it,Kt),t);break}_n(e,it,Kt);break;case 4:if(hn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,l=-1;0<o;){var g=31-Ct(o);c=1<<g,g=t[g],g>l&&(l=g),o&=~c}if(o=l,o=Le()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*xg(o/1960))-o,10<o){e.timeoutHandle=ta(_n.bind(null,e,it,Kt),o);break}_n(e,it,Kt);break;case 5:_n(e,it,Kt);break;default:throw Error(i(329))}}}return ot(e,Le()),e.callbackNode===r?cf.bind(null,e):null}function qa(e,t){var r=is;return e.current.memoizedState.isDehydrated&&(Rn(e,t).flags|=256),e=_i(e,t),e!==2&&(t=it,it=r,t!==null&&Ya(t)),e}function Ya(e){it===null?it=e:it.push.apply(it,e)}function wg(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var l=r[o],c=l.getSnapshot;l=l.value;try{if(!Tt(c(),l))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 hn(e,t){for(t&=~Ha,t&=~Ti,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ct(t),o=1<<r;e[r]=-1,t&=~o}}function df(e){if((fe&6)!==0)throw Error(i(327));cr();var t=Is(e,0);if((t&1)===0)return ot(e,Le()),null;var r=_i(e,t);if(e.tag!==0&&r===2){var o=Eo(e);o!==0&&(t=o,r=qa(e,o))}if(r===1)throw r=ss,Rn(e,0),hn(e,t),ot(e,Le()),r;if(r===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_n(e,it,Kt),ot(e,Le()),null}function Xa(e,t){var r=fe;fe|=1;try{return e(t)}finally{fe=r,fe===0&&(ur=Le()+500,si&&on())}}function Mn(e){dn!==null&&dn.tag===0&&(fe&6)===0&&cr();var t=fe;fe|=1;var r=xt.transition,o=xe;try{if(xt.transition=null,xe=1,e)return e()}finally{xe=o,xt.transition=r,fe=t,(fe&6)===0&&on()}}function Za(){ft=lr.current,Ce(lr)}function Rn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Yy(r)),Oe!==null)for(r=Oe.return;r!==null;){var o=r;switch(aa(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&ni();break;case 3:ir(),Ce(nt),Ce(Ge),wa();break;case 5:va(o);break;case 4:ir();break;case 13:Ce(Pe);break;case 19:Ce(Pe);break;case 10:ha(o.type._context);break;case 22:case 23:Za()}r=r.return}if(Be=e,Oe=e=pn(e.current,null),He=ft=t,Ie=0,ss=null,Ha=Ti=En=0,it=is=null,Tn!==null){for(t=0;t<Tn.length;t++)if(r=Tn[t],o=r.interleaved,o!==null){r.interleaved=null;var l=o.next,c=r.pending;if(c!==null){var g=c.next;c.next=l,o.next=g}r.pending=o}Tn=null}return e}function ff(e,t){do{var r=Oe;try{if(fa(),pi.current=vi,mi){for(var o=Ee.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}mi=!1}if(Pn=0,be=ze=Ee=null,Zr=!1,Jr=0,Wa.current=null,r===null||r.return===null){Ie=1,ss=t,Oe=null;break}e:{var c=e,g=r.return,w=r,S=t;if(t=He,w.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var M=S,O=w,F=O.tag;if((O.mode&1)===0&&(F===0||F===11||F===15)){var D=O.alternate;D?(O.updateQueue=D.updateQueue,O.memoizedState=D.memoizedState,O.lanes=D.lanes):(O.updateQueue=null,O.memoizedState=null)}var W=Od(g);if(W!==null){W.flags&=-257,Fd(W,g,w,c,t),W.mode&1&&Vd(c,M,t),t=W,S=M;var q=t.updateQueue;if(q===null){var Y=new Set;Y.add(S),t.updateQueue=Y}else q.add(S);break e}else{if((t&1)===0){Vd(c,M,t),Ja();break e}S=Error(i(426))}}else if(Ne&&w.mode&1){var De=Od(g);if(De!==null){(De.flags&65536)===0&&(De.flags|=256),Fd(De,g,w,c,t),ca(or(S,w));break e}}c=S=or(S,w),Ie!==4&&(Ie=2),is===null?is=[c]:is.push(c),c=g;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var N=Ld(c,S,t);od(c,N);break e;case 1:w=S;var j=c.type,P=c.stateNode;if((c.flags&128)===0&&(typeof j.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(cn===null||!cn.has(P)))){c.flags|=65536,t&=-t,c.lanes|=t;var I=Dd(c,w,t);od(c,I);break e}}c=c.return}while(c!==null)}mf(r)}catch(X){t=X,Oe===r&&r!==null&&(Oe=r=r.return);continue}break}while(!0)}function hf(){var e=Ci.current;return Ci.current=vi,e===null?vi:e}function Ja(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Be===null||(En&268435455)===0&&(Ti&268435455)===0||hn(Be,He)}function _i(e,t){var r=fe;fe|=2;var o=hf();(Be!==e||He!==t)&&(Kt=null,Rn(e,t));do try{kg();break}catch(l){ff(e,l)}while(!0);if(fa(),fe=r,Ci.current=o,Oe!==null)throw Error(i(261));return Be=null,He=0,Ie}function kg(){for(;Oe!==null;)pf(Oe)}function Sg(){for(;Oe!==null&&!Gm();)pf(Oe)}function pf(e){var t=vf(e.alternate,e,ft);e.memoizedProps=e.pendingProps,t===null?mf(e):Oe=t,Wa.current=null}function mf(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=pg(r,t,ft),r!==null){Oe=r;return}}else{if(r=mg(r,t),r!==null){r.flags&=32767,Oe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Oe=null;return}}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);Ie===0&&(Ie=5)}function _n(e,t,r){var o=xe,l=xt.transition;try{xt.transition=null,xe=1,jg(e,t,r,o)}finally{xt.transition=l,xe=o}return null}function jg(e,t,r,o){do cr();while(dn!==null);if((fe&6)!==0)throw Error(i(327));r=e.finishedWork;var l=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var c=r.lanes|r.childLanes;if(ry(e,c),e===Be&&(Oe=Be=null,He=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Pi||(Pi=!0,xf(Vs,function(){return cr(),null})),c=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||c){c=xt.transition,xt.transition=null;var g=xe;xe=1;var w=fe;fe|=4,Wa.current=null,gg(e,r),sf(r,e),$y(Jo),Us=!!Zo,Jo=Zo=null,e.current=r,vg(r),Qm(),fe=w,xe=g,xt.transition=c}else e.current=r;if(Pi&&(Pi=!1,dn=e,Ei=l),c=e.pendingLanes,c===0&&(cn=null),Xm(r.stateNode),ot(e,Le()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)l=t[r],o(l.value,{componentStack:l.stack,digest:l.digest});if(Ni)throw Ni=!1,e=Ga,Ga=null,e;return(Ei&1)!==0&&e.tag!==0&&cr(),c=e.pendingLanes,(c&1)!==0?e===Qa?os++:(os=0,Qa=e):os=0,on(),null}function cr(){if(dn!==null){var e=nc(Ei),t=xt.transition,r=xe;try{if(xt.transition=null,xe=16>e?16:e,dn===null)var o=!1;else{if(e=dn,dn=null,Ei=0,(fe&6)!==0)throw Error(i(331));var l=fe;for(fe|=4,Q=e.current;Q!==null;){var c=Q,g=c.child;if((Q.flags&16)!==0){var w=c.deletions;if(w!==null){for(var S=0;S<w.length;S++){var M=w[S];for(Q=M;Q!==null;){var O=Q;switch(O.tag){case 0:case 11:case 15:rs(8,O,c)}var F=O.child;if(F!==null)F.return=O,Q=F;else for(;Q!==null;){O=Q;var D=O.sibling,W=O.return;if(Jd(O),O===M){Q=null;break}if(D!==null){D.return=W,Q=D;break}Q=W}}}var q=c.alternate;if(q!==null){var Y=q.child;if(Y!==null){q.child=null;do{var De=Y.sibling;Y.sibling=null,Y=De}while(Y!==null)}}Q=c}}if((c.subtreeFlags&2064)!==0&&g!==null)g.return=c,Q=g;else e:for(;Q!==null;){if(c=Q,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:rs(9,c,c.return)}var N=c.sibling;if(N!==null){N.return=c.return,Q=N;break e}Q=c.return}}var j=e.current;for(Q=j;Q!==null;){g=Q;var P=g.child;if((g.subtreeFlags&2064)!==0&&P!==null)P.return=g,Q=P;else e:for(g=j;Q!==null;){if(w=Q,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:ji(9,w)}}catch(X){_e(w,w.return,X)}if(w===g){Q=null;break e}var I=w.sibling;if(I!==null){I.return=w.return,Q=I;break e}Q=w.return}}if(fe=l,on(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Os,e)}catch{}o=!0}return o}finally{xe=r,xt.transition=t}}return!1}function yf(e,t,r){t=or(r,t),t=Ld(e,t,1),e=ln(e,t,1),t=tt(),e!==null&&(Rr(e,1,t),ot(e,t))}function _e(e,t,r){if(e.tag===3)yf(e,e,r);else for(;t!==null;){if(t.tag===3){yf(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(cn===null||!cn.has(o))){e=or(r,e),e=Dd(t,e,1),t=ln(t,e,1),e=tt(),t!==null&&(Rr(t,1,e),ot(t,e));break}}t=t.return}}function Cg(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&r,Be===e&&(He&r)===r&&(Ie===4||Ie===3&&(He&130023424)===He&&500>Le()-Ka?Rn(e,0):Ha|=r),ot(e,t)}function gf(e,t){t===0&&((e.mode&1)===0?t=1:(t=zs,zs<<=1,(zs&130023424)===0&&(zs=4194304)));var r=tt();e=$t(e,t),e!==null&&(Rr(e,t,r),ot(e,r))}function Tg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),gf(e,r)}function Ng(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(r=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}o!==null&&o.delete(t),gf(e,r)}var vf;vf=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)st=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return st=!1,hg(e,t,r);st=(e.flags&131072)!==0}else st=!1,Ne&&(t.flags&1048576)!==0&&Yc(t,oi,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ki(e,t),e=t.pendingProps;var l=Zn(t,Ge.current);sr(t,r),l=ja(null,t,o,e,l,r);var c=Ca();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(o)?(c=!0,ri(t)):c=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ya(t),l.updater=xi,t.stateNode=l,l._reactInternals=t,Ra(t,o,e,r),t=Da(null,t,o,!0,c,r)):(t.tag=0,Ne&&c&&oa(t),et(null,t,l,r),t=t.child),t;case 16:o=t.elementType;e:{switch(ki(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=Eg(o),e=Pt(o,e),l){case 0:t=La(null,t,o,e,r);break e;case 1:t=$d(null,t,o,e,r);break e;case 11:t=zd(null,t,o,e,r);break e;case 14:t=Id(null,t,o,Pt(o.type,e),r);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Pt(o,l),La(e,t,o,l,r);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Pt(o,l),$d(e,t,o,l,r);case 3:e:{if(Wd(t),e===null)throw Error(i(387));o=t.pendingProps,c=t.memoizedState,l=c.element,id(e,t),fi(t,o,null,r);var g=t.memoizedState;if(o=g.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){l=or(Error(i(423)),t),t=Hd(e,t,o,r,l);break e}else if(o!==l){l=or(Error(i(424)),t),t=Hd(e,t,o,r,l);break e}else for(dt=nn(t.stateNode.containerInfo.firstChild),ct=t,Ne=!0,Nt=null,r=rd(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(tr(),o===l){t=Ht(e,t,r);break e}et(e,t,o,r)}t=t.child}return t;case 5:return ld(t),e===null&&ua(t),o=t.type,l=t.pendingProps,c=e!==null?e.memoizedProps:null,g=l.children,ea(o,l)?g=null:c!==null&&ea(o,c)&&(t.flags|=32),Ud(e,t),et(e,t,g,r),t.child;case 6:return e===null&&ua(t),null;case 13:return Kd(e,t,r);case 4:return ga(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=nr(t,null,o,r):et(e,t,o,r),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Pt(o,l),zd(e,t,o,l,r);case 7:return et(e,t,t.pendingProps,r),t.child;case 8:return et(e,t,t.pendingProps.children,r),t.child;case 12:return et(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,c=t.memoizedProps,g=l.value,ke(ui,o._currentValue),o._currentValue=g,c!==null)if(Tt(c.value,g)){if(c.children===l.children&&!nt.current){t=Ht(e,t,r);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var w=c.dependencies;if(w!==null){g=c.child;for(var S=w.firstContext;S!==null;){if(S.context===o){if(c.tag===1){S=Wt(-1,r&-r),S.tag=2;var M=c.updateQueue;if(M!==null){M=M.shared;var O=M.pending;O===null?S.next=S:(S.next=O.next,O.next=S),M.pending=S}}c.lanes|=r,S=c.alternate,S!==null&&(S.lanes|=r),pa(c.return,r,t),w.lanes|=r;break}S=S.next}}else if(c.tag===10)g=c.type===t.type?null:c.child;else if(c.tag===18){if(g=c.return,g===null)throw Error(i(341));g.lanes|=r,w=g.alternate,w!==null&&(w.lanes|=r),pa(g,r,t),g=c.sibling}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===t){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}et(e,t,l.children,r),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,sr(t,r),l=gt(l),o=o(l),t.flags|=1,et(e,t,o,r),t.child;case 14:return o=t.type,l=Pt(o,t.pendingProps),l=Pt(o.type,l),Id(e,t,o,l,r);case 15:return bd(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Pt(o,l),ki(e,t),t.tag=1,rt(o)?(e=!0,ri(t)):e=!1,sr(t,r),_d(t,o,l),Ra(t,o,l,r),Da(null,t,o,!0,e,r);case 19:return Qd(e,t,r);case 22:return Bd(e,t,r)}throw Error(i(156,t.tag))};function xf(e,t){return Xu(e,t)}function Pg(e,t,r,o){this.tag=e,this.key=r,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,r,o){return new Pg(e,t,r,o)}function el(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Eg(e){if(typeof e=="function")return el(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ge)return 11;if(e===jt)return 14}return 2}function pn(e,t){var r=e.alternate;return r===null?(r=wt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ai(e,t,r,o,l,c){var g=2;if(o=e,typeof e=="function")el(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case G:return An(r.children,l,c,t);case B:g=8,l|=8;break;case J:return e=wt(12,r,t,l|2),e.elementType=J,e.lanes=c,e;case Re:return e=wt(13,r,t,l),e.elementType=Re,e.lanes=c,e;case Fe:return e=wt(19,r,t,l),e.elementType=Fe,e.lanes=c,e;case le:return Li(r,l,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:g=10;break e;case ye:g=9;break e;case ge:g=11;break e;case jt:g=14;break e;case Je:g=16,o=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=wt(g,r,t,l),t.elementType=e,t.type=o,t.lanes=c,t}function An(e,t,r,o){return e=wt(7,e,o,t),e.lanes=r,e}function Li(e,t,r,o){return e=wt(22,e,o,t),e.elementType=le,e.lanes=r,e.stateNode={isHidden:!1},e}function tl(e,t,r){return e=wt(6,e,null,t),e.lanes=r,e}function nl(e,t,r){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mg(e,t,r,o,l){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=Mo(0),this.expirationTimes=Mo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function rl(e,t,r,o,l,c,g,w,S){return e=new Mg(e,t,r,w,S),t===1?(t=1,c===!0&&(t|=8)):t=0,c=wt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ya(c),e}function Rg(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Z,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function wf(e){if(!e)return sn;e=e._reactInternals;e:{if(wn(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var r=e.type;if(rt(r))return Gc(e,r,t)}return t}function kf(e,t,r,o,l,c,g,w,S){return e=rl(r,o,!0,e,l,c,g,w,S),e.context=wf(null),r=e.current,o=tt(),l=fn(r),c=Wt(o,l),c.callback=t??null,ln(r,c,l),e.current.lanes=l,Rr(e,l,o),ot(e,o),e}function Di(e,t,r,o){var l=t.current,c=tt(),g=fn(l);return r=wf(r),t.context===null?t.context=r:t.pendingContext=r,t=Wt(c,g),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=ln(l,t,g),e!==null&&(Rt(e,l,g,c),di(e,l,g)),g}function Vi(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 Sf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function sl(e,t){Sf(e,t),(e=e.alternate)&&Sf(e,t)}function _g(){return null}var jf=typeof reportError=="function"?reportError:function(e){console.error(e)};function il(e){this._internalRoot=e}Oi.prototype.render=il.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Di(e,t,null,null)},Oi.prototype.unmount=il.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mn(function(){Di(null,e,null,null)}),t[It]=null}};function Oi(e){this._internalRoot=e}Oi.prototype.unstable_scheduleHydration=function(e){if(e){var t=ic();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Jt.length&&t!==0&&t<Jt[r].priority;r++);Jt.splice(r,0,e),r===0&&lc(e)}};function ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Cf(){}function Ag(e,t,r,o,l){if(l){if(typeof o=="function"){var c=o;o=function(){var M=Vi(g);c.call(M)}}var g=kf(t,o,e,0,null,!1,!1,"",Cf);return e._reactRootContainer=g,e[It]=g.current,Wr(e.nodeType===8?e.parentNode:e),Mn(),g}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var w=o;o=function(){var M=Vi(S);w.call(M)}}var S=rl(e,0,!1,null,null,!1,!1,"",Cf);return e._reactRootContainer=S,e[It]=S.current,Wr(e.nodeType===8?e.parentNode:e),Mn(function(){Di(t,S,r,o)}),S}function zi(e,t,r,o,l){var c=r._reactRootContainer;if(c){var g=c;if(typeof l=="function"){var w=l;l=function(){var S=Vi(g);w.call(S)}}Di(t,g,e,l)}else g=Ag(r,t,e,l,o);return Vi(g)}rc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Mr(t.pendingLanes);r!==0&&(Ro(t,r|1),ot(t,Le()),(fe&6)===0&&(ur=Le()+500,on()))}break;case 13:Mn(function(){var o=$t(e,1);if(o!==null){var l=tt();Rt(o,e,1,l)}}),sl(e,1)}},_o=function(e){if(e.tag===13){var t=$t(e,134217728);if(t!==null){var r=tt();Rt(t,e,134217728,r)}sl(e,134217728)}},sc=function(e){if(e.tag===13){var t=fn(e),r=$t(e,t);if(r!==null){var o=tt();Rt(r,e,t,o)}sl(e,t)}},ic=function(){return xe},oc=function(e,t){var r=xe;try{return xe=e,t()}finally{xe=r}},jo=function(e,t,r){switch(t){case"input":if(mo(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var l=ti(o);if(!l)throw Error(i(90));Ru(o),mo(o,l)}}}break;case"textarea":Vu(e,r);break;case"select":t=r.value,t!=null&&bn(e,!!r.multiple,t,!1)}},Wu=Xa,Hu=Mn;var Lg={usingClientEntryPoint:!1,Events:[Gr,Yn,ti,Uu,$u,Xa]},as={findFiberByHostInstance:kn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Dg={bundleType:as.bundleType,version:as.version,rendererPackageName:as.rendererPackageName,rendererConfig:as.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qu(e),e===null?null:e.stateNode},findFiberByHostInstance:as.findFiberByHostInstance||_g,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 Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{Os=Ii.inject(Dg),At=Ii}catch{}}return at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lg,at.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(t))throw Error(i(200));return Rg(e,t,null,r)},at.createRoot=function(e,t){if(!ol(e))throw Error(i(299));var r=!1,o="",l=jf;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=rl(e,1,!1,null,null,r,!1,o,l),e[It]=t.current,Wr(e.nodeType===8?e.parentNode:e),new il(t)},at.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(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=qu(t),e=e===null?null:e.stateNode,e},at.flushSync=function(e){return Mn(e)},at.hydrate=function(e,t,r){if(!Fi(t))throw Error(i(200));return zi(null,e,t,!0,r)},at.hydrateRoot=function(e,t,r){if(!ol(e))throw Error(i(405));var o=r!=null&&r.hydratedSources||null,l=!1,c="",g=jf;if(r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onRecoverableError!==void 0&&(g=r.onRecoverableError)),t=kf(t,null,e,1,r??null,l,!1,c,g),e[It]=t.current,Wr(e),o)for(e=0;e<o.length;e++)r=o[e],l=r._getVersion,l=l(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,l]:t.mutableSourceEagerHydrationData.push(r,l);return new Oi(t)},at.render=function(e,t,r){if(!Fi(t))throw Error(i(200));return zi(null,e,t,!1,r)},at.unmountComponentAtNode=function(e){if(!Fi(e))throw Error(i(40));return e._reactRootContainer?(Mn(function(){zi(null,null,e,!1,function(){e._reactRootContainer=null,e[It]=null})}),!0):!1},at.unstable_batchedUpdates=Xa,at.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Fi(r))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return zi(e,t,r,!1,o)},at.version="18.3.1-next-f1338f8080-20240426",at}var Af;function $g(){if(Af)return ul.exports;Af=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),ul.exports=Ug(),ul.exports}var Lf;function Wg(){if(Lf)return bi;Lf=1;var n=$g();return bi.createRoot=n.createRoot,bi.hydrateRoot=n.hydrateRoot,bi}var Hg=Wg();const Kg=Jh(Hg),xs=A.createContext({});function Kl(n){const s=A.useRef(null);return s.current===null&&(s.current=n()),s.current}const oo=A.createContext(null),Gl=A.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class Gg extends A.Component{getSnapshotBeforeUpdate(s){const i=this.props.childRef.current;if(i&&s.isPresent&&!this.props.isPresent){const a=this.props.sizeRef.current;a.height=i.offsetHeight||0,a.width=i.offsetWidth||0,a.top=i.offsetTop,a.left=i.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Qg({children:n,isPresent:s}){const i=A.useId(),a=A.useRef(null),u=A.useRef({width:0,height:0,top:0,left:0}),{nonce:f}=A.useContext(Gl);return A.useInsertionEffect(()=>{const{width:d,height:h,top:m,left:y}=u.current;if(s||!a.current||!d||!h)return;a.current.dataset.motionPopId=i;const v=document.createElement("style");return f&&(v.nonce=f),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
41
|
+
[data-motion-pop-id="${i}"] {
|
|
42
|
+
position: absolute !important;
|
|
43
|
+
width: ${d}px !important;
|
|
44
|
+
height: ${h}px !important;
|
|
45
|
+
top: ${m}px !important;
|
|
46
|
+
left: ${y}px !important;
|
|
47
|
+
}
|
|
48
|
+
`),()=>{document.head.removeChild(v)}},[s]),p.jsx(Gg,{isPresent:s,childRef:a,sizeRef:u,children:A.cloneElement(n,{ref:a})})}const qg=({children:n,initial:s,isPresent:i,onExitComplete:a,custom:u,presenceAffectsLayout:f,mode:d})=>{const h=Kl(Yg),m=A.useId(),y=A.useCallback(x=>{h.set(x,!0);for(const k of h.values())if(!k)return;a&&a()},[h,a]),v=A.useMemo(()=>({id:m,initial:s,isPresent:i,custom:u,onExitComplete:y,register:x=>(h.set(x,!1),()=>h.delete(x))}),f?[Math.random(),y]:[i,y]);return A.useMemo(()=>{h.forEach((x,k)=>h.set(k,!1))},[i]),A.useEffect(()=>{!i&&!h.size&&a&&a()},[i]),d==="popLayout"&&(n=p.jsx(Qg,{isPresent:i,children:n})),p.jsx(oo.Provider,{value:v,children:n})};function Yg(){return new Map}function ep(n=!0){const s=A.useContext(oo);if(s===null)return[!0,null];const{isPresent:i,onExitComplete:a,register:u}=s,f=A.useId();A.useEffect(()=>{n&&u(f)},[n]);const d=A.useCallback(()=>n&&a&&a(f),[f,a,n]);return!i&&a?[!1,d]:[!0]}const Bi=n=>n.key||"";function Df(n){const s=[];return A.Children.forEach(n,i=>{A.isValidElement(i)&&s.push(i)}),s}const Ql=typeof window<"u",ql=Ql?A.useLayoutEffect:A.useEffect,ao=({children:n,custom:s,initial:i=!0,onExitComplete:a,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1})=>{const[h,m]=ep(d),y=A.useMemo(()=>Df(n),[n]),v=d&&!h?[]:y.map(Bi),x=A.useRef(!0),k=A.useRef(y),C=Kl(()=>new Map),[E,R]=A.useState(y),[_,L]=A.useState(y);ql(()=>{x.current=!1,k.current=y;for(let K=0;K<_.length;K++){const U=Bi(_[K]);v.includes(U)?C.delete(U):C.get(U)!==!0&&C.set(U,!1)}},[_,v.length,v.join("-")]);const z=[];if(y!==E){let K=[...y];for(let U=0;U<_.length;U++){const Z=_[U],G=Bi(Z);v.includes(G)||(K.splice(U,0,Z),z.push(Z))}f==="wait"&&z.length&&(K=z),L(Df(K)),R(y);return}const{forceRender:$}=A.useContext(xs);return p.jsx(p.Fragment,{children:_.map(K=>{const U=Bi(K),Z=d&&!h?!1:y===_||v.includes(U),G=()=>{if(C.has(U))C.set(U,!0);else return;let B=!0;C.forEach(J=>{J||(B=!1)}),B&&($==null||$(),L(k.current),d&&(m==null||m()),a&&a())};return p.jsx(qg,{isPresent:Z,initial:!x.current||i?void 0:!1,custom:Z?void 0:s,presenceAffectsLayout:u,mode:f,onExitComplete:Z?void 0:G,children:K},U)})})},Xg=A.createContext(null);function Zg(){const n=A.useRef(!1);return ql(()=>(n.current=!0,()=>{n.current=!1}),[]),n}const ht=n=>n;let tp=ht;function Yl(n){let s;return()=>(s===void 0&&(s=n()),s)}const vr=(n,s,i)=>{const a=s-n;return a===0?1:(i-n)/a},Gt=n=>n*1e3,Qt=n=>n/1e3,Jg={useManualTiming:!1};function ev(n){let s=new Set,i=new Set,a=!1,u=!1;const f=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function h(y){f.has(y)&&(m.schedule(y),n()),y(d)}const m={schedule:(y,v=!1,x=!1)=>{const C=x&&a?s:i;return v&&f.add(y),C.has(y)||C.add(y),y},cancel:y=>{i.delete(y),f.delete(y)},process:y=>{if(d=y,a){u=!0;return}a=!0,[s,i]=[i,s],s.forEach(h),s.clear(),a=!1,u&&(u=!1,m.process(y))}};return m}const Ui=["read","resolveKeyframes","update","preRender","render","postRender"],tv=40;function np(n,s){let i=!1,a=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>i=!0,d=Ui.reduce((L,z)=>(L[z]=ev(f),L),{}),{read:h,resolveKeyframes:m,update:y,preRender:v,render:x,postRender:k}=d,C=()=>{const L=performance.now();i=!1,u.delta=a?1e3/60:Math.max(Math.min(L-u.timestamp,tv),1),u.timestamp=L,u.isProcessing=!0,h.process(u),m.process(u),y.process(u),v.process(u),x.process(u),k.process(u),u.isProcessing=!1,i&&s&&(a=!1,n(C))},E=()=>{i=!0,a=!0,u.isProcessing||n(C)};return{schedule:Ui.reduce((L,z)=>{const $=d[z];return L[z]=(K,U=!1,Z=!1)=>(i||E(),$.schedule(K,U,Z)),L},{}),cancel:L=>{for(let z=0;z<Ui.length;z++)d[Ui[z]].cancel(L)},state:u,steps:d}}const{schedule:Se,cancel:gn,state:Ke,steps:fl}=np(typeof requestAnimationFrame<"u"?requestAnimationFrame:ht,!0);function nv(){const n=Zg(),[s,i]=A.useState(0),a=A.useCallback(()=>{n.current&&i(s+1)},[s]);return[A.useCallback(()=>Se.postRender(a),[a]),s]}const rv=n=>!n.isLayoutDirty&&n.willUpdate(!1);function Vf(){const n=new Set,s=new WeakMap,i=()=>n.forEach(rv);return{add:a=>{n.add(a),s.set(a,a.addEventListener("willUpdate",i))},remove:a=>{n.delete(a);const u=s.get(a);u&&(u(),s.delete(a)),i()},dirty:i}}const rp=n=>n===!0,sv=n=>rp(n===!0)||n==="id",iv=({children:n,id:s,inherit:i=!0})=>{const a=A.useContext(xs),u=A.useContext(Xg),[f,d]=nv(),h=A.useRef(null),m=a.id||u;h.current===null&&(sv(i)&&m&&(s=s?m+"-"+s:m),h.current={id:s,group:rp(i)&&a.group||Vf()});const y=A.useMemo(()=>({...h.current,forceRender:f}),[d]);return p.jsx(xs.Provider,{value:y,children:n})},sp=A.createContext({strict:!1}),Of={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"]},xr={};for(const n in Of)xr[n]={isEnabled:s=>Of[n].some(i=>!!s[i])};function ov(n){for(const s in n)xr[s]={...xr[s],...n[s]}}const av=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 Zi(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||av.has(n)}let ip=n=>!Zi(n);function lv(n){n&&(ip=s=>s.startsWith("on")?!Zi(s):n(s))}try{lv(require("@emotion/is-prop-valid").default)}catch{}function uv(n,s,i){const a={};for(const u in n)u==="values"&&typeof n.values=="object"||(ip(u)||i===!0&&Zi(u)||!s&&!Zi(u)||n.draggable&&u.startsWith("onDrag"))&&(a[u]=n[u]);return a}function cv(n){if(typeof Proxy>"u")return n;const s=new Map,i=(...a)=>n(...a);return new Proxy(i,{get:(a,u)=>u==="create"?n:(s.has(u)||s.set(u,n(u)),s.get(u))})}const lo=A.createContext({});function ws(n){return typeof n=="string"||Array.isArray(n)}function uo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}const Xl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zl=["initial",...Xl];function co(n){return uo(n.animate)||Zl.some(s=>ws(n[s]))}function op(n){return!!(co(n)||n.variants)}function dv(n,s){if(co(n)){const{initial:i,animate:a}=n;return{initial:i===!1||ws(i)?i:void 0,animate:ws(a)?a:void 0}}return n.inherit!==!1?s:{}}function fv(n){const{initial:s,animate:i}=dv(n,A.useContext(lo));return A.useMemo(()=>({initial:s,animate:i}),[Ff(s),Ff(i)])}function Ff(n){return Array.isArray(n)?n.join(" "):n}const hv=Symbol.for("motionComponentSymbol");function dr(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function pv(n,s,i){return A.useCallback(a=>{a&&n.onMount&&n.onMount(a),s&&(a?s.mount(a):s.unmount()),i&&(typeof i=="function"?i(a):dr(i)&&(i.current=a))},[s])}const Jl=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mv="framerAppearId",ap="data-"+Jl(mv),{schedule:eu}=np(queueMicrotask,!1),lp=A.createContext({});function yv(n,s,i,a,u){var f,d;const{visualElement:h}=A.useContext(lo),m=A.useContext(sp),y=A.useContext(oo),v=A.useContext(Gl).reducedMotion,x=A.useRef(null);a=a||m.renderer,!x.current&&a&&(x.current=a(n,{visualState:s,parent:h,props:i,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v}));const k=x.current,C=A.useContext(lp);k&&!k.projection&&u&&(k.type==="html"||k.type==="svg")&&gv(x.current,i,u,C);const E=A.useRef(!1);A.useInsertionEffect(()=>{k&&E.current&&k.update(i,y)});const R=i[ap],_=A.useRef(!!R&&!(!((f=window.MotionHandoffIsComplete)===null||f===void 0)&&f.call(window,R))&&((d=window.MotionHasOptimisedAnimation)===null||d===void 0?void 0:d.call(window,R)));return ql(()=>{k&&(E.current=!0,window.MotionIsMounted=!0,k.updateFeatures(),eu.render(k.render),_.current&&k.animationState&&k.animationState.animateChanges())}),A.useEffect(()=>{k&&(!_.current&&k.animationState&&k.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var L;(L=window.MotionHandoffMarkAsComplete)===null||L===void 0||L.call(window,R)}),_.current=!1))}),k}function gv(n,s,i,a){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:m,layoutRoot:y}=s;n.projection=new i(n.latestValues,s["data-framer-portal-id"]?void 0:up(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&dr(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,layoutScroll:m,layoutRoot:y})}function up(n){if(n)return n.options.allowProjection!==!1?n.projection:up(n.parent)}function vv({preloadedFeatures:n,createVisualElement:s,useRender:i,useVisualState:a,Component:u}){var f,d;n&&ov(n);function h(y,v){let x;const k={...A.useContext(Gl),...y,layoutId:xv(y)},{isStatic:C}=k,E=fv(y),R=a(y,C);if(!C&&Ql){wv();const _=kv(k);x=_.MeasureLayout,E.visualElement=yv(u,R,k,s,_.ProjectionNode)}return p.jsxs(lo.Provider,{value:E,children:[x&&E.visualElement?p.jsx(x,{visualElement:E.visualElement,...k}):null,i(u,y,pv(R,E.visualElement,v),R,C,E.visualElement)]})}h.displayName=`motion.${typeof u=="string"?u:`create(${(d=(f=u.displayName)!==null&&f!==void 0?f:u.name)!==null&&d!==void 0?d:""})`}`;const m=A.forwardRef(h);return m[hv]=u,m}function xv({layoutId:n}){const s=A.useContext(xs).id;return s&&n!==void 0?s+"-"+n:n}function wv(n,s){A.useContext(sp).strict}function kv(n){const{drag:s,layout:i}=xr;if(!s&&!i)return{};const a={...s,...i};return{MeasureLayout:s!=null&&s.isEnabled(n)||i!=null&&i.isEnabled(n)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const Sv=["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 tu(n){return typeof n!="string"||n.includes("-")?!1:!!(Sv.indexOf(n)>-1||/[A-Z]/u.test(n))}function zf(n){const s=[{},{}];return n==null||n.values.forEach((i,a)=>{s[0][a]=i.get(),s[1][a]=i.getVelocity()}),s}function nu(n,s,i,a){if(typeof s=="function"){const[u,f]=zf(a);s=s(i!==void 0?i:n.custom,u,f)}if(typeof s=="string"&&(s=n.variants&&n.variants[s]),typeof s=="function"){const[u,f]=zf(a);s=s(i!==void 0?i:n.custom,u,f)}return s}const Nl=n=>Array.isArray(n),jv=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),Cv=n=>Nl(n)?n[n.length-1]||0:n,Ze=n=>!!(n&&n.getVelocity);function Gi(n){const s=Ze(n)?n.get():n;return jv(s)?s.toValue():s}function Tv({scrapeMotionValuesFromProps:n,createRenderState:s,onUpdate:i},a,u,f){const d={latestValues:Nv(a,u,f,n),renderState:s()};return i&&(d.onMount=h=>i({props:a,current:h,...d}),d.onUpdate=h=>i(h)),d}const cp=n=>(s,i)=>{const a=A.useContext(lo),u=A.useContext(oo),f=()=>Tv(n,s,a,u);return i?f():Kl(f)};function Nv(n,s,i,a){const u={},f=a(n,{});for(const k in f)u[k]=Gi(f[k]);let{initial:d,animate:h}=n;const m=co(n),y=op(n);s&&y&&!m&&n.inherit!==!1&&(d===void 0&&(d=s.initial),h===void 0&&(h=s.animate));let v=i?i.initial===!1:!1;v=v||d===!1;const x=v?h:d;if(x&&typeof x!="boolean"&&!uo(x)){const k=Array.isArray(x)?x:[x];for(let C=0;C<k.length;C++){const E=nu(n,k[C]);if(E){const{transitionEnd:R,transition:_,...L}=E;for(const z in L){let $=L[z];if(Array.isArray($)){const K=v?$.length-1:0;$=$[K]}$!==null&&(u[z]=$)}for(const z in R)u[z]=R[z]}}}return u}const kr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],In=new Set(kr),dp=n=>s=>typeof s=="string"&&s.startsWith(n),fp=dp("--"),Pv=dp("var(--"),ru=n=>Pv(n)?Ev.test(n.split("/*")[0].trim()):!1,Ev=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hp=(n,s)=>s&&typeof n=="number"?s.transform(n):n,qt=(n,s,i)=>i>s?s:i<n?n:i,Sr={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},ks={...Sr,transform:n=>qt(0,1,n)},$i={...Sr,default:1},Ns=n=>({test:s=>typeof s=="string"&&s.endsWith(n)&&s.split(" ").length===1,parse:parseFloat,transform:s=>`${s}${n}`}),yn=Ns("deg"),Ft=Ns("%"),ie=Ns("px"),Mv=Ns("vh"),Rv=Ns("vw"),If={...Ft,parse:n=>Ft.parse(n)/100,transform:n=>Ft.transform(n*100)},_v={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,backgroundPositionX:ie,backgroundPositionY:ie},Av={rotate:yn,rotateX:yn,rotateY:yn,rotateZ:yn,scale:$i,scaleX:$i,scaleY:$i,scaleZ:$i,skew:yn,skewX:yn,skewY:yn,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:ks,originX:If,originY:If,originZ:ie},bf={...Sr,transform:Math.round},su={..._v,...Av,zIndex:bf,size:ie,fillOpacity:ks,strokeOpacity:ks,numOctaves:bf},Lv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dv=kr.length;function Vv(n,s,i){let a="",u=!0;for(let f=0;f<Dv;f++){const d=kr[f],h=n[d];if(h===void 0)continue;let m=!0;if(typeof h=="number"?m=h===(d.startsWith("scale")?1:0):m=parseFloat(h)===0,!m||i){const y=hp(h,su[d]);if(!m){u=!1;const v=Lv[d]||d;a+=`${v}(${y}) `}i&&(s[d]=y)}}return a=a.trim(),i?a=i(s,u?"":a):u&&(a="none"),a}function iu(n,s,i){const{style:a,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const m in s){const y=s[m];if(In.has(m)){d=!0;continue}else if(fp(m)){u[m]=y;continue}else{const v=hp(y,su[m]);m.startsWith("origin")?(h=!0,f[m]=v):a[m]=v}}if(s.transform||(d||i?a.transform=Vv(s,n.transform,i):a.transform&&(a.transform="none")),h){const{originX:m="50%",originY:y="50%",originZ:v=0}=f;a.transformOrigin=`${m} ${y} ${v}`}}const Ov={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fv={offset:"strokeDashoffset",array:"strokeDasharray"};function zv(n,s,i=1,a=0,u=!0){n.pathLength=1;const f=u?Ov:Fv;n[f.offset]=ie.transform(-a);const d=ie.transform(s),h=ie.transform(i);n[f.array]=`${d} ${h}`}function Bf(n,s,i){return typeof n=="string"?n:ie.transform(s+i*n)}function Iv(n,s,i){const a=Bf(s,n.x,n.width),u=Bf(i,n.y,n.height);return`${a} ${u}`}function ou(n,{attrX:s,attrY:i,attrScale:a,originX:u,originY:f,pathLength:d,pathSpacing:h=1,pathOffset:m=0,...y},v,x){if(iu(n,y,x),v){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:k,style:C,dimensions:E}=n;k.transform&&(E&&(C.transform=k.transform),delete k.transform),E&&(u!==void 0||f!==void 0||C.transform)&&(C.transformOrigin=Iv(E,u!==void 0?u:.5,f!==void 0?f:.5)),s!==void 0&&(k.x=s),i!==void 0&&(k.y=i),a!==void 0&&(k.scale=a),d!==void 0&&zv(k,d,h,m,!1)}const au=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),pp=()=>({...au(),attrs:{}}),lu=n=>typeof n=="string"&&n.toLowerCase()==="svg";function mp(n,{style:s,vars:i},a,u){Object.assign(n.style,s,u&&u.getProjectionStyles(a));for(const f in i)n.style.setProperty(f,i[f])}const yp=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 gp(n,s,i,a){mp(n,s,void 0,a);for(const u in s.attrs)n.setAttribute(yp.has(u)?u:Jl(u),s.attrs[u])}const Ji={};function bv(n){Object.assign(Ji,n)}function vp(n,{layout:s,layoutId:i}){return In.has(n)||n.startsWith("origin")||(s||i!==void 0)&&(!!Ji[n]||n==="opacity")}function uu(n,s,i){var a;const{style:u}=n,f={};for(const d in u)(Ze(u[d])||s.style&&Ze(s.style[d])||vp(d,n)||((a=i==null?void 0:i.getValue(d))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(f[d]=u[d]);return f}function xp(n,s,i){const a=uu(n,s,i);for(const u in n)if(Ze(n[u])||Ze(s[u])){const f=kr.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;a[f]=n[u]}return a}function Bv(n,s){try{s.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{s.dimensions={x:0,y:0,width:0,height:0}}}const Uf=["x","y","width","height","cx","cy","r"],Uv={useVisualState:cp({scrapeMotionValuesFromProps:xp,createRenderState:pp,onUpdate:({props:n,prevProps:s,current:i,renderState:a,latestValues:u})=>{if(!i)return;let f=!!n.drag;if(!f){for(const h in u)if(In.has(h)){f=!0;break}}if(!f)return;let d=!s;if(s)for(let h=0;h<Uf.length;h++){const m=Uf[h];n[m]!==s[m]&&(d=!0)}d&&Se.read(()=>{Bv(i,a),Se.render(()=>{ou(a,u,lu(i.tagName),n.transformTemplate),gp(i,a)})})}})},$v={useVisualState:cp({scrapeMotionValuesFromProps:uu,createRenderState:au})};function wp(n,s,i){for(const a in s)!Ze(s[a])&&!vp(a,i)&&(n[a]=s[a])}function Wv({transformTemplate:n},s){return A.useMemo(()=>{const i=au();return iu(i,s,n),Object.assign({},i.vars,i.style)},[s])}function Hv(n,s){const i=n.style||{},a={};return wp(a,i,n),Object.assign(a,Wv(n,s)),a}function Kv(n,s){const i={},a=Hv(n,s);return n.drag&&n.dragListener!==!1&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(i.tabIndex=0),i.style=a,i}function Gv(n,s,i,a){const u=A.useMemo(()=>{const f=pp();return ou(f,s,lu(a),n.transformTemplate),{...f.attrs,style:{...f.style}}},[s]);if(n.style){const f={};wp(f,n.style,n),u.style={...f,...u.style}}return u}function Qv(n=!1){return(i,a,u,{latestValues:f},d)=>{const m=(tu(i)?Gv:Kv)(a,f,d,i),y=uv(a,typeof i=="string",n),v=i!==A.Fragment?{...y,...m,ref:u}:{},{children:x}=a,k=A.useMemo(()=>Ze(x)?x.get():x,[x]);return A.createElement(i,{...v,children:k})}}function qv(n,s){return function(a,{forwardMotionProps:u}={forwardMotionProps:!1}){const d={...tu(a)?Uv:$v,preloadedFeatures:n,useRender:Qv(u),createVisualElement:s,Component:a};return vv(d)}}function kp(n,s){if(!Array.isArray(s))return!1;const i=s.length;if(i!==n.length)return!1;for(let a=0;a<i;a++)if(s[a]!==n[a])return!1;return!0}function fo(n,s,i){const a=n.getProps();return nu(a,s,i!==void 0?i:a.custom,n)}const Yv=Yl(()=>window.ScrollTimeline!==void 0);class Xv{constructor(s){this.stop=()=>this.runAll("stop"),this.animations=s.filter(Boolean)}get finished(){return Promise.all(this.animations.map(s=>"finished"in s?s.finished:s))}getAll(s){return this.animations[0][s]}setAll(s,i){for(let a=0;a<this.animations.length;a++)this.animations[a][s]=i}attachTimeline(s,i){const a=this.animations.map(u=>{if(Yv()&&u.attachTimeline)return u.attachTimeline(s);if(typeof i=="function")return i(u)});return()=>{a.forEach((u,f)=>{u&&u(),this.animations[f].stop()})}}get time(){return this.getAll("time")}set time(s){this.setAll("time",s)}get speed(){return this.getAll("speed")}set speed(s){this.setAll("speed",s)}get startTime(){return this.getAll("startTime")}get duration(){let s=0;for(let i=0;i<this.animations.length;i++)s=Math.max(s,this.animations[i].duration);return s}runAll(s){this.animations.forEach(i=>i[s]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Zv extends Xv{then(s,i){return Promise.all(this.animations).then(s).catch(i)}}function cu(n,s){return n?n[s]||n.default||n:void 0}const Pl=2e4;function Sp(n){let s=0;const i=50;let a=n.next(s);for(;!a.done&&s<Pl;)s+=i,a=n.next(s);return s>=Pl?1/0:s}function du(n){return typeof n=="function"}function $f(n,s){n.timeline=s,n.onfinish=null}const fu=n=>Array.isArray(n)&&typeof n[0]=="number",Jv={linearEasing:void 0};function e0(n,s){const i=Yl(n);return()=>{var a;return(a=Jv[s])!==null&&a!==void 0?a:i()}}const eo=e0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jp=(n,s,i=10)=>{let a="";const u=Math.max(Math.round(s/i),2);for(let f=0;f<u;f++)a+=n(vr(0,u-1,f))+", ";return`linear(${a.substring(0,a.length-2)})`};function Cp(n){return!!(typeof n=="function"&&eo()||!n||typeof n=="string"&&(n in El||eo())||fu(n)||Array.isArray(n)&&n.every(Cp))}const ds=([n,s,i,a])=>`cubic-bezier(${n}, ${s}, ${i}, ${a})`,El={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ds([0,.65,.55,1]),circOut:ds([.55,0,1,.45]),backIn:ds([.31,.01,.66,-.59]),backOut:ds([.33,1.53,.69,.99])};function Tp(n,s){if(n)return typeof n=="function"&&eo()?jp(n,s):fu(n)?ds(n):Array.isArray(n)?n.map(i=>Tp(i,s)||El.easeOut):El[n]}const _t={x:!1,y:!1};function Np(){return _t.x||_t.y}function t0(n,s,i){var a;if(n instanceof Element)return[n];if(typeof n=="string"){let u=document;const f=(a=void 0)!==null&&a!==void 0?a:u.querySelectorAll(n);return f?Array.from(f):[]}return Array.from(n)}function Pp(n,s){const i=t0(n),a=new AbortController,u={passive:!0,...s,signal:a.signal};return[i,u,()=>a.abort()]}function Wf(n){return s=>{s.pointerType==="touch"||Np()||n(s)}}function n0(n,s,i={}){const[a,u,f]=Pp(n,i),d=Wf(h=>{const{target:m}=h,y=s(h);if(typeof y!="function"||!m)return;const v=Wf(x=>{y(x),m.removeEventListener("pointerleave",v)});m.addEventListener("pointerleave",v,u)});return a.forEach(h=>{h.addEventListener("pointerenter",d,u)}),f}const Ep=(n,s)=>s?n===s?!0:Ep(n,s.parentElement):!1,hu=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,r0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function s0(n){return r0.has(n.tagName)||n.tabIndex!==-1}const fs=new WeakSet;function Hf(n){return s=>{s.key==="Enter"&&n(s)}}function hl(n,s){n.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const i0=(n,s)=>{const i=n.currentTarget;if(!i)return;const a=Hf(()=>{if(fs.has(i))return;hl(i,"down");const u=Hf(()=>{hl(i,"up")}),f=()=>hl(i,"cancel");i.addEventListener("keyup",u,s),i.addEventListener("blur",f,s)});i.addEventListener("keydown",a,s),i.addEventListener("blur",()=>i.removeEventListener("keydown",a),s)};function Kf(n){return hu(n)&&!Np()}function o0(n,s,i={}){const[a,u,f]=Pp(n,i),d=h=>{const m=h.currentTarget;if(!Kf(h)||fs.has(m))return;fs.add(m);const y=s(h),v=(C,E)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",k),!(!Kf(C)||!fs.has(m))&&(fs.delete(m),typeof y=="function"&&y(C,{success:E}))},x=C=>{v(C,i.useGlobalTarget||Ep(m,C.target))},k=C=>{v(C,!1)};window.addEventListener("pointerup",x,u),window.addEventListener("pointercancel",k,u)};return a.forEach(h=>{!s0(h)&&h.getAttribute("tabindex")===null&&(h.tabIndex=0),(i.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),h.addEventListener("focus",y=>i0(y,u),u)}),f}function a0(n){return n==="x"||n==="y"?_t[n]?null:(_t[n]=!0,()=>{_t[n]=!1}):_t.x||_t.y?null:(_t.x=_t.y=!0,()=>{_t.x=_t.y=!1})}const Mp=new Set(["width","height","top","left","right","bottom",...kr]);let Qi;function l0(){Qi=void 0}const zt={now:()=>(Qi===void 0&&zt.set(Ke.isProcessing||Jg.useManualTiming?Ke.timestamp:performance.now()),Qi),set:n=>{Qi=n,queueMicrotask(l0)}};function pu(n,s){n.indexOf(s)===-1&&n.push(s)}function mu(n,s){const i=n.indexOf(s);i>-1&&n.splice(i,1)}class yu{constructor(){this.subscriptions=[]}add(s){return pu(this.subscriptions,s),()=>mu(this.subscriptions,s)}notify(s,i,a){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](s,i,a);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(s,i,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Rp(n,s){return s?n*(1e3/s):0}const Gf=30,u0=n=>!isNaN(parseFloat(n));class c0{constructor(s,i={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,u=!0)=>{const f=zt.now();this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(s),this.owner=i.owner}setCurrent(s){this.current=s,this.updatedAt=zt.now(),this.canTrackVelocity===null&&s!==void 0&&(this.canTrackVelocity=u0(this.current))}setPrevFrameValue(s=this.current){this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt}onChange(s){return this.on("change",s)}on(s,i){this.events[s]||(this.events[s]=new yu);const a=this.events[s].add(i);return s==="change"?()=>{a(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const s in this.events)this.events[s].clear()}attach(s,i){this.passiveEffect=s,this.stopPassiveEffect=i}set(s,i=!0){!i||!this.passiveEffect?this.updateAndNotify(s,i):this.passiveEffect(s,this.updateAndNotify)}setWithVelocity(s,i,a){this.set(i),this.prev=void 0,this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt-a}jump(s,i=!0){this.updateAndNotify(s),this.prev=s,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const s=zt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||s-this.updatedAt>Gf)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,Gf);return Rp(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(s){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=s(i),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 Ss(n,s){return new c0(n,s)}function d0(n,s,i){n.hasValue(s)?n.getValue(s).set(i):n.addValue(s,Ss(i))}function f0(n,s){const i=fo(n,s);let{transitionEnd:a={},transition:u={},...f}=i||{};f={...f,...a};for(const d in f){const h=Cv(f[d]);d0(n,d,h)}}function h0(n){return!!(Ze(n)&&n.add)}function Ml(n,s){const i=n.getValue("willChange");if(h0(i))return i.add(s)}function _p(n){return n.props[ap]}const Ap=(n,s,i)=>(((1-3*i+3*s)*n+(3*i-6*s))*n+3*s)*n,p0=1e-7,m0=12;function y0(n,s,i,a,u){let f,d,h=0;do d=s+(i-s)/2,f=Ap(d,a,u)-n,f>0?i=d:s=d;while(Math.abs(f)>p0&&++h<m0);return d}function Ps(n,s,i,a){if(n===s&&i===a)return ht;const u=f=>y0(f,0,1,n,i);return f=>f===0||f===1?f:Ap(u(f),s,a)}const Lp=n=>s=>s<=.5?n(2*s)/2:(2-n(2*(1-s)))/2,Dp=n=>s=>1-n(1-s),Vp=Ps(.33,1.53,.69,.99),gu=Dp(Vp),Op=Lp(gu),Fp=n=>(n*=2)<1?.5*gu(n):.5*(2-Math.pow(2,-10*(n-1))),vu=n=>1-Math.sin(Math.acos(n)),zp=Dp(vu),Ip=Lp(vu),bp=n=>/^0[^.\s]+$/u.test(n);function g0(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||bp(n):!0}const ps=n=>Math.round(n*1e5)/1e5,xu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function v0(n){return n==null}const x0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wu=(n,s)=>i=>!!(typeof i=="string"&&x0.test(i)&&i.startsWith(n)||s&&!v0(i)&&Object.prototype.hasOwnProperty.call(i,s)),Bp=(n,s,i)=>a=>{if(typeof a!="string")return a;const[u,f,d,h]=a.match(xu);return{[n]:parseFloat(u),[s]:parseFloat(f),[i]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},w0=n=>qt(0,255,n),pl={...Sr,transform:n=>Math.round(w0(n))},On={test:wu("rgb","red"),parse:Bp("red","green","blue"),transform:({red:n,green:s,blue:i,alpha:a=1})=>"rgba("+pl.transform(n)+", "+pl.transform(s)+", "+pl.transform(i)+", "+ps(ks.transform(a))+")"};function k0(n){let s="",i="",a="",u="";return n.length>5?(s=n.substring(1,3),i=n.substring(3,5),a=n.substring(5,7),u=n.substring(7,9)):(s=n.substring(1,2),i=n.substring(2,3),a=n.substring(3,4),u=n.substring(4,5),s+=s,i+=i,a+=a,u+=u),{red:parseInt(s,16),green:parseInt(i,16),blue:parseInt(a,16),alpha:u?parseInt(u,16)/255:1}}const Rl={test:wu("#"),parse:k0,transform:On.transform},fr={test:wu("hsl","hue"),parse:Bp("hue","saturation","lightness"),transform:({hue:n,saturation:s,lightness:i,alpha:a=1})=>"hsla("+Math.round(n)+", "+Ft.transform(ps(s))+", "+Ft.transform(ps(i))+", "+ps(ks.transform(a))+")"},Xe={test:n=>On.test(n)||Rl.test(n)||fr.test(n),parse:n=>On.test(n)?On.parse(n):fr.test(n)?fr.parse(n):Rl.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?On.transform(n):fr.transform(n)},S0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function j0(n){var s,i;return isNaN(n)&&typeof n=="string"&&(((s=n.match(xu))===null||s===void 0?void 0:s.length)||0)+(((i=n.match(S0))===null||i===void 0?void 0:i.length)||0)>0}const Up="number",$p="color",C0="var",T0="var(",Qf="${}",N0=/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 js(n){const s=n.toString(),i=[],a={color:[],number:[],var:[]},u=[];let f=0;const h=s.replace(N0,m=>(Xe.test(m)?(a.color.push(f),u.push($p),i.push(Xe.parse(m))):m.startsWith(T0)?(a.var.push(f),u.push(C0),i.push(m)):(a.number.push(f),u.push(Up),i.push(parseFloat(m))),++f,Qf)).split(Qf);return{values:i,split:h,indexes:a,types:u}}function Wp(n){return js(n).values}function Hp(n){const{split:s,types:i}=js(n),a=s.length;return u=>{let f="";for(let d=0;d<a;d++)if(f+=s[d],u[d]!==void 0){const h=i[d];h===Up?f+=ps(u[d]):h===$p?f+=Xe.transform(u[d]):f+=u[d]}return f}}const P0=n=>typeof n=="number"?0:n;function E0(n){const s=Wp(n);return Hp(n)(s.map(P0))}const vn={test:j0,parse:Wp,createTransformer:Hp,getAnimatableNone:E0},M0=new Set(["brightness","contrast","saturate","opacity"]);function R0(n){const[s,i]=n.slice(0,-1).split("(");if(s==="drop-shadow")return n;const[a]=i.match(xu)||[];if(!a)return n;const u=i.replace(a,"");let f=M0.has(s)?1:0;return a!==i&&(f*=100),s+"("+f+u+")"}const _0=/\b([a-z-]*)\(.*?\)/gu,_l={...vn,getAnimatableNone:n=>{const s=n.match(_0);return s?s.map(R0).join(" "):n}},A0={...su,color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:_l,WebkitFilter:_l},ku=n=>A0[n];function Kp(n,s){let i=ku(n);return i!==_l&&(i=vn),i.getAnimatableNone?i.getAnimatableNone(s):void 0}const L0=new Set(["auto","none","0"]);function D0(n,s,i){let a=0,u;for(;a<n.length&&!u;){const f=n[a];typeof f=="string"&&!L0.has(f)&&js(f).values.length&&(u=n[a]),a++}if(u&&i)for(const f of s)n[f]=Kp(i,u)}const qf=n=>n===Sr||n===ie,Yf=(n,s)=>parseFloat(n.split(", ")[s]),Xf=(n,s)=>(i,{transform:a})=>{if(a==="none"||!a)return 0;const u=a.match(/^matrix3d\((.+)\)$/u);if(u)return Yf(u[1],s);{const f=a.match(/^matrix\((.+)\)$/u);return f?Yf(f[1],n):0}},V0=new Set(["x","y","z"]),O0=kr.filter(n=>!V0.has(n));function F0(n){const s=[];return O0.forEach(i=>{const a=n.getValue(i);a!==void 0&&(s.push([i,a.get()]),a.set(i.startsWith("scale")?1:0))}),s}const wr={width:({x:n},{paddingLeft:s="0",paddingRight:i="0"})=>n.max-n.min-parseFloat(s)-parseFloat(i),height:({y:n},{paddingTop:s="0",paddingBottom:i="0"})=>n.max-n.min-parseFloat(s)-parseFloat(i),top:(n,{top:s})=>parseFloat(s),left:(n,{left:s})=>parseFloat(s),bottom:({y:n},{top:s})=>parseFloat(s)+(n.max-n.min),right:({x:n},{left:s})=>parseFloat(s)+(n.max-n.min),x:Xf(4,13),y:Xf(5,14)};wr.translateX=wr.x;wr.translateY=wr.y;const Fn=new Set;let Al=!1,Ll=!1;function Gp(){if(Ll){const n=Array.from(Fn).filter(a=>a.needsMeasurement),s=new Set(n.map(a=>a.element)),i=new Map;s.forEach(a=>{const u=F0(a);u.length&&(i.set(a,u),a.render())}),n.forEach(a=>a.measureInitialState()),s.forEach(a=>{a.render();const u=i.get(a);u&&u.forEach(([f,d])=>{var h;(h=a.getValue(f))===null||h===void 0||h.set(d)})}),n.forEach(a=>a.measureEndState()),n.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Ll=!1,Al=!1,Fn.forEach(n=>n.complete()),Fn.clear()}function Qp(){Fn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Ll=!0)})}function z0(){Qp(),Gp()}class Su{constructor(s,i,a,u,f,d=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...s],this.onComplete=i,this.name=a,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fn.add(this),Al||(Al=!0,Se.read(Qp),Se.resolveKeyframes(Gp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:i,element:a,motionValue:u}=this;for(let f=0;f<s.length;f++)if(s[f]===null)if(f===0){const d=u==null?void 0:u.get(),h=s[s.length-1];if(d!==void 0)s[0]=d;else if(a&&i){const m=a.readValue(i,h);m!=null&&(s[0]=m)}s[0]===void 0&&(s[0]=h),u&&d===void 0&&u.set(s[0])}else s[f]=s[f-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Fn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Fn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const qp=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),I0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function b0(n){const s=I0.exec(n);if(!s)return[,];const[,i,a,u]=s;return[`--${i??a}`,u]}function Yp(n,s,i=1){const[a,u]=b0(n);if(!a)return;const f=window.getComputedStyle(s).getPropertyValue(a);if(f){const d=f.trim();return qp(d)?parseFloat(d):d}return ru(u)?Yp(u,s,i+1):u}const Xp=n=>s=>s.test(n),B0={test:n=>n==="auto",parse:n=>n},Zp=[Sr,ie,Ft,yn,Rv,Mv,B0],Zf=n=>Zp.find(Xp(n));class Jp extends Su{constructor(s,i,a,u,f){super(s,i,a,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:s,element:i,name:a}=this;if(!i||!i.current)return;super.readKeyframes();for(let m=0;m<s.length;m++){let y=s[m];if(typeof y=="string"&&(y=y.trim(),ru(y))){const v=Yp(y,i.current);v!==void 0&&(s[m]=v),m===s.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!Mp.has(a)||s.length!==2)return;const[u,f]=s,d=Zf(u),h=Zf(f);if(d!==h)if(qf(d)&&qf(h))for(let m=0;m<s.length;m++){const y=s[m];typeof y=="string"&&(s[m]=parseFloat(y))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:s,name:i}=this,a=[];for(let u=0;u<s.length;u++)g0(s[u])&&a.push(u);a.length&&D0(s,a,i)}measureInitialState(){const{element:s,unresolvedKeyframes:i,name:a}=this;if(!s||!s.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wr[a](s.measureViewportBox(),window.getComputedStyle(s.current)),i[0]=this.measuredOrigin;const u=i[i.length-1];u!==void 0&&s.getValue(a,u).jump(u,!1)}measureEndState(){var s;const{element:i,name:a,unresolvedKeyframes:u}=this;if(!i||!i.current)return;const f=i.getValue(a);f&&f.jump(this.measuredOrigin,!1);const d=u.length-1,h=u[d];u[d]=wr[a](i.measureViewportBox(),window.getComputedStyle(i.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),!((s=this.removedTransforms)===null||s===void 0)&&s.length&&this.removedTransforms.forEach(([m,y])=>{i.getValue(m).set(y)}),this.resolveNoneKeyframes()}}const Jf=(n,s)=>s==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(vn.test(n)||n==="0")&&!n.startsWith("url("));function U0(n){const s=n[0];if(n.length===1)return!0;for(let i=0;i<n.length;i++)if(n[i]!==s)return!0}function $0(n,s,i,a){const u=n[0];if(u===null)return!1;if(s==="display"||s==="visibility")return!0;const f=n[n.length-1],d=Jf(u,s),h=Jf(f,s);return!d||!h?!1:U0(n)||(i==="spring"||du(i))&&a}const W0=n=>n!==null;function ho(n,{repeat:s,repeatType:i="loop"},a){const u=n.filter(W0),f=s&&i!=="loop"&&s%2===1?0:u.length-1;return!f||a===void 0?u[f]:a}const H0=40;class em{constructor({autoplay:s=!0,delay:i=0,type:a="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",...h}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=zt.now(),this.options={autoplay:s,delay:i,type:a,repeat:u,repeatDelay:f,repeatType:d,...h},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>H0?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&z0(),this._resolved}onKeyframesResolved(s,i){this.resolvedAt=zt.now(),this.hasAttemptedResolve=!0;const{name:a,type:u,velocity:f,delay:d,onComplete:h,onUpdate:m,isGenerator:y}=this.options;if(!y&&!$0(s,a,u,f))if(d)this.options.duration=0;else{m&&m(ho(s,this.options,i)),h&&h(),this.resolveFinishedPromise();return}const v=this.initPlayback(s,i);v!==!1&&(this._resolved={keyframes:s,finalKeyframe:i,...v},this.onPostResolved())}onPostResolved(){}then(s,i){return this.currentFinishedPromise.then(s,i)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(s=>{this.resolveFinishedPromise=s})}}const Me=(n,s,i)=>n+(s-n)*i;function ml(n,s,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?n+(s-n)*6*i:i<1/2?s:i<2/3?n+(s-n)*(2/3-i)*6:n}function K0({hue:n,saturation:s,lightness:i,alpha:a}){n/=360,s/=100,i/=100;let u=0,f=0,d=0;if(!s)u=f=d=i;else{const h=i<.5?i*(1+s):i+s-i*s,m=2*i-h;u=ml(m,h,n+1/3),f=ml(m,h,n),d=ml(m,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:a}}function to(n,s){return i=>i>0?s:n}const yl=(n,s,i)=>{const a=n*n,u=i*(s*s-a)+a;return u<0?0:Math.sqrt(u)},G0=[Rl,On,fr],Q0=n=>G0.find(s=>s.test(n));function eh(n){const s=Q0(n);if(!s)return!1;let i=s.parse(n);return s===fr&&(i=K0(i)),i}const th=(n,s)=>{const i=eh(n),a=eh(s);if(!i||!a)return to(n,s);const u={...i};return f=>(u.red=yl(i.red,a.red,f),u.green=yl(i.green,a.green,f),u.blue=yl(i.blue,a.blue,f),u.alpha=Me(i.alpha,a.alpha,f),On.transform(u))},q0=(n,s)=>i=>s(n(i)),Es=(...n)=>n.reduce(q0),Dl=new Set(["none","hidden"]);function Y0(n,s){return Dl.has(n)?i=>i<=0?n:s:i=>i>=1?s:n}function X0(n,s){return i=>Me(n,s,i)}function ju(n){return typeof n=="number"?X0:typeof n=="string"?ru(n)?to:Xe.test(n)?th:ex:Array.isArray(n)?tm:typeof n=="object"?Xe.test(n)?th:Z0:to}function tm(n,s){const i=[...n],a=i.length,u=n.map((f,d)=>ju(f)(f,s[d]));return f=>{for(let d=0;d<a;d++)i[d]=u[d](f);return i}}function Z0(n,s){const i={...n,...s},a={};for(const u in i)n[u]!==void 0&&s[u]!==void 0&&(a[u]=ju(n[u])(n[u],s[u]));return u=>{for(const f in a)i[f]=a[f](u);return i}}function J0(n,s){var i;const a=[],u={color:0,var:0,number:0};for(let f=0;f<s.values.length;f++){const d=s.types[f],h=n.indexes[d][u[d]],m=(i=n.values[h])!==null&&i!==void 0?i:0;a[f]=m,u[d]++}return a}const ex=(n,s)=>{const i=vn.createTransformer(s),a=js(n),u=js(s);return a.indexes.var.length===u.indexes.var.length&&a.indexes.color.length===u.indexes.color.length&&a.indexes.number.length>=u.indexes.number.length?Dl.has(n)&&!u.values.length||Dl.has(s)&&!a.values.length?Y0(n,s):Es(tm(J0(a,u),u.values),i):to(n,s)};function nm(n,s,i){return typeof n=="number"&&typeof s=="number"&&typeof i=="number"?Me(n,s,i):ju(n)(n,s)}const tx=5;function rm(n,s,i){const a=Math.max(s-tx,0);return Rp(i-n(a),s-a)}const Ae={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},gl=.001;function nx({duration:n=Ae.duration,bounce:s=Ae.bounce,velocity:i=Ae.velocity,mass:a=Ae.mass}){let u,f,d=1-s;d=qt(Ae.minDamping,Ae.maxDamping,d),n=qt(Ae.minDuration,Ae.maxDuration,Qt(n)),d<1?(u=y=>{const v=y*d,x=v*n,k=v-i,C=Vl(y,d),E=Math.exp(-x);return gl-k/C*E},f=y=>{const x=y*d*n,k=x*i+i,C=Math.pow(d,2)*Math.pow(y,2)*n,E=Math.exp(-x),R=Vl(Math.pow(y,2),d);return(-u(y)+gl>0?-1:1)*((k-C)*E)/R}):(u=y=>{const v=Math.exp(-y*n),x=(y-i)*n+1;return-gl+v*x},f=y=>{const v=Math.exp(-y*n),x=(i-y)*(n*n);return v*x});const h=5/n,m=sx(u,f,h);if(n=Gt(n),isNaN(m))return{stiffness:Ae.stiffness,damping:Ae.damping,duration:n};{const y=Math.pow(m,2)*a;return{stiffness:y,damping:d*2*Math.sqrt(a*y),duration:n}}}const rx=12;function sx(n,s,i){let a=i;for(let u=1;u<rx;u++)a=a-n(a)/s(a);return a}function Vl(n,s){return n*Math.sqrt(1-s*s)}const ix=["duration","bounce"],ox=["stiffness","damping","mass"];function nh(n,s){return s.some(i=>n[i]!==void 0)}function ax(n){let s={velocity:Ae.velocity,stiffness:Ae.stiffness,damping:Ae.damping,mass:Ae.mass,isResolvedFromDuration:!1,...n};if(!nh(n,ox)&&nh(n,ix))if(n.visualDuration){const i=n.visualDuration,a=2*Math.PI/(i*1.2),u=a*a,f=2*qt(.05,1,1-(n.bounce||0))*Math.sqrt(u);s={...s,mass:Ae.mass,stiffness:u,damping:f}}else{const i=nx(n);s={...s,...i,mass:Ae.mass},s.isResolvedFromDuration=!0}return s}function sm(n=Ae.visualDuration,s=Ae.bounce){const i=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:s}:n;let{restSpeed:a,restDelta:u}=i;const f=i.keyframes[0],d=i.keyframes[i.keyframes.length-1],h={done:!1,value:f},{stiffness:m,damping:y,mass:v,duration:x,velocity:k,isResolvedFromDuration:C}=ax({...i,velocity:-Qt(i.velocity||0)}),E=k||0,R=y/(2*Math.sqrt(m*v)),_=d-f,L=Qt(Math.sqrt(m/v)),z=Math.abs(_)<5;a||(a=z?Ae.restSpeed.granular:Ae.restSpeed.default),u||(u=z?Ae.restDelta.granular:Ae.restDelta.default);let $;if(R<1){const U=Vl(L,R);$=Z=>{const G=Math.exp(-R*L*Z);return d-G*((E+R*L*_)/U*Math.sin(U*Z)+_*Math.cos(U*Z))}}else if(R===1)$=U=>d-Math.exp(-L*U)*(_+(E+L*_)*U);else{const U=L*Math.sqrt(R*R-1);$=Z=>{const G=Math.exp(-R*L*Z),B=Math.min(U*Z,300);return d-G*((E+R*L*_)*Math.sinh(B)+U*_*Math.cosh(B))/U}}const K={calculatedDuration:C&&x||null,next:U=>{const Z=$(U);if(C)h.done=U>=x;else{let G=0;R<1&&(G=U===0?Gt(E):rm($,U,Z));const B=Math.abs(G)<=a,J=Math.abs(d-Z)<=u;h.done=B&&J}return h.value=h.done?d:Z,h},toString:()=>{const U=Math.min(Sp(K),Pl),Z=jp(G=>K.next(U*G).value,U,30);return U+"ms "+Z}};return K}function rh({keyframes:n,velocity:s=0,power:i=.8,timeConstant:a=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:m,restDelta:y=.5,restSpeed:v}){const x=n[0],k={done:!1,value:x},C=B=>h!==void 0&&B<h||m!==void 0&&B>m,E=B=>h===void 0?m:m===void 0||Math.abs(h-B)<Math.abs(m-B)?h:m;let R=i*s;const _=x+R,L=d===void 0?_:d(_);L!==_&&(R=L-x);const z=B=>-R*Math.exp(-B/a),$=B=>L+z(B),K=B=>{const J=z(B),se=$(B);k.done=Math.abs(J)<=y,k.value=k.done?L:se};let U,Z;const G=B=>{C(k.value)&&(U=B,Z=sm({keyframes:[k.value,E(k.value)],velocity:rm($,B,k.value),damping:u,stiffness:f,restDelta:y,restSpeed:v}))};return G(0),{calculatedDuration:null,next:B=>{let J=!1;return!Z&&U===void 0&&(J=!0,K(B),G(B)),U!==void 0&&B>=U?Z.next(B-U):(!J&&K(B),k)}}}const lx=Ps(.42,0,1,1),ux=Ps(0,0,.58,1),im=Ps(.42,0,.58,1),cx=n=>Array.isArray(n)&&typeof n[0]!="number",dx={linear:ht,easeIn:lx,easeInOut:im,easeOut:ux,circIn:vu,circInOut:Ip,circOut:zp,backIn:gu,backInOut:Op,backOut:Vp,anticipate:Fp},sh=n=>{if(fu(n)){tp(n.length===4);const[s,i,a,u]=n;return Ps(s,i,a,u)}else if(typeof n=="string")return dx[n];return n};function fx(n,s,i){const a=[],u=i||nm,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(s){const m=Array.isArray(s)?s[d]||ht:s;h=Es(m,h)}a.push(h)}return a}function hx(n,s,{clamp:i=!0,ease:a,mixer:u}={}){const f=n.length;if(tp(f===s.length),f===1)return()=>s[0];if(f===2&&s[0]===s[1])return()=>s[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),s=[...s].reverse());const h=fx(s,a,u),m=h.length,y=v=>{if(d&&v<n[0])return s[0];let x=0;if(m>1)for(;x<n.length-2&&!(v<n[x+1]);x++);const k=vr(n[x],n[x+1],v);return h[x](k)};return i?v=>y(qt(n[0],n[f-1],v)):y}function px(n,s){const i=n[n.length-1];for(let a=1;a<=s;a++){const u=vr(0,s,a);n.push(Me(i,1,u))}}function mx(n){const s=[0];return px(s,n.length-1),s}function yx(n,s){return n.map(i=>i*s)}function gx(n,s){return n.map(()=>s||im).splice(0,n.length-1)}function no({duration:n=300,keyframes:s,times:i,ease:a="easeInOut"}){const u=cx(a)?a.map(sh):sh(a),f={done:!1,value:s[0]},d=yx(i&&i.length===s.length?i:mx(s),n),h=hx(d,s,{ease:Array.isArray(u)?u:gx(s,u)});return{calculatedDuration:n,next:m=>(f.value=h(m),f.done=m>=n,f)}}const vx=n=>{const s=({timestamp:i})=>n(i);return{start:()=>Se.update(s,!0),stop:()=>gn(s),now:()=>Ke.isProcessing?Ke.timestamp:zt.now()}},xx={decay:rh,inertia:rh,tween:no,keyframes:no,spring:sm},wx=n=>n/100;class Cu extends em{constructor(s){super(s),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:m}=this.options;m&&m()};const{name:i,motionValue:a,element:u,keyframes:f}=this.options,d=(u==null?void 0:u.KeyframeResolver)||Su,h=(m,y)=>this.onKeyframesResolved(m,y);this.resolver=new d(f,h,i,a,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(s){const{type:i="keyframes",repeat:a=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=this.options,h=du(i)?i:xx[i]||no;let m,y;h!==no&&typeof s[0]!="number"&&(m=Es(wx,nm(s[0],s[1])),s=[0,100]);const v=h({...this.options,keyframes:s});f==="mirror"&&(y=h({...this.options,keyframes:[...s].reverse(),velocity:-d})),v.calculatedDuration===null&&(v.calculatedDuration=Sp(v));const{calculatedDuration:x}=v,k=x+u,C=k*(a+1)-u;return{generator:v,mirroredGenerator:y,mapPercentToKeyframes:m,calculatedDuration:x,resolvedDuration:k,totalDuration:C}}onPostResolved(){const{autoplay:s=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!s?this.pause():this.state=this.pendingPlayState}tick(s,i=!1){const{resolved:a}=this;if(!a){const{keyframes:B}=this.options;return{done:!0,value:B[B.length-1]}}const{finalKeyframe:u,generator:f,mirroredGenerator:d,mapPercentToKeyframes:h,keyframes:m,calculatedDuration:y,totalDuration:v,resolvedDuration:x}=a;if(this.startTime===null)return f.next(0);const{delay:k,repeat:C,repeatType:E,repeatDelay:R,onUpdate:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-v/this.speed,this.startTime)),i?this.currentTime=s:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(s-this.startTime)*this.speed;const L=this.currentTime-k*(this.speed>=0?1:-1),z=this.speed>=0?L<0:L>v;this.currentTime=Math.max(L,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let $=this.currentTime,K=f;if(C){const B=Math.min(this.currentTime,v)/x;let J=Math.floor(B),se=B%1;!se&&B>=1&&(se=1),se===1&&J--,J=Math.min(J,C+1),!!(J%2)&&(E==="reverse"?(se=1-se,R&&(se-=R/x)):E==="mirror"&&(K=d)),$=qt(0,1,se)*x}const U=z?{done:!1,value:m[0]}:K.next($);h&&(U.value=h(U.value));let{done:Z}=U;!z&&y!==null&&(Z=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const G=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return G&&u!==void 0&&(U.value=ho(m,this.options,u)),_&&_(U.value),G&&this.finish(),U}get duration(){const{resolved:s}=this;return s?Qt(s.calculatedDuration):0}get time(){return Qt(this.currentTime)}set time(s){s=Gt(s),this.currentTime=s,this.holdTime!==null||this.speed===0?this.holdTime=s:this.driver&&(this.startTime=this.driver.now()-s/this.speed)}get speed(){return this.playbackSpeed}set speed(s){const i=this.playbackSpeed!==s;this.playbackSpeed=s,i&&(this.time=Qt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:s=vx,onPlay:i,startTime:a}=this.options;this.driver||(this.driver=s(f=>this.tick(f))),i&&i();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var s;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(s=this.currentTime)!==null&&s!==void 0?s:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:s}=this.options;s&&s()}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(s){return this.startTime=0,this.tick(s,!0)}}const kx=new Set(["opacity","clipPath","filter","transform"]);function Sx(n,s,i,{delay:a=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeInOut",times:m}={}){const y={[s]:i};m&&(y.offset=m);const v=Tp(h,u);return Array.isArray(v)&&(y.easing=v),n.animate(y,{delay:a,duration:u,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"})}const jx=Yl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ro=10,Cx=2e4;function Tx(n){return du(n.type)||n.type==="spring"||!Cp(n.ease)}function Nx(n,s){const i=new Cu({...s,keyframes:n,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:n[0]};const u=[];let f=0;for(;!a.done&&f<Cx;)a=i.sample(f),u.push(a.value),f+=ro;return{times:void 0,keyframes:u,duration:f-ro,ease:"linear"}}const om={anticipate:Fp,backInOut:Op,circInOut:Ip};function Px(n){return n in om}class ih extends em{constructor(s){super(s);const{name:i,motionValue:a,element:u,keyframes:f}=this.options;this.resolver=new Jp(f,(d,h)=>this.onKeyframesResolved(d,h),i,a,u),this.resolver.scheduleResolve()}initPlayback(s,i){let{duration:a=300,times:u,ease:f,type:d,motionValue:h,name:m,startTime:y}=this.options;if(!h.owner||!h.owner.current)return!1;if(typeof f=="string"&&eo()&&Px(f)&&(f=om[f]),Tx(this.options)){const{onComplete:x,onUpdate:k,motionValue:C,element:E,...R}=this.options,_=Nx(s,R);s=_.keyframes,s.length===1&&(s[1]=s[0]),a=_.duration,u=_.times,f=_.ease,d="keyframes"}const v=Sx(h.owner.current,m,s,{...this.options,duration:a,times:u,ease:f});return v.startTime=y??this.calcStartTime(),this.pendingTimeline?($f(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:x}=this.options;h.set(ho(s,this.options,i)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:a,times:u,type:d,ease:f,keyframes:s}}get duration(){const{resolved:s}=this;if(!s)return 0;const{duration:i}=s;return Qt(i)}get time(){const{resolved:s}=this;if(!s)return 0;const{animation:i}=s;return Qt(i.currentTime||0)}set time(s){const{resolved:i}=this;if(!i)return;const{animation:a}=i;a.currentTime=Gt(s)}get speed(){const{resolved:s}=this;if(!s)return 1;const{animation:i}=s;return i.playbackRate}set speed(s){const{resolved:i}=this;if(!i)return;const{animation:a}=i;a.playbackRate=s}get state(){const{resolved:s}=this;if(!s)return"idle";const{animation:i}=s;return i.playState}get startTime(){const{resolved:s}=this;if(!s)return null;const{animation:i}=s;return i.startTime}attachTimeline(s){if(!this._resolved)this.pendingTimeline=s;else{const{resolved:i}=this;if(!i)return ht;const{animation:a}=i;$f(a,s)}return ht}play(){if(this.isStopped)return;const{resolved:s}=this;if(!s)return;const{animation:i}=s;i.playState==="finished"&&this.updateFinishedPromise(),i.play()}pause(){const{resolved:s}=this;if(!s)return;const{animation:i}=s;i.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:s}=this;if(!s)return;const{animation:i,keyframes:a,duration:u,type:f,ease:d,times:h}=s;if(i.playState==="idle"||i.playState==="finished")return;if(this.time){const{motionValue:y,onUpdate:v,onComplete:x,element:k,...C}=this.options,E=new Cu({...C,keyframes:a,duration:u,type:f,ease:d,times:h,isGenerator:!0}),R=Gt(this.time);y.setWithVelocity(E.sample(R-ro).value,E.sample(R).value,ro)}const{onStop:m}=this.options;m&&m(),this.cancel()}complete(){const{resolved:s}=this;s&&s.animation.finish()}cancel(){const{resolved:s}=this;s&&s.animation.cancel()}static supports(s){const{motionValue:i,name:a,repeatDelay:u,repeatType:f,damping:d,type:h}=s;if(!i||!i.owner||!(i.owner.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:y}=i.owner.getProps();return jx()&&a&&kx.has(a)&&!m&&!y&&!u&&f!=="mirror"&&d!==0&&h!=="inertia"}}const Ex={type:"spring",stiffness:500,damping:25,restSpeed:10},Mx=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),Rx={type:"keyframes",duration:.8},_x={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ax=(n,{keyframes:s})=>s.length>2?Rx:In.has(n)?n.startsWith("scale")?Mx(s[1]):Ex:_x;function Lx({when:n,delay:s,delayChildren:i,staggerChildren:a,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:h,from:m,elapsed:y,...v}){return!!Object.keys(v).length}const Tu=(n,s,i,a={},u,f)=>d=>{const h=cu(a,n)||{},m=h.delay||a.delay||0;let{elapsed:y=0}=a;y=y-Gt(m);let v={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:s.getVelocity(),...h,delay:-y,onUpdate:k=>{s.set(k),h.onUpdate&&h.onUpdate(k)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:s,element:f?void 0:u};Lx(h)||(v={...v,...Ax(n,v)}),v.duration&&(v.duration=Gt(v.duration)),v.repeatDelay&&(v.repeatDelay=Gt(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(x=!0)),x&&!f&&s.get()!==void 0){const k=ho(v.keyframes,h);if(k!==void 0)return Se.update(()=>{v.onUpdate(k),v.onComplete()}),new Zv([])}return!f&&ih.supports(v)?new ih(v):new Cu(v)};function Dx({protectedKeys:n,needsAnimating:s},i){const a=n.hasOwnProperty(i)&&s[i]!==!0;return s[i]=!1,a}function am(n,s,{delay:i=0,transitionOverride:a,type:u}={}){var f;let{transition:d=n.getDefaultTransition(),transitionEnd:h,...m}=s;a&&(d=a);const y=[],v=u&&n.animationState&&n.animationState.getState()[u];for(const x in m){const k=n.getValue(x,(f=n.latestValues[x])!==null&&f!==void 0?f:null),C=m[x];if(C===void 0||v&&Dx(v,x))continue;const E={delay:i,...cu(d||{},x)};let R=!1;if(window.MotionHandoffAnimation){const L=_p(n);if(L){const z=window.MotionHandoffAnimation(L,x,Se);z!==null&&(E.startTime=z,R=!0)}}Ml(n,x),k.start(Tu(x,k,C,n.shouldReduceMotion&&Mp.has(x)?{type:!1}:E,n,R));const _=k.animation;_&&y.push(_)}return h&&Promise.all(y).then(()=>{Se.update(()=>{h&&f0(n,h)})}),y}function Ol(n,s,i={}){var a;const u=fo(n,s,i.type==="exit"?(a=n.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:f=n.getDefaultTransition()||{}}=u||{};i.transitionOverride&&(f=i.transitionOverride);const d=u?()=>Promise.all(am(n,u,i)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:v=0,staggerChildren:x,staggerDirection:k}=f;return Vx(n,s,v+y,x,k,i)}:()=>Promise.resolve(),{when:m}=f;if(m){const[y,v]=m==="beforeChildren"?[d,h]:[h,d];return y().then(()=>v())}else return Promise.all([d(),h(i.delay)])}function Vx(n,s,i=0,a=0,u=1,f){const d=[],h=(n.variantChildren.size-1)*a,m=u===1?(y=0)=>y*a:(y=0)=>h-y*a;return Array.from(n.variantChildren).sort(Ox).forEach((y,v)=>{y.notify("AnimationStart",s),d.push(Ol(y,s,{...f,delay:i+m(v)}).then(()=>y.notify("AnimationComplete",s)))}),Promise.all(d)}function Ox(n,s){return n.sortNodePosition(s)}function Fx(n,s,i={}){n.notify("AnimationStart",s);let a;if(Array.isArray(s)){const u=s.map(f=>Ol(n,f,i));a=Promise.all(u)}else if(typeof s=="string")a=Ol(n,s,i);else{const u=typeof s=="function"?fo(n,s,i.custom):s;a=Promise.all(am(n,u,i))}return a.then(()=>{n.notify("AnimationComplete",s)})}const zx=Zl.length;function lm(n){if(!n)return;if(!n.isControllingVariants){const i=n.parent?lm(n.parent)||{}:{};return n.props.initial!==void 0&&(i.initial=n.props.initial),i}const s={};for(let i=0;i<zx;i++){const a=Zl[i],u=n.props[a];(ws(u)||u===!1)&&(s[a]=u)}return s}const Ix=[...Xl].reverse(),bx=Xl.length;function Bx(n){return s=>Promise.all(s.map(({animation:i,options:a})=>Fx(n,i,a)))}function Ux(n){let s=Bx(n),i=oh(),a=!0;const u=m=>(y,v)=>{var x;const k=fo(n,v,m==="exit"?(x=n.presenceContext)===null||x===void 0?void 0:x.custom:void 0);if(k){const{transition:C,transitionEnd:E,...R}=k;y={...y,...R,...E}}return y};function f(m){s=m(n)}function d(m){const{props:y}=n,v=lm(n.parent)||{},x=[],k=new Set;let C={},E=1/0;for(let _=0;_<bx;_++){const L=Ix[_],z=i[L],$=y[L]!==void 0?y[L]:v[L],K=ws($),U=L===m?z.isActive:null;U===!1&&(E=_);let Z=$===v[L]&&$!==y[L]&&K;if(Z&&a&&n.manuallyAnimateOnMount&&(Z=!1),z.protectedKeys={...C},!z.isActive&&U===null||!$&&!z.prevProp||uo($)||typeof $=="boolean")continue;const G=$x(z.prevProp,$);let B=G||L===m&&z.isActive&&!Z&&K||_>E&&K,J=!1;const se=Array.isArray($)?$:[$];let ye=se.reduce(u(L),{});U===!1&&(ye={});const{prevResolvedValues:ge={}}=z,Re={...ge,...ye},Fe=le=>{B=!0,k.has(le)&&(J=!0,k.delete(le)),z.needsAnimating[le]=!0;const b=n.getValue(le);b&&(b.liveStyle=!1)};for(const le in Re){const b=ye[le],ee=ge[le];if(C.hasOwnProperty(le))continue;let H=!1;Nl(b)&&Nl(ee)?H=!kp(b,ee):H=b!==ee,H?b!=null?Fe(le):k.add(le):b!==void 0&&k.has(le)?Fe(le):z.protectedKeys[le]=!0}z.prevProp=$,z.prevResolvedValues=ye,z.isActive&&(C={...C,...ye}),a&&n.blockInitialAnimation&&(B=!1),B&&(!(Z&&G)||J)&&x.push(...se.map(le=>({animation:le,options:{type:L}})))}if(k.size){const _={};k.forEach(L=>{const z=n.getBaseTarget(L),$=n.getValue(L);$&&($.liveStyle=!0),_[L]=z??null}),x.push({animation:_})}let R=!!x.length;return a&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(R=!1),a=!1,R?s(x):Promise.resolve()}function h(m,y){var v;if(i[m].isActive===y)return Promise.resolve();(v=n.variantChildren)===null||v===void 0||v.forEach(k=>{var C;return(C=k.animationState)===null||C===void 0?void 0:C.setActive(m,y)}),i[m].isActive=y;const x=d(m);for(const k in i)i[k].protectedKeys={};return x}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>i,reset:()=>{i=oh(),a=!0}}}function $x(n,s){return typeof s=="string"?s!==n:Array.isArray(s)?!kp(s,n):!1}function Ln(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oh(){return{animate:Ln(!0),whileInView:Ln(),whileHover:Ln(),whileTap:Ln(),whileDrag:Ln(),whileFocus:Ln(),exit:Ln()}}class xn{constructor(s){this.isMounted=!1,this.node=s}update(){}}class Wx extends xn{constructor(s){super(s),s.animationState||(s.animationState=Ux(s))}updateAnimationControlsSubscription(){const{animate:s}=this.node.getProps();uo(s)&&(this.unmountControls=s.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:s}=this.node.getProps(),{animate:i}=this.node.prevProps||{};s!==i&&this.updateAnimationControlsSubscription()}unmount(){var s;this.node.animationState.reset(),(s=this.unmountControls)===null||s===void 0||s.call(this)}}let Hx=0;class Kx extends xn{constructor(){super(...arguments),this.id=Hx++}update(){if(!this.node.presenceContext)return;const{isPresent:s,onExitComplete:i}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||s===a)return;const u=this.node.animationState.setActive("exit",!s);i&&!s&&u.then(()=>i(this.id))}mount(){const{register:s}=this.node.presenceContext||{};s&&(this.unmount=s(this.id))}unmount(){}}const Gx={animation:{Feature:Wx},exit:{Feature:Kx}};function Cs(n,s,i,a={passive:!0}){return n.addEventListener(s,i,a),()=>n.removeEventListener(s,i)}function Ms(n){return{point:{x:n.pageX,y:n.pageY}}}const Qx=n=>s=>hu(s)&&n(s,Ms(s));function ms(n,s,i,a){return Cs(n,s,Qx(i),a)}const ah=(n,s)=>Math.abs(n-s);function qx(n,s){const i=ah(n.x,s.x),a=ah(n.y,s.y);return Math.sqrt(i**2+a**2)}class um{constructor(s,i,{transformPagePoint:a,contextWindow:u,dragSnapToOrigin:f=!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 x=xl(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,C=qx(x.offset,{x:0,y:0})>=3;if(!k&&!C)return;const{point:E}=x,{timestamp:R}=Ke;this.history.push({...E,timestamp:R});const{onStart:_,onMove:L}=this.handlers;k||(_&&_(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,x)},this.handlePointerMove=(x,k)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=vl(k,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(x,k)=>{this.end();const{onEnd:C,onSessionEnd:E,resumeAnimation:R}=this.handlers;if(this.dragSnapToOrigin&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=xl(x.type==="pointercancel"?this.lastMoveEventInfo:vl(k,this.transformPagePoint),this.history);this.startEvent&&C&&C(x,_),E&&E(x,_)},!hu(s))return;this.dragSnapToOrigin=f,this.handlers=i,this.transformPagePoint=a,this.contextWindow=u||window;const d=Ms(s),h=vl(d,this.transformPagePoint),{point:m}=h,{timestamp:y}=Ke;this.history=[{...m,timestamp:y}];const{onSessionStart:v}=i;v&&v(s,xl(h,this.history)),this.removeListeners=Es(ms(this.contextWindow,"pointermove",this.handlePointerMove),ms(this.contextWindow,"pointerup",this.handlePointerUp),ms(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(s){this.handlers=s}end(){this.removeListeners&&this.removeListeners(),gn(this.updatePoint)}}function vl(n,s){return s?{point:s(n.point)}:n}function lh(n,s){return{x:n.x-s.x,y:n.y-s.y}}function xl({point:n},s){return{point:n,delta:lh(n,cm(s)),offset:lh(n,Yx(s)),velocity:Xx(s,.1)}}function Yx(n){return n[0]}function cm(n){return n[n.length-1]}function Xx(n,s){if(n.length<2)return{x:0,y:0};let i=n.length-1,a=null;const u=cm(n);for(;i>=0&&(a=n[i],!(u.timestamp-a.timestamp>Gt(s)));)i--;if(!a)return{x:0,y:0};const f=Qt(u.timestamp-a.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-a.x)/f,y:(u.y-a.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}const dm=1e-4,Zx=1-dm,Jx=1+dm,fm=.01,e1=0-fm,t1=0+fm;function pt(n){return n.max-n.min}function n1(n,s,i){return Math.abs(n-s)<=i}function uh(n,s,i,a=.5){n.origin=a,n.originPoint=Me(s.min,s.max,n.origin),n.scale=pt(i)/pt(s),n.translate=Me(i.min,i.max,n.origin)-n.originPoint,(n.scale>=Zx&&n.scale<=Jx||isNaN(n.scale))&&(n.scale=1),(n.translate>=e1&&n.translate<=t1||isNaN(n.translate))&&(n.translate=0)}function ys(n,s,i,a){uh(n.x,s.x,i.x,a?a.originX:void 0),uh(n.y,s.y,i.y,a?a.originY:void 0)}function ch(n,s,i){n.min=i.min+s.min,n.max=n.min+pt(s)}function r1(n,s,i){ch(n.x,s.x,i.x),ch(n.y,s.y,i.y)}function dh(n,s,i){n.min=s.min-i.min,n.max=n.min+pt(s)}function gs(n,s,i){dh(n.x,s.x,i.x),dh(n.y,s.y,i.y)}function s1(n,{min:s,max:i},a){return s!==void 0&&n<s?n=a?Me(s,n,a.min):Math.max(n,s):i!==void 0&&n>i&&(n=a?Me(i,n,a.max):Math.min(n,i)),n}function fh(n,s,i){return{min:s!==void 0?n.min+s:void 0,max:i!==void 0?n.max+i-(n.max-n.min):void 0}}function i1(n,{top:s,left:i,bottom:a,right:u}){return{x:fh(n.x,i,u),y:fh(n.y,s,a)}}function hh(n,s){let i=s.min-n.min,a=s.max-n.max;return s.max-s.min<n.max-n.min&&([i,a]=[a,i]),{min:i,max:a}}function o1(n,s){return{x:hh(n.x,s.x),y:hh(n.y,s.y)}}function a1(n,s){let i=.5;const a=pt(n),u=pt(s);return u>a?i=vr(s.min,s.max-a,n.min):a>u&&(i=vr(n.min,n.max-u,s.min)),qt(0,1,i)}function l1(n,s){const i={};return s.min!==void 0&&(i.min=s.min-n.min),s.max!==void 0&&(i.max=s.max-n.min),i}const Fl=.35;function u1(n=Fl){return n===!1?n=0:n===!0&&(n=Fl),{x:ph(n,"left","right"),y:ph(n,"top","bottom")}}function ph(n,s,i){return{min:mh(n,s),max:mh(n,i)}}function mh(n,s){return typeof n=="number"?n:n[s]||0}const yh=()=>({translate:0,scale:1,origin:0,originPoint:0}),hr=()=>({x:yh(),y:yh()}),gh=()=>({min:0,max:0}),Ve=()=>({x:gh(),y:gh()});function St(n){return[n("x"),n("y")]}function hm({top:n,left:s,right:i,bottom:a}){return{x:{min:s,max:i},y:{min:n,max:a}}}function c1({x:n,y:s}){return{top:s.min,right:n.max,bottom:s.max,left:n.min}}function d1(n,s){if(!s)return n;const i=s({x:n.left,y:n.top}),a=s({x:n.right,y:n.bottom});return{top:i.y,left:i.x,bottom:a.y,right:a.x}}function wl(n){return n===void 0||n===1}function zl({scale:n,scaleX:s,scaleY:i}){return!wl(n)||!wl(s)||!wl(i)}function Dn(n){return zl(n)||pm(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function pm(n){return vh(n.x)||vh(n.y)}function vh(n){return n&&n!=="0%"}function so(n,s,i){const a=n-i,u=s*a;return i+u}function xh(n,s,i,a,u){return u!==void 0&&(n=so(n,u,a)),so(n,i,a)+s}function Il(n,s=0,i=1,a,u){n.min=xh(n.min,s,i,a,u),n.max=xh(n.max,s,i,a,u)}function mm(n,{x:s,y:i}){Il(n.x,s.translate,s.scale,s.originPoint),Il(n.y,i.translate,i.scale,i.originPoint)}const wh=.999999999999,kh=1.0000000000001;function f1(n,s,i,a=!1){const u=i.length;if(!u)return;s.x=s.y=1;let f,d;for(let h=0;h<u;h++){f=i[h],d=f.projectionDelta;const{visualElement:m}=f.options;m&&m.props.style&&m.props.style.display==="contents"||(a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&mr(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(s.x*=d.x.scale,s.y*=d.y.scale,mm(n,d)),a&&Dn(f.latestValues)&&mr(n,f.latestValues))}s.x<kh&&s.x>wh&&(s.x=1),s.y<kh&&s.y>wh&&(s.y=1)}function pr(n,s){n.min=n.min+s,n.max=n.max+s}function Sh(n,s,i,a,u=.5){const f=Me(n.min,n.max,u);Il(n,s,i,f,a)}function mr(n,s){Sh(n.x,s.x,s.scaleX,s.scale,s.originX),Sh(n.y,s.y,s.scaleY,s.scale,s.originY)}function ym(n,s){return hm(d1(n.getBoundingClientRect(),s))}function h1(n,s,i){const a=ym(n,i),{scroll:u}=s;return u&&(pr(a.x,u.offset.x),pr(a.y,u.offset.y)),a}const gm=({current:n})=>n?n.ownerDocument.defaultView:null,p1=new WeakMap;class m1{constructor(s){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ve(),this.visualElement=s}start(s,{snapToCursor:i=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const u=v=>{const{dragSnapToOrigin:x}=this.getProps();x?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(Ms(v).point)},f=(v,x)=>{const{drag:k,dragPropagation:C,onDragStart:E}=this.getProps();if(k&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=a0(k),!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),St(_=>{let L=this.getAxisMotionValue(_).get()||0;if(Ft.test(L)){const{projection:z}=this.visualElement;if(z&&z.layout){const $=z.layout.layoutBox[_];$&&(L=pt($)*(parseFloat(L)/100))}}this.originPoint[_]=L}),E&&Se.postRender(()=>E(v,x)),Ml(this.visualElement,"transform");const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},d=(v,x)=>{const{dragPropagation:k,dragDirectionLock:C,onDirectionLock:E,onDrag:R}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:_}=x;if(C&&this.currentDirection===null){this.currentDirection=y1(_),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",x.point,_),this.updateAxis("y",x.point,_),this.visualElement.render(),R&&R(v,x)},h=(v,x)=>this.stop(v,x),m=()=>St(v=>{var x;return this.getAnimationState(v)==="paused"&&((x=this.getAxisMotionValue(v).animation)===null||x===void 0?void 0:x.play())}),{dragSnapToOrigin:y}=this.getProps();this.panSession=new um(s,{onSessionStart:u,onStart:f,onMove:d,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,contextWindow:gm(this.visualElement)})}stop(s,i){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:u}=i;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&Se.postRender(()=>f(s,i))}cancel(){this.isDragging=!1;const{projection:s,animationState:i}=this.visualElement;s&&(s.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(s,i,a){const{drag:u}=this.getProps();if(!a||!Wi(s,u,this.currentDirection))return;const f=this.getAxisMotionValue(s);let d=this.originPoint[s]+a[s];this.constraints&&this.constraints[s]&&(d=s1(d,this.constraints[s],this.elastic[s])),f.set(d)}resolveConstraints(){var s;const{dragConstraints:i,dragElastic:a}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)===null||s===void 0?void 0:s.layout,f=this.constraints;i&&dr(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&u?this.constraints=i1(u.layoutBox,i):this.constraints=!1,this.elastic=u1(a),f!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&St(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=l1(u.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:i}=this.getProps();if(!s||!dr(s))return!1;const a=s.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=h1(a,u.root,this.visualElement.getTransformPagePoint());let d=o1(u.layout.layoutBox,f);if(i){const h=i(c1(d));this.hasMutatedConstraints=!!h,h&&(d=hm(h))}return d}startAnimation(s){const{drag:i,dragMomentum:a,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},y=St(v=>{if(!Wi(v,i,this.currentDirection))return;let x=m&&m[v]||{};d&&(x={min:0,max:0});const k=u?200:1e6,C=u?40:1e7,E={type:"inertia",velocity:a?s[v]:0,bounceStiffness:k,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...f,...x};return this.startAxisValueAnimation(v,E)});return Promise.all(y).then(h)}startAxisValueAnimation(s,i){const a=this.getAxisMotionValue(s);return Ml(this.visualElement,s),a.start(Tu(s,a,0,i,this.visualElement,!1))}stopAnimation(){St(s=>this.getAxisMotionValue(s).stop())}pauseAnimation(){St(s=>{var i;return(i=this.getAxisMotionValue(s).animation)===null||i===void 0?void 0:i.pause()})}getAnimationState(s){var i;return(i=this.getAxisMotionValue(s).animation)===null||i===void 0?void 0:i.state}getAxisMotionValue(s){const i=`_drag${s.toUpperCase()}`,a=this.visualElement.getProps(),u=a[i];return u||this.visualElement.getValue(s,(a.initial?a.initial[s]:void 0)||0)}snapToCursor(s){St(i=>{const{drag:a}=this.getProps();if(!Wi(i,a,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(i);if(u&&u.layout){const{min:d,max:h}=u.layout.layoutBox[i];f.set(s[i]-Me(d,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:s,dragConstraints:i}=this.getProps(),{projection:a}=this.visualElement;if(!dr(i)||!a||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};St(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const m=h.get();u[d]=a1({min:m,max:m},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),St(d=>{if(!Wi(d,s,null))return;const h=this.getAxisMotionValue(d),{min:m,max:y}=this.constraints[d];h.set(Me(m,y,u[d]))})}addListeners(){if(!this.visualElement.current)return;p1.set(this.visualElement,this);const s=this.visualElement.current,i=ms(s,"pointerdown",m=>{const{drag:y,dragListener:v=!0}=this.getProps();y&&v&&this.start(m)}),a=()=>{const{dragConstraints:m}=this.getProps();dr(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,f=u.addEventListener("measure",a);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Se.read(a);const d=Cs(window,"resize",()=>this.scalePositionWithinConstraints()),h=u.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:y})=>{this.isDragging&&y&&(St(v=>{const x=this.getAxisMotionValue(v);x&&(this.originPoint[v]+=m[v].translate,x.set(x.get()+m[v].translate))}),this.visualElement.render())}));return()=>{d(),i(),f(),h&&h()}}getProps(){const s=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:a=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=Fl,dragMomentum:h=!0}=s;return{...s,drag:i,dragDirectionLock:a,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Wi(n,s,i){return(s===!0||s===n)&&(i===null||i===n)}function y1(n,s=10){let i=null;return Math.abs(n.y)>s?i="y":Math.abs(n.x)>s&&(i="x"),i}class g1 extends xn{constructor(s){super(s),this.removeGroupControls=ht,this.removeListeners=ht,this.controls=new m1(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ht}unmount(){this.removeGroupControls(),this.removeListeners()}}const jh=n=>(s,i)=>{n&&Se.postRender(()=>n(s,i))};class v1 extends xn{constructor(){super(...arguments),this.removePointerDownListener=ht}onPointerDown(s){this.session=new um(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gm(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:i,onPan:a,onPanEnd:u}=this.node.getProps();return{onSessionStart:jh(s),onStart:jh(i),onMove:a,onEnd:(f,d)=>{delete this.session,u&&Se.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=ms(this.node.current,"pointerdown",s=>this.onPointerDown(s))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ch(n,s){return s.max===s.min?0:n/(s.max-s.min)*100}const us={correct:(n,s)=>{if(!s.target)return n;if(typeof n=="string")if(ie.test(n))n=parseFloat(n);else return n;const i=Ch(n,s.target.x),a=Ch(n,s.target.y);return`${i}% ${a}%`}},x1={correct:(n,{treeScale:s,projectionDelta:i})=>{const a=n,u=vn.parse(n);if(u.length>5)return a;const f=vn.createTransformer(n),d=typeof u[0]!="number"?1:0,h=i.x.scale*s.x,m=i.y.scale*s.y;u[0+d]/=h,u[1+d]/=m;const y=Me(h,m,.5);return typeof u[2+d]=="number"&&(u[2+d]/=y),typeof u[3+d]=="number"&&(u[3+d]/=y),f(u)}};class w1 extends A.Component{componentDidMount(){const{visualElement:s,layoutGroup:i,switchLayoutGroup:a,layoutId:u}=this.props,{projection:f}=s;bv(k1),f&&(i.group&&i.group.add(f),a&&a.register&&u&&a.register(f),f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),qi.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:i,visualElement:a,drag:u,isPresent:f}=this.props,d=a.projection;return d&&(d.isPresent=f,u||s.layoutDependency!==i||i===void 0?d.willUpdate():this.safeToRemove(),s.isPresent!==f&&(f?d.promote():d.relegate()||Se.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:s}=this.props.visualElement;s&&(s.root.didUpdate(),eu.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:i,switchLayoutGroup:a}=this.props,{projection:u}=s;u&&(u.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(u),a&&a.deregister&&a.deregister(u))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function vm(n){const[s,i]=ep(),a=A.useContext(xs);return p.jsx(w1,{...n,layoutGroup:a,switchLayoutGroup:A.useContext(lp),isPresent:s,safeToRemove:i})}const k1={borderRadius:{...us,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:us,borderTopRightRadius:us,borderBottomLeftRadius:us,borderBottomRightRadius:us,boxShadow:x1};function S1(n,s,i){const a=Ze(n)?n:Ss(n);return a.start(Tu("",a,s,i)),a.animation}function j1(n){return n instanceof SVGElement&&n.tagName!=="svg"}const C1=(n,s)=>n.depth-s.depth;class T1{constructor(){this.children=[],this.isDirty=!1}add(s){pu(this.children,s),this.isDirty=!0}remove(s){mu(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(C1),this.isDirty=!1,this.children.forEach(s)}}function N1(n,s){const i=zt.now(),a=({timestamp:u})=>{const f=u-i;f>=s&&(gn(a),n(f-s))};return Se.read(a,!0),()=>gn(a)}const xm=["TopLeft","TopRight","BottomLeft","BottomRight"],P1=xm.length,Th=n=>typeof n=="string"?parseFloat(n):n,Nh=n=>typeof n=="number"||ie.test(n);function E1(n,s,i,a,u,f){u?(n.opacity=Me(0,i.opacity!==void 0?i.opacity:1,M1(a)),n.opacityExit=Me(s.opacity!==void 0?s.opacity:1,0,R1(a))):f&&(n.opacity=Me(s.opacity!==void 0?s.opacity:1,i.opacity!==void 0?i.opacity:1,a));for(let d=0;d<P1;d++){const h=`border${xm[d]}Radius`;let m=Ph(s,h),y=Ph(i,h);if(m===void 0&&y===void 0)continue;m||(m=0),y||(y=0),m===0||y===0||Nh(m)===Nh(y)?(n[h]=Math.max(Me(Th(m),Th(y),a),0),(Ft.test(y)||Ft.test(m))&&(n[h]+="%")):n[h]=y}(s.rotate||i.rotate)&&(n.rotate=Me(s.rotate||0,i.rotate||0,a))}function Ph(n,s){return n[s]!==void 0?n[s]:n.borderRadius}const M1=wm(0,.5,zp),R1=wm(.5,.95,ht);function wm(n,s,i){return a=>a<n?0:a>s?1:i(vr(n,s,a))}function Eh(n,s){n.min=s.min,n.max=s.max}function kt(n,s){Eh(n.x,s.x),Eh(n.y,s.y)}function Mh(n,s){n.translate=s.translate,n.scale=s.scale,n.originPoint=s.originPoint,n.origin=s.origin}function Rh(n,s,i,a,u){return n-=s,n=so(n,1/i,a),u!==void 0&&(n=so(n,1/u,a)),n}function _1(n,s=0,i=1,a=.5,u,f=n,d=n){if(Ft.test(s)&&(s=parseFloat(s),s=Me(d.min,d.max,s/100)-d.min),typeof s!="number")return;let h=Me(f.min,f.max,a);n===f&&(h-=s),n.min=Rh(n.min,s,i,h,u),n.max=Rh(n.max,s,i,h,u)}function _h(n,s,[i,a,u],f,d){_1(n,s[i],s[a],s[u],s.scale,f,d)}const A1=["x","scaleX","originX"],L1=["y","scaleY","originY"];function Ah(n,s,i,a){_h(n.x,s,A1,i?i.x:void 0,a?a.x:void 0),_h(n.y,s,L1,i?i.y:void 0,a?a.y:void 0)}function Lh(n){return n.translate===0&&n.scale===1}function km(n){return Lh(n.x)&&Lh(n.y)}function Dh(n,s){return n.min===s.min&&n.max===s.max}function D1(n,s){return Dh(n.x,s.x)&&Dh(n.y,s.y)}function Vh(n,s){return Math.round(n.min)===Math.round(s.min)&&Math.round(n.max)===Math.round(s.max)}function Sm(n,s){return Vh(n.x,s.x)&&Vh(n.y,s.y)}function Oh(n){return pt(n.x)/pt(n.y)}function Fh(n,s){return n.translate===s.translate&&n.scale===s.scale&&n.originPoint===s.originPoint}class V1{constructor(){this.members=[]}add(s){pu(this.members,s),s.scheduleRender()}remove(s){if(mu(this.members,s),s===this.prevLead&&(this.prevLead=void 0),s===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(s){const i=this.members.findIndex(u=>s===u);if(i===0)return!1;let a;for(let u=i;u>=0;u--){const f=this.members[u];if(f.isPresent!==!1){a=f;break}}return a?(this.promote(a),!0):!1}promote(s,i){const a=this.lead;if(s!==a&&(this.prevLead=a,this.lead=s,s.show(),a)){a.instance&&a.scheduleRender(),s.scheduleRender(),s.resumeFrom=a,i&&(s.resumeFrom.preserveOpacity=!0),a.snapshot&&(s.snapshot=a.snapshot,s.snapshot.latestValues=a.animationValues||a.latestValues),s.root&&s.root.isUpdating&&(s.isLayoutDirty=!0);const{crossfade:u}=s.options;u===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(s=>{const{options:i,resumingFrom:a}=s;i.onExitComplete&&i.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(s=>{s.instance&&s.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function O1(n,s,i){let a="";const u=n.x.translate/s.x,f=n.y.translate/s.y,d=(i==null?void 0:i.z)||0;if((u||f||d)&&(a=`translate3d(${u}px, ${f}px, ${d}px) `),(s.x!==1||s.y!==1)&&(a+=`scale(${1/s.x}, ${1/s.y}) `),i){const{transformPerspective:y,rotate:v,rotateX:x,rotateY:k,skewX:C,skewY:E}=i;y&&(a=`perspective(${y}px) ${a}`),v&&(a+=`rotate(${v}deg) `),x&&(a+=`rotateX(${x}deg) `),k&&(a+=`rotateY(${k}deg) `),C&&(a+=`skewX(${C}deg) `),E&&(a+=`skewY(${E}deg) `)}const h=n.x.scale*s.x,m=n.y.scale*s.y;return(h!==1||m!==1)&&(a+=`scale(${h}, ${m})`),a||"none"}const Vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},hs=typeof window<"u"&&window.MotionDebug!==void 0,kl=["","X","Y","Z"],F1={visibility:"hidden"},zh=1e3;let z1=0;function Sl(n,s,i,a){const{latestValues:u}=s;u[n]&&(i[n]=u[n],s.setStaticValue(n,0),a&&(a[n]=0))}function jm(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:s}=n.options;if(!s)return;const i=_p(s);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(i,"transform",Se,!(u||f))}const{parent:a}=n;a&&!a.hasCheckedOptimisedAppear&&jm(a)}function Cm({attachResizeListener:n,defaultParent:s,measureScroll:i,checkIsScrollRoot:a,resetTransform:u}){return class{constructor(d={},h=s==null?void 0:s()){this.id=z1++,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,hs&&(Vn.totalNodes=Vn.resolvedTargetDeltas=Vn.recalculatedProjection=0),this.nodes.forEach(B1),this.nodes.forEach(K1),this.nodes.forEach(G1),this.nodes.forEach(U1),hs&&window.MotionDebug.record(Vn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new T1)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new yu),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const m=this.eventHandlers.get(d);m&&m.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d,h=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=j1(d),this.instance=d;const{layoutId:m,layout:y,visualElement:v}=this.options;if(v&&!v.current&&v.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),h&&(y||m)&&(this.isLayoutDirty=!0),n){let x;const k=()=>this.root.updateBlockedByResize=!1;n(d,()=>{this.root.updateBlockedByResize=!0,x&&x(),x=N1(k,250),qi.hasAnimatedSinceResize&&(qi.hasAnimatedSinceResize=!1,this.nodes.forEach(bh))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&v&&(m||y)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:k,hasRelativeTargetChanged:C,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||v.getDefaultTransition()||Z1,{onLayoutAnimationStart:_,onLayoutAnimationComplete:L}=v.getProps(),z=!this.targetLayout||!Sm(this.targetLayout,E)||C,$=!k&&C;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||$||k&&(z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(x,$);const K={...cu(R,"layout"),onPlay:_,onComplete:L};(v.shouldReduceMotion||this.options.layoutRoot)&&(K.delay=0,K.type=!1),this.startAnimation(K)}else k||bh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gn(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(Q1),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ih);return}this.isUpdating||this.nodes.forEach(W1),this.isUpdating=!1,this.nodes.forEach(H1),this.nodes.forEach(I1),this.nodes.forEach(b1),this.clearAllSnapshots();const h=zt.now();Ke.delta=qt(0,1e3/60,h-Ke.timestamp),Ke.timestamp=h,Ke.isProcessing=!0,fl.update.process(Ke),fl.preRender.process(Ke),fl.render.process(Ke),Ke.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($1),this.sharedNodes.forEach(q1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Se.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Se.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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ve(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h){const m=a(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:m,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!km(this.projectionDelta),m=this.getTransformTemplate(),y=m?m(this.latestValues,""):void 0,v=y!==this.prevTransformTemplateValue;d&&(h||Dn(this.latestValues)||v)&&(u(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return d&&(m=this.removeTransform(m)),J1(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:h}=this.options;if(!h)return Ve();const m=h.measureViewportBox();if(!(((d=this.scroll)===null||d===void 0?void 0:d.wasRoot)||this.path.some(ew))){const{scroll:v}=this.root;v&&(pr(m.x,v.offset.x),pr(m.y,v.offset.y))}return m}removeElementScroll(d){var h;const m=Ve();if(kt(m,d),!((h=this.scroll)===null||h===void 0)&&h.wasRoot)return m;for(let y=0;y<this.path.length;y++){const v=this.path[y],{scroll:x,options:k}=v;v!==this.root&&x&&k.layoutScroll&&(x.wasRoot&&kt(m,d),pr(m.x,x.offset.x),pr(m.y,x.offset.y))}return m}applyTransform(d,h=!1){const m=Ve();kt(m,d);for(let y=0;y<this.path.length;y++){const v=this.path[y];!h&&v.options.layoutScroll&&v.scroll&&v!==v.root&&mr(m,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Dn(v.latestValues)&&mr(m,v.latestValues)}return Dn(this.latestValues)&&mr(m,this.latestValues),m}removeTransform(d){const h=Ve();kt(h,d);for(let m=0;m<this.path.length;m++){const y=this.path[m];if(!y.instance||!Dn(y.latestValues))continue;zl(y.latestValues)&&y.updateSnapshot();const v=Ve(),x=y.measurePageBox();kt(v,x),Ah(h,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,v)}return Dn(this.latestValues)&&Ah(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==Ke.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var h;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==m;if(!(d||y&&this.isSharedProjectionDirty||this.isProjectionDirty||!((h=this.parent)===null||h===void 0)&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:k}=this.options;if(!(!this.layout||!(x||k))){if(this.resolvedRelativeTargetAt=Ke.timestamp,!this.targetDelta&&!this.relativeTarget){const C=this.getClosestProjectingParent();C&&C.layout&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),gs(this.relativeTargetOrigin,this.layout.layoutBox,C.layout.layoutBox),kt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ve(),this.targetWithTransforms=Ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r1(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):kt(this.target,this.layout.layoutBox),mm(this.target,this.targetDelta)):kt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const C=this.getClosestProjectingParent();C&&!!C.resumingFrom==!!this.resumingFrom&&!C.options.layoutScroll&&C.target&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),gs(this.relativeTargetOrigin,this.target,C.target),kt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}hs&&Vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||zl(this.parent.latestValues)||pm(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 d;const h=this.getLead(),m=!!this.resumingFrom||this!==h;let y=!0;if((this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===Ke.timestamp&&(y=!1),y)return;const{layout:v,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||x))return;kt(this.layoutCorrected,this.layout.layoutBox);const k=this.treeScale.x,C=this.treeScale.y;f1(this.layoutCorrected,this.treeScale,this.path,m),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Ve());const{target:E}=h;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mh(this.prevProjectionDelta.x,this.projectionDelta.x),Mh(this.prevProjectionDelta.y,this.projectionDelta.y)),ys(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==k||this.treeScale.y!==C||!Fh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),hs&&Vn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)===null||h===void 0||h.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=hr(),this.projectionDelta=hr(),this.projectionDeltaWithTransform=hr()}setAnimationOrigin(d,h=!1){const m=this.snapshot,y=m?m.latestValues:{},v={...this.latestValues},x=hr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const k=Ve(),C=m?m.source:void 0,E=this.layout?this.layout.source:void 0,R=C!==E,_=this.getStack(),L=!_||_.members.length<=1,z=!!(R&&!L&&this.options.crossfade===!0&&!this.path.some(X1));this.animationProgress=0;let $;this.mixTargetDelta=K=>{const U=K/1e3;Bh(x.x,d.x,U),Bh(x.y,d.y,U),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gs(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Y1(this.relativeTarget,this.relativeTargetOrigin,k,U),$&&D1(this.relativeTarget,$)&&(this.isProjectionDirty=!1),$||($=Ve()),kt($,this.relativeTarget)),R&&(this.animationValues=v,E1(v,y,this.latestValues,U,z,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{qi.hasAnimatedSinceResize=!0,this.currentAnimation=S1(0,zh,{...d,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:m,layout:y,latestValues:v}=d;if(!(!h||!m||!y)){if(this!==d&&this.layout&&y&&Tm(this.options.animationType,this.layout.layoutBox,y.layoutBox)){m=this.target||Ve();const x=pt(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+x;const k=pt(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+k}kt(h,m),mr(h,v),ys(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new V1),this.sharedNodes.get(d).add(h);const y=h.options.initialPromotionConfig;h.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var d;const{layoutId:h}=this.options;return h?((d=this.getStack())===null||d===void 0?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:h}=this.options;return h?(d=this.getStack())===null||d===void 0?void 0:d.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:m}={}){const y=this.getStack();y&&y.promote(this,m),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const y={};m.z&&Sl("z",d,y,this.animationValues);for(let v=0;v<kl.length;v++)Sl(`rotate${kl[v]}`,d,y,this.animationValues),Sl(`skew${kl[v]}`,d,y,this.animationValues);d.render();for(const v in y)d.setStaticValue(v,y[v]),this.animationValues&&(this.animationValues[v]=y[v]);d.scheduleRender()}getProjectionStyles(d){var h,m;if(!this.instance||this.isSVG)return;if(!this.isVisible)return F1;const y={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,y.opacity="",y.pointerEvents=Gi(d==null?void 0:d.pointerEvents)||"",y.transform=v?v(this.latestValues,""):"none",y;const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){const R={};return this.options.layoutId&&(R.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,R.pointerEvents=Gi(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!Dn(this.latestValues)&&(R.transform=v?v({},""):"none",this.hasProjected=!1),R}const k=x.animationValues||x.latestValues;this.applyTransformsToTarget(),y.transform=O1(this.projectionDeltaWithTransform,this.treeScale,k),v&&(y.transform=v(k,y.transform));const{x:C,y:E}=this.projectionDelta;y.transformOrigin=`${C.origin*100}% ${E.origin*100}% 0`,x.animationValues?y.opacity=x===this?(m=(h=k.opacity)!==null&&h!==void 0?h:this.latestValues.opacity)!==null&&m!==void 0?m:1:this.preserveOpacity?this.latestValues.opacity:k.opacityExit:y.opacity=x===this?k.opacity!==void 0?k.opacity:"":k.opacityExit!==void 0?k.opacityExit:0;for(const R in Ji){if(k[R]===void 0)continue;const{correct:_,applyTo:L}=Ji[R],z=y.transform==="none"?k[R]:_(k[R],x);if(L){const $=L.length;for(let K=0;K<$;K++)y[L[K]]=z}else y[R]=z}return this.options.layoutId&&(y.pointerEvents=x===this?Gi(d==null?void 0:d.pointerEvents)||"":"none"),y}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(Ih),this.root.sharedNodes.clear()}}}function I1(n){n.updateLayout()}function b1(n){var s;const i=((s=n.resumeFrom)===null||s===void 0?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:u}=n.layout,{animationType:f}=n.options,d=i.source!==n.layout.source;f==="size"?St(x=>{const k=d?i.measuredBox[x]:i.layoutBox[x],C=pt(k);k.min=a[x].min,k.max=k.min+C}):Tm(f,i.layoutBox,a)&&St(x=>{const k=d?i.measuredBox[x]:i.layoutBox[x],C=pt(a[x]);k.max=k.min+C,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[x].max=n.relativeTarget[x].min+C)});const h=hr();ys(h,a,i.layoutBox);const m=hr();d?ys(m,n.applyTransform(u,!0),i.measuredBox):ys(m,a,i.layoutBox);const y=!km(h);let v=!1;if(!n.resumeFrom){const x=n.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:k,layout:C}=x;if(k&&C){const E=Ve();gs(E,i.layoutBox,k.layoutBox);const R=Ve();gs(R,a,C.layoutBox),Sm(E,R)||(v=!0),x.options.layoutRoot&&(n.relativeTarget=R,n.relativeTargetOrigin=E,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:a,snapshot:i,delta:m,layoutDelta:h,hasLayoutChanged:y,hasRelativeTargetChanged:v})}else if(n.isLead()){const{onExitComplete:a}=n.options;a&&a()}n.options.transition=void 0}function B1(n){hs&&Vn.totalNodes++,n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function U1(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function $1(n){n.clearSnapshot()}function Ih(n){n.clearMeasurements()}function W1(n){n.isLayoutDirty=!1}function H1(n){const{visualElement:s}=n.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),n.resetTransform()}function bh(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function K1(n){n.resolveTargetDelta()}function G1(n){n.calcProjection()}function Q1(n){n.resetSkewAndRotation()}function q1(n){n.removeLeadSnapshot()}function Bh(n,s,i){n.translate=Me(s.translate,0,i),n.scale=Me(s.scale,1,i),n.origin=s.origin,n.originPoint=s.originPoint}function Uh(n,s,i,a){n.min=Me(s.min,i.min,a),n.max=Me(s.max,i.max,a)}function Y1(n,s,i,a){Uh(n.x,s.x,i.x,a),Uh(n.y,s.y,i.y,a)}function X1(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const Z1={duration:.45,ease:[.4,0,.1,1]},$h=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Wh=$h("applewebkit/")&&!$h("chrome/")?Math.round:ht;function Hh(n){n.min=Wh(n.min),n.max=Wh(n.max)}function J1(n){Hh(n.x),Hh(n.y)}function Tm(n,s,i){return n==="position"||n==="preserve-aspect"&&!n1(Oh(s),Oh(i),.2)}function ew(n){var s;return n!==n.root&&((s=n.scroll)===null||s===void 0?void 0:s.wasRoot)}const tw=Cm({attachResizeListener:(n,s)=>Cs(n,"resize",s),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jl={current:void 0},Nm=Cm({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!jl.current){const n=new tw({});n.mount(window),n.setOptions({layoutScroll:!0}),jl.current=n}return jl.current},resetTransform:(n,s)=>{n.style.transform=s!==void 0?s:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),nw={pan:{Feature:v1},drag:{Feature:g1,ProjectionNode:Nm,MeasureLayout:vm}};function Kh(n,s,i){const{props:a}=n;n.animationState&&a.whileHover&&n.animationState.setActive("whileHover",i==="Start");const u="onHover"+i,f=a[u];f&&Se.postRender(()=>f(s,Ms(s)))}class rw extends xn{mount(){const{current:s}=this.node;s&&(this.unmount=n0(s,i=>(Kh(this.node,i,"Start"),a=>Kh(this.node,a,"End"))))}unmount(){}}class sw extends xn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let s=!1;try{s=this.node.current.matches(":focus-visible")}catch{s=!0}!s||!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=Es(Cs(this.node.current,"focus",()=>this.onFocus()),Cs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Gh(n,s,i){const{props:a}=n;n.animationState&&a.whileTap&&n.animationState.setActive("whileTap",i==="Start");const u="onTap"+(i==="End"?"":i),f=a[u];f&&Se.postRender(()=>f(s,Ms(s)))}class iw extends xn{mount(){const{current:s}=this.node;s&&(this.unmount=o0(s,i=>(Gh(this.node,i,"Start"),(a,{success:u})=>Gh(this.node,a,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const bl=new WeakMap,Cl=new WeakMap,ow=n=>{const s=bl.get(n.target);s&&s(n)},aw=n=>{n.forEach(ow)};function lw({root:n,...s}){const i=n||document;Cl.has(i)||Cl.set(i,{});const a=Cl.get(i),u=JSON.stringify(s);return a[u]||(a[u]=new IntersectionObserver(aw,{root:n,...s})),a[u]}function uw(n,s,i){const a=lw(s);return bl.set(n,i),a.observe(n),()=>{bl.delete(n),a.unobserve(n)}}const cw={some:0,all:1};class dw extends xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:s={}}=this.node.getProps(),{root:i,margin:a,amount:u="some",once:f}=s,d={root:i?i.current:void 0,rootMargin:a,threshold:typeof u=="number"?u:cw[u]},h=m=>{const{isIntersecting:y}=m;if(this.isInView===y||(this.isInView=y,f&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),k=y?v:x;k&&k(m)};return uw(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:i}=this.node;["amount","margin","root"].some(fw(s,i))&&this.startObserver()}unmount(){}}function fw({viewport:n={}},{viewport:s={}}={}){return i=>n[i]!==s[i]}const hw={inView:{Feature:dw},tap:{Feature:iw},focus:{Feature:sw},hover:{Feature:rw}},pw={layout:{ProjectionNode:Nm,MeasureLayout:vm}},Bl={current:null},Pm={current:!1};function mw(){if(Pm.current=!0,!!Ql)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),s=()=>Bl.current=n.matches;n.addListener(s),s()}else Bl.current=!1}const yw=[...Zp,Xe,vn],gw=n=>yw.find(Xp(n)),Qh=new WeakMap;function vw(n,s,i){for(const a in s){const u=s[a],f=i[a];if(Ze(u))n.addValue(a,u);else if(Ze(f))n.addValue(a,Ss(u,{owner:n}));else if(f!==u)if(n.hasValue(a)){const d=n.getValue(a);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(a);n.addValue(a,Ss(d!==void 0?d:u,{owner:n}))}}for(const a in i)s[a]===void 0&&n.removeValue(a);return s}const qh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xw{scrapeMotionValuesFromProps(s,i,a){return{}}constructor({parent:s,props:i,presenceContext:a,reducedMotionConfig:u,blockInitialAnimation:f,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Su,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 C=zt.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,Se.render(this.render,!1,!0))};const{latestValues:m,renderState:y,onUpdate:v}=d;this.onUpdate=v,this.latestValues=m,this.baseTarget={...m},this.initialValues=i.initial?{...m}:{},this.renderState=y,this.parent=s,this.props=i,this.presenceContext=a,this.depth=s?s.depth+1:0,this.reducedMotionConfig=u,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=co(i),this.isVariantNode=op(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(s&&s.current);const{willChange:x,...k}=this.scrapeMotionValuesFromProps(i,{},this);for(const C in k){const E=k[C];m[C]!==void 0&&Ze(E)&&E.set(m[C],!1)}}mount(s){this.current=s,Qh.set(s,this),this.projection&&!this.projection.instance&&this.projection.mount(s),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,a)=>this.bindToMotionValue(a,i)),Pm.current||mw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Bl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Qh.delete(this.current),this.projection&&this.projection.unmount(),gn(this.notifyUpdate),gn(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const i=this.features[s];i&&(i.unmount(),i.isMounted=!1)}this.current=null}bindToMotionValue(s,i){this.valueSubscriptions.has(s)&&this.valueSubscriptions.get(s)();const a=In.has(s),u=i.on("change",h=>{this.latestValues[s]=h,this.props.onUpdate&&Se.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),f=i.on("renderRequest",this.scheduleRender);let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,s,i)),this.valueSubscriptions.set(s,()=>{u(),f(),d&&d(),i.owner&&i.stop()})}sortNodePosition(s){return!this.current||!this.sortInstanceNodePosition||this.type!==s.type?0:this.sortInstanceNodePosition(this.current,s.current)}updateFeatures(){let s="animation";for(s in xr){const i=xr[s];if(!i)continue;const{isEnabled:a,Feature:u}=i;if(!this.features[s]&&u&&a(this.props)&&(this.features[s]=new u(this)),this.features[s]){const f=this.features[s];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ve()}getStaticValue(s){return this.latestValues[s]}setStaticValue(s,i){this.latestValues[s]=i}update(s,i){(s.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=s,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let a=0;a<qh.length;a++){const u=qh[a];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=s[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=vw(this,this.scrapeMotionValuesFromProps(s,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(s){return this.props.variants?this.props.variants[s]: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(s){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(s),()=>i.variantChildren.delete(s)}addValue(s,i){const a=this.values.get(s);i!==a&&(a&&this.removeValue(s),this.bindToMotionValue(s,i),this.values.set(s,i),this.latestValues[s]=i.get())}removeValue(s){this.values.delete(s);const i=this.valueSubscriptions.get(s);i&&(i(),this.valueSubscriptions.delete(s)),delete this.latestValues[s],this.removeValueFromRenderState(s,this.renderState)}hasValue(s){return this.values.has(s)}getValue(s,i){if(this.props.values&&this.props.values[s])return this.props.values[s];let a=this.values.get(s);return a===void 0&&i!==void 0&&(a=Ss(i===null?void 0:i,{owner:this}),this.addValue(s,a)),a}readValue(s,i){var a;let u=this.latestValues[s]!==void 0||!this.current?this.latestValues[s]:(a=this.getBaseTargetFromProps(this.props,s))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,s,this.options);return u!=null&&(typeof u=="string"&&(qp(u)||bp(u))?u=parseFloat(u):!gw(u)&&vn.test(i)&&(u=Kp(s,i)),this.setBaseTarget(s,Ze(u)?u.get():u)),Ze(u)?u.get():u}setBaseTarget(s,i){this.baseTarget[s]=i}getBaseTarget(s){var i;const{initial:a}=this.props;let u;if(typeof a=="string"||typeof a=="object"){const d=nu(this.props,a,(i=this.presenceContext)===null||i===void 0?void 0:i.custom);d&&(u=d[s])}if(a&&u!==void 0)return u;const f=this.getBaseTargetFromProps(this.props,s);return f!==void 0&&!Ze(f)?f:this.initialValues[s]!==void 0&&u===void 0?void 0:this.baseTarget[s]}on(s,i){return this.events[s]||(this.events[s]=new yu),this.events[s].add(i)}notify(s,...i){this.events[s]&&this.events[s].notify(...i)}}class Em extends xw{constructor(){super(...arguments),this.KeyframeResolver=Jp}sortInstanceNodePosition(s,i){return s.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(s,i){return s.style?s.style[i]:void 0}removeValueFromRenderState(s,{vars:i,style:a}){delete i[s],delete a[s]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:s}=this.props;Ze(s)&&(this.childSubscription=s.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function ww(n){return window.getComputedStyle(n)}class kw extends Em{constructor(){super(...arguments),this.type="html",this.renderInstance=mp}readValueFromInstance(s,i){if(In.has(i)){const a=ku(i);return a&&a.default||0}else{const a=ww(s),u=(fp(i)?a.getPropertyValue(i):a[i])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(s,{transformPagePoint:i}){return ym(s,i)}build(s,i,a){iu(s,i,a.transformTemplate)}scrapeMotionValuesFromProps(s,i,a){return uu(s,i,a)}}class Sw extends Em{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ve}getBaseTargetFromProps(s,i){return s[i]}readValueFromInstance(s,i){if(In.has(i)){const a=ku(i);return a&&a.default||0}return i=yp.has(i)?i:Jl(i),s.getAttribute(i)}scrapeMotionValuesFromProps(s,i,a){return xp(s,i,a)}build(s,i,a){ou(s,i,this.isSVGTag,a.transformTemplate)}renderInstance(s,i,a,u){gp(s,i,a,u)}mount(s){this.isSVGTag=lu(s.tagName),super.mount(s)}}const jw=(n,s)=>tu(n)?new Sw(s):new kw(s,{allowProjection:n!==A.Fragment}),Cw=qv({...Gx,...hw,...nw,...pw},jw),re=cv(Cw);/**
|
|
49
|
+
* @license lucide-react v0.460.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/const Tw=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mm=(...n)=>n.filter((s,i,a)=>!!s&&s.trim()!==""&&a.indexOf(s)===i).join(" ").trim();/**
|
|
54
|
+
* @license lucide-react v0.460.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var Nw={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"};/**
|
|
59
|
+
* @license lucide-react v0.460.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/const Pw=A.forwardRef(({color:n="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:u="",children:f,iconNode:d,...h},m)=>A.createElement("svg",{ref:m,...Nw,width:s,height:s,stroke:n,strokeWidth:a?Number(i)*24/Number(s):i,className:Mm("lucide",u),...h},[...d.map(([y,v])=>A.createElement(y,v)),...Array.isArray(f)?f:[f]]));/**
|
|
64
|
+
* @license lucide-react v0.460.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const de=(n,s)=>{const i=A.forwardRef(({className:a,...u},f)=>A.createElement(Pw,{ref:f,iconNode:s,className:Mm(`lucide-${Tw(n)}`,a),...u}));return i.displayName=`${n}`,i};/**
|
|
69
|
+
* @license lucide-react v0.460.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const Rm=de("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
74
|
+
* @license lucide-react v0.460.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const Ew=de("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/**
|
|
79
|
+
* @license lucide-react v0.460.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const Mw=de("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
84
|
+
* @license lucide-react v0.460.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const Rw=de("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
89
|
+
* @license lucide-react v0.460.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const _m=de("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
94
|
+
* @license lucide-react v0.460.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const Nu=de("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
99
|
+
* @license lucide-react v0.460.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const _w=de("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
104
|
+
* @license lucide-react v0.460.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const Am=de("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
109
|
+
* @license lucide-react v0.460.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const Aw=de("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
114
|
+
* @license lucide-react v0.460.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const Lw=de("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
119
|
+
* @license lucide-react v0.460.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const Dw=de("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
124
|
+
* @license lucide-react v0.460.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const Vw=de("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
129
|
+
* @license lucide-react v0.460.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const Lm=de("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
134
|
+
* @license lucide-react v0.460.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const Dm=de("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
139
|
+
* @license lucide-react v0.460.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const Ow=de("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
144
|
+
* @license lucide-react v0.460.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const Fw=de("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
|
|
149
|
+
* @license lucide-react v0.460.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const Ts=de("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
154
|
+
* @license lucide-react v0.460.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const zw=de("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
|
159
|
+
* @license lucide-react v0.460.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const Vm=de("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"}]]);/**
|
|
164
|
+
* @license lucide-react v0.460.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const Pu=de("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
|
|
169
|
+
* @license lucide-react v0.460.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const io=de("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/**
|
|
174
|
+
* @license lucide-react v0.460.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const Om=de("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"}]]);/**
|
|
179
|
+
* @license lucide-react v0.460.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const Iw=de("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
184
|
+
* @license lucide-react v0.460.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const Ul=de("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
189
|
+
* @license lucide-react v0.460.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const Fm=de("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
194
|
+
* @license lucide-react v0.460.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const bw=de("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
199
|
+
* @license lucide-react v0.460.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const Bw=de("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
|
|
204
|
+
* @license lucide-react v0.460.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const Uw=de("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
|
|
209
|
+
* @license lucide-react v0.460.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const $w=de("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
214
|
+
* @license lucide-react v0.460.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const Ww=de("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"}]]);/**
|
|
219
|
+
* @license lucide-react v0.460.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const Eu=de("Swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]);/**
|
|
224
|
+
* @license lucide-react v0.460.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const Hw=de("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
229
|
+
* @license lucide-react v0.460.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const Kw=de("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
|
|
234
|
+
* @license lucide-react v0.460.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const Gw=de("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
239
|
+
* @license lucide-react v0.460.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const zm=de("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
|
|
244
|
+
* @license lucide-react v0.460.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const zn=de("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 Qw(n){const[s,i]=A.useState("connecting"),[a,u]=A.useState(null),[f,d]=A.useState({}),[h,m]=A.useState(null),[y,v]=A.useState(null),[x,k]=A.useState(!1),[C,E]=A.useState([]),R=A.useRef(null),_=A.useRef(null),L=A.useRef(!1),z=A.useCallback(()=>{var U;if(((U=R.current)==null?void 0:U.readyState)===WebSocket.OPEN)return;const K=new WebSocket(n);R.current=K,K.onopen=()=>{i("connected")},K.onmessage=Z=>{const G=JSON.parse(Z.data);switch(E(B=>[...B,G]),G.type){case"config":u({models:G.models,prompt:G.prompt});const B={};G.models.forEach(J=>{B[J]={status:"waiting",metrics:null,tokens:0,output:"",tokensPerSec:null}}),d(B);break;case"start":d(J=>({...J,[G.model]:{...J[G.model],status:"generating"}}));break;case"token":d(J=>{var se,ye,ge;return{...J,[G.model]:{...J[G.model],status:"generating",tokens:((se=G.metrics)==null?void 0:se.tokens)||0,tokensPerSec:((ye=G.metrics)==null?void 0:ye.tokens_per_sec)||null,ttft:((ge=G.metrics)==null?void 0:ge.ttft_ms)||null,totalTextLength:G.total_text_length||0}}});break;case"done":d(J=>{var se,ye,ge,Re;return{...J,[G.model]:{...J[G.model],status:"done",metrics:G.metrics,output:((se=G.metrics)==null?void 0:se.output)||"",tokens:((ye=G.metrics)==null?void 0:ye.total_tokens)||((ge=J[G.model])==null?void 0:ge.tokens)||0,tokensPerSec:((Re=G.metrics)==null?void 0:Re.tokens_per_sec)||null}}});break;case"error":d(J=>{var se;return{...J,[G.model]:{...J[G.model],status:"error",metrics:G.metrics,output:((se=G.metrics)==null?void 0:se.output)||"Error occurred"}}});break;case"judging":k(!0);break;case"result":k(!1),m(G.data),L.current=!0;break;case"leaderboard":v(G.data);break}},K.onclose=()=>{i("disconnected"),L.current||(_.current=setTimeout(()=>z(),3e3))},K.onerror=()=>{i("disconnected")}},[n,h]);A.useEffect(()=>(z(),()=>{R.current&&R.current.close(),_.current&&clearTimeout(_.current)}),[z]);const $=A.useCallback(()=>{R.current&&R.current.close(),_.current&&clearTimeout(_.current),u(null),d({}),m(null),k(!1),E([]),L.current=!1,setTimeout(()=>z(),500)},[z]);return{status:s,config:a,modelStates:f,result:h,leaderboard:y,isJudging:x,events:C,reconnect:$}}const qw={type:"spring",mass:1,stiffness:100,damping:15},Mu={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.08,delayChildren:.1}}},gr={hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:qw}},Yw={initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.25}},Yh=["#00d4ff","#7c3aed","#10b981","#f59e0b","#ef4444","#ec4899","#06b6d4","#8b5cf6"],$e=n=>Yh[n%Yh.length];function Xw({models:n,modelStates:s,result:i}){const a=A.useMemo(()=>{let f=1;for(const d of Object.values(s))(d==null?void 0:d.tokens)>f&&(f=d.tokens);if(i!=null&&i.models)for(const d of i.models)d.total_tokens>f&&(f=d.total_tokens);return f},[s,i]),u=i!=null&&i.models?i.models.map(f=>f.model):n;return u.length?p.jsxs("div",{className:"glass rounded-2xl p-6",children:[p.jsxs("div",{className:"flex items-center justify-between mb-5",children:[p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)]",children:"Token Race"}),p.jsxs("span",{className:"text-[10px] text-[var(--text-muted)] font-mono",children:[a," max"]})]}),p.jsx("div",{className:"space-y-5",children:u.map((f,d)=>{var K;const h=f,m=s[h]||{},y=(K=i==null?void 0:i.models)==null?void 0:K.find(U=>U.model===h),v=$e(d),x=(y==null?void 0:y.total_tokens)||m.tokens||0,k=(y==null?void 0:y.tokens_per_sec)||m.tokensPerSec,C=(y==null?void 0:y.ttft_ms)||m.ttft,E=y==null?void 0:y.total_time_s,R=a>0?Math.min(x/a,1):0,_=(i==null?void 0:i.winner)===h,L=m.status==="done"||!!y,z=m.status==="error",$=m.status==="generating";return p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center justify-between mb-2",children:[p.jsxs("div",{className:"flex items-center gap-2.5",children:[p.jsx(re.div,{className:"w-2.5 h-2.5 rounded-full",style:{background:v},animate:$?{scale:[1,1.3,1],opacity:[1,.7,1]}:{},transition:$?{duration:1,repeat:1/0}:{}}),p.jsx("span",{className:"text-sm font-semibold",style:{color:v},children:h}),_&&p.jsx(re.span,{initial:{scale:0,rotate:-20},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:300,delay:.2},className:"text-[10px] bg-emerald-500/15 text-emerald-400 px-2 py-0.5 rounded-full font-semibold border border-emerald-500/20",children:"WINNER"}),z&&p.jsx(Dw,{size:13,className:"text-red-400"})]}),p.jsxs("div",{className:"flex items-center gap-4 text-[11px] font-mono text-[var(--text-dim)]",children:[k!=null&&p.jsxs("span",{className:"flex items-center gap-1",children:[p.jsx(zn,{size:11,style:{color:v}}),p.jsx("span",{style:{color:v},children:k.toFixed(1)})," tok/s"]}),C!=null&&p.jsxs("span",{className:"flex items-center gap-1",children:[p.jsx(Ts,{size:11}),C.toFixed(0),"ms"]}),E!=null&&p.jsxs("span",{children:[E.toFixed(1),"s"]}),p.jsxs("span",{children:[x," tok"]}),L&&p.jsx(Lm,{size:13,className:"text-emerald-400"})]})]}),p.jsxs("div",{className:"relative h-10 bg-[var(--bg)] rounded-xl overflow-hidden border border-[var(--border)]",children:[p.jsx("div",{className:"absolute inset-0 flex",children:[...Array(20)].map((U,Z)=>p.jsx("div",{className:"flex-1 border-r border-white/[0.02] last:border-0"},Z))}),p.jsx(re.div,{className:"absolute inset-y-0 left-0 rounded-xl",style:{background:`linear-gradient(90deg, ${v}10, ${v}50)`,borderRight:`2px solid ${v}`},initial:{width:"0%"},animate:{width:`${Math.max(R*100,.5)}%`},transition:{type:"spring",mass:1,stiffness:80,damping:18}}),$&&p.jsx(re.div,{className:"absolute inset-y-0 w-32",style:{background:`linear-gradient(90deg, transparent, ${v}20, transparent)`,left:`${Math.max(R*100-8,0)}%`},animate:{opacity:[.2,.6,.2]},transition:{duration:.8,repeat:1/0}}),_&&L&&p.jsx(re.div,{className:"absolute inset-0 rounded-xl",animate:{boxShadow:[`inset 0 0 15px ${v}10`,`inset 0 0 30px ${v}25`,`inset 0 0 15px ${v}10`]},transition:{duration:2,repeat:1/0}}),R>.1&&p.jsxs(re.span,{className:"absolute right-3 top-1/2 -translate-y-1/2 text-[10px] font-mono font-bold",style:{color:v},initial:{opacity:0},animate:{opacity:.6},children:[(R*100).toFixed(0),"%"]})]})]},h)})})]}):null}function Im({model:n,index:s,winner:i}){var y;const[a,u]=A.useState(!1),f=$e(s),d=n.model===i,h=(y=n.output)==null?void 0:y.startsWith("[ERROR]"),m=[{icon:zn,label:"Speed",value:n.tokens_per_sec?`${n.tokens_per_sec.toFixed(1)}`:"--",unit:"tok/s"},{icon:Ts,label:"TTFT",value:n.ttft_ms?`${n.ttft_ms.toFixed(0)}`:"--",unit:"ms"},{icon:Ts,label:"Total",value:n.total_time_s?`${n.total_time_s.toFixed(1)}`:"--",unit:"s"},{icon:_m,label:"Quality",value:n.overall_score?`${n.overall_score.toFixed(1)}`:"--",unit:"/10"},{icon:Iw,label:"Tokens",value:n.total_tokens||"--",unit:""}];return p.jsx(re.div,{layout:!0,className:`rounded-2xl overflow-hidden transition-all ${d?"glow-winner":""}`,whileHover:{y:-2},transition:{type:"spring",stiffness:300,damping:25},children:p.jsxs("div",{className:`glass rounded-2xl ${d?"border-emerald-500/30":h?"border-red-500/20":""}`,children:[p.jsx("div",{className:"px-5 pt-4 pb-3 flex items-center justify-between",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-3 h-3 rounded-full",style:{background:f}}),p.jsx("h3",{className:"font-bold text-sm",style:{color:f},children:n.model}),d&&p.jsx(Pu,{size:16,className:"text-emerald-400"}),n.provider&&n.provider!=="ollama"&&p.jsx("span",{className:"text-[10px] bg-[var(--surface-2)] px-2 py-0.5 rounded-md text-[var(--text-dim)]",children:n.provider})]})}),p.jsx("div",{className:"px-5 pb-4 grid grid-cols-5 gap-3",children:m.map(({icon:v,label:x,value:k,unit:C})=>p.jsxs("div",{className:"text-center",children:[p.jsx(v,{size:12,className:"mx-auto text-[var(--text-muted)] mb-1"}),p.jsx("p",{className:"text-[10px] text-[var(--text-muted)]",children:x}),p.jsxs("p",{className:"text-xs font-mono font-bold text-[var(--text)]",children:[k,p.jsx("span",{className:"text-[var(--text-dim)] font-normal",children:C})]})]},x))}),n.quality_scores&&Object.keys(n.quality_scores).length>0&&p.jsx("div",{className:"px-5 pb-4",children:p.jsx("div",{className:"flex gap-1.5",children:Object.entries(n.quality_scores).map(([v,x])=>{const k=x/10*100,C=x>=8?"#10b981":x>=6?"#f59e0b":"#ef4444";return p.jsxs("div",{className:"flex-1",children:[p.jsxs("div",{className:"flex items-center justify-between mb-1",children:[p.jsx("span",{className:"text-[9px] text-[var(--text-muted)] capitalize",children:v.replace("_"," ")}),p.jsx("span",{className:"text-[10px] font-mono font-bold",style:{color:C},children:x})]}),p.jsx("div",{className:"h-1 bg-[var(--bg)] rounded-full overflow-hidden",children:p.jsx(re.div,{className:"h-full rounded-full",style:{background:C},initial:{width:0},animate:{width:`${k}%`},transition:{duration:.6,delay:.2}})})]},v)})})}),p.jsxs("button",{onClick:()=>u(!a),className:"w-full px-5 py-2.5 flex items-center justify-between text-[11px] text-[var(--text-muted)] hover:text-[var(--text-dim)] border-t border-[var(--border)] transition-colors",children:[p.jsx("span",{children:a?"Hide output":"Show output"}),a?p.jsx(Lw,{size:12}):p.jsx(Am,{size:12})]}),p.jsx(re.div,{initial:!1,animate:{height:a?"auto":0},transition:{type:"spring",stiffness:200,damping:25},className:"overflow-hidden",children:p.jsx("pre",{className:"px-5 pb-5 text-[11px] text-[var(--text-dim)] font-mono whitespace-pre-wrap leading-relaxed max-h-80 overflow-auto",children:n.output||"No output"})})]})})}function Zw({models:n,modelStates:s,result:i,isJudging:a}){const u=i!==null,f=Object.values(s).some(d=>(d==null?void 0:d.status)==="generating");return p.jsxs("div",{className:"space-y-5",children:[p.jsx(Xw,{models:n,modelStates:s,result:i}),p.jsxs(ao,{mode:"wait",children:[f&&!u&&p.jsxs(re.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"flex items-center justify-center gap-3 py-3",children:[p.jsx("div",{className:"w-4 h-4 border-2 border-[var(--primary)] border-t-transparent rounded-full animate-spin"}),p.jsx("span",{className:"text-xs text-[var(--text-dim)]",children:"Models generating..."})]},"gen"),a&&p.jsxs(re.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0},className:"flex items-center justify-center gap-3 py-3",children:[p.jsx("div",{className:"w-4 h-4 border-2 border-[var(--secondary)] border-t-transparent rounded-full animate-spin"}),p.jsx("span",{className:"text-xs text-[var(--secondary)]",children:"Judging quality..."})]},"judge"),u&&i.winner&&p.jsxs(re.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},transition:{type:"spring",stiffness:200,damping:20},className:"relative overflow-hidden rounded-2xl glow-winner",children:[p.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-r from-emerald-500/20 via-transparent to-emerald-500/20"}),p.jsxs("div",{className:"relative glass rounded-2xl p-6 text-center",children:[[...Array(16)].map((d,h)=>p.jsx(re.div,{className:"absolute w-1.5 h-1.5 rounded-full",style:{background:$e(h%8),left:`${5+h*6}%`,top:0},animate:{y:[0,200+Math.random()*150],x:[(Math.random()-.5)*80],opacity:[1,0],rotate:[0,360*(h%2?1:-1)]},transition:{duration:1.2+Math.random()*.8,delay:Math.random()*.4,ease:"easeOut"}},h)),p.jsxs(re.div,{className:"inline-flex items-center gap-4",animate:{boxShadow:["0 0 15px rgba(16,185,129,0.1)","0 0 30px rgba(16,185,129,0.2)","0 0 15px rgba(16,185,129,0.1)"]},transition:{duration:2.5,repeat:1/0},children:[p.jsx("div",{className:"w-12 h-12 rounded-xl bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center",children:p.jsx(Pu,{size:22,className:"text-emerald-400"})}),p.jsxs("div",{className:"text-left",children:[p.jsx("p",{className:"text-[10px] uppercase tracking-widest text-[var(--text-muted)]",children:"Winner"}),p.jsx("p",{className:"text-2xl font-bold text-emerald-400",children:i.winner})]})]}),i.judge_model&&p.jsxs("p",{className:"text-[10px] text-[var(--text-muted)] mt-3",children:["Judged by ",i.judge_model]})]})]},"winner")]}),u&&i.models&&p.jsx(re.div,{variants:Mu,initial:"hidden",animate:"show",className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:i.models.map((d,h)=>p.jsx(re.div,{variants:gr,children:p.jsx(Im,{model:d,index:h,winner:i.winner})},d.model))}),!f&&!u&&n.length===0&&p.jsxs("div",{className:"glass rounded-2xl p-16 text-center",children:[p.jsx(Eu,{size:40,className:"mx-auto text-[var(--text-muted)] mb-4"}),p.jsx("p",{className:"text-[var(--text-dim)]",children:"Waiting for comparison..."}),p.jsx("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:"Run arbiter with --dashboard to stream results here"})]})]})}function Tl({title:n,icon:s,subtitle:i,data:a,valueKey:u,unitLabel:f,higherBetter:d,accentColor:h}){if(!a.length)return null;const m=a.map(k=>k[u]||0),y=m.filter(k=>k>0),v=Math.max(...m,1),x=d?Math.max(...y,0):Math.min(...y.length?y:[1]);return p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx("div",{className:"w-6 h-6 rounded-lg flex items-center justify-center",style:{background:`${h}15`},children:p.jsx(s,{size:13,style:{color:h}})}),p.jsxs("div",{children:[p.jsx("h3",{className:"text-xs font-semibold text-[var(--text)]",children:n}),p.jsx("p",{className:"text-[10px] text-[var(--text-muted)]",children:i})]})]}),p.jsx("div",{className:"space-y-3",children:a.map((k,C)=>{const E=k[u]||0,R=d?v>0?E/v*100:0:E>0?x/E*100:0,_=$e(C),L=E>0&&E===x;return p.jsx("div",{className:"group",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("span",{className:"text-[11px] w-28 truncate font-mono",style:{color:_},children:k.model}),p.jsxs("div",{className:"flex-1 h-8 bg-[var(--bg)] rounded-lg overflow-hidden border border-[var(--border)] relative",children:[p.jsx(re.div,{className:"h-full rounded-lg relative",style:{background:L?`linear-gradient(90deg, ${_}20, ${h}60)`:`linear-gradient(90deg, ${_}10, ${_}40)`},initial:{width:0},animate:{width:`${Math.max(R,2)}%`},transition:{type:"spring",mass:1,stiffness:60,damping:15,delay:C*.12}}),L&&p.jsx(re.div,{className:"absolute inset-0 rounded-lg",animate:{opacity:[.1,.25,.1]},transition:{duration:2,repeat:1/0},style:{background:h}})]}),p.jsxs(re.span,{className:"text-xs font-mono font-bold w-28 text-right flex items-center justify-end gap-1.5",initial:{opacity:0,x:5},animate:{opacity:1,x:0},transition:{delay:.4+C*.1},children:[p.jsx("span",{style:{color:L?h:_},children:E>0?`${E.toFixed(u==="tokens_per_sec"?1:u==="ttft_ms"?0:1)}`:"--"}),p.jsx("span",{className:"text-[var(--text-muted)] text-[10px] font-normal",children:f}),L&&p.jsx("span",{className:"text-[9px]",style:{color:h},children:"BEST"})]})]})},k.model)})})]})}function Jw({models:n,modelStates:s,result:i}){const a=(i==null?void 0:i.models)||[];return a.length?p.jsxs("div",{className:"glass rounded-2xl p-6 space-y-8",children:[p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)]",children:"Performance Breakdown"}),p.jsx(Tl,{title:"Generation Speed",icon:zn,subtitle:"Tokens generated per second (higher is better)",data:a,valueKey:"tokens_per_sec",unitLabel:"tok/s",higherBetter:!0,accentColor:"#10b981"}),p.jsx(Tl,{title:"Time to First Token",icon:Ts,subtitle:"How fast the model starts responding (lower is better)",data:a,valueKey:"ttft_ms",unitLabel:"ms",higherBetter:!1,accentColor:"#00d4ff"}),p.jsx(Tl,{title:"Total Generation Time",icon:Kw,subtitle:"End-to-end time to complete (lower is better)",data:a,valueKey:"total_time_s",unitLabel:"s",higherBetter:!1,accentColor:"#7c3aed"})]}):p.jsxs("div",{className:"glass rounded-2xl p-12 text-center",children:[p.jsx(zn,{size:32,className:"mx-auto text-[var(--text-muted)] mb-3"}),p.jsx("p",{className:"text-sm text-[var(--text-dim)]",children:"Speed data appears after generation completes"})]})}const Yi=["correctness","completeness","clarity","code_quality"],e2=["Correctness","Completeness","Clarity","Code Quality"],yr=320,$l=yr/2,Wl=yr/2,cs=120,Hi=360/Yi.length;function Ki(n,s){const i=(n-90)*(Math.PI/180);return{x:$l+s*Math.cos(i),y:Wl+s*Math.sin(i)}}function t2({result:n,isJudging:s}){var u;const i=((u=n==null?void 0:n.models)==null?void 0:u.filter(f=>f.quality_scores&&Object.keys(f.quality_scores).length>0))||[],a=A.useMemo(()=>i.map((f,d)=>({d:Yi.map((m,y)=>Ki(y*Hi,cs*((f.quality_scores[m]||0)/10))).map((m,y)=>`${y?"L":"M"}${m.x},${m.y}`).join(" ")+"Z",color:$e(d),model:f.model,score:f.overall_score})),[i]);return s?p.jsxs("div",{className:"glass rounded-2xl p-12 flex flex-col items-center justify-center min-h-[400px]",children:[p.jsx("div",{className:"w-6 h-6 border-2 border-[var(--secondary)] border-t-transparent rounded-full animate-spin mb-4"}),p.jsx("p",{className:"text-sm text-[var(--text-dim)]",children:"Evaluating quality..."})]}):i.length?p.jsxs("div",{className:"space-y-5",children:[p.jsxs("div",{className:"glass rounded-2xl p-6",children:[p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)] mb-4",children:"Quality Radar"}),p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsxs("svg",{width:yr,height:yr,viewBox:`0 0 ${yr} ${yr}`,children:[[.25,.5,.75,1].map((f,d)=>p.jsx("circle",{cx:$l,cy:Wl,r:cs*f,fill:"none",stroke:"rgba(255,255,255,0.04)",strokeWidth:1},d)),Yi.map((f,d)=>{const h=Ki(d*Hi,cs);return p.jsx("line",{x1:$l,y1:Wl,x2:h.x,y2:h.y,stroke:"rgba(255,255,255,0.06)",strokeWidth:1},d)}),a.map(({d:f,color:d,model:h},m)=>p.jsx(re.path,{d:f,fill:`${d}12`,stroke:d,strokeWidth:2,strokeLinejoin:"round",initial:{opacity:0,pathLength:0},animate:{opacity:1,pathLength:1},transition:{duration:.8,delay:m*.2}},h)),i.map((f,d)=>Yi.map((h,m)=>{const y=Ki(m*Hi,cs*((f.quality_scores[h]||0)/10));return p.jsx(re.circle,{cx:y.x,cy:y.y,r:3.5,fill:$e(d),initial:{scale:0},animate:{scale:1},transition:{delay:.6+d*.1+m*.05}},`${f.model}-${h}`)})),e2.map((f,d)=>{const h=Ki(d*Hi,cs+28);return p.jsx("text",{x:h.x,y:h.y,textAnchor:"middle",dominantBaseline:"middle",className:"text-[10px]",fill:"var(--text-dim)",children:f},f)})]}),p.jsx("div",{className:"flex flex-wrap gap-5 mt-4 justify-center",children:i.map((f,d)=>p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-2.5 h-2.5 rounded-full",style:{background:$e(d)}}),p.jsx("span",{className:"text-xs font-mono",style:{color:$e(d)},children:f.model}),f.overall_score&&p.jsxs("span",{className:"text-[10px] font-mono text-[var(--text-muted)]",children:[f.overall_score.toFixed(1),"/10"]})]},f.model))})]})]}),p.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:i.map((f,d)=>p.jsx(Im,{model:f,index:d,winner:n==null?void 0:n.winner},f.model))})]}):p.jsxs("div",{className:"glass rounded-2xl p-12 text-center min-h-[400px] flex flex-col items-center justify-center",children:[p.jsx(Nu,{size:32,className:"text-[var(--text-muted)] mb-3"}),p.jsx("p",{className:"text-sm text-[var(--text-dim)]",children:"Quality scores appear after judging"}),p.jsx("p",{className:"text-[10px] text-[var(--text-muted)] mt-1",children:"Run without --no-judge to enable"})]})}const Xi=700,vs=480;function n2(n,s){const[i,a]=A.useState([]),u=A.useRef();return A.useEffect(()=>{if(!n.length)return;let f=n.map((m,y)=>{const v=y/n.length*Math.PI*2;return{x:Xi/2+140*Math.cos(v),y:vs/2+140*Math.sin(v),vx:0,vy:0}}),d=0;function h(){if(d>=80){a(f.map(({x:y,y:v})=>({x:y,y:v})));return}const m=1-d/80;f.forEach(y=>{y.vx+=(Xi/2-y.x)*.01*m,y.vy+=(vs/2-y.y)*.01*m});for(let y=0;y<f.length;y++)for(let v=y+1;v<f.length;v++){const x=f[v].x-f[y].x,k=f[v].y-f[y].y,C=Math.max(Math.sqrt(x*x+k*k),1),E=2500/(C*C)*m;f[y].vx-=x/C*E,f[y].vy-=k/C*E,f[v].vx+=x/C*E,f[v].vy+=k/C*E}s.forEach(({source:y,target:v,weight:x})=>{const k=f[v].x-f[y].x,C=f[v].y-f[y].y,E=Math.sqrt(k*k+C*C),R=(E-160)*.005*x*m;f[y].vx+=k/E*R,f[y].vy+=C/E*R,f[v].vx-=k/E*R,f[v].vy-=C/E*R}),f.forEach(y=>{y.vx*=.82,y.vy*=.82,y.x+=y.vx,y.y+=y.vy,y.x=Math.max(80,Math.min(Xi-80,y.x)),y.y=Math.max(80,Math.min(vs-80,y.y))}),d++,a(f.map(({x:y,y:v})=>({x:y,y:v}))),u.current=requestAnimationFrame(h)}return u.current=requestAnimationFrame(h),()=>cancelAnimationFrame(u.current)},[n.length]),i}function r2({result:n}){const[s,i]=A.useState(null),a=(n==null?void 0:n.models)||[],u=A.useMemo(()=>a.map((h,m)=>({id:h.model,score:h.overall_score||5,color:$e(m),isWinner:h.model===(n==null?void 0:n.winner),metrics:h})),[a,n==null?void 0:n.winner]),f=A.useMemo(()=>{const h=[];for(let m=0;m<a.length;m++)for(let y=m+1;y<a.length;y++){const v=Math.abs((a[m].overall_score||5)-(a[y].overall_score||5));h.push({source:m,target:y,weight:Math.max(1-v/10,.1)})}return h},[a]),d=n2(u,f);return a.length?p.jsxs("div",{className:"glass rounded-2xl p-6",children:[p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)] mb-4",children:"Model Graph"}),p.jsxs("svg",{width:"100%",height:vs,viewBox:`0 0 ${Xi} ${vs}`,children:[f.map(({source:h,target:m,weight:y},v)=>{const x=d[h],k=d[m];return x&&k?p.jsx(re.line,{x1:x.x,y1:x.y,x2:k.x,y2:k.y,stroke:"rgba(255,255,255,0.05)",strokeWidth:y*3,initial:{opacity:0},animate:{opacity:1},transition:{delay:.3+v*.05}},v):null}),u.map((h,m)=>{var k,C,E;const y=d[m];if(!y)return null;const v=18+h.score/10*22,x=s===h.id;return p.jsxs("g",{children:[h.isWinner&&p.jsx(re.circle,{cx:y.x,cy:y.y,fill:"none",stroke:h.color,strokeWidth:1.5,animate:{r:[v+5,v+14,v+5],opacity:[.15,.35,.15]},transition:{duration:2.5,repeat:1/0}}),p.jsx(re.circle,{cx:y.x,cy:y.y,fill:`${h.color}15`,stroke:h.color,strokeWidth:x?2.5:1.5,style:{cursor:"pointer"},initial:{r:0},animate:{r:x?v+4:v},transition:{type:"spring",stiffness:200,damping:15},onMouseEnter:()=>i(h.id),onMouseLeave:()=>i(null)}),p.jsx("text",{x:y.x,y:y.y-v-10,textAnchor:"middle",className:"text-[10px] font-medium pointer-events-none",fill:"var(--text-dim)",children:h.id}),p.jsx("text",{x:y.x,y:y.y+4,textAnchor:"middle",className:"text-sm font-bold font-mono pointer-events-none",fill:h.color,children:h.score.toFixed(1)}),x&&h.metrics&&p.jsx("foreignObject",{x:y.x+v+8,y:y.y-55,width:170,height:110,children:p.jsxs("div",{className:"glass rounded-lg p-3 text-[10px] space-y-1 shadow-2xl",children:[p.jsx("p",{className:"font-bold text-xs",style:{color:h.color},children:h.id}),p.jsxs("p",{className:"text-[var(--text-dim)]",children:["Speed: ",p.jsxs("span",{className:"text-[var(--text)] font-mono",children:[((k=h.metrics.tokens_per_sec)==null?void 0:k.toFixed(1))||"--"," tok/s"]})]}),p.jsxs("p",{className:"text-[var(--text-dim)]",children:["TTFT: ",p.jsxs("span",{className:"text-[var(--text)] font-mono",children:[((C=h.metrics.ttft_ms)==null?void 0:C.toFixed(0))||"--","ms"]})]}),p.jsxs("p",{className:"text-[var(--text-dim)]",children:["Quality: ",p.jsxs("span",{className:"text-[var(--text)] font-mono",children:[((E=h.metrics.overall_score)==null?void 0:E.toFixed(1))||"--","/10"]})]})]})})]},h.id)})]})]}):p.jsxs("div",{className:"glass rounded-2xl p-12 text-center min-h-[480px] flex flex-col items-center justify-center",children:[p.jsx(Om,{size:32,className:"text-[var(--text-muted)] mb-3"}),p.jsx("p",{className:"text-sm text-[var(--text-dim)]",children:"Graph view appears after results are ready"})]})}function s2({data:n,color:s,width:i=60,height:a=18}){if(!n||n.length<2)return null;const u=Math.min(...n),f=Math.max(...n),d=f-u||1,h=n.map((m,y)=>`${y/(n.length-1)*i},${a-(m-u)/d*a}`).join(" ");return p.jsx("svg",{width:i,height:a,className:"opacity-50",children:p.jsx("polyline",{points:h,fill:"none",stroke:s,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}function i2({data:n,result:s}){const i=(n==null?void 0:n.models)||[];return i.length?p.jsxs("div",{className:"glass rounded-2xl overflow-hidden",children:[p.jsxs("div",{className:"px-6 pt-5 pb-3",children:[p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)]",children:"ELO Rankings"}),p.jsx("p",{className:"text-[10px] text-[var(--text-muted)] mt-0.5",children:"Persistent across all comparisons"})]}),p.jsx("div",{className:"overflow-x-auto",children:p.jsxs("table",{className:"w-full",children:[p.jsx("thead",{children:p.jsx("tr",{className:"border-y border-[var(--border)]",children:["#","Model","ELO","Trend","W/L/D","Win%","Avg Speed","Quality","Runs"].map(a=>p.jsx("th",{className:"px-5 py-2.5 text-[10px] uppercase tracking-widest text-[var(--text-muted)] font-medium text-left first:text-right last:text-right",style:{textAlign:["#","ELO","Win%","Avg Speed","Quality","Runs"].includes(a)?"right":"left"},children:a},a))})}),p.jsx(iv,{children:p.jsx("tbody",{children:p.jsx(ao,{children:i.map((a,u)=>{var y;const f=$e(u),d=a.elo_history||[],h=d.length>=2?d[d.length-1]-d[d.length-2]:0,m=(y=s==null?void 0:s.models)==null?void 0:y.some(v=>v.model===a.name);return p.jsxs(re.tr,{layout:!0,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{type:"spring",stiffness:200,damping:20,delay:u*.04},className:`border-b border-[var(--border)]/50 ${m?"bg-[var(--primary)]/[0.03]":"hover:bg-white/[0.01]"}`,children:[p.jsx("td",{className:"px-5 py-3.5 text-right w-12",children:u===0?p.jsx(Pu,{size:14,className:"ml-auto text-amber-400"}):p.jsx("span",{className:"text-xs text-[var(--text-muted)]",children:u+1})}),p.jsx("td",{className:"px-5 py-3.5",children:p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:f}}),p.jsx("span",{className:"text-xs font-semibold",style:{color:f},children:a.name}),m&&p.jsx("span",{className:"text-[8px] bg-[var(--primary)]/10 text-[var(--primary)] px-1.5 py-0.5 rounded",children:"NOW"})]})}),p.jsx("td",{className:"px-5 py-3.5 text-right",children:p.jsxs("div",{className:"flex items-center justify-end gap-1.5",children:[p.jsx("span",{className:`text-xs font-mono font-bold ${a.elo>=1600?"text-emerald-400":a.elo<1400?"text-red-400":"text-[var(--text)]"}`,children:Math.round(a.elo)}),h!==0&&p.jsxs("span",{className:`text-[10px] font-mono flex items-center ${h>0?"text-emerald-400":"text-red-400"}`,children:[h>0?p.jsx(Mw,{size:10}):p.jsx(Ew,{size:10}),Math.abs(Math.round(h))]})]})}),p.jsx("td",{className:"px-5 py-3.5",children:p.jsx(s2,{data:d,color:f})}),p.jsx("td",{className:"px-5 py-3.5",children:p.jsxs("span",{className:"text-[11px] font-mono",children:[p.jsx("span",{className:"text-emerald-400",children:a.wins}),"/",p.jsx("span",{className:"text-red-400",children:a.losses}),"/",p.jsx("span",{className:"text-[var(--text-dim)]",children:a.draws})]})}),p.jsx("td",{className:"px-5 py-3.5 text-right",children:p.jsxs("div",{className:"flex items-center justify-end gap-2",children:[p.jsx("div",{className:"w-10 h-1.5 bg-[var(--bg)] rounded-full overflow-hidden",children:p.jsx(re.div,{className:"h-full rounded-full",style:{background:f},initial:{width:0},animate:{width:`${a.win_rate}%`},transition:{delay:.2+u*.04}})}),p.jsxs("span",{className:"text-[11px] font-mono text-[var(--text-dim)] w-8 text-right",children:[a.win_rate.toFixed(0),"%"]})]})}),p.jsx("td",{className:"px-5 py-3.5 text-right text-[11px] font-mono text-[var(--text-dim)]",children:a.avg_tokens_sec?`${a.avg_tokens_sec.toFixed(1)}`:"--"}),p.jsx("td",{className:"px-5 py-3.5 text-right text-[11px] font-mono text-[var(--text-dim)]",children:a.avg_quality?`${a.avg_quality.toFixed(1)}`:"--"}),p.jsx("td",{className:"px-5 py-3.5 text-right text-[11px] font-mono text-[var(--text-muted)]",children:a.total_comparisons})]},a.name)})})})})]})})]}):p.jsxs("div",{className:"glass rounded-2xl p-16 text-center flex flex-col items-center justify-center min-h-[400px]",children:[p.jsx(zm,{size:36,className:"text-[var(--text-muted)] mb-4"}),p.jsx("p",{className:"text-sm text-[var(--text-dim)]",children:"No leaderboard data yet"}),p.jsx("p",{className:"text-[10px] text-[var(--text-muted)] mt-1",children:"Run comparisons to build rankings"})]})}function o2({scoring:n}){var s;return!n||!((s=n.models)!=null&&s.length)?null:(n.models.find(i=>i.rank===1),n.models.filter(i=>i.rank!==1),p.jsxs(re.div,{variants:Mu,initial:"hidden",animate:"show",className:"glass rounded-2xl p-6 space-y-5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Uw,{size:14,className:"text-[var(--primary)]"}),p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)]",children:"Scoring Breakdown"})]}),p.jsx("span",{className:"text-[10px] font-mono text-[var(--text-muted)]",children:n.formula})]}),p.jsx("div",{className:"space-y-4",children:n.models.map((i,a)=>{var h;const u=$e(a),f=i.rank===1,d=((h=n.models[0])==null?void 0:h.composite)||1;return p.jsxs(re.div,{variants:gr,children:[p.jsxs("div",{className:"flex items-center justify-between mb-2",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:u}}),p.jsx("span",{className:"text-sm font-semibold",style:{color:u},children:i.model}),f&&p.jsx("span",{className:"text-[9px] bg-emerald-500/15 text-emerald-400 px-1.5 py-0.5 rounded font-bold border border-emerald-500/20",children:"#1"})]}),p.jsxs("span",{className:"text-lg font-bold font-mono",style:{color:f?"#10b981":u},children:[(i.composite*100).toFixed(0),p.jsx("span",{className:"text-[10px] text-[var(--text-muted)] font-normal",children:"/100"})]})]}),p.jsx("div",{className:"h-3 bg-[var(--bg)] rounded-full overflow-hidden border border-[var(--border)] mb-3",children:p.jsx(re.div,{className:"h-full rounded-full",style:{background:f?`linear-gradient(90deg, ${u}40, #10b981aa)`:`linear-gradient(90deg, ${u}20, ${u}60)`},initial:{width:0},animate:{width:`${i.composite/d*100}%`},transition:{type:"spring",mass:1,stiffness:60,damping:15,delay:a*.15}})}),p.jsx("div",{className:"grid grid-cols-3 gap-2",children:i.components.map(m=>{const y=m.rank===1&&n.models.length>1;return p.jsxs("div",{className:`rounded-lg px-3 py-2 text-center ${y?"bg-emerald-500/5 border border-emerald-500/15":"bg-[var(--bg)] border border-[var(--border)]"}`,children:[p.jsx("p",{className:"text-[9px] text-[var(--text-muted)] uppercase tracking-wider",children:m.metric}),p.jsx("p",{className:"text-sm font-mono font-bold mt-0.5",style:{color:y?"#10b981":"var(--text)"},children:m.raw}),p.jsxs("div",{className:"flex items-center justify-center gap-1 mt-1",children:[p.jsx("span",{className:"text-[9px] text-[var(--text-muted)]",children:m.weight}),y&&p.jsx(Gw,{size:9,className:"text-emerald-400"})]})]},m.metric)})})]},i.model)})}),n.winner_reason&&p.jsxs(re.div,{variants:gr,className:"bg-[var(--bg)] rounded-xl p-4 border border-[var(--border)]",children:[p.jsxs("p",{className:"text-[10px] uppercase tracking-widest text-[var(--text-muted)] mb-2",children:["Why ",n.winner," won"]}),p.jsx("p",{className:"text-xs text-[var(--text-dim)] leading-relaxed",children:n.winner_reason})]})]}))}function a2({onRunStarted:n,onModelsSelected:s}){var G;const[i,a]=A.useState([]),[u,f]=A.useState([]),[d,h]=A.useState(null),[m,y]=A.useState(""),[v,x]=A.useState(!0),[k,C]=A.useState(!1),[E,R]=A.useState(!0),[_,L]=A.useState(null);A.useEffect(()=>{z()},[]);async function z(){x(!0),L(null);try{const J=await(await fetch("/api/models")).json();a(J.models||[]),h(J.system||null);const se=(J.models||[]).filter(Re=>Re.fits_in_memory),ye=se.length>=2?se:J.models||[];let ge=[];ye.length>=2?ge=[ye[0].spec,ye[1].spec]:ye.length===1&&(ge=[ye[0].spec]),f(ge),s&&s(ge)}catch{L("Could not fetch models. Is Ollama running?")}x(!1)}function $(B){f(J=>{const se=J.includes(B)?J.filter(ye=>ye!==B):[...J,B];return s&&s(se),se})}async function K(){if(!(!u.length||!m.trim())){C(!0);try{(await(await fetch("/api/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:u,prompt:m.trim(),sequential:E})})).json()).status==="started"&&n&&n()}catch{L("Failed to start comparison")}C(!1)}}async function U(){if(u.length){C(!0);try{(await(await fetch("/api/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:u,prompt:"Write a Python function that reverses a linked list. Show your reasoning step by step.",sequential:E})})).json()).status==="started"&&n&&n()}catch{L("Failed to start benchmark")}C(!1)}}const Z={};return i.forEach(B=>{const J=B.provider||"unknown";Z[J]||(Z[J]=[]),Z[J].push(B)}),p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"glass rounded-2xl p-6",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Vm,{size:14,className:"text-[var(--primary)]"}),p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)]",children:"Select Models"}),d&&p.jsxs("span",{className:"text-[9px] text-[var(--text-muted)] font-mono ml-2",children:[d.available_ram_gb,"GB free / ",d.total_ram_gb,"GB total RAM"]})]}),p.jsxs("button",{onClick:z,className:"text-[10px] text-[var(--text-muted)] hover:text-[var(--text-dim)] flex items-center gap-1 transition-colors",children:[p.jsx(bw,{size:10}),"Refresh"]})]}),v?p.jsxs("div",{className:"flex items-center justify-center py-8 gap-2",children:[p.jsx(Ul,{size:16,className:"animate-spin text-[var(--primary)]"}),p.jsx("span",{className:"text-xs text-[var(--text-dim)]",children:"Discovering models..."})]}):_?p.jsxs("div",{className:"text-center py-6",children:[p.jsx("p",{className:"text-xs text-red-400 mb-2",children:_}),p.jsx("button",{onClick:z,className:"text-xs text-[var(--primary)] hover:underline",children:"Try again"})]}):i.length===0?p.jsxs("div",{className:"text-center py-8",children:[p.jsx("p",{className:"text-sm text-[var(--text-dim)] mb-2",children:"No models found"}),p.jsx("p",{className:"text-[10px] text-[var(--text-muted)]",children:"Install Ollama and pull models:"}),p.jsx("code",{className:"block text-[11px] font-mono text-[var(--primary)] mt-2 bg-[var(--bg)] rounded-lg px-3 py-2 border border-[var(--border)]",children:"ollama pull gemma4:e2b && ollama pull qwen3.5:4b"})]}):p.jsx("div",{className:"space-y-4",children:Object.entries(Z).map(([B,J])=>p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] uppercase tracking-widest text-[var(--text-muted)] mb-2",children:B}),p.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2",children:J.map((se,ye)=>{const ge=u.includes(se.spec),Re=i.indexOf(se),Fe=$e(Re);return p.jsxs(re.button,{onClick:()=>$(se.spec),className:`relative rounded-xl px-3 py-3 text-left transition-all border ${ge?"border-opacity-50 bg-opacity-10":"border-[var(--border)] bg-[var(--bg)] hover:bg-[var(--surface-2)]"}`,style:ge?{borderColor:`${Fe}50`,background:`${Fe}08`}:{},whileHover:{scale:1.02},whileTap:{scale:.98},children:[ge&&p.jsx(re.div,{initial:{scale:0},animate:{scale:1},className:"absolute top-2 right-2 w-4 h-4 rounded-full flex items-center justify-center",style:{background:Fe},children:p.jsx(_w,{size:10,className:"text-white"})}),p.jsx("p",{className:"text-xs font-semibold truncate",style:{color:ge?Fe:"var(--text)"},children:se.name}),p.jsxs("div",{className:"flex items-center gap-2 mt-1 flex-wrap",children:[se.size_gb&&p.jsxs("span",{className:"text-[9px] text-[var(--text-muted)]",children:[se.size_gb,"GB"]}),se.parameter_size&&p.jsx("span",{className:"text-[9px] text-[var(--text-muted)]",children:se.parameter_size}),se.multimodal&&p.jsx("span",{className:"text-[9px] text-[var(--primary)]",children:"Vision"}),se.memory_warning&&p.jsxs("span",{className:"text-[9px] text-amber-400",title:se.memory_warning,children:["⚠ ",se.fits_in_memory?"Tight":"Too large"]})]})]},se.spec)})})]},B))})]}),p.jsxs("div",{className:"glass rounded-2xl p-6",children:[p.jsx("label",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)] block mb-3",children:"Your Prompt"}),p.jsx("textarea",{value:m,onChange:B=>y(B.target.value),placeholder:"What do you want to test? e.g. 'explain how a hash table works' or 'write a merge sort in Python'",className:"w-full bg-[var(--bg)] border border-[var(--border)] rounded-xl px-4 py-3 text-sm text-[var(--text)] font-mono placeholder:text-[var(--text-muted)] focus:outline-none focus:border-[var(--primary)]/50 transition-colors resize-none",rows:3,onKeyDown:B=>{B.key==="Enter"&&(B.metaKey||B.ctrlKey)&&K()}}),p.jsxs("p",{className:"text-[9px] text-[var(--text-muted)] mt-1.5",children:[(G=navigator.platform)!=null&&G.includes("Mac")?"Cmd":"Ctrl","+Enter to run"]})]}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsxs("button",{onClick:()=>R(!E),className:`flex items-center gap-2 text-xs px-3 py-1.5 rounded-lg border transition-all ${E?"border-[var(--primary)]/30 bg-[var(--primary)]/5 text-[var(--primary)]":"border-[var(--border)] text-[var(--text-dim)] hover:text-[var(--text)]"}`,children:[p.jsx("div",{className:`w-7 h-4 rounded-full transition-colors relative ${E?"bg-[var(--primary)]":"bg-[var(--surface-3)]"}`,children:p.jsx(re.div,{className:"absolute top-0.5 w-3 h-3 bg-white rounded-full",animate:{left:E?14:2},transition:{type:"spring",stiffness:300,damping:20}})}),"Sequential (8GB friendly)"]}),p.jsxs("span",{className:"text-[10px] text-[var(--text-muted)]",children:[u.length," model",u.length!==1?"s":""," selected"]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs(re.button,{onClick:U,disabled:k||!u.length,className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-xs font-medium border border-[var(--secondary)]/30 text-[var(--secondary)] hover:bg-[var(--secondary)]/10 disabled:opacity-30 disabled:cursor-not-allowed transition-all",whileHover:{scale:1.02},whileTap:{scale:.98},children:[p.jsx(io,{size:14}),"Quick Test"]}),p.jsxs(re.button,{onClick:K,disabled:k||!u.length||!m.trim(),className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-xs font-semibold bg-gradient-to-r from-[var(--primary)] to-[var(--secondary)] text-white disabled:opacity-30 disabled:cursor-not-allowed transition-all shadow-lg shadow-[var(--primary)]/20",whileHover:{scale:1.03,boxShadow:"0 8px 30px rgba(0, 212, 255, 0.3)"},whileTap:{scale:.97},children:[k?p.jsx(Ul,{size:14,className:"animate-spin"}):p.jsx(Fm,{size:14}),k?"Starting...":"Run Comparison"]})]})]})]})}const Xh={instruction_following:Fw,code_generation:zw,factual_accuracy:Vw,reasoning:_m,consistency:Bw,pressure_resistance:Ww,speed:zn,context_recall:$w};function l2({score:n,color:s}){return p.jsx("div",{className:"h-1.5 bg-[var(--bg)] rounded-full overflow-hidden flex-1",children:p.jsx(re.div,{className:"h-full rounded-full",style:{background:n>=70?"#10b981":n>=50?"#f59e0b":"#ef4444"},initial:{width:0},animate:{width:`${n}%`},transition:{duration:.6}})})}function u2({selectedModels:n}){var m,y;const[s,i]=A.useState(!1),[a,u]=A.useState(!1),[f,d]=A.useState(null);async function h(){if(n.length){i(!0),d(null);try{const x=await(await fetch("/api/benchmark",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:n,quick:a})})).json();d(x.results||[x])}catch(v){console.error(v)}i(!1)}}return p.jsxs("div",{className:"space-y-5",children:[p.jsxs("div",{className:"glass rounded-2xl p-6",children:[p.jsx("div",{className:"flex items-center justify-between mb-4",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-9 h-9 rounded-xl bg-[var(--secondary)]/10 border border-[var(--secondary)]/20 flex items-center justify-center",children:p.jsx(io,{size:18,className:"text-[var(--secondary)]"})}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-sm font-bold text-[var(--text)]",children:"Benchmark Suite"}),p.jsxs("p",{className:"text-[10px] text-[var(--text-muted)]",children:[a?"7":"17"," automated tests, programmatic verification, no LLM judge"]})]})]})}),p.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2 mb-5",children:Object.entries(Xh).map(([v,x])=>{const k={instruction_following:"Instructions",code_generation:"Coding",factual_accuracy:"Accuracy",reasoning:"Reasoning",consistency:"Consistency",pressure_resistance:"Pressure",speed:"Speed",context_recall:"Recall"};return p.jsxs("div",{className:"bg-[var(--bg)] rounded-lg px-3 py-2.5 border border-[var(--border)] text-center",children:[p.jsx(x,{size:14,className:"mx-auto text-[var(--text-dim)] mb-1"}),p.jsx("p",{className:"text-[10px] text-[var(--text-dim)]",children:k[v]})]},v)})}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("button",{onClick:()=>u(!a),className:`flex items-center gap-2 text-xs px-3 py-1.5 rounded-lg border transition-all ${a?"border-[var(--warning)]/30 bg-[var(--warning)]/5 text-[var(--warning)]":"border-[var(--border)] text-[var(--text-dim)]"}`,children:[p.jsx(Ts,{size:12}),a?"Quick (7 tests)":"Full (17 tests)"]}),p.jsxs("span",{className:"text-[10px] text-[var(--text-muted)]",children:[n.length," model",n.length!==1?"s":""," selected"]})]}),p.jsxs(re.button,{onClick:h,disabled:s||!n.length,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-xs font-semibold bg-gradient-to-r from-[var(--secondary)] to-[var(--primary)] text-white disabled:opacity-30 transition-all shadow-lg shadow-[var(--secondary)]/20",whileHover:{scale:1.03},whileTap:{scale:.97},children:[s?p.jsx(Ul,{size:14,className:"animate-spin"}):p.jsx(Fm,{size:14}),s?"Running...":"Run Benchmark"]})]})]}),s&&p.jsxs(re.div,{initial:{opacity:0},animate:{opacity:1},className:"glass rounded-2xl p-8 text-center",children:[p.jsx("div",{className:"w-10 h-10 mx-auto border-2 border-[var(--secondary)] border-t-transparent rounded-full animate-spin mb-4"}),p.jsxs("p",{className:"text-sm text-[var(--text-dim)]",children:["Running ",a?7:17," tests per model..."]}),p.jsx("p",{className:"text-[10px] text-[var(--text-muted)] mt-1",children:"This may take a few minutes"})]}),f&&p.jsxs(re.div,{variants:Mu,initial:"hidden",animate:"show",className:"space-y-5",children:[p.jsxs(re.div,{variants:gr,className:"glass rounded-2xl p-6",children:[p.jsx("h3",{className:"text-[11px] uppercase tracking-widest text-[var(--text-muted)] mb-4",children:"Overall Results"}),p.jsx("div",{className:"space-y-4",children:f.map((v,x)=>{const k=$e(x),C=v.overall_score===Math.max(...f.map(E=>E.overall_score));return p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center justify-between mb-2",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-2.5 h-2.5 rounded-full",style:{background:k}}),p.jsx("span",{className:"text-sm font-semibold",style:{color:k},children:v.model}),C&&f.length>1&&p.jsx("span",{className:"text-[9px] bg-emerald-500/15 text-emerald-400 px-1.5 py-0.5 rounded-full font-bold border border-emerald-500/20",children:"BEST"})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("span",{className:"text-xs text-[var(--text-dim)]",children:[v.total_passed,"/",v.total_tests," passed"]}),p.jsxs("span",{className:`text-lg font-bold font-mono ${v.overall_score>=70?"text-emerald-400":v.overall_score>=50?"text-amber-400":"text-red-400"}`,children:[v.overall_score,"%"]})]})]}),p.jsx("div",{className:"h-2.5 bg-[var(--bg)] rounded-full overflow-hidden border border-[var(--border)]",children:p.jsx(re.div,{className:"h-full rounded-full",style:{background:v.overall_score>=70?`linear-gradient(90deg, ${k}60, #10b981aa)`:`linear-gradient(90deg, ${k}40, ${k}80)`},initial:{width:0},animate:{width:`${v.overall_score}%`},transition:{duration:.8,delay:x*.15}})})]},v.model)})})]}),p.jsxs(re.div,{variants:gr,className:"glass rounded-2xl p-6",children:[p.jsx("h3",{className:"text-[11px] uppercase tracking-widest text-[var(--text-muted)] mb-4",children:"By Category"}),p.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:Object.entries(((m=f[0])==null?void 0:m.category_scores)||{}).map(([v,x])=>{const k=Xh[v]||io,C={instruction_following:"Instructions",code_generation:"Coding",factual_accuracy:"Accuracy",reasoning:"Reasoning",consistency:"Consistency",pressure_resistance:"Pressure",speed:"Speed",context_recall:"Recall"};return p.jsxs("div",{className:"bg-[var(--bg)] rounded-xl p-3 border border-[var(--border)]",children:[p.jsx(k,{size:14,className:"text-[var(--text-dim)] mb-2"}),p.jsx("p",{className:"text-[10px] text-[var(--text-muted)]",children:C[v]||v}),p.jsx("div",{className:"mt-2 space-y-1.5",children:f.map((E,R)=>p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:$e(R)}}),p.jsx(l2,{score:E.category_scores[v]||0}),p.jsxs("span",{className:"text-[9px] font-mono text-[var(--text-dim)] w-8 text-right",children:[(E.category_scores[v]||0).toFixed(0),"%"]})]},E.model))})]},v)})})]}),p.jsxs(re.div,{variants:gr,className:"glass rounded-2xl p-6",children:[p.jsx("h3",{className:"text-[11px] uppercase tracking-widest text-[var(--text-muted)] mb-4",children:"All Tests"}),p.jsx("div",{className:"overflow-x-auto",children:p.jsxs("table",{className:"w-full",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-[var(--border)]",children:[p.jsx("th",{className:"text-left text-[10px] text-[var(--text-muted)] uppercase pb-2 pr-4",children:"Test"}),p.jsx("th",{className:"text-left text-[10px] text-[var(--text-muted)] uppercase pb-2 pr-4",children:"Category"}),f.map((v,x)=>p.jsx("th",{className:"text-right text-[10px] uppercase pb-2 px-2",style:{color:$e(x)},children:v.model},v.model))]})}),p.jsx("tbody",{children:(((y=f[0])==null?void 0:y.results)||[]).map((v,x)=>p.jsxs("tr",{className:"border-b border-[var(--border)]/30",children:[p.jsx("td",{className:"py-2 pr-4 text-xs text-[var(--text)]",children:v.name}),p.jsx("td",{className:"py-2 pr-4 text-[10px] text-[var(--text-muted)] capitalize",children:v.category.replace(/_/g," ")}),f.map((k,C)=>{const E=k.results[x];return E?p.jsx("td",{className:"py-2 px-2 text-right",children:p.jsxs("div",{className:"flex items-center justify-end gap-1.5",children:[E.passed?p.jsx(Lm,{size:12,className:"text-emerald-400"}):p.jsx(Ow,{size:12,className:"text-red-400"}),p.jsxs("span",{className:`text-[11px] font-mono ${E.score_pct>=70?"text-emerald-400":E.score_pct>=50?"text-amber-400":"text-red-400"}`,children:[E.score_pct,"%"]})]})},k.model):p.jsx("td",{},C)})]},v.name))})]})})]})]})]})}const c2=[{title:"Install a model",icon:Vm,content:`Arbiter tests LLMs that run on your machine via Ollama. If you haven't already:
|
|
249
|
+
|
|
250
|
+
1. Install Ollama: https://ollama.com/download
|
|
251
|
+
2. Pull a model: ollama pull qwen3.5:4b
|
|
252
|
+
3. Pull a second to compare: ollama pull gemma3
|
|
253
|
+
|
|
254
|
+
Models are downloaded once and run locally. Your prompts never leave your machine.`},{title:"Run your first comparison",icon:zn,content:`From the Arena tab, select 2 models, type a prompt, and hit "Run Comparison".
|
|
255
|
+
|
|
256
|
+
Arbiter sends the same prompt to both models simultaneously (or one at a time in sequential mode), measures speed, and shows you the results side by side.
|
|
257
|
+
|
|
258
|
+
The winner is determined by a transparent composite score: Speed (30%) + Quality (50%) + Responsiveness (20%).`},{title:"Run the benchmark suite",icon:io,content:`The Benchmark tab runs 20 automated tests across 8 categories:
|
|
259
|
+
|
|
260
|
+
- Instruction Following: does it do exactly what you asked?
|
|
261
|
+
- Code Generation: can it fix bugs and build data structures?
|
|
262
|
+
- Factual Accuracy: does it hallucinate or give real facts?
|
|
263
|
+
- Reasoning: multi-step logic and math
|
|
264
|
+
- Consistency: same question asked 3 ways = same answer?
|
|
265
|
+
- Pressure Resistance: does it cave when you push back?
|
|
266
|
+
- Speed: tokens per second on your hardware
|
|
267
|
+
- Context Recall: find hidden info in longer text
|
|
268
|
+
|
|
269
|
+
Every test has a programmatic pass/fail check. No LLM judges another LLM.`},{title:"Understanding scores",icon:Nu,content:`Scores are out of 100. Here's what they mean:
|
|
270
|
+
|
|
271
|
+
90-100: Excellent. The model aced this category.
|
|
272
|
+
70-89: Good. Minor issues but generally reliable.
|
|
273
|
+
50-69: Mixed. Some tests passed, some failed.
|
|
274
|
+
Below 50: Weak. The model struggles here.
|
|
275
|
+
|
|
276
|
+
The Overall score is the average across all categories. Different models have different strengths. A model that scores 40% overall might still be the best at coding.`}],d2=[{q:"Why is my model so slow?",a:`Check your available RAM. The model file size should be well under your available memory. On an 8GB Mac, stick to models under 4GB (like qwen3.5:4b at 3.4GB). Larger models cause memory swapping which makes everything crawl.
|
|
277
|
+
|
|
278
|
+
Also: close other heavy apps (Chrome tabs, Plex, etc.) before running benchmarks.`},{q:'What does "Sequential mode" do?',a:"Sequential mode runs one model at a time instead of in parallel. This uses less memory because only one model is loaded at once. Essential for machines with 8GB RAM. Slightly slower overall but each model gets your full resources."},{q:"Can I test cloud models (GPT-4, Claude, Gemini)?",a:`Yes! Set the API key as an environment variable, then use the provider prefix:
|
|
279
|
+
|
|
280
|
+
export OPENAI_API_KEY=sk-...
|
|
281
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
282
|
+
export GOOGLE_API_KEY=AI...
|
|
283
|
+
|
|
284
|
+
Then in the terminal: arbiter run openai:gpt-4o anthropic:claude-sonnet-4-20250514 "your prompt"
|
|
285
|
+
|
|
286
|
+
Cloud models aren't shown in the dashboard model picker yet but work via CLI.`},{q:"What does the SWE test do?",a:`SWE (Software Engineering) tests give models real buggy code and ask them to fix it. The fix is then run through a pytest test suite to verify it actually works. This is similar to how SWE-bench evaluates models, but runs entirely on your machine.
|
|
287
|
+
|
|
288
|
+
Use: arbiter swe (from terminal)`},{q:"How is the winner decided?",a:`For "Run Comparison": a weighted formula -- Speed (30%) + Quality (50%) + Responsiveness (20%). Quality comes from an optional LLM judge. You see every component score.
|
|
289
|
+
|
|
290
|
+
For "Benchmark": the overall percentage of tests passed. Each test is pass/fail with programmatic verification (no LLM judging).
|
|
291
|
+
|
|
292
|
+
The ELO leaderboard tracks rankings over many comparisons using the chess rating system.`},{q:"Is my data sent anywhere?",a:"No. Everything runs locally. Your prompts, model outputs, and benchmark results never leave your machine. Arbiter connects only to your local Ollama instance (or cloud APIs if you explicitly set API keys)."},{q:"How do I add more models?",a:`Pull them with Ollama:
|
|
293
|
+
|
|
294
|
+
ollama pull llama3.2
|
|
295
|
+
ollama pull phi4
|
|
296
|
+
ollama pull mistral
|
|
297
|
+
|
|
298
|
+
Then refresh the model list in the dashboard. Arbiter works with any model Ollama supports.`}];function Zh({title:n,children:s,defaultOpen:i=!1,icon:a}){const[u,f]=A.useState(i);return p.jsxs("div",{className:"border-b border-[var(--border)] last:border-0",children:[p.jsxs("button",{onClick:()=>f(!u),className:"w-full flex items-center gap-3 py-3 text-left hover:bg-white/[0.02] transition-colors",children:[a&&p.jsx(a,{size:14,className:"text-[var(--primary)] shrink-0"}),p.jsx("span",{className:"text-sm font-medium text-[var(--text)] flex-1",children:n}),u?p.jsx(Am,{size:14,className:"text-[var(--text-muted)]"}):p.jsx(Aw,{size:14,className:"text-[var(--text-muted)]"})]}),p.jsx(ao,{children:u&&p.jsx(re.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:p.jsx("div",{className:"pb-4 pl-7 text-xs text-[var(--text-dim)] leading-relaxed whitespace-pre-line",children:s})})})]})}function f2(){return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"glass rounded-2xl p-6",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx(Rw,{size:14,className:"text-[var(--primary)]"}),p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)]",children:"Getting Started"})]}),p.jsx("div",{children:c2.map((n,s)=>p.jsx(Zh,{title:n.title,icon:n.icon,defaultOpen:s===0,children:n.content},s))})]}),p.jsxs("div",{className:"glass rounded-2xl p-6",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx(Dm,{size:14,className:"text-[var(--secondary)]"}),p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)]",children:"FAQ"})]}),p.jsx("div",{children:d2.map((n,s)=>p.jsx(Zh,{title:n.q,children:n.a},s))})]}),p.jsxs("div",{className:"glass rounded-2xl p-6",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx(Hw,{size:14,className:"text-emerald-400"}),p.jsx("h2",{className:"text-[11px] font-semibold uppercase tracking-widest text-[var(--text-muted)]",children:"Terminal Commands"})]}),p.jsx("div",{className:"space-y-2",children:[["arbiter dashboard","Open this dashboard"],['arbiter run "prompt"',"Quick comparison with auto-detected models"],["arbiter benchmark","Run the full 20-test suite"],["arbiter benchmark --quick","Run 8 key tests (faster)"],["arbiter swe","SWE-bench style code testing"],["arbiter discover","List all installed models"],["arbiter leaderboard","View persistent ELO rankings"]].map(([n,s])=>p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("code",{className:"text-[11px] font-mono text-[var(--primary)] bg-[var(--bg)] rounded px-2 py-1 border border-[var(--border)] shrink-0",children:n}),p.jsx("span",{className:"text-[10px] text-[var(--text-dim)]",children:s})]},n))})]})]})}const h2=`${window.location.protocol==="https:"?"wss":"ws"}://${window.location.host}/ws`,p2=[{id:"arena",label:"Arena",icon:Eu},{id:"benchmark",label:"Benchmark",icon:Rm},{id:"speed",label:"Speed",icon:zn},{id:"quality",label:"Quality",icon:Nu},{id:"graph",label:"Graph",icon:Om},{id:"rankings",label:"Rankings",icon:zm},{id:"help",label:"Help",icon:Dm}];function m2({status:n}){const s={connected:"bg-emerald-400",connecting:"bg-amber-400 animate-pulse",disconnected:"bg-red-400"};return p.jsx("span",{className:`w-2 h-2 rounded-full ${s[n]||s.disconnected}`})}function y2({onRunStarted:n,onModelsSelected:s}){return p.jsx(re.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},children:p.jsx(a2,{onRunStarted:n,onModelsSelected:s})})}function g2(){const{status:n,config:s,modelStates:i,result:a,leaderboard:u,isJudging:f,reconnect:d}=Qw(h2),[h,m]=A.useState("arena"),[y,v]=A.useState([]),x=(s==null?void 0:s.models)||[],k=(s==null?void 0:s.prompt)||"",C=!k&&!a&&x.length===0,E=A.useMemo(()=>{const R=x.length,_=Object.values(i).filter(z=>(z==null?void 0:z.status)==="done"||(z==null?void 0:z.status)==="error").length,L=Object.values(i).some(z=>(z==null?void 0:z.status)==="generating");return{total:R,done:_,generating:L,complete:a!==null}},[x,i,a]);return p.jsxs("div",{className:"min-h-screen relative",children:[p.jsx("div",{className:"ambient-glow",style:{background:"var(--primary)",top:"-200px",left:"-100px"}}),p.jsx("div",{className:"ambient-glow",style:{background:"var(--secondary)",bottom:"-200px",right:"-100px"}}),p.jsx("header",{className:"sticky top-0 z-50 glass border-b border-[var(--border)]",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-14 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(re.div,{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-[var(--primary)] to-[var(--secondary)] flex items-center justify-center",whileHover:{rotate:15,scale:1.1},transition:{type:"spring",stiffness:300},children:p.jsx(Eu,{size:16,className:"text-white"})}),p.jsx("span",{className:"text-base font-bold tracking-tight gradient-text",children:"Arbiter"})]}),p.jsxs("div",{className:"flex items-center gap-4",children:[E.generating&&!E.complete&&p.jsxs(re.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},className:"flex items-center gap-2",children:[p.jsx(Rm,{size:14,className:"text-[var(--primary)] animate-pulse"}),p.jsxs("span",{className:"text-xs text-[var(--text-dim)]",children:[E.done,"/",E.total," models done"]})]}),E.complete&&p.jsx(re.span,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"text-xs text-emerald-400 font-medium",children:"Complete"}),p.jsxs("div",{className:"flex items-center gap-1.5",children:[p.jsx(m2,{status:n}),p.jsx("span",{className:"text-[11px] text-[var(--text-muted)]",children:n})]})]})]})}),k&&p.jsx("div",{className:"max-w-7xl mx-auto px-6 pt-5",children:p.jsxs(re.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},transition:{delay:.1},className:"glass rounded-xl px-5 py-3.5",children:[p.jsxs("div",{className:"flex items-start gap-3",children:[p.jsx("span",{className:"text-[10px] uppercase tracking-widest text-[var(--text-muted)] mt-0.5 shrink-0",children:"Prompt"}),p.jsx("p",{className:"text-sm text-[var(--text)] font-mono leading-relaxed",children:k.length>300?k.slice(0,300)+"...":k})]}),x.length>0&&p.jsxs("div",{className:"flex items-center gap-2 mt-2.5 pt-2.5 border-t border-[var(--border)]",children:[p.jsx("span",{className:"text-[10px] uppercase tracking-widest text-[var(--text-muted)]",children:"Models"}),p.jsx("div",{className:"flex gap-1.5",children:x.map((R,_)=>p.jsx("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{color:$e(_),background:`${$e(_)}15`,border:`1px solid ${$e(_)}30`},children:R},R))})]})]})}),p.jsx("nav",{className:"max-w-7xl mx-auto px-6 pt-5",children:p.jsx("div",{className:"flex gap-0.5 bg-[var(--surface)] rounded-xl p-1 border border-[var(--border)]",children:p2.map(R=>{const _=R.icon,L=h===R.id;return p.jsxs(re.button,{onClick:()=>m(R.id),className:`relative flex items-center gap-2 px-4 py-2 rounded-lg text-xs font-medium transition-colors ${L?"text-white":"text-[var(--text-dim)] hover:text-[var(--text)]"}`,whileHover:{scale:L?1:1.02},whileTap:{scale:.98},children:[L&&p.jsx(re.div,{layoutId:"activeTab",className:"absolute inset-0 bg-[var(--surface-2)] rounded-lg border border-[var(--border)]",transition:{type:"spring",stiffness:300,damping:25}}),p.jsxs("span",{className:"relative z-10 flex items-center gap-2",children:[p.jsx(_,{size:14}),R.label]})]},R.id)})})}),p.jsx("main",{className:"max-w-7xl mx-auto px-6 py-6 relative z-10",children:p.jsx(ao,{mode:"wait",children:p.jsxs(re.div,{...Yw,children:[h==="arena"&&(C?p.jsx(y2,{onRunStarted:d,onModelsSelected:v}):p.jsxs("div",{className:"space-y-5",children:[p.jsx(Zw,{models:x,modelStates:i,result:a,isJudging:f}),(a==null?void 0:a.scoring)&&p.jsx(o2,{scoring:a.scoring})]})),h==="benchmark"&&p.jsx(u2,{selectedModels:y}),h==="speed"&&p.jsx(Jw,{models:x,modelStates:i,result:a}),h==="quality"&&p.jsx(t2,{result:a,isJudging:f}),h==="graph"&&p.jsx(r2,{result:a}),h==="rankings"&&p.jsx(i2,{data:u,result:a}),h==="help"&&p.jsx(f2,{})]},h)})}),p.jsx("footer",{className:"border-t border-[var(--border)] mt-12",children:p.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-5 flex items-center justify-between",children:[p.jsxs("p",{className:"text-[11px] text-[var(--text-muted)]",children:["Built by ",p.jsx("span",{className:"gradient-text font-medium",children:"BasaltLabs"})]}),p.jsx("p",{className:"text-[11px] text-[var(--text-muted)]",children:"The final word on your local models"})]})})]})}Kg.createRoot(document.getElementById("root")).render(p.jsx(Ig.StrictMode,{children:p.jsx(g2,{})}));
|