rivet-design 0.1.0
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.
- package/LICENSE.md +674 -0
- package/README.md +112 -0
- package/bin/rivet.js +27 -0
- package/dist/index-core.d.ts +15 -0
- package/dist/index-core.d.ts.map +1 -0
- package/dist/index-core.js +38 -0
- package/dist/index-core.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +217 -0
- package/dist/index.js.map +1 -0
- package/dist/routes/components.d.ts +2 -0
- package/dist/routes/components.d.ts.map +1 -0
- package/dist/routes/components.js +58 -0
- package/dist/routes/components.js.map +1 -0
- package/dist/routes/git.d.ts +3 -0
- package/dist/routes/git.d.ts.map +1 -0
- package/dist/routes/git.js +52 -0
- package/dist/routes/git.js.map +1 -0
- package/dist/routes/modifications.d.ts +3 -0
- package/dist/routes/modifications.d.ts.map +1 -0
- package/dist/routes/modifications.js +241 -0
- package/dist/routes/modifications.js.map +1 -0
- package/dist/routes/selection.d.ts +2 -0
- package/dist/routes/selection.d.ts.map +1 -0
- package/dist/routes/selection.js +38 -0
- package/dist/routes/selection.js.map +1 -0
- package/dist/scripts/selection-script.js +724 -0
- package/dist/server.d.ts +9 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +93 -0
- package/dist/server.js.map +1 -0
- package/dist/services/ComponentSearchService.d.ts +12 -0
- package/dist/services/ComponentSearchService.d.ts.map +1 -0
- package/dist/services/ComponentSearchService.js +61 -0
- package/dist/services/ComponentSearchService.js.map +1 -0
- package/dist/services/FileModificationService.d.ts +29 -0
- package/dist/services/FileModificationService.d.ts.map +1 -0
- package/dist/services/FileModificationService.js +82 -0
- package/dist/services/FileModificationService.js.map +1 -0
- package/dist/services/LLMService.d.ts +60 -0
- package/dist/services/LLMService.d.ts.map +1 -0
- package/dist/services/LLMService.js +201 -0
- package/dist/services/LLMService.js.map +1 -0
- package/dist/services/LocalGitService.d.ts +33 -0
- package/dist/services/LocalGitService.d.ts.map +1 -0
- package/dist/services/LocalGitService.js +252 -0
- package/dist/services/LocalGitService.js.map +1 -0
- package/dist/services/ProjectDetectionService.d.ts +26 -0
- package/dist/services/ProjectDetectionService.d.ts.map +1 -0
- package/dist/services/ProjectDetectionService.js +147 -0
- package/dist/services/ProjectDetectionService.js.map +1 -0
- package/dist/services/ScriptInjectionService.d.ts +8 -0
- package/dist/services/ScriptInjectionService.d.ts.map +1 -0
- package/dist/services/ScriptInjectionService.js +178 -0
- package/dist/services/ScriptInjectionService.js.map +1 -0
- package/dist/services/SessionService.d.ts +26 -0
- package/dist/services/SessionService.d.ts.map +1 -0
- package/dist/services/SessionService.js +141 -0
- package/dist/services/SessionService.js.map +1 -0
- package/dist/types/change-types.d.ts +93 -0
- package/dist/types/change-types.d.ts.map +1 -0
- package/dist/types/change-types.js +4 -0
- package/dist/types/change-types.js.map +1 -0
- package/dist/types/proxy-types.d.ts +34 -0
- package/dist/types/proxy-types.d.ts.map +1 -0
- package/dist/types/proxy-types.js +3 -0
- package/dist/types/proxy-types.js.map +1 -0
- package/dist/types/types.d.ts +15 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/types.js +3 -0
- package/dist/types/types.js.map +1 -0
- package/dist/utils/logger.d.ts +20 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +51 -0
- package/dist/utils/logger.js.map +1 -0
- package/package.json +86 -0
- package/src/ui/dist/assets/main-DuNgkeFM.js +105 -0
- package/src/ui/dist/assets/main-DzZ9GWvo.css +1 -0
- package/src/ui/dist/index.html +14 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
function Vg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var _g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yd={exports:{}},_s={},vd={exports:{}},j={};/**
|
|
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 li=Symbol.for("react.element"),Ig=Symbol.for("react.portal"),Og=Symbol.for("react.fragment"),jg=Symbol.for("react.strict_mode"),Fg=Symbol.for("react.profiler"),zg=Symbol.for("react.provider"),Bg=Symbol.for("react.context"),$g=Symbol.for("react.forward_ref"),Ug=Symbol.for("react.suspense"),Wg=Symbol.for("react.memo"),bg=Symbol.for("react.lazy"),Uu=Symbol.iterator;function Hg(e){return e===null||typeof e!="object"?null:(e=Uu&&e[Uu]||e["@@iterator"],typeof e=="function"?e:null)}var wd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xd=Object.assign,Sd={};function rr(e,t,n){this.props=e,this.context=t,this.refs=Sd,this.updater=n||wd}rr.prototype.isReactComponent={};rr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};rr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cd(){}Cd.prototype=rr.prototype;function dl(e,t,n){this.props=e,this.context=t,this.refs=Sd,this.updater=n||wd}var pl=dl.prototype=new Cd;pl.constructor=dl;xd(pl,rr.prototype);pl.isPureReactComponent=!0;var Wu=Array.isArray,Td=Object.prototype.hasOwnProperty,hl={current:null},Ed={key:!0,ref:!0,__self:!0,__source:!0};function Pd(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Td.call(t,r)&&!Ed.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:li,type:e,key:s,ref:o,props:i,_owner:hl.current}}function Kg(e,t){return{$$typeof:li,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ml(e){return typeof e=="object"&&e!==null&&e.$$typeof===li}function Gg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var bu=/\/+/g;function ro(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gg(""+e.key):t.toString(36)}function Wi(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case li:case Ig:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ro(o,0):r,Wu(i)?(n="",e!=null&&(n=e.replace(bu,"$&/")+"/"),Wi(i,t,n,"",function(u){return u})):i!=null&&(ml(i)&&(i=Kg(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(bu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Wu(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+ro(s,a);o+=Wi(s,t,n,l,i)}else if(l=Hg(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+ro(s,a++),o+=Wi(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function wi(e,t,n){if(e==null)return e;var r=[],i=0;return Wi(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Yg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Te={current:null},bi={transition:null},Xg={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:bi,ReactCurrentOwner:hl};function kd(){throw Error("act(...) is not supported in production builds of React.")}j.Children={map:wi,forEach:function(e,t,n){wi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wi(e,function(){t++}),t},toArray:function(e){return wi(e,function(t){return t})||[]},only:function(e){if(!ml(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};j.Component=rr;j.Fragment=Og;j.Profiler=Fg;j.PureComponent=dl;j.StrictMode=jg;j.Suspense=Ug;j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xg;j.act=kd;j.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=xd({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=hl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Td.call(t,l)&&!Ed.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:li,type:e.type,key:i,ref:s,props:r,_owner:o}};j.createContext=function(e){return e={$$typeof:Bg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zg,_context:e},e.Consumer=e};j.createElement=Pd;j.createFactory=function(e){var t=Pd.bind(null,e);return t.type=e,t};j.createRef=function(){return{current:null}};j.forwardRef=function(e){return{$$typeof:$g,render:e}};j.isValidElement=ml;j.lazy=function(e){return{$$typeof:bg,_payload:{_status:-1,_result:e},_init:Yg}};j.memo=function(e,t){return{$$typeof:Wg,type:e,compare:t===void 0?null:t}};j.startTransition=function(e){var t=bi.transition;bi.transition={};try{e()}finally{bi.transition=t}};j.unstable_act=kd;j.useCallback=function(e,t){return Te.current.useCallback(e,t)};j.useContext=function(e){return Te.current.useContext(e)};j.useDebugValue=function(){};j.useDeferredValue=function(e){return Te.current.useDeferredValue(e)};j.useEffect=function(e,t){return Te.current.useEffect(e,t)};j.useId=function(){return Te.current.useId()};j.useImperativeHandle=function(e,t,n){return Te.current.useImperativeHandle(e,t,n)};j.useInsertionEffect=function(e,t){return Te.current.useInsertionEffect(e,t)};j.useLayoutEffect=function(e,t){return Te.current.useLayoutEffect(e,t)};j.useMemo=function(e,t){return Te.current.useMemo(e,t)};j.useReducer=function(e,t,n){return Te.current.useReducer(e,t,n)};j.useRef=function(e){return Te.current.useRef(e)};j.useState=function(e){return Te.current.useState(e)};j.useSyncExternalStore=function(e,t,n){return Te.current.useSyncExternalStore(e,t,n)};j.useTransition=function(){return Te.current.useTransition()};j.version="18.3.1";vd.exports=j;var w=vd.exports;const mt=fl(w),Qg=Vg({__proto__:null,default:mt},[w]);/**
|
|
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 Zg=w,qg=Symbol.for("react.element"),Jg=Symbol.for("react.fragment"),ey=Object.prototype.hasOwnProperty,ty=Zg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ny={key:!0,ref:!0,__self:!0,__source:!0};function Md(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)ey.call(t,r)&&!ny.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:qg,type:e,key:s,ref:o,props:i,_owner:ty.current}}_s.Fragment=Jg;_s.jsx=Md;_s.jsxs=Md;yd.exports=_s;var P=yd.exports,Ko={},Ad={exports:{}},je={},Rd={exports:{}},Ld={};/**
|
|
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
|
+
*/(function(e){function t(A,D){var I=A.length;A.push(D);e:for(;0<I;){var W=I-1>>>1,q=A[W];if(0<i(q,D))A[W]=D,A[I]=q,I=W;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var D=A[0],I=A.pop();if(I!==D){A[0]=I;e:for(var W=0,q=A.length,pt=q>>>1;W<pt;){var rt=2*(W+1)-1,no=A[rt],Jt=rt+1,vi=A[Jt];if(0>i(no,I))Jt<q&&0>i(vi,no)?(A[W]=vi,A[Jt]=I,W=Jt):(A[W]=no,A[rt]=I,W=rt);else if(Jt<q&&0>i(vi,I))A[W]=vi,A[Jt]=I,W=Jt;else break e}}return D}function i(A,D){var I=A.sortIndex-D.sortIndex;return I!==0?I:A.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,f=null,d=3,g=!1,v=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(A){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=A)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function S(A){if(y=!1,m(A),!v)if(n(l)!==null)v=!0,Ne(x);else{var D=n(u);D!==null&&$(S,D.startTime-A)}}function x(A,D){v=!1,y&&(y=!1,p(k),k=-1),g=!0;var I=d;try{for(m(D),f=n(l);f!==null&&(!(f.expirationTime>D)||A&&!V());){var W=f.callback;if(typeof W=="function"){f.callback=null,d=f.priorityLevel;var q=W(f.expirationTime<=D);D=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(l)&&r(l),m(D)}else r(l);f=n(l)}if(f!==null)var pt=!0;else{var rt=n(u);rt!==null&&$(S,rt.startTime-D),pt=!1}return pt}finally{f=null,d=I,g=!1}}var T=!1,E=null,k=-1,N=5,L=-1;function V(){return!(e.unstable_now()-L<N)}function F(){if(E!==null){var A=e.unstable_now();L=A;var D=!0;try{D=E(!0,A)}finally{D?ce():(T=!1,E=null)}}else T=!1}var ce;if(typeof h=="function")ce=function(){h(F)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,se=O.port2;O.port1.onmessage=F,ce=function(){se.postMessage(null)}}else ce=function(){C(F,0)};function Ne(A){E=A,T||(T=!0,ce())}function $(A,D){k=C(function(){A(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,Ne(x))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var I=d;d=D;try{return A()}finally{d=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,D){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var I=d;d=A;try{return D()}finally{d=I}},e.unstable_scheduleCallback=function(A,D,I){var W=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?W+I:W):I=W,A){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=I+q,A={id:c++,callback:D,priorityLevel:A,startTime:I,expirationTime:q,sortIndex:-1},I>W?(A.sortIndex=I,t(u,A),n(l)===null&&A===n(u)&&(y?(p(k),k=-1):y=!0,$(S,I-W))):(A.sortIndex=q,t(l,A),v||g||(v=!0,Ne(x))),A},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(A){var D=d;return function(){var I=d;d=D;try{return A.apply(this,arguments)}finally{d=I}}}})(Ld);Rd.exports=Ld;var ry=Rd.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 iy=w,Oe=ry;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Nd=new Set,Fr={};function Sn(e,t){Yn(e,t),Yn(e+"Capture",t)}function Yn(e,t){for(Fr[e]=t,e=0;e<t.length;e++)Nd.add(t[e])}var St=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Go=Object.prototype.hasOwnProperty,sy=/^[: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]*$/,Hu={},Ku={};function oy(e){return Go.call(Ku,e)?!0:Go.call(Hu,e)?!1:sy.test(e)?Ku[e]=!0:(Hu[e]=!0,!1)}function ay(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ly(e,t,n,r){if(t===null||typeof t>"u"||ay(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ee(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){he[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var gl=/[\-:]([a-z])/g;function yl(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(gl,yl);he[t]=new Ee(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(gl,yl);he[t]=new Ee(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(gl,yl);he[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function vl(e,t,n,r){var i=he.hasOwnProperty(t)?he[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ly(t,n,i,r)&&(n=null),r||i===null?oy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Mt=iy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xi=Symbol.for("react.element"),En=Symbol.for("react.portal"),Pn=Symbol.for("react.fragment"),wl=Symbol.for("react.strict_mode"),Yo=Symbol.for("react.profiler"),Dd=Symbol.for("react.provider"),Vd=Symbol.for("react.context"),xl=Symbol.for("react.forward_ref"),Xo=Symbol.for("react.suspense"),Qo=Symbol.for("react.suspense_list"),Sl=Symbol.for("react.memo"),Nt=Symbol.for("react.lazy"),_d=Symbol.for("react.offscreen"),Gu=Symbol.iterator;function ur(e){return e===null||typeof e!="object"?null:(e=Gu&&e[Gu]||e["@@iterator"],typeof e=="function"?e:null)}var Z=Object.assign,io;function wr(e){if(io===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);io=t&&t[1]||""}return`
|
|
34
|
+
`+io+e}var so=!1;function oo(e,t){if(!e||so)return"";so=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),s=r.stack.split(`
|
|
36
|
+
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
|
|
37
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{so=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wr(e):""}function uy(e){switch(e.tag){case 5:return wr(e.type);case 16:return wr("Lazy");case 13:return wr("Suspense");case 19:return wr("SuspenseList");case 0:case 2:case 15:return e=oo(e.type,!1),e;case 11:return e=oo(e.type.render,!1),e;case 1:return e=oo(e.type,!0),e;default:return""}}function Zo(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 Pn:return"Fragment";case En:return"Portal";case Yo:return"Profiler";case wl:return"StrictMode";case Xo:return"Suspense";case Qo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vd:return(e.displayName||"Context")+".Consumer";case Dd:return(e._context.displayName||"Context")+".Provider";case xl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sl:return t=e.displayName||null,t!==null?t:Zo(e.type)||"Memo";case Nt:t=e._payload,e=e._init;try{return Zo(e(t))}catch{}}return null}function cy(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 Zo(t);case 8:return t===wl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Id(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fy(e){var t=Id(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Si(e){e._valueTracker||(e._valueTracker=fy(e))}function Od(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Id(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ss(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 qo(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jd(e,t){t=t.checked,t!=null&&vl(e,"checked",t,!1)}function Jo(e,t){jd(e,t);var n=Ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ea(e,t.type,n):t.hasOwnProperty("defaultValue")&&ea(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ea(e,t,n){(t!=="number"||ss(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xr=Array.isArray;function $n(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ta(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return Z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(xr(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ht(n)}}function Fd(e,t){var n=Ht(t.value),r=Ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Zu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zd(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 na(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ci,Bd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ci=Ci||document.createElement("div"),Ci.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Er={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},dy=["Webkit","ms","Moz","O"];Object.keys(Er).forEach(function(e){dy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Er[t]=Er[e]})});function $d(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Er.hasOwnProperty(e)&&Er[e]?(""+t).trim():t+"px"}function Ud(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=$d(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var py=Z({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 ra(e,t){if(t){if(py[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function ia(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 sa=null;function Cl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,Un=null,Wn=null;function qu(e){if(e=fi(e)){if(typeof oa!="function")throw Error(M(280));var t=e.stateNode;t&&(t=zs(t),oa(e.stateNode,e.type,t))}}function Wd(e){Un?Wn?Wn.push(e):Wn=[e]:Un=e}function bd(){if(Un){var e=Un,t=Wn;if(Wn=Un=null,qu(e),t)for(e=0;e<t.length;e++)qu(t[e])}}function Hd(e,t){return e(t)}function Kd(){}var ao=!1;function Gd(e,t,n){if(ao)return e(t,n);ao=!0;try{return Hd(e,t,n)}finally{ao=!1,(Un!==null||Wn!==null)&&(Kd(),bd())}}function Br(e,t){var n=e.stateNode;if(n===null)return null;var r=zs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(M(231,t,typeof n));return n}var aa=!1;if(St)try{var cr={};Object.defineProperty(cr,"passive",{get:function(){aa=!0}}),window.addEventListener("test",cr,cr),window.removeEventListener("test",cr,cr)}catch{aa=!1}function hy(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Pr=!1,os=null,as=!1,la=null,my={onError:function(e){Pr=!0,os=e}};function gy(e,t,n,r,i,s,o,a,l){Pr=!1,os=null,hy.apply(my,arguments)}function yy(e,t,n,r,i,s,o,a,l){if(gy.apply(this,arguments),Pr){if(Pr){var u=os;Pr=!1,os=null}else throw Error(M(198));as||(as=!0,la=u)}}function Cn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Yd(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 Ju(e){if(Cn(e)!==e)throw Error(M(188))}function vy(e){var t=e.alternate;if(!t){if(t=Cn(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Ju(i),e;if(s===r)return Ju(i),t;s=s.sibling}throw Error(M(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function Xd(e){return e=vy(e),e!==null?Qd(e):null}function Qd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qd(e);if(t!==null)return t;e=e.sibling}return null}var Zd=Oe.unstable_scheduleCallback,ec=Oe.unstable_cancelCallback,wy=Oe.unstable_shouldYield,xy=Oe.unstable_requestPaint,ne=Oe.unstable_now,Sy=Oe.unstable_getCurrentPriorityLevel,Tl=Oe.unstable_ImmediatePriority,qd=Oe.unstable_UserBlockingPriority,ls=Oe.unstable_NormalPriority,Cy=Oe.unstable_LowPriority,Jd=Oe.unstable_IdlePriority,Is=null,at=null;function Ty(e){if(at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(Is,e,void 0,(e.current.flags&128)===128)}catch{}}var et=Math.clz32?Math.clz32:ky,Ey=Math.log,Py=Math.LN2;function ky(e){return e>>>=0,e===0?32:31-(Ey(e)/Py|0)|0}var Ti=64,Ei=4194304;function Sr(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 us(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Sr(a):(s&=o,s!==0&&(r=Sr(s)))}else o=n&~i,o!==0?r=Sr(o):s!==0&&(r=Sr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-et(t),i=1<<n,r|=e[n],t&=~i;return r}function My(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 Ay(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-et(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=My(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function ua(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ep(){var e=Ti;return Ti<<=1,!(Ti&4194240)&&(Ti=64),e}function lo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function Ry(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-et(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function El(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var B=0;function tp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var np,Pl,rp,ip,sp,ca=!1,Pi=[],jt=null,Ft=null,zt=null,$r=new Map,Ur=new Map,Vt=[],Ly="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 tc(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Ft=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":$r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ur.delete(t.pointerId)}}function fr(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=fi(t),t!==null&&Pl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ny(e,t,n,r,i){switch(t){case"focusin":return jt=fr(jt,e,t,n,r,i),!0;case"dragenter":return Ft=fr(Ft,e,t,n,r,i),!0;case"mouseover":return zt=fr(zt,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return $r.set(s,fr($r.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Ur.set(s,fr(Ur.get(s)||null,e,t,n,r,i)),!0}return!1}function op(e){var t=sn(e.target);if(t!==null){var n=Cn(t);if(n!==null){if(t=n.tag,t===13){if(t=Yd(n),t!==null){e.blockedOn=t,sp(e.priority,function(){rp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sa=r,n.target.dispatchEvent(r),sa=null}else return t=fi(n),t!==null&&Pl(t),e.blockedOn=n,!1;t.shift()}return!0}function nc(e,t,n){Hi(e)&&n.delete(t)}function Dy(){ca=!1,jt!==null&&Hi(jt)&&(jt=null),Ft!==null&&Hi(Ft)&&(Ft=null),zt!==null&&Hi(zt)&&(zt=null),$r.forEach(nc),Ur.forEach(nc)}function dr(e,t){e.blockedOn===t&&(e.blockedOn=null,ca||(ca=!0,Oe.unstable_scheduleCallback(Oe.unstable_NormalPriority,Dy)))}function Wr(e){function t(i){return dr(i,e)}if(0<Pi.length){dr(Pi[0],e);for(var n=1;n<Pi.length;n++){var r=Pi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(jt!==null&&dr(jt,e),Ft!==null&&dr(Ft,e),zt!==null&&dr(zt,e),$r.forEach(t),Ur.forEach(t),n=0;n<Vt.length;n++)r=Vt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vt.length&&(n=Vt[0],n.blockedOn===null);)op(n),n.blockedOn===null&&Vt.shift()}var bn=Mt.ReactCurrentBatchConfig,cs=!0;function Vy(e,t,n,r){var i=B,s=bn.transition;bn.transition=null;try{B=1,kl(e,t,n,r)}finally{B=i,bn.transition=s}}function _y(e,t,n,r){var i=B,s=bn.transition;bn.transition=null;try{B=4,kl(e,t,n,r)}finally{B=i,bn.transition=s}}function kl(e,t,n,r){if(cs){var i=fa(e,t,n,r);if(i===null)wo(e,t,r,fs,n),tc(e,r);else if(Ny(i,e,t,n,r))r.stopPropagation();else if(tc(e,r),t&4&&-1<Ly.indexOf(e)){for(;i!==null;){var s=fi(i);if(s!==null&&np(s),s=fa(e,t,n,r),s===null&&wo(e,t,r,fs,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else wo(e,t,r,null,n)}}var fs=null;function fa(e,t,n,r){if(fs=null,e=Cl(r),e=sn(e),e!==null)if(t=Cn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Yd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return fs=e,null}function ap(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(Sy()){case Tl:return 1;case qd:return 4;case ls:case Cy:return 16;case Jd:return 536870912;default:return 16}default:return 16}}var It=null,Ml=null,Ki=null;function lp(){if(Ki)return Ki;var e,t=Ml,n=t.length,r,i="value"in It?It.value:It.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Ki=i.slice(e,1<r?1-r:void 0)}function Gi(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 ki(){return!0}function rc(){return!1}function Fe(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ki:rc,this.isPropagationStopped=rc,this}return Z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),t}var ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Al=Fe(ir),ci=Z({},ir,{view:0,detail:0}),Iy=Fe(ci),uo,co,pr,Os=Z({},ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rl,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!==pr&&(pr&&e.type==="mousemove"?(uo=e.screenX-pr.screenX,co=e.screenY-pr.screenY):co=uo=0,pr=e),uo)},movementY:function(e){return"movementY"in e?e.movementY:co}}),ic=Fe(Os),Oy=Z({},Os,{dataTransfer:0}),jy=Fe(Oy),Fy=Z({},ci,{relatedTarget:0}),fo=Fe(Fy),zy=Z({},ir,{animationName:0,elapsedTime:0,pseudoElement:0}),By=Fe(zy),$y=Z({},ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uy=Fe($y),Wy=Z({},ir,{data:0}),sc=Fe(Wy),by={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hy={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"},Ky={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ky[e])?!!t[e]:!1}function Rl(){return Gy}var Yy=Z({},ci,{key:function(e){if(e.key){var t=by[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rl,charCode:function(e){return e.type==="keypress"?Gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xy=Fe(Yy),Qy=Z({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oc=Fe(Qy),Zy=Z({},ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rl}),qy=Fe(Zy),Jy=Z({},ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),ev=Fe(Jy),tv=Z({},Os,{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}),nv=Fe(tv),rv=[9,13,27,32],Ll=St&&"CompositionEvent"in window,kr=null;St&&"documentMode"in document&&(kr=document.documentMode);var iv=St&&"TextEvent"in window&&!kr,up=St&&(!Ll||kr&&8<kr&&11>=kr),ac=" ",lc=!1;function cp(e,t){switch(e){case"keyup":return rv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function sv(e,t){switch(e){case"compositionend":return fp(t);case"keypress":return t.which!==32?null:(lc=!0,ac);case"textInput":return e=t.data,e===ac&&lc?null:e;default:return null}}function ov(e,t){if(kn)return e==="compositionend"||!Ll&&cp(e,t)?(e=lp(),Ki=Ml=It=null,kn=!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 up&&t.locale!=="ko"?null:t.data;default:return null}}var av={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 uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!av[e.type]:t==="textarea"}function dp(e,t,n,r){Wd(r),t=ds(t,"onChange"),0<t.length&&(n=new Al("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mr=null,br=null;function lv(e){Tp(e,0)}function js(e){var t=Rn(e);if(Od(t))return e}function uv(e,t){if(e==="change")return t}var pp=!1;if(St){var po;if(St){var ho="oninput"in document;if(!ho){var cc=document.createElement("div");cc.setAttribute("oninput","return;"),ho=typeof cc.oninput=="function"}po=ho}else po=!1;pp=po&&(!document.documentMode||9<document.documentMode)}function fc(){Mr&&(Mr.detachEvent("onpropertychange",hp),br=Mr=null)}function hp(e){if(e.propertyName==="value"&&js(br)){var t=[];dp(t,br,e,Cl(e)),Gd(lv,t)}}function cv(e,t,n){e==="focusin"?(fc(),Mr=t,br=n,Mr.attachEvent("onpropertychange",hp)):e==="focusout"&&fc()}function fv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return js(br)}function dv(e,t){if(e==="click")return js(t)}function pv(e,t){if(e==="input"||e==="change")return js(t)}function hv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nt=typeof Object.is=="function"?Object.is:hv;function Hr(e,t){if(nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Go.call(t,i)||!nt(e[i],t[i]))return!1}return!0}function dc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pc(e,t){var n=dc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dc(n)}}function mp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gp(){for(var e=window,t=ss();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ss(e.document)}return t}function Nl(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 mv(e){var t=gp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&mp(n.ownerDocument.documentElement,n)){if(r!==null&&Nl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=pc(n,s);var o=pc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gv=St&&"documentMode"in document&&11>=document.documentMode,Mn=null,da=null,Ar=null,pa=!1;function hc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pa||Mn==null||Mn!==ss(r)||(r=Mn,"selectionStart"in r&&Nl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ar&&Hr(Ar,r)||(Ar=r,r=ds(da,"onSelect"),0<r.length&&(t=new Al("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Mn)))}function Mi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var An={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionend:Mi("Transition","TransitionEnd")},mo={},yp={};St&&(yp=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function Fs(e){if(mo[e])return mo[e];if(!An[e])return e;var t=An[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yp)return mo[e]=t[n];return e}var vp=Fs("animationend"),wp=Fs("animationiteration"),xp=Fs("animationstart"),Sp=Fs("transitionend"),Cp=new Map,mc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Xt(e,t){Cp.set(e,t),Sn(t,[e])}for(var go=0;go<mc.length;go++){var yo=mc[go],yv=yo.toLowerCase(),vv=yo[0].toUpperCase()+yo.slice(1);Xt(yv,"on"+vv)}Xt(vp,"onAnimationEnd");Xt(wp,"onAnimationIteration");Xt(xp,"onAnimationStart");Xt("dblclick","onDoubleClick");Xt("focusin","onFocus");Xt("focusout","onBlur");Xt(Sp,"onTransitionEnd");Yn("onMouseEnter",["mouseout","mouseover"]);Yn("onMouseLeave",["mouseout","mouseover"]);Yn("onPointerEnter",["pointerout","pointerover"]);Yn("onPointerLeave",["pointerout","pointerover"]);Sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Sn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="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(" "),wv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function gc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yy(r,t,void 0,e),e.currentTarget=null}function Tp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;gc(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;gc(i,a,u),s=l}}}if(as)throw e=la,as=!1,la=null,e}function b(e,t){var n=t[va];n===void 0&&(n=t[va]=new Set);var r=e+"__bubble";n.has(r)||(Ep(t,e,2,!1),n.add(r))}function vo(e,t,n){var r=0;t&&(r|=4),Ep(n,e,r,t)}var Ai="_reactListening"+Math.random().toString(36).slice(2);function Kr(e){if(!e[Ai]){e[Ai]=!0,Nd.forEach(function(n){n!=="selectionchange"&&(wv.has(n)||vo(n,!1,e),vo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ai]||(t[Ai]=!0,vo("selectionchange",!1,t))}}function Ep(e,t,n,r){switch(ap(t)){case 1:var i=Vy;break;case 4:i=_y;break;default:i=kl}n=i.bind(null,t,n,e),i=void 0,!aa||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function wo(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=sn(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Gd(function(){var u=s,c=Cl(n),f=[];e:{var d=Cp.get(e);if(d!==void 0){var g=Al,v=e;switch(e){case"keypress":if(Gi(n)===0)break e;case"keydown":case"keyup":g=Xy;break;case"focusin":v="focus",g=fo;break;case"focusout":v="blur",g=fo;break;case"beforeblur":case"afterblur":g=fo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=jy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=qy;break;case vp:case wp:case xp:g=By;break;case Sp:g=ev;break;case"scroll":g=Iy;break;case"wheel":g=nv;break;case"copy":case"cut":case"paste":g=Uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=oc}var y=(t&4)!==0,C=!y&&e==="scroll",p=y?d!==null?d+"Capture":null:d;y=[];for(var h=u,m;h!==null;){m=h;var S=m.stateNode;if(m.tag===5&&S!==null&&(m=S,p!==null&&(S=Br(h,p),S!=null&&y.push(Gr(h,S,m)))),C)break;h=h.return}0<y.length&&(d=new g(d,v,null,n,c),f.push({event:d,listeners:y}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&n!==sa&&(v=n.relatedTarget||n.fromElement)&&(sn(v)||v[Ct]))break e;if((g||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?sn(v):null,v!==null&&(C=Cn(v),v!==C||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(y=ic,S="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=oc,S="onPointerLeave",p="onPointerEnter",h="pointer"),C=g==null?d:Rn(g),m=v==null?d:Rn(v),d=new y(S,h+"leave",g,n,c),d.target=C,d.relatedTarget=m,S=null,sn(c)===u&&(y=new y(p,h+"enter",v,n,c),y.target=m,y.relatedTarget=C,S=y),C=S,g&&v)t:{for(y=g,p=v,h=0,m=y;m;m=Tn(m))h++;for(m=0,S=p;S;S=Tn(S))m++;for(;0<h-m;)y=Tn(y),h--;for(;0<m-h;)p=Tn(p),m--;for(;h--;){if(y===p||p!==null&&y===p.alternate)break t;y=Tn(y),p=Tn(p)}y=null}else y=null;g!==null&&yc(f,d,g,y,!1),v!==null&&C!==null&&yc(f,C,v,y,!0)}}e:{if(d=u?Rn(u):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var x=uv;else if(uc(d))if(pp)x=pv;else{x=fv;var T=cv}else(g=d.nodeName)&&g.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(x=dv);if(x&&(x=x(e,u))){dp(f,x,n,c);break e}T&&T(e,d,u),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&ea(d,"number",d.value)}switch(T=u?Rn(u):window,e){case"focusin":(uc(T)||T.contentEditable==="true")&&(Mn=T,da=u,Ar=null);break;case"focusout":Ar=da=Mn=null;break;case"mousedown":pa=!0;break;case"contextmenu":case"mouseup":case"dragend":pa=!1,hc(f,n,c);break;case"selectionchange":if(gv)break;case"keydown":case"keyup":hc(f,n,c)}var E;if(Ll)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else kn?cp(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(up&&n.locale!=="ko"&&(kn||k!=="onCompositionStart"?k==="onCompositionEnd"&&kn&&(E=lp()):(It=c,Ml="value"in It?It.value:It.textContent,kn=!0)),T=ds(u,k),0<T.length&&(k=new sc(k,e,null,n,c),f.push({event:k,listeners:T}),E?k.data=E:(E=fp(n),E!==null&&(k.data=E)))),(E=iv?sv(e,n):ov(e,n))&&(u=ds(u,"onBeforeInput"),0<u.length&&(c=new sc("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}Tp(f,t)})}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ds(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Br(e,n),s!=null&&r.unshift(Gr(e,s,i)),s=Br(e,t),s!=null&&r.push(Gr(e,s,i))),e=e.return}return r}function Tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yc(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Br(n,s),l!=null&&o.unshift(Gr(n,l,a))):i||(l=Br(n,s),l!=null&&o.push(Gr(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var xv=/\r\n?/g,Sv=/\u0000|\uFFFD/g;function vc(e){return(typeof e=="string"?e:""+e).replace(xv,`
|
|
38
|
+
`).replace(Sv,"")}function Ri(e,t,n){if(t=vc(t),vc(e)!==t&&n)throw Error(M(425))}function ps(){}var ha=null,ma=null;function ga(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 ya=typeof setTimeout=="function"?setTimeout:void 0,Cv=typeof clearTimeout=="function"?clearTimeout:void 0,wc=typeof Promise=="function"?Promise:void 0,Tv=typeof queueMicrotask=="function"?queueMicrotask:typeof wc<"u"?function(e){return wc.resolve(null).then(e).catch(Ev)}:ya;function Ev(e){setTimeout(function(){throw e})}function xo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Wr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wr(t)}function Bt(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 xc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var sr=Math.random().toString(36).slice(2),ot="__reactFiber$"+sr,Yr="__reactProps$"+sr,Ct="__reactContainer$"+sr,va="__reactEvents$"+sr,Pv="__reactListeners$"+sr,kv="__reactHandles$"+sr;function sn(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xc(e);e!==null;){if(n=e[ot])return n;e=xc(e)}return t}e=n,n=e.parentNode}return null}function fi(e){return e=e[ot]||e[Ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function zs(e){return e[Yr]||null}var wa=[],Ln=-1;function Qt(e){return{current:e}}function H(e){0>Ln||(e.current=wa[Ln],wa[Ln]=null,Ln--)}function U(e,t){Ln++,wa[Ln]=e.current,e.current=t}var Kt={},we=Qt(Kt),Ae=Qt(!1),hn=Kt;function Xn(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Re(e){return e=e.childContextTypes,e!=null}function hs(){H(Ae),H(we)}function Sc(e,t,n){if(we.current!==Kt)throw Error(M(168));U(we,t),U(Ae,n)}function Pp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(M(108,cy(e)||"Unknown",i));return Z({},n,r)}function ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,hn=we.current,U(we,e),U(Ae,Ae.current),!0}function Cc(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Pp(e,t,hn),r.__reactInternalMemoizedMergedChildContext=e,H(Ae),H(we),U(we,e)):H(Ae),U(Ae,n)}var yt=null,Bs=!1,So=!1;function kp(e){yt===null?yt=[e]:yt.push(e)}function Mv(e){Bs=!0,kp(e)}function Zt(){if(!So&&yt!==null){So=!0;var e=0,t=B;try{var n=yt;for(B=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yt=null,Bs=!1}catch(i){throw yt!==null&&(yt=yt.slice(e+1)),Zd(Tl,Zt),i}finally{B=t,So=!1}}return null}var Nn=[],Dn=0,gs=null,ys=0,$e=[],Ue=0,mn=null,vt=1,wt="";function tn(e,t){Nn[Dn++]=ys,Nn[Dn++]=gs,gs=e,ys=t}function Mp(e,t,n){$e[Ue++]=vt,$e[Ue++]=wt,$e[Ue++]=mn,mn=e;var r=vt;e=wt;var i=32-et(r)-1;r&=~(1<<i),n+=1;var s=32-et(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,vt=1<<32-et(t)+i|n<<i|r,wt=s+e}else vt=1<<s|n<<i|r,wt=e}function Dl(e){e.return!==null&&(tn(e,1),Mp(e,1,0))}function Vl(e){for(;e===gs;)gs=Nn[--Dn],Nn[Dn]=null,ys=Nn[--Dn],Nn[Dn]=null;for(;e===mn;)mn=$e[--Ue],$e[Ue]=null,wt=$e[--Ue],$e[Ue]=null,vt=$e[--Ue],$e[Ue]=null}var Ie=null,_e=null,K=!1,Je=null;function Ap(e,t){var n=We(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Tc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ie=e,_e=Bt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ie=e,_e=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=mn!==null?{id:vt,overflow:wt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=We(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ie=e,_e=null,!0):!1;default:return!1}}function xa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Sa(e){if(K){var t=_e;if(t){var n=t;if(!Tc(e,t)){if(xa(e))throw Error(M(418));t=Bt(n.nextSibling);var r=Ie;t&&Tc(e,t)?Ap(r,n):(e.flags=e.flags&-4097|2,K=!1,Ie=e)}}else{if(xa(e))throw Error(M(418));e.flags=e.flags&-4097|2,K=!1,Ie=e}}}function Ec(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ie=e}function Li(e){if(e!==Ie)return!1;if(!K)return Ec(e),K=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ga(e.type,e.memoizedProps)),t&&(t=_e)){if(xa(e))throw Rp(),Error(M(418));for(;t;)Ap(e,t),t=Bt(t.nextSibling)}if(Ec(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_e=Bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_e=null}}else _e=Ie?Bt(e.stateNode.nextSibling):null;return!0}function Rp(){for(var e=_e;e;)e=Bt(e.nextSibling)}function Qn(){_e=Ie=null,K=!1}function _l(e){Je===null?Je=[e]:Je.push(e)}var Av=Mt.ReactCurrentBatchConfig;function hr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var r=n.stateNode}if(!r)throw Error(M(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function Ni(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Pc(e){var t=e._init;return t(e._payload)}function Lp(e){function t(p,h){if(e){var m=p.deletions;m===null?(p.deletions=[h],p.flags|=16):m.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=bt(p,h),p.index=0,p.sibling=null,p}function s(p,h,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<h?(p.flags|=2,h):m):(p.flags|=2,h)):(p.flags|=1048576,h)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,h,m,S){return h===null||h.tag!==6?(h=Ao(m,p.mode,S),h.return=p,h):(h=i(h,m),h.return=p,h)}function l(p,h,m,S){var x=m.type;return x===Pn?c(p,h,m.props.children,S,m.key):h!==null&&(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Nt&&Pc(x)===h.type)?(S=i(h,m.props),S.ref=hr(p,h,m),S.return=p,S):(S=es(m.type,m.key,m.props,null,p.mode,S),S.ref=hr(p,h,m),S.return=p,S)}function u(p,h,m,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=Ro(m,p.mode,S),h.return=p,h):(h=i(h,m.children||[]),h.return=p,h)}function c(p,h,m,S,x){return h===null||h.tag!==7?(h=fn(m,p.mode,S,x),h.return=p,h):(h=i(h,m),h.return=p,h)}function f(p,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Ao(""+h,p.mode,m),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case xi:return m=es(h.type,h.key,h.props,null,p.mode,m),m.ref=hr(p,null,h),m.return=p,m;case En:return h=Ro(h,p.mode,m),h.return=p,h;case Nt:var S=h._init;return f(p,S(h._payload),m)}if(xr(h)||ur(h))return h=fn(h,p.mode,m,null),h.return=p,h;Ni(p,h)}return null}function d(p,h,m,S){var x=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return x!==null?null:a(p,h,""+m,S);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case xi:return m.key===x?l(p,h,m,S):null;case En:return m.key===x?u(p,h,m,S):null;case Nt:return x=m._init,d(p,h,x(m._payload),S)}if(xr(m)||ur(m))return x!==null?null:c(p,h,m,S,null);Ni(p,m)}return null}function g(p,h,m,S,x){if(typeof S=="string"&&S!==""||typeof S=="number")return p=p.get(m)||null,a(h,p,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case xi:return p=p.get(S.key===null?m:S.key)||null,l(h,p,S,x);case En:return p=p.get(S.key===null?m:S.key)||null,u(h,p,S,x);case Nt:var T=S._init;return g(p,h,m,T(S._payload),x)}if(xr(S)||ur(S))return p=p.get(m)||null,c(h,p,S,x,null);Ni(h,S)}return null}function v(p,h,m,S){for(var x=null,T=null,E=h,k=h=0,N=null;E!==null&&k<m.length;k++){E.index>k?(N=E,E=null):N=E.sibling;var L=d(p,E,m[k],S);if(L===null){E===null&&(E=N);break}e&&E&&L.alternate===null&&t(p,E),h=s(L,h,k),T===null?x=L:T.sibling=L,T=L,E=N}if(k===m.length)return n(p,E),K&&tn(p,k),x;if(E===null){for(;k<m.length;k++)E=f(p,m[k],S),E!==null&&(h=s(E,h,k),T===null?x=E:T.sibling=E,T=E);return K&&tn(p,k),x}for(E=r(p,E);k<m.length;k++)N=g(E,p,k,m[k],S),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?k:N.key),h=s(N,h,k),T===null?x=N:T.sibling=N,T=N);return e&&E.forEach(function(V){return t(p,V)}),K&&tn(p,k),x}function y(p,h,m,S){var x=ur(m);if(typeof x!="function")throw Error(M(150));if(m=x.call(m),m==null)throw Error(M(151));for(var T=x=null,E=h,k=h=0,N=null,L=m.next();E!==null&&!L.done;k++,L=m.next()){E.index>k?(N=E,E=null):N=E.sibling;var V=d(p,E,L.value,S);if(V===null){E===null&&(E=N);break}e&&E&&V.alternate===null&&t(p,E),h=s(V,h,k),T===null?x=V:T.sibling=V,T=V,E=N}if(L.done)return n(p,E),K&&tn(p,k),x;if(E===null){for(;!L.done;k++,L=m.next())L=f(p,L.value,S),L!==null&&(h=s(L,h,k),T===null?x=L:T.sibling=L,T=L);return K&&tn(p,k),x}for(E=r(p,E);!L.done;k++,L=m.next())L=g(E,p,k,L.value,S),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?k:L.key),h=s(L,h,k),T===null?x=L:T.sibling=L,T=L);return e&&E.forEach(function(F){return t(p,F)}),K&&tn(p,k),x}function C(p,h,m,S){if(typeof m=="object"&&m!==null&&m.type===Pn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case xi:e:{for(var x=m.key,T=h;T!==null;){if(T.key===x){if(x=m.type,x===Pn){if(T.tag===7){n(p,T.sibling),h=i(T,m.props.children),h.return=p,p=h;break e}}else if(T.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Nt&&Pc(x)===T.type){n(p,T.sibling),h=i(T,m.props),h.ref=hr(p,T,m),h.return=p,p=h;break e}n(p,T);break}else t(p,T);T=T.sibling}m.type===Pn?(h=fn(m.props.children,p.mode,S,m.key),h.return=p,p=h):(S=es(m.type,m.key,m.props,null,p.mode,S),S.ref=hr(p,h,m),S.return=p,p=S)}return o(p);case En:e:{for(T=m.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Ro(m,p.mode,S),h.return=p,p=h}return o(p);case Nt:return T=m._init,C(p,h,T(m._payload),S)}if(xr(m))return v(p,h,m,S);if(ur(m))return y(p,h,m,S);Ni(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=Ao(m,p.mode,S),h.return=p,p=h),o(p)):n(p,h)}return C}var Zn=Lp(!0),Np=Lp(!1),vs=Qt(null),ws=null,Vn=null,Il=null;function Ol(){Il=Vn=ws=null}function jl(e){var t=vs.current;H(vs),e._currentValue=t}function Ca(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Hn(e,t){ws=e,Il=Vn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ke=!0),e.firstContext=null)}function Ke(e){var t=e._currentValue;if(Il!==e)if(e={context:e,memoizedValue:t,next:null},Vn===null){if(ws===null)throw Error(M(308));Vn=e,ws.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return t}var on=null;function Fl(e){on===null?on=[e]:on.push(e)}function Dp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Fl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Tt(e,r)}function Tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dt=!1;function zl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vp(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 xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Tt(e,n)}return i=r.interleaved,i===null?(t.next=t,Fl(r)):(t.next=i.next,i.next=t),r.interleaved=t,Tt(e,n)}function Yi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,El(e,n)}}function kc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xs(e,t,n,r){var i=e.updateQueue;Dt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,c=u=l=null,a=s;do{var d=a.lane,g=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,y=a;switch(d=t,g=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){f=v.call(g,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,d=typeof v=="function"?v.call(g,f,d):v,d==null)break e;f=Z({},f,d);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else g={eventTime:g,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=f):c=c.next=g,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);yn|=o,e.lanes=o,e.memoizedState=f}}function Mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(M(191,i));i.call(r)}}}var di={},lt=Qt(di),Xr=Qt(di),Qr=Qt(di);function an(e){if(e===di)throw Error(M(174));return e}function Bl(e,t){switch(U(Qr,t),U(Xr,e),U(lt,di),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:na(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=na(t,e)}H(lt),U(lt,t)}function qn(){H(lt),H(Xr),H(Qr)}function _p(e){an(Qr.current);var t=an(lt.current),n=na(t,e.type);t!==n&&(U(Xr,e),U(lt,n))}function $l(e){Xr.current===e&&(H(lt),H(Xr))}var Y=Qt(0);function Ss(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Co=[];function Ul(){for(var e=0;e<Co.length;e++)Co[e]._workInProgressVersionPrimary=null;Co.length=0}var Xi=Mt.ReactCurrentDispatcher,To=Mt.ReactCurrentBatchConfig,gn=0,Q=null,oe=null,le=null,Cs=!1,Rr=!1,Zr=0,Rv=0;function me(){throw Error(M(321))}function Wl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nt(e[n],t[n]))return!1;return!0}function bl(e,t,n,r,i,s){if(gn=s,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=e===null||e.memoizedState===null?Vv:_v,e=n(r,i),Rr){s=0;do{if(Rr=!1,Zr=0,25<=s)throw Error(M(301));s+=1,le=oe=null,t.updateQueue=null,Xi.current=Iv,e=n(r,i)}while(Rr)}if(Xi.current=Ts,t=oe!==null&&oe.next!==null,gn=0,le=oe=Q=null,Cs=!1,t)throw Error(M(300));return e}function Hl(){var e=Zr!==0;return Zr=0,e}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return le===null?Q.memoizedState=le=e:le=le.next=e,le}function Ge(){if(oe===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=le===null?Q.memoizedState:le.next;if(t!==null)le=t,oe=e;else{if(e===null)throw Error(M(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},le===null?Q.memoizedState=le=e:le=le.next=e}return le}function qr(e,t){return typeof t=="function"?t(e):t}function Eo(e){var t=Ge(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=oe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((gn&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,Q.lanes|=c,yn|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,nt(r,t.memoizedState)||(ke=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Q.lanes|=s,yn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Po(e){var t=Ge(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);nt(s,t.memoizedState)||(ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ip(){}function Op(e,t){var n=Q,r=Ge(),i=t(),s=!nt(r.memoizedState,i);if(s&&(r.memoizedState=i,ke=!0),r=r.queue,Kl(zp.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||le!==null&&le.memoizedState.tag&1){if(n.flags|=2048,Jr(9,Fp.bind(null,n,r,i,t),void 0,null),ue===null)throw Error(M(349));gn&30||jp(n,t,i)}return i}function jp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fp(e,t,n,r){t.value=n,t.getSnapshot=r,Bp(t)&&$p(e)}function zp(e,t,n){return n(function(){Bp(t)&&$p(e)})}function Bp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nt(e,n)}catch{return!0}}function $p(e){var t=Tt(e,1);t!==null&&tt(t,e,1,-1)}function Ac(e){var t=st();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qr,lastRenderedState:e},t.queue=e,e=e.dispatch=Dv.bind(null,Q,e),[t.memoizedState,e]}function Jr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Up(){return Ge().memoizedState}function Qi(e,t,n,r){var i=st();Q.flags|=e,i.memoizedState=Jr(1|t,n,void 0,r===void 0?null:r)}function $s(e,t,n,r){var i=Ge();r=r===void 0?null:r;var s=void 0;if(oe!==null){var o=oe.memoizedState;if(s=o.destroy,r!==null&&Wl(r,o.deps)){i.memoizedState=Jr(t,n,s,r);return}}Q.flags|=e,i.memoizedState=Jr(1|t,n,s,r)}function Rc(e,t){return Qi(8390656,8,e,t)}function Kl(e,t){return $s(2048,8,e,t)}function Wp(e,t){return $s(4,2,e,t)}function bp(e,t){return $s(4,4,e,t)}function Hp(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 Kp(e,t,n){return n=n!=null?n.concat([e]):null,$s(4,4,Hp.bind(null,t,e),n)}function Gl(){}function Gp(e,t){var n=Ge();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yp(e,t){var n=Ge();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xp(e,t,n){return gn&21?(nt(n,t)||(n=ep(),Q.lanes|=n,yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ke=!0),e.memoizedState=n)}function Lv(e,t){var n=B;B=n!==0&&4>n?n:4,e(!0);var r=To.transition;To.transition={};try{e(!1),t()}finally{B=n,To.transition=r}}function Qp(){return Ge().memoizedState}function Nv(e,t,n){var r=Wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zp(e))qp(t,n);else if(n=Dp(e,t,n,r),n!==null){var i=Ce();tt(n,e,r,i),Jp(n,t,r)}}function Dv(e,t,n){var r=Wt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zp(e))qp(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,nt(a,o)){var l=t.interleaved;l===null?(i.next=i,Fl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Dp(e,t,i,r),n!==null&&(i=Ce(),tt(n,e,r,i),Jp(n,t,r))}}function Zp(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function qp(e,t){Rr=Cs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,El(e,n)}}var Ts={readContext:Ke,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},Vv={readContext:Ke,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:Rc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qi(4194308,4,Hp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qi(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Nv.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:Ac,useDebugValue:Gl,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=Ac(!1),t=e[0];return e=Lv.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=st();if(K){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),ue===null)throw Error(M(349));gn&30||jp(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Rc(zp.bind(null,r,s,e),[e]),r.flags|=2048,Jr(9,Fp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=st(),t=ue.identifierPrefix;if(K){var n=wt,r=vt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Rv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_v={readContext:Ke,useCallback:Gp,useContext:Ke,useEffect:Kl,useImperativeHandle:Kp,useInsertionEffect:Wp,useLayoutEffect:bp,useMemo:Yp,useReducer:Eo,useRef:Up,useState:function(){return Eo(qr)},useDebugValue:Gl,useDeferredValue:function(e){var t=Ge();return Xp(t,oe.memoizedState,e)},useTransition:function(){var e=Eo(qr)[0],t=Ge().memoizedState;return[e,t]},useMutableSource:Ip,useSyncExternalStore:Op,useId:Qp,unstable_isNewReconciler:!1},Iv={readContext:Ke,useCallback:Gp,useContext:Ke,useEffect:Kl,useImperativeHandle:Kp,useInsertionEffect:Wp,useLayoutEffect:bp,useMemo:Yp,useReducer:Po,useRef:Up,useState:function(){return Po(qr)},useDebugValue:Gl,useDeferredValue:function(e){var t=Ge();return oe===null?t.memoizedState=e:Xp(t,oe.memoizedState,e)},useTransition:function(){var e=Po(qr)[0],t=Ge().memoizedState;return[e,t]},useMutableSource:Ip,useSyncExternalStore:Op,useId:Qp,unstable_isNewReconciler:!1};function Qe(e,t){if(e&&e.defaultProps){t=Z({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ta(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={isMounted:function(e){return(e=e._reactInternals)?Cn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ce(),i=Wt(e),s=xt(r,i);s.payload=t,n!=null&&(s.callback=n),t=$t(e,s,i),t!==null&&(tt(t,e,i,r),Yi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ce(),i=Wt(e),s=xt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=$t(e,s,i),t!==null&&(tt(t,e,i,r),Yi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ce(),r=Wt(e),i=xt(n,r);i.tag=2,t!=null&&(i.callback=t),t=$t(e,i,r),t!==null&&(tt(t,e,r,n),Yi(t,e,r))}};function Lc(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Hr(n,r)||!Hr(i,s):!0}function eh(e,t,n){var r=!1,i=Kt,s=t.contextType;return typeof s=="object"&&s!==null?s=Ke(s):(i=Re(t)?hn:we.current,r=t.contextTypes,s=(r=r!=null)?Xn(e,i):Kt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Us,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Nc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function Ea(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},zl(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ke(s):(s=Re(t)?hn:we.current,i.context=Xn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ta(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Us.enqueueReplaceState(i,i.state,null),xs(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Jn(e,t){try{var n="",r=t;do n+=uy(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
|
+
Error generating stack: `+s.message+`
|
|
40
|
+
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function ko(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Pa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ov=typeof WeakMap=="function"?WeakMap:Map;function th(e,t,n){n=xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ps||(Ps=!0,Ia=r),Pa(e,t)},n}function nh(e,t,n){n=xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Pa(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Pa(e,t),typeof r!="function"&&(Ut===null?Ut=new Set([this]):Ut.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Dc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ov;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Qv.bind(null,e,t,n),t.then(e,e))}function Vc(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 _c(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=xt(-1,1),t.tag=2,$t(n,t,1))),n.lanes|=1),e)}var jv=Mt.ReactCurrentOwner,ke=!1;function xe(e,t,n,r){t.child=e===null?Np(t,null,n,r):Zn(t,e.child,n,r)}function Ic(e,t,n,r,i){n=n.render;var s=t.ref;return Hn(t,i),r=bl(e,t,n,r,s,i),n=Hl(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Et(e,t,i)):(K&&n&&Dl(t),t.flags|=1,xe(e,t,r,i),t.child)}function Oc(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!tu(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,rh(e,t,s,r,i)):(e=es(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Hr,n(o,r)&&e.ref===t.ref)return Et(e,t,i)}return t.flags|=1,e=bt(s,r),e.ref=t.ref,e.return=t,t.child=e}function rh(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Hr(s,r)&&e.ref===t.ref)if(ke=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(ke=!0);else return t.lanes=e.lanes,Et(e,t,i)}return ka(e,t,n,r,i)}function ih(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(In,De),De|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(In,De),De|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,U(In,De),De|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,U(In,De),De|=r;return xe(e,t,i,n),t.child}function sh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ka(e,t,n,r,i){var s=Re(n)?hn:we.current;return s=Xn(t,s),Hn(t,i),n=bl(e,t,n,r,s,i),r=Hl(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Et(e,t,i)):(K&&r&&Dl(t),t.flags|=1,xe(e,t,n,i),t.child)}function jc(e,t,n,r,i){if(Re(n)){var s=!0;ms(t)}else s=!1;if(Hn(t,i),t.stateNode===null)Zi(e,t),eh(t,n,r),Ea(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ke(u):(u=Re(n)?hn:we.current,u=Xn(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Nc(t,o,r,u),Dt=!1;var d=t.memoizedState;o.state=d,xs(t,r,o,i),l=t.memoizedState,a!==r||d!==l||Ae.current||Dt?(typeof c=="function"&&(Ta(t,n,c,r),l=t.memoizedState),(a=Dt||Lc(t,n,a,r,d,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Vp(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Qe(t.type,a),o.props=u,f=t.pendingProps,d=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ke(l):(l=Re(n)?hn:we.current,l=Xn(t,l));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Nc(t,o,r,l),Dt=!1,d=t.memoizedState,o.state=d,xs(t,r,o,i);var v=t.memoizedState;a!==f||d!==v||Ae.current||Dt?(typeof g=="function"&&(Ta(t,n,g,r),v=t.memoizedState),(u=Dt||Lc(t,n,u,r,d,v,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ma(e,t,n,r,s,i)}function Ma(e,t,n,r,i,s){sh(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Cc(t,n,!1),Et(e,t,s);r=t.stateNode,jv.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Zn(t,e.child,null,s),t.child=Zn(t,null,a,s)):xe(e,t,a,s),t.memoizedState=r.state,i&&Cc(t,n,!0),t.child}function oh(e){var t=e.stateNode;t.pendingContext?Sc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sc(e,t.context,!1),Bl(e,t.containerInfo)}function Fc(e,t,n,r,i){return Qn(),_l(i),t.flags|=256,xe(e,t,n,r),t.child}var Aa={dehydrated:null,treeContext:null,retryLane:0};function Ra(e){return{baseLanes:e,cachePool:null,transitions:null}}function ah(e,t,n){var r=t.pendingProps,i=Y.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),U(Y,i&1),e===null)return Sa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Hs(o,r,0,null),e=fn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ra(n),t.memoizedState=Aa,e):Yl(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Fv(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=bt(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=bt(a,s):(s=fn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Ra(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Aa,r}return s=e.child,e=s.sibling,r=bt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Yl(e,t){return t=Hs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Di(e,t,n,r){return r!==null&&_l(r),Zn(t,e.child,null,n),e=Yl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fv(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=ko(Error(M(422))),Di(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Hs({mode:"visible",children:r.children},i,0,null),s=fn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Zn(t,e.child,null,o),t.child.memoizedState=Ra(o),t.memoizedState=Aa,s);if(!(t.mode&1))return Di(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(M(419)),r=ko(s,r,void 0),Di(e,t,o,r)}if(a=(o&e.childLanes)!==0,ke||a){if(r=ue,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Tt(e,i),tt(r,e,i,-1))}return eu(),r=ko(Error(M(421))),Di(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Zv.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,_e=Bt(i.nextSibling),Ie=t,K=!0,Je=null,e!==null&&($e[Ue++]=vt,$e[Ue++]=wt,$e[Ue++]=mn,vt=e.id,wt=e.overflow,mn=t),t=Yl(t,r.children),t.flags|=4096,t)}function zc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ca(e.return,t,n)}function Mo(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function lh(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(xe(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zc(e,n,t);else if(e.tag===19)zc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(U(Y,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ss(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Mo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ss(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Mo(t,!0,n,null,s);break;case"together":Mo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=bt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zv(e,t,n){switch(t.tag){case 3:oh(t),Qn();break;case 5:_p(t);break;case 1:Re(t.type)&&ms(t);break;case 4:Bl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;U(vs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(Y,Y.current&1),t.flags|=128,null):n&t.child.childLanes?ah(e,t,n):(U(Y,Y.current&1),e=Et(e,t,n),e!==null?e.sibling:null);U(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,ih(e,t,n)}return Et(e,t,n)}var uh,La,ch,fh;uh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};La=function(){};ch=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,an(lt.current);var s=null;switch(n){case"input":i=qo(e,i),r=qo(e,r),s=[];break;case"select":i=Z({},i,{value:void 0}),r=Z({},r,{value:void 0}),s=[];break;case"textarea":i=ta(e,i),r=ta(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ps)}ra(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fr.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fr.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&b("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};fh=function(e,t,n,r){n!==r&&(t.flags|=4)};function mr(e,t){if(!K)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bv(e,t,n){var r=t.pendingProps;switch(Vl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ge(t),null;case 1:return Re(t.type)&&hs(),ge(t),null;case 3:return r=t.stateNode,qn(),H(Ae),H(we),Ul(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Je!==null&&(Fa(Je),Je=null))),La(e,t),ge(t),null;case 5:$l(t);var i=an(Qr.current);if(n=t.type,e!==null&&t.stateNode!=null)ch(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return ge(t),null}if(e=an(lt.current),Li(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ot]=t,r[Yr]=s,e=(t.mode&1)!==0,n){case"dialog":b("cancel",r),b("close",r);break;case"iframe":case"object":case"embed":b("load",r);break;case"video":case"audio":for(i=0;i<Cr.length;i++)b(Cr[i],r);break;case"source":b("error",r);break;case"img":case"image":case"link":b("error",r),b("load",r);break;case"details":b("toggle",r);break;case"input":Yu(r,s),b("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},b("invalid",r);break;case"textarea":Qu(r,s),b("invalid",r)}ra(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ri(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ri(r.textContent,a,e),i=["children",""+a]):Fr.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&b("scroll",r)}switch(n){case"input":Si(r),Xu(r,s,!0);break;case"textarea":Si(r),Zu(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ps)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ot]=t,e[Yr]=r,uh(e,t,!1,!1),t.stateNode=e;e:{switch(o=ia(n,r),n){case"dialog":b("cancel",e),b("close",e),i=r;break;case"iframe":case"object":case"embed":b("load",e),i=r;break;case"video":case"audio":for(i=0;i<Cr.length;i++)b(Cr[i],e);i=r;break;case"source":b("error",e),i=r;break;case"img":case"image":case"link":b("error",e),b("load",e),i=r;break;case"details":b("toggle",e),i=r;break;case"input":Yu(e,r),i=qo(e,r),b("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Z({},r,{value:void 0}),b("invalid",e);break;case"textarea":Qu(e,r),i=ta(e,r),b("invalid",e);break;default:i=r}ra(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Ud(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Bd(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&zr(e,l):typeof l=="number"&&zr(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Fr.hasOwnProperty(s)?l!=null&&s==="onScroll"&&b("scroll",e):l!=null&&vl(e,s,l,o))}switch(n){case"input":Si(e),Xu(e,r,!1);break;case"textarea":Si(e),Zu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ht(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?$n(e,!!r.multiple,s,!1):r.defaultValue!=null&&$n(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ps)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ge(t),null;case 6:if(e&&t.stateNode!=null)fh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=an(Qr.current),an(lt.current),Li(t)){if(r=t.stateNode,n=t.memoizedProps,r[ot]=t,(s=r.nodeValue!==n)&&(e=Ie,e!==null))switch(e.tag){case 3:Ri(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ri(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ot]=t,t.stateNode=r}return ge(t),null;case 13:if(H(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(K&&_e!==null&&t.mode&1&&!(t.flags&128))Rp(),Qn(),t.flags|=98560,s=!1;else if(s=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(M(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(M(317));s[ot]=t}else Qn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ge(t),s=!1}else Je!==null&&(Fa(Je),Je=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?ae===0&&(ae=3):eu())),t.updateQueue!==null&&(t.flags|=4),ge(t),null);case 4:return qn(),La(e,t),e===null&&Kr(t.stateNode.containerInfo),ge(t),null;case 10:return jl(t.type._context),ge(t),null;case 17:return Re(t.type)&&hs(),ge(t),null;case 19:if(H(Y),s=t.memoizedState,s===null)return ge(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)mr(s,!1);else{if(ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ss(e),o!==null){for(t.flags|=128,mr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(Y,Y.current&1|2),t.child}e=e.sibling}s.tail!==null&&ne()>er&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ss(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!K)return ge(t),null}else 2*ne()-s.renderingStartTime>er&&n!==1073741824&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ne(),t.sibling=null,n=Y.current,U(Y,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return Jl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function $v(e,t){switch(Vl(t),t.tag){case 1:return Re(t.type)&&hs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qn(),H(Ae),H(we),Ul(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $l(t),null;case 13:if(H(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Y),null;case 4:return qn(),null;case 10:return jl(t.type._context),null;case 22:case 23:return Jl(),null;case 24:return null;default:return null}}var Vi=!1,ye=!1,Uv=typeof WeakSet=="function"?WeakSet:Set,R=null;function _n(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function Na(e,t,n){try{n()}catch(r){ee(e,t,r)}}var Bc=!1;function Wv(e,t){if(ha=cs,e=gp(),Nl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=o),d===s&&++c===r&&(l=o),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ma={focusedElem:e,selectionRange:n},cs=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,C=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:Qe(t.type,y),C);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(S){ee(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return v=Bc,Bc=!1,v}function Lr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Na(t,n,s)}i=i.next}while(i!==r)}}function Ws(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Da(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dh(e){var t=e.alternate;t!==null&&(e.alternate=null,dh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ot],delete t[Yr],delete t[va],delete t[Pv],delete t[kv])),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 ph(e){return e.tag===5||e.tag===3||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ph(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 Va(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ps));else if(r!==4&&(e=e.child,e!==null))for(Va(e,t,n),e=e.sibling;e!==null;)Va(e,t,n),e=e.sibling}function _a(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_a(e,t,n),e=e.sibling;e!==null;)_a(e,t,n),e=e.sibling}var fe=null,qe=!1;function Rt(e,t,n){for(n=n.child;n!==null;)hh(e,t,n),n=n.sibling}function hh(e,t,n){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(Is,n)}catch{}switch(n.tag){case 5:ye||_n(n,t);case 6:var r=fe,i=qe;fe=null,Rt(e,t,n),fe=r,qe=i,fe!==null&&(qe?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(qe?(e=fe,n=n.stateNode,e.nodeType===8?xo(e.parentNode,n):e.nodeType===1&&xo(e,n),Wr(e)):xo(fe,n.stateNode));break;case 4:r=fe,i=qe,fe=n.stateNode.containerInfo,qe=!0,Rt(e,t,n),fe=r,qe=i;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Na(n,t,o),i=i.next}while(i!==r)}Rt(e,t,n);break;case 1:if(!ye&&(_n(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ee(n,t,a)}Rt(e,t,n);break;case 21:Rt(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,Rt(e,t,n),ye=r):Rt(e,t,n);break;default:Rt(e,t,n)}}function Uc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Uv),t.forEach(function(r){var i=qv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:fe=a.stateNode,qe=!1;break e;case 3:fe=a.stateNode.containerInfo,qe=!0;break e;case 4:fe=a.stateNode.containerInfo,qe=!0;break e}a=a.return}if(fe===null)throw Error(M(160));hh(s,o,i),fe=null,qe=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ee(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)mh(t,e),t=t.sibling}function mh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ye(t,e),it(e),r&4){try{Lr(3,e,e.return),Ws(3,e)}catch(y){ee(e,e.return,y)}try{Lr(5,e,e.return)}catch(y){ee(e,e.return,y)}}break;case 1:Ye(t,e),it(e),r&512&&n!==null&&_n(n,n.return);break;case 5:if(Ye(t,e),it(e),r&512&&n!==null&&_n(n,n.return),e.flags&32){var i=e.stateNode;try{zr(i,"")}catch(y){ee(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&jd(i,s),ia(a,o);var u=ia(a,s);for(o=0;o<l.length;o+=2){var c=l[o],f=l[o+1];c==="style"?Ud(i,f):c==="dangerouslySetInnerHTML"?Bd(i,f):c==="children"?zr(i,f):vl(i,c,f,u)}switch(a){case"input":Jo(i,s);break;case"textarea":Fd(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?$n(i,!!s.multiple,g,!1):d!==!!s.multiple&&(s.defaultValue!=null?$n(i,!!s.multiple,s.defaultValue,!0):$n(i,!!s.multiple,s.multiple?[]:"",!1))}i[Yr]=s}catch(y){ee(e,e.return,y)}}break;case 6:if(Ye(t,e),it(e),r&4){if(e.stateNode===null)throw Error(M(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){ee(e,e.return,y)}}break;case 3:if(Ye(t,e),it(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wr(t.containerInfo)}catch(y){ee(e,e.return,y)}break;case 4:Ye(t,e),it(e);break;case 13:Ye(t,e),it(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Zl=ne())),r&4&&Uc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(u=ye)||c,Ye(t,e),ye=u):Ye(t,e),it(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(R=e,c=e.child;c!==null;){for(f=R=c;R!==null;){switch(d=R,g=d.child,d.tag){case 0:case 11:case 14:case 15:Lr(4,d,d.return);break;case 1:_n(d,d.return);var v=d.stateNode;if(typeof v.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){ee(r,n,y)}}break;case 5:_n(d,d.return);break;case 22:if(d.memoizedState!==null){bc(f);continue}}g!==null?(g.return=d,R=g):bc(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=$d("display",o))}catch(y){ee(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){ee(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;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ye(t,e),it(e),r&4&&Uc(e);break;case 21:break;default:Ye(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ph(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(zr(i,""),r.flags&=-33);var s=$c(e);_a(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=$c(e);Va(e,a,o);break;default:throw Error(M(161))}}catch(l){ee(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bv(e,t,n){R=e,gh(e)}function gh(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var i=R,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Vi;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||ye;a=Vi;var u=ye;if(Vi=o,(ye=l)&&!u)for(R=i;R!==null;)o=R,l=o.child,o.tag===22&&o.memoizedState!==null?Hc(i):l!==null?(l.return=o,R=l):Hc(i);for(;s!==null;)R=s,gh(s),s=s.sibling;R=i,Vi=a,ye=u}Wc(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,R=s):Wc(e)}}function Wc(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ye||Ws(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Qe(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Mc(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mc(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Wr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}ye||t.flags&512&&Da(t)}catch(d){ee(t,t.return,d)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function bc(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function Hc(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ws(4,t)}catch(l){ee(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ee(t,i,l)}}var s=t.return;try{Da(t)}catch(l){ee(t,s,l)}break;case 5:var o=t.return;try{Da(t)}catch(l){ee(t,o,l)}}}catch(l){ee(t,t.return,l)}if(t===e){R=null;break}var a=t.sibling;if(a!==null){a.return=t.return,R=a;break}R=t.return}}var Hv=Math.ceil,Es=Mt.ReactCurrentDispatcher,Xl=Mt.ReactCurrentOwner,be=Mt.ReactCurrentBatchConfig,z=0,ue=null,ie=null,pe=0,De=0,In=Qt(0),ae=0,ei=null,yn=0,bs=0,Ql=0,Nr=null,Pe=null,Zl=0,er=1/0,gt=null,Ps=!1,Ia=null,Ut=null,_i=!1,Ot=null,ks=0,Dr=0,Oa=null,qi=-1,Ji=0;function Ce(){return z&6?ne():qi!==-1?qi:qi=ne()}function Wt(e){return e.mode&1?z&2&&pe!==0?pe&-pe:Av.transition!==null?(Ji===0&&(Ji=ep()),Ji):(e=B,e!==0||(e=window.event,e=e===void 0?16:ap(e.type)),e):1}function tt(e,t,n,r){if(50<Dr)throw Dr=0,Oa=null,Error(M(185));ui(e,n,r),(!(z&2)||e!==ue)&&(e===ue&&(!(z&2)&&(bs|=n),ae===4&&_t(e,pe)),Le(e,r),n===1&&z===0&&!(t.mode&1)&&(er=ne()+500,Bs&&Zt()))}function Le(e,t){var n=e.callbackNode;Ay(e,t);var r=us(e,e===ue?pe:0);if(r===0)n!==null&&ec(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ec(n),t===1)e.tag===0?Mv(Kc.bind(null,e)):kp(Kc.bind(null,e)),Tv(function(){!(z&6)&&Zt()}),n=null;else{switch(tp(r)){case 1:n=Tl;break;case 4:n=qd;break;case 16:n=ls;break;case 536870912:n=Jd;break;default:n=ls}n=Eh(n,yh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yh(e,t){if(qi=-1,Ji=0,z&6)throw Error(M(327));var n=e.callbackNode;if(Kn()&&e.callbackNode!==n)return null;var r=us(e,e===ue?pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ms(e,r);else{t=r;var i=z;z|=2;var s=wh();(ue!==e||pe!==t)&&(gt=null,er=ne()+500,cn(e,t));do try{Yv();break}catch(a){vh(e,a)}while(!0);Ol(),Es.current=s,z=i,ie!==null?t=0:(ue=null,pe=0,t=ae)}if(t!==0){if(t===2&&(i=ua(e),i!==0&&(r=i,t=ja(e,i))),t===1)throw n=ei,cn(e,0),_t(e,r),Le(e,ne()),n;if(t===6)_t(e,r);else{if(i=e.current.alternate,!(r&30)&&!Kv(i)&&(t=Ms(e,r),t===2&&(s=ua(e),s!==0&&(r=s,t=ja(e,s))),t===1))throw n=ei,cn(e,0),_t(e,r),Le(e,ne()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:nn(e,Pe,gt);break;case 3:if(_t(e,r),(r&130023424)===r&&(t=Zl+500-ne(),10<t)){if(us(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ce(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ya(nn.bind(null,e,Pe,gt),t);break}nn(e,Pe,gt);break;case 4:if(_t(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-et(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hv(r/1960))-r,10<r){e.timeoutHandle=ya(nn.bind(null,e,Pe,gt),r);break}nn(e,Pe,gt);break;case 5:nn(e,Pe,gt);break;default:throw Error(M(329))}}}return Le(e,ne()),e.callbackNode===n?yh.bind(null,e):null}function ja(e,t){var n=Nr;return e.current.memoizedState.isDehydrated&&(cn(e,t).flags|=256),e=Ms(e,t),e!==2&&(t=Pe,Pe=n,t!==null&&Fa(t)),e}function Fa(e){Pe===null?Pe=e:Pe.push.apply(Pe,e)}function Kv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!nt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _t(e,t){for(t&=~Ql,t&=~bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-et(t),r=1<<n;e[n]=-1,t&=~r}}function Kc(e){if(z&6)throw Error(M(327));Kn();var t=us(e,0);if(!(t&1))return Le(e,ne()),null;var n=Ms(e,t);if(e.tag!==0&&n===2){var r=ua(e);r!==0&&(t=r,n=ja(e,r))}if(n===1)throw n=ei,cn(e,0),_t(e,t),Le(e,ne()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nn(e,Pe,gt),Le(e,ne()),null}function ql(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(er=ne()+500,Bs&&Zt())}}function vn(e){Ot!==null&&Ot.tag===0&&!(z&6)&&Kn();var t=z;z|=1;var n=be.transition,r=B;try{if(be.transition=null,B=1,e)return e()}finally{B=r,be.transition=n,z=t,!(z&6)&&Zt()}}function Jl(){De=In.current,H(In)}function cn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Cv(n)),ie!==null)for(n=ie.return;n!==null;){var r=n;switch(Vl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hs();break;case 3:qn(),H(Ae),H(we),Ul();break;case 5:$l(r);break;case 4:qn();break;case 13:H(Y);break;case 19:H(Y);break;case 10:jl(r.type._context);break;case 22:case 23:Jl()}n=n.return}if(ue=e,ie=e=bt(e.current,null),pe=De=t,ae=0,ei=null,Ql=bs=yn=0,Pe=Nr=null,on!==null){for(t=0;t<on.length;t++)if(n=on[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}on=null}return e}function vh(e,t){do{var n=ie;try{if(Ol(),Xi.current=Ts,Cs){for(var r=Q.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Cs=!1}if(gn=0,le=oe=Q=null,Rr=!1,Zr=0,Xl.current=null,n===null||n.return===null){ae=1,ei=t,ie=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=pe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=Vc(o);if(g!==null){g.flags&=-257,_c(g,o,a,s,t),g.mode&1&&Dc(s,u,t),t=g,l=u;var v=t.updateQueue;if(v===null){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}else{if(!(t&1)){Dc(s,u,t),eu();break e}l=Error(M(426))}}else if(K&&a.mode&1){var C=Vc(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),_c(C,o,a,s,t),_l(Jn(l,a));break e}}s=l=Jn(l,a),ae!==4&&(ae=2),Nr===null?Nr=[s]:Nr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=th(s,l,t);kc(s,p);break e;case 1:a=l;var h=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ut===null||!Ut.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=nh(s,a,t);kc(s,S);break e}}s=s.return}while(s!==null)}Sh(n)}catch(x){t=x,ie===n&&n!==null&&(ie=n=n.return);continue}break}while(!0)}function wh(){var e=Es.current;return Es.current=Ts,e===null?Ts:e}function eu(){(ae===0||ae===3||ae===2)&&(ae=4),ue===null||!(yn&268435455)&&!(bs&268435455)||_t(ue,pe)}function Ms(e,t){var n=z;z|=2;var r=wh();(ue!==e||pe!==t)&&(gt=null,cn(e,t));do try{Gv();break}catch(i){vh(e,i)}while(!0);if(Ol(),z=n,Es.current=r,ie!==null)throw Error(M(261));return ue=null,pe=0,ae}function Gv(){for(;ie!==null;)xh(ie)}function Yv(){for(;ie!==null&&!wy();)xh(ie)}function xh(e){var t=Th(e.alternate,e,De);e.memoizedProps=e.pendingProps,t===null?Sh(e):ie=t,Xl.current=null}function Sh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$v(n,t),n!==null){n.flags&=32767,ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ae=6,ie=null;return}}else if(n=Bv(n,t,De),n!==null){ie=n;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);ae===0&&(ae=5)}function nn(e,t,n){var r=B,i=be.transition;try{be.transition=null,B=1,Xv(e,t,n,r)}finally{be.transition=i,B=r}return null}function Xv(e,t,n,r){do Kn();while(Ot!==null);if(z&6)throw Error(M(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Ry(e,s),e===ue&&(ie=ue=null,pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||_i||(_i=!0,Eh(ls,function(){return Kn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=be.transition,be.transition=null;var o=B;B=1;var a=z;z|=4,Xl.current=null,Wv(e,n),mh(n,e),mv(ma),cs=!!ha,ma=ha=null,e.current=n,bv(n),xy(),z=a,B=o,be.transition=s}else e.current=n;if(_i&&(_i=!1,Ot=e,ks=i),s=e.pendingLanes,s===0&&(Ut=null),Ty(n.stateNode),Le(e,ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ps)throw Ps=!1,e=Ia,Ia=null,e;return ks&1&&e.tag!==0&&Kn(),s=e.pendingLanes,s&1?e===Oa?Dr++:(Dr=0,Oa=e):Dr=0,Zt(),null}function Kn(){if(Ot!==null){var e=tp(ks),t=be.transition,n=B;try{if(be.transition=null,B=16>e?16:e,Ot===null)var r=!1;else{if(e=Ot,Ot=null,ks=0,z&6)throw Error(M(331));var i=z;for(z|=4,R=e.current;R!==null;){var s=R,o=s.child;if(R.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(R=u;R!==null;){var c=R;switch(c.tag){case 0:case 11:case 15:Lr(8,c,s)}var f=c.child;if(f!==null)f.return=c,R=f;else for(;R!==null;){c=R;var d=c.sibling,g=c.return;if(dh(c),c===u){R=null;break}if(d!==null){d.return=g,R=d;break}R=g}}}var v=s.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var C=y.sibling;y.sibling=null,y=C}while(y!==null)}}R=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,R=o;else e:for(;R!==null;){if(s=R,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Lr(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,R=p;break e}R=s.return}}var h=e.current;for(R=h;R!==null;){o=R;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,R=m;else e:for(o=h;R!==null;){if(a=R,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ws(9,a)}}catch(x){ee(a,a.return,x)}if(a===o){R=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,R=S;break e}R=a.return}}if(z=i,Zt(),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(Is,e)}catch{}r=!0}return r}finally{B=n,be.transition=t}}return!1}function Gc(e,t,n){t=Jn(n,t),t=th(e,t,1),e=$t(e,t,1),t=Ce(),e!==null&&(ui(e,1,t),Le(e,t))}function ee(e,t,n){if(e.tag===3)Gc(e,e,n);else for(;t!==null;){if(t.tag===3){Gc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ut===null||!Ut.has(r))){e=Jn(n,e),e=nh(t,e,1),t=$t(t,e,1),e=Ce(),t!==null&&(ui(t,1,e),Le(t,e));break}}t=t.return}}function Qv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ce(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(pe&n)===n&&(ae===4||ae===3&&(pe&130023424)===pe&&500>ne()-Zl?cn(e,0):Ql|=n),Le(e,t)}function Ch(e,t){t===0&&(e.mode&1?(t=Ei,Ei<<=1,!(Ei&130023424)&&(Ei=4194304)):t=1);var n=Ce();e=Tt(e,t),e!==null&&(ui(e,t,n),Le(e,n))}function Zv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ch(e,n)}function qv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Ch(e,n)}var Th;Th=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,zv(e,t,n);ke=!!(e.flags&131072)}else ke=!1,K&&t.flags&1048576&&Mp(t,ys,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var i=Xn(t,we.current);Hn(t,n),i=bl(null,t,r,e,i,n);var s=Hl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Re(r)?(s=!0,ms(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zl(t),i.updater=Us,t.stateNode=i,i._reactInternals=t,Ea(t,r,e,n),t=Ma(null,t,r,!0,s,n)):(t.tag=0,K&&s&&Dl(t),xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=e0(r),e=Qe(r,e),i){case 0:t=ka(null,t,r,e,n);break e;case 1:t=jc(null,t,r,e,n);break e;case 11:t=Ic(null,t,r,e,n);break e;case 14:t=Oc(null,t,r,Qe(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),ka(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),jc(e,t,r,i,n);case 3:e:{if(oh(t),e===null)throw Error(M(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Vp(e,t),xs(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Jn(Error(M(423)),t),t=Fc(e,t,r,n,i);break e}else if(r!==i){i=Jn(Error(M(424)),t),t=Fc(e,t,r,n,i);break e}else for(_e=Bt(t.stateNode.containerInfo.firstChild),Ie=t,K=!0,Je=null,n=Np(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qn(),r===i){t=Et(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return _p(t),e===null&&Sa(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,ga(r,i)?o=null:s!==null&&ga(r,s)&&(t.flags|=32),sh(e,t),xe(e,t,o,n),t.child;case 6:return e===null&&Sa(t),null;case 13:return ah(e,t,n);case 4:return Bl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zn(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),Ic(e,t,r,i,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,U(vs,r._currentValue),r._currentValue=o,s!==null)if(nt(s.value,o)){if(s.children===i.children&&!Ae.current){t=Et(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=xt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ca(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(M(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ca(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hn(t,n),i=Ke(i),r=r(i),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,i=Qe(r,t.pendingProps),i=Qe(r.type,i),Oc(e,t,r,i,n);case 15:return rh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),Zi(e,t),t.tag=1,Re(r)?(e=!0,ms(t)):e=!1,Hn(t,n),eh(t,r,i),Ea(t,r,i,n),Ma(null,t,r,!0,e,n);case 19:return lh(e,t,n);case 22:return ih(e,t,n)}throw Error(M(156,t.tag))};function Eh(e,t){return Zd(e,t)}function Jv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(e,t,n,r){return new Jv(e,t,n,r)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e0(e){if(typeof e=="function")return tu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xl)return 11;if(e===Sl)return 14}return 2}function bt(e,t){var n=e.alternate;return n===null?(n=We(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function es(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")tu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pn:return fn(n.children,i,s,t);case wl:o=8,i|=8;break;case Yo:return e=We(12,n,t,i|2),e.elementType=Yo,e.lanes=s,e;case Xo:return e=We(13,n,t,i),e.elementType=Xo,e.lanes=s,e;case Qo:return e=We(19,n,t,i),e.elementType=Qo,e.lanes=s,e;case _d:return Hs(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dd:o=10;break e;case Vd:o=9;break e;case xl:o=11;break e;case Sl:o=14;break e;case Nt:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=We(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function fn(e,t,n,r){return e=We(7,e,r,t),e.lanes=n,e}function Hs(e,t,n,r){return e=We(22,e,r,t),e.elementType=_d,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=We(6,e,null,t),e.lanes=n,e}function Ro(e,t,n){return t=We(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lo(0),this.expirationTimes=lo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,s,o,a,l){return e=new t0(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=We(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zl(s),e}function n0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:En,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ph(e){if(!e)return Kt;e=e._reactInternals;e:{if(Cn(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Re(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(Re(n))return Pp(e,n,t)}return t}function kh(e,t,n,r,i,s,o,a,l){return e=nu(n,r,!0,e,i,s,o,a,l),e.context=Ph(null),n=e.current,r=Ce(),i=Wt(n),s=xt(r,i),s.callback=t??null,$t(n,s,i),e.current.lanes=i,ui(e,i,r),Le(e,r),e}function Ks(e,t,n,r){var i=t.current,s=Ce(),o=Wt(i);return n=Ph(n),t.context===null?t.context=n:t.pendingContext=n,t=xt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$t(i,t,o),e!==null&&(tt(e,i,o,s),Yi(e,i,o)),o}function As(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 Yc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ru(e,t){Yc(e,t),(e=e.alternate)&&Yc(e,t)}function r0(){return null}var Mh=typeof reportError=="function"?reportError:function(e){console.error(e)};function iu(e){this._internalRoot=e}Gs.prototype.render=iu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));Ks(e,t,null,null)};Gs.prototype.unmount=iu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vn(function(){Ks(null,e,null,null)}),t[Ct]=null}};function Gs(e){this._internalRoot=e}Gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=ip();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vt.length&&t!==0&&t<Vt[n].priority;n++);Vt.splice(n,0,e),n===0&&op(e)}};function su(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ys(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xc(){}function i0(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=As(o);s.call(u)}}var o=kh(t,r,e,0,null,!1,!1,"",Xc);return e._reactRootContainer=o,e[Ct]=o.current,Kr(e.nodeType===8?e.parentNode:e),vn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=As(l);a.call(u)}}var l=nu(e,0,!1,null,null,!1,!1,"",Xc);return e._reactRootContainer=l,e[Ct]=l.current,Kr(e.nodeType===8?e.parentNode:e),vn(function(){Ks(t,l,n,r)}),l}function Xs(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=As(o);a.call(l)}}Ks(t,o,e,i)}else o=i0(n,t,e,i,r);return As(o)}np=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Sr(t.pendingLanes);n!==0&&(El(t,n|1),Le(t,ne()),!(z&6)&&(er=ne()+500,Zt()))}break;case 13:vn(function(){var r=Tt(e,1);if(r!==null){var i=Ce();tt(r,e,1,i)}}),ru(e,1)}};Pl=function(e){if(e.tag===13){var t=Tt(e,134217728);if(t!==null){var n=Ce();tt(t,e,134217728,n)}ru(e,134217728)}};rp=function(e){if(e.tag===13){var t=Wt(e),n=Tt(e,t);if(n!==null){var r=Ce();tt(n,e,t,r)}ru(e,t)}};ip=function(){return B};sp=function(e,t){var n=B;try{return B=e,t()}finally{B=n}};oa=function(e,t,n){switch(t){case"input":if(Jo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=zs(r);if(!i)throw Error(M(90));Od(r),Jo(r,i)}}}break;case"textarea":Fd(e,n);break;case"select":t=n.value,t!=null&&$n(e,!!n.multiple,t,!1)}};Hd=ql;Kd=vn;var s0={usingClientEntryPoint:!1,Events:[fi,Rn,zs,Wd,bd,ql]},gr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},o0={bundleType:gr.bundleType,version:gr.version,rendererPackageName:gr.rendererPackageName,rendererConfig:gr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xd(e),e===null?null:e.stateNode},findFiberByHostInstance:gr.findFiberByHostInstance||r0,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{Is=Ii.inject(o0),at=Ii}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s0;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!su(t))throw Error(M(200));return n0(e,t,null,n)};je.createRoot=function(e,t){if(!su(e))throw Error(M(299));var n=!1,r="",i=Mh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,r,i),e[Ct]=t.current,Kr(e.nodeType===8?e.parentNode:e),new iu(t)};je.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(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=Xd(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return vn(e)};je.hydrate=function(e,t,n){if(!Ys(t))throw Error(M(200));return Xs(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!su(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Mh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=kh(t,null,e,1,n??null,i,!1,s,o),e[Ct]=t.current,Kr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Gs(t)};je.render=function(e,t,n){if(!Ys(t))throw Error(M(200));return Xs(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!Ys(e))throw Error(M(40));return e._reactRootContainer?(vn(function(){Xs(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1};je.unstable_batchedUpdates=ql;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ys(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return Xs(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function Ah(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ah)}catch(e){console.error(e)}}Ah(),Ad.exports=je;var Qs=Ad.exports;const a0=fl(Qs);var Qc=Qs;Ko.createRoot=Qc.createRoot,Ko.hydrateRoot=Qc.hydrateRoot;const Rh=w.createContext({});function l0(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const ou=typeof window<"u",u0=ou?w.useLayoutEffect:w.useEffect,au=w.createContext(null);function lu(e,t){e.indexOf(t)===-1&&e.push(t)}function uu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pt=(e,t,n)=>n>t?t:n<e?e:n;let cu=()=>{};const kt={},Lh=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Nh(e){return typeof e=="object"&&e!==null}const Dh=e=>/^0[^.\s]+$/u.test(e);function fu(e){let t;return()=>(t===void 0&&(t=e()),t)}const He=e=>e,c0=(e,t)=>n=>t(e(n)),pi=(...e)=>e.reduce(c0),ti=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class du{constructor(){this.subscriptions=[]}add(t){return lu(this.subscriptions,t),()=>uu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ut=e=>e*1e3,ct=e=>e/1e3;function Vh(e,t){return t?e*(1e3/t):0}const _h=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,f0=1e-7,d0=12;function p0(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=_h(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>f0&&++a<d0);return o}function hi(e,t,n,r){if(e===t&&n===r)return He;const i=s=>p0(s,0,1,e,n);return s=>s===0||s===1?s:_h(i(s),t,r)}const Ih=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Oh=e=>t=>1-e(1-t),jh=hi(.33,1.53,.69,.99),pu=Oh(jh),Fh=Ih(pu),zh=e=>(e*=2)<1?.5*pu(e):.5*(2-Math.pow(2,-10*(e-1))),hu=e=>1-Math.sin(Math.acos(e)),Bh=Oh(hu),$h=Ih(hu),h0=hi(.42,0,1,1),m0=hi(0,0,.58,1),Uh=hi(.42,0,.58,1),g0=e=>Array.isArray(e)&&typeof e[0]!="number",Wh=e=>Array.isArray(e)&&typeof e[0]=="number",y0={linear:He,easeIn:h0,easeInOut:Uh,easeOut:m0,circIn:hu,circInOut:$h,circOut:Bh,backIn:pu,backInOut:Fh,backOut:jh,anticipate:zh},v0=e=>typeof e=="string",Zc=e=>{if(Wh(e)){cu(e.length===4);const[t,n,r,i]=e;return hi(t,n,r,i)}else if(v0(e))return y0[e];return e},Oi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function w0(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,f=!1,d=!1)=>{const v=d&&i?n:r;return f&&o.add(c),v.has(c)||v.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,u.process(c))}};return u}const x0=40;function bh(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Oi.reduce((m,S)=>(m[S]=w0(s),m),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:g,postRender:v}=o,y=()=>{const m=kt.useManualTiming?i.timestamp:performance.now();n=!1,kt.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,x0),1)),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),g.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},C=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Oi.reduce((m,S)=>{const x=o[S];return m[S]=(T,E=!1,k=!1)=>(n||C(),x.schedule(T,E,k)),m},{}),cancel:m=>{for(let S=0;S<Oi.length;S++)o[Oi[S]].cancel(m)},state:i,steps:o}}const{schedule:G,cancel:Gt,state:de,steps:Lo}=bh(typeof requestAnimationFrame<"u"?requestAnimationFrame:He,!0);let ts;function S0(){ts=void 0}const Me={now:()=>(ts===void 0&&Me.set(de.isProcessing||kt.useManualTiming?de.timestamp:performance.now()),ts),set:e=>{ts=e,queueMicrotask(S0)}},Hh=e=>t=>typeof t=="string"&&t.startsWith(e),mu=Hh("--"),C0=Hh("var(--"),gu=e=>C0(e)?T0.test(e.split("/*")[0].trim()):!1,T0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,or={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ni={...or,transform:e=>Pt(0,1,e)},ji={...or,default:1},Vr=e=>Math.round(e*1e5)/1e5,yu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E0(e){return e==null}const P0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vu=(e,t)=>n=>!!(typeof n=="string"&&P0.test(n)&&n.startsWith(e)||t&&!E0(n)&&Object.prototype.hasOwnProperty.call(n,t)),Kh=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(yu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},k0=e=>Pt(0,255,e),No={...or,transform:e=>Math.round(k0(e))},ln={test:vu("rgb","red"),parse:Kh("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+No.transform(e)+", "+No.transform(t)+", "+No.transform(n)+", "+Vr(ni.transform(r))+")"};function M0(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const za={test:vu("#"),parse:M0,transform:ln.transform},mi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Lt=mi("deg"),ft=mi("%"),_=mi("px"),A0=mi("vh"),R0=mi("vw"),qc={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)},On={test:vu("hsl","hue"),parse:Kh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(Vr(t))+", "+ft.transform(Vr(n))+", "+Vr(ni.transform(r))+")"},re={test:e=>ln.test(e)||za.test(e)||On.test(e),parse:e=>ln.test(e)?ln.parse(e):On.test(e)?On.parse(e):za.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ln.transform(e):On.transform(e),getAnimatableNone:e=>{const t=re.parse(e);return t.alpha=0,re.transform(t)}},L0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function N0(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(yu))==null?void 0:t.length)||0)+(((n=e.match(L0))==null?void 0:n.length)||0)>0}const Gh="number",Yh="color",D0="var",V0="var(",Jc="${}",_0=/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 ri(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(_0,l=>(re.test(l)?(r.color.push(s),i.push(Yh),n.push(re.parse(l))):l.startsWith(V0)?(r.var.push(s),i.push(D0),n.push(l)):(r.number.push(s),i.push(Gh),n.push(parseFloat(l))),++s,Jc)).split(Jc);return{values:n,split:a,indexes:r,types:i}}function Xh(e){return ri(e).values}function Qh(e){const{split:t,types:n}=ri(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Gh?s+=Vr(i[o]):a===Yh?s+=re.transform(i[o]):s+=i[o]}return s}}const I0=e=>typeof e=="number"?0:re.test(e)?re.getAnimatableNone(e):e;function O0(e){const t=Xh(e);return Qh(e)(t.map(I0))}const Yt={test:N0,parse:Xh,createTransformer:Qh,getAnimatableNone:O0};function Do(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function j0({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Do(l,a,e+1/3),s=Do(l,a,e),o=Do(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Rs(e,t){return n=>n>0?t:e}const X=(e,t,n)=>e+(t-e)*n,Vo=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},F0=[za,ln,On],z0=e=>F0.find(t=>t.test(e));function ef(e){const t=z0(e);if(!t)return!1;let n=t.parse(e);return t===On&&(n=j0(n)),n}const tf=(e,t)=>{const n=ef(e),r=ef(t);if(!n||!r)return Rs(e,t);const i={...n};return s=>(i.red=Vo(n.red,r.red,s),i.green=Vo(n.green,r.green,s),i.blue=Vo(n.blue,r.blue,s),i.alpha=X(n.alpha,r.alpha,s),ln.transform(i))},Ba=new Set(["none","hidden"]);function B0(e,t){return Ba.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $0(e,t){return n=>X(e,t,n)}function wu(e){return typeof e=="number"?$0:typeof e=="string"?gu(e)?Rs:re.test(e)?tf:b0:Array.isArray(e)?Zh:typeof e=="object"?re.test(e)?tf:U0:Rs}function Zh(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>wu(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function U0(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=wu(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function W0(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const b0=(e,t)=>{const n=Yt.createTransformer(t),r=ri(e),i=ri(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ba.has(e)&&!i.values.length||Ba.has(t)&&!r.values.length?B0(e,t):pi(Zh(W0(r,i),i.values),n):Rs(e,t)};function qh(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?X(e,t,n):wu(e)(e,t)}const H0=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>G.update(t,n),stop:()=>Gt(t),now:()=>de.isProcessing?de.timestamp:Me.now()}},Jh=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ls=2e4;function xu(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ls;)t+=n,r=e.next(t);return t>=Ls?1/0:t}function K0(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(xu(r),Ls);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:ct(i)}}const G0=5;function em(e,t,n){const r=Math.max(t-G0,0);return Vh(n-e(r),t-r)}const J={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},_o=.001;function Y0({duration:e=J.duration,bounce:t=J.bounce,velocity:n=J.velocity,mass:r=J.mass}){let i,s,o=1-t;o=Pt(J.minDamping,J.maxDamping,o),e=Pt(J.minDuration,J.maxDuration,ct(e)),o<1?(i=u=>{const c=u*o,f=c*e,d=c-n,g=$a(u,o),v=Math.exp(-f);return _o-d/g*v},s=u=>{const f=u*o*e,d=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-f),y=$a(Math.pow(u,2),o);return(-i(u)+_o>0?-1:1)*((d-g)*v)/y}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-_o+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=Q0(i,s,a);if(e=ut(e),isNaN(l))return{stiffness:J.stiffness,damping:J.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const X0=12;function Q0(e,t,n){let r=n;for(let i=1;i<X0;i++)r=r-e(r)/t(r);return r}function $a(e,t){return e*Math.sqrt(1-t*t)}const Z0=["duration","bounce"],q0=["stiffness","damping","mass"];function nf(e,t){return t.some(n=>e[n]!==void 0)}function J0(e){let t={velocity:J.velocity,stiffness:J.stiffness,damping:J.damping,mass:J.mass,isResolvedFromDuration:!1,...e};if(!nf(e,q0)&&nf(e,Z0))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Pt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:J.mass,stiffness:i,damping:s}}else{const n=Y0(e);t={...t,...n,mass:J.mass},t.isResolvedFromDuration=!0}return t}function Ns(e=J.visualDuration,t=J.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:g}=J0({...n,velocity:-ct(n.velocity||0)}),v=d||0,y=u/(2*Math.sqrt(l*c)),C=o-s,p=ct(Math.sqrt(l/c)),h=Math.abs(C)<5;r||(r=h?J.restSpeed.granular:J.restSpeed.default),i||(i=h?J.restDelta.granular:J.restDelta.default);let m;if(y<1){const x=$a(p,y);m=T=>{const E=Math.exp(-y*p*T);return o-E*((v+y*p*C)/x*Math.sin(x*T)+C*Math.cos(x*T))}}else if(y===1)m=x=>o-Math.exp(-p*x)*(C+(v+p*C)*x);else{const x=p*Math.sqrt(y*y-1);m=T=>{const E=Math.exp(-y*p*T),k=Math.min(x*T,300);return o-E*((v+y*p*C)*Math.sinh(k)+x*C*Math.cosh(k))/x}}const S={calculatedDuration:g&&f||null,next:x=>{const T=m(x);if(g)a.done=x>=f;else{let E=x===0?v:0;y<1&&(E=x===0?ut(v):em(m,x,T));const k=Math.abs(E)<=r,N=Math.abs(o-T)<=i;a.done=k&&N}return a.value=a.done?o:T,a},toString:()=>{const x=Math.min(xu(S),Ls),T=Jh(E=>S.next(x*E).value,x,30);return x+"ms "+T},toTransition:()=>{}};return S}Ns.applyToOptions=e=>{const t=K0(e,100,Ns);return e.ease=t.ease,e.duration=ut(t.duration),e.type="keyframes",e};function Ua({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=k=>a!==void 0&&k<a||l!==void 0&&k>l,v=k=>a===void 0?l:l===void 0||Math.abs(a-k)<Math.abs(l-k)?a:l;let y=n*t;const C=f+y,p=o===void 0?C:o(C);p!==C&&(y=p-f);const h=k=>-y*Math.exp(-k/r),m=k=>p+h(k),S=k=>{const N=h(k),L=m(k);d.done=Math.abs(N)<=u,d.value=d.done?p:L};let x,T;const E=k=>{g(d.value)&&(x=k,T=Ns({keyframes:[d.value,v(d.value)],velocity:em(m,k,d.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:k=>{let N=!1;return!T&&x===void 0&&(N=!0,S(k),E(k)),x!==void 0&&k>=x?T.next(k-x):(!N&&S(k),d)}}}function e1(e,t,n){const r=[],i=n||kt.mix||qh,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||He:t;a=pi(l,a)}r.push(a)}return r}function t1(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(cu(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=e1(t,r,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=ti(e[f],e[f+1],c);return a[f](d)};return n?c=>u(Pt(e[0],e[s-1],c)):u}function n1(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ti(0,t,r);e.push(X(n,1,i))}}function r1(e){const t=[0];return n1(t,e.length-1),t}function i1(e,t){return e.map(n=>n*t)}function s1(e,t){return e.map(()=>t||Uh).splice(0,e.length-1)}function _r({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=g0(r)?r.map(Zc):Zc(r),s={done:!1,value:t[0]},o=i1(n&&n.length===t.length?n:r1(t),e),a=t1(o,t,{ease:Array.isArray(i)?i:s1(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const o1=e=>e!==null;function Su(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(o1),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const a1={decay:Ua,inertia:Ua,tween:_r,keyframes:_r,spring:Ns};function tm(e){typeof e.type=="string"&&(e.type=a1[e.type])}class Cu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const l1=e=>e/100;class Tu extends Cu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Me.now()&&this.tick(Me.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;tm(t);const{type:n=_r,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||_r;l!==_r&&typeof a[0]!="number"&&(this.mixKeyframes=pi(l1,qh(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=xu(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:g,type:v,onUpdate:y,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let m=this.currentTime,S=r;if(f){const k=Math.min(this.currentTime,i)/a;let N=Math.floor(k),L=k%1;!L&&k>=1&&(L=1),L===1&&N--,N=Math.min(N,f+1),!!(N%2)&&(d==="reverse"?(L=1-L,g&&(L-=g/a)):d==="mirror"&&(S=o)),m=Pt(0,1,L)*a}const x=h?{done:!1,value:c[0]}:S.next(m);s&&(x.value=s(x.value));let{done:T}=x;!h&&l!==null&&(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return E&&v!==Ua&&(x.value=Su(c,this.options,C,this.speed)),y&&y(x.value),E&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return ct(this.calculatedDuration)}get time(){return ct(this.currentTime)}set time(t){var n;t=ut(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Me.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ct(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=H0,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Me.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function u1(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const un=e=>e*180/Math.PI,Wa=e=>{const t=un(Math.atan2(e[1],e[0]));return ba(t)},c1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wa,rotateZ:Wa,skewX:e=>un(Math.atan(e[1])),skewY:e=>un(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ba=e=>(e=e%360,e<0&&(e+=360),e),rf=Wa,sf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),of=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),f1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sf,scaleY:of,scale:e=>(sf(e)+of(e))/2,rotateX:e=>ba(un(Math.atan2(e[6],e[5]))),rotateY:e=>ba(un(Math.atan2(-e[2],e[0]))),rotateZ:rf,rotate:rf,skewX:e=>un(Math.atan(e[4])),skewY:e=>un(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ha(e){return e.includes("scale")?1:0}function Ka(e,t){if(!e||e==="none")return Ha(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=f1,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=c1,i=a}if(!i)return Ha(t);const s=r[t],o=i[1].split(",").map(p1);return typeof s=="function"?s(o):o[s]}const d1=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ka(n,t)};function p1(e){return parseFloat(e.trim())}const ar=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lr=new Set(ar),af=e=>e===or||e===_,h1=new Set(["x","y","z"]),m1=ar.filter(e=>!h1.has(e));function g1(e){const t=[];return m1.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const dn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ka(t,"x"),y:(e,{transform:t})=>Ka(t,"y")};dn.translateX=dn.x;dn.translateY=dn.y;const pn=new Set;let Ga=!1,Ya=!1,Xa=!1;function nm(){if(Ya){const e=Array.from(pn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=g1(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ya=!1,Ga=!1,pn.forEach(e=>e.complete(Xa)),pn.clear()}function rm(){pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ya=!0)})}function y1(){Xa=!0,rm(),nm(),Xa=!1}class Eu{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(pn.add(this),Ga||(Ga=!0,G.read(rm),G.resolveKeyframes(nm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}u1(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),pn.delete(this)}cancel(){this.state==="scheduled"&&(pn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const v1=e=>e.startsWith("--");function w1(e,t,n){v1(t)?e.style.setProperty(t,n):e.style[t]=n}const x1=fu(()=>window.ScrollTimeline!==void 0),S1={};function C1(e,t){const n=fu(e);return()=>S1[t]??n()}const im=C1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tr([0,.65,.55,1]),circOut:Tr([.55,0,1,.45]),backIn:Tr([.31,.01,.66,-.59]),backOut:Tr([.33,1.53,.69,.99])};function sm(e,t){if(e)return typeof e=="function"?im()?Jh(e,t):"ease-out":Wh(e)?Tr(e):Array.isArray(e)?e.map(n=>sm(n,t)||lf.easeOut):lf[e]}function T1(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=sm(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function om(e){return typeof e=="function"&&"applyToOptions"in e}function E1({type:e,...t}){return om(e)&&im()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class P1 extends Cu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,cu(typeof t.type!="string");const u=E1(t);this.animation=T1(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=Su(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):w1(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ct(Number(t))}get time(){return ct(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ut(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&x1()?(this.animation.timeline=t,He):n(this)}}const am={anticipate:zh,backInOut:Fh,circInOut:$h};function k1(e){return e in am}function M1(e){typeof e.ease=="string"&&k1(e.ease)&&(e.ease=am[e.ease])}const uf=10;class A1 extends P1{constructor(t){M1(t),tm(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Tu({...o,autoplay:!1}),l=ut(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-uf).value,a.sample(l).value,uf),a.stop()}}const cf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Yt.test(e)||e==="0")&&!e.startsWith("url("));function R1(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function L1(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=cf(i,t),a=cf(s,t);return!o||!a?!1:R1(e)||(n==="spring"||om(n))&&r}function Qa(e){e.duration=0,e.type}const N1=new Set(["opacity","clipPath","filter","transform"]),D1=fu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function V1(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return D1()&&n&&N1.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const _1=40;class I1 extends Cu{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){var v;super(),this.stop=()=>{var y,C;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(C=this.keyframeResolver)==null||C.cancel()},this.createdAt=Me.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...f},g=(c==null?void 0:c.KeyframeResolver)||Eu;this.keyframeResolver=new g(a,(y,C,p)=>this.onKeyframesResolved(y,C,d,!p),l,u,c),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Me.now(),L1(t,s,o,a)||((kt.instantAnimations||!l)&&(c==null||c(Su(t,r,n))),t[0]=t[t.length-1],Qa(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>_1?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=!u&&V1(d)?new A1({...d,element:d.motionValue.owner.current}):new Tu(d);g.finished.then(()=>this.notifyFinished()).catch(He),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),y1()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const O1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function j1(e){const t=O1.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function lm(e,t,n=1){const[r,i]=j1(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Lh(o)?parseFloat(o):o}return gu(i)?lm(i,t,n+1):i}function Pu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const um=new Set(["width","height","top","left","right","bottom",...ar]),F1={test:e=>e==="auto",parse:e=>e},cm=e=>t=>t.test(e),fm=[or,_,ft,Lt,R0,A0,F1],ff=e=>fm.find(cm(e));function z1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dh(e):!0}const B1=new Set(["brightness","contrast","saturate","opacity"]);function $1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yu)||[];if(!r)return e;const i=n.replace(r,"");let s=B1.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const U1=/\b([a-z-]*)\(.*?\)/gu,Za={...Yt,getAnimatableNone:e=>{const t=e.match(U1);return t?t.map($1).join(" "):e}},df={...or,transform:Math.round},W1={rotate:Lt,rotateX:Lt,rotateY:Lt,rotateZ:Lt,scale:ji,scaleX:ji,scaleY:ji,scaleZ:ji,skew:Lt,skewX:Lt,skewY:Lt,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:ni,originX:qc,originY:qc,originZ:_},ku={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,backgroundPositionX:_,backgroundPositionY:_,...W1,zIndex:df,fillOpacity:ni,strokeOpacity:ni,numOctaves:df},b1={...ku,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:Za,WebkitFilter:Za},dm=e=>b1[e];function pm(e,t){let n=dm(e);return n!==Za&&(n=Yt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const H1=new Set(["auto","none","0"]);function K1(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!H1.has(s)&&ri(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=pm(n,i)}class G1 extends Eu{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),gu(u))){const c=lm(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!um.has(r)||t.length!==2)return;const[i,s]=t,o=ff(i),a=ff(s);if(o!==a)if(af(o)&&af(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else dn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||z1(t[i]))&&r.push(i);r.length&&K1(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=dn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Y1(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const hm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function X1(e){return Nh(e)&&"offsetHeight"in e}const pf=30,Q1=e=>!isNaN(parseFloat(e));class Z1{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Me.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Me.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Q1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new du);const r=this.events[t].add(n);return t==="change"?()=>{r(),G.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Me.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pf);return Vh(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tr(e,t){return new Z1(e,t)}const{schedule:Mu}=bh(queueMicrotask,!1),Xe={x:!1,y:!1};function mm(){return Xe.x||Xe.y}function q1(e){return e==="x"||e==="y"?Xe[e]?null:(Xe[e]=!0,()=>{Xe[e]=!1}):Xe.x||Xe.y?null:(Xe.x=Xe.y=!0,()=>{Xe.x=Xe.y=!1})}function gm(e,t){const n=Y1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function hf(e){return!(e.pointerType==="touch"||mm())}function J1(e,t,n={}){const[r,i,s]=gm(e,n),o=a=>{if(!hf(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=f=>{hf(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const ym=(e,t)=>t?e===t?!0:ym(e,t.parentElement):!1,Au=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ew=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tw(e){return ew.has(e.tagName)||e.tabIndex!==-1}const ns=new WeakSet;function mf(e){return t=>{t.key==="Enter"&&e(t)}}function Io(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const nw=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=mf(()=>{if(ns.has(n))return;Io(n,"down");const i=mf(()=>{Io(n,"up")}),s=()=>Io(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gf(e){return Au(e)&&!mm()}function rw(e,t,n={}){const[r,i,s]=gm(e,n),o=a=>{const l=a.currentTarget;if(!gf(a))return;ns.add(l);const u=t(l,a),c=(g,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),ns.has(l)&&ns.delete(l),gf(g)&&typeof u=="function"&&u(g,{success:v})},f=g=>{c(g,l===window||l===document||n.useGlobalTarget||ym(l,g.target))},d=g=>{c(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),X1(a)&&(a.addEventListener("focus",u=>nw(u,i)),!tw(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function vm(e){return Nh(e)&&"ownerSVGElement"in e}function iw(e){return vm(e)&&e.tagName==="svg"}const ve=e=>!!(e&&e.getVelocity),sw=[...fm,re,Yt],ow=e=>sw.find(cm(e)),wm=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function aw(e=!0){const t=w.useContext(au);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=w.useId();w.useEffect(()=>{if(e)return i(s)},[e]);const o=w.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const xm=w.createContext({strict:!1}),yf={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"]},nr={};for(const e in yf)nr[e]={isEnabled:t=>yf[e].some(n=>!!t[n])};function lw(e){for(const t in e)nr[t]={...nr[t],...e[t]}}const uw=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 Ds(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uw.has(e)}let Sm=e=>!Ds(e);function cw(e){typeof e=="function"&&(Sm=t=>t.startsWith("on")?!Ds(t):e(t))}try{cw(require("@emotion/is-prop-valid").default)}catch{}function fw(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Sm(i)||n===!0&&Ds(i)||!t&&!Ds(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Zs=w.createContext({});function qs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ii(e){return typeof e=="string"||Array.isArray(e)}const Ru=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Lu=["initial",...Ru];function Js(e){return qs(e.animate)||Lu.some(t=>ii(e[t]))}function Cm(e){return!!(Js(e)||e.variants)}function dw(e,t){if(Js(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ii(n)?n:void 0,animate:ii(r)?r:void 0}}return e.inherit!==!1?t:{}}function pw(e){const{initial:t,animate:n}=dw(e,w.useContext(Zs));return w.useMemo(()=>({initial:t,animate:n}),[vf(t),vf(n)])}function vf(e){return Array.isArray(e)?e.join(" "):e}const si={};function hw(e){for(const t in e)si[t]=e[t],mu(t)&&(si[t].isCSSVariable=!0)}function Tm(e,{layout:t,layoutId:n}){return lr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!si[e]||e==="opacity")}const mw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gw=ar.length;function yw(e,t,n){let r="",i=!0;for(let s=0;s<gw;s++){const o=ar[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=hm(a,ku[o]);if(!l){i=!1;const c=mw[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Nu(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(lr.has(l)){o=!0;continue}else if(mu(l)){i[l]=u;continue}else{const c=hm(u,ku[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=yw(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const Du=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Em(e,t,n){for(const r in t)!ve(t[r])&&!Tm(r,n)&&(e[r]=t[r])}function vw({transformTemplate:e},t){return w.useMemo(()=>{const n=Du();return Nu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ww(e,t){const n=e.style||{},r={};return Em(r,n,e),Object.assign(r,vw(e,t)),r}function xw(e,t){const n={},r=ww(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Sw={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cw={offset:"strokeDashoffset",array:"strokeDasharray"};function Tw(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Sw:Cw;e[s.offset]=_.transform(-r);const o=_.transform(t),a=_.transform(n);e[s.array]=`${o} ${a}`}function Pm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(Nu(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&Tw(f,i,s,o,!1)}const km=()=>({...Du(),attrs:{}}),Mm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ew(e,t,n,r){const i=w.useMemo(()=>{const s=km();return Pm(s,t,Mm(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Em(s,e.style,e),i.style={...s,...i.style}}return i}const Pw=["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 Vu(e){return typeof e!="string"||e.includes("-")?!1:!!(Pw.indexOf(e)>-1||/[A-Z]/u.test(e))}function kw(e,t,n,{latestValues:r},i,s=!1){const a=(Vu(e)?Ew:xw)(t,r,i,e),l=fw(t,typeof e=="string",s),u=e!==w.Fragment?{...l,...a,ref:n}:{},{children:c}=t,f=w.useMemo(()=>ve(c)?c.get():c,[c]);return w.createElement(e,{...u,children:f})}function wf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _u(e,t,n,r){if(typeof t=="function"){const[i,s]=wf(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=wf(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function rs(e){return ve(e)?e.get():e}function Mw({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Aw(n,r,i,e),renderState:t()}}function Aw(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=rs(s[d]);let{initial:o,animate:a}=e;const l=Js(e),u=Cm(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!qs(f)){const d=Array.isArray(f)?f:[f];for(let g=0;g<d.length;g++){const v=_u(e,d[g]);if(v){const{transitionEnd:y,transition:C,...p}=v;for(const h in p){let m=p[h];if(Array.isArray(m)){const S=c?m.length-1:0;m=m[S]}m!==null&&(i[h]=m)}for(const h in y)i[h]=y[h]}}}return i}const Am=e=>(t,n)=>{const r=w.useContext(Zs),i=w.useContext(au),s=()=>Mw(e,t,r,i);return n?s():l0(s)};function Iu(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(ve(r[o])||t.style&&ve(t.style[o])||Tm(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Rw=Am({scrapeMotionValuesFromProps:Iu,createRenderState:Du});function Rm(e,t,n){const r=Iu(e,t,n);for(const i in e)if(ve(e[i])||ve(t[i])){const s=ar.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Lw=Am({scrapeMotionValuesFromProps:Rm,createRenderState:km}),Nw=Symbol.for("motionComponentSymbol");function jn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Dw(e,t,n){return w.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):jn(n)&&(n.current=r))},[t])}const Ou=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vw="framerAppearId",Lm="data-"+Ou(Vw),Nm=w.createContext({});function _w(e,t,n,r,i){var y,C;const{visualElement:s}=w.useContext(Zs),o=w.useContext(xm),a=w.useContext(au),l=w.useContext(wm).reducedMotion,u=w.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,f=w.useContext(Nm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Iw(u.current,n,i,f);const d=w.useRef(!1);w.useInsertionEffect(()=>{c&&d.current&&c.update(n,a)});const g=n[Lm],v=w.useRef(!!g&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,g))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,g)));return u0(()=>{c&&(d.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),v.current&&c.animationState&&c.animationState.animateChanges())}),w.useEffect(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)==null||p.call(window,g)}),v.current=!1),c.enteringChildren=void 0)}),c}function Iw(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dm(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&jn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function Dm(e){if(e)return e.options.allowProjection!==!1?e.projection:Dm(e.parent)}function Oo(e,{forwardMotionProps:t=!1}={},n,r){n&&lw(n);const i=Vu(e)?Lw:Rw;function s(a,l){let u;const c={...w.useContext(wm),...a,layoutId:Ow(a)},{isStatic:f}=c,d=pw(a),g=i(a,f);if(!f&&ou){jw();const v=Fw(c);u=v.MeasureLayout,d.visualElement=_w(e,g,c,r,v.ProjectionNode)}return P.jsxs(Zs.Provider,{value:d,children:[u&&d.visualElement?P.jsx(u,{visualElement:d.visualElement,...c}):null,kw(e,a,Dw(g,d.visualElement,l),g,f,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=w.forwardRef(s);return o[Nw]=e,o}function Ow({layoutId:e}){const t=w.useContext(Rh).id;return t&&e!==void 0?t+"-"+e:e}function jw(e,t){w.useContext(xm).strict}function Fw(e){const{drag:t,layout:n}=nr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function zw(e,t){if(typeof Proxy>"u")return Oo;const n=new Map,r=(s,o)=>Oo(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,Oo(o,void 0,e,t)),n.get(o))})}function Vm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Bw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $w(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function jo(e){return e===void 0||e===1}function qa({scale:e,scaleX:t,scaleY:n}){return!jo(e)||!jo(t)||!jo(n)}function rn(e){return qa(e)||_m(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _m(e){return xf(e.x)||xf(e.y)}function xf(e){return e&&e!=="0%"}function Vs(e,t,n){const r=e-n,i=t*r;return n+i}function Sf(e,t,n,r,i){return i!==void 0&&(e=Vs(e,i,r)),Vs(e,n,r)+t}function Ja(e,t=0,n=1,r,i){e.min=Sf(e.min,t,n,r,i),e.max=Sf(e.max,t,n,r,i)}function Im(e,{x:t,y:n}){Ja(e.x,t.translate,t.scale,t.originPoint),Ja(e.y,n.translate,n.scale,n.originPoint)}const Cf=.999999999999,Tf=1.0000000000001;function Uw(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&zn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Im(e,o)),r&&rn(s.latestValues)&&zn(e,s.latestValues))}t.x<Tf&&t.x>Cf&&(t.x=1),t.y<Tf&&t.y>Cf&&(t.y=1)}function Fn(e,t){e.min=e.min+t,e.max=e.max+t}function Ef(e,t,n,r,i=.5){const s=X(e.min,e.max,i);Ja(e,t,n,s,r)}function zn(e,t){Ef(e.x,t.x,t.scaleX,t.scale,t.originX),Ef(e.y,t.y,t.scaleY,t.scale,t.originY)}function Om(e,t){return Vm($w(e.getBoundingClientRect(),t))}function Ww(e,t,n){const r=Om(e,n),{scroll:i}=t;return i&&(Fn(r.x,i.offset.x),Fn(r.y,i.offset.y)),r}const Pf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bn=()=>({x:Pf(),y:Pf()}),kf=()=>({min:0,max:0}),te=()=>({x:kf(),y:kf()}),el={current:null},jm={current:!1};function bw(){if(jm.current=!0,!!ou)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>el.current=e.matches;e.addEventListener("change",t),t()}else el.current=!1}const Hw=new WeakMap;function Kw(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ve(i))e.addValue(r,i);else if(ve(s))e.addValue(r,tr(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,tr(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Mf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Gw{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eu,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 d=Me.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,G.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Js(n),this.isVariantNode=Cm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const g=f[d];l[d]!==void 0&&ve(g)&&g.set(l[d])}}mount(t){var n;this.current=t,Hw.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),jm.current||bw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:el.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Gt(this.notifyUpdate),Gt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=lr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&G.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in nr){const n=nr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Mf.length;r++){const i=Mf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Kw(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=tr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Lh(r)||Dh(r))?r=parseFloat(r):!ow(r)&&Yt.test(n)&&(r=pm(t,n)),this.setBaseTarget(t,ve(r)?r.get():r)),ve(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=_u(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ve(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new du),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Mu.render(this.render)}}class Fm extends Gw{constructor(){super(...arguments),this.KeyframeResolver=G1}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ve(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function zm(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function Yw(e){return window.getComputedStyle(e)}class Xw extends Fm{constructor(){super(...arguments),this.type="html",this.renderInstance=zm}readValueFromInstance(t,n){var r;if(lr.has(n))return(r=this.projection)!=null&&r.isProjecting?Ha(n):d1(t,n);{const i=Yw(t),s=(mu(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Om(t,n)}build(t,n,r){Nu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Iu(t,n,r)}}const Bm=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 Qw(e,t,n,r){zm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Bm.has(i)?i:Ou(i),t.attrs[i])}class Zw extends Fm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(lr.has(n)){const r=dm(n);return r&&r.default||0}return n=Bm.has(n)?n:Ou(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Rm(t,n,r)}build(t,n,r){Pm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Qw(t,n,r,i)}mount(t){this.isSVGTag=Mm(t.tagName),super.mount(t)}}const qw=(e,t)=>Vu(e)?new Zw(t):new Xw(t,{allowProjection:e!==w.Fragment});function Gn(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,e)}const tl=e=>Array.isArray(e);function Jw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tr(n))}function ex(e){return tl(e)?e[e.length-1]||0:e}function tx(e,t){const n=Gn(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=ex(s[o]);Jw(e,o,a)}}function nx(e){return!!(ve(e)&&e.add)}function nl(e,t){const n=e.getValue("willChange");if(nx(n))return n.add(t);if(!n&&kt.WillChange){const r=new kt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function $m(e){return e.props[Lm]}const rx=e=>e!==null;function ix(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(rx),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const sx={type:"spring",stiffness:500,damping:25,restSpeed:10},ox=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ax={type:"keyframes",duration:.8},lx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ux=(e,{keyframes:t})=>t.length>2?ax:lr.has(e)?e.startsWith("scale")?ox(t[1]):sx:lx;function cx({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ju=(e,t,n,r={},i,s)=>o=>{const a=Pu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ut(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};cx(a)||Object.assign(c,ux(e,c)),c.duration&&(c.duration=ut(c.duration)),c.repeatDelay&&(c.repeatDelay=ut(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Qa(c),c.delay===0&&(f=!0)),(kt.instantAnimations||kt.skipAnimations)&&(f=!0,Qa(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const d=ix(c.keyframes,a);if(d!==void 0){G.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Tu(c):new I1(c)};function fx({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Um(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),d=a[c];if(d===void 0||u&&fx(u,c))continue;const g={delay:n,...Pu(s||{},c)},v=f.get();if(v!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===v&&!g.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const p=$m(e);if(p){const h=window.MotionHandoffAnimation(p,c,G);h!==null&&(g.startTime=h,y=!0)}}nl(e,c),f.start(ju(c,f,d,e.shouldReduceMotion&&um.has(c)?{type:!1}:g,e,y));const C=f.animation;C&&l.push(C)}return o&&Promise.all(l).then(()=>{G.update(()=>{o&&tx(e,o)})}),l}function Wm(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function rl(e,t,n={}){var l;const r=Gn(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Um(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return dx(e,t,u,c,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function dx(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(rl(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Wm(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function px(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>rl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=rl(e,t,n);else{const i=typeof t=="function"?Gn(e,t,n.custom):t;r=Promise.all(Um(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function bm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const hx=Lu.length;function Hm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Hm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<hx;n++){const r=Lu[n],i=e.props[r];(ii(i)||i===!1)&&(t[r]=i)}return t}const mx=[...Ru].reverse(),gx=Ru.length;function yx(e){return t=>Promise.all(t.map(({animation:n,options:r})=>px(e,n,r)))}function vx(e){let t=yx(e),n=Af(),r=!0;const i=l=>(u,c)=>{var d;const f=Gn(e,c,l==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:v,...y}=f;u={...u,...y,...v}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=Hm(e.parent)||{},f=[],d=new Set;let g={},v=1/0;for(let C=0;C<gx;C++){const p=mx[C],h=n[p],m=u[p]!==void 0?u[p]:c[p],S=ii(m),x=p===l?h.isActive:null;x===!1&&(v=C);let T=m===c[p]&&m!==u[p]&&S;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),h.protectedKeys={...g},!h.isActive&&x===null||!m&&!h.prevProp||qs(m)||typeof m=="boolean")continue;const E=wx(h.prevProp,m);let k=E||p===l&&h.isActive&&!T&&S||C>v&&S,N=!1;const L=Array.isArray(m)?m:[m];let V=L.reduce(i(p),{});x===!1&&(V={});const{prevResolvedValues:F={}}=h,ce={...F,...V},O=$=>{k=!0,d.has($)&&(N=!0,d.delete($)),h.needsAnimating[$]=!0;const A=e.getValue($);A&&(A.liveStyle=!1)};for(const $ in ce){const A=V[$],D=F[$];if(g.hasOwnProperty($))continue;let I=!1;tl(A)&&tl(D)?I=!bm(A,D):I=A!==D,I?A!=null?O($):d.add($):A!==void 0&&d.has($)?O($):h.protectedKeys[$]=!0}h.prevProp=m,h.prevResolvedValues=V,h.isActive&&(g={...g,...V}),r&&e.blockInitialAnimation&&(k=!1);const se=T&&E;k&&(!se||N)&&f.push(...L.map($=>{const A={type:p};if(typeof $=="string"&&r&&!se&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,I=Gn(D,$);if(D.enteringChildren&&I){const{delayChildren:W}=I.transition||{};A.delay=Wm(D.enteringChildren,e,W)}}return{animation:$,options:A}}))}if(d.size){const C={};if(typeof u.initial!="boolean"){const p=Gn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(C.transition=p.transition)}d.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),C[p]=h??null}),f.push({animation:C})}let y=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function a(l,u){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var g;return(g=d.animationState)==null?void 0:g.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Af(),r=!0}}}function wx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bm(t,e):!1}function en(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Af(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class qt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class xx extends qt{constructor(t){super(t),t.animationState||(t.animationState=vx(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Sx=0;class Cx extends qt{constructor(){super(...arguments),this.id=Sx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Tx={animation:{Feature:xx},exit:{Feature:Cx}};function oi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gi(e){return{point:{x:e.pageX,y:e.pageY}}}const Ex=e=>t=>Au(t)&&e(t,gi(t));function Ir(e,t,n,r){return oi(e,t,Ex(n),r)}const Km=1e-4,Px=1-Km,kx=1+Km,Gm=.01,Mx=0-Gm,Ax=0+Gm;function Se(e){return e.max-e.min}function Rx(e,t,n){return Math.abs(e-t)<=n}function Rf(e,t,n,r=.5){e.origin=r,e.originPoint=X(t.min,t.max,e.origin),e.scale=Se(n)/Se(t),e.translate=X(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Px&&e.scale<=kx||isNaN(e.scale))&&(e.scale=1),(e.translate>=Mx&&e.translate<=Ax||isNaN(e.translate))&&(e.translate=0)}function Or(e,t,n,r){Rf(e.x,t.x,n.x,r?r.originX:void 0),Rf(e.y,t.y,n.y,r?r.originY:void 0)}function Lf(e,t,n){e.min=n.min+t.min,e.max=e.min+Se(t)}function Lx(e,t,n){Lf(e.x,t.x,n.x),Lf(e.y,t.y,n.y)}function Nf(e,t,n){e.min=t.min-n.min,e.max=e.min+Se(t)}function jr(e,t,n){Nf(e.x,t.x,n.x),Nf(e.y,t.y,n.y)}function Be(e){return[e("x"),e("y")]}const Ym=({current:e})=>e?e.ownerDocument.defaultView:null,Df=(e,t)=>Math.abs(e-t);function Nx(e,t){const n=Df(e.x,t.x),r=Df(e.y,t.y);return Math.sqrt(n**2+r**2)}class Xm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=zo(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,v=Nx(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!v)return;const{point:y}=d,{timestamp:C}=de;this.history.push({...y,timestamp:C});const{onStart:p,onMove:h}=this.handlers;g||(p&&p(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,d)},this.handlePointerMove=(d,g)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Fo(g,this.transformPagePoint),G.update(this.updatePoint,!0)},this.handlePointerUp=(d,g)=>{this.end();const{onEnd:v,onSessionEnd:y,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=zo(d.type==="pointercancel"?this.lastMoveEventInfo:Fo(g,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,p),y&&y(d,p)},!Au(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=gi(t),l=Fo(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=de;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,zo(l,this.history)),this.removeListeners=pi(Ir(this.contextWindow,"pointermove",this.handlePointerMove),Ir(this.contextWindow,"pointerup",this.handlePointerUp),Ir(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Gt(this.updatePoint)}}function Fo(e,t){return t?{point:t(e.point)}:e}function Vf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zo({point:e},t){return{point:e,delta:Vf(e,Qm(t)),offset:Vf(e,Dx(t)),velocity:Vx(t,.1)}}function Dx(e){return e[0]}function Qm(e){return e[e.length-1]}function Vx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Qm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ut(t)));)n--;if(!r)return{x:0,y:0};const s=ct(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function _x(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?X(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?X(n,e,r.max):Math.min(e,n)),e}function _f(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ix(e,{top:t,left:n,bottom:r,right:i}){return{x:_f(e.x,n,i),y:_f(e.y,t,r)}}function If(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Ox(e,t){return{x:If(e.x,t.x),y:If(e.y,t.y)}}function jx(e,t){let n=.5;const r=Se(e),i=Se(t);return i>r?n=ti(t.min,t.max-r,e.min):r>i&&(n=ti(e.min,e.max-i,t.min)),Pt(0,1,n)}function Fx(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const il=.35;function zx(e=il){return e===!1?e=0:e===!0&&(e=il),{x:Of(e,"left","right"),y:Of(e,"top","bottom")}}function Of(e,t,n){return{min:jf(e,t),max:jf(e,n)}}function jf(e,t){return typeof e=="number"?e:e[t]||0}const Bx=new WeakMap;class $x{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gi(f).point)},o=(f,d)=>{const{drag:g,dragPropagation:v,onDragStart:y}=this.getProps();if(g&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=q1(g),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Be(p=>{let h=this.getAxisMotionValue(p).get()||0;if(ft.test(h)){const{projection:m}=this.visualElement;if(m&&m.layout){const S=m.layout.layoutBox[p];S&&(h=Se(S)*(parseFloat(h)/100))}}this.originPoint[p]=h}),y&&G.postRender(()=>y(f,d)),nl(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:g,dragDirectionLock:v,onDirectionLock:y,onDrag:C}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:p}=d;if(v&&this.currentDirection===null){this.currentDirection=Ux(p),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,p),this.updateAxis("y",d.point,p),this.visualElement.render(),C&&C(f,d)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Be(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)==null?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Xm(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Ym(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&G.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Fi(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=_x(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&jn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ix(r.layoutBox,t):this.constraints=!1,this.elastic=zx(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Be(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Fx(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!jn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Ww(r,i.root,this.visualElement.getTransformPagePoint());let o=Ox(i.layout.layoutBox,s);if(n){const a=n(Bw(o));this.hasMutatedConstraints=!!a,a&&(o=Vm(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Be(c=>{if(!Fi(c,n,this.currentDirection))return;let f=l&&l[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return nl(this.visualElement,t),r.start(ju(t,r,0,n,this.visualElement,!1))}stopAnimation(){Be(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Be(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Be(n=>{const{drag:r}=this.getProps();if(!Fi(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-X(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!jn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Be(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=jx({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Be(o=>{if(!Fi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(X(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Bx.set(this.visualElement,this);const t=this.visualElement.current,n=Ir(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();jn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),G.read(r);const o=oi(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Be(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=il,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Fi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ux(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Wx extends qt{constructor(t){super(t),this.removeGroupControls=He,this.removeListeners=He,this.controls=new $x(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ff=e=>(t,n)=>{e&&G.postRender(()=>e(t,n))};class bx extends qt{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(t){this.session=new Xm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ym(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ff(t),onStart:Ff(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&G.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Ir(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const is={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=zf(e,t.target.x),r=zf(e,t.target.y);return`${n}% ${r}%`}},Hx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Yt.parse(e);if(i.length>5)return r;const s=Yt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=X(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};let Bo=!1;class Kx extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;hw(Gx),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Bo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),is.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Bo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||G.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Mu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Bo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Zm(e){const[t,n]=aw(),r=w.useContext(Rh);return P.jsx(Kx,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Nm),isPresent:t,safeToRemove:n})}const Gx={borderRadius:{...yr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yr,borderTopRightRadius:yr,borderBottomLeftRadius:yr,borderBottomRightRadius:yr,boxShadow:Hx};function Yx(e,t,n){const r=ve(e)?e:tr(e);return r.start(ju("",r,t,n)),r.animation}const Xx=(e,t)=>e.depth-t.depth;class Qx{constructor(){this.children=[],this.isDirty=!1}add(t){lu(this.children,t),this.isDirty=!0}remove(t){uu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xx),this.isDirty=!1,this.children.forEach(t)}}function Zx(e,t){const n=Me.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Gt(r),e(s-t))};return G.setup(r,!0),()=>Gt(r)}const qm=["TopLeft","TopRight","BottomLeft","BottomRight"],qx=qm.length,Bf=e=>typeof e=="string"?parseFloat(e):e,$f=e=>typeof e=="number"||_.test(e);function Jx(e,t,n,r,i,s){i?(e.opacity=X(0,n.opacity??1,eS(r)),e.opacityExit=X(t.opacity??1,0,tS(r))):s&&(e.opacity=X(t.opacity??1,n.opacity??1,r));for(let o=0;o<qx;o++){const a=`border${qm[o]}Radius`;let l=Uf(t,a),u=Uf(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||$f(l)===$f(u)?(e[a]=Math.max(X(Bf(l),Bf(u),r),0),(ft.test(u)||ft.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=X(t.rotate||0,n.rotate||0,r))}function Uf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eS=Jm(0,.5,Bh),tS=Jm(.5,.95,He);function Jm(e,t,n){return r=>r<e?0:r>t?1:n(ti(e,t,r))}function Wf(e,t){e.min=t.min,e.max=t.max}function ze(e,t){Wf(e.x,t.x),Wf(e.y,t.y)}function bf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Hf(e,t,n,r,i){return e-=t,e=Vs(e,1/n,r),i!==void 0&&(e=Vs(e,1/i,r)),e}function nS(e,t=0,n=1,r=.5,i,s=e,o=e){if(ft.test(t)&&(t=parseFloat(t),t=X(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=X(s.min,s.max,r);e===s&&(a-=t),e.min=Hf(e.min,t,n,a,i),e.max=Hf(e.max,t,n,a,i)}function Kf(e,t,[n,r,i],s,o){nS(e,t[n],t[r],t[i],t.scale,s,o)}const rS=["x","scaleX","originX"],iS=["y","scaleY","originY"];function Gf(e,t,n,r){Kf(e.x,t,rS,n?n.x:void 0,r?r.x:void 0),Kf(e.y,t,iS,n?n.y:void 0,r?r.y:void 0)}function Yf(e){return e.translate===0&&e.scale===1}function eg(e){return Yf(e.x)&&Yf(e.y)}function Xf(e,t){return e.min===t.min&&e.max===t.max}function sS(e,t){return Xf(e.x,t.x)&&Xf(e.y,t.y)}function Qf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tg(e,t){return Qf(e.x,t.x)&&Qf(e.y,t.y)}function Zf(e){return Se(e.x)/Se(e.y)}function qf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oS{constructor(){this.members=[]}add(t){lu(this.members,t),t.scheduleRender()}remove(t){if(uu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function aS(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:g,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const $o=["","X","Y","Z"],lS=1e3;let uS=0;function Uo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ng(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=$m(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",G,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ng(r)}function rg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=uS++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(dS),this.nodes.forEach(gS),this.nodes.forEach(yS),this.nodes.forEach(pS)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qx)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new du),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=vm(o)&&!iw(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const d=()=>this.root.updateBlockedByResize=!1;G.read(()=>{f=window.innerWidth}),e(o,()=>{const g=window.innerWidth;g!==f&&(f=g,this.root.updateBlockedByResize=!0,c&&c(),c=Zx(d,250),is.hasAnimatedSinceResize&&(is.hasAnimatedSinceResize=!1,this.nodes.forEach(td)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||CS,{onLayoutAnimationStart:y,onLayoutAnimationComplete:C}=u.getProps(),p=!this.targetLayout||!tg(this.targetLayout,g),h=!f&&d;if(this.options.layoutRoot||this.resumeFrom||h||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const m={...Pu(v,"layout"),onPlay:y,onComplete:C};(u.shouldReduceMotion||this.options.layoutRoot)&&(m.delay=0,m.type=!1),this.startAnimation(m),this.setAnimationOrigin(c,h)}else f||td(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Gt(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(vS),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ng(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Jf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ed);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mS),this.nodes.forEach(cS),this.nodes.forEach(fS)):this.nodes.forEach(ed),this.clearAllSnapshots();const a=Me.now();de.delta=Pt(0,1e3/60,a-de.timestamp),de.timestamp=a,de.isProcessing=!0,Lo.update.process(de),Lo.preRender.process(de),Lo.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hS),this.sharedNodes.forEach(wS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,G.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){G.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Se(this.snapshot.measuredBox.x)&&!Se(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!eg(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||rn(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),TS(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return te();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(ES))){const{scroll:c}=this.root;c&&(Fn(a.x,c.offset.x),Fn(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=te();if(ze(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&ze(a,o),Fn(a.x,f.offset.x),Fn(a.y,f.offset.y))}return a}applyTransform(o,a=!1){const l=te();ze(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&zn(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),rn(c.latestValues)&&zn(l,c.latestValues)}return rn(this.latestValues)&&zn(l,this.latestValues),l}removeTransform(o){const a=te();ze(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!rn(u.latestValues))continue;qa(u.latestValues)&&u.updateSnapshot();const c=te(),f=u.measurePageBox();ze(c,f),Gf(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return rn(this.latestValues)&&Gf(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!(!this.layout||!(c||f))){if(this.resolvedRelativeTargetAt=de.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),jr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),ze(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Lx(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ze(this.target,this.layout.layoutBox),Im(this.target,this.targetDelta)):ze(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),jr(this.relativeTargetOrigin,this.target,g.target),ze(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||qa(this.parent.latestValues)||_m(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 v;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===de.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;ze(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Uw(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=te());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bf(this.prevProjectionDelta.x,this.projectionDelta.x),bf(this.prevProjectionDelta.y,this.projectionDelta.y)),Or(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!qf(this.projectionDelta.x,this.prevProjectionDelta.x)||!qf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Bn(),this.projectionDelta=Bn(),this.projectionDeltaWithTransform=Bn()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=Bn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=te(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,y=g!==v,C=this.getStack(),p=!C||C.members.length<=1,h=!!(y&&!p&&this.options.crossfade===!0&&!this.path.some(SS));this.animationProgress=0;let m;this.mixTargetDelta=S=>{const x=S/1e3;nd(f.x,o.x,x),nd(f.y,o.y,x),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xS(this.relativeTarget,this.relativeTargetOrigin,d,x),m&&sS(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=te()),ze(m,this.relativeTarget)),y&&(this.animationValues=c,Jx(c,u,this.latestValues,x,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Gt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=G.update(()=>{is.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=tr(0)),this.currentAnimation=Yx(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(lS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&ig(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||te();const f=Se(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const d=Se(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}ze(a,l),zn(a,c),Or(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new oS),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Uo("z",o,u,this.animationValues);for(let c=0;c<$o.length;c++)Uo(`rotate${$o[c]}`,o,u,this.animationValues),Uo(`skew${$o[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=rs(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=rs(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!rn(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=aS(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:d,y:g}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${g.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const v in si){if(c[v]===void 0)continue;const{correct:y,applyTo:C,isCSSVariable:p}=si[v],h=f==="none"?c[v]:y(c[v],u);if(C){const m=C.length;for(let S=0;S<m;S++)o[C[S]]=h}else p?this.options.visualElement.renderState.vars[v]=h:o[v]=h}this.options.layoutId&&(o.pointerEvents=u===this?rs(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Jf),this.root.sharedNodes.clear()}}}function cS(e){e.updateLayout()}function fS(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?Be(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],g=Se(d);d.min=r[f].min,d.max=d.min+g}):ig(s,t.layoutBox,r)&&Be(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],g=Se(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const a=Bn();Or(a,r,t.layoutBox);const l=Bn();o?Or(l,e.applyTransform(i,!0),t.measuredBox):Or(l,r,t.layoutBox);const u=!eg(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const v=te();jr(v,t.layoutBox,d.layoutBox);const y=te();jr(y,r,g.layoutBox),tg(v,y)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function dS(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hS(e){e.clearSnapshot()}function Jf(e){e.clearMeasurements()}function ed(e){e.isLayoutDirty=!1}function mS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function td(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gS(e){e.resolveTargetDelta()}function yS(e){e.calcProjection()}function vS(e){e.resetSkewAndRotation()}function wS(e){e.removeLeadSnapshot()}function nd(e,t,n){e.translate=X(t.translate,0,n),e.scale=X(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rd(e,t,n,r){e.min=X(t.min,n.min,r),e.max=X(t.max,n.max,r)}function xS(e,t,n,r){rd(e.x,t.x,n.x,r),rd(e.y,t.y,n.y,r)}function SS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const CS={duration:.45,ease:[.4,0,.1,1]},id=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sd=id("applewebkit/")&&!id("chrome/")?Math.round:He;function od(e){e.min=sd(e.min),e.max=sd(e.max)}function TS(e){od(e.x),od(e.y)}function ig(e,t,n){return e==="position"||e==="preserve-aspect"&&!Rx(Zf(t),Zf(n),.2)}function ES(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const PS=rg({attachResizeListener:(e,t)=>oi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wo={current:void 0},sg=rg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wo.current){const e=new PS({});e.mount(window),e.setOptions({layoutScroll:!0}),Wo.current=e}return Wo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),kS={pan:{Feature:bx},drag:{Feature:Wx,ProjectionNode:sg,MeasureLayout:Zm}};function ad(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&G.postRender(()=>s(t,gi(t)))}class MS extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=J1(t,(n,r)=>(ad(this.node,r,"Start"),i=>ad(this.node,i,"End"))))}unmount(){}}class AS extends qt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pi(oi(this.node.current,"focus",()=>this.onFocus()),oi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ld(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&G.postRender(()=>s(t,gi(t)))}class RS extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=rw(t,(n,r)=>(ld(this.node,r,"Start"),(i,{success:s})=>ld(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const sl=new WeakMap,bo=new WeakMap,LS=e=>{const t=sl.get(e.target);t&&t(e)},NS=e=>{e.forEach(LS)};function DS({root:e,...t}){const n=e||document;bo.has(n)||bo.set(n,{});const r=bo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(NS,{root:e,...t})),r[i]}function VS(e,t,n){const r=DS(t);return sl.set(e,n),r.observe(e),()=>{sl.delete(e),r.unobserve(e)}}const _S={some:0,all:1};class IS extends qt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:_S[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return VS(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(OS(t,n))&&this.startObserver()}unmount(){}}function OS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jS={inView:{Feature:IS},tap:{Feature:RS},focus:{Feature:AS},hover:{Feature:MS}},FS={layout:{ProjectionNode:sg,MeasureLayout:Zm}},zS={...Tx,...jS,...kS,...FS},og=zw(zS,qw);/**
|
|
41
|
+
* @license lucide-react v0.539.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const BS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$S=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ud=e=>{const t=$S(e);return t.charAt(0).toUpperCase()+t.slice(1)},ag=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),US=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
46
|
+
* @license lucide-react v0.539.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var WS={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"};/**
|
|
51
|
+
* @license lucide-react v0.539.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const bS=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>w.createElement("svg",{ref:l,...WS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ag("lucide",i),...!s&&!US(a)&&{"aria-hidden":"true"},...a},[...o.map(([u,c])=>w.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
|
|
56
|
+
* @license lucide-react v0.539.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const At=(e,t)=>{const n=w.forwardRef(({className:r,...i},s)=>w.createElement(bS,{ref:s,iconNode:t,className:ag(`lucide-${BS(ud(e))}`,`lucide-${e}`,r),...i}));return n.displayName=ud(e),n};/**
|
|
61
|
+
* @license lucide-react v0.539.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const HS=[["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"}]],cd=At("circle-alert",HS);/**
|
|
66
|
+
* @license lucide-react v0.539.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const KS=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],GS=At("circle-check-big",KS);/**
|
|
71
|
+
* @license lucide-react v0.539.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const YS=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],XS=At("eye",YS);/**
|
|
76
|
+
* @license lucide-react v0.539.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const QS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],fd=At("loader-circle",QS);/**
|
|
81
|
+
* @license lucide-react v0.539.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const ZS=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],qS=At("palette",ZS);/**
|
|
86
|
+
* @license lucide-react v0.539.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const JS=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],eC=At("pencil",JS);/**
|
|
91
|
+
* @license lucide-react v0.539.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const tC=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],nC=At("sparkles",tC);/**
|
|
96
|
+
* @license lucide-react v0.539.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const rC=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],iC=At("upload",rC);/**
|
|
101
|
+
* @license lucide-react v0.539.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const sC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],oC=At("x",sC);var lg={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.log=n()})(_g,function(){var t=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],s={},o=null;function a(y,C){var p=y[C];if(typeof p.bind=="function")return p.bind(y);try{return Function.prototype.bind.call(p,y)}catch{return function(){return Function.prototype.apply.apply(p,[y,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(y){return y==="debug"&&(y="log"),typeof console===n?!1:y==="trace"&&r?l:console[y]!==void 0?a(console,y):console.log!==void 0?a(console,"log"):t}function c(){for(var y=this.getLevel(),C=0;C<i.length;C++){var p=i[C];this[p]=C<y?t:this.methodFactory(p,y,this.name)}if(this.log=this.debug,typeof console===n&&y<this.levels.SILENT)return"No console available for logging"}function f(y){return function(){typeof console!==n&&(c.call(this),this[y].apply(this,arguments))}}function d(y,C,p){return u(y)||f.apply(this,arguments)}function g(y,C){var p=this,h,m,S,x="loglevel";typeof y=="string"?x+=":"+y:typeof y=="symbol"&&(x=void 0);function T(V){var F=(i[V]||"silent").toUpperCase();if(!(typeof window===n||!x)){try{window.localStorage[x]=F;return}catch{}try{window.document.cookie=encodeURIComponent(x)+"="+F+";"}catch{}}}function E(){var V;if(!(typeof window===n||!x)){try{V=window.localStorage[x]}catch{}if(typeof V===n)try{var F=window.document.cookie,ce=encodeURIComponent(x),O=F.indexOf(ce+"=");O!==-1&&(V=/^([^;]+)/.exec(F.slice(O+ce.length+1))[1])}catch{}return p.levels[V]===void 0&&(V=void 0),V}}function k(){if(!(typeof window===n||!x)){try{window.localStorage.removeItem(x)}catch{}try{window.document.cookie=encodeURIComponent(x)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function N(V){var F=V;if(typeof F=="string"&&p.levels[F.toUpperCase()]!==void 0&&(F=p.levels[F.toUpperCase()]),typeof F=="number"&&F>=0&&F<=p.levels.SILENT)return F;throw new TypeError("log.setLevel() called with invalid level: "+V)}p.name=y,p.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},p.methodFactory=C||d,p.getLevel=function(){return S??m??h},p.setLevel=function(V,F){return S=N(V),F!==!1&&T(S),c.call(p)},p.setDefaultLevel=function(V){m=N(V),E()||p.setLevel(V,!1)},p.resetLevel=function(){S=null,k(),c.call(p)},p.enableAll=function(V){p.setLevel(p.levels.TRACE,V)},p.disableAll=function(V){p.setLevel(p.levels.SILENT,V)},p.rebuild=function(){if(o!==p&&(h=N(o.getLevel())),c.call(p),o===p)for(var V in s)s[V].rebuild()},h=N(o?o.getLevel():"WARN");var L=E();L!=null&&(S=N(L)),c.call(p)}o=new g,o.getLogger=function(C){if(typeof C!="symbol"&&typeof C!="string"||C==="")throw new TypeError("You must supply a name when creating a logger.");var p=s[C];return p||(p=s[C]=new g(C,o.methodFactory)),p};var v=typeof window!==n?window.log:void 0;return o.noConflict=function(){return typeof window!==n&&window.log===o&&(window.log=v),o},o.getLoggers=function(){return s},o.default=o,o})})(lg);var aC=lg.exports;const Ze=fl(aC),lC="INFO",uC=lC.toUpperCase();Ze.setLevel(Ze.levels[uC]||Ze.levels.INFO);const eo=e=>{const t=e?`[${e}] `:"";return{trace:(n,...r)=>Ze.trace(`${t}${n}`,...r),debug:(n,...r)=>Ze.debug(`${t}${n}`,...r),info:(n,...r)=>Ze.info(`${t}${n}`,...r),warn:(n,...r)=>Ze.warn(`${t}${n}`,...r),error:(n,...r)=>Ze.error(`${t}${n}`,...r),api:(n,...r)=>Ze.info(`${t}API: ${n}`,...r),hook:(n,...r)=>Ze.debug(`${t}Hook: ${n}`,...r),mount:(n,...r)=>Ze.debug(`${t}Mount: ${n}`,...r)}},vr=eo("useGitPublish"),cC=()=>{const[e,t]=w.useState(!1),[n,r]=w.useState(null),i=w.useCallback(async()=>{vr.debug("publishChanges called"),t(!0),r(null);try{vr.debug("Making fetch request to /api/git/publish");const o=await fetch("/api/git/publish",{method:"POST",headers:{"Content-Type":"application/json"}});if(vr.debug("Response received",{status:o.status,ok:o.ok}),!o.ok){const l=await o.json();throw new Error(l.details||l.error||`HTTP ${o.status}`)}const a=await o.json();return vr.info("Git publish completed successfully:",a.prUrl),a}catch(o){const a=o instanceof Error?o.message:"Failed to publish changes";return r(a),vr.error("Git publish error:",o),null}finally{t(!1)}},[]);return{publishChanges:w.useCallback(async o=>{const a=await i();return a?o("success","🎉 Changes published successfully!","Your branch has been pushed and is ready for a pull request.",{label:"View PR",onClick:()=>window.open(a.prUrl,"_blank")}):n&&o("error","Failed to publish changes",n),a},[i,n]),isPublishing:e,error:n,clearError:()=>r(null)}};function Ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function dd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ug(...e){return t=>{let n=!1;const r=e.map(i=>{const s=dd(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():dd(e[i],null)}}}}function wn(...e){return w.useCallback(ug(...e),e)}function cg(e,t=[]){let n=[];function r(s,o){const a=w.createContext(o),l=n.length;n=[...n,o];const u=f=>{var p;const{scope:d,children:g,...v}=f,y=((p=d==null?void 0:d[e])==null?void 0:p[l])||a,C=w.useMemo(()=>v,Object.values(v));return P.jsx(y.Provider,{value:C,children:g})};u.displayName=s+"Provider";function c(f,d){var y;const g=((y=d==null?void 0:d[e])==null?void 0:y[l])||a,v=w.useContext(g);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,c]}const i=()=>{const s=n.map(o=>w.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,fC(i,...t)]}function fC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ol(e){const t=dC(e),n=w.forwardRef((r,i)=>{const{children:s,...o}=r,a=w.Children.toArray(s),l=a.find(hC);if(l){const u=l.props.children,c=a.map(f=>f===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:f);return P.jsx(t,{...o,ref:i,children:w.isValidElement(u)?w.cloneElement(u,void 0,c):null})}return P.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function dC(e){const t=w.forwardRef((n,r)=>{const{children:i,...s}=n;if(w.isValidElement(i)){const o=gC(i),a=mC(s,i.props);return i.type!==w.Fragment&&(a.ref=r?ug(r,o):o),w.cloneElement(i,a)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pC=Symbol("radix.slottable");function hC(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pC}function mC(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function gC(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function yC(e){const t=e+"CollectionProvider",[n,r]=cg(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:C,children:p}=y,h=mt.useRef(null),m=mt.useRef(new Map).current;return P.jsx(i,{scope:C,itemMap:m,collectionRef:h,children:p})};o.displayName=t;const a=e+"CollectionSlot",l=ol(a),u=mt.forwardRef((y,C)=>{const{scope:p,children:h}=y,m=s(a,p),S=wn(C,m.collectionRef);return P.jsx(l,{ref:S,children:h})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=ol(c),g=mt.forwardRef((y,C)=>{const{scope:p,children:h,...m}=y,S=mt.useRef(null),x=wn(C,S),T=s(c,p);return mt.useEffect(()=>(T.itemMap.set(S,{ref:S,...m}),()=>void T.itemMap.delete(S))),P.jsx(d,{[f]:"",ref:x,children:h})});g.displayName=c;function v(y){const C=s(e+"CollectionConsumer",y);return mt.useCallback(()=>{const h=C.collectionRef.current;if(!h)return[];const m=Array.from(h.querySelectorAll(`[${f}]`));return Array.from(C.itemMap.values()).sort((T,E)=>m.indexOf(T.ref.current)-m.indexOf(E.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:o,Slot:u,ItemSlot:g},v,r]}var vC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dt=vC.reduce((e,t)=>{const n=ol(`Primitive.${t}`),r=w.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function fg(e,t){e&&Qs.flushSync(()=>e.dispatchEvent(t))}function xn(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function wC(e,t=globalThis==null?void 0:globalThis.document){const n=xn(e);w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var xC="DismissableLayer",al="dismissableLayer.update",SC="dismissableLayer.pointerDownOutside",CC="dismissableLayer.focusOutside",pd,dg=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pg=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,u=w.useContext(dg),[c,f]=w.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=w.useState({}),v=wn(t,E=>f(E)),y=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),p=y.indexOf(C),h=c?y.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,S=h>=p,x=EC(E=>{const k=E.target,N=[...u.branches].some(L=>L.contains(k));!S||N||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},d),T=PC(E=>{const k=E.target;[...u.branches].some(L=>L.contains(k))||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},d);return wC(E=>{h===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},d),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(pd=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),hd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=pd)}},[c,d,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),hd())},[c,u]),w.useEffect(()=>{const E=()=>g({});return document.addEventListener(al,E),()=>document.removeEventListener(al,E)},[]),P.jsx(dt.div,{...l,ref:v,style:{pointerEvents:m?S?"auto":"none":void 0,...e.style},onFocusCapture:Ve(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ve(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ve(e.onPointerDownCapture,x.onPointerDownCapture)})});pg.displayName=xC;var TC="DismissableLayerBranch",hg=w.forwardRef((e,t)=>{const n=w.useContext(dg),r=w.useRef(null),i=wn(t,r);return w.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),P.jsx(dt.div,{...e,ref:i})});hg.displayName=TC;function EC(e,t=globalThis==null?void 0:globalThis.document){const n=xn(e),r=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){mg(SC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function PC(e,t=globalThis==null?void 0:globalThis.document){const n=xn(e),r=w.useRef(!1);return w.useEffect(()=>{const i=s=>{s.target&&!r.current&&mg(CC,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hd(){const e=new CustomEvent(al);document.dispatchEvent(e)}function mg(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?fg(i,s):i.dispatchEvent(s)}var kC=pg,MC=hg,ai=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},AC="Portal",gg=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=w.useState(!1);ai(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?a0.createPortal(P.jsx(dt.div,{...r,ref:t}),o):null});gg.displayName=AC;function RC(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var yg=e=>{const{present:t,children:n}=e,r=LC(t),i=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),s=wn(r.ref,NC(i));return typeof n=="function"||r.isPresent?w.cloneElement(i,{ref:s}):null};yg.displayName="Presence";function LC(e){const[t,n]=w.useState(),r=w.useRef(null),i=w.useRef(e),s=w.useRef("none"),o=e?"mounted":"unmounted",[a,l]=RC(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=zi(r.current);s.current=a==="mounted"?u:"none"},[a]),ai(()=>{const u=r.current,c=i.current;if(c!==e){const d=s.current,g=zi(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),ai(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=g=>{const y=zi(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&y&&(l("ANIMATION_END"),!i.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},d=g=>{g.target===t&&(s.current=zi(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function zi(e){return(e==null?void 0:e.animationName)||"none"}function NC(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var DC=Qg[" useInsertionEffect ".trim().toString()]||ai;function VC({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=_C({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const c=w.useRef(e!==void 0);w.useEffect(()=>{const f=c.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=w.useCallback(c=>{var f;if(a){const d=IC(c)?c(e):c;d!==e&&((f=o.current)==null||f.call(o,d))}else s(c)},[a,e,s,o]);return[l,u]}function _C({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),i=w.useRef(n),s=w.useRef(t);return DC(()=>{s.current=t},[t]),w.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function IC(e){return typeof e=="function"}var OC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),jC="VisuallyHidden",Fu=w.forwardRef((e,t)=>P.jsx(dt.span,{...e,ref:t,style:{...OC,...e.style}}));Fu.displayName=jC;var zu="ToastProvider",[Bu,FC,zC]=yC("Toast"),[vg,ET]=cg("Toast",[zC]),[BC,to]=vg(zu),wg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=w.useState(null),[u,c]=w.useState(0),f=w.useRef(!1),d=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${zu}\`. Expected non-empty \`string\`.`),P.jsx(Bu.Provider,{scope:t,children:P.jsx(BC,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>c(g=>g+1),[]),onToastRemove:w.useCallback(()=>c(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d,children:o})})};wg.displayName=zu;var xg="ToastViewport",$C=["F8"],ll="toast.viewportPause",ul="toast.viewportResume",Sg=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=$C,label:i="Notifications ({hotkey})",...s}=e,o=to(xg,n),a=FC(n),l=w.useRef(null),u=w.useRef(null),c=w.useRef(null),f=w.useRef(null),d=wn(t,f,o.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=o.toastCount>0;w.useEffect(()=>{const C=p=>{var m;r.length!==0&&r.every(S=>p[S]||p.code===S)&&((m=f.current)==null||m.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[r]),w.useEffect(()=>{const C=l.current,p=f.current;if(v&&C&&p){const h=()=>{if(!o.isClosePausedRef.current){const T=new CustomEvent(ll);p.dispatchEvent(T),o.isClosePausedRef.current=!0}},m=()=>{if(o.isClosePausedRef.current){const T=new CustomEvent(ul);p.dispatchEvent(T),o.isClosePausedRef.current=!1}},S=T=>{!C.contains(T.relatedTarget)&&m()},x=()=>{C.contains(document.activeElement)||m()};return C.addEventListener("focusin",h),C.addEventListener("focusout",S),C.addEventListener("pointermove",h),C.addEventListener("pointerleave",x),window.addEventListener("blur",h),window.addEventListener("focus",m),()=>{C.removeEventListener("focusin",h),C.removeEventListener("focusout",S),C.removeEventListener("pointermove",h),C.removeEventListener("pointerleave",x),window.removeEventListener("blur",h),window.removeEventListener("focus",m)}}},[v,o.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:C})=>{const h=a().map(m=>{const S=m.ref.current,x=[S,...eT(S)];return C==="forwards"?x:x.reverse()});return(C==="forwards"?h.reverse():h).flat()},[a]);return w.useEffect(()=>{const C=f.current;if(C){const p=h=>{var x,T,E;const m=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!m){const k=document.activeElement,N=h.shiftKey;if(h.target===C&&N){(x=u.current)==null||x.focus();return}const F=y({tabbingDirection:N?"backwards":"forwards"}),ce=F.findIndex(O=>O===k);Ho(F.slice(ce+1))?h.preventDefault():N?(T=u.current)==null||T.focus():(E=c.current)==null||E.focus()}};return C.addEventListener("keydown",p),()=>C.removeEventListener("keydown",p)}},[a,y]),P.jsxs(MC,{ref:l,role:"region","aria-label":i.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&P.jsx(cl,{ref:u,onFocusFromOutsideViewport:()=>{const C=y({tabbingDirection:"forwards"});Ho(C)}}),P.jsx(Bu.Slot,{scope:n,children:P.jsx(dt.ol,{tabIndex:-1,...s,ref:d})}),v&&P.jsx(cl,{ref:c,onFocusFromOutsideViewport:()=>{const C=y({tabbingDirection:"backwards"});Ho(C)}})]})});Sg.displayName=xg;var Cg="ToastFocusProxy",cl=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=to(Cg,n);return P.jsx(Fu,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});cl.displayName=Cg;var yi="Toast",UC="toast.swipeStart",WC="toast.swipeMove",bC="toast.swipeCancel",HC="toast.swipeEnd",Tg=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=VC({prop:r,defaultProp:i??!0,onChange:s,caller:yi});return P.jsx(yg,{present:n||a,children:P.jsx(YC,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:xn(e.onPause),onResume:xn(e.onResume),onSwipeStart:Ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ve(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ve(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Tg.displayName=yi;var[KC,GC]=vg(yi,{onClose(){}}),YC=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:g,...v}=e,y=to(yi,n),[C,p]=w.useState(null),h=wn(t,O=>p(O)),m=w.useRef(null),S=w.useRef(null),x=i||y.duration,T=w.useRef(0),E=w.useRef(x),k=w.useRef(0),{onToastAdd:N,onToastRemove:L}=y,V=xn(()=>{var se;(C==null?void 0:C.contains(document.activeElement))&&((se=y.viewport)==null||se.focus()),o()}),F=w.useCallback(O=>{!O||O===1/0||(window.clearTimeout(k.current),T.current=new Date().getTime(),k.current=window.setTimeout(V,O))},[V]);w.useEffect(()=>{const O=y.viewport;if(O){const se=()=>{F(E.current),u==null||u()},Ne=()=>{const $=new Date().getTime()-T.current;E.current=E.current-$,window.clearTimeout(k.current),l==null||l()};return O.addEventListener(ll,Ne),O.addEventListener(ul,se),()=>{O.removeEventListener(ll,Ne),O.removeEventListener(ul,se)}}},[y.viewport,x,l,u,F]),w.useEffect(()=>{s&&!y.isClosePausedRef.current&&F(x)},[s,x,y.isClosePausedRef,F]),w.useEffect(()=>(N(),()=>L()),[N,L]);const ce=w.useMemo(()=>C?Lg(C):null,[C]);return y.viewport?P.jsxs(P.Fragment,{children:[ce&&P.jsx(XC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ce}),P.jsx(KC,{scope:n,onClose:V,children:Qs.createPortal(P.jsx(Bu.ItemSlot,{scope:n,children:P.jsx(kC,{asChild:!0,onEscapeKeyDown:Ve(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||V(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:P.jsx(dt.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...v,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ve(e.onKeyDown,O=>{O.key==="Escape"&&(a==null||a(O.nativeEvent),O.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,V()))}),onPointerDown:Ve(e.onPointerDown,O=>{O.button===0&&(m.current={x:O.clientX,y:O.clientY})}),onPointerMove:Ve(e.onPointerMove,O=>{if(!m.current)return;const se=O.clientX-m.current.x,Ne=O.clientY-m.current.y,$=!!S.current,A=["left","right"].includes(y.swipeDirection),D=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=A?D(0,se):0,W=A?0:D(0,Ne),q=O.pointerType==="touch"?10:2,pt={x:I,y:W},rt={originalEvent:O,delta:pt};$?(S.current=pt,Bi(WC,f,rt,{discrete:!1})):md(pt,y.swipeDirection,q)?(S.current=pt,Bi(UC,c,rt,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(se)>q||Math.abs(Ne)>q)&&(m.current=null)}),onPointerUp:Ve(e.onPointerUp,O=>{const se=S.current,Ne=O.target;if(Ne.hasPointerCapture(O.pointerId)&&Ne.releasePointerCapture(O.pointerId),S.current=null,m.current=null,se){const $=O.currentTarget,A={originalEvent:O,delta:se};md(se,y.swipeDirection,y.swipeThreshold)?Bi(HC,g,A,{discrete:!0}):Bi(bC,d,A,{discrete:!0}),$.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),XC=e=>{const{__scopeToast:t,children:n,...r}=e,i=to(yi,t),[s,o]=w.useState(!1),[a,l]=w.useState(!1);return qC(()=>o(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:P.jsx(gg,{asChild:!0,children:P.jsx(Fu,{...r,children:s&&P.jsxs(P.Fragment,{children:[i.label," ",n]})})})},QC="ToastTitle",Eg=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return P.jsx(dt.div,{...r,ref:t})});Eg.displayName=QC;var ZC="ToastDescription",Pg=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return P.jsx(dt.div,{...r,ref:t})});Pg.displayName=ZC;var kg="ToastAction",Mg=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?P.jsx(Rg,{altText:n,asChild:!0,children:P.jsx($u,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${kg}\`. Expected non-empty \`string\`.`),null)});Mg.displayName=kg;var Ag="ToastClose",$u=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=GC(Ag,n);return P.jsx(Rg,{asChild:!0,children:P.jsx(dt.button,{type:"button",...r,ref:t,onClick:Ve(e.onClick,i.onClose)})})});$u.displayName=Ag;var Rg=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return P.jsx(dt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Lg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),JC(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Lg(r))}}),t}function Bi(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?fg(i,s):i.dispatchEvent(s)}var md=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function qC(e=()=>{}){const t=xn(e);ai(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function JC(e){return e.nodeType===e.ELEMENT_NODE}function eT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ho(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var tT=wg,nT=Sg,rT=Tg,iT=Eg,sT=Pg,oT=Mg,aT=$u;const Ng=({isOpen:e,onOpenChange:t,type:n,title:r,description:i,action:s})=>{const o=()=>{switch(n){case"success":return{Icon:GS,bgColor:"bg-green-50",borderColor:"border-green-200",textColor:"text-green-900",iconColor:"text-green-600",actionStyles:"border-green-300 hover:bg-green-100 hover:border-green-400"};case"error":return{Icon:cd,bgColor:"bg-red-50",borderColor:"border-red-200",textColor:"text-red-900",iconColor:"text-red-600",actionStyles:"border-red-300 hover:bg-red-100 hover:border-red-400"};default:return{Icon:cd,bgColor:"bg-gray-50",borderColor:"border-gray-200",textColor:"text-gray-900",iconColor:"text-gray-600",actionStyles:"border-gray-300 hover:bg-gray-100 hover:border-gray-400"}}},{Icon:a,bgColor:l,borderColor:u,textColor:c,iconColor:f,actionStyles:d}=o();return P.jsxs(rT,{className:`${l} ${u} ${c} border rounded-lg shadow-lg p-4 grid grid-cols-[auto_1fr_auto] gap-3 items-start data-[state=open]:animate-slideIn data-[state=closed]:animate-hide data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:animate-swipeOut`,open:e,onOpenChange:t,duration:9e3,children:[P.jsx(a,{className:`${f} w-5 h-5 mt-0.5`}),P.jsxs("div",{className:"flex flex-col gap-2",children:[P.jsxs("div",{className:"flex flex-col gap-1",children:[P.jsx(iT,{className:"font-semibold text-sm",children:r}),i&&P.jsx(sT,{className:"text-sm opacity-90",children:i})]}),s&&P.jsx(oT,{className:`px-3 py-1.5 text-xs font-medium rounded border transition-colors ${d} self-start`,altText:s.label,onClick:s.onClick,children:s.label})]}),P.jsx(aT,{className:"rounded p-1 hover:bg-black/10 transition-colors",children:P.jsx(oC,{className:"w-4 h-4"})})]})},Dg=({children:e})=>P.jsxs(tT,{swipeDirection:"right",children:[e,P.jsx(nT,{className:"fixed bottom-0 right-0 flex flex-col p-6 gap-3 w-96 max-w-[100vw] m-0 list-none z-50 outline-none"})]}),lT=({isEditMode:e,onModeChange:t,isLoading:n=!1})=>{const{publishChanges:r,isPublishing:i}=cC(),[s,o]=w.useState({isOpen:!1,type:"success",title:"",onOpenChange:()=>{},description:void 0,action:void 0}),a=(l,u,c,f)=>{o({isOpen:!0,type:l,title:u,description:c,action:f,onOpenChange:d=>o(g=>({...g,isOpen:d}))})};return P.jsxs(Dg,{children:[P.jsx(og.div,{className:"absolute bottom-6 left-1/2 transform -translate-x-1/2 z-20",initial:{y:100,opacity:0},animate:{y:n?100:0,opacity:n?0:1},transition:{duration:.6,ease:"easeOut",delay:n?0:.3},children:P.jsxs("div",{className:"bg-white rounded-lg shadow-lg border border-gray-200 p-1 flex items-center space-x-1",children:[P.jsx("button",{onClick:()=>t(!1),className:`p-2 rounded-md transition-colors ${e?"text-gray-500 hover:text-gray-700 hover:bg-gray-50":"bg-orange-100 text-orange-600"}`,title:"View Mode",children:P.jsx(XS,{className:"w-5 h-5"})}),P.jsx("div",{className:"w-px h-6 bg-gray-300"}),P.jsx("button",{onClick:()=>t(!0),className:`p-2 rounded-md transition-colors ${e?"bg-orange-100 text-orange-600":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,title:"Edit Mode - Drag to select elements",children:P.jsx(eC,{className:"w-5 h-5"})}),P.jsx("div",{className:"w-px h-6 bg-gray-300"}),P.jsx("button",{onClick:()=>r(a),disabled:i,className:"p-2 rounded-md transition-colors text-gray-500 hover:text-gray-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",title:i?"Publishing changes...":"Publish Changes & Create PR",children:i?P.jsx("div",{className:"animate-spin w-5 h-5",children:P.jsxs("svg",{className:"w-5 h-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[P.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),P.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):P.jsx(iC,{className:"w-5 h-5"})})]})}),P.jsx(Ng,{isOpen:s.isOpen,onOpenChange:s.onOpenChange,type:s.type,title:s.title,description:s.description,action:s.action})]})},uT=()=>{const[e,t]=w.useState([]),[n,r]=w.useState(!1),[i,s]=w.useState(null),o=w.useCallback(async l=>{var c;const u=Array.isArray(l)?l:[l];if(console.log(`[ComponentSearch] searchComponents called for ${u.length} element(s)!`,u.map(f=>f==null?void 0:f.tagName)),!l||Array.isArray(l)&&l.length===0){const f={results:[]};return t([]),s(null),f}r(!0),s(null);try{const f=await fetch("/api/search-components",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!f.ok){const y=await f.json();throw new Error(y.error||`HTTP ${f.status}`)}const d=await f.json(),g=((c=d.results[0])==null?void 0:c.matches)||[];t(g);const v=d.results.reduce((y,C)=>y+C.matches.length,0);return console.log(`Found ${v} total component matches across ${d.results.length} element(s)`),d}catch(f){const d=f instanceof Error?f.message:"Component search failed";return s(d),t([]),console.error("Component search error:",f),{results:[]}}finally{r(!1)}},[]),a=w.useCallback(()=>{t([]),s(null)},[]);return{matches:e,isSearching:n,error:i,searchComponents:o,clearSearch:a}},cT=({onElementsSelect:e,isEditMode:t})=>{const n=w.useRef(null);w.useEffect(()=>{const s=o=>{if(!o.origin.includes("localhost")){console.log("[IframeMessaging] Message from non-localhost origin:",o.origin);return}if(console.log("[IframeMessaging] Message received:",o.data.type),o.data.type==="ELEMENT_SELECTED"){const a=o.data.element;console.log("[IframeMessaging] Single element selected:",a.tagName),e==null||e([a])}else if(o.data.type==="BOX_SELECTION_COMPLETE"){const{elements:a}=o.data;console.log("[IframeMessaging] Multi-element selection completed:",a.length,"elements"),e==null||e(a)}else o.data.type==="SCRIPT_INJECTED"?console.log("[IframeMessaging] Selection script loaded"):o.data.type==="CLEAR_SELECTION"&&(console.log("[IframeMessaging] Clearing selection"),e==null||e([]))};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)},[e]);const r=w.useCallback(s=>{if(n.current=s,!s)return;const o=()=>{console.log("[IframeMessaging] Iframe loaded"),i(t||!1)};return s.addEventListener("load",o),()=>s.removeEventListener("load",o)},[t]),i=w.useCallback(s=>{const o=n.current;o&&o.contentWindow?(console.log("[IframeMessaging] Sending TOGGLE_SELECTION:",s),o.contentWindow.postMessage({type:"TOGGLE_SELECTION",enabled:s},"*")):console.log("[IframeMessaging] Cannot send message - iframe not ready")},[]);return{setupIframe:r,sendToggleSelection:i}},fT=({onElementsSelect:e,userPort:t,isLoading:n=!1})=>{const[r,i]=w.useState(!1),{searchComponents:s}=uT(),o=w.useCallback(async c=>{if(c.length===0){e==null||e([]);return}e==null||e(c);try{const f=c.map(v=>({tagName:v.tagName,className:v.className,id:v.id,textContent:v.textContent})),d=await s(f),g=c.map((v,y)=>{const C=d.results[y];if(C&&!C.error&&C.matches.length>0){const p=C.matches[0];return{...v,filePath:p.filePath}}return v});e==null||e(g)}catch(f){console.error("[PreviewFrame] Batch component search failed:",f),e==null||e(c)}},[e,s]),{setupIframe:a,sendToggleSelection:l}=cT({onElementsSelect:o,isEditMode:r});w.useEffect(()=>{l(r)},[r,l]);const u=c=>{i(c)};return P.jsxs("div",{className:"relative w-full h-full",children:[P.jsx(lT,{isEditMode:r,onModeChange:u,isLoading:n}),P.jsx("iframe",{ref:a,src:`http://localhost:${t}`,className:"w-full h-full border-none",title:"Project Preview",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-modals"})]})},dT=({type:e,value:t,onChange:n,disabled:r=!1})=>{const i=s=>{n(s.target.value)};switch(e){case"color":return P.jsxs("div",{className:"w-28 flex items-center space-x-1 px-2 py-1 border border-gray-300 rounded focus-within:ring-1 focus-within:ring-orange-500 focus-within:border-orange-500",children:[P.jsx("input",{type:"color",value:t,onChange:i,disabled:r,className:"border-0 rounded cursor-pointer outline-none flex-shrink-0",style:{width:"16px",height:"16px",padding:"0",margin:"0",border:"none",borderRadius:"2px",WebkitAppearance:"none",MozAppearance:"none",appearance:"none",aspectRatio:"1/1"},title:t}),P.jsx("span",{className:"text-xs font-mono text-gray-700 flex-1 min-w-0 text-center",children:t})]});case"range":return P.jsx("input",{type:"text",value:`${t}%`,onChange:s=>{const o=s.target.value.replace("%","");n(o)},disabled:r,className:"w-28 px-4 py-1 text-xs border border-gray-300 rounded focus:ring-1 focus:ring-orange-500 focus:border-orange-500 text-black text-right",placeholder:"100%"});case"text":case"spacing":default:return P.jsx("input",{type:"text",value:t,onChange:i,disabled:r,className:"w-28 px-4 py-1 text-xs border border-gray-300 rounded focus:ring-1 focus:ring-orange-500 focus:border-orange-500 text-black text-right"})}},$i=eo("useCodeModification"),pT=()=>{const[e,t]=w.useState(!1),[n,r]=w.useState(null),i=w.useCallback(async o=>{t(!0),r(null);try{$i.debug("Making fetch request to /api/modify-code",o);const a=await fetch("/api/modify-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if($i.debug("Response received",{status:a.status,ok:a.ok}),!a.ok){const u=await a.json();throw new Error(u.details||u.error||`HTTP ${a.status}`)}const l=await a.json();return $i.info("Code modification completed:",l.changes),l}catch(a){const l=a instanceof Error?a.message:"Code modification failed";return r(l),$i.error("Code modification error:",a),null}finally{t(!1)}},[]),s=w.useCallback(async(o,a)=>{const u=`Apply these CSS styles: ${Object.entries(a).map(([c,f])=>`${c}: ${f}`).join(", ")}`;return i({instruction:u,elements:[o],temperature:.3})},[i]);return{modifyCode:i,modifyCodeWithCSS:s,isModifying:e,error:n,clearError:()=>r(null)}},ht=eo("ElementInspector"),hT=[{key:"backgroundColor",label:"Background Color",type:"color"},{key:"color",label:"Text Color",type:"color"},{key:"fontSize",label:"Text Size",type:"text"},{key:"opacity",label:"Opacity",type:"range"},{key:"borderColor",label:"Border Color",type:"color"},{key:"borderWidth",label:"Border Width",type:"text"},{key:"borderRadius",label:"Border Radius",type:"text"},{key:"paddingVertical",label:"Padding Vertical",type:"spacing"},{key:"paddingHorizontal",label:"Padding Horizontal",type:"spacing"},{key:"marginVertical",label:"Margin Vertical",type:"spacing",isHidden:!0},{key:"marginHorizontal",label:"Margin Horizontal",type:"spacing",isHidden:!0}],mT={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff",yellow:"#ffff00",cyan:"#00ffff",magenta:"#ff00ff",silver:"#c0c0c0",gray:"#808080",grey:"#808080"},Ui=(e,t,n)=>{const r=e[t],i=e[n];return r&&i&&r===i?r:r&&i&&r!==i?`${r}/${i}`:r||i||""},gT=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),gd=(e,t)=>e[t]||e[gT(t)]||"",yT=e=>{if(!e||e==="transparent"||e==="inherit"||e==="initial")return"#000000";if(e.startsWith("#"))return e;const t=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);if(t){const n=parseInt(t[1]),r=parseInt(t[2]),i=parseInt(t[3]),s=o=>{const a=o.toString(16);return a.length===1?"0"+a:a};return`#${s(n)}${s(r)}${s(i)}`}return mT[e.toLowerCase()]||"#000000"},vT=({selectedElements:e,onClose:t})=>{if(e.length===0)return null;const n=e.length===1,r=e[0];return P.jsxs("div",{className:"w-80 bg-white border-l border-gray-200 overflow-y-auto",children:[P.jsxs("div",{className:"p-4 border-b border-gray-200",children:[P.jsxs("div",{className:"flex items-center justify-between mb-2",children:[P.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Element"}),P.jsx("button",{onClick:t,className:"text-gray-400 hover:text-gray-600",children:"✕"})]}),P.jsx("div",{className:"text-sm text-gray-600",children:n?P.jsxs(P.Fragment,{children:["Selected:"," ",P.jsxs("span",{className:"font-mono text-orange-600",children:[r.tagName,r.className&&`.${r.className.split(" ")[0]}`,r.id&&`#${r.id}`]})]}):P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"font-medium mb-2",children:["Selected ",e.length," elements:"]}),P.jsx("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:e.map((i,s)=>P.jsxs("div",{className:"text-xs",children:[P.jsxs("span",{className:"font-mono text-orange-600",children:[i.tagName,i.className&&`.${i.className.split(" ")[0]}`,i.id&&`#${i.id}`]}),i.filePath&&P.jsxs("span",{className:"text-gray-500 ml-1",children:["in ",i.filePath.split("/").pop()]})]},`${i.xpath}-${s}`))})]})})]}),P.jsx("div",{className:"p-4 space-y-4",children:P.jsx(wT,{selectedElements:e})})]})},wT=({selectedElements:e})=>{const t=e[0],n=e.length>1,[r,i]=w.useState({}),[s,o]=w.useState(""),[a,l]=w.useState({isOpen:!1,type:"success",title:"",description:"",onOpenChange:()=>{}}),{modifyCode:u,modifyCodeWithCSS:c,isModifying:f}=pT();ht.debug("selectedElement:",t);const d=e.every(x=>!!x.filePath),g=x=>{const{computedStyles:T}=t;switch(x){case"paddingVertical":return Ui(T,"padding-top","padding-bottom");case"paddingHorizontal":return Ui(T,"padding-left","padding-right");case"marginVertical":return Ui(T,"margin-top","margin-bottom");case"marginHorizontal":return Ui(T,"margin-left","margin-right");case"opacity":return gd(T,"opacity")||"1";case"borderColor":return T["border-color"]||T["border-top-color"]||T["border-right-color"]||T["border-bottom-color"]||T["border-left-color"]||"";case"borderWidth":return T["border-width"]||T["border-top-width"]||T["border-right-width"]||T["border-bottom-width"]||T["border-left-width"]||"";case"borderRadius":return T["border-radius"]||T["border-top-left-radius"]||"";default:const E=gd(T,x);return["color","backgroundColor","borderColor"].includes(x)&&E?yT(E):E}},v=x=>r[x]??g(x),y=(x,T)=>{i(E=>({...E,[x]:T}))},C=(x,T)=>{const k={paddingVertical:["paddingTop","paddingBottom"],paddingHorizontal:["paddingLeft","paddingRight"],marginVertical:["marginTop","marginBottom"],marginHorizontal:["marginLeft","marginRight"]}[x];k&&i(N=>{const L={...N};return k.forEach(V=>{L[V]=T}),L})},p=x=>{const T=v(x),E=parseFloat(T??"");return isNaN(E)?100:Math.round(E*100)},h=(x,T)=>{const E=T.replace("%","").trim(),k=parseFloat(E);if(!isNaN(k)){const L=(Math.max(0,Math.min(100,k))/100).toString();y(x,L)}},m=async()=>{if(Object.keys(r).length!==0){if(!t.filePath){ht.error("Please find the component file first using the search functionality.");return}try{const x=await c(t,r);x?(ht.info("CSS changes applied successfully:",x.changes),i({})):l({isOpen:!0,type:"error",title:"Failed to apply CSS changes",description:"An error occurred while applying the style changes.",onOpenChange:T=>l(E=>({...E,isOpen:T}))})}catch(x){ht.error("Error applying CSS changes:",x),l({isOpen:!0,type:"error",title:"Failed to apply CSS changes",description:x instanceof Error?x.message:"An unexpected error occurred.",onOpenChange:T=>l(E=>({...E,isOpen:T}))})}}},S=async()=>{var T;if(ht.debug("applyLlmChange called",{instruction:s,isMultiElement:n,elementCount:e.length,isModifying:f}),!s.trim()){ht.debug("No instruction provided");return}if(e.filter(E=>!E.filePath).length>0){ht.debug("Some elements missing filePath");return}try{const E=await u({instruction:s,elements:e,temperature:.7});if(E)ht.info("LLM changes applied successfully:",E),o(""),l({isOpen:!0,type:"success",title:n?"Multi-element changes applied!":"Changes applied!",description:n?`Modified ${((T=E.filesModified)==null?void 0:T.length)||0} files with ${E.totalElements} elements.`:E.changes,onOpenChange:k=>l(N=>({...N,isOpen:k}))});else throw new Error("No result returned from modification")}catch(E){ht.error("Error applying LLM changes:",E),l({isOpen:!0,type:"error",title:"Failed to apply AI changes",description:E instanceof Error?E.message:"An unexpected error occurred.",onOpenChange:k=>l(N=>({...N,isOpen:k}))})}};return P.jsxs("div",{className:"space-y-8",children:[P.jsxs("div",{className:"space-y-3",children:[P.jsxs("div",{className:"flex items-center space-x-2",children:[P.jsx(nC,{className:"w-4 h-4 text-gray-500"}),P.jsx("h5",{className:"text-sm font-medium text-gray-700",children:n?"Change multiple elements":"Change an element"})]}),P.jsx("textarea",{value:s,onChange:x=>o(x.target.value),placeholder:"Describe the changes you'd like to make",className:"w-full px-3 py-2 text-sm border border-gray-300 focus:ring-1 focus:ring-orange-500 focus:border-orange-500 resize-none text-black rounded-lg",rows:4}),P.jsxs("button",{onClick:S,disabled:s.trim()===""||f||!d,className:"w-full bg-orange-500 text-white px-3 py-2 rounded text-sm shadow-lg shadow-orange-400/60 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all duration-200 flex items-center justify-center gap-2",children:[f&&P.jsx(fd,{className:"w-4 h-4 animate-spin"}),f?"Applying AI Changes...":"Apply AI Changes"]})]}),P.jsxs("div",{className:"space-y-3",children:[P.jsxs("div",{className:"flex items-center space-x-2",children:[P.jsx(qS,{className:"w-4 h-4 text-gray-500"}),P.jsx("h5",{className:"text-sm font-medium text-gray-700",children:"Style Properties"})]}),hT.filter(({isHidden:x})=>!x).map(({key:x,label:T,type:E})=>P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsx("label",{className:"text-xs text-gray-600 flex-1",children:T}),P.jsx(dT,{type:E,value:E==="range"?p(x):v(x),onChange:k=>{E==="spacing"?C(x,k):E==="range"?h(x,k+"%"):y(x,k)}})]},x)),P.jsxs("button",{onClick:m,disabled:Object.keys(r).length===0||f||!d,className:"w-full bg-orange-500 text-white px-3 py-2 rounded text-sm shadow-lg shadow-orange-400/60 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all duration-200 flex items-center justify-center gap-2",children:[f?P.jsx(fd,{className:"w-4 h-4 animate-spin"}):null,f?"Applying Style Changes...":"Apply Style Changes"]})]}),d?null:P.jsx("div",{className:"p-3 text-xs rounded border border-yellow-200 bg-yellow-50 text-yellow-800",children:n?"Cannot modify - component files not found for some elements.":"Cannot modify - no component file found."}),P.jsx(Dg,{children:P.jsx(Ng,{isOpen:a.isOpen,onOpenChange:a.onOpenChange,type:a.type,title:a.title,description:a.description})})]})},xT=eo("useServerConfig"),ST=()=>{const[e,t]=w.useState({userPort:3e3}),[n,r]=w.useState(!1),[i,s]=w.useState(null),o=w.useCallback(async()=>{try{r(!0),s(null);const a=await fetch("/api/config");if(!a.ok)throw new Error(`Failed to fetch config: ${a.status}`);const l=await a.json();return t(l),l}catch(a){const l=a instanceof Error?a.message:"Failed to fetch server config";throw s(l),xT.error("Error fetching server config:",a),a}finally{r(!1)}},[]);return{config:e,fetchConfig:o,isLoading:n,error:i}},CT=()=>{const[e,t]=w.useState([]),{config:n,fetchConfig:r}=ST();w.useEffect(()=>{r().catch(console.error)},[r]);const i=w.useCallback(o=>{t(o)},[]),s=()=>{t([])};return P.jsxs(og.div,{className:"h-screen flex bg-gray-50",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:"easeOut"},children:[P.jsx("div",{className:"flex-1 flex flex-col relative",children:P.jsx(fT,{onElementsSelect:i,userPort:n.userPort})}),P.jsx(vT,{selectedElements:e,onClose:s})]})};Ko.createRoot(document.getElementById("root")).render(P.jsx(mt.StrictMode,{children:P.jsx(CT,{})}));
|