@useorgx/openclaw-plugin 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/README.md +125 -0
- package/dashboard/dist/assets/index-BJj_VPzn.css +1 -0
- package/dashboard/dist/assets/index-DqHqHn4Z.js +103 -0
- package/dashboard/dist/index.html +15 -0
- package/dist/api.d.ts +47 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +162 -0
- package/dist/api.js.map +1 -0
- package/dist/dashboard-api.d.ts +50 -0
- package/dist/dashboard-api.d.ts.map +1 -0
- package/dist/dashboard-api.js +107 -0
- package/dist/dashboard-api.js.map +1 -0
- package/dist/http-handler.d.ts +28 -0
- package/dist/http-handler.d.ts.map +1 -0
- package/dist/http-handler.js +215 -0
- package/dist/http-handler.js.map +1 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +459 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +182 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/openclaw.plugin.json +73 -0
- package/package.json +74 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function s(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=s(u);fetch(u.href,d)}})();var Yl={exports:{}},si={},Xl={exports:{}},se={};/**
|
|
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 od;function sv(){if(od)return se;od=1;var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.iterator;function k(P){return P===null||typeof P!="object"?null:(P=x&&P[x]||P["@@iterator"],typeof P=="function"?P:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,M={};function D(P,L,re){this.props=P,this.context=L,this.refs=M,this.updater=re||N}D.prototype.isReactComponent={},D.prototype.setState=function(P,L){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,L,"setState")},D.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function F(){}F.prototype=D.prototype;function B(P,L,re){this.props=P,this.context=L,this.refs=M,this.updater=re||N}var K=B.prototype=new F;K.constructor=B,A(K,D.prototype),K.isPureReactComponent=!0;var X=Array.isArray,U=Object.prototype.hasOwnProperty,ee={current:null},le={key:!0,ref:!0,__self:!0,__source:!0};function Z(P,L,re){var oe,ue={},ce=null,me=null;if(L!=null)for(oe in L.ref!==void 0&&(me=L.ref),L.key!==void 0&&(ce=""+L.key),L)U.call(L,oe)&&!le.hasOwnProperty(oe)&&(ue[oe]=L[oe]);var he=arguments.length-2;if(he===1)ue.children=re;else if(1<he){for(var Se=Array(he),ot=0;ot<he;ot++)Se[ot]=arguments[ot+2];ue.children=Se}if(P&&P.defaultProps)for(oe in he=P.defaultProps,he)ue[oe]===void 0&&(ue[oe]=he[oe]);return{$$typeof:n,type:P,key:ce,ref:me,props:ue,_owner:ee.current}}function ve(P,L){return{$$typeof:n,type:P.type,key:L,ref:P.ref,props:P.props,_owner:P._owner}}function Ee(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function qe(P){var L={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(re){return L[re]})}var st=/\/+/g;function Qe(P,L){return typeof P=="object"&&P!==null&&P.key!=null?qe(""+P.key):L.toString(36)}function be(P,L,re,oe,ue){var ce=typeof P;(ce==="undefined"||ce==="boolean")&&(P=null);var me=!1;if(P===null)me=!0;else switch(ce){case"string":case"number":me=!0;break;case"object":switch(P.$$typeof){case n:case i:me=!0}}if(me)return me=P,ue=ue(me),P=oe===""?"."+Qe(me,0):oe,X(ue)?(re="",P!=null&&(re=P.replace(st,"$&/")+"/"),be(ue,L,re,"",function(ot){return ot})):ue!=null&&(Ee(ue)&&(ue=ve(ue,re+(!ue.key||me&&me.key===ue.key?"":(""+ue.key).replace(st,"$&/")+"/")+P)),L.push(ue)),1;if(me=0,oe=oe===""?".":oe+":",X(P))for(var he=0;he<P.length;he++){ce=P[he];var Se=oe+Qe(ce,he);me+=be(ce,L,re,Se,ue)}else if(Se=k(P),typeof Se=="function")for(P=Se.call(P),he=0;!(ce=P.next()).done;)ce=ce.value,Se=oe+Qe(ce,he++),me+=be(ce,L,re,Se,ue);else if(ce==="object")throw L=String(P),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return me}function St(P,L,re){if(P==null)return P;var oe=[],ue=0;return be(P,oe,"","",function(ce){return L.call(re,ce,ue++)}),oe}function Ye(P){if(P._status===-1){var L=P._result;L=L(),L.then(function(re){(P._status===0||P._status===-1)&&(P._status=1,P._result=re)},function(re){(P._status===0||P._status===-1)&&(P._status=2,P._result=re)}),P._status===-1&&(P._status=0,P._result=L)}if(P._status===1)return P._result.default;throw P._result}var ie={current:null},O={transition:null},q={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:O,ReactCurrentOwner:ee};function H(){throw Error("act(...) is not supported in production builds of React.")}return se.Children={map:St,forEach:function(P,L,re){St(P,function(){L.apply(this,arguments)},re)},count:function(P){var L=0;return St(P,function(){L++}),L},toArray:function(P){return St(P,function(L){return L})||[]},only:function(P){if(!Ee(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},se.Component=D,se.Fragment=s,se.Profiler=u,se.PureComponent=B,se.StrictMode=l,se.Suspense=m,se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,se.act=H,se.cloneElement=function(P,L,re){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var oe=A({},P.props),ue=P.key,ce=P.ref,me=P._owner;if(L!=null){if(L.ref!==void 0&&(ce=L.ref,me=ee.current),L.key!==void 0&&(ue=""+L.key),P.type&&P.type.defaultProps)var he=P.type.defaultProps;for(Se in L)U.call(L,Se)&&!le.hasOwnProperty(Se)&&(oe[Se]=L[Se]===void 0&&he!==void 0?he[Se]:L[Se])}var Se=arguments.length-2;if(Se===1)oe.children=re;else if(1<Se){he=Array(Se);for(var ot=0;ot<Se;ot++)he[ot]=arguments[ot+2];oe.children=he}return{$$typeof:n,type:P.type,key:ue,ref:ce,props:oe,_owner:me}},se.createContext=function(P){return P={$$typeof:f,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:d,_context:P},P.Consumer=P},se.createElement=Z,se.createFactory=function(P){var L=Z.bind(null,P);return L.type=P,L},se.createRef=function(){return{current:null}},se.forwardRef=function(P){return{$$typeof:p,render:P}},se.isValidElement=Ee,se.lazy=function(P){return{$$typeof:v,_payload:{_status:-1,_result:P},_init:Ye}},se.memo=function(P,L){return{$$typeof:g,type:P,compare:L===void 0?null:L}},se.startTransition=function(P){var L=O.transition;O.transition={};try{P()}finally{O.transition=L}},se.unstable_act=H,se.useCallback=function(P,L){return ie.current.useCallback(P,L)},se.useContext=function(P){return ie.current.useContext(P)},se.useDebugValue=function(){},se.useDeferredValue=function(P){return ie.current.useDeferredValue(P)},se.useEffect=function(P,L){return ie.current.useEffect(P,L)},se.useId=function(){return ie.current.useId()},se.useImperativeHandle=function(P,L,re){return ie.current.useImperativeHandle(P,L,re)},se.useInsertionEffect=function(P,L){return ie.current.useInsertionEffect(P,L)},se.useLayoutEffect=function(P,L){return ie.current.useLayoutEffect(P,L)},se.useMemo=function(P,L){return ie.current.useMemo(P,L)},se.useReducer=function(P,L,re){return ie.current.useReducer(P,L,re)},se.useRef=function(P){return ie.current.useRef(P)},se.useState=function(P){return ie.current.useState(P)},se.useSyncExternalStore=function(P,L,re){return ie.current.useSyncExternalStore(P,L,re)},se.useTransition=function(){return ie.current.useTransition()},se.version="18.3.1",se}var ld;function Aa(){return ld||(ld=1,Xl.exports=sv()),Xl.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var ad;function ov(){if(ad)return si;ad=1;var n=Aa(),i=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function f(p,m,g){var v,x={},k=null,N=null;g!==void 0&&(k=""+g),m.key!==void 0&&(k=""+m.key),m.ref!==void 0&&(N=m.ref);for(v in m)l.call(m,v)&&!d.hasOwnProperty(v)&&(x[v]=m[v]);if(p&&p.defaultProps)for(v in m=p.defaultProps,m)x[v]===void 0&&(x[v]=m[v]);return{$$typeof:i,type:p,key:k,ref:N,props:x,_owner:u.current}}return si.Fragment=s,si.jsx=f,si.jsxs=f,si}var ud;function lv(){return ud||(ud=1,Yl.exports=ov()),Yl.exports}var w=lv(),z=Aa(),Ls={},Zl={exports:{}},it={},ql={exports:{}},bl={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var cd;function av(){return cd||(cd=1,(function(n){function i(O,q){var H=O.length;O.push(q);e:for(;0<H;){var P=H-1>>>1,L=O[P];if(0<u(L,q))O[P]=q,O[H]=L,H=P;else break e}}function s(O){return O.length===0?null:O[0]}function l(O){if(O.length===0)return null;var q=O[0],H=O.pop();if(H!==q){O[0]=H;e:for(var P=0,L=O.length,re=L>>>1;P<re;){var oe=2*(P+1)-1,ue=O[oe],ce=oe+1,me=O[ce];if(0>u(ue,H))ce<L&&0>u(me,ue)?(O[P]=me,O[ce]=H,P=ce):(O[P]=ue,O[oe]=H,P=oe);else if(ce<L&&0>u(me,H))O[P]=me,O[ce]=H,P=ce;else break e}}return q}function u(O,q){var H=O.sortIndex-q.sortIndex;return H!==0?H:O.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var m=[],g=[],v=1,x=null,k=3,N=!1,A=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function K(O){for(var q=s(g);q!==null;){if(q.callback===null)l(g);else if(q.startTime<=O)l(g),q.sortIndex=q.expirationTime,i(m,q);else break;q=s(g)}}function X(O){if(M=!1,K(O),!A)if(s(m)!==null)A=!0,Ye(U);else{var q=s(g);q!==null&&ie(X,q.startTime-O)}}function U(O,q){A=!1,M&&(M=!1,F(Z),Z=-1),N=!0;var H=k;try{for(K(q),x=s(m);x!==null&&(!(x.expirationTime>q)||O&&!qe());){var P=x.callback;if(typeof P=="function"){x.callback=null,k=x.priorityLevel;var L=P(x.expirationTime<=q);q=n.unstable_now(),typeof L=="function"?x.callback=L:x===s(m)&&l(m),K(q)}else l(m);x=s(m)}if(x!==null)var re=!0;else{var oe=s(g);oe!==null&&ie(X,oe.startTime-q),re=!1}return re}finally{x=null,k=H,N=!1}}var ee=!1,le=null,Z=-1,ve=5,Ee=-1;function qe(){return!(n.unstable_now()-Ee<ve)}function st(){if(le!==null){var O=n.unstable_now();Ee=O;var q=!0;try{q=le(!0,O)}finally{q?Qe():(ee=!1,le=null)}}else ee=!1}var Qe;if(typeof B=="function")Qe=function(){B(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,St=be.port2;be.port1.onmessage=st,Qe=function(){St.postMessage(null)}}else Qe=function(){D(st,0)};function Ye(O){le=O,ee||(ee=!0,Qe())}function ie(O,q){Z=D(function(){O(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_continueExecution=function(){A||N||(A=!0,Ye(U))},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ve=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_getFirstCallbackNode=function(){return s(m)},n.unstable_next=function(O){switch(k){case 1:case 2:case 3:var q=3;break;default:q=k}var H=k;k=q;try{return O()}finally{k=H}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(O,q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var H=k;k=O;try{return q()}finally{k=H}},n.unstable_scheduleCallback=function(O,q,H){var P=n.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?P+H:P):H=P,O){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=H+L,O={id:v++,callback:q,priorityLevel:O,startTime:H,expirationTime:L,sortIndex:-1},H>P?(O.sortIndex=H,i(g,O),s(m)===null&&O===s(g)&&(M?(F(Z),Z=-1):M=!0,ie(X,H-P))):(O.sortIndex=L,i(m,O),A||N||(A=!0,Ye(U))),O},n.unstable_shouldYield=qe,n.unstable_wrapCallback=function(O){var q=k;return function(){var H=k;k=q;try{return O.apply(this,arguments)}finally{k=H}}}})(bl)),bl}var fd;function uv(){return fd||(fd=1,ql.exports=av()),ql.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 dd;function cv(){if(dd)return it;dd=1;var n=Aa(),i=uv();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,u={};function d(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},x={};function k(e){return m.call(x,e)?!0:m.call(v,e)?!1:g.test(e)?x[e]=!0:(v[e]=!0,!1)}function N(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function A(e,t,r,o){if(t===null||typeof t>"u"||N(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function M(e,t,r,o,a,c,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=h}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){D[e]=new M(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];D[t]=new M(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){D[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){D[e]=new M(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){D[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){D[e]=new M(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){D[e]=new M(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){D[e]=new M(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){D[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)});var F=/[\-:]([a-z])/g;function B(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(F,B);D[t]=new M(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(F,B);D[t]=new M(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(F,B);D[t]=new M(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){D[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)}),D.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){D[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)});function K(e,t,r,o){var a=D.hasOwnProperty(t)?D[t]:null;(a!==null?a.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(A(t,r,a,o)&&(r=null),o||a===null?k(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,o=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var X=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),ee=Symbol.for("react.portal"),le=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),Ee=Symbol.for("react.provider"),qe=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),Qe=Symbol.for("react.suspense"),be=Symbol.for("react.suspense_list"),St=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),O=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=O&&e[O]||e["@@iterator"],typeof e=="function"?e:null)}var H=Object.assign,P;function L(e){if(P===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
|
|
34
|
+
`+P+e}var re=!1;function oe(e,t){if(!e||re)return"";re=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(j){var o=j}Reflect.construct(e,[],t)}else{try{t.call()}catch(j){o=j}e.call(t.prototype)}else{try{throw Error()}catch(j){o=j}e()}}catch(j){if(j&&o&&typeof j.stack=="string"){for(var a=j.stack.split(`
|
|
35
|
+
`),c=o.stack.split(`
|
|
36
|
+
`),h=a.length-1,y=c.length-1;1<=h&&0<=y&&a[h]!==c[y];)y--;for(;1<=h&&0<=y;h--,y--)if(a[h]!==c[y]){if(h!==1||y!==1)do if(h--,y--,0>y||a[h]!==c[y]){var S=`
|
|
37
|
+
`+a[h].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=h&&0<=y);break}}}finally{re=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?L(e):""}function ue(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return""}}function ce(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 le:return"Fragment";case ee:return"Portal";case ve:return"Profiler";case Z:return"StrictMode";case Qe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qe:return(e.displayName||"Context")+".Consumer";case Ee:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case St:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case Ye:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}function me(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 ce(t);case 8:return t===Z?"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 he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Se(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ot(e){var t=Se(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(h){o=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(h){o=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ci(e){e._valueTracker||(e._valueTracker=ot(e))}function fu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=Se(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Pi(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 eo(e,t){var r=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function du(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=he(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hu(e,t){t=t.checked,t!=null&&K(e,"checked",t,!1)}function to(e,t){hu(e,t);var r=he(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?no(e,t.type,r):t.hasOwnProperty("defaultValue")&&no(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pu(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function no(e,t,r){(t!=="number"||Pi(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var wr=Array.isArray;function Fn(e,t,r,o){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&o&&(e[r].defaultSelected=!0)}else{for(r=""+he(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,o&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function ro(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return H({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mu(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(s(92));if(wr(r)){if(1<r.length)throw Error(s(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:he(r)}}function gu(e,t){var r=he(t.value),o=he(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function vu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function yu(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 io(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?yu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ti,xu=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ti=Ti||document.createElement("div"),Ti.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var kr={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},um=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){um.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function wu(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function Su(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,a=wu(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,a):e[r]=a}}var cm=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function so(e,t){if(t){if(cm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function oo(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 lo=null;function ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uo=null,On=null,zn=null;function ku(e){if(e=$r(e)){if(typeof uo!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Yi(t),uo(e.stateNode,e.type,t))}}function Cu(e){On?zn?zn.push(e):zn=[e]:On=e}function Pu(){if(On){var e=On,t=zn;if(zn=On=null,ku(e),t)for(e=0;e<t.length;e++)ku(t[e])}}function Tu(e,t){return e(t)}function Eu(){}var co=!1;function ju(e,t,r){if(co)return e(t,r);co=!0;try{return Tu(e,t,r)}finally{co=!1,(On!==null||zn!==null)&&(Eu(),Pu())}}function Cr(e,t){var r=e.stateNode;if(r===null)return null;var o=Yi(r);if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var fo=!1;if(p)try{var Pr={};Object.defineProperty(Pr,"passive",{get:function(){fo=!0}}),window.addEventListener("test",Pr,Pr),window.removeEventListener("test",Pr,Pr)}catch{fo=!1}function fm(e,t,r,o,a,c,h,y,S){var j=Array.prototype.slice.call(arguments,3);try{t.apply(r,j)}catch(V){this.onError(V)}}var Tr=!1,Ei=null,ji=!1,ho=null,dm={onError:function(e){Tr=!0,Ei=e}};function hm(e,t,r,o,a,c,h,y,S){Tr=!1,Ei=null,fm.apply(dm,arguments)}function pm(e,t,r,o,a,c,h,y,S){if(hm.apply(this,arguments),Tr){if(Tr){var j=Ei;Tr=!1,Ei=null}else throw Error(s(198));ji||(ji=!0,ho=j)}}function yn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Nu(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 Au(e){if(yn(e)!==e)throw Error(s(188))}function mm(e){var t=e.alternate;if(!t){if(t=yn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(a===null)break;var c=a.alternate;if(c===null){if(o=a.return,o!==null){r=o;continue}break}if(a.child===c.child){for(c=a.child;c;){if(c===r)return Au(a),e;if(c===o)return Au(a),t;c=c.sibling}throw Error(s(188))}if(r.return!==o.return)r=a,o=c;else{for(var h=!1,y=a.child;y;){if(y===r){h=!0,r=a,o=c;break}if(y===o){h=!0,o=a,r=c;break}y=y.sibling}if(!h){for(y=c.child;y;){if(y===r){h=!0,r=c,o=a;break}if(y===o){h=!0,o=c,r=a;break}y=y.sibling}if(!h)throw Error(s(189))}}if(r.alternate!==o)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function Mu(e){return e=mm(e),e!==null?Ru(e):null}function Ru(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ru(e);if(t!==null)return t;e=e.sibling}return null}var Du=i.unstable_scheduleCallback,Lu=i.unstable_cancelCallback,gm=i.unstable_shouldYield,vm=i.unstable_requestPaint,Ae=i.unstable_now,ym=i.unstable_getCurrentPriorityLevel,po=i.unstable_ImmediatePriority,Vu=i.unstable_UserBlockingPriority,Ni=i.unstable_NormalPriority,xm=i.unstable_LowPriority,_u=i.unstable_IdlePriority,Ai=null,Mt=null;function wm(e){if(Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(Ai,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:Cm,Sm=Math.log,km=Math.LN2;function Cm(e){return e>>>=0,e===0?32:31-(Sm(e)/km|0)|0}var Mi=64,Ri=4194304;function Er(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 Di(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,a=e.suspendedLanes,c=e.pingedLanes,h=r&268435455;if(h!==0){var y=h&~a;y!==0?o=Er(y):(c&=h,c!==0&&(o=Er(c)))}else h=r&~a,h!==0?o=Er(h):c!==0&&(o=Er(c));if(o===0)return 0;if(t!==0&&t!==o&&(t&a)===0&&(a=o&-o,c=t&-t,a>=c||a===16&&(c&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-kt(t),a=1<<r,o|=e[r],t&=~a;return o}function Pm(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 Tm(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,c=e.pendingLanes;0<c;){var h=31-kt(c),y=1<<h,S=a[h];S===-1?((y&r)===0||(y&o)!==0)&&(a[h]=Pm(y,t)):S<=t&&(e.expiredLanes|=y),c&=~y}}function mo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Iu(){var e=Mi;return Mi<<=1,(Mi&4194240)===0&&(Mi=64),e}function go(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function jr(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=r}function Em(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-kt(r),c=1<<a;t[a]=0,o[a]=-1,e[a]=-1,r&=~c}}function vo(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-kt(r),a=1<<o;a&t|e[o]&t&&(e[o]|=t),r&=~a}}var pe=0;function Fu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ou,yo,zu,Bu,Uu,xo=!1,Li=[],Yt=null,Xt=null,Zt=null,Nr=new Map,Ar=new Map,qt=[],jm="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 Wu(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Xt=null;break;case"mouseover":case"mouseout":Zt=null;break;case"pointerover":case"pointerout":Nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ar.delete(t.pointerId)}}function Mr(e,t,r,o,a,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:c,targetContainers:[a]},t!==null&&(t=$r(t),t!==null&&yo(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Nm(e,t,r,o,a){switch(t){case"focusin":return Yt=Mr(Yt,e,t,r,o,a),!0;case"dragenter":return Xt=Mr(Xt,e,t,r,o,a),!0;case"mouseover":return Zt=Mr(Zt,e,t,r,o,a),!0;case"pointerover":var c=a.pointerId;return Nr.set(c,Mr(Nr.get(c)||null,e,t,r,o,a)),!0;case"gotpointercapture":return c=a.pointerId,Ar.set(c,Mr(Ar.get(c)||null,e,t,r,o,a)),!0}return!1}function Hu(e){var t=xn(e.target);if(t!==null){var r=yn(t);if(r!==null){if(t=r.tag,t===13){if(t=Nu(r),t!==null){e.blockedOn=t,Uu(e.priority,function(){zu(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=So(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);lo=o,r.target.dispatchEvent(o),lo=null}else return t=$r(r),t!==null&&yo(t),e.blockedOn=r,!1;t.shift()}return!0}function $u(e,t,r){Vi(e)&&r.delete(t)}function Am(){xo=!1,Yt!==null&&Vi(Yt)&&(Yt=null),Xt!==null&&Vi(Xt)&&(Xt=null),Zt!==null&&Vi(Zt)&&(Zt=null),Nr.forEach($u),Ar.forEach($u)}function Rr(e,t){e.blockedOn===t&&(e.blockedOn=null,xo||(xo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Am)))}function Dr(e){function t(a){return Rr(a,e)}if(0<Li.length){Rr(Li[0],e);for(var r=1;r<Li.length;r++){var o=Li[r];o.blockedOn===e&&(o.blockedOn=null)}}for(Yt!==null&&Rr(Yt,e),Xt!==null&&Rr(Xt,e),Zt!==null&&Rr(Zt,e),Nr.forEach(t),Ar.forEach(t),r=0;r<qt.length;r++)o=qt[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<qt.length&&(r=qt[0],r.blockedOn===null);)Hu(r),r.blockedOn===null&&qt.shift()}var Bn=X.ReactCurrentBatchConfig,_i=!0;function Mm(e,t,r,o){var a=pe,c=Bn.transition;Bn.transition=null;try{pe=1,wo(e,t,r,o)}finally{pe=a,Bn.transition=c}}function Rm(e,t,r,o){var a=pe,c=Bn.transition;Bn.transition=null;try{pe=4,wo(e,t,r,o)}finally{pe=a,Bn.transition=c}}function wo(e,t,r,o){if(_i){var a=So(e,t,r,o);if(a===null)Oo(e,t,o,Ii,r),Wu(e,o);else if(Nm(a,e,t,r,o))o.stopPropagation();else if(Wu(e,o),t&4&&-1<jm.indexOf(e)){for(;a!==null;){var c=$r(a);if(c!==null&&Ou(c),c=So(e,t,r,o),c===null&&Oo(e,t,o,Ii,r),c===a)break;a=c}a!==null&&o.stopPropagation()}else Oo(e,t,o,null,r)}}var Ii=null;function So(e,t,r,o){if(Ii=null,e=ao(o),e=xn(e),e!==null)if(t=yn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Nu(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ii=e,null}function Ku(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(ym()){case po:return 1;case Vu:return 4;case Ni:case xm:return 16;case _u:return 536870912;default:return 16}default:return 16}}var bt=null,ko=null,Fi=null;function Gu(){if(Fi)return Fi;var e,t=ko,r=t.length,o,a="value"in bt?bt.value:bt.textContent,c=a.length;for(e=0;e<r&&t[e]===a[e];e++);var h=r-e;for(o=1;o<=h&&t[r-o]===a[c-o];o++);return Fi=a.slice(e,1<o?1-o:void 0)}function Oi(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 zi(){return!0}function Qu(){return!1}function lt(e){function t(r,o,a,c,h){this._reactName=r,this._targetInst=a,this.type=o,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(r=e[y],this[y]=r?r(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?zi:Qu,this.isPropagationStopped=Qu,this}return H(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=zi)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=zi)},persist:function(){},isPersistent:zi}),t}var Un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Co=lt(Un),Lr=H({},Un,{view:0,detail:0}),Dm=lt(Lr),Po,To,Vr,Bi=H({},Lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jo,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!==Vr&&(Vr&&e.type==="mousemove"?(Po=e.screenX-Vr.screenX,To=e.screenY-Vr.screenY):To=Po=0,Vr=e),Po)},movementY:function(e){return"movementY"in e?e.movementY:To}}),Yu=lt(Bi),Lm=H({},Bi,{dataTransfer:0}),Vm=lt(Lm),_m=H({},Lr,{relatedTarget:0}),Eo=lt(_m),Im=H({},Un,{animationName:0,elapsedTime:0,pseudoElement:0}),Fm=lt(Im),Om=H({},Un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zm=lt(Om),Bm=H({},Un,{data:0}),Xu=lt(Bm),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wm={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"},Hm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $m(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hm[e])?!!t[e]:!1}function jo(){return $m}var Km=H({},Lr,{key:function(e){if(e.key){var t=Um[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jo,charCode:function(e){return e.type==="keypress"?Oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gm=lt(Km),Qm=H({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zu=lt(Qm),Ym=H({},Lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jo}),Xm=lt(Ym),Zm=H({},Un,{propertyName:0,elapsedTime:0,pseudoElement:0}),qm=lt(Zm),bm=H({},Bi,{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}),Jm=lt(bm),eg=[9,13,27,32],No=p&&"CompositionEvent"in window,_r=null;p&&"documentMode"in document&&(_r=document.documentMode);var tg=p&&"TextEvent"in window&&!_r,qu=p&&(!No||_r&&8<_r&&11>=_r),bu=" ",Ju=!1;function ec(e,t){switch(e){case"keyup":return eg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wn=!1;function ng(e,t){switch(e){case"compositionend":return tc(t);case"keypress":return t.which!==32?null:(Ju=!0,bu);case"textInput":return e=t.data,e===bu&&Ju?null:e;default:return null}}function rg(e,t){if(Wn)return e==="compositionend"||!No&&ec(e,t)?(e=Gu(),Fi=ko=bt=null,Wn=!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 qu&&t.locale!=="ko"?null:t.data;default:return null}}var ig={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 nc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ig[e.type]:t==="textarea"}function rc(e,t,r,o){Cu(o),t=Ki(t,"onChange"),0<t.length&&(r=new Co("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Ir=null,Fr=null;function sg(e){Sc(e,0)}function Ui(e){var t=Qn(e);if(fu(t))return e}function og(e,t){if(e==="change")return t}var ic=!1;if(p){var Ao;if(p){var Mo="oninput"in document;if(!Mo){var sc=document.createElement("div");sc.setAttribute("oninput","return;"),Mo=typeof sc.oninput=="function"}Ao=Mo}else Ao=!1;ic=Ao&&(!document.documentMode||9<document.documentMode)}function oc(){Ir&&(Ir.detachEvent("onpropertychange",lc),Fr=Ir=null)}function lc(e){if(e.propertyName==="value"&&Ui(Fr)){var t=[];rc(t,Fr,e,ao(e)),ju(sg,t)}}function lg(e,t,r){e==="focusin"?(oc(),Ir=t,Fr=r,Ir.attachEvent("onpropertychange",lc)):e==="focusout"&&oc()}function ag(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ui(Fr)}function ug(e,t){if(e==="click")return Ui(t)}function cg(e,t){if(e==="input"||e==="change")return Ui(t)}function fg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:fg;function Or(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var a=r[o];if(!m.call(t,a)||!Ct(e[a],t[a]))return!1}return!0}function ac(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uc(e,t){var r=ac(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ac(r)}}function cc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fc(){for(var e=window,t=Pi();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Pi(e.document)}return t}function Ro(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 dg(e){var t=fc(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&cc(r.ownerDocument.documentElement,r)){if(o!==null&&Ro(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,c=Math.min(o.start,a);o=o.end===void 0?c:Math.min(o.end,a),!e.extend&&c>o&&(a=o,o=c,c=a),a=uc(r,c);var h=uc(r,o);a&&h&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),c>o?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hg=p&&"documentMode"in document&&11>=document.documentMode,Hn=null,Do=null,zr=null,Lo=!1;function dc(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Lo||Hn==null||Hn!==Pi(o)||(o=Hn,"selectionStart"in o&&Ro(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),zr&&Or(zr,o)||(zr=o,o=Ki(Do,"onSelect"),0<o.length&&(t=new Co("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Hn)))}function Wi(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var $n={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionend:Wi("Transition","TransitionEnd")},Vo={},hc={};p&&(hc=document.createElement("div").style,"AnimationEvent"in window||(delete $n.animationend.animation,delete $n.animationiteration.animation,delete $n.animationstart.animation),"TransitionEvent"in window||delete $n.transitionend.transition);function Hi(e){if(Vo[e])return Vo[e];if(!$n[e])return e;var t=$n[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in hc)return Vo[e]=t[r];return e}var pc=Hi("animationend"),mc=Hi("animationiteration"),gc=Hi("animationstart"),vc=Hi("transitionend"),yc=new Map,xc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Jt(e,t){yc.set(e,t),d(t,[e])}for(var _o=0;_o<xc.length;_o++){var Io=xc[_o],pg=Io.toLowerCase(),mg=Io[0].toUpperCase()+Io.slice(1);Jt(pg,"on"+mg)}Jt(pc,"onAnimationEnd"),Jt(mc,"onAnimationIteration"),Jt(gc,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(vc,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="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(" "),gg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Br));function wc(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,pm(o,t,void 0,e),e.currentTarget=null}function Sc(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],a=o.event;o=o.listeners;e:{var c=void 0;if(t)for(var h=o.length-1;0<=h;h--){var y=o[h],S=y.instance,j=y.currentTarget;if(y=y.listener,S!==c&&a.isPropagationStopped())break e;wc(a,y,j),c=S}else for(h=0;h<o.length;h++){if(y=o[h],S=y.instance,j=y.currentTarget,y=y.listener,S!==c&&a.isPropagationStopped())break e;wc(a,y,j),c=S}}}if(ji)throw e=ho,ji=!1,ho=null,e}function ye(e,t){var r=t[$o];r===void 0&&(r=t[$o]=new Set);var o=e+"__bubble";r.has(o)||(kc(t,e,2,!1),r.add(o))}function Fo(e,t,r){var o=0;t&&(o|=4),kc(r,e,o,t)}var $i="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[$i]){e[$i]=!0,l.forEach(function(r){r!=="selectionchange"&&(gg.has(r)||Fo(r,!1,e),Fo(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$i]||(t[$i]=!0,Fo("selectionchange",!1,t))}}function kc(e,t,r,o){switch(Ku(t)){case 1:var a=Mm;break;case 4:a=Rm;break;default:a=wo}r=a.bind(null,t,r,e),a=void 0,!fo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),o?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Oo(e,t,r,o,a){var c=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var h=o.tag;if(h===3||h===4){var y=o.stateNode.containerInfo;if(y===a||y.nodeType===8&&y.parentNode===a)break;if(h===4)for(h=o.return;h!==null;){var S=h.tag;if((S===3||S===4)&&(S=h.stateNode.containerInfo,S===a||S.nodeType===8&&S.parentNode===a))return;h=h.return}for(;y!==null;){if(h=xn(y),h===null)return;if(S=h.tag,S===5||S===6){o=c=h;continue e}y=y.parentNode}}o=o.return}ju(function(){var j=c,V=ao(r),_=[];e:{var R=yc.get(e);if(R!==void 0){var W=Co,G=e;switch(e){case"keypress":if(Oi(r)===0)break e;case"keydown":case"keyup":W=Gm;break;case"focusin":G="focus",W=Eo;break;case"focusout":G="blur",W=Eo;break;case"beforeblur":case"afterblur":W=Eo;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=Yu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=Vm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=Xm;break;case pc:case mc:case gc:W=Fm;break;case vc:W=qm;break;case"scroll":W=Dm;break;case"wheel":W=Jm;break;case"copy":case"cut":case"paste":W=zm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=Zu}var Q=(t&4)!==0,Me=!Q&&e==="scroll",T=Q?R!==null?R+"Capture":null:R;Q=[];for(var C=j,E;C!==null;){E=C;var I=E.stateNode;if(E.tag===5&&I!==null&&(E=I,T!==null&&(I=Cr(C,T),I!=null&&Q.push(Wr(C,I,E)))),Me)break;C=C.return}0<Q.length&&(R=new W(R,G,null,r,V),_.push({event:R,listeners:Q}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",R&&r!==lo&&(G=r.relatedTarget||r.fromElement)&&(xn(G)||G[Ft]))break e;if((W||R)&&(R=V.window===V?V:(R=V.ownerDocument)?R.defaultView||R.parentWindow:window,W?(G=r.relatedTarget||r.toElement,W=j,G=G?xn(G):null,G!==null&&(Me=yn(G),G!==Me||G.tag!==5&&G.tag!==6)&&(G=null)):(W=null,G=j),W!==G)){if(Q=Yu,I="onMouseLeave",T="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(Q=Zu,I="onPointerLeave",T="onPointerEnter",C="pointer"),Me=W==null?R:Qn(W),E=G==null?R:Qn(G),R=new Q(I,C+"leave",W,r,V),R.target=Me,R.relatedTarget=E,I=null,xn(V)===j&&(Q=new Q(T,C+"enter",G,r,V),Q.target=E,Q.relatedTarget=Me,I=Q),Me=I,W&&G)t:{for(Q=W,T=G,C=0,E=Q;E;E=Kn(E))C++;for(E=0,I=T;I;I=Kn(I))E++;for(;0<C-E;)Q=Kn(Q),C--;for(;0<E-C;)T=Kn(T),E--;for(;C--;){if(Q===T||T!==null&&Q===T.alternate)break t;Q=Kn(Q),T=Kn(T)}Q=null}else Q=null;W!==null&&Cc(_,R,W,Q,!1),G!==null&&Me!==null&&Cc(_,Me,G,Q,!0)}}e:{if(R=j?Qn(j):window,W=R.nodeName&&R.nodeName.toLowerCase(),W==="select"||W==="input"&&R.type==="file")var Y=og;else if(nc(R))if(ic)Y=cg;else{Y=ag;var b=lg}else(W=R.nodeName)&&W.toLowerCase()==="input"&&(R.type==="checkbox"||R.type==="radio")&&(Y=ug);if(Y&&(Y=Y(e,j))){rc(_,Y,r,V);break e}b&&b(e,R,j),e==="focusout"&&(b=R._wrapperState)&&b.controlled&&R.type==="number"&&no(R,"number",R.value)}switch(b=j?Qn(j):window,e){case"focusin":(nc(b)||b.contentEditable==="true")&&(Hn=b,Do=j,zr=null);break;case"focusout":zr=Do=Hn=null;break;case"mousedown":Lo=!0;break;case"contextmenu":case"mouseup":case"dragend":Lo=!1,dc(_,r,V);break;case"selectionchange":if(hg)break;case"keydown":case"keyup":dc(_,r,V)}var J;if(No)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else Wn?ec(e,r)&&(ne="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ne="onCompositionStart");ne&&(qu&&r.locale!=="ko"&&(Wn||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&Wn&&(J=Gu()):(bt=V,ko="value"in bt?bt.value:bt.textContent,Wn=!0)),b=Ki(j,ne),0<b.length&&(ne=new Xu(ne,e,null,r,V),_.push({event:ne,listeners:b}),J?ne.data=J:(J=tc(r),J!==null&&(ne.data=J)))),(J=tg?ng(e,r):rg(e,r))&&(j=Ki(j,"onBeforeInput"),0<j.length&&(V=new Xu("onBeforeInput","beforeinput",null,r,V),_.push({event:V,listeners:j}),V.data=J))}Sc(_,t)})}function Wr(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ki(e,t){for(var r=t+"Capture",o=[];e!==null;){var a=e,c=a.stateNode;a.tag===5&&c!==null&&(a=c,c=Cr(e,r),c!=null&&o.unshift(Wr(e,c,a)),c=Cr(e,t),c!=null&&o.push(Wr(e,c,a))),e=e.return}return o}function Kn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cc(e,t,r,o,a){for(var c=t._reactName,h=[];r!==null&&r!==o;){var y=r,S=y.alternate,j=y.stateNode;if(S!==null&&S===o)break;y.tag===5&&j!==null&&(y=j,a?(S=Cr(r,c),S!=null&&h.unshift(Wr(r,S,y))):a||(S=Cr(r,c),S!=null&&h.push(Wr(r,S,y)))),r=r.return}h.length!==0&&e.push({event:t,listeners:h})}var vg=/\r\n?/g,yg=/\u0000|\uFFFD/g;function Pc(e){return(typeof e=="string"?e:""+e).replace(vg,`
|
|
38
|
+
`).replace(yg,"")}function Gi(e,t,r){if(t=Pc(t),Pc(e)!==t&&r)throw Error(s(425))}function Qi(){}var zo=null,Bo=null;function Uo(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 Wo=typeof setTimeout=="function"?setTimeout:void 0,xg=typeof clearTimeout=="function"?clearTimeout:void 0,Tc=typeof Promise=="function"?Promise:void 0,wg=typeof queueMicrotask=="function"?queueMicrotask:typeof Tc<"u"?function(e){return Tc.resolve(null).then(e).catch(Sg)}:Wo;function Sg(e){setTimeout(function(){throw e})}function Ho(e,t){var r=t,o=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(o===0){e.removeChild(a),Dr(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=a}while(r);Dr(t)}function en(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 Ec(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Gn=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Gn,Hr="__reactProps$"+Gn,Ft="__reactContainer$"+Gn,$o="__reactEvents$"+Gn,kg="__reactListeners$"+Gn,Cg="__reactHandles$"+Gn;function xn(e){var t=e[Rt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ft]||r[Rt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ec(e);e!==null;){if(r=e[Rt])return r;e=Ec(e)}return t}e=r,r=e.parentNode}return null}function $r(e){return e=e[Rt]||e[Ft],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function Yi(e){return e[Hr]||null}var Ko=[],Yn=-1;function tn(e){return{current:e}}function xe(e){0>Yn||(e.current=Ko[Yn],Ko[Yn]=null,Yn--)}function ge(e,t){Yn++,Ko[Yn]=e.current,e.current=t}var nn={},Ue=tn(nn),Je=tn(!1),wn=nn;function Xn(e,t){var r=e.type.contextTypes;if(!r)return nn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a={},c;for(c in r)a[c]=t[c];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function et(e){return e=e.childContextTypes,e!=null}function Xi(){xe(Je),xe(Ue)}function jc(e,t,r){if(Ue.current!==nn)throw Error(s(168));ge(Ue,t),ge(Je,r)}function Nc(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var a in o)if(!(a in t))throw Error(s(108,me(e)||"Unknown",a));return H({},r,o)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,wn=Ue.current,ge(Ue,e),ge(Je,Je.current),!0}function Ac(e,t,r){var o=e.stateNode;if(!o)throw Error(s(169));r?(e=Nc(e,t,wn),o.__reactInternalMemoizedMergedChildContext=e,xe(Je),xe(Ue),ge(Ue,e)):xe(Je),ge(Je,r)}var Ot=null,qi=!1,Go=!1;function Mc(e){Ot===null?Ot=[e]:Ot.push(e)}function Pg(e){qi=!0,Mc(e)}function rn(){if(!Go&&Ot!==null){Go=!0;var e=0,t=pe;try{var r=Ot;for(pe=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}Ot=null,qi=!1}catch(a){throw Ot!==null&&(Ot=Ot.slice(e+1)),Du(po,rn),a}finally{pe=t,Go=!1}}return null}var Zn=[],qn=0,bi=null,Ji=0,ht=[],pt=0,Sn=null,zt=1,Bt="";function kn(e,t){Zn[qn++]=Ji,Zn[qn++]=bi,bi=e,Ji=t}function Rc(e,t,r){ht[pt++]=zt,ht[pt++]=Bt,ht[pt++]=Sn,Sn=e;var o=zt;e=Bt;var a=32-kt(o)-1;o&=~(1<<a),r+=1;var c=32-kt(t)+a;if(30<c){var h=a-a%5;c=(o&(1<<h)-1).toString(32),o>>=h,a-=h,zt=1<<32-kt(t)+a|r<<a|o,Bt=c+e}else zt=1<<c|r<<a|o,Bt=e}function Qo(e){e.return!==null&&(kn(e,1),Rc(e,1,0))}function Yo(e){for(;e===bi;)bi=Zn[--qn],Zn[qn]=null,Ji=Zn[--qn],Zn[qn]=null;for(;e===Sn;)Sn=ht[--pt],ht[pt]=null,Bt=ht[--pt],ht[pt]=null,zt=ht[--pt],ht[pt]=null}var at=null,ut=null,ke=!1,Pt=null;function Dc(e,t){var r=yt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Lc(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,at=e,ut=en(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,at=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Sn!==null?{id:zt,overflow:Bt}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=yt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,at=e,ut=null,!0):!1;default:return!1}}function Xo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zo(e){if(ke){var t=ut;if(t){var r=t;if(!Lc(e,t)){if(Xo(e))throw Error(s(418));t=en(r.nextSibling);var o=at;t&&Lc(e,t)?Dc(o,r):(e.flags=e.flags&-4097|2,ke=!1,at=e)}}else{if(Xo(e))throw Error(s(418));e.flags=e.flags&-4097|2,ke=!1,at=e}}}function Vc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function es(e){if(e!==at)return!1;if(!ke)return Vc(e),ke=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Uo(e.type,e.memoizedProps)),t&&(t=ut)){if(Xo(e))throw _c(),Error(s(418));for(;t;)Dc(e,t),t=en(t.nextSibling)}if(Vc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ut=en(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=at?en(e.stateNode.nextSibling):null;return!0}function _c(){for(var e=ut;e;)e=en(e.nextSibling)}function bn(){ut=at=null,ke=!1}function qo(e){Pt===null?Pt=[e]:Pt.push(e)}var Tg=X.ReactCurrentBatchConfig;function Kr(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(s(309));var o=r.stateNode}if(!o)throw Error(s(147,e));var a=o,c=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c?t.ref:(t=function(h){var y=a.refs;h===null?delete y[c]:y[c]=h},t._stringRef=c,t)}if(typeof e!="string")throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}function ts(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ic(e){var t=e._init;return t(e._payload)}function Fc(e){function t(T,C){if(e){var E=T.deletions;E===null?(T.deletions=[C],T.flags|=16):E.push(C)}}function r(T,C){if(!e)return null;for(;C!==null;)t(T,C),C=C.sibling;return null}function o(T,C){for(T=new Map;C!==null;)C.key!==null?T.set(C.key,C):T.set(C.index,C),C=C.sibling;return T}function a(T,C){return T=dn(T,C),T.index=0,T.sibling=null,T}function c(T,C,E){return T.index=E,e?(E=T.alternate,E!==null?(E=E.index,E<C?(T.flags|=2,C):E):(T.flags|=2,C)):(T.flags|=1048576,C)}function h(T){return e&&T.alternate===null&&(T.flags|=2),T}function y(T,C,E,I){return C===null||C.tag!==6?(C=Wl(E,T.mode,I),C.return=T,C):(C=a(C,E),C.return=T,C)}function S(T,C,E,I){var Y=E.type;return Y===le?V(T,C,E.props.children,I,E.key):C!==null&&(C.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Ye&&Ic(Y)===C.type)?(I=a(C,E.props),I.ref=Kr(T,C,E),I.return=T,I):(I=Ts(E.type,E.key,E.props,null,T.mode,I),I.ref=Kr(T,C,E),I.return=T,I)}function j(T,C,E,I){return C===null||C.tag!==4||C.stateNode.containerInfo!==E.containerInfo||C.stateNode.implementation!==E.implementation?(C=Hl(E,T.mode,I),C.return=T,C):(C=a(C,E.children||[]),C.return=T,C)}function V(T,C,E,I,Y){return C===null||C.tag!==7?(C=Mn(E,T.mode,I,Y),C.return=T,C):(C=a(C,E),C.return=T,C)}function _(T,C,E){if(typeof C=="string"&&C!==""||typeof C=="number")return C=Wl(""+C,T.mode,E),C.return=T,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case U:return E=Ts(C.type,C.key,C.props,null,T.mode,E),E.ref=Kr(T,null,C),E.return=T,E;case ee:return C=Hl(C,T.mode,E),C.return=T,C;case Ye:var I=C._init;return _(T,I(C._payload),E)}if(wr(C)||q(C))return C=Mn(C,T.mode,E,null),C.return=T,C;ts(T,C)}return null}function R(T,C,E,I){var Y=C!==null?C.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return Y!==null?null:y(T,C,""+E,I);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case U:return E.key===Y?S(T,C,E,I):null;case ee:return E.key===Y?j(T,C,E,I):null;case Ye:return Y=E._init,R(T,C,Y(E._payload),I)}if(wr(E)||q(E))return Y!==null?null:V(T,C,E,I,null);ts(T,E)}return null}function W(T,C,E,I,Y){if(typeof I=="string"&&I!==""||typeof I=="number")return T=T.get(E)||null,y(C,T,""+I,Y);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case U:return T=T.get(I.key===null?E:I.key)||null,S(C,T,I,Y);case ee:return T=T.get(I.key===null?E:I.key)||null,j(C,T,I,Y);case Ye:var b=I._init;return W(T,C,E,b(I._payload),Y)}if(wr(I)||q(I))return T=T.get(E)||null,V(C,T,I,Y,null);ts(C,I)}return null}function G(T,C,E,I){for(var Y=null,b=null,J=C,ne=C=0,Fe=null;J!==null&&ne<E.length;ne++){J.index>ne?(Fe=J,J=null):Fe=J.sibling;var fe=R(T,J,E[ne],I);if(fe===null){J===null&&(J=Fe);break}e&&J&&fe.alternate===null&&t(T,J),C=c(fe,C,ne),b===null?Y=fe:b.sibling=fe,b=fe,J=Fe}if(ne===E.length)return r(T,J),ke&&kn(T,ne),Y;if(J===null){for(;ne<E.length;ne++)J=_(T,E[ne],I),J!==null&&(C=c(J,C,ne),b===null?Y=J:b.sibling=J,b=J);return ke&&kn(T,ne),Y}for(J=o(T,J);ne<E.length;ne++)Fe=W(J,T,ne,E[ne],I),Fe!==null&&(e&&Fe.alternate!==null&&J.delete(Fe.key===null?ne:Fe.key),C=c(Fe,C,ne),b===null?Y=Fe:b.sibling=Fe,b=Fe);return e&&J.forEach(function(hn){return t(T,hn)}),ke&&kn(T,ne),Y}function Q(T,C,E,I){var Y=q(E);if(typeof Y!="function")throw Error(s(150));if(E=Y.call(E),E==null)throw Error(s(151));for(var b=Y=null,J=C,ne=C=0,Fe=null,fe=E.next();J!==null&&!fe.done;ne++,fe=E.next()){J.index>ne?(Fe=J,J=null):Fe=J.sibling;var hn=R(T,J,fe.value,I);if(hn===null){J===null&&(J=Fe);break}e&&J&&hn.alternate===null&&t(T,J),C=c(hn,C,ne),b===null?Y=hn:b.sibling=hn,b=hn,J=Fe}if(fe.done)return r(T,J),ke&&kn(T,ne),Y;if(J===null){for(;!fe.done;ne++,fe=E.next())fe=_(T,fe.value,I),fe!==null&&(C=c(fe,C,ne),b===null?Y=fe:b.sibling=fe,b=fe);return ke&&kn(T,ne),Y}for(J=o(T,J);!fe.done;ne++,fe=E.next())fe=W(J,T,ne,fe.value,I),fe!==null&&(e&&fe.alternate!==null&&J.delete(fe.key===null?ne:fe.key),C=c(fe,C,ne),b===null?Y=fe:b.sibling=fe,b=fe);return e&&J.forEach(function(iv){return t(T,iv)}),ke&&kn(T,ne),Y}function Me(T,C,E,I){if(typeof E=="object"&&E!==null&&E.type===le&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case U:e:{for(var Y=E.key,b=C;b!==null;){if(b.key===Y){if(Y=E.type,Y===le){if(b.tag===7){r(T,b.sibling),C=a(b,E.props.children),C.return=T,T=C;break e}}else if(b.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Ye&&Ic(Y)===b.type){r(T,b.sibling),C=a(b,E.props),C.ref=Kr(T,b,E),C.return=T,T=C;break e}r(T,b);break}else t(T,b);b=b.sibling}E.type===le?(C=Mn(E.props.children,T.mode,I,E.key),C.return=T,T=C):(I=Ts(E.type,E.key,E.props,null,T.mode,I),I.ref=Kr(T,C,E),I.return=T,T=I)}return h(T);case ee:e:{for(b=E.key;C!==null;){if(C.key===b)if(C.tag===4&&C.stateNode.containerInfo===E.containerInfo&&C.stateNode.implementation===E.implementation){r(T,C.sibling),C=a(C,E.children||[]),C.return=T,T=C;break e}else{r(T,C);break}else t(T,C);C=C.sibling}C=Hl(E,T.mode,I),C.return=T,T=C}return h(T);case Ye:return b=E._init,Me(T,C,b(E._payload),I)}if(wr(E))return G(T,C,E,I);if(q(E))return Q(T,C,E,I);ts(T,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,C!==null&&C.tag===6?(r(T,C.sibling),C=a(C,E),C.return=T,T=C):(r(T,C),C=Wl(E,T.mode,I),C.return=T,T=C),h(T)):r(T,C)}return Me}var Jn=Fc(!0),Oc=Fc(!1),ns=tn(null),rs=null,er=null,bo=null;function Jo(){bo=er=rs=null}function el(e){var t=ns.current;xe(ns),e._currentValue=t}function tl(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function tr(e,t){rs=e,bo=er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(tt=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(bo!==e)if(e={context:e,memoizedValue:t,next:null},er===null){if(rs===null)throw Error(s(308));er=e,rs.dependencies={lanes:0,firstContext:e}}else er=er.next=e;return t}var Cn=null;function nl(e){Cn===null?Cn=[e]:Cn.push(e)}function zc(e,t,r,o){var a=t.interleaved;return a===null?(r.next=r,nl(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ut(e,o)}function Ut(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var sn=!1;function rl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ae&2)!==0){var a=o.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),o.pending=t,Ut(e,r)}return a=o.interleaved,a===null?(t.next=t,nl(o)):(t.next=a.next,a.next=t),o.interleaved=t,Ut(e,r)}function is(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,vo(e,r)}}function Uc(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var a=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var h={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};c===null?a=c=h:c=c.next=h,r=r.next}while(r!==null);c===null?a=c=t:c=c.next=t}else a=c=t;r={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:c,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ss(e,t,r,o){var a=e.updateQueue;sn=!1;var c=a.firstBaseUpdate,h=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var S=y,j=S.next;S.next=null,h===null?c=j:h.next=j,h=S;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==h&&(y===null?V.firstBaseUpdate=j:y.next=j,V.lastBaseUpdate=S))}if(c!==null){var _=a.baseState;h=0,V=j=S=null,y=c;do{var R=y.lane,W=y.eventTime;if((o&R)===R){V!==null&&(V=V.next={eventTime:W,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var G=e,Q=y;switch(R=t,W=r,Q.tag){case 1:if(G=Q.payload,typeof G=="function"){_=G.call(W,_,R);break e}_=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=Q.payload,R=typeof G=="function"?G.call(W,_,R):G,R==null)break e;_=H({},_,R);break e;case 2:sn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,R=a.effects,R===null?a.effects=[y]:R.push(y))}else W={eventTime:W,lane:R,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(j=V=W,S=_):V=V.next=W,h|=R;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;R=y,y=R.next,R.next=null,a.lastBaseUpdate=R,a.shared.pending=null}}while(!0);if(V===null&&(S=_),a.baseState=S,a.firstBaseUpdate=j,a.lastBaseUpdate=V,t=a.shared.interleaved,t!==null){a=t;do h|=a.lane,a=a.next;while(a!==t)}else c===null&&(a.shared.lanes=0);En|=h,e.lanes=h,e.memoizedState=_}}function Wc(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(a!==null){if(o.callback=null,o=r,typeof a!="function")throw Error(s(191,a));a.call(o)}}}var Gr={},Dt=tn(Gr),Qr=tn(Gr),Yr=tn(Gr);function Pn(e){if(e===Gr)throw Error(s(174));return e}function il(e,t){switch(ge(Yr,t),ge(Qr,e),ge(Dt,Gr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:io(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=io(t,e)}xe(Dt),ge(Dt,t)}function nr(){xe(Dt),xe(Qr),xe(Yr)}function Hc(e){Pn(Yr.current);var t=Pn(Dt.current),r=io(t,e.type);t!==r&&(ge(Qr,e),ge(Dt,r))}function sl(e){Qr.current===e&&(xe(Dt),xe(Qr))}var Ce=tn(0);function os(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ol=[];function ll(){for(var e=0;e<ol.length;e++)ol[e]._workInProgressVersionPrimary=null;ol.length=0}var ls=X.ReactCurrentDispatcher,al=X.ReactCurrentBatchConfig,Tn=0,Pe=null,Le=null,_e=null,as=!1,Xr=!1,Zr=0,Eg=0;function We(){throw Error(s(321))}function ul(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ct(e[r],t[r]))return!1;return!0}function cl(e,t,r,o,a,c){if(Tn=c,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ls.current=e===null||e.memoizedState===null?Mg:Rg,e=r(o,a),Xr){c=0;do{if(Xr=!1,Zr=0,25<=c)throw Error(s(301));c+=1,_e=Le=null,t.updateQueue=null,ls.current=Dg,e=r(o,a)}while(Xr)}if(ls.current=fs,t=Le!==null&&Le.next!==null,Tn=0,_e=Le=Pe=null,as=!1,t)throw Error(s(300));return e}function fl(){var e=Zr!==0;return Zr=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?Pe.memoizedState=_e=e:_e=_e.next=e,_e}function gt(){if(Le===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=_e===null?Pe.memoizedState:_e.next;if(t!==null)_e=t,Le=e;else{if(e===null)throw Error(s(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},_e===null?Pe.memoizedState=_e=e:_e=_e.next=e}return _e}function qr(e,t){return typeof t=="function"?t(e):t}function dl(e){var t=gt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var o=Le,a=o.baseQueue,c=r.pending;if(c!==null){if(a!==null){var h=a.next;a.next=c.next,c.next=h}o.baseQueue=a=c,r.pending=null}if(a!==null){c=a.next,o=o.baseState;var y=h=null,S=null,j=c;do{var V=j.lane;if((Tn&V)===V)S!==null&&(S=S.next={lane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),o=j.hasEagerState?j.eagerState:e(o,j.action);else{var _={lane:V,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};S===null?(y=S=_,h=o):S=S.next=_,Pe.lanes|=V,En|=V}j=j.next}while(j!==null&&j!==c);S===null?h=o:S.next=y,Ct(o,t.memoizedState)||(tt=!0),t.memoizedState=o,t.baseState=h,t.baseQueue=S,r.lastRenderedState=o}if(e=r.interleaved,e!==null){a=e;do c=a.lane,Pe.lanes|=c,En|=c,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function hl(e){var t=gt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,c=t.memoizedState;if(a!==null){r.pending=null;var h=a=a.next;do c=e(c,h.action),h=h.next;while(h!==a);Ct(c,t.memoizedState)||(tt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,o]}function $c(){}function Kc(e,t){var r=Pe,o=gt(),a=t(),c=!Ct(o.memoizedState,a);if(c&&(o.memoizedState=a,tt=!0),o=o.queue,pl(Yc.bind(null,r,o,e),[e]),o.getSnapshot!==t||c||_e!==null&&_e.memoizedState.tag&1){if(r.flags|=2048,br(9,Qc.bind(null,r,o,a,t),void 0,null),Ie===null)throw Error(s(349));(Tn&30)!==0||Gc(r,t,a)}return a}function Gc(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Qc(e,t,r,o){t.value=r,t.getSnapshot=o,Xc(t)&&Zc(e)}function Yc(e,t,r){return r(function(){Xc(t)&&Zc(e)})}function Xc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ct(e,r)}catch{return!0}}function Zc(e){var t=Ut(e,1);t!==null&&Nt(t,e,1,-1)}function qc(e){var t=Lt();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=Ag.bind(null,Pe,e),[t.memoizedState,e]}function br(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function bc(){return gt().memoizedState}function us(e,t,r,o){var a=Lt();Pe.flags|=e,a.memoizedState=br(1|t,r,void 0,o===void 0?null:o)}function cs(e,t,r,o){var a=gt();o=o===void 0?null:o;var c=void 0;if(Le!==null){var h=Le.memoizedState;if(c=h.destroy,o!==null&&ul(o,h.deps)){a.memoizedState=br(t,r,c,o);return}}Pe.flags|=e,a.memoizedState=br(1|t,r,c,o)}function Jc(e,t){return us(8390656,8,e,t)}function pl(e,t){return cs(2048,8,e,t)}function ef(e,t){return cs(4,2,e,t)}function tf(e,t){return cs(4,4,e,t)}function nf(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 rf(e,t,r){return r=r!=null?r.concat([e]):null,cs(4,4,nf.bind(null,t,e),r)}function ml(){}function sf(e,t){var r=gt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&ul(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function of(e,t){var r=gt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&ul(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function lf(e,t,r){return(Tn&21)===0?(e.baseState&&(e.baseState=!1,tt=!0),e.memoizedState=r):(Ct(r,t)||(r=Iu(),Pe.lanes|=r,En|=r,e.baseState=!0),t)}function jg(e,t){var r=pe;pe=r!==0&&4>r?r:4,e(!0);var o=al.transition;al.transition={};try{e(!1),t()}finally{pe=r,al.transition=o}}function af(){return gt().memoizedState}function Ng(e,t,r){var o=cn(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},uf(e))cf(t,r);else if(r=zc(e,t,r,o),r!==null){var a=Ze();Nt(r,e,o,a),ff(r,t,o)}}function Ag(e,t,r){var o=cn(e),a={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(uf(e))cf(t,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,y=c(h,r);if(a.hasEagerState=!0,a.eagerState=y,Ct(y,h)){var S=t.interleaved;S===null?(a.next=a,nl(t)):(a.next=S.next,S.next=a),t.interleaved=a;return}}catch{}finally{}r=zc(e,t,a,o),r!==null&&(a=Ze(),Nt(r,e,o,a),ff(r,t,o))}}function uf(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function cf(e,t){Xr=as=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ff(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,vo(e,r)}}var fs={readContext:mt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Mg={readContext:mt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Jc,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,us(4194308,4,nf.bind(null,t,e),r)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){return us(4,2,e,t)},useMemo:function(e,t){var r=Lt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=Lt();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Ng.bind(null,Pe,e),[o.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:qc,useDebugValue:ml,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=qc(!1),t=e[0];return e=jg.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Pe,a=Lt();if(ke){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),Ie===null)throw Error(s(349));(Tn&30)!==0||Gc(o,t,r)}a.memoizedState=r;var c={value:r,getSnapshot:t};return a.queue=c,Jc(Yc.bind(null,o,c,e),[e]),o.flags|=2048,br(9,Qc.bind(null,o,c,r,t),void 0,null),r},useId:function(){var e=Lt(),t=Ie.identifierPrefix;if(ke){var r=Bt,o=zt;r=(o&~(1<<32-kt(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=Zr++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Eg++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rg={readContext:mt,useCallback:sf,useContext:mt,useEffect:pl,useImperativeHandle:rf,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:of,useReducer:dl,useRef:bc,useState:function(){return dl(qr)},useDebugValue:ml,useDeferredValue:function(e){var t=gt();return lf(t,Le.memoizedState,e)},useTransition:function(){var e=dl(qr)[0],t=gt().memoizedState;return[e,t]},useMutableSource:$c,useSyncExternalStore:Kc,useId:af,unstable_isNewReconciler:!1},Dg={readContext:mt,useCallback:sf,useContext:mt,useEffect:pl,useImperativeHandle:rf,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:of,useReducer:hl,useRef:bc,useState:function(){return hl(qr)},useDebugValue:ml,useDeferredValue:function(e){var t=gt();return Le===null?t.memoizedState=e:lf(t,Le.memoizedState,e)},useTransition:function(){var e=hl(qr)[0],t=gt().memoizedState;return[e,t]},useMutableSource:$c,useSyncExternalStore:Kc,useId:af,unstable_isNewReconciler:!1};function Tt(e,t){if(e&&e.defaultProps){t=H({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function gl(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:H({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ds={isMounted:function(e){return(e=e._reactInternals)?yn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Ze(),a=cn(e),c=Wt(o,a);c.payload=t,r!=null&&(c.callback=r),t=on(e,c,a),t!==null&&(Nt(t,e,a,o),is(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Ze(),a=cn(e),c=Wt(o,a);c.tag=1,c.payload=t,r!=null&&(c.callback=r),t=on(e,c,a),t!==null&&(Nt(t,e,a,o),is(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ze(),o=cn(e),a=Wt(r,o);a.tag=2,t!=null&&(a.callback=t),t=on(e,a,o),t!==null&&(Nt(t,e,o,r),is(t,e,o))}};function df(e,t,r,o,a,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,c,h):t.prototype&&t.prototype.isPureReactComponent?!Or(r,o)||!Or(a,c):!0}function hf(e,t,r){var o=!1,a=nn,c=t.contextType;return typeof c=="object"&&c!==null?c=mt(c):(a=et(t)?wn:Ue.current,o=t.contextTypes,c=(o=o!=null)?Xn(e,a):nn),t=new t(r,c),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ds,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=c),t}function pf(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&ds.enqueueReplaceState(t,t.state,null)}function vl(e,t,r,o){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},rl(e);var c=t.contextType;typeof c=="object"&&c!==null?a.context=mt(c):(c=et(t)?wn:Ue.current,a.context=Xn(e,c)),a.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(gl(e,t,c,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ds.enqueueReplaceState(a,a.state,null),ss(e,r,a,o),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function rr(e,t){try{var r="",o=t;do r+=ue(o),o=o.return;while(o);var a=r}catch(c){a=`
|
|
39
|
+
Error generating stack: `+c.message+`
|
|
40
|
+
`+c.stack}return{value:e,source:t,stack:a,digest:null}}function yl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function xl(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Lg=typeof WeakMap=="function"?WeakMap:Map;function mf(e,t,r){r=Wt(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){xs||(xs=!0,Vl=o),xl(e,t)},r}function gf(e,t,r){r=Wt(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var a=t.value;r.payload=function(){return o(a)},r.callback=function(){xl(e,t)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(r.callback=function(){xl(e,t),typeof o!="function"&&(an===null?an=new Set([this]):an.add(this));var h=t.stack;this.componentDidCatch(t.value,{componentStack:h!==null?h:""})}),r}function vf(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new Lg;var a=new Set;o.set(t,a)}else a=o.get(t),a===void 0&&(a=new Set,o.set(t,a));a.has(r)||(a.add(r),e=Qg.bind(null,e,t,r),t.then(e,e))}function yf(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 xf(e,t,r,o,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Wt(-1,1),t.tag=2,on(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Vg=X.ReactCurrentOwner,tt=!1;function Xe(e,t,r,o){t.child=e===null?Oc(t,null,r,o):Jn(t,e.child,r,o)}function wf(e,t,r,o,a){r=r.render;var c=t.ref;return tr(t,a),o=cl(e,t,r,o,c,a),r=fl(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ht(e,t,a)):(ke&&r&&Qo(t),t.flags|=1,Xe(e,t,o,a),t.child)}function Sf(e,t,r,o,a){if(e===null){var c=r.type;return typeof c=="function"&&!Ul(c)&&c.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=c,kf(e,t,c,o,a)):(e=Ts(r.type,null,o,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,(e.lanes&a)===0){var h=c.memoizedProps;if(r=r.compare,r=r!==null?r:Or,r(h,o)&&e.ref===t.ref)return Ht(e,t,a)}return t.flags|=1,e=dn(c,o),e.ref=t.ref,e.return=t,t.child=e}function kf(e,t,r,o,a){if(e!==null){var c=e.memoizedProps;if(Or(c,o)&&e.ref===t.ref)if(tt=!1,t.pendingProps=o=c,(e.lanes&a)!==0)(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,Ht(e,t,a)}return wl(e,t,r,o,a)}function Cf(e,t,r){var o=t.pendingProps,a=o.children,c=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(sr,ct),ct|=r;else{if((r&1073741824)===0)return e=c!==null?c.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(sr,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=c!==null?c.baseLanes:r,ge(sr,ct),ct|=o}else c!==null?(o=c.baseLanes|r,t.memoizedState=null):o=r,ge(sr,ct),ct|=o;return Xe(e,t,a,r),t.child}function Pf(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function wl(e,t,r,o,a){var c=et(r)?wn:Ue.current;return c=Xn(t,c),tr(t,a),r=cl(e,t,r,o,c,a),o=fl(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ht(e,t,a)):(ke&&o&&Qo(t),t.flags|=1,Xe(e,t,r,a),t.child)}function Tf(e,t,r,o,a){if(et(r)){var c=!0;Zi(t)}else c=!1;if(tr(t,a),t.stateNode===null)ps(e,t),hf(t,r,o),vl(t,r,o,a),o=!0;else if(e===null){var h=t.stateNode,y=t.memoizedProps;h.props=y;var S=h.context,j=r.contextType;typeof j=="object"&&j!==null?j=mt(j):(j=et(r)?wn:Ue.current,j=Xn(t,j));var V=r.getDerivedStateFromProps,_=typeof V=="function"||typeof h.getSnapshotBeforeUpdate=="function";_||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==o||S!==j)&&pf(t,h,o,j),sn=!1;var R=t.memoizedState;h.state=R,ss(t,o,h,a),S=t.memoizedState,y!==o||R!==S||Je.current||sn?(typeof V=="function"&&(gl(t,r,V,o),S=t.memoizedState),(y=sn||df(t,r,y,o,R,S,j))?(_||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=S),h.props=o,h.state=S,h.context=j,o=y):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{h=t.stateNode,Bc(e,t),y=t.memoizedProps,j=t.type===t.elementType?y:Tt(t.type,y),h.props=j,_=t.pendingProps,R=h.context,S=r.contextType,typeof S=="object"&&S!==null?S=mt(S):(S=et(r)?wn:Ue.current,S=Xn(t,S));var W=r.getDerivedStateFromProps;(V=typeof W=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==_||R!==S)&&pf(t,h,o,S),sn=!1,R=t.memoizedState,h.state=R,ss(t,o,h,a);var G=t.memoizedState;y!==_||R!==G||Je.current||sn?(typeof W=="function"&&(gl(t,r,W,o),G=t.memoizedState),(j=sn||df(t,r,j,o,R,G,S)||!1)?(V||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,G,S),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,G,S)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=G),h.props=o,h.state=G,h.context=S,o=j):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),o=!1)}return Sl(e,t,r,o,c,a)}function Sl(e,t,r,o,a,c){Pf(e,t);var h=(t.flags&128)!==0;if(!o&&!h)return a&&Ac(t,r,!1),Ht(e,t,c);o=t.stateNode,Vg.current=t;var y=h&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&h?(t.child=Jn(t,e.child,null,c),t.child=Jn(t,null,y,c)):Xe(e,t,y,c),t.memoizedState=o.state,a&&Ac(t,r,!0),t.child}function Ef(e){var t=e.stateNode;t.pendingContext?jc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jc(e,t.context,!1),il(e,t.containerInfo)}function jf(e,t,r,o,a){return bn(),qo(a),t.flags|=256,Xe(e,t,r,o),t.child}var kl={dehydrated:null,treeContext:null,retryLane:0};function Cl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nf(e,t,r){var o=t.pendingProps,a=Ce.current,c=!1,h=(t.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ge(Ce,a&1),e===null)return Zo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(h=o.children,e=o.fallback,c?(o=t.mode,c=t.child,h={mode:"hidden",children:h},(o&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=h):c=Es(h,o,0,null),e=Mn(e,o,r,null),c.return=t,e.return=t,c.sibling=e,t.child=c,t.child.memoizedState=Cl(r),t.memoizedState=kl,e):Pl(t,h));if(a=e.memoizedState,a!==null&&(y=a.dehydrated,y!==null))return _g(e,t,h,o,y,a,r);if(c){c=o.fallback,h=t.mode,a=e.child,y=a.sibling;var S={mode:"hidden",children:o.children};return(h&1)===0&&t.child!==a?(o=t.child,o.childLanes=0,o.pendingProps=S,t.deletions=null):(o=dn(a,S),o.subtreeFlags=a.subtreeFlags&14680064),y!==null?c=dn(y,c):(c=Mn(c,h,r,null),c.flags|=2),c.return=t,o.return=t,o.sibling=c,t.child=o,o=c,c=t.child,h=e.child.memoizedState,h=h===null?Cl(r):{baseLanes:h.baseLanes|r,cachePool:null,transitions:h.transitions},c.memoizedState=h,c.childLanes=e.childLanes&~r,t.memoizedState=kl,o}return c=e.child,e=c.sibling,o=dn(c,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Pl(e,t){return t=Es({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hs(e,t,r,o){return o!==null&&qo(o),Jn(t,e.child,null,r),e=Pl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _g(e,t,r,o,a,c,h){if(r)return t.flags&256?(t.flags&=-257,o=yl(Error(s(422))),hs(e,t,h,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(c=o.fallback,a=t.mode,o=Es({mode:"visible",children:o.children},a,0,null),c=Mn(c,a,h,null),c.flags|=2,o.return=t,c.return=t,o.sibling=c,t.child=o,(t.mode&1)!==0&&Jn(t,e.child,null,h),t.child.memoizedState=Cl(h),t.memoizedState=kl,c);if((t.mode&1)===0)return hs(e,t,h,null);if(a.data==="$!"){if(o=a.nextSibling&&a.nextSibling.dataset,o)var y=o.dgst;return o=y,c=Error(s(419)),o=yl(c,o,void 0),hs(e,t,h,o)}if(y=(h&e.childLanes)!==0,tt||y){if(o=Ie,o!==null){switch(h&-h){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(o.suspendedLanes|h))!==0?0:a,a!==0&&a!==c.retryLane&&(c.retryLane=a,Ut(e,a),Nt(o,e,a,-1))}return Bl(),o=yl(Error(s(421))),hs(e,t,h,o)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Yg.bind(null,e),a._reactRetry=t,null):(e=c.treeContext,ut=en(a.nextSibling),at=t,ke=!0,Pt=null,e!==null&&(ht[pt++]=zt,ht[pt++]=Bt,ht[pt++]=Sn,zt=e.id,Bt=e.overflow,Sn=t),t=Pl(t,o.children),t.flags|=4096,t)}function Af(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),tl(e.return,t,r)}function Tl(e,t,r,o,a){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:a}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=r,c.tailMode=a)}function Mf(e,t,r){var o=t.pendingProps,a=o.revealOrder,c=o.tail;if(Xe(e,t,o.children,r),o=Ce.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Af(e,r,t);else if(e.tag===19)Af(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(ge(Ce,o),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&os(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Tl(t,!1,a,r,c);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&os(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Tl(t,!0,r,null,c);break;case"together":Tl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ps(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),En|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=dn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=dn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Ig(e,t,r){switch(t.tag){case 3:Ef(t),bn();break;case 5:Hc(t);break;case 1:et(t.type)&&Zi(t);break;case 4:il(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,a=t.memoizedProps.value;ge(ns,o._currentValue),o._currentValue=a;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(ge(Ce,Ce.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Nf(e,t,r):(ge(Ce,Ce.current&1),e=Ht(e,t,r),e!==null?e.sibling:null);ge(Ce,Ce.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Mf(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ge(Ce,Ce.current),o)break;return null;case 22:case 23:return t.lanes=0,Cf(e,t,r)}return Ht(e,t,r)}var Rf,El,Df,Lf;Rf=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},El=function(){},Df=function(e,t,r,o){var a=e.memoizedProps;if(a!==o){e=t.stateNode,Pn(Dt.current);var c=null;switch(r){case"input":a=eo(e,a),o=eo(e,o),c=[];break;case"select":a=H({},a,{value:void 0}),o=H({},o,{value:void 0}),c=[];break;case"textarea":a=ro(e,a),o=ro(e,o),c=[];break;default:typeof a.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Qi)}so(r,o);var h;r=null;for(j in a)if(!o.hasOwnProperty(j)&&a.hasOwnProperty(j)&&a[j]!=null)if(j==="style"){var y=a[j];for(h in y)y.hasOwnProperty(h)&&(r||(r={}),r[h]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(u.hasOwnProperty(j)?c||(c=[]):(c=c||[]).push(j,null));for(j in o){var S=o[j];if(y=a!=null?a[j]:void 0,o.hasOwnProperty(j)&&S!==y&&(S!=null||y!=null))if(j==="style")if(y){for(h in y)!y.hasOwnProperty(h)||S&&S.hasOwnProperty(h)||(r||(r={}),r[h]="");for(h in S)S.hasOwnProperty(h)&&y[h]!==S[h]&&(r||(r={}),r[h]=S[h])}else r||(c||(c=[]),c.push(j,r)),r=S;else j==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,y=y?y.__html:void 0,S!=null&&y!==S&&(c=c||[]).push(j,S)):j==="children"?typeof S!="string"&&typeof S!="number"||(c=c||[]).push(j,""+S):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(u.hasOwnProperty(j)?(S!=null&&j==="onScroll"&&ye("scroll",e),c||y===S||(c=[])):(c=c||[]).push(j,S))}r&&(c=c||[]).push("style",r);var j=c;(t.updateQueue=j)&&(t.flags|=4)}},Lf=function(e,t,r,o){r!==o&&(t.flags|=4)};function Jr(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,o|=a.subtreeFlags&14680064,o|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,o|=a.subtreeFlags,o|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function Fg(e,t,r){var o=t.pendingProps;switch(Yo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return et(t.type)&&Xi(),He(t),null;case 3:return o=t.stateNode,nr(),xe(Je),xe(Ue),ll(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(es(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pt!==null&&(Fl(Pt),Pt=null))),El(e,t),He(t),null;case 5:sl(t);var a=Pn(Yr.current);if(r=t.type,e!==null&&t.stateNode!=null)Df(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(s(166));return He(t),null}if(e=Pn(Dt.current),es(t)){o=t.stateNode,r=t.type;var c=t.memoizedProps;switch(o[Rt]=t,o[Hr]=c,e=(t.mode&1)!==0,r){case"dialog":ye("cancel",o),ye("close",o);break;case"iframe":case"object":case"embed":ye("load",o);break;case"video":case"audio":for(a=0;a<Br.length;a++)ye(Br[a],o);break;case"source":ye("error",o);break;case"img":case"image":case"link":ye("error",o),ye("load",o);break;case"details":ye("toggle",o);break;case"input":du(o,c),ye("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},ye("invalid",o);break;case"textarea":mu(o,c),ye("invalid",o)}so(r,c),a=null;for(var h in c)if(c.hasOwnProperty(h)){var y=c[h];h==="children"?typeof y=="string"?o.textContent!==y&&(c.suppressHydrationWarning!==!0&&Gi(o.textContent,y,e),a=["children",y]):typeof y=="number"&&o.textContent!==""+y&&(c.suppressHydrationWarning!==!0&&Gi(o.textContent,y,e),a=["children",""+y]):u.hasOwnProperty(h)&&y!=null&&h==="onScroll"&&ye("scroll",o)}switch(r){case"input":Ci(o),pu(o,c,!0);break;case"textarea":Ci(o),vu(o);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(o.onclick=Qi)}o=a,t.updateQueue=o,o!==null&&(t.flags|=4)}else{h=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=yu(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=h.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=h.createElement(r,{is:o.is}):(e=h.createElement(r),r==="select"&&(h=e,o.multiple?h.multiple=!0:o.size&&(h.size=o.size))):e=h.createElementNS(e,r),e[Rt]=t,e[Hr]=o,Rf(e,t,!1,!1),t.stateNode=e;e:{switch(h=oo(r,o),r){case"dialog":ye("cancel",e),ye("close",e),a=o;break;case"iframe":case"object":case"embed":ye("load",e),a=o;break;case"video":case"audio":for(a=0;a<Br.length;a++)ye(Br[a],e);a=o;break;case"source":ye("error",e),a=o;break;case"img":case"image":case"link":ye("error",e),ye("load",e),a=o;break;case"details":ye("toggle",e),a=o;break;case"input":du(e,o),a=eo(e,o),ye("invalid",e);break;case"option":a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=H({},o,{value:void 0}),ye("invalid",e);break;case"textarea":mu(e,o),a=ro(e,o),ye("invalid",e);break;default:a=o}so(r,a),y=a;for(c in y)if(y.hasOwnProperty(c)){var S=y[c];c==="style"?Su(e,S):c==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&xu(e,S)):c==="children"?typeof S=="string"?(r!=="textarea"||S!=="")&&Sr(e,S):typeof S=="number"&&Sr(e,""+S):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?S!=null&&c==="onScroll"&&ye("scroll",e):S!=null&&K(e,c,S,h))}switch(r){case"input":Ci(e),pu(e,o,!1);break;case"textarea":Ci(e),vu(e);break;case"option":o.value!=null&&e.setAttribute("value",""+he(o.value));break;case"select":e.multiple=!!o.multiple,c=o.value,c!=null?Fn(e,!!o.multiple,c,!1):o.defaultValue!=null&&Fn(e,!!o.multiple,o.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Qi)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return He(t),null;case 6:if(e&&t.stateNode!=null)Lf(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(r=Pn(Yr.current),Pn(Dt.current),es(t)){if(o=t.stateNode,r=t.memoizedProps,o[Rt]=t,(c=o.nodeValue!==r)&&(e=at,e!==null))switch(e.tag){case 3:Gi(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gi(o.nodeValue,r,(e.mode&1)!==0)}c&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Rt]=t,t.stateNode=o}return He(t),null;case 13:if(xe(Ce),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ke&&ut!==null&&(t.mode&1)!==0&&(t.flags&128)===0)_c(),bn(),t.flags|=98560,c=!1;else if(c=es(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[Rt]=t}else bn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),c=!1}else Pt!==null&&(Fl(Pt),Pt=null),c=!0;if(!c)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ce.current&1)!==0?Ve===0&&(Ve=3):Bl())),t.updateQueue!==null&&(t.flags|=4),He(t),null);case 4:return nr(),El(e,t),e===null&&Ur(t.stateNode.containerInfo),He(t),null;case 10:return el(t.type._context),He(t),null;case 17:return et(t.type)&&Xi(),He(t),null;case 19:if(xe(Ce),c=t.memoizedState,c===null)return He(t),null;if(o=(t.flags&128)!==0,h=c.rendering,h===null)if(o)Jr(c,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=os(e),h!==null){for(t.flags|=128,Jr(c,!1),o=h.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)c=r,e=o,c.flags&=14680066,h=c.alternate,h===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=h.childLanes,c.lanes=h.lanes,c.child=h.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=h.memoizedProps,c.memoizedState=h.memoizedState,c.updateQueue=h.updateQueue,c.type=h.type,e=h.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ge(Ce,Ce.current&1|2),t.child}e=e.sibling}c.tail!==null&&Ae()>or&&(t.flags|=128,o=!0,Jr(c,!1),t.lanes=4194304)}else{if(!o)if(e=os(h),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Jr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!ke)return He(t),null}else 2*Ae()-c.renderingStartTime>or&&r!==1073741824&&(t.flags|=128,o=!0,Jr(c,!1),t.lanes=4194304);c.isBackwards?(h.sibling=t.child,t.child=h):(r=c.last,r!==null?r.sibling=h:t.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Ae(),t.sibling=null,r=Ce.current,ge(Ce,o?r&1|2:r&1),t):(He(t),null);case 22:case 23:return zl(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(ct&1073741824)!==0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Og(e,t){switch(Yo(t),t.tag){case 1:return et(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nr(),xe(Je),xe(Ue),ll(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return sl(t),null;case 13:if(xe(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Ce),null;case 4:return nr(),null;case 10:return el(t.type._context),null;case 22:case 23:return zl(),null;case 24:return null;default:return null}}var ms=!1,$e=!1,zg=typeof WeakSet=="function"?WeakSet:Set,$=null;function ir(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){je(e,t,o)}else r.current=null}function jl(e,t,r){try{r()}catch(o){je(e,t,o)}}var Vf=!1;function Bg(e,t){if(zo=_i,e=fc(),Ro(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var a=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var h=0,y=-1,S=-1,j=0,V=0,_=e,R=null;t:for(;;){for(var W;_!==r||a!==0&&_.nodeType!==3||(y=h+a),_!==c||o!==0&&_.nodeType!==3||(S=h+o),_.nodeType===3&&(h+=_.nodeValue.length),(W=_.firstChild)!==null;)R=_,_=W;for(;;){if(_===e)break t;if(R===r&&++j===a&&(y=h),R===c&&++V===o&&(S=h),(W=_.nextSibling)!==null)break;_=R,R=_.parentNode}_=W}r=y===-1||S===-1?null:{start:y,end:S}}else r=null}r=r||{start:0,end:0}}else r=null;for(Bo={focusedElem:e,selectionRange:r},_i=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var G=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(G!==null){var Q=G.memoizedProps,Me=G.memoizedState,T=t.stateNode,C=T.getSnapshotBeforeUpdate(t.elementType===t.type?Q:Tt(t.type,Q),Me);T.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(I){je(t,t.return,I)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return G=Vf,Vf=!1,G}function ei(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&e)===e){var c=a.destroy;a.destroy=void 0,c!==void 0&&jl(t,r,c)}a=a.next}while(a!==o)}}function gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function Nl(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function _f(e){var t=e.alternate;t!==null&&(e.alternate=null,_f(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Hr],delete t[$o],delete t[kg],delete t[Cg])),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 If(e){return e.tag===5||e.tag===3||e.tag===4}function Ff(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||If(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 Al(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Qi));else if(o!==4&&(e=e.child,e!==null))for(Al(e,t,r),e=e.sibling;e!==null;)Al(e,t,r),e=e.sibling}function Ml(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Ml(e,t,r),e=e.sibling;e!==null;)Ml(e,t,r),e=e.sibling}var Oe=null,Et=!1;function ln(e,t,r){for(r=r.child;r!==null;)Of(e,t,r),r=r.sibling}function Of(e,t,r){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Ai,r)}catch{}switch(r.tag){case 5:$e||ir(r,t);case 6:var o=Oe,a=Et;Oe=null,ln(e,t,r),Oe=o,Et=a,Oe!==null&&(Et?(e=Oe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Oe.removeChild(r.stateNode));break;case 18:Oe!==null&&(Et?(e=Oe,r=r.stateNode,e.nodeType===8?Ho(e.parentNode,r):e.nodeType===1&&Ho(e,r),Dr(e)):Ho(Oe,r.stateNode));break;case 4:o=Oe,a=Et,Oe=r.stateNode.containerInfo,Et=!0,ln(e,t,r),Oe=o,Et=a;break;case 0:case 11:case 14:case 15:if(!$e&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){a=o=o.next;do{var c=a,h=c.destroy;c=c.tag,h!==void 0&&((c&2)!==0||(c&4)!==0)&&jl(r,t,h),a=a.next}while(a!==o)}ln(e,t,r);break;case 1:if(!$e&&(ir(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(y){je(r,t,y)}ln(e,t,r);break;case 21:ln(e,t,r);break;case 22:r.mode&1?($e=(o=$e)||r.memoizedState!==null,ln(e,t,r),$e=o):ln(e,t,r);break;default:ln(e,t,r)}}function zf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new zg),t.forEach(function(o){var a=Xg.bind(null,e,o);r.has(o)||(r.add(o),o.then(a,a))})}}function jt(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var a=r[o];try{var c=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 5:Oe=y.stateNode,Et=!1;break e;case 3:Oe=y.stateNode.containerInfo,Et=!0;break e;case 4:Oe=y.stateNode.containerInfo,Et=!0;break e}y=y.return}if(Oe===null)throw Error(s(160));Of(c,h,a),Oe=null,Et=!1;var S=a.alternate;S!==null&&(S.return=null),a.return=null}catch(j){je(a,t,j)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bf(t,e),t=t.sibling}function Bf(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jt(t,e),Vt(e),o&4){try{ei(3,e,e.return),gs(3,e)}catch(Q){je(e,e.return,Q)}try{ei(5,e,e.return)}catch(Q){je(e,e.return,Q)}}break;case 1:jt(t,e),Vt(e),o&512&&r!==null&&ir(r,r.return);break;case 5:if(jt(t,e),Vt(e),o&512&&r!==null&&ir(r,r.return),e.flags&32){var a=e.stateNode;try{Sr(a,"")}catch(Q){je(e,e.return,Q)}}if(o&4&&(a=e.stateNode,a!=null)){var c=e.memoizedProps,h=r!==null?r.memoizedProps:c,y=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{y==="input"&&c.type==="radio"&&c.name!=null&&hu(a,c),oo(y,h);var j=oo(y,c);for(h=0;h<S.length;h+=2){var V=S[h],_=S[h+1];V==="style"?Su(a,_):V==="dangerouslySetInnerHTML"?xu(a,_):V==="children"?Sr(a,_):K(a,V,_,j)}switch(y){case"input":to(a,c);break;case"textarea":gu(a,c);break;case"select":var R=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!c.multiple;var W=c.value;W!=null?Fn(a,!!c.multiple,W,!1):R!==!!c.multiple&&(c.defaultValue!=null?Fn(a,!!c.multiple,c.defaultValue,!0):Fn(a,!!c.multiple,c.multiple?[]:"",!1))}a[Hr]=c}catch(Q){je(e,e.return,Q)}}break;case 6:if(jt(t,e),Vt(e),o&4){if(e.stateNode===null)throw Error(s(162));a=e.stateNode,c=e.memoizedProps;try{a.nodeValue=c}catch(Q){je(e,e.return,Q)}}break;case 3:if(jt(t,e),Vt(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Dr(t.containerInfo)}catch(Q){je(e,e.return,Q)}break;case 4:jt(t,e),Vt(e);break;case 13:jt(t,e),Vt(e),a=e.child,a.flags&8192&&(c=a.memoizedState!==null,a.stateNode.isHidden=c,!c||a.alternate!==null&&a.alternate.memoizedState!==null||(Ll=Ae())),o&4&&zf(e);break;case 22:if(V=r!==null&&r.memoizedState!==null,e.mode&1?($e=(j=$e)||V,jt(t,e),$e=j):jt(t,e),Vt(e),o&8192){if(j=e.memoizedState!==null,(e.stateNode.isHidden=j)&&!V&&(e.mode&1)!==0)for($=e,V=e.child;V!==null;){for(_=$=V;$!==null;){switch(R=$,W=R.child,R.tag){case 0:case 11:case 14:case 15:ei(4,R,R.return);break;case 1:ir(R,R.return);var G=R.stateNode;if(typeof G.componentWillUnmount=="function"){o=R,r=R.return;try{t=o,G.props=t.memoizedProps,G.state=t.memoizedState,G.componentWillUnmount()}catch(Q){je(o,r,Q)}}break;case 5:ir(R,R.return);break;case 22:if(R.memoizedState!==null){Hf(_);continue}}W!==null?(W.return=R,$=W):Hf(_)}V=V.sibling}e:for(V=null,_=e;;){if(_.tag===5){if(V===null){V=_;try{a=_.stateNode,j?(c=a.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(y=_.stateNode,S=_.memoizedProps.style,h=S!=null&&S.hasOwnProperty("display")?S.display:null,y.style.display=wu("display",h))}catch(Q){je(e,e.return,Q)}}}else if(_.tag===6){if(V===null)try{_.stateNode.nodeValue=j?"":_.memoizedProps}catch(Q){je(e,e.return,Q)}}else if((_.tag!==22&&_.tag!==23||_.memoizedState===null||_===e)&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===e)break e;for(;_.sibling===null;){if(_.return===null||_.return===e)break e;V===_&&(V=null),_=_.return}V===_&&(V=null),_.sibling.return=_.return,_=_.sibling}}break;case 19:jt(t,e),Vt(e),o&4&&zf(e);break;case 21:break;default:jt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(If(r)){var o=r;break e}r=r.return}throw Error(s(160))}switch(o.tag){case 5:var a=o.stateNode;o.flags&32&&(Sr(a,""),o.flags&=-33);var c=Ff(e);Ml(e,c,a);break;case 3:case 4:var h=o.stateNode.containerInfo,y=Ff(e);Al(e,y,h);break;default:throw Error(s(161))}}catch(S){je(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ug(e,t,r){$=e,Uf(e)}function Uf(e,t,r){for(var o=(e.mode&1)!==0;$!==null;){var a=$,c=a.child;if(a.tag===22&&o){var h=a.memoizedState!==null||ms;if(!h){var y=a.alternate,S=y!==null&&y.memoizedState!==null||$e;y=ms;var j=$e;if(ms=h,($e=S)&&!j)for($=a;$!==null;)h=$,S=h.child,h.tag===22&&h.memoizedState!==null?$f(a):S!==null?(S.return=h,$=S):$f(a);for(;c!==null;)$=c,Uf(c),c=c.sibling;$=a,ms=y,$e=j}Wf(e)}else(a.subtreeFlags&8772)!==0&&c!==null?(c.return=a,$=c):Wf(e)}}function Wf(e){for(;$!==null;){var t=$;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:$e||gs(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!$e)if(r===null)o.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Tt(t.type,r.memoizedProps);o.componentDidUpdate(a,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&Wc(t,c,o);break;case 3:var h=t.updateQueue;if(h!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Wc(t,h,r)}break;case 5:var y=t.stateNode;if(r===null&&t.flags&4){r=y;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&r.focus();break;case"img":S.src&&(r.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var j=t.alternate;if(j!==null){var V=j.memoizedState;if(V!==null){var _=V.dehydrated;_!==null&&Dr(_)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}$e||t.flags&512&&Nl(t)}catch(R){je(t,t.return,R)}}if(t===e){$=null;break}if(r=t.sibling,r!==null){r.return=t.return,$=r;break}$=t.return}}function Hf(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var r=t.sibling;if(r!==null){r.return=t.return,$=r;break}$=t.return}}function $f(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{gs(4,t)}catch(S){je(t,r,S)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var a=t.return;try{o.componentDidMount()}catch(S){je(t,a,S)}}var c=t.return;try{Nl(t)}catch(S){je(t,c,S)}break;case 5:var h=t.return;try{Nl(t)}catch(S){je(t,h,S)}}}catch(S){je(t,t.return,S)}if(t===e){$=null;break}var y=t.sibling;if(y!==null){y.return=t.return,$=y;break}$=t.return}}var Wg=Math.ceil,vs=X.ReactCurrentDispatcher,Rl=X.ReactCurrentOwner,vt=X.ReactCurrentBatchConfig,ae=0,Ie=null,De=null,ze=0,ct=0,sr=tn(0),Ve=0,ti=null,En=0,ys=0,Dl=0,ni=null,nt=null,Ll=0,or=1/0,$t=null,xs=!1,Vl=null,an=null,ws=!1,un=null,Ss=0,ri=0,_l=null,ks=-1,Cs=0;function Ze(){return(ae&6)!==0?Ae():ks!==-1?ks:ks=Ae()}function cn(e){return(e.mode&1)===0?1:(ae&2)!==0&&ze!==0?ze&-ze:Tg.transition!==null?(Cs===0&&(Cs=Iu()),Cs):(e=pe,e!==0||(e=window.event,e=e===void 0?16:Ku(e.type)),e)}function Nt(e,t,r,o){if(50<ri)throw ri=0,_l=null,Error(s(185));jr(e,r,o),((ae&2)===0||e!==Ie)&&(e===Ie&&((ae&2)===0&&(ys|=r),Ve===4&&fn(e,ze)),rt(e,o),r===1&&ae===0&&(t.mode&1)===0&&(or=Ae()+500,qi&&rn()))}function rt(e,t){var r=e.callbackNode;Tm(e,t);var o=Di(e,e===Ie?ze:0);if(o===0)r!==null&&Lu(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&Lu(r),t===1)e.tag===0?Pg(Gf.bind(null,e)):Mc(Gf.bind(null,e)),wg(function(){(ae&6)===0&&rn()}),r=null;else{switch(Fu(o)){case 1:r=po;break;case 4:r=Vu;break;case 16:r=Ni;break;case 536870912:r=_u;break;default:r=Ni}r=ed(r,Kf.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Kf(e,t){if(ks=-1,Cs=0,(ae&6)!==0)throw Error(s(327));var r=e.callbackNode;if(lr()&&e.callbackNode!==r)return null;var o=Di(e,e===Ie?ze:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=Ps(e,o);else{t=o;var a=ae;ae|=2;var c=Yf();(Ie!==e||ze!==t)&&($t=null,or=Ae()+500,Nn(e,t));do try{Kg();break}catch(y){Qf(e,y)}while(!0);Jo(),vs.current=c,ae=a,De!==null?t=0:(Ie=null,ze=0,t=Ve)}if(t!==0){if(t===2&&(a=mo(e),a!==0&&(o=a,t=Il(e,a))),t===1)throw r=ti,Nn(e,0),fn(e,o),rt(e,Ae()),r;if(t===6)fn(e,o);else{if(a=e.current.alternate,(o&30)===0&&!Hg(a)&&(t=Ps(e,o),t===2&&(c=mo(e),c!==0&&(o=c,t=Il(e,c))),t===1))throw r=ti,Nn(e,0),fn(e,o),rt(e,Ae()),r;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(s(345));case 2:An(e,nt,$t);break;case 3:if(fn(e,o),(o&130023424)===o&&(t=Ll+500-Ae(),10<t)){if(Di(e,0)!==0)break;if(a=e.suspendedLanes,(a&o)!==o){Ze(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Wo(An.bind(null,e,nt,$t),t);break}An(e,nt,$t);break;case 4:if(fn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,a=-1;0<o;){var h=31-kt(o);c=1<<h,h=t[h],h>a&&(a=h),o&=~c}if(o=a,o=Ae()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Wg(o/1960))-o,10<o){e.timeoutHandle=Wo(An.bind(null,e,nt,$t),o);break}An(e,nt,$t);break;case 5:An(e,nt,$t);break;default:throw Error(s(329))}}}return rt(e,Ae()),e.callbackNode===r?Kf.bind(null,e):null}function Il(e,t){var r=ni;return e.current.memoizedState.isDehydrated&&(Nn(e,t).flags|=256),e=Ps(e,t),e!==2&&(t=nt,nt=r,t!==null&&Fl(t)),e}function Fl(e){nt===null?nt=e:nt.push.apply(nt,e)}function Hg(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var a=r[o],c=a.getSnapshot;a=a.value;try{if(!Ct(c(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fn(e,t){for(t&=~Dl,t&=~ys,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-kt(t),o=1<<r;e[r]=-1,t&=~o}}function Gf(e){if((ae&6)!==0)throw Error(s(327));lr();var t=Di(e,0);if((t&1)===0)return rt(e,Ae()),null;var r=Ps(e,t);if(e.tag!==0&&r===2){var o=mo(e);o!==0&&(t=o,r=Il(e,o))}if(r===1)throw r=ti,Nn(e,0),fn(e,t),rt(e,Ae()),r;if(r===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,An(e,nt,$t),rt(e,Ae()),null}function Ol(e,t){var r=ae;ae|=1;try{return e(t)}finally{ae=r,ae===0&&(or=Ae()+500,qi&&rn())}}function jn(e){un!==null&&un.tag===0&&(ae&6)===0&&lr();var t=ae;ae|=1;var r=vt.transition,o=pe;try{if(vt.transition=null,pe=1,e)return e()}finally{pe=o,vt.transition=r,ae=t,(ae&6)===0&&rn()}}function zl(){ct=sr.current,xe(sr)}function Nn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,xg(r)),De!==null)for(r=De.return;r!==null;){var o=r;switch(Yo(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Xi();break;case 3:nr(),xe(Je),xe(Ue),ll();break;case 5:sl(o);break;case 4:nr();break;case 13:xe(Ce);break;case 19:xe(Ce);break;case 10:el(o.type._context);break;case 22:case 23:zl()}r=r.return}if(Ie=e,De=e=dn(e.current,null),ze=ct=t,Ve=0,ti=null,Dl=ys=En=0,nt=ni=null,Cn!==null){for(t=0;t<Cn.length;t++)if(r=Cn[t],o=r.interleaved,o!==null){r.interleaved=null;var a=o.next,c=r.pending;if(c!==null){var h=c.next;c.next=a,o.next=h}r.pending=o}Cn=null}return e}function Qf(e,t){do{var r=De;try{if(Jo(),ls.current=fs,as){for(var o=Pe.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}as=!1}if(Tn=0,_e=Le=Pe=null,Xr=!1,Zr=0,Rl.current=null,r===null||r.return===null){Ve=1,ti=t,De=null;break}e:{var c=e,h=r.return,y=r,S=t;if(t=ze,y.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var j=S,V=y,_=V.tag;if((V.mode&1)===0&&(_===0||_===11||_===15)){var R=V.alternate;R?(V.updateQueue=R.updateQueue,V.memoizedState=R.memoizedState,V.lanes=R.lanes):(V.updateQueue=null,V.memoizedState=null)}var W=yf(h);if(W!==null){W.flags&=-257,xf(W,h,y,c,t),W.mode&1&&vf(c,j,t),t=W,S=j;var G=t.updateQueue;if(G===null){var Q=new Set;Q.add(S),t.updateQueue=Q}else G.add(S);break e}else{if((t&1)===0){vf(c,j,t),Bl();break e}S=Error(s(426))}}else if(ke&&y.mode&1){var Me=yf(h);if(Me!==null){(Me.flags&65536)===0&&(Me.flags|=256),xf(Me,h,y,c,t),qo(rr(S,y));break e}}c=S=rr(S,y),Ve!==4&&(Ve=2),ni===null?ni=[c]:ni.push(c),c=h;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var T=mf(c,S,t);Uc(c,T);break e;case 1:y=S;var C=c.type,E=c.stateNode;if((c.flags&128)===0&&(typeof C.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(an===null||!an.has(E)))){c.flags|=65536,t&=-t,c.lanes|=t;var I=gf(c,y,t);Uc(c,I);break e}}c=c.return}while(c!==null)}Zf(r)}catch(Y){t=Y,De===r&&r!==null&&(De=r=r.return);continue}break}while(!0)}function Yf(){var e=vs.current;return vs.current=fs,e===null?fs:e}function Bl(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),Ie===null||(En&268435455)===0&&(ys&268435455)===0||fn(Ie,ze)}function Ps(e,t){var r=ae;ae|=2;var o=Yf();(Ie!==e||ze!==t)&&($t=null,Nn(e,t));do try{$g();break}catch(a){Qf(e,a)}while(!0);if(Jo(),ae=r,vs.current=o,De!==null)throw Error(s(261));return Ie=null,ze=0,Ve}function $g(){for(;De!==null;)Xf(De)}function Kg(){for(;De!==null&&!gm();)Xf(De)}function Xf(e){var t=Jf(e.alternate,e,ct);e.memoizedProps=e.pendingProps,t===null?Zf(e):De=t,Rl.current=null}function Zf(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Fg(r,t,ct),r!==null){De=r;return}}else{if(r=Og(r,t),r!==null){r.flags&=32767,De=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ve=6,De=null;return}}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Ve===0&&(Ve=5)}function An(e,t,r){var o=pe,a=vt.transition;try{vt.transition=null,pe=1,Gg(e,t,r,o)}finally{vt.transition=a,pe=o}return null}function Gg(e,t,r,o){do lr();while(un!==null);if((ae&6)!==0)throw Error(s(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var c=r.lanes|r.childLanes;if(Em(e,c),e===Ie&&(De=Ie=null,ze=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||ws||(ws=!0,ed(Ni,function(){return lr(),null})),c=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||c){c=vt.transition,vt.transition=null;var h=pe;pe=1;var y=ae;ae|=4,Rl.current=null,Bg(e,r),Bf(r,e),dg(Bo),_i=!!zo,Bo=zo=null,e.current=r,Ug(r),vm(),ae=y,pe=h,vt.transition=c}else e.current=r;if(ws&&(ws=!1,un=e,Ss=a),c=e.pendingLanes,c===0&&(an=null),wm(r.stateNode),rt(e,Ae()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],o(a.value,{componentStack:a.stack,digest:a.digest});if(xs)throw xs=!1,e=Vl,Vl=null,e;return(Ss&1)!==0&&e.tag!==0&&lr(),c=e.pendingLanes,(c&1)!==0?e===_l?ri++:(ri=0,_l=e):ri=0,rn(),null}function lr(){if(un!==null){var e=Fu(Ss),t=vt.transition,r=pe;try{if(vt.transition=null,pe=16>e?16:e,un===null)var o=!1;else{if(e=un,un=null,Ss=0,(ae&6)!==0)throw Error(s(331));var a=ae;for(ae|=4,$=e.current;$!==null;){var c=$,h=c.child;if(($.flags&16)!==0){var y=c.deletions;if(y!==null){for(var S=0;S<y.length;S++){var j=y[S];for($=j;$!==null;){var V=$;switch(V.tag){case 0:case 11:case 15:ei(8,V,c)}var _=V.child;if(_!==null)_.return=V,$=_;else for(;$!==null;){V=$;var R=V.sibling,W=V.return;if(_f(V),V===j){$=null;break}if(R!==null){R.return=W,$=R;break}$=W}}}var G=c.alternate;if(G!==null){var Q=G.child;if(Q!==null){G.child=null;do{var Me=Q.sibling;Q.sibling=null,Q=Me}while(Q!==null)}}$=c}}if((c.subtreeFlags&2064)!==0&&h!==null)h.return=c,$=h;else e:for(;$!==null;){if(c=$,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:ei(9,c,c.return)}var T=c.sibling;if(T!==null){T.return=c.return,$=T;break e}$=c.return}}var C=e.current;for($=C;$!==null;){h=$;var E=h.child;if((h.subtreeFlags&2064)!==0&&E!==null)E.return=h,$=E;else e:for(h=C;$!==null;){if(y=$,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:gs(9,y)}}catch(Y){je(y,y.return,Y)}if(y===h){$=null;break e}var I=y.sibling;if(I!==null){I.return=y.return,$=I;break e}$=y.return}}if(ae=a,rn(),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(Ai,e)}catch{}o=!0}return o}finally{pe=r,vt.transition=t}}return!1}function qf(e,t,r){t=rr(r,t),t=mf(e,t,1),e=on(e,t,1),t=Ze(),e!==null&&(jr(e,1,t),rt(e,t))}function je(e,t,r){if(e.tag===3)qf(e,e,r);else for(;t!==null;){if(t.tag===3){qf(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(an===null||!an.has(o))){e=rr(r,e),e=gf(t,e,1),t=on(t,e,1),e=Ze(),t!==null&&(jr(t,1,e),rt(t,e));break}}t=t.return}}function Qg(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&r,Ie===e&&(ze&r)===r&&(Ve===4||Ve===3&&(ze&130023424)===ze&&500>Ae()-Ll?Nn(e,0):Dl|=r),rt(e,t)}function bf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ri,Ri<<=1,(Ri&130023424)===0&&(Ri=4194304)));var r=Ze();e=Ut(e,t),e!==null&&(jr(e,t,r),rt(e,r))}function Yg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),bf(e,r)}function Xg(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}o!==null&&o.delete(t),bf(e,r)}var Jf;Jf=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)tt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return tt=!1,Ig(e,t,r);tt=(e.flags&131072)!==0}else tt=!1,ke&&(t.flags&1048576)!==0&&Rc(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ps(e,t),e=t.pendingProps;var a=Xn(t,Ue.current);tr(t,r),a=cl(null,t,o,e,a,r);var c=fl();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(o)?(c=!0,Zi(t)):c=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,rl(t),a.updater=ds,t.stateNode=a,a._reactInternals=t,vl(t,o,e,r),t=Sl(null,t,o,!0,c,r)):(t.tag=0,ke&&c&&Qo(t),Xe(null,t,a,r),t=t.child),t;case 16:o=t.elementType;e:{switch(ps(e,t),e=t.pendingProps,a=o._init,o=a(o._payload),t.type=o,a=t.tag=qg(o),e=Tt(o,e),a){case 0:t=wl(null,t,o,e,r);break e;case 1:t=Tf(null,t,o,e,r);break e;case 11:t=wf(null,t,o,e,r);break e;case 14:t=Sf(null,t,o,Tt(o.type,e),r);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Tt(o,a),wl(e,t,o,a,r);case 1:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Tt(o,a),Tf(e,t,o,a,r);case 3:e:{if(Ef(t),e===null)throw Error(s(387));o=t.pendingProps,c=t.memoizedState,a=c.element,Bc(e,t),ss(t,o,null,r);var h=t.memoizedState;if(o=h.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){a=rr(Error(s(423)),t),t=jf(e,t,o,r,a);break e}else if(o!==a){a=rr(Error(s(424)),t),t=jf(e,t,o,r,a);break e}else for(ut=en(t.stateNode.containerInfo.firstChild),at=t,ke=!0,Pt=null,r=Oc(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(bn(),o===a){t=Ht(e,t,r);break e}Xe(e,t,o,r)}t=t.child}return t;case 5:return Hc(t),e===null&&Zo(t),o=t.type,a=t.pendingProps,c=e!==null?e.memoizedProps:null,h=a.children,Uo(o,a)?h=null:c!==null&&Uo(o,c)&&(t.flags|=32),Pf(e,t),Xe(e,t,h,r),t.child;case 6:return e===null&&Zo(t),null;case 13:return Nf(e,t,r);case 4:return il(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Jn(t,null,o,r):Xe(e,t,o,r),t.child;case 11:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Tt(o,a),wf(e,t,o,a,r);case 7:return Xe(e,t,t.pendingProps,r),t.child;case 8:return Xe(e,t,t.pendingProps.children,r),t.child;case 12:return Xe(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,c=t.memoizedProps,h=a.value,ge(ns,o._currentValue),o._currentValue=h,c!==null)if(Ct(c.value,h)){if(c.children===a.children&&!Je.current){t=Ht(e,t,r);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var y=c.dependencies;if(y!==null){h=c.child;for(var S=y.firstContext;S!==null;){if(S.context===o){if(c.tag===1){S=Wt(-1,r&-r),S.tag=2;var j=c.updateQueue;if(j!==null){j=j.shared;var V=j.pending;V===null?S.next=S:(S.next=V.next,V.next=S),j.pending=S}}c.lanes|=r,S=c.alternate,S!==null&&(S.lanes|=r),tl(c.return,r,t),y.lanes|=r;break}S=S.next}}else if(c.tag===10)h=c.type===t.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(s(341));h.lanes|=r,y=h.alternate,y!==null&&(y.lanes|=r),tl(h,r,t),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}Xe(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,tr(t,r),a=mt(a),o=o(a),t.flags|=1,Xe(e,t,o,r),t.child;case 14:return o=t.type,a=Tt(o,t.pendingProps),a=Tt(o.type,a),Sf(e,t,o,a,r);case 15:return kf(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Tt(o,a),ps(e,t),t.tag=1,et(o)?(e=!0,Zi(t)):e=!1,tr(t,r),hf(t,o,a),vl(t,o,a,r),Sl(null,t,o,!0,e,r);case 19:return Mf(e,t,r);case 22:return Cf(e,t,r)}throw Error(s(156,t.tag))};function ed(e,t){return Du(e,t)}function Zg(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,r,o){return new Zg(e,t,r,o)}function Ul(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qg(e){if(typeof e=="function")return Ul(e)?1:0;if(e!=null){if(e=e.$$typeof,e===st)return 11;if(e===St)return 14}return 2}function dn(e,t){var r=e.alternate;return r===null?(r=yt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ts(e,t,r,o,a,c){var h=2;if(o=e,typeof e=="function")Ul(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case le:return Mn(r.children,a,c,t);case Z:h=8,a|=8;break;case ve:return e=yt(12,r,t,a|2),e.elementType=ve,e.lanes=c,e;case Qe:return e=yt(13,r,t,a),e.elementType=Qe,e.lanes=c,e;case be:return e=yt(19,r,t,a),e.elementType=be,e.lanes=c,e;case ie:return Es(r,a,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ee:h=10;break e;case qe:h=9;break e;case st:h=11;break e;case St:h=14;break e;case Ye:h=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=yt(h,r,t,a),t.elementType=e,t.type=o,t.lanes=c,t}function Mn(e,t,r,o){return e=yt(7,e,o,t),e.lanes=r,e}function Es(e,t,r,o){return e=yt(22,e,o,t),e.elementType=ie,e.lanes=r,e.stateNode={isHidden:!1},e}function Wl(e,t,r){return e=yt(6,e,null,t),e.lanes=r,e}function Hl(e,t,r){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bg(e,t,r,o,a){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=go(0),this.expirationTimes=go(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.identifierPrefix=o,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function $l(e,t,r,o,a,c,h,y,S){return e=new bg(e,t,r,y,S),t===1?(t=1,c===!0&&(t|=8)):t=0,c=yt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},rl(c),e}function Jg(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ee,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function td(e){if(!e)return nn;e=e._reactInternals;e:{if(yn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var r=e.type;if(et(r))return Nc(e,r,t)}return t}function nd(e,t,r,o,a,c,h,y,S){return e=$l(r,o,!0,e,a,c,h,y,S),e.context=td(null),r=e.current,o=Ze(),a=cn(r),c=Wt(o,a),c.callback=t??null,on(r,c,a),e.current.lanes=a,jr(e,a,o),rt(e,o),e}function js(e,t,r,o){var a=t.current,c=Ze(),h=cn(a);return r=td(r),t.context===null?t.context=r:t.pendingContext=r,t=Wt(c,h),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=on(a,t,h),e!==null&&(Nt(e,a,h,c),is(e,a,h)),h}function Ns(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 rd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Kl(e,t){rd(e,t),(e=e.alternate)&&rd(e,t)}function ev(){return null}var id=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gl(e){this._internalRoot=e}As.prototype.render=Gl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));js(e,t,null,null)},As.prototype.unmount=Gl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jn(function(){js(null,e,null,null)}),t[Ft]=null}};function As(e){this._internalRoot=e}As.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bu();e={blockedOn:null,target:e,priority:t};for(var r=0;r<qt.length&&t!==0&&t<qt[r].priority;r++);qt.splice(r,0,e),r===0&&Hu(e)}};function Ql(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ms(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sd(){}function tv(e,t,r,o,a){if(a){if(typeof o=="function"){var c=o;o=function(){var j=Ns(h);c.call(j)}}var h=nd(t,o,e,0,null,!1,!1,"",sd);return e._reactRootContainer=h,e[Ft]=h.current,Ur(e.nodeType===8?e.parentNode:e),jn(),h}for(;a=e.lastChild;)e.removeChild(a);if(typeof o=="function"){var y=o;o=function(){var j=Ns(S);y.call(j)}}var S=$l(e,0,!1,null,null,!1,!1,"",sd);return e._reactRootContainer=S,e[Ft]=S.current,Ur(e.nodeType===8?e.parentNode:e),jn(function(){js(t,S,r,o)}),S}function Rs(e,t,r,o,a){var c=r._reactRootContainer;if(c){var h=c;if(typeof a=="function"){var y=a;a=function(){var S=Ns(h);y.call(S)}}js(t,h,e,a)}else h=tv(r,t,e,a,o);return Ns(h)}Ou=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Er(t.pendingLanes);r!==0&&(vo(t,r|1),rt(t,Ae()),(ae&6)===0&&(or=Ae()+500,rn()))}break;case 13:jn(function(){var o=Ut(e,1);if(o!==null){var a=Ze();Nt(o,e,1,a)}}),Kl(e,1)}},yo=function(e){if(e.tag===13){var t=Ut(e,134217728);if(t!==null){var r=Ze();Nt(t,e,134217728,r)}Kl(e,134217728)}},zu=function(e){if(e.tag===13){var t=cn(e),r=Ut(e,t);if(r!==null){var o=Ze();Nt(r,e,t,o)}Kl(e,t)}},Bu=function(){return pe},Uu=function(e,t){var r=pe;try{return pe=e,t()}finally{pe=r}},uo=function(e,t,r){switch(t){case"input":if(to(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=Yi(o);if(!a)throw Error(s(90));fu(o),to(o,a)}}}break;case"textarea":gu(e,r);break;case"select":t=r.value,t!=null&&Fn(e,!!r.multiple,t,!1)}},Tu=Ol,Eu=jn;var nv={usingClientEntryPoint:!1,Events:[$r,Qn,Yi,Cu,Pu,Ol]},ii={findFiberByHostInstance:xn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rv={bundleType:ii.bundleType,version:ii.version,rendererPackageName:ii.rendererPackageName,rendererConfig:ii.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Mu(e),e===null?null:e.stateNode},findFiberByHostInstance:ii.findFiberByHostInstance||ev,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 Ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ds.isDisabled&&Ds.supportsFiber)try{Ai=Ds.inject(rv),Mt=Ds}catch{}}return it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nv,it.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ql(t))throw Error(s(200));return Jg(e,t,null,r)},it.createRoot=function(e,t){if(!Ql(e))throw Error(s(299));var r=!1,o="",a=id;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=$l(e,1,!1,null,null,r,!1,o,a),e[Ft]=t.current,Ur(e.nodeType===8?e.parentNode:e),new Gl(t)},it.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(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Mu(t),e=e===null?null:e.stateNode,e},it.flushSync=function(e){return jn(e)},it.hydrate=function(e,t,r){if(!Ms(t))throw Error(s(200));return Rs(null,e,t,!0,r)},it.hydrateRoot=function(e,t,r){if(!Ql(e))throw Error(s(405));var o=r!=null&&r.hydratedSources||null,a=!1,c="",h=id;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onRecoverableError!==void 0&&(h=r.onRecoverableError)),t=nd(t,null,e,1,r??null,a,!1,c,h),e[Ft]=t.current,Ur(e),o)for(e=0;e<o.length;e++)r=o[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new As(t)},it.render=function(e,t,r){if(!Ms(t))throw Error(s(200));return Rs(null,e,t,!1,r)},it.unmountComponentAtNode=function(e){if(!Ms(e))throw Error(s(40));return e._reactRootContainer?(jn(function(){Rs(null,null,e,!1,function(){e._reactRootContainer=null,e[Ft]=null})}),!0):!1},it.unstable_batchedUpdates=Ol,it.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ms(r))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Rs(e,t,r,!1,o)},it.version="18.3.1-next-f1338f8080-20240426",it}var hd;function fv(){if(hd)return Zl.exports;hd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Zl.exports=cv(),Zl.exports}var pd;function dv(){if(pd)return Ls;pd=1;var n=fv();return Ls.createRoot=n.createRoot,Ls.hydrateRoot=n.hydrateRoot,Ls}var hv=dv();const md=(n="normal")=>{const i={normal:{connection:"connected",lastActivity:"2 minutes ago",initiatives:[{id:"1",name:"Black Friday Email",status:"active",category:"MARKETING",health:65,description:"Create and launch Black Friday promotional email campaign targeting existing customers with exclusive early access deals.",phases:[{name:"BRIEF",status:"completed"},{name:"DRAFT",status:"completed"},{name:"REVIEW",status:"warning"},{name:"SHIP",status:"upcoming"}],currentPhase:2,daysRemaining:8,activeAgents:3,totalAgents:5,avatars:["Pace","Dana","Mark"],workstreams:[{id:"w1",name:"Copy & Messaging",status:"in_progress"},{id:"w2",name:"Design Assets",status:"review"},{id:"w3",name:"Email Template",status:"pending"}]},{id:"2",name:"Q4 Feature Ship",status:"active",category:"PRODUCT",health:45,description:"Ship the Q4 product features including usage tracking, billing improvements, and dashboard enhancements.",phases:[{name:"SPEC",status:"completed"},{name:"DEV",status:"current"},{name:"QA",status:"upcoming"},{name:"DEPLOY",status:"upcoming"}],currentPhase:1,daysRemaining:13,activeAgents:2,totalAgents:4,avatars:["Eli","Dana"],workstreams:[{id:"w4",name:"Usage Tracking",status:"in_progress"},{id:"w5",name:"Billing API",status:"in_progress"},{id:"w6",name:"Dashboard UI",status:"pending"}]},{id:"3",name:"Support Automation",status:"active",category:"OPERATIONS",health:80,description:"Automate tier-1 support ticket routing and response generation.",phases:[{name:"PLAN",status:"completed"},{name:"BUILD",status:"completed"},{name:"TEST",status:"current"},{name:"LAUNCH",status:"upcoming"}],currentPhase:2,daysRemaining:5,activeAgents:1,totalAgents:2,avatars:["Eli"],workstreams:[{id:"w7",name:"Ticket Routing",status:"completed"},{id:"w8",name:"Response Gen",status:"in_progress"}]}],pendingDecisions:[{id:"d1",title:"Review GitHub connect wireframes",agent:"Dana",waitingMinutes:12,context:"4 screens ready for approval. Dana has completed the wireframes for the GitHub integration feature and needs design sign-off before proceeding to high-fidelity mockups.",artifactPreview:!0,options:[{label:"Approve",action:"approve"},{label:"Request Changes",action:"request_changes"}]},{id:"d2",title:"Approve email subject line A/B test",agent:"Mark",waitingMinutes:45,context:"Two subject line variants ready for the Black Friday campaign. Need approval to launch A/B test to 10% of the list.",options:[{label:"Approve Test",action:"approve"},{label:"Edit Variants",action:"request_changes"}]}],agents:[{id:"pace",name:"Pace",role:"Product",status:"working",task:"Updating pricing constraints",progress:75,lastActive:"2m ago",lastActiveMinutes:2},{id:"eli",name:"Eli",role:"Engineering",status:"working",task:"Usage tracking implementation",progress:90,lastActive:"5m ago",lastActiveMinutes:5},{id:"dana",name:"Dana",role:"Design",status:"waiting",task:"Waiting for review feedback",progress:null,lastActive:"12m ago",lastActiveMinutes:12,blockedBy:"Review"},{id:"mark",name:"Mark",role:"Marketing",status:"idle",task:null,progress:null,lastActive:"1h ago",lastActiveMinutes:60},{id:"sara",name:"Sara",role:"Operations",status:"planning",task:"Planning support ticket routing",progress:30,lastActive:"8m ago",lastActiveMinutes:8}],activities:[{id:"activity-1",type:"progress",agent:"Pace",agentId:"pace",title:"updated pricing constraints based on Q4 ARR targets",time:"2min ago",timeGroup:"today",isNew:!0},{id:"activity-2",type:"artifact",agent:"Eli",agentId:"eli",title:"completed usage tracking implementation",time:"5min ago",timeGroup:"today",isNew:!0,artifact:{id:"pr-123",type:"pull_request",label:"Pull request",content:`## Usage Tracking Implementation
|
|
41
|
+
|
|
42
|
+
### Changes
|
|
43
|
+
- Added event tracking for user interactions
|
|
44
|
+
- Implemented analytics dashboard integration
|
|
45
|
+
- Created usage metrics aggregation service
|
|
46
|
+
|
|
47
|
+
### Files changed
|
|
48
|
+
- src/analytics/tracker.ts
|
|
49
|
+
- src/services/metrics.ts
|
|
50
|
+
- src/components/Dashboard.tsx
|
|
51
|
+
|
|
52
|
+
### Tests
|
|
53
|
+
All 24 tests passing`,url:"https://github.com/org/repo/pull/123"}},{id:"activity-3",type:"artifact",agent:"Mark",agentId:"mark",title:"drafted campaign copy",time:"12min ago",timeGroup:"today",isNew:!1,artifact:{id:"email-456",type:"email_draft",label:"Email Draft",content:`**Subject: Black Friday - Your Exclusive Early Access**
|
|
54
|
+
|
|
55
|
+
Hi {{first_name}},
|
|
56
|
+
|
|
57
|
+
Black Friday is coming, and we wanted to make sure you're first in line.
|
|
58
|
+
|
|
59
|
+
As a valued customer, you're getting **48-hour early access** to our biggest sale of the year:
|
|
60
|
+
|
|
61
|
+
- 40% off all annual plans
|
|
62
|
+
- Free premium features for 3 months
|
|
63
|
+
- Priority support upgrade
|
|
64
|
+
|
|
65
|
+
**Your exclusive code: EARLY40**
|
|
66
|
+
|
|
67
|
+
Sale starts Thursday at midnight. Don't miss out.
|
|
68
|
+
|
|
69
|
+
Best,
|
|
70
|
+
The OrgX Team`}},{id:"activity-4",type:"decision",agent:"System",title:"Schema approach approved",time:"18min ago",timeGroup:"today",isNew:!1},{id:"activity-5",type:"handoff",agent:"Pace",agentId:"pace",title:"Event spec handed to Eli",time:"25min ago",timeGroup:"earlier",isNew:!1},{id:"activity-6",type:"artifact",agent:"Dana",agentId:"dana",title:"created wireframes for GitHub integration",time:"45min ago",timeGroup:"earlier",isNew:!1,artifact:{id:"doc-789",type:"document",label:"Design Spec",content:`# GitHub Integration Wireframes
|
|
71
|
+
|
|
72
|
+
## Overview
|
|
73
|
+
This document contains the wireframes for the GitHub integration feature.
|
|
74
|
+
|
|
75
|
+
## Screens
|
|
76
|
+
|
|
77
|
+
### 1. Connection Flow
|
|
78
|
+
- OAuth authorization screen
|
|
79
|
+
- Repository selection
|
|
80
|
+
- Permissions confirmation
|
|
81
|
+
|
|
82
|
+
### 2. Repository Dashboard
|
|
83
|
+
- Sync status indicators
|
|
84
|
+
- Recent commits view
|
|
85
|
+
- PR integration panel
|
|
86
|
+
|
|
87
|
+
### 3. Settings
|
|
88
|
+
- Connection management
|
|
89
|
+
- Sync preferences
|
|
90
|
+
- Notification settings
|
|
91
|
+
|
|
92
|
+
## Next Steps
|
|
93
|
+
- Review with engineering
|
|
94
|
+
- Finalize interactions
|
|
95
|
+
- Create high-fidelity mockups`}},{id:"activity-7",type:"progress",agent:"Eli",agentId:"eli",title:"started billing API refactor",time:"1h ago",timeGroup:"earlier",isNew:!1},{id:"activity-8",type:"completed",agent:"System",title:"Initiative planning completed",time:"2h ago",timeGroup:"earlier",isNew:!1},{id:"activity-9",type:"started",agent:"Sara",agentId:"sara",title:"began support automation planning",time:"3h ago",timeGroup:"earlier",isNew:!1}]},empty:{connection:"connected",lastActivity:null,initiatives:[],pendingDecisions:[],agents:[],activities:[]},reconnecting:{connection:"reconnecting",lastActivity:"5 minutes ago",initiatives:[],pendingDecisions:[],agents:[],activities:[]}};return i[n]||i.normal};function pv(n={}){const{pollInterval:i=5e3,useMock:s=!0}=n,[l,u]=z.useState(md("normal")),[d,f]=z.useState(!s),[p,m]=z.useState(null),g=z.useRef(),v=z.useCallback(async()=>{if(s){u(md("normal")),f(!1);return}try{const[x,k,N,A]=await Promise.all([fetch("/orgx/api/status"),fetch("/orgx/api/agents"),fetch("/orgx/api/activity"),fetch("/orgx/api/initiatives")]);if(!x.ok)throw new Error("Failed to fetch status");const M=await x.json(),D=k.ok?await k.json():[],F=N.ok?await N.json():[],B=A.ok?await A.json():[];u({connection:"connected",lastActivity:M.lastActivity??null,agents:D.agents??[],activities:F.activities??[],initiatives:B.initiatives??[],pendingDecisions:M.pendingDecisions??[]}),m(null),f(!1)}catch(x){m(x instanceof Error?x.message:"Unknown error"),u(k=>({...k,connection:"reconnecting"}))}},[s]);return z.useEffect(()=>(v(),g.current=setInterval(v,i),()=>{g.current&&clearInterval(g.current)}),[v,i]),{data:l,isLoading:d,error:p,refetch:v}}const de={lime:"#c8e64a",teal:"#7dd3c0",amber:"#f59e0b",red:"#ef4444",background:"#080808",cardBg:"#0f0f0f",cardBorder:"rgba(255, 255, 255, 0.06)"},mv={Pace:"#818cf8",Eli:"#c8e64a",Dana:"#f472b6",Mark:"#fb923c",System:"#7dd3c0"};function gv(n){return mv[n]??de.teal}function vv(n){return n.split(" ").map(i=>i[0]).join("").toUpperCase().slice(0,2)}function yv({children:n,color:i}){const s=i??de.lime;return w.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-[10px] font-semibold tracking-[0.12em] uppercase",style:{backgroundColor:`${s}1a`,border:`1px solid ${s}4d`,color:s},children:n})}function vr(...n){return n.filter(Boolean).join(" ")}function hr({children:n,className:i=""}){return w.jsxs("div",{className:vr("group relative overflow-hidden rounded-xl","shadow-[0_4px_24px_rgba(0,0,0,0.3)]",i),style:{backgroundColor:de.cardBg,border:`1px solid ${de.cardBorder}`},children:[w.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-white/[0.02] to-transparent pointer-events-none"}),n]})}const xv={working:{color:de.lime,pulse:!0},planning:{color:de.teal,pulse:!0},waiting:{color:de.amber,pulse:!1},blocked:{color:de.red,pulse:!1},idle:{color:"rgba(255,255,255,0.2)",pulse:!1},done:{color:de.teal,pulse:!1}},wv={sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function Dh({status:n,size:i="sm"}){const s=xv[n];return w.jsxs("div",{className:"relative flex items-center justify-center",children:[w.jsx("span",{className:vr("rounded-full transition-all duration-500",wv[i]),style:{backgroundColor:s.color}}),s.pulse&&w.jsx("span",{className:"absolute inset-0 rounded-full animate-ping opacity-40",style:{backgroundColor:s.color}})]})}const Sv={xs:"w-6 h-6 text-[9px]",sm:"w-8 h-8 text-[10px]",md:"w-10 h-10 text-[12px]"};function Ma({name:n,size:i="xs"}){const s=gv(n);return w.jsx("div",{className:`${Sv[i]} rounded-full flex items-center justify-center font-semibold flex-shrink-0`,style:{backgroundColor:`${s}20`,color:s,border:`1px solid ${s}30`},children:vv(n)})}function Jl({agent:n,selected:i,onSelect:s}){return w.jsxs("div",{className:vr("flex items-center gap-2.5 p-2 rounded-lg transition-all cursor-pointer",i?"bg-white/[0.06]":"hover:bg-white/[0.02]"),onClick:s,children:[w.jsxs("div",{className:"relative flex-shrink-0",children:[w.jsx(Ma,{name:n.name,size:"xs"}),w.jsx("div",{className:"absolute -bottom-0.5 -right-0.5",children:w.jsx(Dh,{status:n.status,size:"sm"})})]}),w.jsxs("div",{className:"flex-1 min-w-0",children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("span",{className:"text-[12px] font-medium text-white/90",children:n.name}),w.jsx("span",{className:"text-[9px] font-mono text-white/30",children:n.role})]}),n.task?w.jsx("p",{className:"text-[10px] text-white/40 truncate",children:n.task}):w.jsx("p",{className:"text-[10px] text-white/25 italic",children:"Idle"}),n.status==="working"&&n.progress!==null&&w.jsx("div",{className:"mt-1.5 h-0.5 rounded-full overflow-hidden bg-white/[0.06]",children:w.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n.progress}%`,background:`linear-gradient(90deg, ${de.lime}, ${de.teal})`}})})]})]})}function kv({agents:n,selectedAgentId:i,onAgentSelect:s}){const l={working:n.filter(u=>["working","planning"].includes(u.status)),waiting:n.filter(u=>["waiting","blocked"].includes(u.status)),idle:n.filter(u=>["idle","done"].includes(u.status))};return n.length===0?w.jsxs(hr,{className:"flex-1 flex flex-col min-h-0",children:[w.jsx("div",{className:"px-4 py-3 border-b border-white/[0.04]",children:w.jsx("span",{className:"text-[13px] font-medium text-white",children:"Agents"})}),w.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:w.jsxs("div",{className:"text-center",children:[w.jsx("svg",{className:"mx-auto mb-2 text-white/20",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:w.jsx("path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"})}),w.jsx("p",{className:"text-[11px] text-white/40",children:"No agents assigned"})]})})]}):w.jsxs(hr,{className:"flex-1 flex flex-col min-h-0",children:[w.jsxs("div",{className:"flex-shrink-0 px-4 py-3 flex items-center justify-between border-b border-white/[0.04]",children:[w.jsx("span",{className:"text-[13px] font-medium text-white",children:"Agents"}),w.jsxs("div",{className:"flex items-center gap-1.5",children:[w.jsx(Dh,{status:"working",size:"sm"}),w.jsx("span",{className:"text-[10px] text-white/40",children:l.working.length+l.waiting.length})]})]}),w.jsxs("div",{className:"flex-1 overflow-y-auto p-2",children:[l.working.length>0&&w.jsxs("div",{className:"mb-2",children:[w.jsx("div",{className:"px-2 py-1 text-[9px] font-semibold uppercase tracking-[0.12em] text-white/30",children:"Working"}),l.working.map(u=>w.jsx(Jl,{agent:u,selected:i===u.id,onSelect:()=>s(i===u.id?null:u.id)},u.id))]}),l.waiting.length>0&&w.jsxs("div",{className:"mb-2",children:[w.jsx("div",{className:"px-2 py-1 text-[9px] font-semibold uppercase tracking-[0.12em] text-white/30",children:"Waiting"}),l.waiting.map(u=>w.jsx(Jl,{agent:u,selected:i===u.id,onSelect:()=>s(i===u.id?null:u.id)},u.id))]}),l.idle.length>0&&w.jsxs("div",{children:[w.jsx("div",{className:"px-2 py-1 text-[9px] font-semibold uppercase tracking-[0.12em] text-white/20",children:"Idle"}),l.idle.map(u=>w.jsx(Jl,{agent:u,selected:i===u.id,onSelect:()=>s(i===u.id?null:u.id)},u.id))]})]})]})}function Lh({value:n,onChange:i,placeholder:s}){return w.jsxs("div",{className:"relative",children:[w.jsxs("svg",{className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-white/30",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("circle",{cx:"11",cy:"11",r:"8"}),w.jsx("path",{d:"m21 21-4.3-4.3"})]}),w.jsx("input",{type:"text",value:n,onChange:l=>i(l.target.value),placeholder:s,className:"w-full pl-8 pr-3 py-1.5 rounded-lg bg-white/[0.04] border border-white/[0.06] text-[11px] text-white placeholder:text-white/30 focus:outline-none focus:border-white/[0.12] transition-colors"})]})}function Cv({type:n}){return n==="pull_request"?w.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"text-white/50",children:[w.jsx("circle",{cx:"18",cy:"18",r:"3"}),w.jsx("circle",{cx:"6",cy:"6",r:"3"}),w.jsx("path",{d:"M13 6h3a2 2 0 0 1 2 2v7"}),w.jsx("path",{d:"M6 9v12"})]}):n==="email_draft"?w.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"text-white/50",children:[w.jsx("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}),w.jsx("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]}):w.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"text-white/50",children:[w.jsx("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),w.jsx("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})]})}function Pv({item:n,onArtifactClick:i}){return w.jsxs("div",{className:"flex gap-2.5 py-3 border-b border-white/[0.04] last:border-b-0",children:[w.jsx("div",{className:"flex-shrink-0 mt-0.5",children:w.jsx(Ma,{name:n.agent,size:"xs"})}),w.jsxs("div",{className:"flex-1 min-w-0",children:[w.jsxs("p",{className:"text-[12px] text-white/70 leading-relaxed",children:[w.jsx("span",{className:"font-medium text-white",children:n.agent})," ",n.title]}),w.jsx("span",{className:"text-[9px] font-mono text-white/30 mt-0.5 block",children:n.time}),n.artifact&&w.jsxs("button",{onClick:()=>i==null?void 0:i(n.artifact),className:"mt-2 inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg transition-all hover:bg-white/[0.08] group",style:{backgroundColor:"rgba(255, 255, 255, 0.04)",border:`1px solid ${de.cardBorder}`},children:[w.jsx(Cv,{type:n.artifact.type}),w.jsx("span",{className:"text-[11px] text-white/60 group-hover:text-white/80",children:n.artifact.label}),w.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"text-white/30 group-hover:text-white/50 ml-1",children:[w.jsx("path",{d:"M15 3h6v6"}),w.jsx("path",{d:"M10 14 21 3"}),w.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})]})]})]})}function Tv({activities:n,selectedAgentId:i,onClearAgentFilter:s,onArtifactClick:l}){const[u,d]=z.useState("all"),[f,p]=z.useState(""),[m,g]=z.useState(0),v=10,x=n.filter(A=>i&&A.agentId!==i||f&&!A.title.toLowerCase().includes(f.toLowerCase())?!1:u==="all"?!0:u==="artifacts"?A.type==="artifact":u==="decisions"?["decision","blocked"].includes(A.type):!0),k=Math.ceil(x.length/v),N=x.slice(m*v,(m+1)*v);return n.length===0?w.jsxs(hr,{className:"flex-1 flex flex-col min-h-0",children:[w.jsx("div",{className:"px-4 py-3 border-b border-white/[0.04]",children:w.jsx("span",{className:"text-[13px] font-medium text-white",children:"Activity"})}),w.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:w.jsxs("div",{className:"text-center",children:[w.jsxs("svg",{className:"mx-auto mb-2 text-white/20",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[w.jsx("circle",{cx:"12",cy:"12",r:"10"}),w.jsx("polyline",{points:"12 6 12 12 16 14"})]}),w.jsx("p",{className:"text-[11px] text-white/40",children:"Waiting for activity"})]})})]}):w.jsxs(hr,{className:"flex-1 flex flex-col min-h-0",children:[w.jsxs("div",{className:"flex-shrink-0 px-4 py-3 border-b border-white/[0.04]",children:[w.jsxs("div",{className:"flex items-center justify-between mb-2",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"text-[13px] font-medium text-white",children:"Activity"}),w.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[w.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",style:{backgroundColor:de.lime}}),w.jsx("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5",style:{backgroundColor:de.lime}})]}),i&&w.jsxs("button",{onClick:s,className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-[9px] bg-white/[0.06] text-white/50 hover:bg-white/[0.1]",children:[w.jsxs("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[w.jsx("path",{d:"M18 6 6 18"}),w.jsx("path",{d:"m6 6 12 12"})]}),"Filter"]})]}),w.jsx("div",{className:"flex p-0.5 rounded-lg",style:{backgroundColor:"rgba(255, 255, 255, 0.03)"},children:["all","artifacts","decisions"].map(A=>w.jsx("button",{onClick:()=>{d(A),g(0)},className:vr("px-2 py-0.5 rounded text-[9px] font-medium transition-all",u===A?"bg-white/[0.08] text-white":"text-white/40 hover:text-white/60"),children:A.charAt(0).toUpperCase()+A.slice(1)},A))})]}),w.jsx(Lh,{value:f,onChange:A=>{p(A),g(0)},placeholder:"Search activity..."})]}),w.jsx("div",{className:"flex-1 overflow-y-auto px-4",children:N.map(A=>w.jsx(Pv,{item:A,onArtifactClick:l},A.id))}),k>1&&w.jsxs("div",{className:"flex-shrink-0 px-4 py-2 border-t border-white/[0.04] flex items-center justify-between",children:[w.jsx("button",{onClick:()=>g(Math.max(0,m-1)),disabled:m===0,className:"p-1 rounded text-white/40 hover:text-white disabled:opacity-30",children:w.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:w.jsx("path",{d:"m15 18-6-6 6-6"})})}),w.jsxs("span",{className:"text-[10px] text-white/40",children:[m+1," / ",k]}),w.jsx("button",{onClick:()=>g(Math.min(k-1,m+1)),disabled:m>=k-1,className:"p-1 rounded text-white/40 hover:text-white disabled:opacity-30",children:w.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:w.jsx("path",{d:"m9 18 6-6-6-6"})})})]})]})}function Ev({phases:n,currentPhase:i}){return w.jsxs("div",{className:"relative",children:[w.jsx("div",{className:"relative flex items-center",children:n.map((s,l)=>{const u=l===n.length-1,d=l<i?100:l===i?50:0;return w.jsxs("div",{className:"flex-1 relative",children:[w.jsx("div",{className:"h-1 rounded-full bg-white/[0.08]",children:w.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${d}%`,background:`linear-gradient(90deg, ${de.lime}, ${de.teal})`}})}),!u&&w.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 translate-x-1/2 z-10",children:s.status==="completed"||s.status==="current"?w.jsx("div",{className:"w-3.5 h-3.5 rounded-full flex items-center justify-center",style:{backgroundColor:de.lime},children:w.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"black",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:w.jsx("polyline",{points:"20 6 9 17 4 12"})})}):s.status==="warning"?w.jsx("div",{className:"w-3.5 h-3.5 rounded-full flex items-center justify-center",style:{backgroundColor:de.teal},children:w.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"black",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:w.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"})})}):w.jsx("div",{className:"w-2 h-2 rounded-full bg-white/20"})})]},s.name)})}),w.jsx("div",{className:"flex justify-between mt-1.5",children:n.map(s=>w.jsx("span",{className:vr("text-[8px] font-medium tracking-wider uppercase",s.status==="completed"||s.status==="current"?"text-white/50":"text-white/25"),children:s.name},s.name))})]})}function jv({names:n}){return w.jsx("div",{className:"flex -space-x-1",children:n.slice(0,3).map((i,s)=>w.jsx("div",{className:"relative",style:{zIndex:n.length-s},children:w.jsx(Ma,{name:i,size:"xs"})},i))})}function Nv({initiative:n,onClick:i}){const s=n.phases??[],l=n.currentPhase??0,u=n.avatars??[];return w.jsxs("button",{onClick:i,className:"w-full text-left p-3 rounded-lg bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:[w.jsxs("div",{className:"flex items-start gap-2.5 mb-2",children:[u.length>0&&w.jsx(jv,{names:u}),w.jsxs("div",{className:"flex-1 min-w-0",children:[w.jsx("h4",{className:"text-[12px] font-medium text-white truncate",children:n.name}),w.jsx("span",{className:"text-[9px] font-medium tracking-wider text-white/40 uppercase",children:n.category??"INITIATIVE"})]})]}),s.length>0&&w.jsx(Ev,{phases:s,currentPhase:l})]})}function Av({initiatives:n,onInitiativeClick:i}){const[s,l]=z.useState(""),[u,d]=z.useState(0),f=5,p=n.filter(v=>v.name.toLowerCase().includes(s.toLowerCase())),m=Math.ceil(p.length/f),g=p.slice(u*f,(u+1)*f);return n.length===0?w.jsxs(hr,{className:"flex-1 flex flex-col min-h-0",children:[w.jsx("div",{className:"px-4 py-3 border-b border-white/[0.04]",children:w.jsx("span",{className:"text-[13px] font-medium text-white",children:"Initiatives"})}),w.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:w.jsxs("div",{className:"text-center",children:[w.jsx("svg",{className:"mx-auto mb-2 text-white/20",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:w.jsx("path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"})}),w.jsx("p",{className:"text-[11px] text-white/40",children:"No active initiatives"})]})})]}):w.jsxs(hr,{className:"flex-1 flex flex-col min-h-0",children:[w.jsxs("div",{className:"flex-shrink-0 px-4 py-3 border-b border-white/[0.04]",children:[w.jsxs("div",{className:"flex items-center justify-between mb-2",children:[w.jsx("span",{className:"text-[13px] font-medium text-white",children:"Initiatives"}),w.jsx("span",{className:"text-[10px] text-white/30",children:n.length})]}),n.length>3&&w.jsx(Lh,{value:s,onChange:l,placeholder:"Search..."})]}),w.jsx("div",{className:"flex-1 overflow-y-auto p-3 space-y-2",children:g.map(v=>w.jsx(Nv,{initiative:v,onClick:()=>i(v)},v.id))}),m>1&&w.jsxs("div",{className:"flex-shrink-0 px-4 py-2 border-t border-white/[0.04] flex items-center justify-between",children:[w.jsx("button",{onClick:()=>d(Math.max(0,u-1)),disabled:u===0,className:"p-1 rounded text-white/40 hover:text-white disabled:opacity-30",children:w.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:w.jsx("path",{d:"m15 18-6-6 6-6"})})}),w.jsxs("span",{className:"text-[10px] text-white/40",children:[u+1," / ",m]}),w.jsx("button",{onClick:()=>d(Math.min(m-1,u+1)),disabled:u>=m-1,className:"p-1 rounded text-white/40 hover:text-white disabled:opacity-30",children:w.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:w.jsx("path",{d:"m9 18 6-6-6-6"})})})]})]})}function Mv({decisions:n,onDecide:i}){if(!n||n.length===0)return null;const s=n[0],l=n.length-1,u=s.waitingMinutes>=60?de.red:de.amber;return w.jsxs("div",{className:"flex-shrink-0 flex items-center justify-between px-4 py-2 mx-4 mt-3 rounded-xl",style:{backgroundColor:de.cardBg,border:`1px solid ${de.cardBorder}`},children:[w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}),w.jsx("path",{d:"M12 8v4"}),w.jsx("path",{d:"M12 16h.01"})]}),w.jsxs("div",{children:[w.jsx("span",{className:"text-xs font-medium text-white",children:s.title}),w.jsxs("span",{className:"text-[10px] text-white/40 ml-2",children:[s.agent," · ",s.waitingMinutes,"m"]})]}),l>0&&w.jsxs("span",{className:"px-1.5 py-0.5 rounded text-[9px] font-bold",style:{color:u,backgroundColor:`${u}15`},children:["+",l]})]}),w.jsx("button",{onClick:()=>i(s),className:"px-3 py-1 rounded-lg text-[10px] font-bold",style:{backgroundColor:u,color:"#000"},children:"REVIEW"})]})}const Ra=z.createContext({});function Da(n){const i=z.useRef(null);return i.current===null&&(i.current=n()),i.current}const Ys=z.createContext(null),La=z.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class Rv extends z.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const l=this.props.sizeRef.current;l.height=s.offsetHeight||0,l.width=s.offsetWidth||0,l.top=s.offsetTop,l.left=s.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Dv({children:n,isPresent:i}){const s=z.useId(),l=z.useRef(null),u=z.useRef({width:0,height:0,top:0,left:0}),{nonce:d}=z.useContext(La);return z.useInsertionEffect(()=>{const{width:f,height:p,top:m,left:g}=u.current;if(i||!l.current||!f||!p)return;l.current.dataset.motionPopId=s;const v=document.createElement("style");return d&&(v.nonce=d),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
96
|
+
[data-motion-pop-id="${s}"] {
|
|
97
|
+
position: absolute !important;
|
|
98
|
+
width: ${f}px !important;
|
|
99
|
+
height: ${p}px !important;
|
|
100
|
+
top: ${m}px !important;
|
|
101
|
+
left: ${g}px !important;
|
|
102
|
+
}
|
|
103
|
+
`),()=>{document.head.removeChild(v)}},[i]),w.jsx(Rv,{isPresent:i,childRef:l,sizeRef:u,children:z.cloneElement(n,{ref:l})})}const Lv=({children:n,initial:i,isPresent:s,onExitComplete:l,custom:u,presenceAffectsLayout:d,mode:f})=>{const p=Da(Vv),m=z.useId(),g=z.useCallback(x=>{p.set(x,!0);for(const k of p.values())if(!k)return;l&&l()},[p,l]),v=z.useMemo(()=>({id:m,initial:i,isPresent:s,custom:u,onExitComplete:g,register:x=>(p.set(x,!1),()=>p.delete(x))}),d?[Math.random(),g]:[s,g]);return z.useMemo(()=>{p.forEach((x,k)=>p.set(k,!1))},[s]),z.useEffect(()=>{!s&&!p.size&&l&&l()},[s]),f==="popLayout"&&(n=w.jsx(Dv,{isPresent:s,children:n})),w.jsx(Ys.Provider,{value:v,children:n})};function Vv(){return new Map}function Vh(n=!0){const i=z.useContext(Ys);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:l,register:u}=i,d=z.useId();z.useEffect(()=>{n&&u(d)},[n]);const f=z.useCallback(()=>n&&l&&l(d),[d,l,n]);return!s&&l?[!1,f]:[!0]}const Vs=n=>n.key||"";function gd(n){const i=[];return z.Children.forEach(n,s=>{z.isValidElement(s)&&i.push(s)}),i}const Va=typeof window<"u",_h=Va?z.useLayoutEffect:z.useEffect,_v=({children:n,custom:i,initial:s=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync",propagate:f=!1})=>{const[p,m]=Vh(f),g=z.useMemo(()=>gd(n),[n]),v=f&&!p?[]:g.map(Vs),x=z.useRef(!0),k=z.useRef(g),N=Da(()=>new Map),[A,M]=z.useState(g),[D,F]=z.useState(g);_h(()=>{x.current=!1,k.current=g;for(let X=0;X<D.length;X++){const U=Vs(D[X]);v.includes(U)?N.delete(U):N.get(U)!==!0&&N.set(U,!1)}},[D,v.length,v.join("-")]);const B=[];if(g!==A){let X=[...g];for(let U=0;U<D.length;U++){const ee=D[U],le=Vs(ee);v.includes(le)||(X.splice(U,0,ee),B.push(ee))}d==="wait"&&B.length&&(X=B),F(gd(X)),M(g);return}const{forceRender:K}=z.useContext(Ra);return w.jsx(w.Fragment,{children:D.map(X=>{const U=Vs(X),ee=f&&!p?!1:g===D||v.includes(U),le=()=>{if(N.has(U))N.set(U,!0);else return;let Z=!0;N.forEach(ve=>{ve||(Z=!1)}),Z&&(K==null||K(),F(k.current),f&&(m==null||m()),l&&l())};return w.jsx(Lv,{isPresent:ee,initial:!x.current||s?void 0:!1,custom:ee?void 0:i,presenceAffectsLayout:u,mode:d,onExitComplete:ee?void 0:le,children:X},U)})})},ft=n=>n;let Ih=ft;function _a(n){let i;return()=>(i===void 0&&(i=n()),i)}const pr=(n,i,s)=>{const l=i-n;return l===0?1:(s-n)/l},Kt=n=>n*1e3,Gt=n=>n/1e3,Iv={useManualTiming:!1};function Fv(n){let i=new Set,s=new Set,l=!1,u=!1;const d=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function p(g){d.has(g)&&(m.schedule(g),n()),g(f)}const m={schedule:(g,v=!1,x=!1)=>{const N=x&&l?i:s;return v&&d.add(g),N.has(g)||N.add(g),g},cancel:g=>{s.delete(g),d.delete(g)},process:g=>{if(f=g,l){u=!0;return}l=!0,[i,s]=[s,i],i.forEach(p),i.clear(),l=!1,u&&(u=!1,m.process(g))}};return m}const _s=["read","resolveKeyframes","update","preRender","render","postRender"],Ov=40;function Fh(n,i){let s=!1,l=!0;const u={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=_s.reduce((F,B)=>(F[B]=Fv(d),F),{}),{read:p,resolveKeyframes:m,update:g,preRender:v,render:x,postRender:k}=f,N=()=>{const F=performance.now();s=!1,u.delta=l?1e3/60:Math.max(Math.min(F-u.timestamp,Ov),1),u.timestamp=F,u.isProcessing=!0,p.process(u),m.process(u),g.process(u),v.process(u),x.process(u),k.process(u),u.isProcessing=!1,s&&i&&(l=!1,n(N))},A=()=>{s=!0,l=!0,u.isProcessing||n(N)};return{schedule:_s.reduce((F,B)=>{const K=f[B];return F[B]=(X,U=!1,ee=!1)=>(s||A(),K.schedule(X,U,ee)),F},{}),cancel:F=>{for(let B=0;B<_s.length;B++)f[_s[B]].cancel(F)},state:u,steps:f}}const{schedule:we,cancel:mn,state:Be,steps:ea}=Fh(typeof requestAnimationFrame<"u"?requestAnimationFrame:ft,!0),Oh=z.createContext({strict:!1}),vd={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"]},mr={};for(const n in vd)mr[n]={isEnabled:i=>vd[n].some(s=>!!i[s])};function zv(n){for(const i in n)mr[i]={...mr[i],...n[i]}}const Bv=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 Us(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Bv.has(n)}let zh=n=>!Us(n);function Uv(n){n&&(zh=i=>i.startsWith("on")?!Us(i):n(i))}try{Uv(require("@emotion/is-prop-valid").default)}catch{}function Wv(n,i,s){const l={};for(const u in n)u==="values"&&typeof n.values=="object"||(zh(u)||s===!0&&Us(u)||!i&&!Us(u)||n.draggable&&u.startsWith("onDrag"))&&(l[u]=n[u]);return l}function Hv(n){if(typeof Proxy>"u")return n;const i=new Map,s=(...l)=>n(...l);return new Proxy(s,{get:(l,u)=>u==="create"?n:(i.has(u)||i.set(u,n(u)),i.get(u))})}const Xs=z.createContext({});function pi(n){return typeof n=="string"||Array.isArray(n)}function Zs(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}const Ia=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fa=["initial",...Ia];function qs(n){return Zs(n.animate)||Fa.some(i=>pi(n[i]))}function Bh(n){return!!(qs(n)||n.variants)}function $v(n,i){if(qs(n)){const{initial:s,animate:l}=n;return{initial:s===!1||pi(s)?s:void 0,animate:pi(l)?l:void 0}}return n.inherit!==!1?i:{}}function Kv(n){const{initial:i,animate:s}=$v(n,z.useContext(Xs));return z.useMemo(()=>({initial:i,animate:s}),[yd(i),yd(s)])}function yd(n){return Array.isArray(n)?n.join(" "):n}const Gv=Symbol.for("motionComponentSymbol");function ar(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function Qv(n,i,s){return z.useCallback(l=>{l&&n.onMount&&n.onMount(l),i&&(l?i.mount(l):i.unmount()),s&&(typeof s=="function"?s(l):ar(s)&&(s.current=l))},[i])}const Oa=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Yv="framerAppearId",Uh="data-"+Oa(Yv),{schedule:za}=Fh(queueMicrotask,!1),Wh=z.createContext({});function Xv(n,i,s,l,u){var d,f;const{visualElement:p}=z.useContext(Xs),m=z.useContext(Oh),g=z.useContext(Ys),v=z.useContext(La).reducedMotion,x=z.useRef(null);l=l||m.renderer,!x.current&&l&&(x.current=l(n,{visualState:i,parent:p,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v}));const k=x.current,N=z.useContext(Wh);k&&!k.projection&&u&&(k.type==="html"||k.type==="svg")&&Zv(x.current,s,u,N);const A=z.useRef(!1);z.useInsertionEffect(()=>{k&&A.current&&k.update(s,g)});const M=s[Uh],D=z.useRef(!!M&&!(!((d=window.MotionHandoffIsComplete)===null||d===void 0)&&d.call(window,M))&&((f=window.MotionHasOptimisedAnimation)===null||f===void 0?void 0:f.call(window,M)));return _h(()=>{k&&(A.current=!0,window.MotionIsMounted=!0,k.updateFeatures(),za.render(k.render),D.current&&k.animationState&&k.animationState.animateChanges())}),z.useEffect(()=>{k&&(!D.current&&k.animationState&&k.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var F;(F=window.MotionHandoffMarkAsComplete)===null||F===void 0||F.call(window,M)}),D.current=!1))}),k}function Zv(n,i,s,l){const{layoutId:u,layout:d,drag:f,dragConstraints:p,layoutScroll:m,layoutRoot:g}=i;n.projection=new s(n.latestValues,i["data-framer-portal-id"]?void 0:Hh(n.parent)),n.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!f||p&&ar(p),visualElement:n,animationType:typeof d=="string"?d:"both",initialPromotionConfig:l,layoutScroll:m,layoutRoot:g})}function Hh(n){if(n)return n.options.allowProjection!==!1?n.projection:Hh(n.parent)}function qv({preloadedFeatures:n,createVisualElement:i,useRender:s,useVisualState:l,Component:u}){var d,f;n&&zv(n);function p(g,v){let x;const k={...z.useContext(La),...g,layoutId:bv(g)},{isStatic:N}=k,A=Kv(g),M=l(g,N);if(!N&&Va){Jv();const D=ey(k);x=D.MeasureLayout,A.visualElement=Xv(u,M,k,i,D.ProjectionNode)}return w.jsxs(Xs.Provider,{value:A,children:[x&&A.visualElement?w.jsx(x,{visualElement:A.visualElement,...k}):null,s(u,g,Qv(M,A.visualElement,v),M,N,A.visualElement)]})}p.displayName=`motion.${typeof u=="string"?u:`create(${(f=(d=u.displayName)!==null&&d!==void 0?d:u.name)!==null&&f!==void 0?f:""})`}`;const m=z.forwardRef(p);return m[Gv]=u,m}function bv({layoutId:n}){const i=z.useContext(Ra).id;return i&&n!==void 0?i+"-"+n:n}function Jv(n,i){z.useContext(Oh).strict}function ey(n){const{drag:i,layout:s}=mr;if(!i&&!s)return{};const l={...i,...s};return{MeasureLayout:i!=null&&i.isEnabled(n)||s!=null&&s.isEnabled(n)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}const ty=["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 Ba(n){return typeof n!="string"||n.includes("-")?!1:!!(ty.indexOf(n)>-1||/[A-Z]/u.test(n))}function xd(n){const i=[{},{}];return n==null||n.values.forEach((s,l)=>{i[0][l]=s.get(),i[1][l]=s.getVelocity()}),i}function Ua(n,i,s,l){if(typeof i=="function"){const[u,d]=xd(l);i=i(s!==void 0?s:n.custom,u,d)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[u,d]=xd(l);i=i(s!==void 0?s:n.custom,u,d)}return i}const ha=n=>Array.isArray(n),ny=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),ry=n=>ha(n)?n[n.length-1]||0:n,Ge=n=>!!(n&&n.getVelocity);function Os(n){const i=Ge(n)?n.get():n;return ny(i)?i.toValue():i}function iy({scrapeMotionValuesFromProps:n,createRenderState:i,onUpdate:s},l,u,d){const f={latestValues:sy(l,u,d,n),renderState:i()};return s&&(f.onMount=p=>s({props:l,current:p,...f}),f.onUpdate=p=>s(p)),f}const $h=n=>(i,s)=>{const l=z.useContext(Xs),u=z.useContext(Ys),d=()=>iy(n,i,l,u);return s?d():Da(d)};function sy(n,i,s,l){const u={},d=l(n,{});for(const k in d)u[k]=Os(d[k]);let{initial:f,animate:p}=n;const m=qs(n),g=Bh(n);i&&g&&!m&&n.inherit!==!1&&(f===void 0&&(f=i.initial),p===void 0&&(p=i.animate));let v=s?s.initial===!1:!1;v=v||f===!1;const x=v?p:f;if(x&&typeof x!="boolean"&&!Zs(x)){const k=Array.isArray(x)?x:[x];for(let N=0;N<k.length;N++){const A=Ua(n,k[N]);if(A){const{transitionEnd:M,transition:D,...F}=A;for(const B in F){let K=F[B];if(Array.isArray(K)){const X=v?K.length-1:0;K=K[X]}K!==null&&(u[B]=K)}for(const B in M)u[B]=M[B]}}}return u}const yr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],In=new Set(yr),Kh=n=>i=>typeof i=="string"&&i.startsWith(n),Gh=Kh("--"),oy=Kh("var(--"),Wa=n=>oy(n)?ly.test(n.split("/*")[0].trim()):!1,ly=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qh=(n,i)=>i&&typeof n=="number"?i.transform(n):n,Qt=(n,i,s)=>s>i?i:s<n?n:s,xr={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},mi={...xr,transform:n=>Qt(0,1,n)},Is={...xr,default:1},xi=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),pn=xi("deg"),_t=xi("%"),te=xi("px"),ay=xi("vh"),uy=xi("vw"),wd={..._t,parse:n=>_t.parse(n)/100,transform:n=>_t.transform(n*100)},cy={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te},fy={rotate:pn,rotateX:pn,rotateY:pn,rotateZ:pn,scale:Is,scaleX:Is,scaleY:Is,scaleZ:Is,skew:pn,skewX:pn,skewY:pn,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:mi,originX:wd,originY:wd,originZ:te},Sd={...xr,transform:Math.round},Ha={...cy,...fy,zIndex:Sd,size:te,fillOpacity:mi,strokeOpacity:mi,numOctaves:Sd},dy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hy=yr.length;function py(n,i,s){let l="",u=!0;for(let d=0;d<hy;d++){const f=yr[d],p=n[f];if(p===void 0)continue;let m=!0;if(typeof p=="number"?m=p===(f.startsWith("scale")?1:0):m=parseFloat(p)===0,!m||s){const g=Qh(p,Ha[f]);if(!m){u=!1;const v=dy[f]||f;l+=`${v}(${g}) `}s&&(i[f]=g)}}return l=l.trim(),s?l=s(i,u?"":l):u&&(l="none"),l}function $a(n,i,s){const{style:l,vars:u,transformOrigin:d}=n;let f=!1,p=!1;for(const m in i){const g=i[m];if(In.has(m)){f=!0;continue}else if(Gh(m)){u[m]=g;continue}else{const v=Qh(g,Ha[m]);m.startsWith("origin")?(p=!0,d[m]=v):l[m]=v}}if(i.transform||(f||s?l.transform=py(i,n.transform,s):l.transform&&(l.transform="none")),p){const{originX:m="50%",originY:g="50%",originZ:v=0}=d;l.transformOrigin=`${m} ${g} ${v}`}}const my={offset:"stroke-dashoffset",array:"stroke-dasharray"},gy={offset:"strokeDashoffset",array:"strokeDasharray"};function vy(n,i,s=1,l=0,u=!0){n.pathLength=1;const d=u?my:gy;n[d.offset]=te.transform(-l);const f=te.transform(i),p=te.transform(s);n[d.array]=`${f} ${p}`}function kd(n,i,s){return typeof n=="string"?n:te.transform(i+s*n)}function yy(n,i,s){const l=kd(i,n.x,n.width),u=kd(s,n.y,n.height);return`${l} ${u}`}function Ka(n,{attrX:i,attrY:s,attrScale:l,originX:u,originY:d,pathLength:f,pathSpacing:p=1,pathOffset:m=0,...g},v,x){if($a(n,g,x),v){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:k,style:N,dimensions:A}=n;k.transform&&(A&&(N.transform=k.transform),delete k.transform),A&&(u!==void 0||d!==void 0||N.transform)&&(N.transformOrigin=yy(A,u!==void 0?u:.5,d!==void 0?d:.5)),i!==void 0&&(k.x=i),s!==void 0&&(k.y=s),l!==void 0&&(k.scale=l),f!==void 0&&vy(k,f,p,m,!1)}const Ga=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Yh=()=>({...Ga(),attrs:{}}),Qa=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Xh(n,{style:i,vars:s},l,u){Object.assign(n.style,i,u&&u.getProjectionStyles(l));for(const d in s)n.style.setProperty(d,s[d])}const Zh=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 qh(n,i,s,l){Xh(n,i,void 0,l);for(const u in i.attrs)n.setAttribute(Zh.has(u)?u:Oa(u),i.attrs[u])}const Ws={};function xy(n){Object.assign(Ws,n)}function bh(n,{layout:i,layoutId:s}){return In.has(n)||n.startsWith("origin")||(i||s!==void 0)&&(!!Ws[n]||n==="opacity")}function Ya(n,i,s){var l;const{style:u}=n,d={};for(const f in u)(Ge(u[f])||i.style&&Ge(i.style[f])||bh(f,n)||((l=s==null?void 0:s.getValue(f))===null||l===void 0?void 0:l.liveStyle)!==void 0)&&(d[f]=u[f]);return d}function Jh(n,i,s){const l=Ya(n,i,s);for(const u in n)if(Ge(n[u])||Ge(i[u])){const d=yr.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;l[d]=n[u]}return l}function wy(n,i){try{i.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{i.dimensions={x:0,y:0,width:0,height:0}}}const Cd=["x","y","width","height","cx","cy","r"],Sy={useVisualState:$h({scrapeMotionValuesFromProps:Jh,createRenderState:Yh,onUpdate:({props:n,prevProps:i,current:s,renderState:l,latestValues:u})=>{if(!s)return;let d=!!n.drag;if(!d){for(const p in u)if(In.has(p)){d=!0;break}}if(!d)return;let f=!i;if(i)for(let p=0;p<Cd.length;p++){const m=Cd[p];n[m]!==i[m]&&(f=!0)}f&&we.read(()=>{wy(s,l),we.render(()=>{Ka(l,u,Qa(s.tagName),n.transformTemplate),qh(s,l)})})}})},ky={useVisualState:$h({scrapeMotionValuesFromProps:Ya,createRenderState:Ga})};function ep(n,i,s){for(const l in i)!Ge(i[l])&&!bh(l,s)&&(n[l]=i[l])}function Cy({transformTemplate:n},i){return z.useMemo(()=>{const s=Ga();return $a(s,i,n),Object.assign({},s.vars,s.style)},[i])}function Py(n,i){const s=n.style||{},l={};return ep(l,s,n),Object.assign(l,Cy(n,i)),l}function Ty(n,i){const s={},l=Py(n,i);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=l,s}function Ey(n,i,s,l){const u=z.useMemo(()=>{const d=Yh();return Ka(d,i,Qa(l),n.transformTemplate),{...d.attrs,style:{...d.style}}},[i]);if(n.style){const d={};ep(d,n.style,n),u.style={...d,...u.style}}return u}function jy(n=!1){return(s,l,u,{latestValues:d},f)=>{const m=(Ba(s)?Ey:Ty)(l,d,f,s),g=Wv(l,typeof s=="string",n),v=s!==z.Fragment?{...g,...m,ref:u}:{},{children:x}=l,k=z.useMemo(()=>Ge(x)?x.get():x,[x]);return z.createElement(s,{...v,children:k})}}function Ny(n,i){return function(l,{forwardMotionProps:u}={forwardMotionProps:!1}){const f={...Ba(l)?Sy:ky,preloadedFeatures:n,useRender:jy(u),createVisualElement:i,Component:l};return qv(f)}}function tp(n,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==n.length)return!1;for(let l=0;l<s;l++)if(i[l]!==n[l])return!1;return!0}function bs(n,i,s){const l=n.getProps();return Ua(l,i,s!==void 0?s:l.custom,n)}const Ay=_a(()=>window.ScrollTimeline!==void 0);class My{constructor(i){this.stop=()=>this.runAll("stop"),this.animations=i.filter(Boolean)}get finished(){return Promise.all(this.animations.map(i=>"finished"in i?i.finished:i))}getAll(i){return this.animations[0][i]}setAll(i,s){for(let l=0;l<this.animations.length;l++)this.animations[l][i]=s}attachTimeline(i,s){const l=this.animations.map(u=>{if(Ay()&&u.attachTimeline)return u.attachTimeline(i);if(typeof s=="function")return s(u)});return()=>{l.forEach((u,d)=>{u&&u(),this.animations[d].stop()})}}get time(){return this.getAll("time")}set time(i){this.setAll("time",i)}get speed(){return this.getAll("speed")}set speed(i){this.setAll("speed",i)}get startTime(){return this.getAll("startTime")}get duration(){let i=0;for(let s=0;s<this.animations.length;s++)i=Math.max(i,this.animations[s].duration);return i}runAll(i){this.animations.forEach(s=>s[i]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Ry extends My{then(i,s){return Promise.all(this.animations).then(i).catch(s)}}function Xa(n,i){return n?n[i]||n.default||n:void 0}const pa=2e4;function np(n){let i=0;const s=50;let l=n.next(i);for(;!l.done&&i<pa;)i+=s,l=n.next(i);return i>=pa?1/0:i}function Za(n){return typeof n=="function"}function Pd(n,i){n.timeline=i,n.onfinish=null}const qa=n=>Array.isArray(n)&&typeof n[0]=="number",Dy={linearEasing:void 0};function Ly(n,i){const s=_a(n);return()=>{var l;return(l=Dy[i])!==null&&l!==void 0?l:s()}}const Hs=Ly(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),rp=(n,i,s=10)=>{let l="";const u=Math.max(Math.round(i/s),2);for(let d=0;d<u;d++)l+=n(pr(0,u-1,d))+", ";return`linear(${l.substring(0,l.length-2)})`};function ip(n){return!!(typeof n=="function"&&Hs()||!n||typeof n=="string"&&(n in ma||Hs())||qa(n)||Array.isArray(n)&&n.every(ip))}const li=([n,i,s,l])=>`cubic-bezier(${n}, ${i}, ${s}, ${l})`,ma={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:li([0,.65,.55,1]),circOut:li([.55,0,1,.45]),backIn:li([.31,.01,.66,-.59]),backOut:li([.33,1.53,.69,.99])};function sp(n,i){if(n)return typeof n=="function"&&Hs()?rp(n,i):qa(n)?li(n):Array.isArray(n)?n.map(s=>sp(s,i)||ma.easeOut):ma[n]}const At={x:!1,y:!1};function op(){return At.x||At.y}function Vy(n,i,s){var l;if(n instanceof Element)return[n];if(typeof n=="string"){let u=document;const d=(l=void 0)!==null&&l!==void 0?l:u.querySelectorAll(n);return d?Array.from(d):[]}return Array.from(n)}function lp(n,i){const s=Vy(n),l=new AbortController,u={passive:!0,...i,signal:l.signal};return[s,u,()=>l.abort()]}function Td(n){return i=>{i.pointerType==="touch"||op()||n(i)}}function _y(n,i,s={}){const[l,u,d]=lp(n,s),f=Td(p=>{const{target:m}=p,g=i(p);if(typeof g!="function"||!m)return;const v=Td(x=>{g(x),m.removeEventListener("pointerleave",v)});m.addEventListener("pointerleave",v,u)});return l.forEach(p=>{p.addEventListener("pointerenter",f,u)}),d}const ap=(n,i)=>i?n===i?!0:ap(n,i.parentElement):!1,ba=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Iy=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fy(n){return Iy.has(n.tagName)||n.tabIndex!==-1}const ai=new WeakSet;function Ed(n){return i=>{i.key==="Enter"&&n(i)}}function ta(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const Oy=(n,i)=>{const s=n.currentTarget;if(!s)return;const l=Ed(()=>{if(ai.has(s))return;ta(s,"down");const u=Ed(()=>{ta(s,"up")}),d=()=>ta(s,"cancel");s.addEventListener("keyup",u,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",l,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",l),i)};function jd(n){return ba(n)&&!op()}function zy(n,i,s={}){const[l,u,d]=lp(n,s),f=p=>{const m=p.currentTarget;if(!jd(p)||ai.has(m))return;ai.add(m);const g=i(p),v=(N,A)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",k),!(!jd(N)||!ai.has(m))&&(ai.delete(m),typeof g=="function"&&g(N,{success:A}))},x=N=>{v(N,s.useGlobalTarget||ap(m,N.target))},k=N=>{v(N,!1)};window.addEventListener("pointerup",x,u),window.addEventListener("pointercancel",k,u)};return l.forEach(p=>{!Fy(p)&&p.getAttribute("tabindex")===null&&(p.tabIndex=0),(s.useGlobalTarget?window:p).addEventListener("pointerdown",f,u),p.addEventListener("focus",g=>Oy(g,u),u)}),d}function By(n){return n==="x"||n==="y"?At[n]?null:(At[n]=!0,()=>{At[n]=!1}):At.x||At.y?null:(At.x=At.y=!0,()=>{At.x=At.y=!1})}const up=new Set(["width","height","top","left","right","bottom",...yr]);let zs;function Uy(){zs=void 0}const It={now:()=>(zs===void 0&&It.set(Be.isProcessing||Iv.useManualTiming?Be.timestamp:performance.now()),zs),set:n=>{zs=n,queueMicrotask(Uy)}};function Ja(n,i){n.indexOf(i)===-1&&n.push(i)}function eu(n,i){const s=n.indexOf(i);s>-1&&n.splice(s,1)}class tu{constructor(){this.subscriptions=[]}add(i){return Ja(this.subscriptions,i),()=>eu(this.subscriptions,i)}notify(i,s,l){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](i,s,l);else for(let d=0;d<u;d++){const f=this.subscriptions[d];f&&f(i,s,l)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function cp(n,i){return i?n*(1e3/i):0}const Nd=30,Wy=n=>!isNaN(parseFloat(n));class Hy{constructor(i,s={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(l,u=!0)=>{const d=It.now();this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(l),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=It.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=Wy(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new tu);const l=this.events[i].add(s);return i==="change"?()=>{l(),we.read(()=>{this.events.change.getSize()||this.stop()})}:l}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i,s=!0){!s||!this.passiveEffect?this.updateAndNotify(i,s):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,s,l){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-l}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=It.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Nd)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Nd);return cp(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gi(n,i){return new Hy(n,i)}function $y(n,i,s){n.hasValue(i)?n.getValue(i).set(s):n.addValue(i,gi(s))}function Ky(n,i){const s=bs(n,i);let{transitionEnd:l={},transition:u={},...d}=s||{};d={...d,...l};for(const f in d){const p=ry(d[f]);$y(n,f,p)}}function Gy(n){return!!(Ge(n)&&n.add)}function ga(n,i){const s=n.getValue("willChange");if(Gy(s))return s.add(i)}function fp(n){return n.props[Uh]}const dp=(n,i,s)=>(((1-3*s+3*i)*n+(3*s-6*i))*n+3*i)*n,Qy=1e-7,Yy=12;function Xy(n,i,s,l,u){let d,f,p=0;do f=i+(s-i)/2,d=dp(f,l,u)-n,d>0?s=f:i=f;while(Math.abs(d)>Qy&&++p<Yy);return f}function wi(n,i,s,l){if(n===i&&s===l)return ft;const u=d=>Xy(d,0,1,n,s);return d=>d===0||d===1?d:dp(u(d),i,l)}const hp=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,pp=n=>i=>1-n(1-i),mp=wi(.33,1.53,.69,.99),nu=pp(mp),gp=hp(nu),vp=n=>(n*=2)<1?.5*nu(n):.5*(2-Math.pow(2,-10*(n-1))),ru=n=>1-Math.sin(Math.acos(n)),yp=pp(ru),xp=hp(ru),wp=n=>/^0[^.\s]+$/u.test(n);function Zy(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||wp(n):!0}const ci=n=>Math.round(n*1e5)/1e5,iu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qy(n){return n==null}const by=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,su=(n,i)=>s=>!!(typeof s=="string"&&by.test(s)&&s.startsWith(n)||i&&!qy(s)&&Object.prototype.hasOwnProperty.call(s,i)),Sp=(n,i,s)=>l=>{if(typeof l!="string")return l;const[u,d,f,p]=l.match(iu);return{[n]:parseFloat(u),[i]:parseFloat(d),[s]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},Jy=n=>Qt(0,255,n),na={...xr,transform:n=>Math.round(Jy(n))},Vn={test:su("rgb","red"),parse:Sp("red","green","blue"),transform:({red:n,green:i,blue:s,alpha:l=1})=>"rgba("+na.transform(n)+", "+na.transform(i)+", "+na.transform(s)+", "+ci(mi.transform(l))+")"};function e0(n){let i="",s="",l="",u="";return n.length>5?(i=n.substring(1,3),s=n.substring(3,5),l=n.substring(5,7),u=n.substring(7,9)):(i=n.substring(1,2),s=n.substring(2,3),l=n.substring(3,4),u=n.substring(4,5),i+=i,s+=s,l+=l,u+=u),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(l,16),alpha:u?parseInt(u,16)/255:1}}const va={test:su("#"),parse:e0,transform:Vn.transform},ur={test:su("hsl","hue"),parse:Sp("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:s,alpha:l=1})=>"hsla("+Math.round(n)+", "+_t.transform(ci(i))+", "+_t.transform(ci(s))+", "+ci(mi.transform(l))+")"},Ke={test:n=>Vn.test(n)||va.test(n)||ur.test(n),parse:n=>Vn.test(n)?Vn.parse(n):ur.test(n)?ur.parse(n):va.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Vn.transform(n):ur.transform(n)},t0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function n0(n){var i,s;return isNaN(n)&&typeof n=="string"&&(((i=n.match(iu))===null||i===void 0?void 0:i.length)||0)+(((s=n.match(t0))===null||s===void 0?void 0:s.length)||0)>0}const kp="number",Cp="color",r0="var",i0="var(",Ad="${}",s0=/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 vi(n){const i=n.toString(),s=[],l={color:[],number:[],var:[]},u=[];let d=0;const p=i.replace(s0,m=>(Ke.test(m)?(l.color.push(d),u.push(Cp),s.push(Ke.parse(m))):m.startsWith(i0)?(l.var.push(d),u.push(r0),s.push(m)):(l.number.push(d),u.push(kp),s.push(parseFloat(m))),++d,Ad)).split(Ad);return{values:s,split:p,indexes:l,types:u}}function Pp(n){return vi(n).values}function Tp(n){const{split:i,types:s}=vi(n),l=i.length;return u=>{let d="";for(let f=0;f<l;f++)if(d+=i[f],u[f]!==void 0){const p=s[f];p===kp?d+=ci(u[f]):p===Cp?d+=Ke.transform(u[f]):d+=u[f]}return d}}const o0=n=>typeof n=="number"?0:n;function l0(n){const i=Pp(n);return Tp(n)(i.map(o0))}const gn={test:n0,parse:Pp,createTransformer:Tp,getAnimatableNone:l0},a0=new Set(["brightness","contrast","saturate","opacity"]);function u0(n){const[i,s]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[l]=s.match(iu)||[];if(!l)return n;const u=s.replace(l,"");let d=a0.has(i)?1:0;return l!==s&&(d*=100),i+"("+d+u+")"}const c0=/\b([a-z-]*)\(.*?\)/gu,ya={...gn,getAnimatableNone:n=>{const i=n.match(c0);return i?i.map(u0).join(" "):n}},f0={...Ha,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:ya,WebkitFilter:ya},ou=n=>f0[n];function Ep(n,i){let s=ou(n);return s!==ya&&(s=gn),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const d0=new Set(["auto","none","0"]);function h0(n,i,s){let l=0,u;for(;l<n.length&&!u;){const d=n[l];typeof d=="string"&&!d0.has(d)&&vi(d).values.length&&(u=n[l]),l++}if(u&&s)for(const d of i)n[d]=Ep(s,u)}const Md=n=>n===xr||n===te,Rd=(n,i)=>parseFloat(n.split(", ")[i]),Dd=(n,i)=>(s,{transform:l})=>{if(l==="none"||!l)return 0;const u=l.match(/^matrix3d\((.+)\)$/u);if(u)return Rd(u[1],i);{const d=l.match(/^matrix\((.+)\)$/u);return d?Rd(d[1],n):0}},p0=new Set(["x","y","z"]),m0=yr.filter(n=>!p0.has(n));function g0(n){const i=[];return m0.forEach(s=>{const l=n.getValue(s);l!==void 0&&(i.push([s,l.get()]),l.set(s.startsWith("scale")?1:0))}),i}const gr={width:({x:n},{paddingLeft:i="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(i)-parseFloat(s),height:({y:n},{paddingTop:i="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(i)-parseFloat(s),top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:Dd(4,13),y:Dd(5,14)};gr.translateX=gr.x;gr.translateY=gr.y;const _n=new Set;let xa=!1,wa=!1;function jp(){if(wa){const n=Array.from(_n).filter(l=>l.needsMeasurement),i=new Set(n.map(l=>l.element)),s=new Map;i.forEach(l=>{const u=g0(l);u.length&&(s.set(l,u),l.render())}),n.forEach(l=>l.measureInitialState()),i.forEach(l=>{l.render();const u=s.get(l);u&&u.forEach(([d,f])=>{var p;(p=l.getValue(d))===null||p===void 0||p.set(f)})}),n.forEach(l=>l.measureEndState()),n.forEach(l=>{l.suspendedScrollY!==void 0&&window.scrollTo(0,l.suspendedScrollY)})}wa=!1,xa=!1,_n.forEach(n=>n.complete()),_n.clear()}function Np(){_n.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(wa=!0)})}function v0(){Np(),jp()}class lu{constructor(i,s,l,u,d,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=l,this.motionValue=u,this.element=d,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(_n.add(this),xa||(xa=!0,we.read(Np),we.resolveKeyframes(jp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:l,motionValue:u}=this;for(let d=0;d<i.length;d++)if(i[d]===null)if(d===0){const f=u==null?void 0:u.get(),p=i[i.length-1];if(f!==void 0)i[0]=f;else if(l&&s){const m=l.readValue(s,p);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=p),u&&f===void 0&&u.set(i[0])}else i[d]=i[d-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),_n.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,_n.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ap=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),y0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function x0(n){const i=y0.exec(n);if(!i)return[,];const[,s,l,u]=i;return[`--${s??l}`,u]}function Mp(n,i,s=1){const[l,u]=x0(n);if(!l)return;const d=window.getComputedStyle(i).getPropertyValue(l);if(d){const f=d.trim();return Ap(f)?parseFloat(f):f}return Wa(u)?Mp(u,i,s+1):u}const Rp=n=>i=>i.test(n),w0={test:n=>n==="auto",parse:n=>n},Dp=[xr,te,_t,pn,uy,ay,w0],Ld=n=>Dp.find(Rp(n));class Lp extends lu{constructor(i,s,l,u,d){super(i,s,l,u,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:l}=this;if(!s||!s.current)return;super.readKeyframes();for(let m=0;m<i.length;m++){let g=i[m];if(typeof g=="string"&&(g=g.trim(),Wa(g))){const v=Mp(g,s.current);v!==void 0&&(i[m]=v),m===i.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!up.has(l)||i.length!==2)return;const[u,d]=i,f=Ld(u),p=Ld(d);if(f!==p)if(Md(f)&&Md(p))for(let m=0;m<i.length;m++){const g=i[m];typeof g=="string"&&(i[m]=parseFloat(g))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,l=[];for(let u=0;u<i.length;u++)Zy(i[u])&&l.push(u);l.length&&h0(i,l,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:l}=this;if(!i||!i.current)return;l==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gr[l](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&i.getValue(l,u).jump(u,!1)}measureEndState(){var i;const{element:s,name:l,unresolvedKeyframes:u}=this;if(!s||!s.current)return;const d=s.getValue(l);d&&d.jump(this.measuredOrigin,!1);const f=u.length-1,p=u[f];u[f]=gr[l](s.measureViewportBox(),window.getComputedStyle(s.current)),p!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=p),!((i=this.removedTransforms)===null||i===void 0)&&i.length&&this.removedTransforms.forEach(([m,g])=>{s.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const Vd=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(gn.test(n)||n==="0")&&!n.startsWith("url("));function S0(n){const i=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==i)return!0}function k0(n,i,s,l){const u=n[0];if(u===null)return!1;if(i==="display"||i==="visibility")return!0;const d=n[n.length-1],f=Vd(u,i),p=Vd(d,i);return!f||!p?!1:S0(n)||(s==="spring"||Za(s))&&l}const C0=n=>n!==null;function Js(n,{repeat:i,repeatType:s="loop"},l){const u=n.filter(C0),d=i&&s!=="loop"&&i%2===1?0:u.length-1;return!d||l===void 0?u[d]:l}const P0=40;class Vp{constructor({autoplay:i=!0,delay:s=0,type:l="keyframes",repeat:u=0,repeatDelay:d=0,repeatType:f="loop",...p}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=It.now(),this.options={autoplay:i,delay:s,type:l,repeat:u,repeatDelay:d,repeatType:f,...p},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>P0?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&v0(),this._resolved}onKeyframesResolved(i,s){this.resolvedAt=It.now(),this.hasAttemptedResolve=!0;const{name:l,type:u,velocity:d,delay:f,onComplete:p,onUpdate:m,isGenerator:g}=this.options;if(!g&&!k0(i,l,u,d))if(f)this.options.duration=0;else{m&&m(Js(i,this.options,s)),p&&p(),this.resolveFinishedPromise();return}const v=this.initPlayback(i,s);v!==!1&&(this._resolved={keyframes:i,finalKeyframe:s,...v},this.onPostResolved())}onPostResolved(){}then(i,s){return this.currentFinishedPromise.then(i,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(i=>{this.resolveFinishedPromise=i})}}const Te=(n,i,s)=>n+(i-n)*s;function ra(n,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(i-n)*6*s:s<1/2?i:s<2/3?n+(i-n)*(2/3-s)*6:n}function T0({hue:n,saturation:i,lightness:s,alpha:l}){n/=360,i/=100,s/=100;let u=0,d=0,f=0;if(!i)u=d=f=s;else{const p=s<.5?s*(1+i):s+i-s*i,m=2*s-p;u=ra(m,p,n+1/3),d=ra(m,p,n),f=ra(m,p,n-1/3)}return{red:Math.round(u*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:l}}function $s(n,i){return s=>s>0?i:n}const ia=(n,i,s)=>{const l=n*n,u=s*(i*i-l)+l;return u<0?0:Math.sqrt(u)},E0=[va,Vn,ur],j0=n=>E0.find(i=>i.test(n));function _d(n){const i=j0(n);if(!i)return!1;let s=i.parse(n);return i===ur&&(s=T0(s)),s}const Id=(n,i)=>{const s=_d(n),l=_d(i);if(!s||!l)return $s(n,i);const u={...s};return d=>(u.red=ia(s.red,l.red,d),u.green=ia(s.green,l.green,d),u.blue=ia(s.blue,l.blue,d),u.alpha=Te(s.alpha,l.alpha,d),Vn.transform(u))},N0=(n,i)=>s=>i(n(s)),Si=(...n)=>n.reduce(N0),Sa=new Set(["none","hidden"]);function A0(n,i){return Sa.has(n)?s=>s<=0?n:i:s=>s>=1?i:n}function M0(n,i){return s=>Te(n,i,s)}function au(n){return typeof n=="number"?M0:typeof n=="string"?Wa(n)?$s:Ke.test(n)?Id:L0:Array.isArray(n)?_p:typeof n=="object"?Ke.test(n)?Id:R0:$s}function _p(n,i){const s=[...n],l=s.length,u=n.map((d,f)=>au(d)(d,i[f]));return d=>{for(let f=0;f<l;f++)s[f]=u[f](d);return s}}function R0(n,i){const s={...n,...i},l={};for(const u in s)n[u]!==void 0&&i[u]!==void 0&&(l[u]=au(n[u])(n[u],i[u]));return u=>{for(const d in l)s[d]=l[d](u);return s}}function D0(n,i){var s;const l=[],u={color:0,var:0,number:0};for(let d=0;d<i.values.length;d++){const f=i.types[d],p=n.indexes[f][u[f]],m=(s=n.values[p])!==null&&s!==void 0?s:0;l[d]=m,u[f]++}return l}const L0=(n,i)=>{const s=gn.createTransformer(i),l=vi(n),u=vi(i);return l.indexes.var.length===u.indexes.var.length&&l.indexes.color.length===u.indexes.color.length&&l.indexes.number.length>=u.indexes.number.length?Sa.has(n)&&!u.values.length||Sa.has(i)&&!l.values.length?A0(n,i):Si(_p(D0(l,u),u.values),s):$s(n,i)};function Ip(n,i,s){return typeof n=="number"&&typeof i=="number"&&typeof s=="number"?Te(n,i,s):au(n)(n,i)}const V0=5;function Fp(n,i,s){const l=Math.max(i-V0,0);return cp(s-n(l),i-l)}const Ne={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},sa=.001;function _0({duration:n=Ne.duration,bounce:i=Ne.bounce,velocity:s=Ne.velocity,mass:l=Ne.mass}){let u,d,f=1-i;f=Qt(Ne.minDamping,Ne.maxDamping,f),n=Qt(Ne.minDuration,Ne.maxDuration,Gt(n)),f<1?(u=g=>{const v=g*f,x=v*n,k=v-s,N=ka(g,f),A=Math.exp(-x);return sa-k/N*A},d=g=>{const x=g*f*n,k=x*s+s,N=Math.pow(f,2)*Math.pow(g,2)*n,A=Math.exp(-x),M=ka(Math.pow(g,2),f);return(-u(g)+sa>0?-1:1)*((k-N)*A)/M}):(u=g=>{const v=Math.exp(-g*n),x=(g-s)*n+1;return-sa+v*x},d=g=>{const v=Math.exp(-g*n),x=(s-g)*(n*n);return v*x});const p=5/n,m=F0(u,d,p);if(n=Kt(n),isNaN(m))return{stiffness:Ne.stiffness,damping:Ne.damping,duration:n};{const g=Math.pow(m,2)*l;return{stiffness:g,damping:f*2*Math.sqrt(l*g),duration:n}}}const I0=12;function F0(n,i,s){let l=s;for(let u=1;u<I0;u++)l=l-n(l)/i(l);return l}function ka(n,i){return n*Math.sqrt(1-i*i)}const O0=["duration","bounce"],z0=["stiffness","damping","mass"];function Fd(n,i){return i.some(s=>n[s]!==void 0)}function B0(n){let i={velocity:Ne.velocity,stiffness:Ne.stiffness,damping:Ne.damping,mass:Ne.mass,isResolvedFromDuration:!1,...n};if(!Fd(n,z0)&&Fd(n,O0))if(n.visualDuration){const s=n.visualDuration,l=2*Math.PI/(s*1.2),u=l*l,d=2*Qt(.05,1,1-(n.bounce||0))*Math.sqrt(u);i={...i,mass:Ne.mass,stiffness:u,damping:d}}else{const s=_0(n);i={...i,...s,mass:Ne.mass},i.isResolvedFromDuration=!0}return i}function Op(n=Ne.visualDuration,i=Ne.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:l,restDelta:u}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:g,mass:v,duration:x,velocity:k,isResolvedFromDuration:N}=B0({...s,velocity:-Gt(s.velocity||0)}),A=k||0,M=g/(2*Math.sqrt(m*v)),D=f-d,F=Gt(Math.sqrt(m/v)),B=Math.abs(D)<5;l||(l=B?Ne.restSpeed.granular:Ne.restSpeed.default),u||(u=B?Ne.restDelta.granular:Ne.restDelta.default);let K;if(M<1){const U=ka(F,M);K=ee=>{const le=Math.exp(-M*F*ee);return f-le*((A+M*F*D)/U*Math.sin(U*ee)+D*Math.cos(U*ee))}}else if(M===1)K=U=>f-Math.exp(-F*U)*(D+(A+F*D)*U);else{const U=F*Math.sqrt(M*M-1);K=ee=>{const le=Math.exp(-M*F*ee),Z=Math.min(U*ee,300);return f-le*((A+M*F*D)*Math.sinh(Z)+U*D*Math.cosh(Z))/U}}const X={calculatedDuration:N&&x||null,next:U=>{const ee=K(U);if(N)p.done=U>=x;else{let le=0;M<1&&(le=U===0?Kt(A):Fp(K,U,ee));const Z=Math.abs(le)<=l,ve=Math.abs(f-ee)<=u;p.done=Z&&ve}return p.value=p.done?f:ee,p},toString:()=>{const U=Math.min(np(X),pa),ee=rp(le=>X.next(U*le).value,U,30);return U+"ms "+ee}};return X}function Od({keyframes:n,velocity:i=0,power:s=.8,timeConstant:l=325,bounceDamping:u=10,bounceStiffness:d=500,modifyTarget:f,min:p,max:m,restDelta:g=.5,restSpeed:v}){const x=n[0],k={done:!1,value:x},N=Z=>p!==void 0&&Z<p||m!==void 0&&Z>m,A=Z=>p===void 0?m:m===void 0||Math.abs(p-Z)<Math.abs(m-Z)?p:m;let M=s*i;const D=x+M,F=f===void 0?D:f(D);F!==D&&(M=F-x);const B=Z=>-M*Math.exp(-Z/l),K=Z=>F+B(Z),X=Z=>{const ve=B(Z),Ee=K(Z);k.done=Math.abs(ve)<=g,k.value=k.done?F:Ee};let U,ee;const le=Z=>{N(k.value)&&(U=Z,ee=Op({keyframes:[k.value,A(k.value)],velocity:Fp(K,Z,k.value),damping:u,stiffness:d,restDelta:g,restSpeed:v}))};return le(0),{calculatedDuration:null,next:Z=>{let ve=!1;return!ee&&U===void 0&&(ve=!0,X(Z),le(Z)),U!==void 0&&Z>=U?ee.next(Z-U):(!ve&&X(Z),k)}}}const U0=wi(.42,0,1,1),W0=wi(0,0,.58,1),zp=wi(.42,0,.58,1),H0=n=>Array.isArray(n)&&typeof n[0]!="number",$0={linear:ft,easeIn:U0,easeInOut:zp,easeOut:W0,circIn:ru,circInOut:xp,circOut:yp,backIn:nu,backInOut:gp,backOut:mp,anticipate:vp},zd=n=>{if(qa(n)){Ih(n.length===4);const[i,s,l,u]=n;return wi(i,s,l,u)}else if(typeof n=="string")return $0[n];return n};function K0(n,i,s){const l=[],u=s||Ip,d=n.length-1;for(let f=0;f<d;f++){let p=u(n[f],n[f+1]);if(i){const m=Array.isArray(i)?i[f]||ft:i;p=Si(m,p)}l.push(p)}return l}function G0(n,i,{clamp:s=!0,ease:l,mixer:u}={}){const d=n.length;if(Ih(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),i=[...i].reverse());const p=K0(i,l,u),m=p.length,g=v=>{if(f&&v<n[0])return i[0];let x=0;if(m>1)for(;x<n.length-2&&!(v<n[x+1]);x++);const k=pr(n[x],n[x+1],v);return p[x](k)};return s?v=>g(Qt(n[0],n[d-1],v)):g}function Q0(n,i){const s=n[n.length-1];for(let l=1;l<=i;l++){const u=pr(0,i,l);n.push(Te(s,1,u))}}function Y0(n){const i=[0];return Q0(i,n.length-1),i}function X0(n,i){return n.map(s=>s*i)}function Z0(n,i){return n.map(()=>i||zp).splice(0,n.length-1)}function Ks({duration:n=300,keyframes:i,times:s,ease:l="easeInOut"}){const u=H0(l)?l.map(zd):zd(l),d={done:!1,value:i[0]},f=X0(s&&s.length===i.length?s:Y0(i),n),p=G0(f,i,{ease:Array.isArray(u)?u:Z0(i,u)});return{calculatedDuration:n,next:m=>(d.value=p(m),d.done=m>=n,d)}}const q0=n=>{const i=({timestamp:s})=>n(s);return{start:()=>we.update(i,!0),stop:()=>mn(i),now:()=>Be.isProcessing?Be.timestamp:It.now()}},b0={decay:Od,inertia:Od,tween:Ks,keyframes:Ks,spring:Op},J0=n=>n/100;class uu extends Vp{constructor(i){super(i),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:m}=this.options;m&&m()};const{name:s,motionValue:l,element:u,keyframes:d}=this.options,f=(u==null?void 0:u.KeyframeResolver)||lu,p=(m,g)=>this.onKeyframesResolved(m,g);this.resolver=new f(d,p,s,l,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(i){const{type:s="keyframes",repeat:l=0,repeatDelay:u=0,repeatType:d,velocity:f=0}=this.options,p=Za(s)?s:b0[s]||Ks;let m,g;p!==Ks&&typeof i[0]!="number"&&(m=Si(J0,Ip(i[0],i[1])),i=[0,100]);const v=p({...this.options,keyframes:i});d==="mirror"&&(g=p({...this.options,keyframes:[...i].reverse(),velocity:-f})),v.calculatedDuration===null&&(v.calculatedDuration=np(v));const{calculatedDuration:x}=v,k=x+u,N=k*(l+1)-u;return{generator:v,mirroredGenerator:g,mapPercentToKeyframes:m,calculatedDuration:x,resolvedDuration:k,totalDuration:N}}onPostResolved(){const{autoplay:i=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!i?this.pause():this.state=this.pendingPlayState}tick(i,s=!1){const{resolved:l}=this;if(!l){const{keyframes:Z}=this.options;return{done:!0,value:Z[Z.length-1]}}const{finalKeyframe:u,generator:d,mirroredGenerator:f,mapPercentToKeyframes:p,keyframes:m,calculatedDuration:g,totalDuration:v,resolvedDuration:x}=l;if(this.startTime===null)return d.next(0);const{delay:k,repeat:N,repeatType:A,repeatDelay:M,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-v/this.speed,this.startTime)),s?this.currentTime=i:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(i-this.startTime)*this.speed;const F=this.currentTime-k*(this.speed>=0?1:-1),B=this.speed>=0?F<0:F>v;this.currentTime=Math.max(F,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let K=this.currentTime,X=d;if(N){const Z=Math.min(this.currentTime,v)/x;let ve=Math.floor(Z),Ee=Z%1;!Ee&&Z>=1&&(Ee=1),Ee===1&&ve--,ve=Math.min(ve,N+1),!!(ve%2)&&(A==="reverse"?(Ee=1-Ee,M&&(Ee-=M/x)):A==="mirror"&&(X=f)),K=Qt(0,1,Ee)*x}const U=B?{done:!1,value:m[0]}:X.next(K);p&&(U.value=p(U.value));let{done:ee}=U;!B&&g!==null&&(ee=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const le=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ee);return le&&u!==void 0&&(U.value=Js(m,this.options,u)),D&&D(U.value),le&&this.finish(),U}get duration(){const{resolved:i}=this;return i?Gt(i.calculatedDuration):0}get time(){return Gt(this.currentTime)}set time(i){i=Kt(i),this.currentTime=i,this.holdTime!==null||this.speed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.speed)}get speed(){return this.playbackSpeed}set speed(i){const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=Gt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:i=q0,onPlay:s,startTime:l}=this.options;this.driver||(this.driver=i(d=>this.tick(d))),s&&s();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=l??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var i;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(i=this.currentTime)!==null&&i!==void 0?i:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:i}=this.options;i&&i()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}}const ex=new Set(["opacity","clipPath","filter","transform"]);function tx(n,i,s,{delay:l=0,duration:u=300,repeat:d=0,repeatType:f="loop",ease:p="easeInOut",times:m}={}){const g={[i]:s};m&&(g.offset=m);const v=sp(p,u);return Array.isArray(v)&&(g.easing=v),n.animate(g,{delay:l,duration:u,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"})}const nx=_a(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gs=10,rx=2e4;function ix(n){return Za(n.type)||n.type==="spring"||!ip(n.ease)}function sx(n,i){const s=new uu({...i,keyframes:n,repeat:0,delay:0,isGenerator:!0});let l={done:!1,value:n[0]};const u=[];let d=0;for(;!l.done&&d<rx;)l=s.sample(d),u.push(l.value),d+=Gs;return{times:void 0,keyframes:u,duration:d-Gs,ease:"linear"}}const Bp={anticipate:vp,backInOut:gp,circInOut:xp};function ox(n){return n in Bp}class Bd extends Vp{constructor(i){super(i);const{name:s,motionValue:l,element:u,keyframes:d}=this.options;this.resolver=new Lp(d,(f,p)=>this.onKeyframesResolved(f,p),s,l,u),this.resolver.scheduleResolve()}initPlayback(i,s){let{duration:l=300,times:u,ease:d,type:f,motionValue:p,name:m,startTime:g}=this.options;if(!p.owner||!p.owner.current)return!1;if(typeof d=="string"&&Hs()&&ox(d)&&(d=Bp[d]),ix(this.options)){const{onComplete:x,onUpdate:k,motionValue:N,element:A,...M}=this.options,D=sx(i,M);i=D.keyframes,i.length===1&&(i[1]=i[0]),l=D.duration,u=D.times,d=D.ease,f="keyframes"}const v=tx(p.owner.current,m,i,{...this.options,duration:l,times:u,ease:d});return v.startTime=g??this.calcStartTime(),this.pendingTimeline?(Pd(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:x}=this.options;p.set(Js(i,this.options,s)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:l,times:u,type:f,ease:d,keyframes:i}}get duration(){const{resolved:i}=this;if(!i)return 0;const{duration:s}=i;return Gt(s)}get time(){const{resolved:i}=this;if(!i)return 0;const{animation:s}=i;return Gt(s.currentTime||0)}set time(i){const{resolved:s}=this;if(!s)return;const{animation:l}=s;l.currentTime=Kt(i)}get speed(){const{resolved:i}=this;if(!i)return 1;const{animation:s}=i;return s.playbackRate}set speed(i){const{resolved:s}=this;if(!s)return;const{animation:l}=s;l.playbackRate=i}get state(){const{resolved:i}=this;if(!i)return"idle";const{animation:s}=i;return s.playState}get startTime(){const{resolved:i}=this;if(!i)return null;const{animation:s}=i;return s.startTime}attachTimeline(i){if(!this._resolved)this.pendingTimeline=i;else{const{resolved:s}=this;if(!s)return ft;const{animation:l}=s;Pd(l,i)}return ft}play(){if(this.isStopped)return;const{resolved:i}=this;if(!i)return;const{animation:s}=i;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:i}=this;if(!i)return;const{animation:s}=i;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:i}=this;if(!i)return;const{animation:s,keyframes:l,duration:u,type:d,ease:f,times:p}=i;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:v,onComplete:x,element:k,...N}=this.options,A=new uu({...N,keyframes:l,duration:u,type:d,ease:f,times:p,isGenerator:!0}),M=Kt(this.time);g.setWithVelocity(A.sample(M-Gs).value,A.sample(M).value,Gs)}const{onStop:m}=this.options;m&&m(),this.cancel()}complete(){const{resolved:i}=this;i&&i.animation.finish()}cancel(){const{resolved:i}=this;i&&i.animation.cancel()}static supports(i){const{motionValue:s,name:l,repeatDelay:u,repeatType:d,damping:f,type:p}=i;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=s.owner.getProps();return nx()&&l&&ex.has(l)&&!m&&!g&&!u&&d!=="mirror"&&f!==0&&p!=="inertia"}}const lx={type:"spring",stiffness:500,damping:25,restSpeed:10},ax=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),ux={type:"keyframes",duration:.8},cx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fx=(n,{keyframes:i})=>i.length>2?ux:In.has(n)?n.startsWith("scale")?ax(i[1]):lx:cx;function dx({when:n,delay:i,delayChildren:s,staggerChildren:l,staggerDirection:u,repeat:d,repeatType:f,repeatDelay:p,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const cu=(n,i,s,l={},u,d)=>f=>{const p=Xa(l,n)||{},m=p.delay||l.delay||0;let{elapsed:g=0}=l;g=g-Kt(m);let v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-g,onUpdate:k=>{i.set(k),p.onUpdate&&p.onUpdate(k)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:n,motionValue:i,element:d?void 0:u};dx(p)||(v={...v,...fx(n,v)}),v.duration&&(v.duration=Kt(v.duration)),v.repeatDelay&&(v.repeatDelay=Kt(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(x=!0)),x&&!d&&i.get()!==void 0){const k=Js(v.keyframes,p);if(k!==void 0)return we.update(()=>{v.onUpdate(k),v.onComplete()}),new Ry([])}return!d&&Bd.supports(v)?new Bd(v):new uu(v)};function hx({protectedKeys:n,needsAnimating:i},s){const l=n.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,l}function Up(n,i,{delay:s=0,transitionOverride:l,type:u}={}){var d;let{transition:f=n.getDefaultTransition(),transitionEnd:p,...m}=i;l&&(f=l);const g=[],v=u&&n.animationState&&n.animationState.getState()[u];for(const x in m){const k=n.getValue(x,(d=n.latestValues[x])!==null&&d!==void 0?d:null),N=m[x];if(N===void 0||v&&hx(v,x))continue;const A={delay:s,...Xa(f||{},x)};let M=!1;if(window.MotionHandoffAnimation){const F=fp(n);if(F){const B=window.MotionHandoffAnimation(F,x,we);B!==null&&(A.startTime=B,M=!0)}}ga(n,x),k.start(cu(x,k,N,n.shouldReduceMotion&&up.has(x)?{type:!1}:A,n,M));const D=k.animation;D&&g.push(D)}return p&&Promise.all(g).then(()=>{we.update(()=>{p&&Ky(n,p)})}),g}function Ca(n,i,s={}){var l;const u=bs(n,i,s.type==="exit"?(l=n.presenceContext)===null||l===void 0?void 0:l.custom:void 0);let{transition:d=n.getDefaultTransition()||{}}=u||{};s.transitionOverride&&(d=s.transitionOverride);const f=u?()=>Promise.all(Up(n,u,s)):()=>Promise.resolve(),p=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:x,staggerDirection:k}=d;return px(n,i,v+g,x,k,s)}:()=>Promise.resolve(),{when:m}=d;if(m){const[g,v]=m==="beforeChildren"?[f,p]:[p,f];return g().then(()=>v())}else return Promise.all([f(),p(s.delay)])}function px(n,i,s=0,l=0,u=1,d){const f=[],p=(n.variantChildren.size-1)*l,m=u===1?(g=0)=>g*l:(g=0)=>p-g*l;return Array.from(n.variantChildren).sort(mx).forEach((g,v)=>{g.notify("AnimationStart",i),f.push(Ca(g,i,{...d,delay:s+m(v)}).then(()=>g.notify("AnimationComplete",i)))}),Promise.all(f)}function mx(n,i){return n.sortNodePosition(i)}function gx(n,i,s={}){n.notify("AnimationStart",i);let l;if(Array.isArray(i)){const u=i.map(d=>Ca(n,d,s));l=Promise.all(u)}else if(typeof i=="string")l=Ca(n,i,s);else{const u=typeof i=="function"?bs(n,i,s.custom):i;l=Promise.all(Up(n,u,s))}return l.then(()=>{n.notify("AnimationComplete",i)})}const vx=Fa.length;function Wp(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?Wp(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const i={};for(let s=0;s<vx;s++){const l=Fa[s],u=n.props[l];(pi(u)||u===!1)&&(i[l]=u)}return i}const yx=[...Ia].reverse(),xx=Ia.length;function wx(n){return i=>Promise.all(i.map(({animation:s,options:l})=>gx(n,s,l)))}function Sx(n){let i=wx(n),s=Ud(),l=!0;const u=m=>(g,v)=>{var x;const k=bs(n,v,m==="exit"?(x=n.presenceContext)===null||x===void 0?void 0:x.custom:void 0);if(k){const{transition:N,transitionEnd:A,...M}=k;g={...g,...M,...A}}return g};function d(m){i=m(n)}function f(m){const{props:g}=n,v=Wp(n.parent)||{},x=[],k=new Set;let N={},A=1/0;for(let D=0;D<xx;D++){const F=yx[D],B=s[F],K=g[F]!==void 0?g[F]:v[F],X=pi(K),U=F===m?B.isActive:null;U===!1&&(A=D);let ee=K===v[F]&&K!==g[F]&&X;if(ee&&l&&n.manuallyAnimateOnMount&&(ee=!1),B.protectedKeys={...N},!B.isActive&&U===null||!K&&!B.prevProp||Zs(K)||typeof K=="boolean")continue;const le=kx(B.prevProp,K);let Z=le||F===m&&B.isActive&&!ee&&X||D>A&&X,ve=!1;const Ee=Array.isArray(K)?K:[K];let qe=Ee.reduce(u(F),{});U===!1&&(qe={});const{prevResolvedValues:st={}}=B,Qe={...st,...qe},be=ie=>{Z=!0,k.has(ie)&&(ve=!0,k.delete(ie)),B.needsAnimating[ie]=!0;const O=n.getValue(ie);O&&(O.liveStyle=!1)};for(const ie in Qe){const O=qe[ie],q=st[ie];if(N.hasOwnProperty(ie))continue;let H=!1;ha(O)&&ha(q)?H=!tp(O,q):H=O!==q,H?O!=null?be(ie):k.add(ie):O!==void 0&&k.has(ie)?be(ie):B.protectedKeys[ie]=!0}B.prevProp=K,B.prevResolvedValues=qe,B.isActive&&(N={...N,...qe}),l&&n.blockInitialAnimation&&(Z=!1),Z&&(!(ee&&le)||ve)&&x.push(...Ee.map(ie=>({animation:ie,options:{type:F}})))}if(k.size){const D={};k.forEach(F=>{const B=n.getBaseTarget(F),K=n.getValue(F);K&&(K.liveStyle=!0),D[F]=B??null}),x.push({animation:D})}let M=!!x.length;return l&&(g.initial===!1||g.initial===g.animate)&&!n.manuallyAnimateOnMount&&(M=!1),l=!1,M?i(x):Promise.resolve()}function p(m,g){var v;if(s[m].isActive===g)return Promise.resolve();(v=n.variantChildren)===null||v===void 0||v.forEach(k=>{var N;return(N=k.animationState)===null||N===void 0?void 0:N.setActive(m,g)}),s[m].isActive=g;const x=f(m);for(const k in s)s[k].protectedKeys={};return x}return{animateChanges:f,setActive:p,setAnimateFunction:d,getState:()=>s,reset:()=>{s=Ud(),l=!0}}}function kx(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!tp(i,n):!1}function Rn(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ud(){return{animate:Rn(!0),whileInView:Rn(),whileHover:Rn(),whileTap:Rn(),whileDrag:Rn(),whileFocus:Rn(),exit:Rn()}}class vn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class Cx extends vn{constructor(i){super(i),i.animationState||(i.animationState=Sx(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Zs(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)===null||i===void 0||i.call(this)}}let Px=0;class Tx extends vn{constructor(){super(...arguments),this.id=Px++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:l}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===l)return;const u=this.node.animationState.setActive("exit",!i);s&&!i&&u.then(()=>s(this.id))}mount(){const{register:i}=this.node.presenceContext||{};i&&(this.unmount=i(this.id))}unmount(){}}const Ex={animation:{Feature:Cx},exit:{Feature:Tx}};function yi(n,i,s,l={passive:!0}){return n.addEventListener(i,s,l),()=>n.removeEventListener(i,s)}function ki(n){return{point:{x:n.pageX,y:n.pageY}}}const jx=n=>i=>ba(i)&&n(i,ki(i));function fi(n,i,s,l){return yi(n,i,jx(s),l)}const Wd=(n,i)=>Math.abs(n-i);function Nx(n,i){const s=Wd(n.x,i.x),l=Wd(n.y,i.y);return Math.sqrt(s**2+l**2)}class Hp{constructor(i,s,{transformPagePoint:l,contextWindow:u,dragSnapToOrigin:d=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=la(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,N=Nx(x.offset,{x:0,y:0})>=3;if(!k&&!N)return;const{point:A}=x,{timestamp:M}=Be;this.history.push({...A,timestamp:M});const{onStart:D,onMove:F}=this.handlers;k||(D&&D(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),F&&F(this.lastMoveEvent,x)},this.handlePointerMove=(x,k)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=oa(k,this.transformPagePoint),we.update(this.updatePoint,!0)},this.handlePointerUp=(x,k)=>{this.end();const{onEnd:N,onSessionEnd:A,resumeAnimation:M}=this.handlers;if(this.dragSnapToOrigin&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=la(x.type==="pointercancel"?this.lastMoveEventInfo:oa(k,this.transformPagePoint),this.history);this.startEvent&&N&&N(x,D),A&&A(x,D)},!ba(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=l,this.contextWindow=u||window;const f=ki(i),p=oa(f,this.transformPagePoint),{point:m}=p,{timestamp:g}=Be;this.history=[{...m,timestamp:g}];const{onSessionStart:v}=s;v&&v(i,la(p,this.history)),this.removeListeners=Si(fi(this.contextWindow,"pointermove",this.handlePointerMove),fi(this.contextWindow,"pointerup",this.handlePointerUp),fi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),mn(this.updatePoint)}}function oa(n,i){return i?{point:i(n.point)}:n}function Hd(n,i){return{x:n.x-i.x,y:n.y-i.y}}function la({point:n},i){return{point:n,delta:Hd(n,$p(i)),offset:Hd(n,Ax(i)),velocity:Mx(i,.1)}}function Ax(n){return n[0]}function $p(n){return n[n.length-1]}function Mx(n,i){if(n.length<2)return{x:0,y:0};let s=n.length-1,l=null;const u=$p(n);for(;s>=0&&(l=n[s],!(u.timestamp-l.timestamp>Kt(i)));)s--;if(!l)return{x:0,y:0};const d=Gt(u.timestamp-l.timestamp);if(d===0)return{x:0,y:0};const f={x:(u.x-l.x)/d,y:(u.y-l.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}const Kp=1e-4,Rx=1-Kp,Dx=1+Kp,Gp=.01,Lx=0-Gp,Vx=0+Gp;function dt(n){return n.max-n.min}function _x(n,i,s){return Math.abs(n-i)<=s}function $d(n,i,s,l=.5){n.origin=l,n.originPoint=Te(i.min,i.max,n.origin),n.scale=dt(s)/dt(i),n.translate=Te(s.min,s.max,n.origin)-n.originPoint,(n.scale>=Rx&&n.scale<=Dx||isNaN(n.scale))&&(n.scale=1),(n.translate>=Lx&&n.translate<=Vx||isNaN(n.translate))&&(n.translate=0)}function di(n,i,s,l){$d(n.x,i.x,s.x,l?l.originX:void 0),$d(n.y,i.y,s.y,l?l.originY:void 0)}function Kd(n,i,s){n.min=s.min+i.min,n.max=n.min+dt(i)}function Ix(n,i,s){Kd(n.x,i.x,s.x),Kd(n.y,i.y,s.y)}function Gd(n,i,s){n.min=i.min-s.min,n.max=n.min+dt(i)}function hi(n,i,s){Gd(n.x,i.x,s.x),Gd(n.y,i.y,s.y)}function Fx(n,{min:i,max:s},l){return i!==void 0&&n<i?n=l?Te(i,n,l.min):Math.max(n,i):s!==void 0&&n>s&&(n=l?Te(s,n,l.max):Math.min(n,s)),n}function Qd(n,i,s){return{min:i!==void 0?n.min+i:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function Ox(n,{top:i,left:s,bottom:l,right:u}){return{x:Qd(n.x,s,u),y:Qd(n.y,i,l)}}function Yd(n,i){let s=i.min-n.min,l=i.max-n.max;return i.max-i.min<n.max-n.min&&([s,l]=[l,s]),{min:s,max:l}}function zx(n,i){return{x:Yd(n.x,i.x),y:Yd(n.y,i.y)}}function Bx(n,i){let s=.5;const l=dt(n),u=dt(i);return u>l?s=pr(i.min,i.max-l,n.min):l>u&&(s=pr(n.min,n.max-u,i.min)),Qt(0,1,s)}function Ux(n,i){const s={};return i.min!==void 0&&(s.min=i.min-n.min),i.max!==void 0&&(s.max=i.max-n.min),s}const Pa=.35;function Wx(n=Pa){return n===!1?n=0:n===!0&&(n=Pa),{x:Xd(n,"left","right"),y:Xd(n,"top","bottom")}}function Xd(n,i,s){return{min:Zd(n,i),max:Zd(n,s)}}function Zd(n,i){return typeof n=="number"?n:n[i]||0}const qd=()=>({translate:0,scale:1,origin:0,originPoint:0}),cr=()=>({x:qd(),y:qd()}),bd=()=>({min:0,max:0}),Re=()=>({x:bd(),y:bd()});function wt(n){return[n("x"),n("y")]}function Qp({top:n,left:i,right:s,bottom:l}){return{x:{min:i,max:s},y:{min:n,max:l}}}function Hx({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function $x(n,i){if(!i)return n;const s=i({x:n.left,y:n.top}),l=i({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:l.y,right:l.x}}function aa(n){return n===void 0||n===1}function Ta({scale:n,scaleX:i,scaleY:s}){return!aa(n)||!aa(i)||!aa(s)}function Dn(n){return Ta(n)||Yp(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Yp(n){return Jd(n.x)||Jd(n.y)}function Jd(n){return n&&n!=="0%"}function Qs(n,i,s){const l=n-s,u=i*l;return s+u}function eh(n,i,s,l,u){return u!==void 0&&(n=Qs(n,u,l)),Qs(n,s,l)+i}function Ea(n,i=0,s=1,l,u){n.min=eh(n.min,i,s,l,u),n.max=eh(n.max,i,s,l,u)}function Xp(n,{x:i,y:s}){Ea(n.x,i.translate,i.scale,i.originPoint),Ea(n.y,s.translate,s.scale,s.originPoint)}const th=.999999999999,nh=1.0000000000001;function Kx(n,i,s,l=!1){const u=s.length;if(!u)return;i.x=i.y=1;let d,f;for(let p=0;p<u;p++){d=s[p],f=d.projectionDelta;const{visualElement:m}=d.options;m&&m.props.style&&m.props.style.display==="contents"||(l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&dr(n,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,Xp(n,f)),l&&Dn(d.latestValues)&&dr(n,d.latestValues))}i.x<nh&&i.x>th&&(i.x=1),i.y<nh&&i.y>th&&(i.y=1)}function fr(n,i){n.min=n.min+i,n.max=n.max+i}function rh(n,i,s,l,u=.5){const d=Te(n.min,n.max,u);Ea(n,i,s,d,l)}function dr(n,i){rh(n.x,i.x,i.scaleX,i.scale,i.originX),rh(n.y,i.y,i.scaleY,i.scale,i.originY)}function Zp(n,i){return Qp($x(n.getBoundingClientRect(),i))}function Gx(n,i,s){const l=Zp(n,s),{scroll:u}=i;return u&&(fr(l.x,u.offset.x),fr(l.y,u.offset.y)),l}const qp=({current:n})=>n?n.ownerDocument.defaultView:null,Qx=new WeakMap;class Yx{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Re(),this.visualElement=i}start(i,{snapToCursor:s=!1}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const u=v=>{const{dragSnapToOrigin:x}=this.getProps();x?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(ki(v).point)},d=(v,x)=>{const{drag:k,dragPropagation:N,onDragStart:A}=this.getProps();if(k&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=By(k),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wt(D=>{let F=this.getAxisMotionValue(D).get()||0;if(_t.test(F)){const{projection:B}=this.visualElement;if(B&&B.layout){const K=B.layout.layoutBox[D];K&&(F=dt(K)*(parseFloat(F)/100))}}this.originPoint[D]=F}),A&&we.postRender(()=>A(v,x)),ga(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},f=(v,x)=>{const{dragPropagation:k,dragDirectionLock:N,onDirectionLock:A,onDrag:M}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:D}=x;if(N&&this.currentDirection===null){this.currentDirection=Xx(D),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",x.point,D),this.updateAxis("y",x.point,D),this.visualElement.render(),M&&M(v,x)},p=(v,x)=>this.stop(v,x),m=()=>wt(v=>{var x;return this.getAnimationState(v)==="paused"&&((x=this.getAxisMotionValue(v).animation)===null||x===void 0?void 0:x.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new Hp(i,{onSessionStart:u,onStart:d,onMove:f,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:qp(this.visualElement)})}stop(i,s){const l=this.isDragging;if(this.cancel(),!l)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&we.postRender(()=>d(i,s))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:l}=this.getProps();!l&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,l){const{drag:u}=this.getProps();if(!l||!Fs(i,u,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+l[i];this.constraints&&this.constraints[i]&&(f=Fx(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var i;const{dragConstraints:s,dragElastic:l}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)===null||i===void 0?void 0:i.layout,d=this.constraints;s&&ar(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&u?this.constraints=Ox(u.layoutBox,s):this.constraints=!1,this.elastic=Wx(l),d!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&wt(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=Ux(u.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!ar(i))return!1;const l=i.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const d=Gx(l,u.root,this.visualElement.getTransformPagePoint());let f=zx(u.layout.layoutBox,d);if(s){const p=s(Hx(f));this.hasMutatedConstraints=!!p,p&&(f=Qp(p))}return f}startAnimation(i){const{drag:s,dragMomentum:l,dragElastic:u,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=wt(v=>{if(!Fs(v,s,this.currentDirection))return;let x=m&&m[v]||{};f&&(x={min:0,max:0});const k=u?200:1e6,N=u?40:1e7,A={type:"inertia",velocity:l?i[v]:0,bounceStiffness:k,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...d,...x};return this.startAxisValueAnimation(v,A)});return Promise.all(g).then(p)}startAxisValueAnimation(i,s){const l=this.getAxisMotionValue(i);return ga(this.visualElement,i),l.start(cu(i,l,0,s,this.visualElement,!1))}stopAnimation(){wt(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){wt(i=>{var s;return(s=this.getAxisMotionValue(i).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(i){var s;return(s=this.getAxisMotionValue(i).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,l=this.visualElement.getProps(),u=l[s];return u||this.visualElement.getValue(i,(l.initial?l.initial[i]:void 0)||0)}snapToCursor(i){wt(s=>{const{drag:l}=this.getProps();if(!Fs(s,l,this.currentDirection))return;const{projection:u}=this.visualElement,d=this.getAxisMotionValue(s);if(u&&u.layout){const{min:f,max:p}=u.layout.layoutBox[s];d.set(i[s]-Te(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:l}=this.visualElement;if(!ar(s)||!l||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};wt(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const m=p.get();u[f]=Bx({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",l.root&&l.root.updateScroll(),l.updateLayout(),this.resolveConstraints(),wt(f=>{if(!Fs(f,i,null))return;const p=this.getAxisMotionValue(f),{min:m,max:g}=this.constraints[f];p.set(Te(m,g,u[f]))})}addListeners(){if(!this.visualElement.current)return;Qx.set(this.visualElement,this);const i=this.visualElement.current,s=fi(i,"pointerdown",m=>{const{drag:g,dragListener:v=!0}=this.getProps();g&&v&&this.start(m)}),l=()=>{const{dragConstraints:m}=this.getProps();ar(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,d=u.addEventListener("measure",l);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),we.read(l);const f=yi(window,"resize",()=>this.scalePositionWithinConstraints()),p=u.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(wt(v=>{const x=this.getAxisMotionValue(v);x&&(this.originPoint[v]+=m[v].translate,x.set(x.get()+m[v].translate))}),this.visualElement.render())}));return()=>{f(),s(),d(),p&&p()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:l=!1,dragPropagation:u=!1,dragConstraints:d=!1,dragElastic:f=Pa,dragMomentum:p=!0}=i;return{...i,drag:s,dragDirectionLock:l,dragPropagation:u,dragConstraints:d,dragElastic:f,dragMomentum:p}}}function Fs(n,i,s){return(i===!0||i===n)&&(s===null||s===n)}function Xx(n,i=10){let s=null;return Math.abs(n.y)>i?s="y":Math.abs(n.x)>i&&(s="x"),s}class Zx extends vn{constructor(i){super(i),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new Yx(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}unmount(){this.removeGroupControls(),this.removeListeners()}}const ih=n=>(i,s)=>{n&&we.postRender(()=>n(i,s))};class qx extends vn{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(i){this.session=new Hp(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qp(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:l,onPanEnd:u}=this.node.getProps();return{onSessionStart:ih(i),onStart:ih(s),onMove:l,onEnd:(d,f)=>{delete this.session,u&&we.postRender(()=>u(d,f))}}}mount(){this.removePointerDownListener=fi(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Bs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sh(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const oi={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(te.test(n))n=parseFloat(n);else return n;const s=sh(n,i.target.x),l=sh(n,i.target.y);return`${s}% ${l}%`}},bx={correct:(n,{treeScale:i,projectionDelta:s})=>{const l=n,u=gn.parse(n);if(u.length>5)return l;const d=gn.createTransformer(n),f=typeof u[0]!="number"?1:0,p=s.x.scale*i.x,m=s.y.scale*i.y;u[0+f]/=p,u[1+f]/=m;const g=Te(p,m,.5);return typeof u[2+f]=="number"&&(u[2+f]/=g),typeof u[3+f]=="number"&&(u[3+f]/=g),d(u)}};class Jx extends z.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:l,layoutId:u}=this.props,{projection:d}=i;xy(e1),d&&(s.group&&s.group.add(d),l&&l.register&&u&&l.register(d),d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),Bs.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:l,drag:u,isPresent:d}=this.props,f=l.projection;return f&&(f.isPresent=d,u||i.layoutDependency!==s||s===void 0?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||we.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),za.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:l}=this.props,{projection:u}=i;u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),l&&l.deregister&&l.deregister(u))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function bp(n){const[i,s]=Vh(),l=z.useContext(Ra);return w.jsx(Jx,{...n,layoutGroup:l,switchLayoutGroup:z.useContext(Wh),isPresent:i,safeToRemove:s})}const e1={borderRadius:{...oi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oi,borderTopRightRadius:oi,borderBottomLeftRadius:oi,borderBottomRightRadius:oi,boxShadow:bx};function t1(n,i,s){const l=Ge(n)?n:gi(n);return l.start(cu("",l,i,s)),l.animation}function n1(n){return n instanceof SVGElement&&n.tagName!=="svg"}const r1=(n,i)=>n.depth-i.depth;class i1{constructor(){this.children=[],this.isDirty=!1}add(i){Ja(this.children,i),this.isDirty=!0}remove(i){eu(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(r1),this.isDirty=!1,this.children.forEach(i)}}function s1(n,i){const s=It.now(),l=({timestamp:u})=>{const d=u-s;d>=i&&(mn(l),n(d-i))};return we.read(l,!0),()=>mn(l)}const Jp=["TopLeft","TopRight","BottomLeft","BottomRight"],o1=Jp.length,oh=n=>typeof n=="string"?parseFloat(n):n,lh=n=>typeof n=="number"||te.test(n);function l1(n,i,s,l,u,d){u?(n.opacity=Te(0,s.opacity!==void 0?s.opacity:1,a1(l)),n.opacityExit=Te(i.opacity!==void 0?i.opacity:1,0,u1(l))):d&&(n.opacity=Te(i.opacity!==void 0?i.opacity:1,s.opacity!==void 0?s.opacity:1,l));for(let f=0;f<o1;f++){const p=`border${Jp[f]}Radius`;let m=ah(i,p),g=ah(s,p);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||lh(m)===lh(g)?(n[p]=Math.max(Te(oh(m),oh(g),l),0),(_t.test(g)||_t.test(m))&&(n[p]+="%")):n[p]=g}(i.rotate||s.rotate)&&(n.rotate=Te(i.rotate||0,s.rotate||0,l))}function ah(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const a1=em(0,.5,yp),u1=em(.5,.95,ft);function em(n,i,s){return l=>l<n?0:l>i?1:s(pr(n,i,l))}function uh(n,i){n.min=i.min,n.max=i.max}function xt(n,i){uh(n.x,i.x),uh(n.y,i.y)}function ch(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}function fh(n,i,s,l,u){return n-=i,n=Qs(n,1/s,l),u!==void 0&&(n=Qs(n,1/u,l)),n}function c1(n,i=0,s=1,l=.5,u,d=n,f=n){if(_t.test(i)&&(i=parseFloat(i),i=Te(f.min,f.max,i/100)-f.min),typeof i!="number")return;let p=Te(d.min,d.max,l);n===d&&(p-=i),n.min=fh(n.min,i,s,p,u),n.max=fh(n.max,i,s,p,u)}function dh(n,i,[s,l,u],d,f){c1(n,i[s],i[l],i[u],i.scale,d,f)}const f1=["x","scaleX","originX"],d1=["y","scaleY","originY"];function hh(n,i,s,l){dh(n.x,i,f1,s?s.x:void 0,l?l.x:void 0),dh(n.y,i,d1,s?s.y:void 0,l?l.y:void 0)}function ph(n){return n.translate===0&&n.scale===1}function tm(n){return ph(n.x)&&ph(n.y)}function mh(n,i){return n.min===i.min&&n.max===i.max}function h1(n,i){return mh(n.x,i.x)&&mh(n.y,i.y)}function gh(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function nm(n,i){return gh(n.x,i.x)&&gh(n.y,i.y)}function vh(n){return dt(n.x)/dt(n.y)}function yh(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}class p1{constructor(){this.members=[]}add(i){Ja(this.members,i),i.scheduleRender()}remove(i){if(eu(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(u=>i===u);if(s===0)return!1;let l;for(let u=s;u>=0;u--){const d=this.members[u];if(d.isPresent!==!1){l=d;break}}return l?(this.promote(l),!0):!1}promote(i,s){const l=this.lead;if(i!==l&&(this.prevLead=l,this.lead=i,i.show(),l)){l.instance&&l.scheduleRender(),i.scheduleRender(),i.resumeFrom=l,s&&(i.resumeFrom.preserveOpacity=!0),l.snapshot&&(i.snapshot=l.snapshot,i.snapshot.latestValues=l.animationValues||l.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:u}=i.options;u===!1&&l.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:l}=i;s.onExitComplete&&s.onExitComplete(),l&&l.options.onExitComplete&&l.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function m1(n,i,s){let l="";const u=n.x.translate/i.x,d=n.y.translate/i.y,f=(s==null?void 0:s.z)||0;if((u||d||f)&&(l=`translate3d(${u}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(l+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:g,rotate:v,rotateX:x,rotateY:k,skewX:N,skewY:A}=s;g&&(l=`perspective(${g}px) ${l}`),v&&(l+=`rotate(${v}deg) `),x&&(l+=`rotateX(${x}deg) `),k&&(l+=`rotateY(${k}deg) `),N&&(l+=`skewX(${N}deg) `),A&&(l+=`skewY(${A}deg) `)}const p=n.x.scale*i.x,m=n.y.scale*i.y;return(p!==1||m!==1)&&(l+=`scale(${p}, ${m})`),l||"none"}const Ln={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ui=typeof window<"u"&&window.MotionDebug!==void 0,ua=["","X","Y","Z"],g1={visibility:"hidden"},xh=1e3;let v1=0;function ca(n,i,s,l){const{latestValues:u}=i;u[n]&&(s[n]=u[n],i.setStaticValue(n,0),l&&(l[n]=0))}function rm(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const s=fp(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",we,!(u||d))}const{parent:l}=n;l&&!l.hasCheckedOptimisedAppear&&rm(l)}function im({attachResizeListener:n,defaultParent:i,measureScroll:s,checkIsScrollRoot:l,resetTransform:u}){return class{constructor(f={},p=i==null?void 0:i()){this.id=v1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ui&&(Ln.totalNodes=Ln.resolvedTargetDeltas=Ln.recalculatedProjection=0),this.nodes.forEach(w1),this.nodes.forEach(T1),this.nodes.forEach(E1),this.nodes.forEach(S1),ui&&window.MotionDebug.record(Ln)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new i1)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new tu),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const m=this.eventHandlers.get(f);m&&m.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f,p=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=n1(f),this.instance=f;const{layoutId:m,layout:g,visualElement:v}=this.options;if(v&&!v.current&&v.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),p&&(g||m)&&(this.isLayoutDirty=!0),n){let x;const k=()=>this.root.updateBlockedByResize=!1;n(f,()=>{this.root.updateBlockedByResize=!0,x&&x(),x=s1(k,250),Bs.hasAnimatedSinceResize&&(Bs.hasAnimatedSinceResize=!1,this.nodes.forEach(Sh))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&v&&(m||g)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:k,hasRelativeTargetChanged:N,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||v.getDefaultTransition()||R1,{onLayoutAnimationStart:D,onLayoutAnimationComplete:F}=v.getProps(),B=!this.targetLayout||!nm(this.targetLayout,A)||N,K=!k&&N;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||K||k&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(x,K);const X={...Xa(M,"layout"),onPlay:D,onComplete:F};(v.shouldReduceMotion||this.options.layoutRoot)&&(X.delay=0,X.type=!1),this.startAnimation(X)}else k||Sh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,mn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(j1),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&rm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:p,layout:m}=this.options;if(p===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(wh);return}this.isUpdating||this.nodes.forEach(C1),this.isUpdating=!1,this.nodes.forEach(P1),this.nodes.forEach(y1),this.nodes.forEach(x1),this.clearAllSnapshots();const p=It.now();Be.delta=Qt(0,1e3/60,p-Be.timestamp),Be.timestamp=p,Be.isProcessing=!0,ea.update.process(Be),ea.preRender.process(Be),ea.render.process(Be),Be.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,za.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(k1),this.sharedNodes.forEach(N1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,we.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){we.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p){const m=l(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!u)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!tm(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,v=g!==this.prevTransformTemplateValue;f&&(p||Dn(this.latestValues)||v)&&(u(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let m=this.removeElementScroll(p);return f&&(m=this.removeTransform(m)),D1(m),{animationId:this.root.animationId,measuredBox:p,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:p}=this.options;if(!p)return Re();const m=p.measureViewportBox();if(!(((f=this.scroll)===null||f===void 0?void 0:f.wasRoot)||this.path.some(L1))){const{scroll:v}=this.root;v&&(fr(m.x,v.offset.x),fr(m.y,v.offset.y))}return m}removeElementScroll(f){var p;const m=Re();if(xt(m,f),!((p=this.scroll)===null||p===void 0)&&p.wasRoot)return m;for(let g=0;g<this.path.length;g++){const v=this.path[g],{scroll:x,options:k}=v;v!==this.root&&x&&k.layoutScroll&&(x.wasRoot&&xt(m,f),fr(m.x,x.offset.x),fr(m.y,x.offset.y))}return m}applyTransform(f,p=!1){const m=Re();xt(m,f);for(let g=0;g<this.path.length;g++){const v=this.path[g];!p&&v.options.layoutScroll&&v.scroll&&v!==v.root&&dr(m,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Dn(v.latestValues)&&dr(m,v.latestValues)}return Dn(this.latestValues)&&dr(m,this.latestValues),m}removeTransform(f){const p=Re();xt(p,f);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!g.instance||!Dn(g.latestValues))continue;Ta(g.latestValues)&&g.updateSnapshot();const v=Re(),x=g.measurePageBox();xt(v,x),hh(p,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,v)}return Dn(this.latestValues)&&hh(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==Be.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var p;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(f||g&&this.isSharedProjectionDirty||this.isProjectionDirty||!((p=this.parent)===null||p===void 0)&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:k}=this.options;if(!(!this.layout||!(x||k))){if(this.resolvedRelativeTargetAt=Be.timestamp,!this.targetDelta&&!this.relativeTarget){const N=this.getClosestProjectingParent();N&&N.layout&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),hi(this.relativeTargetOrigin,this.layout.layoutBox,N.layout.layoutBox),xt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Re(),this.targetWithTransforms=Re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ix(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xt(this.target,this.layout.layoutBox),Xp(this.target,this.targetDelta)):xt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const N=this.getClosestProjectingParent();N&&!!N.resumingFrom==!!this.resumingFrom&&!N.options.layoutScroll&&N.target&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),hi(this.relativeTargetOrigin,this.target,N.target),xt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ui&&Ln.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ta(this.parent.latestValues)||Yp(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 f;const p=this.getLead(),m=!!this.resumingFrom||this!==p;let g=!0;if((this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Be.timestamp&&(g=!1),g)return;const{layout:v,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||x))return;xt(this.layoutCorrected,this.layout.layoutBox);const k=this.treeScale.x,N=this.treeScale.y;Kx(this.layoutCorrected,this.treeScale,this.path,m),p.layout&&!p.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(p.target=p.layout.layoutBox,p.targetWithTransforms=Re());const{target:A}=p;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ch(this.prevProjectionDelta.x,this.projectionDelta.x),ch(this.prevProjectionDelta.y,this.projectionDelta.y)),di(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==k||this.treeScale.y!==N||!yh(this.projectionDelta.x,this.prevProjectionDelta.x)||!yh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),ui&&Ln.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var p;if((p=this.options.visualElement)===null||p===void 0||p.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cr(),this.projectionDelta=cr(),this.projectionDeltaWithTransform=cr()}setAnimationOrigin(f,p=!1){const m=this.snapshot,g=m?m.latestValues:{},v={...this.latestValues},x=cr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const k=Re(),N=m?m.source:void 0,A=this.layout?this.layout.source:void 0,M=N!==A,D=this.getStack(),F=!D||D.members.length<=1,B=!!(M&&!F&&this.options.crossfade===!0&&!this.path.some(M1));this.animationProgress=0;let K;this.mixTargetDelta=X=>{const U=X/1e3;kh(x.x,f.x,U),kh(x.y,f.y,U),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hi(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox),A1(this.relativeTarget,this.relativeTargetOrigin,k,U),K&&h1(this.relativeTarget,K)&&(this.isProjectionDirty=!1),K||(K=Re()),xt(K,this.relativeTarget)),M&&(this.animationValues=v,l1(v,g,this.latestValues,U,B,F)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(mn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=we.update(()=>{Bs.hasAnimatedSinceResize=!0,this.currentAnimation=t1(0,xh,{...f,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:v}=f;if(!(!p||!m||!g)){if(this!==f&&this.layout&&g&&sm(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||Re();const x=dt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+x;const k=dt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+k}xt(p,m),dr(p,v),di(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new p1),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var f;const{layoutId:p}=this.options;return p?((f=this.getStack())===null||f===void 0?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:p}=this.options;return p?(f=this.getStack())===null||f===void 0?void 0:f.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&ca("z",f,g,this.animationValues);for(let v=0;v<ua.length;v++)ca(`rotate${ua[v]}`,f,g,this.animationValues),ca(`skew${ua[v]}`,f,g,this.animationValues);f.render();for(const v in g)f.setStaticValue(v,g[v]),this.animationValues&&(this.animationValues[v]=g[v]);f.scheduleRender()}getProjectionStyles(f){var p,m;if(!this.instance||this.isSVG)return;if(!this.isVisible)return g1;const g={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=Os(f==null?void 0:f.pointerEvents)||"",g.transform=v?v(this.latestValues,""):"none",g;const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){const M={};return this.options.layoutId&&(M.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,M.pointerEvents=Os(f==null?void 0:f.pointerEvents)||""),this.hasProjected&&!Dn(this.latestValues)&&(M.transform=v?v({},""):"none",this.hasProjected=!1),M}const k=x.animationValues||x.latestValues;this.applyTransformsToTarget(),g.transform=m1(this.projectionDeltaWithTransform,this.treeScale,k),v&&(g.transform=v(k,g.transform));const{x:N,y:A}=this.projectionDelta;g.transformOrigin=`${N.origin*100}% ${A.origin*100}% 0`,x.animationValues?g.opacity=x===this?(m=(p=k.opacity)!==null&&p!==void 0?p:this.latestValues.opacity)!==null&&m!==void 0?m:1:this.preserveOpacity?this.latestValues.opacity:k.opacityExit:g.opacity=x===this?k.opacity!==void 0?k.opacity:"":k.opacityExit!==void 0?k.opacityExit:0;for(const M in Ws){if(k[M]===void 0)continue;const{correct:D,applyTo:F}=Ws[M],B=g.transform==="none"?k[M]:D(k[M],x);if(F){const K=F.length;for(let X=0;X<K;X++)g[F[X]]=B}else g[M]=B}return this.options.layoutId&&(g.pointerEvents=x===this?Os(f==null?void 0:f.pointerEvents)||"":"none"),g}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var p;return(p=f.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(wh),this.root.sharedNodes.clear()}}}function y1(n){n.updateLayout()}function x1(n){var i;const s=((i=n.resumeFrom)===null||i===void 0?void 0:i.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&s&&n.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:u}=n.layout,{animationType:d}=n.options,f=s.source!==n.layout.source;d==="size"?wt(x=>{const k=f?s.measuredBox[x]:s.layoutBox[x],N=dt(k);k.min=l[x].min,k.max=k.min+N}):sm(d,s.layoutBox,l)&&wt(x=>{const k=f?s.measuredBox[x]:s.layoutBox[x],N=dt(l[x]);k.max=k.min+N,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[x].max=n.relativeTarget[x].min+N)});const p=cr();di(p,l,s.layoutBox);const m=cr();f?di(m,n.applyTransform(u,!0),s.measuredBox):di(m,l,s.layoutBox);const g=!tm(p);let v=!1;if(!n.resumeFrom){const x=n.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:k,layout:N}=x;if(k&&N){const A=Re();hi(A,s.layoutBox,k.layoutBox);const M=Re();hi(M,l,N.layoutBox),nm(A,M)||(v=!0),x.options.layoutRoot&&(n.relativeTarget=M,n.relativeTargetOrigin=A,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:s,delta:m,layoutDelta:p,hasLayoutChanged:g,hasRelativeTargetChanged:v})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function w1(n){ui&&Ln.totalNodes++,n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function S1(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function k1(n){n.clearSnapshot()}function wh(n){n.clearMeasurements()}function C1(n){n.isLayoutDirty=!1}function P1(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function Sh(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function T1(n){n.resolveTargetDelta()}function E1(n){n.calcProjection()}function j1(n){n.resetSkewAndRotation()}function N1(n){n.removeLeadSnapshot()}function kh(n,i,s){n.translate=Te(i.translate,0,s),n.scale=Te(i.scale,1,s),n.origin=i.origin,n.originPoint=i.originPoint}function Ch(n,i,s,l){n.min=Te(i.min,s.min,l),n.max=Te(i.max,s.max,l)}function A1(n,i,s,l){Ch(n.x,i.x,s.x,l),Ch(n.y,i.y,s.y,l)}function M1(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const R1={duration:.45,ease:[.4,0,.1,1]},Ph=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Th=Ph("applewebkit/")&&!Ph("chrome/")?Math.round:ft;function Eh(n){n.min=Th(n.min),n.max=Th(n.max)}function D1(n){Eh(n.x),Eh(n.y)}function sm(n,i,s){return n==="position"||n==="preserve-aspect"&&!_x(vh(i),vh(s),.2)}function L1(n){var i;return n!==n.root&&((i=n.scroll)===null||i===void 0?void 0:i.wasRoot)}const V1=im({attachResizeListener:(n,i)=>yi(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fa={current:void 0},om=im({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!fa.current){const n=new V1({});n.mount(window),n.setOptions({layoutScroll:!0}),fa.current=n}return fa.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),_1={pan:{Feature:qx},drag:{Feature:Zx,ProjectionNode:om,MeasureLayout:bp}};function jh(n,i,s){const{props:l}=n;n.animationState&&l.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,d=l[u];d&&we.postRender(()=>d(i,ki(i)))}class I1 extends vn{mount(){const{current:i}=this.node;i&&(this.unmount=_y(i,s=>(jh(this.node,s,"Start"),l=>jh(this.node,l,"End"))))}unmount(){}}class F1 extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Si(yi(this.node.current,"focus",()=>this.onFocus()),yi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Nh(n,i,s){const{props:l}=n;n.animationState&&l.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),d=l[u];d&&we.postRender(()=>d(i,ki(i)))}class O1 extends vn{mount(){const{current:i}=this.node;i&&(this.unmount=zy(i,s=>(Nh(this.node,s,"Start"),(l,{success:u})=>Nh(this.node,l,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ja=new WeakMap,da=new WeakMap,z1=n=>{const i=ja.get(n.target);i&&i(n)},B1=n=>{n.forEach(z1)};function U1({root:n,...i}){const s=n||document;da.has(s)||da.set(s,{});const l=da.get(s),u=JSON.stringify(i);return l[u]||(l[u]=new IntersectionObserver(B1,{root:n,...i})),l[u]}function W1(n,i,s){const l=U1(i);return ja.set(n,s),l.observe(n),()=>{ja.delete(n),l.unobserve(n)}}const H1={some:0,all:1};class $1 extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:l,amount:u="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:l,threshold:typeof u=="number"?u:H1[u]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,d&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),k=g?v:x;k&&k(m)};return W1(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(K1(i,s))&&this.startObserver()}unmount(){}}function K1({viewport:n={}},{viewport:i={}}={}){return s=>n[s]!==i[s]}const G1={inView:{Feature:$1},tap:{Feature:O1},focus:{Feature:F1},hover:{Feature:I1}},Q1={layout:{ProjectionNode:om,MeasureLayout:bp}},Na={current:null},lm={current:!1};function Y1(){if(lm.current=!0,!!Va)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>Na.current=n.matches;n.addListener(i),i()}else Na.current=!1}const X1=[...Dp,Ke,gn],Z1=n=>X1.find(Rp(n)),Ah=new WeakMap;function q1(n,i,s){for(const l in i){const u=i[l],d=s[l];if(Ge(u))n.addValue(l,u);else if(Ge(d))n.addValue(l,gi(u,{owner:n}));else if(d!==u)if(n.hasValue(l)){const f=n.getValue(l);f.liveStyle===!0?f.jump(u):f.hasAnimated||f.set(u)}else{const f=n.getStaticValue(l);n.addValue(l,gi(f!==void 0?f:u,{owner:n}))}}for(const l in s)i[l]===void 0&&n.removeValue(l);return i}const Mh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class b1{scrapeMotionValuesFromProps(i,s,l){return{}}constructor({parent:i,props:s,presenceContext:l,reducedMotionConfig:u,blockInitialAnimation:d,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lu,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 N=It.now();this.renderScheduledAt<N&&(this.renderScheduledAt=N,we.render(this.render,!1,!0))};const{latestValues:m,renderState:g,onUpdate:v}=f;this.onUpdate=v,this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=g,this.parent=i,this.props=s,this.presenceContext=l,this.depth=i?i.depth+1:0,this.reducedMotionConfig=u,this.options=p,this.blockInitialAnimation=!!d,this.isControllingVariants=qs(s),this.isVariantNode=Bh(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:x,...k}=this.scrapeMotionValuesFromProps(s,{},this);for(const N in k){const A=k[N];m[N]!==void 0&&Ge(A)&&A.set(m[N],!1)}}mount(i){this.current=i,Ah.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,l)=>this.bindToMotionValue(l,s)),lm.current||Y1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Na.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ah.delete(this.current),this.projection&&this.projection.unmount(),mn(this.notifyUpdate),mn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const l=In.has(i),u=s.on("change",p=>{this.latestValues[i]=p,this.props.onUpdate&&we.preRender(this.notifyUpdate),l&&this.projection&&(this.projection.isTransformDirty=!0)}),d=s.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{u(),d(),f&&f(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in mr){const s=mr[i];if(!s)continue;const{isEnabled:l,Feature:u}=s;if(!this.features[i]&&u&&l(this.props)&&(this.features[i]=new u(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Re()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let l=0;l<Mh.length;l++){const u=Mh[l];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const d="on"+u,f=i[d];f&&(this.propEventSubscriptions[u]=this.on(u,f))}this.prevMotionValues=q1(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const l=this.values.get(i);s!==l&&(l&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let l=this.values.get(i);return l===void 0&&s!==void 0&&(l=gi(s===null?void 0:s,{owner:this}),this.addValue(i,l)),l}readValue(i,s){var l;let u=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:(l=this.getBaseTargetFromProps(this.props,i))!==null&&l!==void 0?l:this.readValueFromInstance(this.current,i,this.options);return u!=null&&(typeof u=="string"&&(Ap(u)||wp(u))?u=parseFloat(u):!Z1(u)&&gn.test(s)&&(u=Ep(i,s)),this.setBaseTarget(i,Ge(u)?u.get():u)),Ge(u)?u.get():u}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var s;const{initial:l}=this.props;let u;if(typeof l=="string"||typeof l=="object"){const f=Ua(this.props,l,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);f&&(u=f[i])}if(l&&u!==void 0)return u;const d=this.getBaseTargetFromProps(this.props,i);return d!==void 0&&!Ge(d)?d:this.initialValues[i]!==void 0&&u===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new tu),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}}class am extends b1{constructor(){super(...arguments),this.KeyframeResolver=Lp}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:l}){delete s[i],delete l[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Ge(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function J1(n){return window.getComputedStyle(n)}class ew extends am{constructor(){super(...arguments),this.type="html",this.renderInstance=Xh}readValueFromInstance(i,s){if(In.has(s)){const l=ou(s);return l&&l.default||0}else{const l=J1(i),u=(Gh(s)?l.getPropertyValue(s):l[s])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Zp(i,s)}build(i,s,l){$a(i,s,l.transformTemplate)}scrapeMotionValuesFromProps(i,s,l){return Ya(i,s,l)}}class tw extends am{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Re}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(In.has(s)){const l=ou(s);return l&&l.default||0}return s=Zh.has(s)?s:Oa(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,l){return Jh(i,s,l)}build(i,s,l){Ka(i,s,this.isSVGTag,l.transformTemplate)}renderInstance(i,s,l,u){qh(i,s,l,u)}mount(i){this.isSVGTag=Qa(i.tagName),super.mount(i)}}const nw=(n,i)=>Ba(n)?new tw(i):new ew(i,{allowProjection:n!==z.Fragment}),rw=Ny({...Ex,...G1,..._1,...Q1},nw),Rh=Hv(rw);function iw({open:n,onClose:i,children:s,maxWidth:l="max-w-2xl"}){return w.jsx(_v,{children:n&&w.jsxs(Rh.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-6",onClick:i,children:[w.jsx("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm"}),w.jsx(Rh.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{duration:.2},className:`relative w-full ${l} max-h-[80vh] rounded-2xl overflow-hidden`,style:{backgroundColor:de.cardBg,border:`1px solid ${de.cardBorder}`},onClick:u=>u.stopPropagation(),children:s})]})})}function sw({decision:n,onClose:i,onAction:s}){var l;return n?w.jsxs(iw,{open:!!n,onClose:i,maxWidth:"max-w-md",children:[w.jsx("div",{className:"px-6 py-4 border-b border-white/[0.06]",children:w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center",style:{backgroundColor:"rgba(245, 158, 11, 0.1)"},children:w.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#f59e0b",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}),w.jsx("path",{d:"M12 8v4"}),w.jsx("path",{d:"M12 16h.01"})]})}),w.jsxs("div",{children:[w.jsx("h3",{className:"text-sm font-medium text-white",children:n.title}),w.jsxs("span",{className:"text-[11px] text-white/40",children:[n.agent," · Waiting ",n.waitingMinutes,"m"]})]})]})}),w.jsx("div",{className:"px-6 py-4",children:w.jsx("p",{className:"text-[13px] text-white/60 leading-relaxed",children:n.context})}),w.jsxs("div",{className:"px-6 py-4 flex justify-end gap-3 border-t border-white/[0.06]",children:[w.jsx("button",{onClick:i,className:"px-4 py-2 rounded-lg text-[12px] font-medium text-white/50 hover:text-white hover:bg-white/[0.04] transition-colors",children:"Later"}),(l=n.options)==null?void 0:l.map(u=>w.jsx("button",{onClick:()=>{s(n.id,u.action),i()},className:vr("px-4 py-2 rounded-lg text-[12px] font-medium transition-colors",u.action==="approve"?"text-black":"bg-white/[0.06] text-white hover:bg-white/[0.1]"),style:u.action==="approve"?{backgroundColor:de.lime}:void 0,children:u.label},u.action))]})]}):null}const ow={connected:"LIVE",reconnecting:"RECONNECTING",disconnected:"OFFLINE"},lw={connected:de.lime,reconnecting:de.amber,disconnected:de.red};function aw(){const{data:n,isLoading:i}=pv({useMock:!1}),[s,l]=z.useState(null),[u,d]=z.useState(null);return i?w.jsx("div",{className:"h-screen flex items-center justify-center",style:{backgroundColor:de.background},children:w.jsx("div",{className:"text-white/40 text-sm",children:"Loading..."})}):w.jsxs("div",{className:"h-screen flex flex-col overflow-hidden",style:{backgroundColor:de.background},children:[w.jsxs("header",{className:"flex-shrink-0 flex items-center justify-between px-6 py-4",children:[w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("h1",{className:"text-[15px] font-semibold text-white tracking-tight",children:"OrgX"}),w.jsx(yv,{color:lw[n.connection],children:ow[n.connection]??"UNKNOWN"})]}),n.lastActivity&&w.jsxs("span",{className:"text-[11px] text-white/30",children:["Last activity: ",n.lastActivity]})]}),w.jsx(Mv,{decisions:n.pendingDecisions,onDecide:d}),w.jsxs("main",{className:"flex-1 min-h-0 grid grid-cols-[280px_1fr_320px] gap-3 p-4 pt-3",children:[w.jsx(kv,{agents:n.agents,selectedAgentId:s,onAgentSelect:l}),w.jsx(Tv,{activities:n.activities,selectedAgentId:s,onClearAgentFilter:()=>l(null),onArtifactClick:()=>{}}),w.jsx(Av,{initiatives:n.initiatives,onInitiativeClick:()=>{}})]}),w.jsx(sw,{decision:u,onClose:()=>d(null),onAction:()=>d(null)})]})}hv.createRoot(document.getElementById("root")).render(w.jsx(z.StrictMode,{children:w.jsx(aw,{})}));
|