@rigour-labs/cli 3.0.6 → 4.0.1
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/dist/cli.js +55 -5
- package/dist/commands/check.d.ts +7 -0
- package/dist/commands/check.js +287 -61
- package/dist/commands/init.js +83 -1
- package/dist/commands/settings.d.ts +13 -0
- package/dist/commands/settings.js +143 -0
- package/dist/commands/setup.js +110 -19
- package/dist/commands/studio.js +37 -0
- package/package.json +2 -2
- package/studio-dist/assets/index-B2pKEIQ0.js +296 -0
- package/studio-dist/assets/{index-B3y-dtOQ.css → index-WNovVfFN.css} +1 -1
- package/studio-dist/index.html +2 -2
- package/studio-dist/assets/index-C0TtM2OR.js +0 -291
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function zg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vf={exports:{}},Qi={},zf={exports:{}},B={};/**
|
|
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 gs=Symbol.for("react.element"),Og=Symbol.for("react.portal"),Fg=Symbol.for("react.fragment"),Ig=Symbol.for("react.strict_mode"),Bg=Symbol.for("react.profiler"),$g=Symbol.for("react.provider"),Ug=Symbol.for("react.context"),bg=Symbol.for("react.forward_ref"),Wg=Symbol.for("react.suspense"),Hg=Symbol.for("react.memo"),Kg=Symbol.for("react.lazy"),Ju=Symbol.iterator;function Gg(e){return e===null||typeof e!="object"?null:(e=Ju&&e[Ju]||e["@@iterator"],typeof e=="function"?e:null)}var Of={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ff=Object.assign,If={};function lr(e,t,n){this.props=e,this.context=t,this.refs=If,this.updater=n||Of}lr.prototype.isReactComponent={};lr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};lr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bf(){}Bf.prototype=lr.prototype;function jl(e,t,n){this.props=e,this.context=t,this.refs=If,this.updater=n||Of}var kl=jl.prototype=new Bf;kl.constructor=jl;Ff(kl,lr.prototype);kl.isPureReactComponent=!0;var ec=Array.isArray,$f=Object.prototype.hasOwnProperty,Cl={current:null},Uf={key:!0,ref:!0,__self:!0,__source:!0};function bf(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)$f.call(t,r)&&!Uf.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:gs,type:e,key:i,ref:o,props:s,_owner:Cl.current}}function Qg(e,t){return{$$typeof:gs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nl(e){return typeof e=="object"&&e!==null&&e.$$typeof===gs}function qg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tc=/\/+/g;function xo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qg(""+e.key):t.toString(36)}function Ys(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case gs:case Og:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+xo(o,0):r,ec(s)?(n="",e!=null&&(n=e.replace(tc,"$&/")+"/"),Ys(s,t,n,"",function(c){return c})):s!=null&&(Nl(s)&&(s=Qg(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(tc,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",ec(e))for(var l=0;l<e.length;l++){i=e[l];var u=r+xo(i,l);o+=Ys(i,t,n,u,s)}else if(u=Gg(e),typeof u=="function")for(e=u.call(e),l=0;!(i=e.next()).done;)i=i.value,u=r+xo(i,l++),o+=Ys(i,t,n,u,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ts(e,t,n){if(e==null)return e;var r=[],s=0;return Ys(e,r,"","",function(i){return t.call(n,i,s++)}),r}function Yg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},Xs={transition:null},Xg={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:Xs,ReactCurrentOwner:Cl};function Wf(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:Ts,forEach:function(e,t,n){Ts(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ts(e,function(){t++}),t},toArray:function(e){return Ts(e,function(t){return t})||[]},only:function(e){if(!Nl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=lr;B.Fragment=Fg;B.Profiler=Bg;B.PureComponent=jl;B.StrictMode=Ig;B.Suspense=Wg;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xg;B.act=Wf;B.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ff({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Cl.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)$f.call(t,u)&&!Uf.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:gs,type:e.type,key:s,ref:i,props:r,_owner:o}};B.createContext=function(e){return e={$$typeof:Ug,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$g,_context:e},e.Consumer=e};B.createElement=bf;B.createFactory=function(e){var t=bf.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:bg,render:e}};B.isValidElement=Nl;B.lazy=function(e){return{$$typeof:Kg,_payload:{_status:-1,_result:e},_init:Yg}};B.memo=function(e,t){return{$$typeof:Hg,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=Xs.transition;Xs.transition={};try{e()}finally{Xs.transition=t}};B.unstable_act=Wf;B.useCallback=function(e,t){return Pe.current.useCallback(e,t)};B.useContext=function(e){return Pe.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};B.useEffect=function(e,t){return Pe.current.useEffect(e,t)};B.useId=function(){return Pe.current.useId()};B.useImperativeHandle=function(e,t,n){return Pe.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Pe.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Pe.current.useReducer(e,t,n)};B.useRef=function(e){return Pe.current.useRef(e)};B.useState=function(e){return Pe.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Pe.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Pe.current.useTransition()};B.version="18.3.1";zf.exports=B;var k=zf.exports;const ze=zg(k);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Zg=k,Jg=Symbol.for("react.element"),ev=Symbol.for("react.fragment"),tv=Object.prototype.hasOwnProperty,nv=Zg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rv={key:!0,ref:!0,__self:!0,__source:!0};function Hf(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)tv.call(t,r)&&!rv.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Jg,type:e,key:i,ref:o,props:s,_owner:nv.current}}Qi.Fragment=ev;Qi.jsx=Hf;Qi.jsxs=Hf;Vf.exports=Qi;var a=Vf.exports,da={},Kf={exports:{}},Ue={},Gf={exports:{}},Qf={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(P,A){var R=P.length;P.push(A);e:for(;0<R;){var L=R-1>>>1,z=P[L];if(0<s(z,A))P[L]=A,P[R]=z,R=L;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var A=P[0],R=P.pop();if(R!==A){P[0]=R;e:for(var L=0,z=P.length,ae=z>>>1;L<ae;){var X=2*(L+1)-1,ot=P[X],nn=X+1,Ps=P[nn];if(0>s(ot,R))nn<z&&0>s(Ps,ot)?(P[L]=Ps,P[nn]=R,L=nn):(P[L]=ot,P[X]=R,L=X);else if(nn<z&&0>s(Ps,R))P[L]=Ps,P[nn]=R,L=nn;else break e}}return A}function s(P,A){var R=P.sortIndex-A.sortIndex;return R!==0?R:P.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],c=[],d=1,h=null,f=3,y=!1,w=!1,v=!1,N=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(P){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=P)r(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function S(P){if(v=!1,g(P),!w)if(n(u)!==null)w=!0,b(x);else{var A=n(c);A!==null&&W(S,A.startTime-P)}}function x(P,A){w=!1,v&&(v=!1,m(T),T=-1),y=!0;var R=f;try{for(g(A),h=n(u);h!==null&&(!(h.expirationTime>A)||P&&!$());){var L=h.callback;if(typeof L=="function"){h.callback=null,f=h.priorityLevel;var z=L(h.expirationTime<=A);A=e.unstable_now(),typeof z=="function"?h.callback=z:h===n(u)&&r(u),g(A)}else r(u);h=n(u)}if(h!==null)var ae=!0;else{var X=n(c);X!==null&&W(S,X.startTime-A),ae=!1}return ae}finally{h=null,f=R,y=!1}}var j=!1,C=null,T=-1,D=5,M=-1;function $(){return!(e.unstable_now()-M<D)}function I(){if(C!==null){var P=e.unstable_now();M=P;var A=!0;try{A=C(!0,P)}finally{A?de():(j=!1,C=null)}}else j=!1}var de;if(typeof p=="function")de=function(){p(I)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,O=Ee.port2;Ee.port1.onmessage=I,de=function(){O.postMessage(null)}}else de=function(){N(I,0)};function b(P){C=P,j||(j=!0,de())}function W(P,A){T=N(function(){P(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,b(x))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(P){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var R=f;f=A;try{return P()}finally{f=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,A){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var R=f;f=P;try{return A()}finally{f=R}},e.unstable_scheduleCallback=function(P,A,R){var L=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?L+R:L):R=L,P){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=R+z,P={id:d++,callback:A,priorityLevel:P,startTime:R,expirationTime:z,sortIndex:-1},R>L?(P.sortIndex=R,t(c,P),n(u)===null&&P===n(c)&&(v?(m(T),T=-1):v=!0,W(S,R-L))):(P.sortIndex=z,t(u,P),w||y||(w=!0,b(x))),P},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(P){var A=f;return function(){var R=f;f=A;try{return P.apply(this,arguments)}finally{f=R}}}})(Qf);Gf.exports=Qf;var sv=Gf.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 iv=k,Be=sv;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var qf=new Set,Wr={};function kn(e,t){Zn(e,t),Zn(e+"Capture",t)}function Zn(e,t){for(Wr[e]=t,e=0;e<t.length;e++)qf.add(t[e])}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fa=Object.prototype.hasOwnProperty,ov=/^[: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]*$/,nc={},rc={};function av(e){return fa.call(rc,e)?!0:fa.call(nc,e)?!1:ov.test(e)?rc[e]=!0:(nc[e]=!0,!1)}function lv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uv(e,t,n,r){if(t===null||typeof t>"u"||lv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Te(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ve[e]=new Te(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ve[t]=new Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ve[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ve[e]=new Te(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){ve[e]=new Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ve[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ve[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ve[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ve[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pl=/[\-:]([a-z])/g;function Tl(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(Pl,Tl);ve[t]=new Te(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(Pl,Tl);ve[t]=new Te(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(Pl,Tl);ve[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ve[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});ve.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ve[e]=new Te(e,1,!1,e.toLowerCase(),null,!0,!0)});function El(e,t,n,r){var s=ve.hasOwnProperty(t)?ve[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(uv(t,n,s,r)&&(n=null),r||s===null?av(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Et=iv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Es=Symbol.for("react.element"),Tn=Symbol.for("react.portal"),En=Symbol.for("react.fragment"),Ml=Symbol.for("react.strict_mode"),ha=Symbol.for("react.profiler"),Yf=Symbol.for("react.provider"),Xf=Symbol.for("react.context"),Al=Symbol.for("react.forward_ref"),pa=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),_l=Symbol.for("react.memo"),Dt=Symbol.for("react.lazy"),Zf=Symbol.for("react.offscreen"),sc=Symbol.iterator;function hr(e){return e===null||typeof e!="object"?null:(e=sc&&e[sc]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Object.assign,wo;function jr(e){if(wo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);wo=t&&t[1]||""}return`
|
|
34
|
+
`+wo+e}var So=!1;function jo(e,t){if(!e||So)return"";So=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var u=`
|
|
37
|
+
`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=l);break}}}finally{So=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?jr(e):""}function cv(e){switch(e.tag){case 5:return jr(e.type);case 16:return jr("Lazy");case 13:return jr("Suspense");case 19:return jr("SuspenseList");case 0:case 2:case 15:return e=jo(e.type,!1),e;case 11:return e=jo(e.type.render,!1),e;case 1:return e=jo(e.type,!0),e;default:return""}}function ga(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case En:return"Fragment";case Tn:return"Portal";case ha:return"Profiler";case Ml:return"StrictMode";case pa:return"Suspense";case ma:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xf:return(e.displayName||"Context")+".Consumer";case Yf:return(e._context.displayName||"Context")+".Provider";case Al:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _l:return t=e.displayName||null,t!==null?t:ga(e.type)||"Memo";case Dt:t=e._payload,e=e._init;try{return ga(e(t))}catch{}}return null}function dv(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 ga(t);case 8:return t===Ml?"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 Gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fv(e){var t=Jf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ms(e){e._valueTracker||(e._valueTracker=fv(e))}function eh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function va(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ic(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function th(e,t){t=t.checked,t!=null&&El(e,"checked",t,!1)}function ya(e,t){th(e,t);var n=Gt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xa(e,t.type,n):t.hasOwnProperty("defaultValue")&&xa(e,t.type,Gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xa(e,t,n){(t!=="number"||fi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var kr=Array.isArray;function Kn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Gt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function wa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ac(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(kr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Gt(n)}}function nh(e,t){var n=Gt(t.value),r=Gt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function lc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rh(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 Sa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var As,sh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(As=As||document.createElement("div"),As.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=As.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ar={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},hv=["Webkit","ms","Moz","O"];Object.keys(Ar).forEach(function(e){hv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ar[t]=Ar[e]})});function ih(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ar.hasOwnProperty(e)&&Ar[e]?(""+t).trim():t+"px"}function oh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=ih(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var pv=ne({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 ja(e,t){if(t){if(pv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function ka(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 Ca=null;function Dl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Na=null,Gn=null,Qn=null;function uc(e){if(e=xs(e)){if(typeof Na!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Ji(t),Na(e.stateNode,e.type,t))}}function ah(e){Gn?Qn?Qn.push(e):Qn=[e]:Gn=e}function lh(){if(Gn){var e=Gn,t=Qn;if(Qn=Gn=null,uc(e),t)for(e=0;e<t.length;e++)uc(t[e])}}function uh(e,t){return e(t)}function ch(){}var ko=!1;function dh(e,t,n){if(ko)return e(t,n);ko=!0;try{return uh(e,t,n)}finally{ko=!1,(Gn!==null||Qn!==null)&&(ch(),lh())}}function Kr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ji(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Pa=!1;if(kt)try{var pr={};Object.defineProperty(pr,"passive",{get:function(){Pa=!0}}),window.addEventListener("test",pr,pr),window.removeEventListener("test",pr,pr)}catch{Pa=!1}function mv(e,t,n,r,s,i,o,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var _r=!1,hi=null,pi=!1,Ta=null,gv={onError:function(e){_r=!0,hi=e}};function vv(e,t,n,r,s,i,o,l,u){_r=!1,hi=null,mv.apply(gv,arguments)}function yv(e,t,n,r,s,i,o,l,u){if(vv.apply(this,arguments),_r){if(_r){var c=hi;_r=!1,hi=null}else throw Error(E(198));pi||(pi=!0,Ta=c)}}function Cn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function fh(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 cc(e){if(Cn(e)!==e)throw Error(E(188))}function xv(e){var t=e.alternate;if(!t){if(t=Cn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return cc(s),e;if(i===r)return cc(s),t;i=i.sibling}throw Error(E(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function hh(e){return e=xv(e),e!==null?ph(e):null}function ph(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ph(e);if(t!==null)return t;e=e.sibling}return null}var mh=Be.unstable_scheduleCallback,dc=Be.unstable_cancelCallback,wv=Be.unstable_shouldYield,Sv=Be.unstable_requestPaint,oe=Be.unstable_now,jv=Be.unstable_getCurrentPriorityLevel,Ll=Be.unstable_ImmediatePriority,gh=Be.unstable_UserBlockingPriority,mi=Be.unstable_NormalPriority,kv=Be.unstable_LowPriority,vh=Be.unstable_IdlePriority,qi=null,dt=null;function Cv(e){if(dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(qi,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:Tv,Nv=Math.log,Pv=Math.LN2;function Tv(e){return e>>>=0,e===0?32:31-(Nv(e)/Pv|0)|0}var _s=64,Ds=4194304;function Cr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=Cr(l):(i&=o,i!==0&&(r=Cr(i)))}else o=n&~s,o!==0?r=Cr(o):i!==0&&(r=Cr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),s=1<<n,r|=e[n],t&=~s;return r}function Ev(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 Mv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-rt(i),l=1<<o,u=s[o];u===-1?(!(l&n)||l&r)&&(s[o]=Ev(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}function Ea(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yh(){var e=_s;return _s<<=1,!(_s&4194240)&&(_s=64),e}function Co(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function Av(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-rt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Rl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var H=0;function xh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wh,Vl,Sh,jh,kh,Ma=!1,Ls=[],Ft=null,It=null,Bt=null,Gr=new Map,Qr=new Map,Rt=[],_v="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 fc(e,t){switch(e){case"focusin":case"focusout":Ft=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Bt=null;break;case"pointerover":case"pointerout":Gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qr.delete(t.pointerId)}}function mr(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=xs(t),t!==null&&Vl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Dv(e,t,n,r,s){switch(t){case"focusin":return Ft=mr(Ft,e,t,n,r,s),!0;case"dragenter":return It=mr(It,e,t,n,r,s),!0;case"mouseover":return Bt=mr(Bt,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Gr.set(i,mr(Gr.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Qr.set(i,mr(Qr.get(i)||null,e,t,n,r,s)),!0}return!1}function Ch(e){var t=un(e.target);if(t!==null){var n=Cn(t);if(n!==null){if(t=n.tag,t===13){if(t=fh(n),t!==null){e.blockedOn=t,kh(e.priority,function(){Sh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Aa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ca=r,n.target.dispatchEvent(r),Ca=null}else return t=xs(n),t!==null&&Vl(t),e.blockedOn=n,!1;t.shift()}return!0}function hc(e,t,n){Zs(e)&&n.delete(t)}function Lv(){Ma=!1,Ft!==null&&Zs(Ft)&&(Ft=null),It!==null&&Zs(It)&&(It=null),Bt!==null&&Zs(Bt)&&(Bt=null),Gr.forEach(hc),Qr.forEach(hc)}function gr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ma||(Ma=!0,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,Lv)))}function qr(e){function t(s){return gr(s,e)}if(0<Ls.length){gr(Ls[0],e);for(var n=1;n<Ls.length;n++){var r=Ls[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ft!==null&&gr(Ft,e),It!==null&&gr(It,e),Bt!==null&&gr(Bt,e),Gr.forEach(t),Qr.forEach(t),n=0;n<Rt.length;n++)r=Rt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&(n=Rt[0],n.blockedOn===null);)Ch(n),n.blockedOn===null&&Rt.shift()}var qn=Et.ReactCurrentBatchConfig,vi=!0;function Rv(e,t,n,r){var s=H,i=qn.transition;qn.transition=null;try{H=1,zl(e,t,n,r)}finally{H=s,qn.transition=i}}function Vv(e,t,n,r){var s=H,i=qn.transition;qn.transition=null;try{H=4,zl(e,t,n,r)}finally{H=s,qn.transition=i}}function zl(e,t,n,r){if(vi){var s=Aa(e,t,n,r);if(s===null)Ro(e,t,r,yi,n),fc(e,r);else if(Dv(s,e,t,n,r))r.stopPropagation();else if(fc(e,r),t&4&&-1<_v.indexOf(e)){for(;s!==null;){var i=xs(s);if(i!==null&&wh(i),i=Aa(e,t,n,r),i===null&&Ro(e,t,r,yi,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Ro(e,t,r,null,n)}}var yi=null;function Aa(e,t,n,r){if(yi=null,e=Dl(r),e=un(e),e!==null)if(t=Cn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=fh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yi=e,null}function Nh(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(jv()){case Ll:return 1;case gh:return 4;case mi:case kv:return 16;case vh:return 536870912;default:return 16}default:return 16}}var zt=null,Ol=null,Js=null;function Ph(){if(Js)return Js;var e,t=Ol,n=t.length,r,s="value"in zt?zt.value:zt.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Js=s.slice(e,1<r?1-r:void 0)}function ei(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 Rs(){return!0}function pc(){return!1}function be(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Rs:pc,this.isPropagationStopped=pc,this}return ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rs)},persist:function(){},isPersistent:Rs}),t}var ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fl=be(ur),ys=ne({},ur,{view:0,detail:0}),zv=be(ys),No,Po,vr,Yi=ne({},ys,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Il,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"?(No=e.screenX-vr.screenX,Po=e.screenY-vr.screenY):Po=No=0,vr=e),No)},movementY:function(e){return"movementY"in e?e.movementY:Po}}),mc=be(Yi),Ov=ne({},Yi,{dataTransfer:0}),Fv=be(Ov),Iv=ne({},ys,{relatedTarget:0}),To=be(Iv),Bv=ne({},ur,{animationName:0,elapsedTime:0,pseudoElement:0}),$v=be(Bv),Uv=ne({},ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bv=be(Uv),Wv=ne({},ur,{data:0}),gc=be(Wv),Hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kv={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"},Gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gv[e])?!!t[e]:!1}function Il(){return Qv}var qv=ne({},ys,{key:function(e){if(e.key){var t=Hv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Il,charCode:function(e){return e.type==="keypress"?ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yv=be(qv),Xv=ne({},Yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vc=be(Xv),Zv=ne({},ys,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Il}),Jv=be(Zv),ey=ne({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),ty=be(ey),ny=ne({},Yi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ry=be(ny),sy=[9,13,27,32],Bl=kt&&"CompositionEvent"in window,Dr=null;kt&&"documentMode"in document&&(Dr=document.documentMode);var iy=kt&&"TextEvent"in window&&!Dr,Th=kt&&(!Bl||Dr&&8<Dr&&11>=Dr),yc=" ",xc=!1;function Eh(e,t){switch(e){case"keyup":return sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mn=!1;function oy(e,t){switch(e){case"compositionend":return Mh(t);case"keypress":return t.which!==32?null:(xc=!0,yc);case"textInput":return e=t.data,e===yc&&xc?null:e;default:return null}}function ay(e,t){if(Mn)return e==="compositionend"||!Bl&&Eh(e,t)?(e=Ph(),Js=Ol=zt=null,Mn=!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 Th&&t.locale!=="ko"?null:t.data;default:return null}}var ly={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 wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ly[e.type]:t==="textarea"}function Ah(e,t,n,r){ah(r),t=xi(t,"onChange"),0<t.length&&(n=new Fl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Lr=null,Yr=null;function uy(e){$h(e,0)}function Xi(e){var t=Dn(e);if(eh(t))return e}function cy(e,t){if(e==="change")return t}var _h=!1;if(kt){var Eo;if(kt){var Mo="oninput"in document;if(!Mo){var Sc=document.createElement("div");Sc.setAttribute("oninput","return;"),Mo=typeof Sc.oninput=="function"}Eo=Mo}else Eo=!1;_h=Eo&&(!document.documentMode||9<document.documentMode)}function jc(){Lr&&(Lr.detachEvent("onpropertychange",Dh),Yr=Lr=null)}function Dh(e){if(e.propertyName==="value"&&Xi(Yr)){var t=[];Ah(t,Yr,e,Dl(e)),dh(uy,t)}}function dy(e,t,n){e==="focusin"?(jc(),Lr=t,Yr=n,Lr.attachEvent("onpropertychange",Dh)):e==="focusout"&&jc()}function fy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xi(Yr)}function hy(e,t){if(e==="click")return Xi(t)}function py(e,t){if(e==="input"||e==="change")return Xi(t)}function my(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var it=typeof Object.is=="function"?Object.is:my;function Xr(e,t){if(it(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!fa.call(t,s)||!it(e[s],t[s]))return!1}return!0}function kc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cc(e,t){var n=kc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kc(n)}}function Lh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rh(){for(var e=window,t=fi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fi(e.document)}return t}function $l(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 gy(e){var t=Rh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lh(n.ownerDocument.documentElement,n)){if(r!==null&&$l(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Cc(n,i);var o=Cc(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vy=kt&&"documentMode"in document&&11>=document.documentMode,An=null,_a=null,Rr=null,Da=!1;function Nc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Da||An==null||An!==fi(r)||(r=An,"selectionStart"in r&&$l(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rr&&Xr(Rr,r)||(Rr=r,r=xi(_a,"onSelect"),0<r.length&&(t=new Fl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=An)))}function Vs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _n={animationend:Vs("Animation","AnimationEnd"),animationiteration:Vs("Animation","AnimationIteration"),animationstart:Vs("Animation","AnimationStart"),transitionend:Vs("Transition","TransitionEnd")},Ao={},Vh={};kt&&(Vh=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 Zi(e){if(Ao[e])return Ao[e];if(!_n[e])return e;var t=_n[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vh)return Ao[e]=t[n];return e}var zh=Zi("animationend"),Oh=Zi("animationiteration"),Fh=Zi("animationstart"),Ih=Zi("transitionend"),Bh=new Map,Pc="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 Zt(e,t){Bh.set(e,t),kn(t,[e])}for(var _o=0;_o<Pc.length;_o++){var Do=Pc[_o],yy=Do.toLowerCase(),xy=Do[0].toUpperCase()+Do.slice(1);Zt(yy,"on"+xy)}Zt(zh,"onAnimationEnd");Zt(Oh,"onAnimationIteration");Zt(Fh,"onAnimationStart");Zt("dblclick","onDoubleClick");Zt("focusin","onFocus");Zt("focusout","onBlur");Zt(Ih,"onTransitionEnd");Zn("onMouseEnter",["mouseout","mouseover"]);Zn("onMouseLeave",["mouseout","mouseover"]);Zn("onPointerEnter",["pointerout","pointerover"]);Zn("onPointerLeave",["pointerout","pointerover"]);kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));kn("onBeforeInput",["compositionend","keypress","textInput","paste"]);kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="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(" "),wy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Tc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yv(r,t,void 0,e),e.currentTarget=null}function $h(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==i&&s.isPropagationStopped())break e;Tc(s,l,c),i=u}else for(o=0;o<r.length;o++){if(l=r[o],u=l.instance,c=l.currentTarget,l=l.listener,u!==i&&s.isPropagationStopped())break e;Tc(s,l,c),i=u}}}if(pi)throw e=Ta,pi=!1,Ta=null,e}function Q(e,t){var n=t[Oa];n===void 0&&(n=t[Oa]=new Set);var r=e+"__bubble";n.has(r)||(Uh(t,e,2,!1),n.add(r))}function Lo(e,t,n){var r=0;t&&(r|=4),Uh(n,e,r,t)}var zs="_reactListening"+Math.random().toString(36).slice(2);function Zr(e){if(!e[zs]){e[zs]=!0,qf.forEach(function(n){n!=="selectionchange"&&(wy.has(n)||Lo(n,!1,e),Lo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zs]||(t[zs]=!0,Lo("selectionchange",!1,t))}}function Uh(e,t,n,r){switch(Nh(t)){case 1:var s=Rv;break;case 4:s=Vv;break;default:s=zl}n=s.bind(null,t,n,e),s=void 0,!Pa||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ro(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;o=o.return}for(;l!==null;){if(o=un(l),o===null)return;if(u=o.tag,u===5||u===6){r=i=o;continue e}l=l.parentNode}}r=r.return}dh(function(){var c=i,d=Dl(n),h=[];e:{var f=Bh.get(e);if(f!==void 0){var y=Fl,w=e;switch(e){case"keypress":if(ei(n)===0)break e;case"keydown":case"keyup":y=Yv;break;case"focusin":w="focus",y=To;break;case"focusout":w="blur",y=To;break;case"beforeblur":case"afterblur":y=To;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=mc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Fv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Jv;break;case zh:case Oh:case Fh:y=$v;break;case Ih:y=ty;break;case"scroll":y=zv;break;case"wheel":y=ry;break;case"copy":case"cut":case"paste":y=bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=vc}var v=(t&4)!==0,N=!v&&e==="scroll",m=v?f!==null?f+"Capture":null:f;v=[];for(var p=c,g;p!==null;){g=p;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,m!==null&&(S=Kr(p,m),S!=null&&v.push(Jr(p,S,g)))),N)break;p=p.return}0<v.length&&(f=new y(f,w,null,n,d),h.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&n!==Ca&&(w=n.relatedTarget||n.fromElement)&&(un(w)||w[Ct]))break e;if((y||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=c,w=w?un(w):null,w!==null&&(N=Cn(w),w!==N||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=c),y!==w)){if(v=mc,S="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=vc,S="onPointerLeave",m="onPointerEnter",p="pointer"),N=y==null?f:Dn(y),g=w==null?f:Dn(w),f=new v(S,p+"leave",y,n,d),f.target=N,f.relatedTarget=g,S=null,un(d)===c&&(v=new v(m,p+"enter",w,n,d),v.target=g,v.relatedTarget=N,S=v),N=S,y&&w)t:{for(v=y,m=w,p=0,g=v;g;g=Pn(g))p++;for(g=0,S=m;S;S=Pn(S))g++;for(;0<p-g;)v=Pn(v),p--;for(;0<g-p;)m=Pn(m),g--;for(;p--;){if(v===m||m!==null&&v===m.alternate)break t;v=Pn(v),m=Pn(m)}v=null}else v=null;y!==null&&Ec(h,f,y,v,!1),w!==null&&N!==null&&Ec(h,N,w,v,!0)}}e:{if(f=c?Dn(c):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var x=cy;else if(wc(f))if(_h)x=py;else{x=fy;var j=dy}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(x=hy);if(x&&(x=x(e,c))){Ah(h,x,n,d);break e}j&&j(e,f,c),e==="focusout"&&(j=f._wrapperState)&&j.controlled&&f.type==="number"&&xa(f,"number",f.value)}switch(j=c?Dn(c):window,e){case"focusin":(wc(j)||j.contentEditable==="true")&&(An=j,_a=c,Rr=null);break;case"focusout":Rr=_a=An=null;break;case"mousedown":Da=!0;break;case"contextmenu":case"mouseup":case"dragend":Da=!1,Nc(h,n,d);break;case"selectionchange":if(vy)break;case"keydown":case"keyup":Nc(h,n,d)}var C;if(Bl)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Mn?Eh(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Th&&n.locale!=="ko"&&(Mn||T!=="onCompositionStart"?T==="onCompositionEnd"&&Mn&&(C=Ph()):(zt=d,Ol="value"in zt?zt.value:zt.textContent,Mn=!0)),j=xi(c,T),0<j.length&&(T=new gc(T,e,null,n,d),h.push({event:T,listeners:j}),C?T.data=C:(C=Mh(n),C!==null&&(T.data=C)))),(C=iy?oy(e,n):ay(e,n))&&(c=xi(c,"onBeforeInput"),0<c.length&&(d=new gc("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:c}),d.data=C))}$h(h,t)})}function Jr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xi(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Kr(e,n),i!=null&&r.unshift(Jr(e,i,s)),i=Kr(e,t),i!=null&&r.push(Jr(e,i,s))),e=e.return}return r}function Pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ec(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&c!==null&&(l=c,s?(u=Kr(n,i),u!=null&&o.unshift(Jr(n,u,l))):s||(u=Kr(n,i),u!=null&&o.push(Jr(n,u,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Sy=/\r\n?/g,jy=/\u0000|\uFFFD/g;function Mc(e){return(typeof e=="string"?e:""+e).replace(Sy,`
|
|
38
|
+
`).replace(jy,"")}function Os(e,t,n){if(t=Mc(t),Mc(e)!==t&&n)throw Error(E(425))}function wi(){}var La=null,Ra=null;function Va(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 za=typeof setTimeout=="function"?setTimeout:void 0,ky=typeof clearTimeout=="function"?clearTimeout:void 0,Ac=typeof Promise=="function"?Promise:void 0,Cy=typeof queueMicrotask=="function"?queueMicrotask:typeof Ac<"u"?function(e){return Ac.resolve(null).then(e).catch(Ny)}:za;function Ny(e){setTimeout(function(){throw e})}function Vo(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),qr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);qr(t)}function $t(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 _c(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var cr=Math.random().toString(36).slice(2),ut="__reactFiber$"+cr,es="__reactProps$"+cr,Ct="__reactContainer$"+cr,Oa="__reactEvents$"+cr,Py="__reactListeners$"+cr,Ty="__reactHandles$"+cr;function un(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_c(e);e!==null;){if(n=e[ut])return n;e=_c(e)}return t}e=n,n=e.parentNode}return null}function xs(e){return e=e[ut]||e[Ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Dn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Ji(e){return e[es]||null}var Fa=[],Ln=-1;function Jt(e){return{current:e}}function q(e){0>Ln||(e.current=Fa[Ln],Fa[Ln]=null,Ln--)}function K(e,t){Ln++,Fa[Ln]=e.current,e.current=t}var Qt={},ke=Jt(Qt),_e=Jt(!1),vn=Qt;function Jn(e,t){var n=e.type.contextTypes;if(!n)return Qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function De(e){return e=e.childContextTypes,e!=null}function Si(){q(_e),q(ke)}function Dc(e,t,n){if(ke.current!==Qt)throw Error(E(168));K(ke,t),K(_e,n)}function bh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(E(108,dv(e)||"Unknown",s));return ne({},n,r)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,vn=ke.current,K(ke,e),K(_e,_e.current),!0}function Lc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=bh(e,t,vn),r.__reactInternalMemoizedMergedChildContext=e,q(_e),q(ke),K(ke,e)):q(_e),K(_e,n)}var vt=null,eo=!1,zo=!1;function Wh(e){vt===null?vt=[e]:vt.push(e)}function Ey(e){eo=!0,Wh(e)}function en(){if(!zo&&vt!==null){zo=!0;var e=0,t=H;try{var n=vt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vt=null,eo=!1}catch(s){throw vt!==null&&(vt=vt.slice(e+1)),mh(Ll,en),s}finally{H=t,zo=!1}}return null}var Rn=[],Vn=0,ki=null,Ci=0,Ke=[],Ge=0,yn=null,yt=1,xt="";function sn(e,t){Rn[Vn++]=Ci,Rn[Vn++]=ki,ki=e,Ci=t}function Hh(e,t,n){Ke[Ge++]=yt,Ke[Ge++]=xt,Ke[Ge++]=yn,yn=e;var r=yt;e=xt;var s=32-rt(r)-1;r&=~(1<<s),n+=1;var i=32-rt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,yt=1<<32-rt(t)+s|n<<s|r,xt=i+e}else yt=1<<i|n<<s|r,xt=e}function Ul(e){e.return!==null&&(sn(e,1),Hh(e,1,0))}function bl(e){for(;e===ki;)ki=Rn[--Vn],Rn[Vn]=null,Ci=Rn[--Vn],Rn[Vn]=null;for(;e===yn;)yn=Ke[--Ge],Ke[Ge]=null,xt=Ke[--Ge],Ke[Ge]=null,yt=Ke[--Ge],Ke[Ge]=null}var Fe=null,Oe=null,Z=!1,nt=null;function Kh(e,t){var n=Qe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Rc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Fe=e,Oe=$t(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Fe=e,Oe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=yn!==null?{id:yt,overflow:xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Fe=e,Oe=null,!0):!1;default:return!1}}function Ia(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ba(e){if(Z){var t=Oe;if(t){var n=t;if(!Rc(e,t)){if(Ia(e))throw Error(E(418));t=$t(n.nextSibling);var r=Fe;t&&Rc(e,t)?Kh(r,n):(e.flags=e.flags&-4097|2,Z=!1,Fe=e)}}else{if(Ia(e))throw Error(E(418));e.flags=e.flags&-4097|2,Z=!1,Fe=e}}}function Vc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fe=e}function Fs(e){if(e!==Fe)return!1;if(!Z)return Vc(e),Z=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Va(e.type,e.memoizedProps)),t&&(t=Oe)){if(Ia(e))throw Gh(),Error(E(418));for(;t;)Kh(e,t),t=$t(t.nextSibling)}if(Vc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Oe=$t(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Oe=null}}else Oe=Fe?$t(e.stateNode.nextSibling):null;return!0}function Gh(){for(var e=Oe;e;)e=$t(e.nextSibling)}function er(){Oe=Fe=null,Z=!1}function Wl(e){nt===null?nt=[e]:nt.push(e)}var My=Et.ReactCurrentBatchConfig;function yr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Is(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zc(e){var t=e._init;return t(e._payload)}function Qh(e){function t(m,p){if(e){var g=m.deletions;g===null?(m.deletions=[p],m.flags|=16):g.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function s(m,p){return m=Ht(m,p),m.index=0,m.sibling=null,m}function i(m,p,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<p?(m.flags|=2,p):g):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,g,S){return p===null||p.tag!==6?(p=bo(g,m.mode,S),p.return=m,p):(p=s(p,g),p.return=m,p)}function u(m,p,g,S){var x=g.type;return x===En?d(m,p,g.props.children,S,g.key):p!==null&&(p.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Dt&&zc(x)===p.type)?(S=s(p,g.props),S.ref=yr(m,p,g),S.return=m,S):(S=ai(g.type,g.key,g.props,null,m.mode,S),S.ref=yr(m,p,g),S.return=m,S)}function c(m,p,g,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=Wo(g,m.mode,S),p.return=m,p):(p=s(p,g.children||[]),p.return=m,p)}function d(m,p,g,S,x){return p===null||p.tag!==7?(p=pn(g,m.mode,S,x),p.return=m,p):(p=s(p,g),p.return=m,p)}function h(m,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=bo(""+p,m.mode,g),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Es:return g=ai(p.type,p.key,p.props,null,m.mode,g),g.ref=yr(m,null,p),g.return=m,g;case Tn:return p=Wo(p,m.mode,g),p.return=m,p;case Dt:var S=p._init;return h(m,S(p._payload),g)}if(kr(p)||hr(p))return p=pn(p,m.mode,g,null),p.return=m,p;Is(m,p)}return null}function f(m,p,g,S){var x=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return x!==null?null:l(m,p,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Es:return g.key===x?u(m,p,g,S):null;case Tn:return g.key===x?c(m,p,g,S):null;case Dt:return x=g._init,f(m,p,x(g._payload),S)}if(kr(g)||hr(g))return x!==null?null:d(m,p,g,S,null);Is(m,g)}return null}function y(m,p,g,S,x){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(g)||null,l(p,m,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Es:return m=m.get(S.key===null?g:S.key)||null,u(p,m,S,x);case Tn:return m=m.get(S.key===null?g:S.key)||null,c(p,m,S,x);case Dt:var j=S._init;return y(m,p,g,j(S._payload),x)}if(kr(S)||hr(S))return m=m.get(g)||null,d(p,m,S,x,null);Is(p,S)}return null}function w(m,p,g,S){for(var x=null,j=null,C=p,T=p=0,D=null;C!==null&&T<g.length;T++){C.index>T?(D=C,C=null):D=C.sibling;var M=f(m,C,g[T],S);if(M===null){C===null&&(C=D);break}e&&C&&M.alternate===null&&t(m,C),p=i(M,p,T),j===null?x=M:j.sibling=M,j=M,C=D}if(T===g.length)return n(m,C),Z&&sn(m,T),x;if(C===null){for(;T<g.length;T++)C=h(m,g[T],S),C!==null&&(p=i(C,p,T),j===null?x=C:j.sibling=C,j=C);return Z&&sn(m,T),x}for(C=r(m,C);T<g.length;T++)D=y(C,m,T,g[T],S),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?T:D.key),p=i(D,p,T),j===null?x=D:j.sibling=D,j=D);return e&&C.forEach(function($){return t(m,$)}),Z&&sn(m,T),x}function v(m,p,g,S){var x=hr(g);if(typeof x!="function")throw Error(E(150));if(g=x.call(g),g==null)throw Error(E(151));for(var j=x=null,C=p,T=p=0,D=null,M=g.next();C!==null&&!M.done;T++,M=g.next()){C.index>T?(D=C,C=null):D=C.sibling;var $=f(m,C,M.value,S);if($===null){C===null&&(C=D);break}e&&C&&$.alternate===null&&t(m,C),p=i($,p,T),j===null?x=$:j.sibling=$,j=$,C=D}if(M.done)return n(m,C),Z&&sn(m,T),x;if(C===null){for(;!M.done;T++,M=g.next())M=h(m,M.value,S),M!==null&&(p=i(M,p,T),j===null?x=M:j.sibling=M,j=M);return Z&&sn(m,T),x}for(C=r(m,C);!M.done;T++,M=g.next())M=y(C,m,T,M.value,S),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?T:M.key),p=i(M,p,T),j===null?x=M:j.sibling=M,j=M);return e&&C.forEach(function(I){return t(m,I)}),Z&&sn(m,T),x}function N(m,p,g,S){if(typeof g=="object"&&g!==null&&g.type===En&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Es:e:{for(var x=g.key,j=p;j!==null;){if(j.key===x){if(x=g.type,x===En){if(j.tag===7){n(m,j.sibling),p=s(j,g.props.children),p.return=m,m=p;break e}}else if(j.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Dt&&zc(x)===j.type){n(m,j.sibling),p=s(j,g.props),p.ref=yr(m,j,g),p.return=m,m=p;break e}n(m,j);break}else t(m,j);j=j.sibling}g.type===En?(p=pn(g.props.children,m.mode,S,g.key),p.return=m,m=p):(S=ai(g.type,g.key,g.props,null,m.mode,S),S.ref=yr(m,p,g),S.return=m,m=S)}return o(m);case Tn:e:{for(j=g.key;p!==null;){if(p.key===j)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=s(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Wo(g,m.mode,S),p.return=m,m=p}return o(m);case Dt:return j=g._init,N(m,p,j(g._payload),S)}if(kr(g))return w(m,p,g,S);if(hr(g))return v(m,p,g,S);Is(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=s(p,g),p.return=m,m=p):(n(m,p),p=bo(g,m.mode,S),p.return=m,m=p),o(m)):n(m,p)}return N}var tr=Qh(!0),qh=Qh(!1),Ni=Jt(null),Pi=null,zn=null,Hl=null;function Kl(){Hl=zn=Pi=null}function Gl(e){var t=Ni.current;q(Ni),e._currentValue=t}function $a(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yn(e,t){Pi=e,Hl=zn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ae=!0),e.firstContext=null)}function Ye(e){var t=e._currentValue;if(Hl!==e)if(e={context:e,memoizedValue:t,next:null},zn===null){if(Pi===null)throw Error(E(308));zn=e,Pi.dependencies={lanes:0,firstContext:e}}else zn=zn.next=e;return t}var cn=null;function Ql(e){cn===null?cn=[e]:cn.push(e)}function Yh(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Ql(t)):(n.next=s.next,s.next=n),t.interleaved=n,Nt(e,r)}function Nt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Lt=!1;function ql(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xh(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 Ut(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Nt(e,n)}return s=r.interleaved,s===null?(t.next=t,Ql(r)):(t.next=s.next,s.next=t),r.interleaved=t,Nt(e,n)}function ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rl(e,n)}}function Oc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ti(e,t,n,r){var s=e.updateQueue;Lt=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var h=s.baseState;o=0,d=c=u=null,l=i;do{var f=l.lane,y=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,v=l;switch(f=t,y=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){h=w.call(y,h,f);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,f=typeof w=="function"?w.call(y,h,f):w,f==null)break e;h=ne({},h,f);break e;case 2:Lt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else y={eventTime:y,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=y,u=h):d=d.next=y,o|=f;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;f=l,l=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(u=h),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);wn|=o,e.lanes=o,e.memoizedState=h}}function Fc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(E(191,s));s.call(r)}}}var ws={},ft=Jt(ws),ts=Jt(ws),ns=Jt(ws);function dn(e){if(e===ws)throw Error(E(174));return e}function Yl(e,t){switch(K(ns,t),K(ts,e),K(ft,ws),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sa(t,e)}q(ft),K(ft,t)}function nr(){q(ft),q(ts),q(ns)}function Zh(e){dn(ns.current);var t=dn(ft.current),n=Sa(t,e.type);t!==n&&(K(ts,e),K(ft,n))}function Xl(e){ts.current===e&&(q(ft),q(ts))}var J=Jt(0);function Ei(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Oo=[];function Zl(){for(var e=0;e<Oo.length;e++)Oo[e]._workInProgressVersionPrimary=null;Oo.length=0}var ni=Et.ReactCurrentDispatcher,Fo=Et.ReactCurrentBatchConfig,xn=0,te=null,ue=null,fe=null,Mi=!1,Vr=!1,rs=0,Ay=0;function ye(){throw Error(E(321))}function Jl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!it(e[n],t[n]))return!1;return!0}function eu(e,t,n,r,s,i){if(xn=i,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ni.current=e===null||e.memoizedState===null?Ry:Vy,e=n(r,s),Vr){i=0;do{if(Vr=!1,rs=0,25<=i)throw Error(E(301));i+=1,fe=ue=null,t.updateQueue=null,ni.current=zy,e=n(r,s)}while(Vr)}if(ni.current=Ai,t=ue!==null&&ue.next!==null,xn=0,fe=ue=te=null,Mi=!1,t)throw Error(E(300));return e}function tu(){var e=rs!==0;return rs=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fe===null?te.memoizedState=fe=e:fe=fe.next=e,fe}function Xe(){if(ue===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=ue.next;var t=fe===null?te.memoizedState:fe.next;if(t!==null)fe=t,ue=e;else{if(e===null)throw Error(E(310));ue=e,e={memoizedState:ue.memoizedState,baseState:ue.baseState,baseQueue:ue.baseQueue,queue:ue.queue,next:null},fe===null?te.memoizedState=fe=e:fe=fe.next=e}return fe}function ss(e,t){return typeof t=="function"?t(e):t}function Io(e){var t=Xe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=ue,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,u=null,c=i;do{var d=c.lane;if((xn&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(l=u=h,o=r):u=u.next=h,te.lanes|=d,wn|=d}c=c.next}while(c!==null&&c!==i);u===null?o=r:u.next=l,it(r,t.memoizedState)||(Ae=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,te.lanes|=i,wn|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bo(e){var t=Xe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);it(i,t.memoizedState)||(Ae=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Jh(){}function ep(e,t){var n=te,r=Xe(),s=t(),i=!it(r.memoizedState,s);if(i&&(r.memoizedState=s,Ae=!0),r=r.queue,nu(rp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||fe!==null&&fe.memoizedState.tag&1){if(n.flags|=2048,is(9,np.bind(null,n,r,s,t),void 0,null),he===null)throw Error(E(349));xn&30||tp(n,t,s)}return s}function tp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function np(e,t,n,r){t.value=n,t.getSnapshot=r,sp(t)&&ip(e)}function rp(e,t,n){return n(function(){sp(t)&&ip(e)})}function sp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!it(e,n)}catch{return!0}}function ip(e){var t=Nt(e,1);t!==null&&st(t,e,1,-1)}function Ic(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:ss,lastRenderedState:e},t.queue=e,e=e.dispatch=Ly.bind(null,te,e),[t.memoizedState,e]}function is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function op(){return Xe().memoizedState}function ri(e,t,n,r){var s=lt();te.flags|=e,s.memoizedState=is(1|t,n,void 0,r===void 0?null:r)}function to(e,t,n,r){var s=Xe();r=r===void 0?null:r;var i=void 0;if(ue!==null){var o=ue.memoizedState;if(i=o.destroy,r!==null&&Jl(r,o.deps)){s.memoizedState=is(t,n,i,r);return}}te.flags|=e,s.memoizedState=is(1|t,n,i,r)}function Bc(e,t){return ri(8390656,8,e,t)}function nu(e,t){return to(2048,8,e,t)}function ap(e,t){return to(4,2,e,t)}function lp(e,t){return to(4,4,e,t)}function up(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 cp(e,t,n){return n=n!=null?n.concat([e]):null,to(4,4,up.bind(null,t,e),n)}function ru(){}function dp(e,t){var n=Xe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fp(e,t){var n=Xe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hp(e,t,n){return xn&21?(it(n,t)||(n=yh(),te.lanes|=n,wn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ae=!0),e.memoizedState=n)}function _y(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Fo.transition;Fo.transition={};try{e(!1),t()}finally{H=n,Fo.transition=r}}function pp(){return Xe().memoizedState}function Dy(e,t,n){var r=Wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mp(e))gp(t,n);else if(n=Yh(e,t,n,r),n!==null){var s=Ne();st(n,e,r,s),vp(n,t,r)}}function Ly(e,t,n){var r=Wt(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mp(e))gp(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,it(l,o)){var u=t.interleaved;u===null?(s.next=s,Ql(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Yh(e,t,s,r),n!==null&&(s=Ne(),st(n,e,r,s),vp(n,t,r))}}function mp(e){var t=e.alternate;return e===te||t!==null&&t===te}function gp(e,t){Vr=Mi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rl(e,n)}}var Ai={readContext:Ye,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},Ry={readContext:Ye,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ye,useEffect:Bc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ri(4194308,4,up.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return ri(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Dy.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Ic,useDebugValue:ru,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Ic(!1),t=e[0];return e=_y.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,s=lt();if(Z){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),he===null)throw Error(E(349));xn&30||tp(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Bc(rp.bind(null,r,i,e),[e]),r.flags|=2048,is(9,np.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lt(),t=he.identifierPrefix;if(Z){var n=xt,r=yt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ay++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Vy={readContext:Ye,useCallback:dp,useContext:Ye,useEffect:nu,useImperativeHandle:cp,useInsertionEffect:ap,useLayoutEffect:lp,useMemo:fp,useReducer:Io,useRef:op,useState:function(){return Io(ss)},useDebugValue:ru,useDeferredValue:function(e){var t=Xe();return hp(t,ue.memoizedState,e)},useTransition:function(){var e=Io(ss)[0],t=Xe().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:ep,useId:pp,unstable_isNewReconciler:!1},zy={readContext:Ye,useCallback:dp,useContext:Ye,useEffect:nu,useImperativeHandle:cp,useInsertionEffect:ap,useLayoutEffect:lp,useMemo:fp,useReducer:Bo,useRef:op,useState:function(){return Bo(ss)},useDebugValue:ru,useDeferredValue:function(e){var t=Xe();return ue===null?t.memoizedState=e:hp(t,ue.memoizedState,e)},useTransition:function(){var e=Bo(ss)[0],t=Xe().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:ep,useId:pp,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ua(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var no={isMounted:function(e){return(e=e._reactInternals)?Cn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ne(),s=Wt(e),i=wt(r,s);i.payload=t,n!=null&&(i.callback=n),t=Ut(e,i,s),t!==null&&(st(t,e,s,r),ti(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ne(),s=Wt(e),i=wt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ut(e,i,s),t!==null&&(st(t,e,s,r),ti(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ne(),r=Wt(e),s=wt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Ut(e,s,r),t!==null&&(st(t,e,r,n),ti(t,e,r))}};function $c(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Xr(n,r)||!Xr(s,i):!0}function yp(e,t,n){var r=!1,s=Qt,i=t.contextType;return typeof i=="object"&&i!==null?i=Ye(i):(s=De(t)?vn:ke.current,r=t.contextTypes,i=(r=r!=null)?Jn(e,s):Qt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=no,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Uc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&no.enqueueReplaceState(t,t.state,null)}function ba(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},ql(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Ye(i):(i=De(t)?vn:ke.current,s.context=Jn(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ua(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&no.enqueueReplaceState(s,s.state,null),Ti(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function rr(e,t){try{var n="",r=t;do n+=cv(r),r=r.return;while(r);var s=n}catch(i){s=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function $o(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Oy=typeof WeakMap=="function"?WeakMap:Map;function xp(e,t,n){n=wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Di||(Di=!0,el=r),Wa(e,t)},n}function wp(e,t,n){n=wt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Wa(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Wa(e,t),typeof r!="function"&&(bt===null?bt=new Set([this]):bt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function bc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Oy;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Xy.bind(null,e,t,n),t.then(e,e))}function Wc(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 Hc(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wt(-1,1),t.tag=2,Ut(n,t,1))),n.lanes|=1),e)}var Fy=Et.ReactCurrentOwner,Ae=!1;function Ce(e,t,n,r){t.child=e===null?qh(t,null,n,r):tr(t,e.child,n,r)}function Kc(e,t,n,r,s){n=n.render;var i=t.ref;return Yn(t,s),r=eu(e,t,n,r,i,s),n=tu(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Pt(e,t,s)):(Z&&n&&Ul(t),t.flags|=1,Ce(e,t,r,s),t.child)}function Gc(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!du(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Sp(e,t,i,r,s)):(e=ai(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Xr,n(o,r)&&e.ref===t.ref)return Pt(e,t,s)}return t.flags|=1,e=Ht(i,r),e.ref=t.ref,e.return=t,t.child=e}function Sp(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Xr(i,r)&&e.ref===t.ref)if(Ae=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Ae=!0);else return t.lanes=e.lanes,Pt(e,t,s)}return Ha(e,t,n,r,s)}function jp(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(Fn,Re),Re|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(Fn,Re),Re|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,K(Fn,Re),Re|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,K(Fn,Re),Re|=r;return Ce(e,t,s,n),t.child}function kp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ha(e,t,n,r,s){var i=De(n)?vn:ke.current;return i=Jn(t,i),Yn(t,s),n=eu(e,t,n,r,i,s),r=tu(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Pt(e,t,s)):(Z&&r&&Ul(t),t.flags|=1,Ce(e,t,n,s),t.child)}function Qc(e,t,n,r,s){if(De(n)){var i=!0;ji(t)}else i=!1;if(Yn(t,s),t.stateNode===null)si(e,t),yp(t,n,r),ba(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ye(c):(c=De(n)?vn:ke.current,c=Jn(t,c));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||u!==c)&&Uc(t,o,r,c),Lt=!1;var f=t.memoizedState;o.state=f,Ti(t,r,o,s),u=t.memoizedState,l!==r||f!==u||_e.current||Lt?(typeof d=="function"&&(Ua(t,n,d,r),u=t.memoizedState),(l=Lt||$c(t,n,l,r,f,u,c))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Xh(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:et(t.type,l),o.props=c,h=t.pendingProps,f=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ye(u):(u=De(n)?vn:ke.current,u=Jn(t,u));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==u)&&Uc(t,o,r,u),Lt=!1,f=t.memoizedState,o.state=f,Ti(t,r,o,s);var w=t.memoizedState;l!==h||f!==w||_e.current||Lt?(typeof y=="function"&&(Ua(t,n,y,r),w=t.memoizedState),(c=Lt||$c(t,n,c,r,f,w,u)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ka(e,t,n,r,i,s)}function Ka(e,t,n,r,s,i){kp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Lc(t,n,!1),Pt(e,t,i);r=t.stateNode,Fy.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=tr(t,e.child,null,i),t.child=tr(t,null,l,i)):Ce(e,t,l,i),t.memoizedState=r.state,s&&Lc(t,n,!0),t.child}function Cp(e){var t=e.stateNode;t.pendingContext?Dc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Dc(e,t.context,!1),Yl(e,t.containerInfo)}function qc(e,t,n,r,s){return er(),Wl(s),t.flags|=256,Ce(e,t,n,r),t.child}var Ga={dehydrated:null,treeContext:null,retryLane:0};function Qa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Np(e,t,n){var r=t.pendingProps,s=J.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),K(J,s&1),e===null)return Ba(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=io(o,r,0,null),e=pn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Qa(n),t.memoizedState=Ga,e):su(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Iy(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Ht(s,u),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Ht(l,i):(i=pn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Qa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Ga,r}return i=e.child,e=i.sibling,r=Ht(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function su(e,t){return t=io({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bs(e,t,n,r){return r!==null&&Wl(r),tr(t,e.child,null,n),e=su(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Iy(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=$o(Error(E(422))),Bs(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=io({mode:"visible",children:r.children},s,0,null),i=pn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&tr(t,e.child,null,o),t.child.memoizedState=Qa(o),t.memoizedState=Ga,i);if(!(t.mode&1))return Bs(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(E(419)),r=$o(i,r,void 0),Bs(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ae||l){if(r=he,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Nt(e,s),st(r,e,s,-1))}return cu(),r=$o(Error(E(421))),Bs(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Zy.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Oe=$t(s.nextSibling),Fe=t,Z=!0,nt=null,e!==null&&(Ke[Ge++]=yt,Ke[Ge++]=xt,Ke[Ge++]=yn,yt=e.id,xt=e.overflow,yn=t),t=su(t,r.children),t.flags|=4096,t)}function Yc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$a(e.return,t,n)}function Uo(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Pp(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ce(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yc(e,n,t);else if(e.tag===19)Yc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(J,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Ei(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Uo(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ei(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Uo(t,!0,n,null,i);break;case"together":Uo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function si(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Ht(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ht(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function By(e,t,n){switch(t.tag){case 3:Cp(t),er();break;case 5:Zh(t);break;case 1:De(t.type)&&ji(t);break;case 4:Yl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;K(Ni,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?Np(e,t,n):(K(J,J.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);K(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pp(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,jp(e,t,n)}return Pt(e,t,n)}var Tp,qa,Ep,Mp;Tp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};qa=function(){};Ep=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,dn(ft.current);var i=null;switch(n){case"input":s=va(e,s),r=va(e,r),i=[];break;case"select":s=ne({},s,{value:void 0}),r=ne({},r,{value:void 0}),i=[];break;case"textarea":s=wa(e,s),r=wa(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wi)}ja(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var l=s[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Wr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(l=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Wr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Q("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Mp=function(e,t,n,r){n!==r&&(t.flags|=4)};function xr(e,t){if(!Z)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $y(e,t,n){var r=t.pendingProps;switch(bl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return De(t.type)&&Si(),xe(t),null;case 3:return r=t.stateNode,nr(),q(_e),q(ke),Zl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(rl(nt),nt=null))),qa(e,t),xe(t),null;case 5:Xl(t);var s=dn(ns.current);if(n=t.type,e!==null&&t.stateNode!=null)Ep(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return xe(t),null}if(e=dn(ft.current),Fs(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ut]=t,r[es]=i,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(s=0;s<Nr.length;s++)Q(Nr[s],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":ic(r,i),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Q("invalid",r);break;case"textarea":ac(r,i),Q("invalid",r)}ja(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Os(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Os(r.textContent,l,e),s=["children",""+l]):Wr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Q("scroll",r)}switch(n){case"input":Ms(r),oc(r,i,!0);break;case"textarea":Ms(r),lc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=wi)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[es]=r,Tp(e,t,!1,!1),t.stateNode=e;e:{switch(o=ka(n,r),n){case"dialog":Q("cancel",e),Q("close",e),s=r;break;case"iframe":case"object":case"embed":Q("load",e),s=r;break;case"video":case"audio":for(s=0;s<Nr.length;s++)Q(Nr[s],e);s=r;break;case"source":Q("error",e),s=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),s=r;break;case"details":Q("toggle",e),s=r;break;case"input":ic(e,r),s=va(e,r),Q("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ne({},r,{value:void 0}),Q("invalid",e);break;case"textarea":ac(e,r),s=wa(e,r),Q("invalid",e);break;default:s=r}ja(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];i==="style"?oh(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&sh(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Hr(e,u):typeof u=="number"&&Hr(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Wr.hasOwnProperty(i)?u!=null&&i==="onScroll"&&Q("scroll",e):u!=null&&El(e,i,u,o))}switch(n){case"input":Ms(e),oc(e,r,!1);break;case"textarea":Ms(e),lc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Gt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Kn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Kn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=wi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)Mp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=dn(ns.current),dn(ft.current),Fs(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(i=r.nodeValue!==n)&&(e=Fe,e!==null))switch(e.tag){case 3:Os(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Os(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return xe(t),null;case 13:if(q(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&Oe!==null&&t.mode&1&&!(t.flags&128))Gh(),er(),t.flags|=98560,i=!1;else if(i=Fs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[ut]=t}else er(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),i=!1}else nt!==null&&(rl(nt),nt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?ce===0&&(ce=3):cu())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return nr(),qa(e,t),e===null&&Zr(t.stateNode.containerInfo),xe(t),null;case 10:return Gl(t.type._context),xe(t),null;case 17:return De(t.type)&&Si(),xe(t),null;case 19:if(q(J),i=t.memoizedState,i===null)return xe(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)xr(i,!1);else{if(ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ei(e),o!==null){for(t.flags|=128,xr(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(J,J.current&1|2),t.child}e=e.sibling}i.tail!==null&&oe()>sr&&(t.flags|=128,r=!0,xr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ei(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Z)return xe(t),null}else 2*oe()-i.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,xr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=oe(),t.sibling=null,n=J.current,K(J,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return uu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Uy(e,t){switch(bl(t),t.tag){case 1:return De(t.type)&&Si(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nr(),q(_e),q(ke),Zl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xl(t),null;case 13:if(q(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(J),null;case 4:return nr(),null;case 10:return Gl(t.type._context),null;case 22:case 23:return uu(),null;case 24:return null;default:return null}}var $s=!1,Se=!1,by=typeof WeakSet=="function"?WeakSet:Set,_=null;function On(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){se(e,t,r)}else n.current=null}function Ya(e,t,n){try{n()}catch(r){se(e,t,r)}}var Xc=!1;function Wy(e,t){if(La=vi,e=Rh(),$l(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var y;h!==n||s!==0&&h.nodeType!==3||(l=o+s),h!==i||r!==0&&h.nodeType!==3||(u=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(y=h.firstChild)!==null;)f=h,h=y;for(;;){if(h===e)break t;if(f===n&&++c===s&&(l=o),f===i&&++d===r&&(u=o),(y=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=y}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ra={focusedElem:e,selectionRange:n},vi=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,N=w.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:et(t.type,v),N);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){se(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return w=Xc,Xc=!1,w}function zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Ya(t,n,i)}s=s.next}while(s!==r)}}function ro(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ap(e){var t=e.alternate;t!==null&&(e.alternate=null,Ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[es],delete t[Oa],delete t[Py],delete t[Ty])),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 _p(e){return e.tag===5||e.tag===3||e.tag===4}function Zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_p(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 Za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wi));else if(r!==4&&(e=e.child,e!==null))for(Za(e,t,n),e=e.sibling;e!==null;)Za(e,t,n),e=e.sibling}function Ja(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ja(e,t,n),e=e.sibling;e!==null;)Ja(e,t,n),e=e.sibling}var pe=null,tt=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Dp(e,t,n),n=n.sibling}function Dp(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(qi,n)}catch{}switch(n.tag){case 5:Se||On(n,t);case 6:var r=pe,s=tt;pe=null,Mt(e,t,n),pe=r,tt=s,pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?Vo(e.parentNode,n):e.nodeType===1&&Vo(e,n),qr(e)):Vo(pe,n.stateNode));break;case 4:r=pe,s=tt,pe=n.stateNode.containerInfo,tt=!0,Mt(e,t,n),pe=r,tt=s;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Ya(n,t,o),s=s.next}while(s!==r)}Mt(e,t,n);break;case 1:if(!Se&&(On(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){se(n,t,l)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Mt(e,t,n),Se=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Jc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new by),t.forEach(function(r){var s=Jy.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:pe=l.stateNode,tt=!1;break e;case 3:pe=l.stateNode.containerInfo,tt=!0;break e;case 4:pe=l.stateNode.containerInfo,tt=!0;break e}l=l.return}if(pe===null)throw Error(E(160));Dp(i,o,s),pe=null,tt=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){se(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lp(t,e),t=t.sibling}function Lp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ze(t,e),at(e),r&4){try{zr(3,e,e.return),ro(3,e)}catch(v){se(e,e.return,v)}try{zr(5,e,e.return)}catch(v){se(e,e.return,v)}}break;case 1:Ze(t,e),at(e),r&512&&n!==null&&On(n,n.return);break;case 5:if(Ze(t,e),at(e),r&512&&n!==null&&On(n,n.return),e.flags&32){var s=e.stateNode;try{Hr(s,"")}catch(v){se(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&th(s,i),ka(l,o);var c=ka(l,i);for(o=0;o<u.length;o+=2){var d=u[o],h=u[o+1];d==="style"?oh(s,h):d==="dangerouslySetInnerHTML"?sh(s,h):d==="children"?Hr(s,h):El(s,d,h,c)}switch(l){case"input":ya(s,i);break;case"textarea":nh(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Kn(s,!!i.multiple,y,!1):f!==!!i.multiple&&(i.defaultValue!=null?Kn(s,!!i.multiple,i.defaultValue,!0):Kn(s,!!i.multiple,i.multiple?[]:"",!1))}s[es]=i}catch(v){se(e,e.return,v)}}break;case 6:if(Ze(t,e),at(e),r&4){if(e.stateNode===null)throw Error(E(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(v){se(e,e.return,v)}}break;case 3:if(Ze(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qr(t.containerInfo)}catch(v){se(e,e.return,v)}break;case 4:Ze(t,e),at(e);break;case 13:Ze(t,e),at(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(au=oe())),r&4&&Jc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Se=(c=Se)||d,Ze(t,e),Se=c):Ze(t,e),at(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(_=e,d=e.child;d!==null;){for(h=_=d;_!==null;){switch(f=_,y=f.child,f.tag){case 0:case 11:case 14:case 15:zr(4,f,f.return);break;case 1:On(f,f.return);var w=f.stateNode;if(typeof w.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){se(r,n,v)}}break;case 5:On(f,f.return);break;case 22:if(f.memoizedState!==null){td(h);continue}}y!==null?(y.return=f,_=y):td(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,u=h.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=ih("display",o))}catch(v){se(e,e.return,v)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(v){se(e,e.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ze(t,e),at(e),r&4&&Jc(e);break;case 21:break;default:Ze(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_p(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Hr(s,""),r.flags&=-33);var i=Zc(e);Ja(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Zc(e);Za(e,l,o);break;default:throw Error(E(161))}}catch(u){se(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hy(e,t,n){_=e,Rp(e)}function Rp(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var s=_,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||$s;if(!o){var l=s.alternate,u=l!==null&&l.memoizedState!==null||Se;l=$s;var c=Se;if($s=o,(Se=u)&&!c)for(_=s;_!==null;)o=_,u=o.child,o.tag===22&&o.memoizedState!==null?nd(s):u!==null?(u.return=o,_=u):nd(s);for(;i!==null;)_=i,Rp(i),i=i.sibling;_=s,$s=l,Se=c}ed(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,_=i):ed(e)}}function ed(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Se||ro(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Se)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Fc(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Fc(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&qr(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}Se||t.flags&512&&Xa(t)}catch(f){se(t,t.return,f)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function td(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function nd(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ro(4,t)}catch(u){se(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){se(t,s,u)}}var i=t.return;try{Xa(t)}catch(u){se(t,i,u)}break;case 5:var o=t.return;try{Xa(t)}catch(u){se(t,o,u)}}}catch(u){se(t,t.return,u)}if(t===e){_=null;break}var l=t.sibling;if(l!==null){l.return=t.return,_=l;break}_=t.return}}var Ky=Math.ceil,_i=Et.ReactCurrentDispatcher,iu=Et.ReactCurrentOwner,qe=Et.ReactCurrentBatchConfig,U=0,he=null,le=null,ge=0,Re=0,Fn=Jt(0),ce=0,os=null,wn=0,so=0,ou=0,Or=null,Me=null,au=0,sr=1/0,gt=null,Di=!1,el=null,bt=null,Us=!1,Ot=null,Li=0,Fr=0,tl=null,ii=-1,oi=0;function Ne(){return U&6?oe():ii!==-1?ii:ii=oe()}function Wt(e){return e.mode&1?U&2&&ge!==0?ge&-ge:My.transition!==null?(oi===0&&(oi=yh()),oi):(e=H,e!==0||(e=window.event,e=e===void 0?16:Nh(e.type)),e):1}function st(e,t,n,r){if(50<Fr)throw Fr=0,tl=null,Error(E(185));vs(e,n,r),(!(U&2)||e!==he)&&(e===he&&(!(U&2)&&(so|=n),ce===4&&Vt(e,ge)),Le(e,r),n===1&&U===0&&!(t.mode&1)&&(sr=oe()+500,eo&&en()))}function Le(e,t){var n=e.callbackNode;Mv(e,t);var r=gi(e,e===he?ge:0);if(r===0)n!==null&&dc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&dc(n),t===1)e.tag===0?Ey(rd.bind(null,e)):Wh(rd.bind(null,e)),Cy(function(){!(U&6)&&en()}),n=null;else{switch(xh(r)){case 1:n=Ll;break;case 4:n=gh;break;case 16:n=mi;break;case 536870912:n=vh;break;default:n=mi}n=Up(n,Vp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Vp(e,t){if(ii=-1,oi=0,U&6)throw Error(E(327));var n=e.callbackNode;if(Xn()&&e.callbackNode!==n)return null;var r=gi(e,e===he?ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ri(e,r);else{t=r;var s=U;U|=2;var i=Op();(he!==e||ge!==t)&&(gt=null,sr=oe()+500,hn(e,t));do try{qy();break}catch(l){zp(e,l)}while(!0);Kl(),_i.current=i,U=s,le!==null?t=0:(he=null,ge=0,t=ce)}if(t!==0){if(t===2&&(s=Ea(e),s!==0&&(r=s,t=nl(e,s))),t===1)throw n=os,hn(e,0),Vt(e,r),Le(e,oe()),n;if(t===6)Vt(e,r);else{if(s=e.current.alternate,!(r&30)&&!Gy(s)&&(t=Ri(e,r),t===2&&(i=Ea(e),i!==0&&(r=i,t=nl(e,i))),t===1))throw n=os,hn(e,0),Vt(e,r),Le(e,oe()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:on(e,Me,gt);break;case 3:if(Vt(e,r),(r&130023424)===r&&(t=au+500-oe(),10<t)){if(gi(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ne(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=za(on.bind(null,e,Me,gt),t);break}on(e,Me,gt);break;case 4:if(Vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-rt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ky(r/1960))-r,10<r){e.timeoutHandle=za(on.bind(null,e,Me,gt),r);break}on(e,Me,gt);break;case 5:on(e,Me,gt);break;default:throw Error(E(329))}}}return Le(e,oe()),e.callbackNode===n?Vp.bind(null,e):null}function nl(e,t){var n=Or;return e.current.memoizedState.isDehydrated&&(hn(e,t).flags|=256),e=Ri(e,t),e!==2&&(t=Me,Me=n,t!==null&&rl(t)),e}function rl(e){Me===null?Me=e:Me.push.apply(Me,e)}function Gy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!it(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vt(e,t){for(t&=~ou,t&=~so,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function rd(e){if(U&6)throw Error(E(327));Xn();var t=gi(e,0);if(!(t&1))return Le(e,oe()),null;var n=Ri(e,t);if(e.tag!==0&&n===2){var r=Ea(e);r!==0&&(t=r,n=nl(e,r))}if(n===1)throw n=os,hn(e,0),Vt(e,t),Le(e,oe()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,Me,gt),Le(e,oe()),null}function lu(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(sr=oe()+500,eo&&en())}}function Sn(e){Ot!==null&&Ot.tag===0&&!(U&6)&&Xn();var t=U;U|=1;var n=qe.transition,r=H;try{if(qe.transition=null,H=1,e)return e()}finally{H=r,qe.transition=n,U=t,!(U&6)&&en()}}function uu(){Re=Fn.current,q(Fn)}function hn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ky(n)),le!==null)for(n=le.return;n!==null;){var r=n;switch(bl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Si();break;case 3:nr(),q(_e),q(ke),Zl();break;case 5:Xl(r);break;case 4:nr();break;case 13:q(J);break;case 19:q(J);break;case 10:Gl(r.type._context);break;case 22:case 23:uu()}n=n.return}if(he=e,le=e=Ht(e.current,null),ge=Re=t,ce=0,os=null,ou=so=wn=0,Me=Or=null,cn!==null){for(t=0;t<cn.length;t++)if(n=cn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}cn=null}return e}function zp(e,t){do{var n=le;try{if(Kl(),ni.current=Ai,Mi){for(var r=te.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Mi=!1}if(xn=0,fe=ue=te=null,Vr=!1,rs=0,iu.current=null,n===null||n.return===null){ce=1,os=t,le=null;break}e:{var i=e,o=n.return,l=n,u=t;if(t=ge,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=Wc(o);if(y!==null){y.flags&=-257,Hc(y,o,l,i,t),y.mode&1&&bc(i,c,t),t=y,u=c;var w=t.updateQueue;if(w===null){var v=new Set;v.add(u),t.updateQueue=v}else w.add(u);break e}else{if(!(t&1)){bc(i,c,t),cu();break e}u=Error(E(426))}}else if(Z&&l.mode&1){var N=Wc(o);if(N!==null){!(N.flags&65536)&&(N.flags|=256),Hc(N,o,l,i,t),Wl(rr(u,l));break e}}i=u=rr(u,l),ce!==4&&(ce=2),Or===null?Or=[i]:Or.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=xp(i,u,t);Oc(i,m);break e;case 1:l=u;var p=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(bt===null||!bt.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=wp(i,l,t);Oc(i,S);break e}}i=i.return}while(i!==null)}Ip(n)}catch(x){t=x,le===n&&n!==null&&(le=n=n.return);continue}break}while(!0)}function Op(){var e=_i.current;return _i.current=Ai,e===null?Ai:e}function cu(){(ce===0||ce===3||ce===2)&&(ce=4),he===null||!(wn&268435455)&&!(so&268435455)||Vt(he,ge)}function Ri(e,t){var n=U;U|=2;var r=Op();(he!==e||ge!==t)&&(gt=null,hn(e,t));do try{Qy();break}catch(s){zp(e,s)}while(!0);if(Kl(),U=n,_i.current=r,le!==null)throw Error(E(261));return he=null,ge=0,ce}function Qy(){for(;le!==null;)Fp(le)}function qy(){for(;le!==null&&!wv();)Fp(le)}function Fp(e){var t=$p(e.alternate,e,Re);e.memoizedProps=e.pendingProps,t===null?Ip(e):le=t,iu.current=null}function Ip(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Uy(n,t),n!==null){n.flags&=32767,le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ce=6,le=null;return}}else if(n=$y(n,t,Re),n!==null){le=n;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);ce===0&&(ce=5)}function on(e,t,n){var r=H,s=qe.transition;try{qe.transition=null,H=1,Yy(e,t,n,r)}finally{qe.transition=s,H=r}return null}function Yy(e,t,n,r){do Xn();while(Ot!==null);if(U&6)throw Error(E(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Av(e,i),e===he&&(le=he=null,ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Us||(Us=!0,Up(mi,function(){return Xn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=qe.transition,qe.transition=null;var o=H;H=1;var l=U;U|=4,iu.current=null,Wy(e,n),Lp(n,e),gy(Ra),vi=!!La,Ra=La=null,e.current=n,Hy(n),Sv(),U=l,H=o,qe.transition=i}else e.current=n;if(Us&&(Us=!1,Ot=e,Li=s),i=e.pendingLanes,i===0&&(bt=null),Cv(n.stateNode),Le(e,oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Di)throw Di=!1,e=el,el=null,e;return Li&1&&e.tag!==0&&Xn(),i=e.pendingLanes,i&1?e===tl?Fr++:(Fr=0,tl=e):Fr=0,en(),null}function Xn(){if(Ot!==null){var e=xh(Li),t=qe.transition,n=H;try{if(qe.transition=null,H=16>e?16:e,Ot===null)var r=!1;else{if(e=Ot,Ot=null,Li=0,U&6)throw Error(E(331));var s=U;for(U|=4,_=e.current;_!==null;){var i=_,o=i.child;if(_.flags&16){var l=i.deletions;if(l!==null){for(var u=0;u<l.length;u++){var c=l[u];for(_=c;_!==null;){var d=_;switch(d.tag){case 0:case 11:case 15:zr(8,d,i)}var h=d.child;if(h!==null)h.return=d,_=h;else for(;_!==null;){d=_;var f=d.sibling,y=d.return;if(Ap(d),d===c){_=null;break}if(f!==null){f.return=y,_=f;break}_=y}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var N=v.sibling;v.sibling=null,v=N}while(v!==null)}}_=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,_=o;else e:for(;_!==null;){if(i=_,i.flags&2048)switch(i.tag){case 0:case 11:case 15:zr(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,_=m;break e}_=i.return}}var p=e.current;for(_=p;_!==null;){o=_;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,_=g;else e:for(o=p;_!==null;){if(l=_,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ro(9,l)}}catch(x){se(l,l.return,x)}if(l===o){_=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,_=S;break e}_=l.return}}if(U=s,en(),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(qi,e)}catch{}r=!0}return r}finally{H=n,qe.transition=t}}return!1}function sd(e,t,n){t=rr(n,t),t=xp(e,t,1),e=Ut(e,t,1),t=Ne(),e!==null&&(vs(e,1,t),Le(e,t))}function se(e,t,n){if(e.tag===3)sd(e,e,n);else for(;t!==null;){if(t.tag===3){sd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bt===null||!bt.has(r))){e=rr(n,e),e=wp(t,e,1),t=Ut(t,e,1),e=Ne(),t!==null&&(vs(t,1,e),Le(t,e));break}}t=t.return}}function Xy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ne(),e.pingedLanes|=e.suspendedLanes&n,he===e&&(ge&n)===n&&(ce===4||ce===3&&(ge&130023424)===ge&&500>oe()-au?hn(e,0):ou|=n),Le(e,t)}function Bp(e,t){t===0&&(e.mode&1?(t=Ds,Ds<<=1,!(Ds&130023424)&&(Ds=4194304)):t=1);var n=Ne();e=Nt(e,t),e!==null&&(vs(e,t,n),Le(e,n))}function Zy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bp(e,n)}function Jy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Bp(e,n)}var $p;$p=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,By(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,Z&&t.flags&1048576&&Hh(t,Ci,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;si(e,t),e=t.pendingProps;var s=Jn(t,ke.current);Yn(t,n),s=eu(null,t,r,e,s,n);var i=tu();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,De(r)?(i=!0,ji(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ql(t),s.updater=no,t.stateNode=s,s._reactInternals=t,ba(t,r,e,n),t=Ka(null,t,r,!0,i,n)):(t.tag=0,Z&&i&&Ul(t),Ce(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(si(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=t0(r),e=et(r,e),s){case 0:t=Ha(null,t,r,e,n);break e;case 1:t=Qc(null,t,r,e,n);break e;case 11:t=Kc(null,t,r,e,n);break e;case 14:t=Gc(null,t,r,et(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),Ha(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),Qc(e,t,r,s,n);case 3:e:{if(Cp(t),e===null)throw Error(E(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Xh(e,t),Ti(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=rr(Error(E(423)),t),t=qc(e,t,r,n,s);break e}else if(r!==s){s=rr(Error(E(424)),t),t=qc(e,t,r,n,s);break e}else for(Oe=$t(t.stateNode.containerInfo.firstChild),Fe=t,Z=!0,nt=null,n=qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(er(),r===s){t=Pt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return Zh(t),e===null&&Ba(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Va(r,s)?o=null:i!==null&&Va(r,i)&&(t.flags|=32),kp(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&Ba(t),null;case 13:return Np(e,t,n);case 4:return Yl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tr(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),Kc(e,t,r,s,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,K(Ni,r._currentValue),r._currentValue=o,i!==null)if(it(i.value,o)){if(i.children===s.children&&!_e.current){t=Pt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=wt(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),$a(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(E(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),$a(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ce(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Yn(t,n),s=Ye(s),r=r(s),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,s=et(r,t.pendingProps),s=et(r.type,s),Gc(e,t,r,s,n);case 15:return Sp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),si(e,t),t.tag=1,De(r)?(e=!0,ji(t)):e=!1,Yn(t,n),yp(t,r,s),ba(t,r,s,n),Ka(null,t,r,!0,e,n);case 19:return Pp(e,t,n);case 22:return jp(e,t,n)}throw Error(E(156,t.tag))};function Up(e,t){return mh(e,t)}function e0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qe(e,t,n,r){return new e0(e,t,n,r)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t0(e){if(typeof e=="function")return du(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Al)return 11;if(e===_l)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Qe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ai(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")du(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case En:return pn(n.children,s,i,t);case Ml:o=8,s|=8;break;case ha:return e=Qe(12,n,t,s|2),e.elementType=ha,e.lanes=i,e;case pa:return e=Qe(13,n,t,s),e.elementType=pa,e.lanes=i,e;case ma:return e=Qe(19,n,t,s),e.elementType=ma,e.lanes=i,e;case Zf:return io(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yf:o=10;break e;case Xf:o=9;break e;case Al:o=11;break e;case _l:o=14;break e;case Dt:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Qe(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function pn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function io(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=Zf,e.lanes=n,e.stateNode={isHidden:!1},e}function bo(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function Wo(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function n0(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Co(0),this.expirationTimes=Co(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Co(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function fu(e,t,n,r,s,i,o,l,u){return e=new n0(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Qe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ql(i),e}function r0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function bp(e){if(!e)return Qt;e=e._reactInternals;e:{if(Cn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(De(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(De(n))return bh(e,n,t)}return t}function Wp(e,t,n,r,s,i,o,l,u){return e=fu(n,r,!0,e,s,i,o,l,u),e.context=bp(null),n=e.current,r=Ne(),s=Wt(n),i=wt(r,s),i.callback=t??null,Ut(n,i,s),e.current.lanes=s,vs(e,s,r),Le(e,r),e}function oo(e,t,n,r){var s=t.current,i=Ne(),o=Wt(s);return n=bp(n),t.context===null?t.context=n:t.pendingContext=n,t=wt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ut(s,t,o),e!==null&&(st(e,s,o,i),ti(e,s,o)),o}function Vi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function id(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hu(e,t){id(e,t),(e=e.alternate)&&id(e,t)}function s0(){return null}var Hp=typeof reportError=="function"?reportError:function(e){console.error(e)};function pu(e){this._internalRoot=e}ao.prototype.render=pu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));oo(e,t,null,null)};ao.prototype.unmount=pu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sn(function(){oo(null,e,null,null)}),t[Ct]=null}};function ao(e){this._internalRoot=e}ao.prototype.unstable_scheduleHydration=function(e){if(e){var t=jh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&t!==0&&t<Rt[n].priority;n++);Rt.splice(n,0,e),n===0&&Ch(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function lo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function od(){}function i0(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Vi(o);i.call(c)}}var o=Wp(t,r,e,0,null,!1,!1,"",od);return e._reactRootContainer=o,e[Ct]=o.current,Zr(e.nodeType===8?e.parentNode:e),Sn(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var c=Vi(u);l.call(c)}}var u=fu(e,0,!1,null,null,!1,!1,"",od);return e._reactRootContainer=u,e[Ct]=u.current,Zr(e.nodeType===8?e.parentNode:e),Sn(function(){oo(t,u,n,r)}),u}function uo(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var u=Vi(o);l.call(u)}}oo(t,o,e,s)}else o=i0(n,t,e,s,r);return Vi(o)}wh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cr(t.pendingLanes);n!==0&&(Rl(t,n|1),Le(t,oe()),!(U&6)&&(sr=oe()+500,en()))}break;case 13:Sn(function(){var r=Nt(e,1);if(r!==null){var s=Ne();st(r,e,1,s)}}),hu(e,1)}};Vl=function(e){if(e.tag===13){var t=Nt(e,134217728);if(t!==null){var n=Ne();st(t,e,134217728,n)}hu(e,134217728)}};Sh=function(e){if(e.tag===13){var t=Wt(e),n=Nt(e,t);if(n!==null){var r=Ne();st(n,e,t,r)}hu(e,t)}};jh=function(){return H};kh=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};Na=function(e,t,n){switch(t){case"input":if(ya(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Ji(r);if(!s)throw Error(E(90));eh(r),ya(r,s)}}}break;case"textarea":nh(e,n);break;case"select":t=n.value,t!=null&&Kn(e,!!n.multiple,t,!1)}};uh=lu;ch=Sn;var o0={usingClientEntryPoint:!1,Events:[xs,Dn,Ji,ah,lh,lu]},wr={findFiberByHostInstance:un,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},a0={bundleType:wr.bundleType,version:wr.version,rendererPackageName:wr.rendererPackageName,rendererConfig:wr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hh(e),e===null?null:e.stateNode},findFiberByHostInstance:wr.findFiberByHostInstance||s0,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 bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{qi=bs.inject(a0),dt=bs}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o0;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(E(200));return r0(e,t,null,n)};Ue.createRoot=function(e,t){if(!mu(e))throw Error(E(299));var n=!1,r="",s=Hp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=fu(e,1,!1,null,null,n,!1,r,s),e[Ct]=t.current,Zr(e.nodeType===8?e.parentNode:e),new pu(t)};Ue.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(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=hh(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return Sn(e)};Ue.hydrate=function(e,t,n){if(!lo(t))throw Error(E(200));return uo(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Hp;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Wp(t,null,e,1,n??null,s,!1,i,o),e[Ct]=t.current,Zr(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new ao(t)};Ue.render=function(e,t,n){if(!lo(t))throw Error(E(200));return uo(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!lo(e))throw Error(E(40));return e._reactRootContainer?(Sn(function(){uo(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1};Ue.unstable_batchedUpdates=lu;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!lo(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return uo(e,t,n,!1,r)};Ue.version="18.3.1-next-f1338f8080-20240426";function Kp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kp)}catch(e){console.error(e)}}Kp(),Kf.exports=Ue;var l0=Kf.exports,ad=l0;da.createRoot=ad.createRoot,da.hydrateRoot=ad.hydrateRoot;/**
|
|
41
|
+
* @license lucide-react v0.441.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const u0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gp=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
46
|
+
* @license lucide-react v0.441.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var c0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
51
|
+
* @license lucide-react v0.441.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const d0=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...l},u)=>k.createElement("svg",{ref:u,...c0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Gp("lucide",s),...l},[...o.map(([c,d])=>k.createElement(c,d)),...Array.isArray(i)?i:[i]]));/**
|
|
56
|
+
* @license lucide-react v0.441.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const F=(e,t)=>{const n=k.forwardRef(({className:r,...s},i)=>k.createElement(d0,{ref:i,iconNode:t,className:Gp(`lucide-${u0(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
|
|
61
|
+
* @license lucide-react v0.441.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const zi=F("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
66
|
+
* @license lucide-react v0.441.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const as=F("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
71
|
+
* @license lucide-react v0.441.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const f0=F("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
76
|
+
* @license lucide-react v0.441.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const h0=F("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
81
|
+
* @license lucide-react v0.441.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const Oi=F("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
86
|
+
* @license lucide-react v0.441.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const jn=F("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
91
|
+
* @license lucide-react v0.441.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const p0=F("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
96
|
+
* @license lucide-react v0.441.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const ht=F("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
101
|
+
* @license lucide-react v0.441.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const ls=F("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
106
|
+
* @license lucide-react v0.441.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const Ho=F("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
111
|
+
* @license lucide-react v0.441.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const Fi=F("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
116
|
+
* @license lucide-react v0.441.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const m0=F("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
121
|
+
* @license lucide-react v0.441.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const g0=F("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
126
|
+
* @license lucide-react v0.441.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const Qp=F("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
131
|
+
* @license lucide-react v0.441.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const v0=F("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
136
|
+
* @license lucide-react v0.441.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const y0=F("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
141
|
+
* @license lucide-react v0.441.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const ct=F("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
146
|
+
* @license lucide-react v0.441.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const gu=F("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
151
|
+
* @license lucide-react v0.441.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const sl=F("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);/**
|
|
156
|
+
* @license lucide-react v0.441.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const x0=F("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
161
|
+
* @license lucide-react v0.441.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const co=F("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
166
|
+
* @license lucide-react v0.441.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const w0=F("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
171
|
+
* @license lucide-react v0.441.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const ld=F("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
176
|
+
* @license lucide-react v0.441.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const S0=F("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
181
|
+
* @license lucide-react v0.441.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const ud=F("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
|
|
186
|
+
* @license lucide-react v0.441.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const mn=F("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
191
|
+
* @license lucide-react v0.441.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const qp=F("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
196
|
+
* @license lucide-react v0.441.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const j0=F("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
201
|
+
* @license lucide-react v0.441.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const us=F("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
206
|
+
* @license lucide-react v0.441.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const vu=F("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
211
|
+
* @license lucide-react v0.441.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const Yp=F("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
216
|
+
* @license lucide-react v0.441.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const Ko=F("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
221
|
+
* @license lucide-react v0.441.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const li=F("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
226
|
+
* @license lucide-react v0.441.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const k0=F("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
231
|
+
* @license lucide-react v0.441.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const C0=F("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
|
|
236
|
+
* @license lucide-react v0.441.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const Ii=F("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
241
|
+
* @license lucide-react v0.441.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const N0=F("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
246
|
+
* @license lucide-react v0.441.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const P0=F("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
|
|
251
|
+
* @license lucide-react v0.441.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const T0=F("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
256
|
+
* @license lucide-react v0.441.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const qt=F("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
261
|
+
* @license lucide-react v0.441.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const il=F("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|
266
|
+
* @license lucide-react v0.441.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const yu=F("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
271
|
+
* @license lucide-react v0.441.0 - ISC
|
|
272
|
+
*
|
|
273
|
+
* This source code is licensed under the ISC license.
|
|
274
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
+
*/const In=F("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),xu=k.createContext({});function wu(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const fo=k.createContext(null),Su=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class E0 extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function M0({children:e,isPresent:t}){const n=k.useId(),r=k.useRef(null),s=k.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=k.useContext(Su);return k.useInsertionEffect(()=>{const{width:o,height:l,top:u,left:c}=s.current;if(t||!r.current||!o||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
276
|
+
[data-motion-pop-id="${n}"] {
|
|
277
|
+
position: absolute !important;
|
|
278
|
+
width: ${o}px !important;
|
|
279
|
+
height: ${l}px !important;
|
|
280
|
+
top: ${u}px !important;
|
|
281
|
+
left: ${c}px !important;
|
|
282
|
+
}
|
|
283
|
+
`),()=>{document.head.removeChild(d)}},[t]),a.jsx(E0,{isPresent:t,childRef:r,sizeRef:s,children:k.cloneElement(e,{ref:r})})}const A0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o})=>{const l=wu(_0),u=k.useId(),c=k.useCallback(h=>{l.set(h,!0);for(const f of l.values())if(!f)return;r&&r()},[l,r]),d=k.useMemo(()=>({id:u,initial:t,isPresent:n,custom:s,onExitComplete:c,register:h=>(l.set(h,!1),()=>l.delete(h))}),i?[Math.random(),c]:[n,c]);return k.useMemo(()=>{l.forEach((h,f)=>l.set(f,!1))},[n]),k.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=a.jsx(M0,{isPresent:n,children:e})),a.jsx(fo.Provider,{value:d,children:e})};function _0(){return new Map}function Xp(e=!0){const t=k.useContext(fo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=k.useId();k.useEffect(()=>{e&&s(i)},[e]);const o=k.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const Ws=e=>e.key||"";function cd(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const ju=typeof window<"u",Zp=ju?k.useLayoutEffect:k.useEffect,D0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1})=>{const[l,u]=Xp(o),c=k.useMemo(()=>cd(e),[e]),d=o&&!l?[]:c.map(Ws),h=k.useRef(!0),f=k.useRef(c),y=wu(()=>new Map),[w,v]=k.useState(c),[N,m]=k.useState(c);Zp(()=>{h.current=!1,f.current=c;for(let S=0;S<N.length;S++){const x=Ws(N[S]);d.includes(x)?y.delete(x):y.get(x)!==!0&&y.set(x,!1)}},[N,d.length,d.join("-")]);const p=[];if(c!==w){let S=[...c];for(let x=0;x<N.length;x++){const j=N[x],C=Ws(j);d.includes(C)||(S.splice(x,0,j),p.push(j))}i==="wait"&&p.length&&(S=p),m(cd(S)),v(c);return}const{forceRender:g}=k.useContext(xu);return a.jsx(a.Fragment,{children:N.map(S=>{const x=Ws(S),j=o&&!l?!1:c===N||d.includes(x),C=()=>{if(y.has(x))y.set(x,!0);else return;let T=!0;y.forEach(D=>{D||(T=!1)}),T&&(g==null||g(),m(f.current),o&&(u==null||u()),r&&r())};return a.jsx(A0,{isPresent:j,initial:!h.current||n?void 0:!1,custom:j?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:j?void 0:C,children:S},x)})})},Ie=e=>e;let Jp=Ie;function ku(e){let t;return()=>(t===void 0&&(t=e()),t)}const ir=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},St=e=>e*1e3,jt=e=>e/1e3,L0={useManualTiming:!1};function R0(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(c){i.has(c)&&(u.schedule(c),e()),c(o)}const u={schedule:(c,d=!1,h=!1)=>{const y=h&&r?t:n;return d&&i.add(c),y.has(c)||y.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const Hs=["read","resolveKeyframes","update","preRender","render","postRender"],V0=40;function em(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Hs.reduce((m,p)=>(m[p]=R0(i),m),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:h,postRender:f}=o,y=()=>{const m=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(m-s.timestamp,V0),1),s.timestamp=m,s.isProcessing=!0,l.process(s),u.process(s),c.process(s),d.process(s),h.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(y))},w=()=>{n=!0,r=!0,s.isProcessing||e(y)};return{schedule:Hs.reduce((m,p)=>{const g=o[p];return m[p]=(S,x=!1,j=!1)=>(n||w(),g.schedule(S,x,j)),m},{}),cancel:m=>{for(let p=0;p<Hs.length;p++)o[Hs[p]].cancel(m)},state:s,steps:o}}const{schedule:Y,cancel:Yt,state:me,steps:Go}=em(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0),tm=k.createContext({strict:!1}),dd={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"]},or={};for(const e in dd)or[e]={isEnabled:t=>dd[e].some(n=>!!t[n])};function z0(e){for(const t in e)or[t]={...or[t],...e[t]}}const O0=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 Bi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||O0.has(e)}let nm=e=>!Bi(e);function F0(e){e&&(nm=t=>t.startsWith("on")?!Bi(t):e(t))}try{F0(require("@emotion/is-prop-valid").default)}catch{}function I0(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(nm(s)||n===!0&&Bi(s)||!t&&!Bi(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function B0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const ho=k.createContext({});function cs(e){return typeof e=="string"||Array.isArray(e)}function po(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Cu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nu=["initial",...Cu];function mo(e){return po(e.animate)||Nu.some(t=>cs(e[t]))}function rm(e){return!!(mo(e)||e.variants)}function $0(e,t){if(mo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||cs(n)?n:void 0,animate:cs(r)?r:void 0}}return e.inherit!==!1?t:{}}function U0(e){const{initial:t,animate:n}=$0(e,k.useContext(ho));return k.useMemo(()=>({initial:t,animate:n}),[fd(t),fd(n)])}function fd(e){return Array.isArray(e)?e.join(" "):e}const b0=Symbol.for("motionComponentSymbol");function Bn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function W0(e,t,n){return k.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bn(n)&&(n.current=r))},[t])}const Pu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),H0="framerAppearId",sm="data-"+Pu(H0),{schedule:Tu}=em(queueMicrotask,!1),im=k.createContext({});function K0(e,t,n,r,s){var i,o;const{visualElement:l}=k.useContext(ho),u=k.useContext(tm),c=k.useContext(fo),d=k.useContext(Su).reducedMotion,h=k.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const f=h.current,y=k.useContext(im);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&G0(h.current,n,s,y);const w=k.useRef(!1);k.useInsertionEffect(()=>{f&&w.current&&f.update(n,c)});const v=n[sm],N=k.useRef(!!v&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return Zp(()=>{f&&(w.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Tu.render(f.render),N.current&&f.animationState&&f.animationState.animateChanges())}),k.useEffect(()=>{f&&(!N.current&&f.animationState&&f.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,v)}),N.current=!1))}),f}function G0(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:l,layoutScroll:u,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:om(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||l&&Bn(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:c})}function om(e){if(e)return e.options.allowProjection!==!1?e.projection:om(e.parent)}function Q0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&z0(e);function l(c,d){let h;const f={...k.useContext(Su),...c,layoutId:q0(c)},{isStatic:y}=f,w=U0(c),v=r(c,y);if(!y&&ju){Y0();const N=X0(f);h=N.MeasureLayout,w.visualElement=K0(s,v,f,t,N.ProjectionNode)}return a.jsxs(ho.Provider,{value:w,children:[h&&w.visualElement?a.jsx(h,{visualElement:w.visualElement,...f}):null,n(s,c,W0(v,w.visualElement,d),v,y,w.visualElement)]})}l.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const u=k.forwardRef(l);return u[b0]=s,u}function q0({layoutId:e}){const t=k.useContext(xu).id;return t&&e!==void 0?t+"-"+e:e}function Y0(e,t){k.useContext(tm).strict}function X0(e){const{drag:t,layout:n}=or;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Z0=["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 Eu(e){return typeof e!="string"||e.includes("-")?!1:!!(Z0.indexOf(e)>-1||/[A-Z]/u.test(e))}function hd(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mu(e,t,n,r){if(typeof t=="function"){const[s,i]=hd(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=hd(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const ol=e=>Array.isArray(e),J0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),e1=e=>ol(e)?e[e.length-1]||0:e,je=e=>!!(e&&e.getVelocity);function ui(e){const t=je(e)?e.get():e;return J0(t)?t.toValue():t}function t1({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:n1(r,s,i,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const am=e=>(t,n)=>{const r=k.useContext(ho),s=k.useContext(fo),i=()=>t1(e,t,r,s);return n?i():wu(i)};function n1(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=ui(i[f]);let{initial:o,animate:l}=e;const u=mo(e),c=rm(e);t&&c&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?l:o;if(h&&typeof h!="boolean"&&!po(h)){const f=Array.isArray(h)?h:[h];for(let y=0;y<f.length;y++){const w=Mu(e,f[y]);if(w){const{transitionEnd:v,transition:N,...m}=w;for(const p in m){let g=m[p];if(Array.isArray(g)){const S=d?g.length-1:0;g=g[S]}g!==null&&(s[p]=g)}for(const p in v)s[p]=v[p]}}}return s}const dr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nn=new Set(dr),lm=e=>t=>typeof t=="string"&&t.startsWith(e),um=lm("--"),r1=lm("var(--"),Au=e=>r1(e)?s1.test(e.split("/*")[0].trim()):!1,s1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,cm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Tt=(e,t,n)=>n>t?t:n<e?e:n,fr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ds={...fr,transform:e=>Tt(0,1,e)},Ks={...fr,default:1},Ss=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_t=Ss("deg"),pt=Ss("%"),V=Ss("px"),i1=Ss("vh"),o1=Ss("vw"),pd={...pt,parse:e=>pt.parse(e)/100,transform:e=>pt.transform(e*100)},a1={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V},l1={rotate:_t,rotateX:_t,rotateY:_t,rotateZ:_t,scale:Ks,scaleX:Ks,scaleY:Ks,scaleZ:Ks,skew:_t,skewX:_t,skewY:_t,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ds,originX:pd,originY:pd,originZ:V},md={...fr,transform:Math.round},_u={...a1,...l1,zIndex:md,size:V,fillOpacity:ds,strokeOpacity:ds,numOctaves:md},u1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},c1=dr.length;function d1(e,t,n){let r="",s=!0;for(let i=0;i<c1;i++){const o=dr[i],l=e[o];if(l===void 0)continue;let u=!0;if(typeof l=="number"?u=l===(o.startsWith("scale")?1:0):u=parseFloat(l)===0,!u||n){const c=cm(l,_u[o]);if(!u){s=!1;const d=u1[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Du(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,l=!1;for(const u in t){const c=t[u];if(Nn.has(u)){o=!0;continue}else if(um(u)){s[u]=c;continue}else{const d=cm(c,_u[u]);u.startsWith("origin")?(l=!0,i[u]=d):r[u]=d}}if(t.transform||(o||n?r.transform=d1(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${u} ${c} ${d}`}}const f1={offset:"stroke-dashoffset",array:"stroke-dasharray"},h1={offset:"strokeDashoffset",array:"strokeDasharray"};function p1(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?f1:h1;e[i.offset]=V.transform(-r);const o=V.transform(t),l=V.transform(n);e[i.array]=`${o} ${l}`}function gd(e,t,n){return typeof e=="string"?e:V.transform(t+n*e)}function m1(e,t,n){const r=gd(t,e.x,e.width),s=gd(n,e.y,e.height);return`${r} ${s}`}function Lu(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:l=1,pathOffset:u=0,...c},d,h){if(Du(e,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:y,dimensions:w}=e;f.transform&&(w&&(y.transform=f.transform),delete f.transform),w&&(s!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=m1(w,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&p1(f,o,l,u,!1)}const Ru=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),dm=()=>({...Ru(),attrs:{}}),Vu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fm(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const hm=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 pm(e,t,n,r){fm(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(hm.has(s)?s:Pu(s),t.attrs[s])}const $i={};function g1(e){Object.assign($i,e)}function mm(e,{layout:t,layoutId:n}){return Nn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$i[e]||e==="opacity")}function zu(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(je(s[o])||t.style&&je(t.style[o])||mm(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function gm(e,t,n){const r=zu(e,t,n);for(const s in e)if(je(e[s])||je(t[s])){const i=dr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function v1(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const vd=["x","y","width","height","cx","cy","r"],y1={useVisualState:am({scrapeMotionValuesFromProps:gm,createRenderState:dm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const l in s)if(Nn.has(l)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let l=0;l<vd.length;l++){const u=vd[l];e[u]!==t[u]&&(o=!0)}o&&Y.read(()=>{v1(n,r),Y.render(()=>{Lu(r,s,Vu(n.tagName),e.transformTemplate),pm(n,r)})})}})},x1={useVisualState:am({scrapeMotionValuesFromProps:zu,createRenderState:Ru})};function vm(e,t,n){for(const r in t)!je(t[r])&&!mm(r,n)&&(e[r]=t[r])}function w1({transformTemplate:e},t){return k.useMemo(()=>{const n=Ru();return Du(n,t,e),Object.assign({},n.vars,n.style)},[t])}function S1(e,t){const n=e.style||{},r={};return vm(r,n,e),Object.assign(r,w1(e,t)),r}function j1(e,t){const n={},r=S1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function k1(e,t,n,r){const s=k.useMemo(()=>{const i=dm();return Lu(i,t,Vu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};vm(i,e.style,e),s.style={...i,...s.style}}return s}function C1(e=!1){return(n,r,s,{latestValues:i},o)=>{const u=(Eu(n)?k1:j1)(r,i,o,n),c=I0(r,typeof n=="string",e),d=n!==k.Fragment?{...c,...u,ref:s}:{},{children:h}=r,f=k.useMemo(()=>je(h)?h.get():h,[h]);return k.createElement(n,{...d,children:f})}}function N1(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Eu(r)?y1:x1,preloadedFeatures:e,useRender:C1(s),createVisualElement:t,Component:r};return Q0(o)}}function ym(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function go(e,t,n){const r=e.getProps();return Mu(r,t,n!==void 0?n:r.custom,e)}const P1=ku(()=>window.ScrollTimeline!==void 0);class T1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(P1()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class E1 extends T1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Ou(e,t){return e?e[t]||e.default||e:void 0}const al=2e4;function xm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<al;)t+=n,r=e.next(t);return t>=al?1/0:t}function Fu(e){return typeof e=="function"}function yd(e,t){e.timeline=t,e.onfinish=null}const Iu=e=>Array.isArray(e)&&typeof e[0]=="number",M1={linearEasing:void 0};function A1(e,t){const n=ku(e);return()=>{var r;return(r=M1[t])!==null&&r!==void 0?r:n()}}const Ui=A1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),wm=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(ir(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function Sm(e){return!!(typeof e=="function"&&Ui()||!e||typeof e=="string"&&(e in ll||Ui())||Iu(e)||Array.isArray(e)&&e.every(Sm))}const Pr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ll={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pr([0,.65,.55,1]),circOut:Pr([.55,0,1,.45]),backIn:Pr([.31,.01,.66,-.59]),backOut:Pr([.33,1.53,.69,.99])};function jm(e,t){if(e)return typeof e=="function"&&Ui()?wm(e,t):Iu(e)?Pr(e):Array.isArray(e)?e.map(n=>jm(n,t)||ll.easeOut):ll[e]}const Je={x:!1,y:!1};function km(){return Je.x||Je.y}function _1(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Cm(e,t){const n=_1(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function xd(e){return t=>{t.pointerType==="touch"||km()||e(t)}}function D1(e,t,n={}){const[r,s,i]=Cm(e,n),o=xd(l=>{const{target:u}=l,c=t(l);if(typeof c!="function"||!u)return;const d=xd(h=>{c(h),u.removeEventListener("pointerleave",d)});u.addEventListener("pointerleave",d,s)});return r.forEach(l=>{l.addEventListener("pointerenter",o,s)}),i}const Nm=(e,t)=>t?e===t?!0:Nm(e,t.parentElement):!1,Bu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,L1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function R1(e){return L1.has(e.tagName)||e.tabIndex!==-1}const Tr=new WeakSet;function wd(e){return t=>{t.key==="Enter"&&e(t)}}function Qo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const V1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=wd(()=>{if(Tr.has(n))return;Qo(n,"down");const s=wd(()=>{Qo(n,"up")}),i=()=>Qo(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Sd(e){return Bu(e)&&!km()}function z1(e,t,n={}){const[r,s,i]=Cm(e,n),o=l=>{const u=l.currentTarget;if(!Sd(l)||Tr.has(u))return;Tr.add(u);const c=t(l),d=(y,w)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!Sd(y)||!Tr.has(u))&&(Tr.delete(u),typeof c=="function"&&c(y,{success:w}))},h=y=>{d(y,n.useGlobalTarget||Nm(u,y.target))},f=y=>{d(y,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return r.forEach(l=>{!R1(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,s),l.addEventListener("focus",c=>V1(c,s),s)}),i}function O1(e){return e==="x"||e==="y"?Je[e]?null:(Je[e]=!0,()=>{Je[e]=!1}):Je.x||Je.y?null:(Je.x=Je.y=!0,()=>{Je.x=Je.y=!1})}const Pm=new Set(["width","height","top","left","right","bottom",...dr]);let ci;function F1(){ci=void 0}const mt={now:()=>(ci===void 0&&mt.set(me.isProcessing||L0.useManualTiming?me.timestamp:performance.now()),ci),set:e=>{ci=e,queueMicrotask(F1)}};function $u(e,t){e.indexOf(t)===-1&&e.push(t)}function Uu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class bu{constructor(){this.subscriptions=[]}add(t){return $u(this.subscriptions,t),()=>Uu(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Tm(e,t){return t?e*(1e3/t):0}const jd=30,I1=e=>!isNaN(parseFloat(e));class B1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=mt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=mt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=I1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new bu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=mt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jd);return Tm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fs(e,t){return new B1(e,t)}function $1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fs(n))}function U1(e,t){const n=go(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const l=e1(i[o]);$1(e,o,l)}}function b1(e){return!!(je(e)&&e.add)}function ul(e,t){const n=e.getValue("willChange");if(b1(n))return n.add(t)}function Em(e){return e.props[sm]}const Mm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,W1=1e-7,H1=12;function K1(e,t,n,r,s){let i,o,l=0;do o=t+(n-t)/2,i=Mm(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>W1&&++l<H1);return o}function js(e,t,n,r){if(e===t&&n===r)return Ie;const s=i=>K1(i,0,1,e,n);return i=>i===0||i===1?i:Mm(s(i),t,r)}const Am=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_m=e=>t=>1-e(1-t),Dm=js(.33,1.53,.69,.99),Wu=_m(Dm),Lm=Am(Wu),Rm=e=>(e*=2)<1?.5*Wu(e):.5*(2-Math.pow(2,-10*(e-1))),Hu=e=>1-Math.sin(Math.acos(e)),Vm=_m(Hu),zm=Am(Hu),Om=e=>/^0[^.\s]+$/u.test(e);function G1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Om(e):!0}const Ir=e=>Math.round(e*1e5)/1e5,Ku=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Q1(e){return e==null}const q1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Gu=(e,t)=>n=>!!(typeof n=="string"&&q1.test(n)&&n.startsWith(e)||t&&!Q1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Fm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,l]=r.match(Ku);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Y1=e=>Tt(0,255,e),qo={...fr,transform:e=>Math.round(Y1(e))},fn={test:Gu("rgb","red"),parse:Fm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qo.transform(e)+", "+qo.transform(t)+", "+qo.transform(n)+", "+Ir(ds.transform(r))+")"};function X1(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const cl={test:Gu("#"),parse:X1,transform:fn.transform},$n={test:Gu("hsl","hue"),parse:Fm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+pt.transform(Ir(t))+", "+pt.transform(Ir(n))+", "+Ir(ds.transform(r))+")"},we={test:e=>fn.test(e)||cl.test(e)||$n.test(e),parse:e=>fn.test(e)?fn.parse(e):$n.test(e)?$n.parse(e):cl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?fn.transform(e):$n.transform(e)},Z1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function J1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ku))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Z1))===null||n===void 0?void 0:n.length)||0)>0}const Im="number",Bm="color",ex="var",tx="var(",kd="${}",nx=/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 hs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(nx,u=>(we.test(u)?(r.color.push(i),s.push(Bm),n.push(we.parse(u))):u.startsWith(tx)?(r.var.push(i),s.push(ex),n.push(u)):(r.number.push(i),s.push(Im),n.push(parseFloat(u))),++i,kd)).split(kd);return{values:n,split:l,indexes:r,types:s}}function $m(e){return hs(e).values}function Um(e){const{split:t,types:n}=hs(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const l=n[o];l===Im?i+=Ir(s[o]):l===Bm?i+=we.transform(s[o]):i+=s[o]}return i}}const rx=e=>typeof e=="number"?0:e;function sx(e){const t=$m(e);return Um(e)(t.map(rx))}const Xt={test:J1,parse:$m,createTransformer:Um,getAnimatableNone:sx},ix=new Set(["brightness","contrast","saturate","opacity"]);function ox(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ku)||[];if(!r)return e;const s=n.replace(r,"");let i=ix.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const ax=/\b([a-z-]*)\(.*?\)/gu,dl={...Xt,getAnimatableNone:e=>{const t=e.match(ax);return t?t.map(ox).join(" "):e}},lx={..._u,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:dl,WebkitFilter:dl},Qu=e=>lx[e];function bm(e,t){let n=Qu(e);return n!==dl&&(n=Xt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ux=new Set(["auto","none","0"]);function cx(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!ux.has(i)&&hs(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=bm(n,s)}const Cd=e=>e===fr||e===V,Nd=(e,t)=>parseFloat(e.split(", ")[t]),Pd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Nd(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Nd(i[1],e):0}},dx=new Set(["x","y","z"]),fx=dr.filter(e=>!dx.has(e));function hx(e){const t=[];return fx.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ar={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Pd(4,13),y:Pd(5,14)};ar.translateX=ar.x;ar.translateY=ar.y;const gn=new Set;let fl=!1,hl=!1;function Wm(){if(hl){const e=Array.from(gn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=hx(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var l;(l=r.getValue(i))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}hl=!1,fl=!1,gn.forEach(e=>e.complete()),gn.clear()}function Hm(){gn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hl=!0)})}function px(){Hm(),Wm()}class qu{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(gn.add(this),fl||(fl=!0,Y.read(Hm),Y.resolveKeyframes(Wm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=s==null?void 0:s.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),s&&o===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),gn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,gn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Km=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),mx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gx(e){const t=mx.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function Gm(e,t,n=1){const[r,s]=gx(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return Km(o)?parseFloat(o):o}return Au(s)?Gm(s,t,n+1):s}const Qm=e=>t=>t.test(e),vx={test:e=>e==="auto",parse:e=>e},qm=[fr,V,pt,_t,o1,i1,vx],Td=e=>qm.find(Qm(e));class Ym extends qu{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let c=t[u];if(typeof c=="string"&&(c=c.trim(),Au(c))){const d=Gm(c,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Pm.has(r)||t.length!==2)return;const[s,i]=t,o=Td(s),l=Td(i);if(o!==l)if(Cd(o)&&Cd(l))for(let u=0;u<t.length;u++){const c=t[u];typeof c=="string"&&(t[u]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)G1(t[s])&&r.push(s);r.length&&cx(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ar[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,l=s[o];s[o]=ar[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,c])=>{n.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const Ed=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xt.test(e)||e==="0")&&!e.startsWith("url("));function yx(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function xx(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Ed(s,t),l=Ed(i,t);return!o||!l?!1:yx(e)||(n==="spring"||Fu(n))&&r}const wx=e=>e!==null;function vo(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(wx),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Sx=40;class Xm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=mt.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Sx?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&px(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=mt.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:l,onUpdate:u,isGenerator:c}=this.options;if(!c&&!xx(t,r,s,i))if(o)this.options.duration=0;else{u&&u(vo(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ee=(e,t,n)=>e+(t-e)*n;function Yo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;s=Yo(u,l,e+1/3),i=Yo(u,l,e),o=Yo(u,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function bi(e,t){return n=>n>0?t:e}const Xo=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},kx=[cl,fn,$n],Cx=e=>kx.find(t=>t.test(e));function Md(e){const t=Cx(e);if(!t)return!1;let n=t.parse(e);return t===$n&&(n=jx(n)),n}const Ad=(e,t)=>{const n=Md(e),r=Md(t);if(!n||!r)return bi(e,t);const s={...n};return i=>(s.red=Xo(n.red,r.red,i),s.green=Xo(n.green,r.green,i),s.blue=Xo(n.blue,r.blue,i),s.alpha=ee(n.alpha,r.alpha,i),fn.transform(s))},Nx=(e,t)=>n=>t(e(n)),ks=(...e)=>e.reduce(Nx),pl=new Set(["none","hidden"]);function Px(e,t){return pl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tx(e,t){return n=>ee(e,t,n)}function Yu(e){return typeof e=="number"?Tx:typeof e=="string"?Au(e)?bi:we.test(e)?Ad:Ax:Array.isArray(e)?Zm:typeof e=="object"?we.test(e)?Ad:Ex:bi}function Zm(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Yu(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function Ex(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Yu(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function Mx(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],l=e.indexes[o][s[o]],u=(n=e.values[l])!==null&&n!==void 0?n:0;r[i]=u,s[o]++}return r}const Ax=(e,t)=>{const n=Xt.createTransformer(t),r=hs(e),s=hs(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?pl.has(e)&&!s.values.length||pl.has(t)&&!r.values.length?Px(e,t):ks(Zm(Mx(r,s),s.values),n):bi(e,t)};function Jm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):Yu(e)(e,t)}const _x=5;function eg(e,t,n){const r=Math.max(t-_x,0);return Tm(n-e(r),t-r)}const re={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},Zo=.001;function Dx({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let s,i,o=1-t;o=Tt(re.minDamping,re.maxDamping,o),e=Tt(re.minDuration,re.maxDuration,jt(e)),o<1?(s=c=>{const d=c*o,h=d*e,f=d-n,y=ml(c,o),w=Math.exp(-h);return Zo-f/y*w},i=c=>{const h=c*o*e,f=h*n+n,y=Math.pow(o,2)*Math.pow(c,2)*e,w=Math.exp(-h),v=ml(Math.pow(c,2),o);return(-s(c)+Zo>0?-1:1)*((f-y)*w)/v}):(s=c=>{const d=Math.exp(-c*e),h=(c-n)*e+1;return-Zo+d*h},i=c=>{const d=Math.exp(-c*e),h=(n-c)*(e*e);return d*h});const l=5/e,u=Rx(s,i,l);if(e=St(e),isNaN(u))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Lx=12;function Rx(e,t,n){let r=n;for(let s=1;s<Lx;s++)r=r-e(r)/t(r);return r}function ml(e,t){return e*Math.sqrt(1-t*t)}const Vx=["duration","bounce"],zx=["stiffness","damping","mass"];function _d(e,t){return t.some(n=>e[n]!==void 0)}function Ox(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!_d(e,zx)&&_d(e,Vx))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:re.mass,stiffness:s,damping:i}}else{const n=Dx(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function tg(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:y}=Ox({...n,velocity:-jt(n.velocity||0)}),w=f||0,v=c/(2*Math.sqrt(u*d)),N=o-i,m=jt(Math.sqrt(u/d)),p=Math.abs(N)<5;r||(r=p?re.restSpeed.granular:re.restSpeed.default),s||(s=p?re.restDelta.granular:re.restDelta.default);let g;if(v<1){const x=ml(m,v);g=j=>{const C=Math.exp(-v*m*j);return o-C*((w+v*m*N)/x*Math.sin(x*j)+N*Math.cos(x*j))}}else if(v===1)g=x=>o-Math.exp(-m*x)*(N+(w+m*N)*x);else{const x=m*Math.sqrt(v*v-1);g=j=>{const C=Math.exp(-v*m*j),T=Math.min(x*j,300);return o-C*((w+v*m*N)*Math.sinh(T)+x*N*Math.cosh(T))/x}}const S={calculatedDuration:y&&h||null,next:x=>{const j=g(x);if(y)l.done=x>=h;else{let C=0;v<1&&(C=x===0?St(w):eg(g,x,j));const T=Math.abs(C)<=r,D=Math.abs(o-j)<=s;l.done=T&&D}return l.value=l.done?o:j,l},toString:()=>{const x=Math.min(xm(S),al),j=wm(C=>S.next(x*C).value,x,30);return x+"ms "+j}};return S}function Dd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:u,restDelta:c=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},y=T=>l!==void 0&&T<l||u!==void 0&&T>u,w=T=>l===void 0?u:u===void 0||Math.abs(l-T)<Math.abs(u-T)?l:u;let v=n*t;const N=h+v,m=o===void 0?N:o(N);m!==N&&(v=m-h);const p=T=>-v*Math.exp(-T/r),g=T=>m+p(T),S=T=>{const D=p(T),M=g(T);f.done=Math.abs(D)<=c,f.value=f.done?m:M};let x,j;const C=T=>{y(f.value)&&(x=T,j=tg({keyframes:[f.value,w(f.value)],velocity:eg(g,T,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return C(0),{calculatedDuration:null,next:T=>{let D=!1;return!j&&x===void 0&&(D=!0,S(T),C(T)),x!==void 0&&T>=x?j.next(T-x):(!D&&S(T),f)}}}const Fx=js(.42,0,1,1),Ix=js(0,0,.58,1),ng=js(.42,0,.58,1),Bx=e=>Array.isArray(e)&&typeof e[0]!="number",$x={linear:Ie,easeIn:Fx,easeInOut:ng,easeOut:Ix,circIn:Hu,circInOut:zm,circOut:Vm,backIn:Wu,backInOut:Lm,backOut:Dm,anticipate:Rm},Ld=e=>{if(Iu(e)){Jp(e.length===4);const[t,n,r,s]=e;return js(t,n,r,s)}else if(typeof e=="string")return $x[e];return e};function Ux(e,t,n){const r=[],s=n||Jm,i=e.length-1;for(let o=0;o<i;o++){let l=s(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||Ie:t;l=ks(u,l)}r.push(l)}return r}function bx(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Jp(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Ux(t,r,s),u=l.length,c=d=>{if(o&&d<e[0])return t[0];let h=0;if(u>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=ir(e[h],e[h+1],d);return l[h](f)};return n?d=>c(Tt(e[0],e[i-1],d)):c}function Wx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=ir(0,t,r);e.push(ee(n,1,s))}}function Hx(e){const t=[0];return Wx(t,e.length-1),t}function Kx(e,t){return e.map(n=>n*t)}function Gx(e,t){return e.map(()=>t||ng).splice(0,e.length-1)}function Wi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Bx(r)?r.map(Ld):Ld(r),i={done:!1,value:t[0]},o=Kx(n&&n.length===t.length?n:Hx(t),e),l=bx(o,t,{ease:Array.isArray(s)?s:Gx(t,s)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const Qx=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Y.update(t,!0),stop:()=>Yt(t),now:()=>me.isProcessing?me.timestamp:mt.now()}},qx={decay:Dd,inertia:Dd,tween:Wi,keyframes:Wi,spring:tg},Yx=e=>e/100;class Xu extends Xm{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||qu,l=(u,c)=>this.onKeyframesResolved(u,c);this.resolver=new o(i,l,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,l=Fu(n)?n:qx[n]||Wi;let u,c;l!==Wi&&typeof t[0]!="number"&&(u=ks(Yx,Jm(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(c=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=xm(d));const{calculatedDuration:h}=d,f=h+s,y=f*(r+1)-s;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:h,resolvedDuration:f,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:y,repeatType:w,repeatDelay:v,onUpdate:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),p=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let g=this.currentTime,S=i;if(y){const T=Math.min(this.currentTime,d)/h;let D=Math.floor(T),M=T%1;!M&&T>=1&&(M=1),M===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(w==="reverse"?(M=1-M,v&&(M-=v/h)):w==="mirror"&&(S=o)),g=Tt(0,1,M)*h}const x=p?{done:!1,value:u[0]}:S.next(g);l&&(x.value=l(x.value));let{done:j}=x;!p&&c!==null&&(j=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return C&&s!==void 0&&(x.value=vo(u,this.options,s)),N&&N(x.value),C&&this.finish(),x}get duration(){const{resolved:t}=this;return t?jt(t.calculatedDuration):0}get time(){return jt(this.currentTime)}set time(t){t=St(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Qx,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Xx=new Set(["opacity","clipPath","filter","transform"]);function Zx(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:l="easeInOut",times:u}={}){const c={[t]:n};u&&(c.offset=u);const d=jm(l,s);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const Jx=ku(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Hi=10,ew=2e4;function tw(e){return Fu(e.type)||e.type==="spring"||!Sm(e.ease)}function nw(e,t){const n=new Xu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<ew;)r=n.sample(i),s.push(r.value),i+=Hi;return{times:void 0,keyframes:s,duration:i-Hi,ease:"linear"}}const rg={anticipate:Rm,backInOut:Lm,circInOut:zm};function rw(e){return e in rg}class Rd extends Xm{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new Ym(i,(o,l)=>this.onKeyframesResolved(o,l),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:l,name:u,startTime:c}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&Ui()&&rw(i)&&(i=rg[i]),tw(this.options)){const{onComplete:h,onUpdate:f,motionValue:y,element:w,...v}=this.options,N=nw(t,v);t=N.keyframes,t.length===1&&(t[1]=t[0]),r=N.duration,s=N.times,i=N.ease,o="keyframes"}const d=Zx(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(yd(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(vo(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return jt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return jt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=St(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ie;const{animation:r}=n;yd(r,t)}return Ie}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:h,element:f,...y}=this.options,w=new Xu({...y,keyframes:r,duration:s,type:i,ease:o,times:l,isGenerator:!0}),v=St(this.time);c.setWithVelocity(w.sample(v-Hi).value,w.sample(v).value,Hi)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=n.owner.getProps();return Jx()&&r&&Xx.has(r)&&!u&&!c&&!s&&i!=="mirror"&&o!==0&&l!=="inertia"}}const sw={type:"spring",stiffness:500,damping:25,restSpeed:10},iw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ow={type:"keyframes",duration:.8},aw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lw=(e,{keyframes:t})=>t.length>2?ow:Nn.has(e)?e.startsWith("scale")?iw(t[1]):sw:aw;function uw({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}const Zu=(e,t,n,r={},s,i)=>o=>{const l=Ou(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-St(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};uw(l)||(d={...d,...lw(e,d)}),d.duration&&(d.duration=St(d.duration)),d.repeatDelay&&(d.repeatDelay=St(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!i&&t.get()!==void 0){const f=vo(d.keyframes,l);if(f!==void 0)return Y.update(()=>{d.onUpdate(f),d.onComplete()}),new E1([])}return!i&&Rd.supports(d)?new Rd(d):new Xu(d)};function cw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sg(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(o=r);const c=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const h in u){const f=e.getValue(h,(i=e.latestValues[h])!==null&&i!==void 0?i:null),y=u[h];if(y===void 0||d&&cw(d,h))continue;const w={delay:n,...Ou(o||{},h)};let v=!1;if(window.MotionHandoffAnimation){const m=Em(e);if(m){const p=window.MotionHandoffAnimation(m,h,Y);p!==null&&(w.startTime=p,v=!0)}}ul(e,h),f.start(Zu(h,f,y,e.shouldReduceMotion&&Pm.has(h)?{type:!1}:w,e,v));const N=f.animation;N&&c.push(N)}return l&&Promise.all(c).then(()=>{Y.update(()=>{l&&U1(e,l)})}),c}function gl(e,t,n={}){var r;const s=go(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(sg(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return dw(e,t,d+c,h,f,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,d]=u==="beforeChildren"?[o,l]:[l,o];return c().then(()=>d())}else return Promise.all([o(),l(n.delay)])}function dw(e,t,n=0,r=0,s=1,i){const o=[],l=(e.variantChildren.size-1)*r,u=s===1?(c=0)=>c*r:(c=0)=>l-c*r;return Array.from(e.variantChildren).sort(fw).forEach((c,d)=>{c.notify("AnimationStart",t),o.push(gl(c,t,{...i,delay:n+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function fw(e,t){return e.sortNodePosition(t)}function hw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>gl(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=gl(e,t,n);else{const s=typeof t=="function"?go(e,t,n.custom):t;r=Promise.all(sg(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const pw=Nu.length;function ig(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ig(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pw;n++){const r=Nu[n],s=e.props[r];(cs(s)||s===!1)&&(t[r]=s)}return t}const mw=[...Cu].reverse(),gw=Cu.length;function vw(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hw(e,n,r)))}function yw(e){let t=vw(e),n=Vd(),r=!0;const s=u=>(c,d)=>{var h;const f=go(e,d,u==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:y,transitionEnd:w,...v}=f;c={...c,...v,...w}}return c};function i(u){t=u(e)}function o(u){const{props:c}=e,d=ig(e.parent)||{},h=[],f=new Set;let y={},w=1/0;for(let N=0;N<gw;N++){const m=mw[N],p=n[m],g=c[m]!==void 0?c[m]:d[m],S=cs(g),x=m===u?p.isActive:null;x===!1&&(w=N);let j=g===d[m]&&g!==c[m]&&S;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),p.protectedKeys={...y},!p.isActive&&x===null||!g&&!p.prevProp||po(g)||typeof g=="boolean")continue;const C=xw(p.prevProp,g);let T=C||m===u&&p.isActive&&!j&&S||N>w&&S,D=!1;const M=Array.isArray(g)?g:[g];let $=M.reduce(s(m),{});x===!1&&($={});const{prevResolvedValues:I={}}=p,de={...I,...$},Ee=W=>{T=!0,f.has(W)&&(D=!0,f.delete(W)),p.needsAnimating[W]=!0;const P=e.getValue(W);P&&(P.liveStyle=!1)};for(const W in de){const P=$[W],A=I[W];if(y.hasOwnProperty(W))continue;let R=!1;ol(P)&&ol(A)?R=!ym(P,A):R=P!==A,R?P!=null?Ee(W):f.add(W):P!==void 0&&f.has(W)?Ee(W):p.protectedKeys[W]=!0}p.prevProp=g,p.prevResolvedValues=$,p.isActive&&(y={...y,...$}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(j&&C)||D)&&h.push(...M.map(W=>({animation:W,options:{type:m}})))}if(f.size){const N={};f.forEach(m=>{const p=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),N[m]=p??null}),h.push({animation:N})}let v=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(h):Promise.resolve()}function l(u,c){var d;if(n[u].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(u,c)}),n[u].isActive=c;const h=o(u);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Vd(),r=!0}}}function xw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ym(t,e):!1}function rn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vd(){return{animate:rn(!0),whileInView:rn(),whileHover:rn(),whileTap:rn(),whileDrag:rn(),whileFocus:rn(),exit:rn()}}class tn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ww extends tn{constructor(t){super(t),t.animationState||(t.animationState=yw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();po(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Sw=0;class jw extends tn{constructor(){super(...arguments),this.id=Sw++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const kw={animation:{Feature:ww},exit:{Feature:jw}};function ps(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Cs(e){return{point:{x:e.pageX,y:e.pageY}}}const Cw=e=>t=>Bu(t)&&e(t,Cs(t));function Br(e,t,n,r){return ps(e,t,Cw(n),r)}const zd=(e,t)=>Math.abs(e-t);function Nw(e,t){const n=zd(e.x,t.x),r=zd(e.y,t.y);return Math.sqrt(n**2+r**2)}class og{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!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 h=ea(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=Nw(h.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:w}=h,{timestamp:v}=me;this.history.push({...w,timestamp:v});const{onStart:N,onMove:m}=this.handlers;f||(N&&N(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Jo(f,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:y,onSessionEnd:w,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=ea(h.type==="pointercancel"?this.lastMoveEventInfo:Jo(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(h,N),w&&w(h,N)},!Bu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Cs(t),l=Jo(o,this.transformPagePoint),{point:u}=l,{timestamp:c}=me;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,ea(l,this.history)),this.removeListeners=ks(Br(this.contextWindow,"pointermove",this.handlePointerMove),Br(this.contextWindow,"pointerup",this.handlePointerUp),Br(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Yt(this.updatePoint)}}function Jo(e,t){return t?{point:t(e.point)}:e}function Od(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ea({point:e},t){return{point:e,delta:Od(e,ag(t)),offset:Od(e,Pw(t)),velocity:Tw(t,.1)}}function Pw(e){return e[0]}function ag(e){return e[e.length-1]}function Tw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=ag(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>St(t)));)n--;if(!r)return{x:0,y:0};const i=jt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const lg=1e-4,Ew=1-lg,Mw=1+lg,ug=.01,Aw=0-ug,_w=0+ug;function $e(e){return e.max-e.min}function Dw(e,t,n){return Math.abs(e-t)<=n}function Fd(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=$e(n)/$e(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ew&&e.scale<=Mw||isNaN(e.scale))&&(e.scale=1),(e.translate>=Aw&&e.translate<=_w||isNaN(e.translate))&&(e.translate=0)}function $r(e,t,n,r){Fd(e.x,t.x,n.x,r?r.originX:void 0),Fd(e.y,t.y,n.y,r?r.originY:void 0)}function Id(e,t,n){e.min=n.min+t.min,e.max=e.min+$e(t)}function Lw(e,t,n){Id(e.x,t.x,n.x),Id(e.y,t.y,n.y)}function Bd(e,t,n){e.min=t.min-n.min,e.max=e.min+$e(t)}function Ur(e,t,n){Bd(e.x,t.x,n.x),Bd(e.y,t.y,n.y)}function Rw(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function $d(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Vw(e,{top:t,left:n,bottom:r,right:s}){return{x:$d(e.x,n,s),y:$d(e.y,t,r)}}function Ud(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function zw(e,t){return{x:Ud(e.x,t.x),y:Ud(e.y,t.y)}}function Ow(e,t){let n=.5;const r=$e(e),s=$e(t);return s>r?n=ir(t.min,t.max-r,e.min):r>s&&(n=ir(e.min,e.max-s,t.min)),Tt(0,1,n)}function Fw(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const vl=.35;function Iw(e=vl){return e===!1?e=0:e===!0&&(e=vl),{x:bd(e,"left","right"),y:bd(e,"top","bottom")}}function bd(e,t,n){return{min:Wd(e,t),max:Wd(e,n)}}function Wd(e,t){return typeof e=="number"?e:e[t]||0}const Hd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Un=()=>({x:Hd(),y:Hd()}),Kd=()=>({min:0,max:0}),ie=()=>({x:Kd(),y:Kd()});function He(e){return[e("x"),e("y")]}function cg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Bw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $w(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ta(e){return e===void 0||e===1}function yl({scale:e,scaleX:t,scaleY:n}){return!ta(e)||!ta(t)||!ta(n)}function an(e){return yl(e)||dg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dg(e){return Gd(e.x)||Gd(e.y)}function Gd(e){return e&&e!=="0%"}function Ki(e,t,n){const r=e-n,s=t*r;return n+s}function Qd(e,t,n,r,s){return s!==void 0&&(e=Ki(e,s,r)),Ki(e,n,r)+t}function xl(e,t=0,n=1,r,s){e.min=Qd(e.min,t,n,r,s),e.max=Qd(e.max,t,n,r,s)}function fg(e,{x:t,y:n}){xl(e.x,t.translate,t.scale,t.originPoint),xl(e.y,n.translate,n.scale,n.originPoint)}const qd=.999999999999,Yd=1.0000000000001;function Uw(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let l=0;l<s;l++){i=n[l],o=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Wn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,fg(e,o)),r&&an(i.latestValues)&&Wn(e,i.latestValues))}t.x<Yd&&t.x>qd&&(t.x=1),t.y<Yd&&t.y>qd&&(t.y=1)}function bn(e,t){e.min=e.min+t,e.max=e.max+t}function Xd(e,t,n,r,s=.5){const i=ee(e.min,e.max,s);xl(e,t,n,i,r)}function Wn(e,t){Xd(e.x,t.x,t.scaleX,t.scale,t.originX),Xd(e.y,t.y,t.scaleY,t.scale,t.originY)}function hg(e,t){return cg($w(e.getBoundingClientRect(),t))}function bw(e,t,n){const r=hg(e,n),{scroll:s}=t;return s&&(bn(r.x,s.offset.x),bn(r.y,s.offset.y)),r}const pg=({current:e})=>e?e.ownerDocument.defaultView:null,Ww=new WeakMap;class Hw{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cs(d).point)},i=(d,h)=>{const{drag:f,dragPropagation:y,onDragStart:w}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=O1(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),He(N=>{let m=this.getAxisMotionValue(N).get()||0;if(pt.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const g=p.layout.layoutBox[N];g&&(m=$e(g)*(parseFloat(m)/100))}}this.originPoint[N]=m}),w&&Y.postRender(()=>w(d,h)),ul(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:w,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:N}=h;if(y&&this.currentDirection===null){this.currentDirection=Kw(N),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",h.point,N),this.updateAxis("y",h.point,N),this.visualElement.render(),v&&v(d,h)},l=(d,h)=>this.stop(d,h),u=()=>He(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new og(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:pg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Y.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Gs(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Rw(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Bn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Vw(s.layoutBox,n):this.constraints=!1,this.elastic=Iw(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&He(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Fw(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bn(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=bw(r,s.root,this.visualElement.getTransformPagePoint());let o=zw(s.layout.layoutBox,i);if(n){const l=n(Bw(o));this.hasMutatedConstraints=!!l,l&&(o=cg(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=He(d=>{if(!Gs(d,n,this.currentDirection))return;let h=u&&u[d]||{};o&&(h={min:0,max:0});const f=s?200:1e6,y=s?40:1e7,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,w)});return Promise.all(c).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ul(this.visualElement,t),r.start(Zu(t,r,0,n,this.visualElement,!1))}stopAnimation(){He(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){He(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){He(n=>{const{drag:r}=this.getProps();if(!Gs(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:l}=s.layout.layoutBox[n];i.set(t[n]-ee(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};He(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const u=l.get();s[o]=Ow({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),He(o=>{if(!Gs(o,t,null))return;const l=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];l.set(ee(u,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;Ww.set(this.visualElement,this);const t=this.visualElement.current,n=Br(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Bn(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Y.read(r);const o=ps(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(He(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=vl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Gs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Kw(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Gw extends tn{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new Hw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zd=e=>(t,n)=>{e&&Y.postRender(()=>e(t,n))};class Qw extends tn{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new og(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Zd(t),onStart:Zd(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&Y.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Br(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const di={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Jd(e,t.target.x),r=Jd(e,t.target.y);return`${n}% ${r}%`}},qw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Xt.parse(e);if(s.length>5)return r;const i=Xt.createTransformer(e),o=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;s[0+o]/=l,s[1+o]/=u;const c=ee(l,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}};class Yw extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;g1(Xw),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),di.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Y.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Tu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function mg(e){const[t,n]=Xp(),r=k.useContext(xu);return a.jsx(Yw,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(im),isPresent:t,safeToRemove:n})}const Xw={borderRadius:{...Sr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sr,borderTopRightRadius:Sr,borderBottomLeftRadius:Sr,borderBottomRightRadius:Sr,boxShadow:qw};function Zw(e,t,n){const r=je(e)?e:fs(e);return r.start(Zu("",r,t,n)),r.animation}function Jw(e){return e instanceof SVGElement&&e.tagName!=="svg"}const eS=(e,t)=>e.depth-t.depth;class tS{constructor(){this.children=[],this.isDirty=!1}add(t){$u(this.children,t),this.isDirty=!0}remove(t){Uu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eS),this.isDirty=!1,this.children.forEach(t)}}function nS(e,t){const n=mt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Yt(r),e(i-t))};return Y.read(r,!0),()=>Yt(r)}const gg=["TopLeft","TopRight","BottomLeft","BottomRight"],rS=gg.length,ef=e=>typeof e=="string"?parseFloat(e):e,tf=e=>typeof e=="number"||V.test(e);function sS(e,t,n,r,s,i){s?(e.opacity=ee(0,n.opacity!==void 0?n.opacity:1,iS(r)),e.opacityExit=ee(t.opacity!==void 0?t.opacity:1,0,oS(r))):i&&(e.opacity=ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<rS;o++){const l=`border${gg[o]}Radius`;let u=nf(t,l),c=nf(n,l);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||tf(u)===tf(c)?(e[l]=Math.max(ee(ef(u),ef(c),r),0),(pt.test(c)||pt.test(u))&&(e[l]+="%")):e[l]=c}(t.rotate||n.rotate)&&(e.rotate=ee(t.rotate||0,n.rotate||0,r))}function nf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const iS=vg(0,.5,Vm),oS=vg(.5,.95,Ie);function vg(e,t,n){return r=>r<e?0:r>t?1:n(ir(e,t,r))}function rf(e,t){e.min=t.min,e.max=t.max}function We(e,t){rf(e.x,t.x),rf(e.y,t.y)}function sf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function of(e,t,n,r,s){return e-=t,e=Ki(e,1/n,r),s!==void 0&&(e=Ki(e,1/s,r)),e}function aS(e,t=0,n=1,r=.5,s,i=e,o=e){if(pt.test(t)&&(t=parseFloat(t),t=ee(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=ee(i.min,i.max,r);e===i&&(l-=t),e.min=of(e.min,t,n,l,s),e.max=of(e.max,t,n,l,s)}function af(e,t,[n,r,s],i,o){aS(e,t[n],t[r],t[s],t.scale,i,o)}const lS=["x","scaleX","originX"],uS=["y","scaleY","originY"];function lf(e,t,n,r){af(e.x,t,lS,n?n.x:void 0,r?r.x:void 0),af(e.y,t,uS,n?n.y:void 0,r?r.y:void 0)}function uf(e){return e.translate===0&&e.scale===1}function yg(e){return uf(e.x)&&uf(e.y)}function cf(e,t){return e.min===t.min&&e.max===t.max}function cS(e,t){return cf(e.x,t.x)&&cf(e.y,t.y)}function df(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xg(e,t){return df(e.x,t.x)&&df(e.y,t.y)}function ff(e){return $e(e.x)/$e(e.y)}function hf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class dS{constructor(){this.members=[]}add(t){$u(this.members,t),t.scheduleRender()}remove(t){if(Uu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fS(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:h,rotateY:f,skewX:y,skewY:w}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),w&&(r+=`skewY(${w}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const ln={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Er=typeof window<"u"&&window.MotionDebug!==void 0,na=["","X","Y","Z"],hS={visibility:"hidden"},pf=1e3;let pS=0;function ra(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function wg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Em(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Y,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&wg(r)}function Sg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},l=t==null?void 0:t()){this.id=pS++,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,Er&&(ln.totalNodes=ln.resolvedTargetDeltas=ln.recalculatedProjection=0),this.nodes.forEach(vS),this.nodes.forEach(jS),this.nodes.forEach(kS),this.nodes.forEach(yS),Er&&window.MotionDebug.record(ln)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new tS)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new bu),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const u=this.eventHandlers.get(o);u&&u.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Jw(o),this.instance=o;const{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(c||u)&&(this.isLayoutDirty=!0),e){let h;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=nS(f,250),di.hasAnimatedSinceResize&&(di.hasAnimatedSinceResize=!1,this.nodes.forEach(gf))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||ES,{onLayoutAnimationStart:N,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!xg(this.targetLayout,w)||y,g=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const S={...Ou(v,"layout"),onPlay:N,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||gf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Yt(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(CS),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(mf);return}this.isUpdating||this.nodes.forEach(wS),this.isUpdating=!1,this.nodes.forEach(SS),this.nodes.forEach(mS),this.nodes.forEach(gS),this.clearAllSnapshots();const l=mt.now();me.delta=Tt(0,1e3/60,l-me.timestamp),me.timestamp=l,me.isProcessing=!0,Go.update.process(me),Go.preRender.process(me),Go.render.process(me),me.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xS),this.sharedNodes.forEach(NS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!yg(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&(l||an(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return o&&(u=this.removeTransform(u)),MS(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return ie();const u=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(AS))){const{scroll:d}=this.root;d&&(bn(u.x,d.offset.x),bn(u.y,d.offset.y))}return u}removeElementScroll(o){var l;const u=ie();if(We(u,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return u;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&We(u,o),bn(u.x,h.offset.x),bn(u.y,h.offset.y))}return u}applyTransform(o,l=!1){const u=ie();We(u,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Wn(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),an(d.latestValues)&&Wn(u,d.latestValues)}return an(this.latestValues)&&Wn(u,this.latestValues),u}removeTransform(o){const l=ie();We(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!an(c.latestValues))continue;yl(c.latestValues)&&c.updateSnapshot();const d=ie(),h=c.measurePageBox();We(d,h),lf(l,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return an(this.latestValues)&&lf(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==me.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==u;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=me.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),Ur(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),We(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Lw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):We(this.target,this.layout.layoutBox),fg(this.target,this.targetDelta)):We(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),Ur(this.relativeTargetOrigin,this.target,y.target),We(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Er&&ln.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||yl(this.parent.latestValues)||dg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===me.timestamp&&(c=!1),c)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;We(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,y=this.treeScale.y;Uw(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=ie());const{target:w}=l;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(sf(this.prevProjectionDelta.x,this.projectionDelta.x),sf(this.prevProjectionDelta.y,this.projectionDelta.y)),$r(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==y||!hf(this.projectionDelta.x,this.prevProjectionDelta.x)||!hf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w)),Er&&ln.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Un(),this.projectionDelta=Un(),this.projectionDeltaWithTransform=Un()}setAnimationOrigin(o,l=!1){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},h=Un();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=ie(),y=u?u.source:void 0,w=this.layout?this.layout.source:void 0,v=y!==w,N=this.getStack(),m=!N||N.members.length<=1,p=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(TS));this.animationProgress=0;let g;this.mixTargetDelta=S=>{const x=S/1e3;vf(h.x,o.x,x),vf(h.y,o.y,x),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ur(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),PS(this.relativeTarget,this.relativeTargetOrigin,f,x),g&&cS(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=ie()),We(g,this.relativeTarget)),v&&(this.animationValues=d,sS(d,c,this.latestValues,x,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Yt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{di.hasAnimatedSinceResize=!0,this.currentAnimation=Zw(0,pf,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=o;if(!(!l||!u||!c)){if(this!==o&&this.layout&&c&&jg(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||ie();const h=$e(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+h;const f=$e(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+f}We(l,u),Wn(l,d),$r(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new dS),this.sharedNodes.get(o).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&ra("z",o,c,this.animationValues);for(let d=0;d<na.length;d++)ra(`rotate${na[d]}`,o,c,this.animationValues),ra(`skew${na[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}getProjectionStyles(o){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hS;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ui(o==null?void 0:o.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=ui(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!an(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=fS(this.projectionDeltaWithTransform,this.treeScale,f),d&&(c.transform=d(f,c.transform));const{x:y,y:w}=this.projectionDelta;c.transformOrigin=`${y.origin*100}% ${w.origin*100}% 0`,h.animationValues?c.opacity=h===this?(u=(l=f.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const v in $i){if(f[v]===void 0)continue;const{correct:N,applyTo:m}=$i[v],p=c.transform==="none"?f[v]:N(f[v],h);if(m){const g=m.length;for(let S=0;S<g;S++)c[m[S]]=p}else c[v]=p}return this.options.layoutId&&(c.pointerEvents=h===this?ui(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(mf),this.root.sharedNodes.clear()}}}function mS(e){e.updateLayout()}function gS(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?He(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],y=$e(f);f.min=r[h].min,f.max=f.min+y}):jg(i,n.layoutBox,r)&&He(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],y=$e(r[h]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+y)});const l=Un();$r(l,r,n.layoutBox);const u=Un();o?$r(u,e.applyTransform(s,!0),n.measuredBox):$r(u,r,n.layoutBox);const c=!yg(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:y}=h;if(f&&y){const w=ie();Ur(w,n.layoutBox,f.layoutBox);const v=ie();Ur(v,r,y.layoutBox),xg(w,v)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=w,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function vS(e){Er&&ln.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function yS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xS(e){e.clearSnapshot()}function mf(e){e.clearMeasurements()}function wS(e){e.isLayoutDirty=!1}function SS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jS(e){e.resolveTargetDelta()}function kS(e){e.calcProjection()}function CS(e){e.resetSkewAndRotation()}function NS(e){e.removeLeadSnapshot()}function vf(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function yf(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function PS(e,t,n,r){yf(e.x,t.x,n.x,r),yf(e.y,t.y,n.y,r)}function TS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ES={duration:.45,ease:[.4,0,.1,1]},xf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wf=xf("applewebkit/")&&!xf("chrome/")?Math.round:Ie;function Sf(e){e.min=wf(e.min),e.max=wf(e.max)}function MS(e){Sf(e.x),Sf(e.y)}function jg(e,t,n){return e==="position"||e==="preserve-aspect"&&!Dw(ff(t),ff(n),.2)}function AS(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const _S=Sg({attachResizeListener:(e,t)=>ps(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sa={current:void 0},kg=Sg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sa.current){const e=new _S({});e.mount(window),e.setOptions({layoutScroll:!0}),sa.current=e}return sa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),DS={pan:{Feature:Qw},drag:{Feature:Gw,ProjectionNode:kg,MeasureLayout:mg}};function jf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Y.postRender(()=>i(t,Cs(t)))}class LS extends tn{mount(){const{current:t}=this.node;t&&(this.unmount=D1(t,n=>(jf(this.node,n,"Start"),r=>jf(this.node,r,"End"))))}unmount(){}}class RS extends tn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ks(ps(this.node.current,"focus",()=>this.onFocus()),ps(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Y.postRender(()=>i(t,Cs(t)))}class VS extends tn{mount(){const{current:t}=this.node;t&&(this.unmount=z1(t,n=>(kf(this.node,n,"Start"),(r,{success:s})=>kf(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const wl=new WeakMap,ia=new WeakMap,zS=e=>{const t=wl.get(e.target);t&&t(e)},OS=e=>{e.forEach(zS)};function FS({root:e,...t}){const n=e||document;ia.has(n)||ia.set(n,{});const r=ia.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(OS,{root:e,...t})),r[s]}function IS(e,t,n){const r=FS(t);return wl.set(e,n),r.observe(e),()=>{wl.delete(e),r.unobserve(e)}}const BS={some:0,all:1};class $S extends tn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:BS[s]},l=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=c?d:h;f&&f(u)};return IS(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(US(t,n))&&this.startObserver()}unmount(){}}function US({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bS={inView:{Feature:$S},tap:{Feature:VS},focus:{Feature:RS},hover:{Feature:LS}},WS={layout:{ProjectionNode:kg,MeasureLayout:mg}},Sl={current:null},Cg={current:!1};function HS(){if(Cg.current=!0,!!ju)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sl.current=e.matches;e.addListener(t),t()}else Sl.current=!1}const KS=[...qm,we,Xt],GS=e=>KS.find(Qm(e)),Cf=new WeakMap;function QS(e,t,n){for(const r in t){const s=t[r],i=n[r];if(je(s))e.addValue(r,s);else if(je(i))e.addValue(r,fs(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,fs(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Nf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class qS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=mt.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Y.render(this.render,!1,!0))};const{latestValues:u,renderState:c,onUpdate:d}=o;this.onUpdate=d,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=mo(n),this.isVariantNode=rm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in f){const w=f[y];u[y]!==void 0&&je(w)&&w.set(u[y],!1)}}mount(t){this.current=t,Cf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Cg.current||HS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Cf.delete(this.current),this.projection&&this.projection.unmount(),Yt(this.notifyUpdate),Yt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Nn.has(t),s=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Y.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in or){const n=or[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Nf.length;r++){const s=Nf[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=QS(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=fs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Km(s)||Om(s))?s=parseFloat(s):!GS(s)&&Xt.test(n)&&(s=bm(t,n)),this.setBaseTarget(t,je(s)?s.get():s)),je(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Mu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!je(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new bu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ng extends qS{constructor(){super(...arguments),this.KeyframeResolver=Ym}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;je(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function YS(e){return window.getComputedStyle(e)}class XS extends Ng{constructor(){super(...arguments),this.type="html",this.renderInstance=fm}readValueFromInstance(t,n){if(Nn.has(n)){const r=Qu(n);return r&&r.default||0}else{const r=YS(t),s=(um(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hg(t,n)}build(t,n,r){Du(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return zu(t,n,r)}}class ZS extends Ng{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Nn.has(n)){const r=Qu(n);return r&&r.default||0}return n=hm.has(n)?n:Pu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return gm(t,n,r)}build(t,n,r){Lu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){pm(t,n,r,s)}mount(t){this.isSVGTag=Vu(t.tagName),super.mount(t)}}const JS=(e,t)=>Eu(e)?new ZS(t):new XS(t,{allowProjection:e!==k.Fragment}),ej=N1({...kw,...bS,...DS,...WS},JS),At=B0(ej);function Pf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tj(e){if(Array.isArray(e))return e}function nj(e,t,n){return(t=uj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rj(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,o,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){c=!0,s=d}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw s}}return l}}function sj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
284
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(n),!0).forEach(function(r){nj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ij(e,t){if(e==null)return{};var n,r,s=oj(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function oj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function aj(e,t){return tj(e)||rj(e,t)||cj(e,t)||sj()}function lj(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uj(e){var t=lj(e,"string");return typeof t=="symbol"?t:t+""}function cj(e,t){if(e){if(typeof e=="string")return Pf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pf(e,t):void 0}}function dj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Af(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mf(Object(n),!0).forEach(function(r){dj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fj(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(s,i){return i(s)},r)}}function Mr(e){return function t(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return s.length>=e.length?e.apply(this,s):function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return t.apply(n,[].concat(s,l))}}}function Gi(e){return{}.toString.call(e).includes("Object")}function hj(e){return!Object.keys(e).length}function ms(e){return typeof e=="function"}function pj(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function mj(e,t){return Gi(t)||Kt("changeType"),Object.keys(t).some(function(n){return!pj(e,n)})&&Kt("changeField"),t}function gj(e){ms(e)||Kt("selectorType")}function vj(e){ms(e)||Gi(e)||Kt("handlerType"),Gi(e)&&Object.values(e).some(function(t){return!ms(t)})&&Kt("handlersType")}function yj(e){e||Kt("initialIsRequired"),Gi(e)||Kt("initialType"),hj(e)&&Kt("initialContent")}function xj(e,t){throw new Error(e[t]||e.default)}var wj={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Kt=Mr(xj)(wj),Qs={changes:mj,selector:gj,handler:vj,initial:yj};function Sj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Qs.initial(e),Qs.handler(t);var n={current:e},r=Mr(Cj)(n,t),s=Mr(kj)(n),i=Mr(Qs.changes)(e),o=Mr(jj)(n);function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return Qs.selector(c),c(n.current)}function u(c){fj(r,s,i,o)(c)}return[l,u]}function jj(e,t){return ms(t)?t(e.current):t}function kj(e,t){return e.current=Af(Af({},e.current),t),t}function Cj(e,t,n){return ms(t)?t(e.current):Object.keys(n).forEach(function(r){var s;return(s=t[r])===null||s===void 0?void 0:s.call(t,e.current[r])}),n}var Nj={create:Sj},Pj={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Tj(e){return function t(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return s.length>=e.length?e.apply(this,s):function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return t.apply(n,[].concat(s,l))}}}function Ej(e){return{}.toString.call(e).includes("Object")}function Mj(e){return e||_f("configIsRequired"),Ej(e)||_f("configType"),e.urls?(Aj(),{paths:{vs:e.urls.monacoBase}}):e}function Aj(){console.warn(Pg.deprecation)}function _j(e,t){throw new Error(e[t]||e.default)}var Pg={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
285
|
+
You are using deprecated way of configuration.
|
|
286
|
+
|
|
287
|
+
Instead of using
|
|
288
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
289
|
+
use
|
|
290
|
+
monaco.config({ paths: { vs: '...' } })
|
|
291
|
+
|
|
292
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
293
|
+
`},_f=Tj(_j)(Pg),Dj={config:Mj},Lj=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(s){return n.reduceRight(function(i,o){return o(i)},s)}};function Tg(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Tg(e[n],t[n]))}),Ef(Ef({},e),t)}var Rj={type:"cancelation",msg:"operation is manually canceled"};function oa(e){var t=!1,n=new Promise(function(r,s){e.then(function(i){return t?s(Rj):r(i)}),e.catch(s)});return n.cancel=function(){return t=!0},n}var Vj=["monaco"],zj=Nj.create({config:Pj,isInitialized:!1,resolve:null,reject:null,monaco:null}),Eg=aj(zj,2),Ns=Eg[0],yo=Eg[1];function Oj(e){var t=Dj.config(e),n=t.monaco,r=ij(t,Vj);yo(function(s){return{config:Tg(s.config,r),monaco:n}})}function Fj(){var e=Ns(function(t){var n=t.monaco,r=t.isInitialized,s=t.resolve;return{monaco:n,isInitialized:r,resolve:s}});if(!e.isInitialized){if(yo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),oa(aa);if(window.monaco&&window.monaco.editor)return Mg(window.monaco),e.resolve(window.monaco),oa(aa);Lj(Ij,$j)(Uj)}return oa(aa)}function Ij(e){return document.body.appendChild(e)}function Bj(e){var t=document.createElement("script");return e&&(t.src=e),t}function $j(e){var t=Ns(function(r){var s=r.config,i=r.reject;return{config:s,reject:i}}),n=Bj("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Uj(){var e=Ns(function(n){var r=n.config,s=n.resolve,i=n.reject;return{config:r,resolve:s,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Mg(r),e.resolve(r)},function(n){e.reject(n)})}function Mg(e){Ns().monaco||yo({monaco:e})}function bj(){return Ns(function(e){var t=e.monaco;return t})}var aa=new Promise(function(e,t){return yo({resolve:e,reject:t})}),Ag={config:Oj,init:Fj,__getMonacoInstance:bj},Wj={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},la=Wj,Hj={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Kj=Hj;function Gj({children:e}){return ze.createElement("div",{style:Kj.container},e)}var Qj=Gj,qj=Qj;function Yj({width:e,height:t,isEditorReady:n,loading:r,_ref:s,className:i,wrapperProps:o}){return ze.createElement("section",{style:{...la.wrapper,width:e,height:t},...o},!n&&ze.createElement(qj,null,r),ze.createElement("div",{ref:s,style:{...la.fullWidth,...!n&&la.hide},className:i}))}var Xj=Yj,_g=k.memo(Xj);function Zj(e){k.useEffect(e,[])}var Dg=Zj;function Jj(e,t,n=!0){let r=k.useRef(!0);k.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Ve=Jj;function br(){}function Hn(e,t,n,r){return e2(e,r)||t2(e,t,n,r)}function e2(e,t){return e.editor.getModel(Lg(e,t))}function t2(e,t,n,r){return e.editor.createModel(t,n,r?Lg(e,r):void 0)}function Lg(e,t){return e.Uri.parse(t)}function n2({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:s,originalModelPath:i,modifiedModelPath:o,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:u=!1,theme:c="light",loading:d="Loading...",options:h={},height:f="100%",width:y="100%",className:w,wrapperProps:v={},beforeMount:N=br,onMount:m=br}){let[p,g]=k.useState(!1),[S,x]=k.useState(!0),j=k.useRef(null),C=k.useRef(null),T=k.useRef(null),D=k.useRef(m),M=k.useRef(N),$=k.useRef(!1);Dg(()=>{let O=Ag.init();return O.then(b=>(C.current=b)&&x(!1)).catch(b=>(b==null?void 0:b.type)!=="cancelation"&&console.error("Monaco initialization: error:",b)),()=>j.current?Ee():O.cancel()}),Ve(()=>{if(j.current&&C.current){let O=j.current.getOriginalEditor(),b=Hn(C.current,e||"",r||n||"text",i||"");b!==O.getModel()&&O.setModel(b)}},[i],p),Ve(()=>{if(j.current&&C.current){let O=j.current.getModifiedEditor(),b=Hn(C.current,t||"",s||n||"text",o||"");b!==O.getModel()&&O.setModel(b)}},[o],p),Ve(()=>{let O=j.current.getModifiedEditor();O.getOption(C.current.editor.EditorOption.readOnly)?O.setValue(t||""):t!==O.getValue()&&(O.executeEdits("",[{range:O.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),O.pushUndoStop())},[t],p),Ve(()=>{var O,b;(b=(O=j.current)==null?void 0:O.getModel())==null||b.original.setValue(e||"")},[e],p),Ve(()=>{let{original:O,modified:b}=j.current.getModel();C.current.editor.setModelLanguage(O,r||n||"text"),C.current.editor.setModelLanguage(b,s||n||"text")},[n,r,s],p),Ve(()=>{var O;(O=C.current)==null||O.editor.setTheme(c)},[c],p),Ve(()=>{var O;(O=j.current)==null||O.updateOptions(h)},[h],p);let I=k.useCallback(()=>{var W;if(!C.current)return;M.current(C.current);let O=Hn(C.current,e||"",r||n||"text",i||""),b=Hn(C.current,t||"",s||n||"text",o||"");(W=j.current)==null||W.setModel({original:O,modified:b})},[n,t,s,e,r,i,o]),de=k.useCallback(()=>{var O;!$.current&&T.current&&(j.current=C.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...h}),I(),(O=C.current)==null||O.editor.setTheme(c),g(!0),$.current=!0)},[h,c,I]);k.useEffect(()=>{p&&D.current(j.current,C.current)},[p]),k.useEffect(()=>{!S&&!p&&de()},[S,p,de]);function Ee(){var b,W,P,A;let O=(b=j.current)==null?void 0:b.getModel();l||((W=O==null?void 0:O.original)==null||W.dispose()),u||((P=O==null?void 0:O.modified)==null||P.dispose()),(A=j.current)==null||A.dispose()}return ze.createElement(_g,{width:y,height:f,isEditorReady:p,loading:d,_ref:T,className:w,wrapperProps:v})}var r2=n2,s2=k.memo(r2);function i2(e){let t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}var o2=i2,qs=new Map;function a2({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:s,path:i,theme:o="light",line:l,loading:u="Loading...",options:c={},overrideServices:d={},saveViewState:h=!0,keepCurrentModel:f=!1,width:y="100%",height:w="100%",className:v,wrapperProps:N={},beforeMount:m=br,onMount:p=br,onChange:g,onValidate:S=br}){let[x,j]=k.useState(!1),[C,T]=k.useState(!0),D=k.useRef(null),M=k.useRef(null),$=k.useRef(null),I=k.useRef(p),de=k.useRef(m),Ee=k.useRef(),O=k.useRef(r),b=o2(i),W=k.useRef(!1),P=k.useRef(!1);Dg(()=>{let L=Ag.init();return L.then(z=>(D.current=z)&&T(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>M.current?R():L.cancel()}),Ve(()=>{var z,ae,X,ot;let L=Hn(D.current,e||r||"",t||s||"",i||n||"");L!==((z=M.current)==null?void 0:z.getModel())&&(h&&qs.set(b,(ae=M.current)==null?void 0:ae.saveViewState()),(X=M.current)==null||X.setModel(L),h&&((ot=M.current)==null||ot.restoreViewState(qs.get(i))))},[i],x),Ve(()=>{var L;(L=M.current)==null||L.updateOptions(c)},[c],x),Ve(()=>{!M.current||r===void 0||(M.current.getOption(D.current.editor.EditorOption.readOnly)?M.current.setValue(r):r!==M.current.getValue()&&(P.current=!0,M.current.executeEdits("",[{range:M.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),M.current.pushUndoStop(),P.current=!1))},[r],x),Ve(()=>{var z,ae;let L=(z=M.current)==null?void 0:z.getModel();L&&s&&((ae=D.current)==null||ae.editor.setModelLanguage(L,s))},[s],x),Ve(()=>{var L;l!==void 0&&((L=M.current)==null||L.revealLine(l))},[l],x),Ve(()=>{var L;(L=D.current)==null||L.editor.setTheme(o)},[o],x);let A=k.useCallback(()=>{var L;if(!(!$.current||!D.current)&&!W.current){de.current(D.current);let z=i||n,ae=Hn(D.current,r||e||"",t||s||"",z||"");M.current=(L=D.current)==null?void 0:L.editor.create($.current,{model:ae,automaticLayout:!0,...c},d),h&&M.current.restoreViewState(qs.get(z)),D.current.editor.setTheme(o),l!==void 0&&M.current.revealLine(l),j(!0),W.current=!0}},[e,t,n,r,s,i,c,d,h,o,l]);k.useEffect(()=>{x&&I.current(M.current,D.current)},[x]),k.useEffect(()=>{!C&&!x&&A()},[C,x,A]),O.current=r,k.useEffect(()=>{var L,z;x&&g&&((L=Ee.current)==null||L.dispose(),Ee.current=(z=M.current)==null?void 0:z.onDidChangeModelContent(ae=>{P.current||g(M.current.getValue(),ae)}))},[x,g]),k.useEffect(()=>{if(x){let L=D.current.editor.onDidChangeMarkers(z=>{var X;let ae=(X=M.current.getModel())==null?void 0:X.uri;if(ae&&z.find(ot=>ot.path===ae.path)){let ot=D.current.editor.getModelMarkers({resource:ae});S==null||S(ot)}});return()=>{L==null||L.dispose()}}return()=>{}},[x,S]);function R(){var L,z;(L=Ee.current)==null||L.dispose(),f?h&&qs.set(i,M.current.saveViewState()):(z=M.current.getModel())==null||z.dispose(),M.current.dispose()}return ze.createElement(_g,{width:y,height:w,isEditorReady:x,loading:u,_ref:$,className:v,wrapperProps:N})}var l2=a2,u2=k.memo(l2);const c2=e=>{var r;const t=(r=e.split(".").pop())==null?void 0:r.toLowerCase();return{ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",py:"python",rb:"ruby",rs:"rust",go:"go",json:"json",yaml:"yaml",yml:"yaml",md:"markdown",css:"css",scss:"scss",html:"html",xml:"xml",sql:"sql",sh:"shell",bash:"shell",zsh:"shell"}[t||""]||"plaintext"},d2=new Set(["md","mdx","markdown"]);function f2(e){var n;const t=((n=e.split(".").pop())==null?void 0:n.toLowerCase())||"";return d2.has(t)}function h2(e){let t=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/^### (.+)$/gm,"<h3>$1</h3>").replace(/^## (.+)$/gm,"<h2>$1</h2>").replace(/^# (.+)$/gm,"<h1>$1</h1>").replace(/\*\*\*(.+?)\*\*\*/g,"<strong><em>$1</em></strong>").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/\*(.+?)\*/g,"<em>$1</em>").replace(/`([^`]+)`/g,"<code>$1</code>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener">$1</a>').replace(/^---+$/gm,"<hr />").replace(/^> (.+)$/gm,"<blockquote>$1</blockquote>").replace(/^[*-] (.+)$/gm,"<li>$1</li>").replace(/\n\n/g,"</p><p>");return t=t.replace(/(<li>.*<\/li>(\n)?)+/g,n=>`<ul>${n}</ul>`),t=t.replace(/```(\w*)\n([\s\S]*?)```/g,(n,r,s)=>`<pre><code>${s.trim()}</code></pre>`),`<p>${t}</p>`}const p2=({filename:e,originalCode:t,modifiedCode:n,onClose:r,theme:s="dark",violations:i=[]})=>{const o=t!==n,l=c2(e),u=s==="dark"?"vs-dark":"light",c=f2(e)&&!o,d=k.useMemo(()=>c?h2(n):"",[c,n]),h=f=>{if(!i.length||!f)return;const y=window.monaco;if(!y)return;const w=i.filter(v=>v.line).map(v=>({range:new y.Range(v.line,1,v.endLine||v.line,1),options:{isWholeLine:!0,className:"violation-line-highlight",glyphMarginClassName:"violation-glyph",glyphMarginHoverMessage:{value:`**[${v.id}] ${v.title}**
|
|
294
|
+
|
|
295
|
+
${v.details}`},overviewRuler:{color:"#f87171",position:y.editor.OverviewRulerLane.Full}}}));f.deltaDecorations([],w)};return a.jsx("div",{className:"diff-viewer-overlay",children:a.jsxs("div",{className:"diff-viewer-window",children:[a.jsxs("div",{className:"diff-viewer-header",children:[a.jsxs("div",{className:"title",children:[a.jsx(ct,{size:18}),a.jsx("span",{children:e}),o&&a.jsx("span",{className:"diff-badge",children:"Modified"}),i.length>0&&a.jsxs("span",{className:"diff-badge",style:{background:"rgba(248, 113, 113, 0.12)",color:"#f87171",borderColor:"rgba(248, 113, 113, 0.3)"},children:[i.length," violation",i.length!==1?"s":""]})]}),a.jsx("button",{onClick:r,className:"close-btn",children:a.jsx(yu,{size:20})})]}),c?a.jsx("div",{className:"markdown-viewer",dangerouslySetInnerHTML:{__html:d}}):a.jsx("div",{className:"diff-editor-container",children:o?a.jsx(s2,{height:"100%",language:l,original:t,modified:n,theme:u,options:{renderSideBySide:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13}}):a.jsx(u2,{height:"100%",language:l,value:n,theme:u,onMount:h,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on",glyphMargin:i.length>0}})})]})})},m2=(e,t)=>{const n=[];e.forEach(s=>{const i=s.split("/");let o=n,l="";i.forEach((u,c)=>{l=l?`${l}/${u}`:u;const d=c<i.length-1;let h=o.find(f=>f.name===u);h||(h={name:u,path:l,isDirectory:d,children:[],isViolated:t.some(f=>f===l||f.startsWith(`${l}/`))},o.push(h)),o=h.children})});const r=s=>{s.sort((i,o)=>i.isDirectory&&!o.isDirectory?-1:!i.isDirectory&&o.isDirectory?1:i.name.localeCompare(o.name)),s.forEach(i=>r(i.children))};return r(n),n},Rg=({node:e,level:t,onSelect:n,activeFile:r})=>{const[s,i]=k.useState(t===0),o=r===e.path,l=u=>{u.stopPropagation(),e.isDirectory?i(!s):n(e.path)};return a.jsxs("div",{className:"tree-node-container",children:[a.jsxs("div",{className:`tree-item ${o?"active":""} ${e.isViolated?"violated":""}`,style:{paddingLeft:`${t*12+8}px`},onClick:l,children:[e.isDirectory?a.jsxs(a.Fragment,{children:[s?a.jsx(Oi,{size:14,className:"chevron"}):a.jsx(jn,{size:14,className:"chevron"}),s?a.jsx(x0,{size:14,className:"folder-icon"}):a.jsx(co,{size:14,className:"folder-icon"})]}):a.jsx(ct,{size:14,className:"file-icon"}),a.jsx("span",{className:"node-name",title:e.path,children:e.name}),e.isViolated&&a.jsx(p0,{size:12,className:"violation-icon"})]}),e.isDirectory&&s&&a.jsx("div",{className:"tree-children",children:e.children.map(u=>a.jsx(Rg,{node:u,level:t+1,onSelect:n,activeFile:r},u.path))})]})},Df=({files:e,onSelect:t,activeFile:n,violatedFiles:r=[]})=>{const s=k.useMemo(()=>m2(e,r),[e,r]);return a.jsxs("div",{className:"file-tree",children:[a.jsxs("div",{className:"tree-header",children:[a.jsx(co,{size:14}),a.jsx("span",{children:"Project Explorer"})]}),a.jsx("div",{className:"tree-list",children:s.length===0?a.jsx("div",{className:"empty-tree-state",children:"No files found"}):s.map(i=>a.jsx(Rg,{node:i,level:0,onSelect:t,activeFile:n},i.path))})]})},ua=e=>typeof e=="string"?e:JSON.stringify(e,null,2),g2=()=>{const[e,t]=k.useState({memories:{}}),[n,r]=k.useState(null),[s,i]=k.useState(""),[o,l]=k.useState(!0),[u,c]=k.useState(!1),d=async()=>{l(!0);try{const p=await(await fetch("/api/memory")).json();p.memories?t(p):t({memories:p})}catch(m){console.error("Failed to fetch memory:",m)}finally{l(!1)}};k.useEffect(()=>{d()},[]);const h=Object.entries(e.memories||{}),f=h.filter(([m])=>m.toLowerCase().includes(s.toLowerCase())),y=n?e.memories[n]:null,w=m=>{try{return new Date(m).toLocaleString()}catch{return m}},v=()=>{y&&(navigator.clipboard.writeText(ua(y.value)),c(!0),setTimeout(()=>c(!1),2e3))},N=m=>{const p=ua(m);if(p.includes("1)")&&p.includes("2)")){const g=p.split(/(\d+\))/);return a.jsx("div",{className:"formatted-content",children:g.map((S,x)=>{if(/^\d+\)$/.test(S))return a.jsx("div",{className:"section-marker",children:S},x);if(S.trim().startsWith("Priority:")){const[j,C]=S.split("Priority:");return a.jsxs(ze.Fragment,{children:[j.trim()&&a.jsx("div",{className:"section-body",children:j.trim()}),a.jsx("div",{className:"priority-box",children:C.trim()})]},x)}return S.trim()?a.jsx("div",{className:"section-body",children:S.trim()},x):null})})}return a.jsx("pre",{children:p})};return a.jsxs("div",{className:"memory-bank",children:[a.jsxs("div",{className:"memory-header",children:[a.jsxs("div",{className:"memory-title",children:[a.jsx(as,{size:24}),a.jsx("h2",{children:"Memory Bank"}),a.jsxs("span",{className:"memory-count",children:[h.length," entries"]})]}),a.jsxs("div",{className:"memory-actions",children:[a.jsxs("div",{className:"search-box",children:[a.jsx(vu,{size:16}),a.jsx("input",{type:"text",placeholder:"Search memories...",value:s,onChange:m=>i(m.target.value)})]}),a.jsx("button",{className:"refresh-btn",onClick:d,disabled:o,children:a.jsx(us,{size:16,className:o?"spinning":""})})]})]}),a.jsxs("div",{className:"memory-content",children:[a.jsx("div",{className:"memory-list",children:o?a.jsx("div",{className:"memory-loading",children:"Loading memories..."}):f.length===0?a.jsxs("div",{className:"memory-empty",children:[a.jsx(Qp,{size:48}),a.jsx("h3",{children:"No Memories Stored"}),a.jsxs("p",{children:["Use ",a.jsx("code",{children:"store_memory"})," via MCP to persist agent context."]})]}):f.map(([m,p])=>a.jsxs("div",{className:`memory-item ${n===m?"active":""}`,onClick:()=>r(m),children:[a.jsxs("div",{className:"memory-item-header",children:[a.jsx(ud,{size:14}),a.jsx("span",{className:"memory-key",children:m}),a.jsx(jn,{size:14,className:"chevron"})]}),a.jsxs("div",{className:"memory-item-meta",children:[a.jsx(Fi,{size:12}),a.jsx("span",{children:w(p.timestamp)})]}),a.jsx("div",{className:"memory-item-preview",children:(()=>{const g=ua(p.value);return g.slice(0,100)+(g.length>100?"...":"")})()})]},m))}),a.jsx("div",{className:"memory-detail",children:y?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"detail-header",children:[a.jsx(ud,{size:18}),a.jsx("h3",{children:n})]}),a.jsxs("div",{className:"detail-meta",children:[a.jsxs("div",{className:"meta-left",children:[a.jsx(Fi,{size:14}),a.jsxs("span",{children:["Stored: ",w(y.timestamp)]})]}),a.jsxs("button",{className:`copy-btn ${u?"copied":""}`,onClick:v,children:[u?a.jsx(h0,{size:14}):a.jsx(m0,{size:14}),a.jsx("span",{children:u?"Copied":"Copy"})]})]}),a.jsx("div",{className:"detail-content",children:N(y.value)})]}):a.jsxs("div",{className:"detail-placeholder",children:[a.jsx(as,{size:48}),a.jsx("p",{children:"Select a memory to view its contents"})]})})]})]})},v2=()=>{var x;const[e,t]=k.useState({patterns:[],stats:{totalPatterns:0,totalFiles:0,byType:{}}}),[n,r]=k.useState(null),[s,i]=k.useState(""),[o,l]=k.useState("all"),[u,c]=k.useState(!0),[d,h]=k.useState(!1),[f,y]=k.useState([]),[w,v]=k.useState(!1),N=async()=>{c(!0);try{const C=await(await fetch("/api/index-stats")).json();t(C)}catch(j){console.error("Failed to fetch pattern index:",j)}finally{c(!1)}};k.useEffect(()=>{N()},[]),k.useEffect(()=>{if(!d||s.length<3){y([]);return}const j=setTimeout(async()=>{v(!0);try{const T=await(await fetch(`/api/index-search?q=${encodeURIComponent(s)}`)).json();y(T)}catch(C){console.error("Semantic search failed:",C)}finally{v(!1)}},500);return()=>clearTimeout(j)},[s,d]);const m=d&&s.length>=3?f:e.patterns||[],p=e.stats||{totalPatterns:0,totalFiles:0,byType:{}},g=d&&s.length>=3?m:m.filter(j=>{const C=j.name.toLowerCase().includes(s.toLowerCase())||j.file.toLowerCase().includes(s.toLowerCase()),T=o==="all"||j.type===o;return C&&T}),S=Object.keys(p.byType||{});return a.jsxs("div",{className:"pattern-index",children:[a.jsxs("div",{className:"pattern-header",children:[a.jsxs("div",{className:"pattern-title",children:[a.jsx(mn,{size:24}),a.jsx("h2",{children:"Pattern Index"}),a.jsxs("span",{className:"pattern-count",children:[p.totalPatterns," patterns"]})]}),a.jsxs("div",{className:"pattern-actions",children:[a.jsxs("div",{className:"search-box",children:[a.jsx(vu,{size:16}),a.jsx("input",{type:"text",placeholder:"Search patterns...",value:s,onChange:j=>i(j.target.value)})]}),a.jsxs("div",{className:"filter-box",children:[a.jsx(gu,{size:16}),a.jsxs("select",{value:o,onChange:j=>l(j.target.value),children:[a.jsx("option",{value:"all",children:"All Types"}),S.map(j=>a.jsxs("option",{value:j,children:[j," (",p.byType[j],")"]},j))]})]}),a.jsxs("button",{className:`semantic-toggle ${d?"active":""}`,onClick:()=>h(!d),title:"Semantic Search (v2)",children:[a.jsx(ld,{size:16}),a.jsx("span",{children:"AI Search"})]}),a.jsx("button",{className:"refresh-btn",onClick:N,disabled:u,children:a.jsx(us,{size:16,className:u?"spinning":""})})]})]}),a.jsxs("div",{className:"pattern-stats",children:[a.jsxs("div",{className:"stat-card",children:[a.jsx(f0,{size:20}),a.jsxs("div",{className:"stat-info",children:[a.jsx("span",{className:"stat-value",children:p.totalPatterns}),a.jsx("span",{className:"stat-label",children:"Total Patterns"})]})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx(ct,{size:20}),a.jsxs("div",{className:"stat-info",children:[a.jsx("span",{className:"stat-value",children:p.totalFiles}),a.jsx("span",{className:"stat-label",children:"Files Indexed"})]})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx(ld,{size:20}),a.jsxs("div",{className:"stat-info",children:[a.jsx("span",{className:"stat-value",children:S.length}),a.jsx("span",{className:"stat-label",children:"Pattern Types"})]})]}),p.indexDurationMs&&a.jsxs("div",{className:"stat-card",children:[a.jsx(Fi,{size:20}),a.jsxs("div",{className:"stat-info",children:[a.jsxs("span",{className:"stat-value",children:[p.indexDurationMs,"ms"]}),a.jsx("span",{className:"stat-label",children:"Index Time"})]})]})]}),a.jsxs("div",{className:"pattern-content",children:[a.jsxs("div",{className:"pattern-list",children:[w&&a.jsxs("div",{className:"searching-indicator",children:[a.jsx(us,{size:14,className:"spinning"}),a.jsx("span",{children:"AI is analyzing your query..."})]}),u?a.jsx("div",{className:"pattern-loading",children:"Loading patterns..."}):g.length===0?a.jsxs("div",{className:"pattern-empty",children:[a.jsx(mn,{size:48}),a.jsx("h3",{children:"No Patterns Indexed"}),a.jsxs("p",{children:["Run ",a.jsx("code",{children:"rigour index"})," to scan your codebase."]})]}):g.map(j=>a.jsxs("div",{className:`pattern-item ${(n==null?void 0:n.id)===j.id?"active":""}`,onClick:()=>r(j),children:[j.similarity&&a.jsxs("div",{className:"similarity-badge",children:[(j.similarity*100).toFixed(0),"% Match"]}),a.jsxs("div",{className:"pattern-item-header",children:[a.jsx("span",{className:"pattern-type-badge",children:j.type}),a.jsx("span",{className:"pattern-name",children:j.name}),a.jsx(jn,{size:14,className:"chevron"})]}),a.jsxs("div",{className:"pattern-item-file",children:[a.jsx(ct,{size:12}),a.jsxs("span",{children:[j.file,":",j.line]})]}),j.exported&&a.jsx("span",{className:"exported-badge",children:"exported"})]},j.id))]}),a.jsx("div",{className:"pattern-detail",children:n?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"detail-header",children:[a.jsx("span",{className:"pattern-type-badge large",children:n.type}),a.jsx("h3",{children:n.name})]}),a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Location"}),a.jsxs("code",{children:[n.file,":",n.line,"-",n.endLine]})]}),n.signature&&a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Signature"}),a.jsx("pre",{children:n.signature})]}),n.description&&a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Description"}),a.jsx("p",{children:n.description})]}),((x=n.keywords)==null?void 0:x.length)>0&&a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Keywords"}),a.jsx("div",{className:"keywords-list",children:n.keywords.map((j,C)=>a.jsx("span",{className:"keyword-tag",children:j},C))})]}),a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Usage"}),a.jsxs("p",{children:["Imported in ",a.jsx("strong",{children:n.usageCount})," files"]})]})]}):a.jsxs("div",{className:"detail-placeholder",children:[a.jsx(mn,{size:48}),a.jsx("p",{children:"Select a pattern to view details"})]})})]})]})},y2=()=>{var y,w,v,N,m;const[e,t]=k.useState(null),[n,r]=k.useState(""),[s,i]=k.useState(null),[o,l]=k.useState(!0),[u,c]=k.useState("visual"),d=async()=>{l(!0);try{const g=await(await fetch("/api/config")).text();r(g);const S=h(g);t(S)}catch(p){console.error("Failed to fetch config:",p)}try{const p=await fetch("/api/report-stats");if(p.ok){const g=await p.json();i(g)}}catch{}l(!1)},h=p=>{var g;try{const S=p.split(`
|
|
296
|
+
`),x={};let j=null,C=null;for(const T of S){if(T.startsWith("#")||!T.trim())continue;const D=T.search(/\S/),M=T.trim();if(D===0&&M.includes(":")){const[$]=M.split(":");j=$.trim(),C=null;const I=(g=M.split(":")[1])==null?void 0:g.trim();I&&I!=="{}"&&I!=="[]"?x[j]=isNaN(Number(I))?I:Number(I):x[j]={}}else if(D===2&&j&&M.includes(":")){const[$]=M.split(":");C=$.trim();const I=M.split(":").slice(1).join(":").trim();if(I&&I!=="{}"&&I!=="[]"){typeof x[j]!="object"&&(x[j]={});const de=I==="true"?!0:I==="false"?!1:isNaN(Number(I))?I:Number(I);x[j][C]=de}else typeof x[j]!="object"&&(x[j]={}),x[j][C]={}}else if(D===4&&j&&C&&M.includes(":")){const[$]=M.split(":"),I=M.split(":").slice(1).join(":").trim();typeof x[j][C]!="object"&&(x[j][C]={});const de=I==="true"?!0:I==="false"?!1:isNaN(Number(I))?I:Number(I);x[j][C][$.trim()]=de}}return x}catch{return{}}};k.useEffect(()=>{d()},[]);const f=(e==null?void 0:e.gates)||{};return a.jsxs("div",{className:"quality-gates",children:[a.jsxs("div",{className:"gates-header",children:[a.jsxs("div",{className:"gates-title",children:[a.jsx(li,{size:24}),a.jsx("h2",{children:"Quality Gates"}),(e==null?void 0:e.preset)&&a.jsx("span",{className:"preset-badge",children:e.preset})]}),a.jsxs("div",{className:"gates-actions",children:[a.jsxs("div",{className:"view-toggle",children:[a.jsxs("button",{className:u==="visual"?"active":"",onClick:()=>c("visual"),children:[a.jsx(mn,{size:16})," Visual"]}),a.jsxs("button",{className:u==="raw"?"active":"",onClick:()=>c("raw"),children:[a.jsx(ct,{size:16})," YAML"]})]}),a.jsx("button",{className:"refresh-btn",onClick:d,disabled:o,children:a.jsx(us,{size:16,className:o?"spinning":""})})]})]}),o?a.jsx("div",{className:"gates-loading",children:"Loading configuration..."}):u==="raw"?a.jsx("div",{className:"gates-raw",children:a.jsx("pre",{children:n})}):a.jsxs("div",{className:"gates-content",children:[a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(ct,{size:18}),a.jsx("h3",{children:"Code Quality"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Max File Lines",value:f.max_file_lines,icon:a.jsx(ct,{size:16})}),a.jsx(G,{label:"Forbid TODOs",value:f.forbid_todos,icon:f.forbid_todos?a.jsx(ls,{size:16}):a.jsx(ht,{size:16})}),a.jsx(G,{label:"Forbid FIXMEs",value:f.forbid_fixme,icon:f.forbid_fixme?a.jsx(ls,{size:16}):a.jsx(ht,{size:16})})]})]}),f.ast&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(w0,{size:18}),a.jsx("h3",{children:"AST Limits"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Complexity",value:f.ast.complexity}),a.jsx(G,{label:"Max Methods",value:f.ast.max_methods}),a.jsx(G,{label:"Max Params",value:f.ast.max_params}),a.jsx(G,{label:"Max Nesting",value:f.ast.max_nesting}),a.jsx(G,{label:"Max Function Lines",value:f.ast.max_function_lines}),a.jsx(G,{label:"Max Inheritance",value:f.ast.max_inheritance_depth})]})]}),f.safety&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(qp,{size:18}),a.jsx("h3",{children:"File Guard"})]}),a.jsx("div",{className:"gate-grid",children:a.jsx(G,{label:"Max Files/Cycle",value:f.safety.max_files_changed_per_cycle})}),f.safety.protected_paths&&f.safety.protected_paths.length>0&&a.jsxs("div",{className:"protected-paths",children:[a.jsx("h4",{children:"Protected Paths"}),a.jsx("div",{className:"path-list",children:f.safety.protected_paths.map((p,g)=>a.jsx("span",{className:"path-tag",children:p},g))})]})]}),f.required_files&&f.required_files.length>0&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(qt,{size:18}),a.jsx("h3",{children:"Required Files"})]}),a.jsx("div",{className:"file-list",children:f.required_files.map((p,g)=>a.jsxs("div",{className:"file-item",children:[a.jsx(ct,{size:14}),a.jsx("span",{children:p})]},g))})]}),f.context&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(In,{size:18}),a.jsx("h3",{children:"Context Mining"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Enabled",value:f.context.enabled}),a.jsx(G,{label:"Sensitivity",value:f.context.sensitivity}),a.jsx(G,{label:"Mining Depth",value:f.context.mining_depth})]})]}),f.retry_loop_breaker&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(Yp,{size:18}),a.jsx("h3",{children:"Retry Loop Breaker"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Enabled",value:f.retry_loop_breaker.enabled}),a.jsx(G,{label:"Max Retries",value:f.retry_loop_breaker.max_retries})]})]}),a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(In,{size:18}),a.jsx("h3",{children:"AI-Native Gates"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Duplication Drift",value:((y=f.duplication_drift)==null?void 0:y.enabled)??!0,icon:a.jsx(ht,{size:16})}),a.jsx(G,{label:"Hallucinated Imports",value:((w=f.hallucinated_imports)==null?void 0:w.enabled)??!0,icon:a.jsx(qt,{size:16})}),a.jsx(G,{label:"Error Handling",value:((v=f.inconsistent_error_handling)==null?void 0:v.enabled)??!0,icon:a.jsx(li,{size:16})}),a.jsx(G,{label:"Context Artifacts",value:((N=f.context_window_artifacts)==null?void 0:N.enabled)??!0,icon:a.jsx(mn,{size:16})}),a.jsx(G,{label:"Async Safety",value:((m=f.promise_safety)==null?void 0:m.enabled)??!0,icon:a.jsx(In,{size:16})})]})]}),s&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(li,{size:18}),a.jsx("h3",{children:"Latest Scores"})]}),a.jsxs("div",{className:"gate-grid",children:[s.score!==void 0&&a.jsx(G,{label:"Overall Score",value:`${s.score}/100`}),s.ai_health_score!==void 0&&a.jsx(G,{label:"AI Health",value:`${s.ai_health_score}/100`,icon:a.jsx(In,{size:16})}),s.structural_score!==void 0&&a.jsx(G,{label:"Structural",value:`${s.structural_score}/100`,icon:a.jsx(mn,{size:16})})]}),s.severity_breakdown&&a.jsxs("div",{className:"severity-breakdown",children:[a.jsx("h4",{children:"Severity Breakdown"}),a.jsx("div",{className:"gate-grid",children:Object.entries(s.severity_breakdown).filter(([,p])=>p>0).map(([p,g])=>a.jsx(G,{label:p.charAt(0).toUpperCase()+p.slice(1),value:g},p))})]}),s.provenance_breakdown&&a.jsxs("div",{className:"provenance-breakdown",children:[a.jsx("h4",{children:"Provenance Breakdown"}),a.jsx("div",{className:"gate-grid",children:Object.entries(s.provenance_breakdown).filter(([,p])=>p>0).map(([p,g])=>a.jsx(G,{label:p,value:g},p))})]})]})]})]})},G=({label:e,value:t,icon:n})=>{const r=typeof t=="boolean"?t?"Yes":"No":t??"N/A";return a.jsxs("div",{className:"gate-card",children:[n&&a.jsx("div",{className:"gate-icon",children:n}),a.jsxs("div",{className:"gate-info",children:[a.jsx("span",{className:"gate-value",children:r}),a.jsx("span",{className:"gate-label",children:e})]})]})},x2=({logs:e,onClearLogs:t,onSelectLog:n,selectedLog:r})=>{const[s,i]=k.useState(""),[o,l]=k.useState("all"),[u,c]=k.useState("all"),d=ze.useMemo(()=>{const v={};return e.forEach(N=>{const m=N.requestId||N.id;v[m]?v[m]={...v[m],...N}:v[m]={...N}}),Object.values(v).sort((N,m)=>new Date(m.timestamp).getTime()-new Date(N.timestamp).getTime())},[e]),h=ze.useMemo(()=>{const v=new Set;return d.forEach(N=>N.tool&&v.add(N.tool)),Array.from(v)},[d]),f=ze.useMemo(()=>d.filter(v=>{var g;const N=!s||((g=v.tool)==null?void 0:g.toLowerCase().includes(s.toLowerCase()))||JSON.stringify(v.arguments||{}).toLowerCase().includes(s.toLowerCase()),m=o==="all"||v.status===o,p=u==="all"||v.tool===u;return N&&m&&p}),[d,s,o,u]),y=ze.useMemo(()=>({total:d.length,success:d.filter(v=>v.status==="success").length,error:d.filter(v=>v.status==="error").length,pending:d.filter(v=>!v.status||v.status==="pending").length}),[d]),w=()=>{const v=JSON.stringify(f,null,2),N=new Blob([v],{type:"application/json"}),m=URL.createObjectURL(N),p=document.createElement("a");p.href=m,p.download=`rigour-audit-${new Date().toISOString().split("T")[0]}.json`,p.click()};return a.jsxs("div",{className:"audit-log",children:[a.jsxs("div",{className:"audit-header",children:[a.jsxs("div",{className:"audit-title",children:[a.jsx(zi,{size:24}),a.jsx("h2",{children:"Audit Trail"}),a.jsxs("span",{className:"log-count",children:[f.length," events"]})]}),a.jsxs("div",{className:"audit-actions",children:[a.jsxs("button",{className:"btn-secondary",onClick:t,children:[a.jsx(N0,{size:16})," Clear"]}),a.jsxs("button",{className:"btn-primary",onClick:w,children:[a.jsx(v0,{size:16})," Export"]})]})]}),a.jsxs("div",{className:"audit-stats",children:[a.jsxs("div",{className:"stat-pill",children:[a.jsx(zi,{size:14}),a.jsxs("span",{children:[y.total," Total"]})]}),a.jsxs("div",{className:"stat-pill success",children:[a.jsx(ht,{size:14}),a.jsxs("span",{children:[y.success," Success"]})]}),a.jsxs("div",{className:"stat-pill error",children:[a.jsx(ls,{size:14}),a.jsxs("span",{children:[y.error," Failed"]})]}),a.jsxs("div",{className:"stat-pill pending",children:[a.jsx(qt,{size:14}),a.jsxs("span",{children:[y.pending," Pending"]})]})]}),a.jsxs("div",{className:"audit-filters",children:[a.jsxs("div",{className:"search-box",children:[a.jsx(vu,{size:16}),a.jsx("input",{type:"text",placeholder:"Search logs...",value:s,onChange:v=>i(v.target.value)})]}),a.jsxs("div",{className:"filter-box",children:[a.jsx(gu,{size:16}),a.jsxs("select",{value:o,onChange:v=>l(v.target.value),children:[a.jsx("option",{value:"all",children:"All Status"}),a.jsx("option",{value:"success",children:"Success"}),a.jsx("option",{value:"error",children:"Error"}),a.jsx("option",{value:"pending",children:"Pending"})]})]}),a.jsxs("div",{className:"filter-box",children:[a.jsx(Ii,{size:16}),a.jsxs("select",{value:u,onChange:v=>c(v.target.value),children:[a.jsx("option",{value:"all",children:"All Tools"}),h.map(v=>a.jsx("option",{value:v,children:v},v))]})]})]}),a.jsxs("div",{className:"audit-content",children:[a.jsx("div",{className:"log-list",children:f.length===0?a.jsxs("div",{className:"empty-state",children:[a.jsx(Ii,{size:48}),a.jsx("h3",{children:"No Interactions Detected"}),a.jsx("p",{children:"Rigour tool calls will appear here in real-time."})]}):f.map(v=>a.jsxs("div",{className:`log-entry ${(r==null?void 0:r.id)===v.id?"active":""} ${v._rigour_report?"has-report":""}`,onClick:()=>n((r==null?void 0:r.id)===v.id?null:v),children:[a.jsxs("div",{className:"log-header",children:[a.jsx("span",{className:`status-dot ${v.status||"pending"}`}),a.jsx("span",{className:"log-tool",children:v.tool}),a.jsxs("span",{className:"log-time",children:[a.jsx(Fi,{size:12}),new Date(v.timestamp).toLocaleTimeString()]}),v._rigour_report&&a.jsxs("span",{className:"report-badge",children:[a.jsx(y0,{size:12})," Report"]}),v.arbitrated&&a.jsx("span",{className:`arbitrated-badge ${v.decision}`,children:v.decision==="approve"?"Approved":"Rejected"}),a.jsx(jn,{size:14,className:"chevron"})]}),v.requestId&&a.jsxs("div",{className:"log-request-id",children:["ID: ",v.requestId.slice(0,12),"..."]})]},v.id))}),a.jsx("div",{className:"log-detail",children:r?a.jsx(w2,{log:r,onClose:()=>n(null)}):a.jsxs("div",{className:"detail-placeholder",children:[a.jsx(ct,{size:48}),a.jsx("p",{children:"Select a log entry to view details"})]})})]})]})},w2=({log:e,onClose:t})=>{var i,o,l,u,c,d,h;const n=!!e._rigour_report||["rigour_checkpoint","rigour_agent_register","rigour_handoff"].includes(e.tool),[r,s]=k.useState(n?"report":"args");return a.jsxs("div",{className:"log-detail-view",children:[a.jsxs("div",{className:"detail-header",children:[a.jsxs("div",{className:"detail-info",children:[a.jsxs("span",{className:`status-badge ${e.status||"pending"}`,children:[e.status==="success"?a.jsx(ht,{size:14}):e.status==="error"?a.jsx(ls,{size:14}):a.jsx(qt,{size:14}),e.status||"pending"]}),a.jsx("h3",{children:e.tool})]}),a.jsx("button",{className:"close-btn",onClick:t,children:a.jsx(yu,{size:18})})]}),a.jsxs("div",{className:"detail-meta",children:[a.jsxs("div",{className:"meta-item",children:[a.jsx("span",{className:"meta-label",children:"Timestamp"}),a.jsx("span",{className:"meta-value",children:new Date(e.timestamp).toLocaleString()})]}),e.requestId&&a.jsxs("div",{className:"meta-item",children:[a.jsx("span",{className:"meta-label",children:"Request ID"}),a.jsx("span",{className:"meta-value mono",children:e.requestId})]})]}),n&&a.jsxs("div",{className:"detail-tabs",children:[a.jsx("button",{className:r==="report"?"active":"",onClick:()=>s("report"),children:e._rigour_report?"Verification Report":"Visualized Content"}),a.jsx("button",{className:r==="args"?"active":"",onClick:()=>s("args"),children:"Technical Arguments"})]}),a.jsx("div",{className:"detail-body",children:r==="args"?a.jsxs(a.Fragment,{children:[e.arguments&&a.jsxs("div",{className:"code-section",children:[a.jsx("h4",{children:"Arguments"}),a.jsx("pre",{children:JSON.stringify(e.arguments,null,2)})]}),e.error&&a.jsxs("div",{className:"error-section",children:[a.jsx("h4",{children:"Error"}),a.jsx("div",{className:"error-message",children:e.error})]})]}):a.jsx("div",{className:"verification-view",children:e.tool==="rigour_checkpoint"?a.jsxs("div",{className:"checkpoint-viz",children:[a.jsxs("div",{className:"viz-stats",children:[a.jsxs("div",{className:"viz-stat",children:[a.jsx("span",{className:"label",children:"Progress"}),a.jsxs("span",{className:"value",children:[((i=e.arguments)==null?void 0:i.progressPct)??0,"%"]})]}),a.jsxs("div",{className:"viz-stat",children:[a.jsx("span",{className:"label",children:"Quality"}),a.jsxs("span",{className:"value",style:{color:(((o=e.arguments)==null?void 0:o.qualityScore)??0)>=80?"#34d399":"#f87171"},children:[((l=e.arguments)==null?void 0:l.qualityScore)??0,"%"]})]})]}),a.jsxs("div",{className:"viz-summary",children:[a.jsx("h4",{children:"Summary of Work"}),a.jsx("p",{children:((u=e.arguments)==null?void 0:u.summary)||"No summary provided."})]}),((c=e.arguments)==null?void 0:c.filesChanged)&&e.arguments.filesChanged.length>0&&a.jsxs("div",{className:"viz-files",children:[a.jsx("h4",{children:"Files Changed"}),a.jsx("div",{className:"file-badges",children:e.arguments.filesChanged.map(f=>a.jsx("span",{className:"file-badge",children:f},f))})]})]}):e.tool==="rigour_agent_register"?a.jsxs("div",{className:"agent-viz",children:[a.jsx(zi,{size:32,className:"viz-icon"}),a.jsx("h3",{children:"Agent Scope Claims"}),a.jsxs("div",{className:"scope-box",children:[a.jsx("h4",{children:"Claimed Scope:"}),a.jsx("div",{className:"scope-list",children:(h=(d=e.arguments)==null?void 0:d.taskScope)==null?void 0:h.map(f=>a.jsx("code",{children:f},f))})]})]}):a.jsxs("div",{className:"code-section",children:[a.jsx("h4",{children:"Rigour Report"}),a.jsx("pre",{children:JSON.stringify(e._rigour_report,null,2)})]})})})]})};function S2({session:e}){if(!e||e.agents.length===0)return a.jsxs("div",{className:"empty-state",children:[a.jsx(il,{size:48}),a.jsx("h3",{children:"No Active Agent Team"}),a.jsxs("p",{children:["When multiple agents register via ",a.jsx("code",{children:"rigour_agent_register"}),", they'll appear here."]}),a.jsxs("div",{className:"hint-box",children:[a.jsx("span",{children:"Supported Models:"}),a.jsxs("div",{className:"model-badges",children:[a.jsx("span",{className:"badge opus",children:"Opus 4.6"}),a.jsx("span",{className:"badge sonnet",children:"Sonnet 4.5"}),a.jsx("span",{className:"badge gpt",children:"GPT-5.3"}),a.jsx("span",{className:"badge codex",children:"Codex"})]})]})]});const t=r=>{switch(r){case"active":return a.jsx(Ho,{size:10,fill:"#34d399",stroke:"#34d399"});case"idle":return a.jsx(Ho,{size:10,fill:"#fbbf24",stroke:"#fbbf24"});case"completed":return a.jsx(ht,{size:14,color:"#34d399"});default:return a.jsx(Ho,{size:10})}},n=(r,s)=>s.some(i=>i.agentId===r.agentId?!1:r.taskScope.some(o=>i.taskScope.some(l=>l===o||o.startsWith(l)||l.startsWith(o))));return a.jsxs("div",{className:"agent-teams",children:[a.jsxs("div",{className:"panel-header",children:[a.jsxs("div",{className:"title",children:[a.jsx(il,{size:18}),a.jsx("span",{children:"Agent Team Session"})]}),a.jsx("div",{className:`session-status ${e.status}`,children:e.status.toUpperCase()})]}),a.jsxs("div",{className:"session-info",children:[a.jsx("span",{className:"session-id",children:e.sessionId}),a.jsxs("span",{className:"agent-count",children:[e.agents.length," agents"]})]}),a.jsx("div",{className:"agents-grid",children:e.agents.map(r=>a.jsxs("div",{className:`agent-card ${r.status} ${n(r,e.agents)?"has-conflict":""}`,children:[a.jsxs("div",{className:"agent-header",children:[a.jsxs("div",{className:"agent-id",children:[t(r.status),a.jsx("span",{children:r.agentId})]}),n(r,e.agents)&&a.jsxs("div",{className:"conflict-badge",children:[a.jsx(qt,{size:12}),a.jsx("span",{children:"Scope Conflict"})]})]}),a.jsxs("div",{className:"task-scope",children:[a.jsx("h4",{children:"Task Scope"}),a.jsx("ul",{children:r.taskScope.map((s,i)=>a.jsxs("li",{children:[a.jsx(co,{size:12}),a.jsx("code",{children:s})]},i))})]}),a.jsxs("div",{className:"agent-meta",children:[a.jsxs("span",{children:["Registered: ",new Date(r.registeredAt).toLocaleTimeString()]}),r.lastCheckpoint&&a.jsxs("span",{children:["Last checkpoint: ",new Date(r.lastCheckpoint).toLocaleTimeString()]})]})]},r.agentId))})]})}function j2({checkpoints:e}){if(!e||e.length===0)return a.jsxs("div",{className:"empty-state",children:[a.jsx(sl,{size:48}),a.jsx("h3",{children:"No Checkpoints Yet"}),a.jsxs("p",{children:["Checkpoints will appear here as agents report progress via ",a.jsx("code",{children:"rigour_checkpoint"}),"."]}),a.jsx("div",{className:"hint-box",children:a.jsx("span",{children:"Default interval: 15 minutes"})})]});const t=s=>s>=80?"#34d399":s>=60?"#fbbf24":"#f87171",n=s=>{if(s===0)return null;const i=e[s-1].qualityScore,o=e[s].qualityScore;return o>i+5?a.jsx(T0,{size:14,color:"#34d399"}):o<i-5?a.jsx(P0,{size:14,color:"#f87171"}):null},r=e.some((s,i)=>{if(i<2)return!1;const o=e.slice(Math.max(0,i-2),i),l=o.reduce((u,c)=>u+c.qualityScore,0)/o.length;return s.qualityScore<l-10});return a.jsxs("div",{className:"checkpoint-timeline",children:[a.jsxs("div",{className:"panel-header",children:[a.jsxs("div",{className:"title",children:[a.jsx(sl,{size:18}),a.jsx("span",{children:"Checkpoint Timeline"})]}),a.jsxs("div",{className:"drift-visualization",children:[a.jsxs("svg",{width:"120",height:"30",viewBox:"0 0 120 30",className:"drift-sparkline",children:[a.jsx("path",{d:`M ${e.map((s,i)=>`${i/(e.length-1||1)*120} ${30-s.qualityScore/100*30}`).join(" L ")}`,fill:"none",stroke:"var(--accent-primary)",strokeWidth:"2",strokeLinecap:"round"}),e.map((s,i)=>a.jsx("circle",{cx:i/(e.length-1||1)*120,cy:30-s.qualityScore/100*30,r:"2",fill:t(s.qualityScore)},i))]}),a.jsx("span",{className:"drift-label",children:"Session Stability"})]}),r&&a.jsxs("div",{className:"drift-alert",children:[a.jsx(qt,{size:14}),a.jsx("span",{children:"Drift Detected"})]})]}),a.jsxs("div",{className:"timeline-container",children:[a.jsx("div",{className:"timeline-line"}),e.map((s,i)=>a.jsxs("div",{className:`checkpoint-entry ${s.warnings.length>0?"has-warnings":""}`,children:[a.jsx("div",{className:"checkpoint-marker",children:a.jsx("div",{className:"marker-dot",style:{backgroundColor:t(s.qualityScore)}})}),a.jsxs("div",{className:"checkpoint-content",children:[a.jsxs("div",{className:"checkpoint-header",children:[a.jsx("span",{className:"checkpoint-id",children:s.checkpointId}),a.jsx("span",{className:"checkpoint-time",children:new Date(s.timestamp).toLocaleTimeString()})]}),a.jsxs("div",{className:"checkpoint-stats",children:[a.jsxs("div",{className:"stat",children:[a.jsx("span",{className:"label",children:"Progress"}),a.jsx("div",{className:"progress-bar",children:a.jsx("div",{className:"progress-fill",style:{width:`${s.progressPct}%`}})}),a.jsxs("span",{className:"value",children:[s.progressPct,"%"]})]}),a.jsxs("div",{className:"stat",children:[a.jsx("span",{className:"label",children:"Quality"}),a.jsxs("span",{className:"value score",style:{color:t(s.qualityScore)},children:[s.qualityScore,"%",n(i)]})]}),a.jsxs("div",{className:"stat",children:[a.jsx("span",{className:"label",children:"Agent"}),a.jsx("span",{className:"value agent-id",children:s.agentId})]})]}),a.jsx("div",{className:"checkpoint-summary",children:a.jsx("p",{children:s.summary})}),s.filesChanged.length>0&&a.jsx("div",{className:"files-changed",children:a.jsxs("span",{className:"count",children:[s.filesChanged.length," files changed"]})}),s.warnings.length>0&&a.jsx("div",{className:"warnings",children:s.warnings.map((o,l)=>a.jsxs("div",{className:"warning-item",children:[a.jsx(qt,{size:12}),a.jsx("span",{children:o})]},l))})]})]},s.checkpointId))]})]})}const Vg={critical:"var(--status-error)",high:"#f97316",medium:"var(--status-warning)",low:"var(--accent-primary)",info:"var(--text-dim)"},k2={srp_violation:"Single Responsibility",ocp_violation:"Open/Closed Principle",lsp_violation:"Liskov Substitution",isp_violation:"Interface Segregation",dip_violation:"Dependency Inversion",god_class:"God Class",god_function:"God Function",long_params:"Long Parameters",complex_conditional:"Complex Conditional",empty_catch:"Empty Catch Block",error_inconsistency:"Error Inconsistency",race_condition:"Race Condition",goroutine_leak:"Goroutine Leak",channel_misuse:"Channel Misuse",mutex_scope:"Mutex Scope",isp_violation_interface:"Interface Bloat",missing_test:"Missing Tests",long_file:"Long File",magic_number:"Magic Numbers",resource_leak:"Resource Leak",dry_violation:"DRY Violation",feature_envy:"Feature Envy",dead_code:"Dead Code",naming_convention:"Naming Convention",performance:"Performance"},Lf={"SOLID Principles":["srp_violation","ocp_violation","lsp_violation","isp_violation","dip_violation"],"Code Smells":["god_class","god_function","long_params","complex_conditional","long_file","magic_number","dead_code","feature_envy"],"Error Handling":["empty_catch","error_inconsistency"],Concurrency:["race_condition","goroutine_leak","channel_misuse","mutex_scope"],Testing:["missing_test"],Architecture:["isp_violation_interface","dry_violation","naming_convention","resource_leak"],Performance:["performance"]},C2=()=>{const[e,t]=k.useState(null),[n,r]=k.useState(!0),[s,i]=k.useState(new Set),[o,l]=k.useState(new Set),[u,c]=k.useState("all"),[d,h]=k.useState(!1),f=async()=>{r(!0);try{const[x,j]=await Promise.all([fetch("/api/report-stats"),fetch("/api/deep-findings")]),C=x.ok?await x.json():{},T=j.ok?await j.json():[];t({...C,findings:T})}catch(x){console.error("Failed to fetch deep analysis data:",x)}r(!1)};k.useEffect(()=>{f()},[]);const y=x=>{i(j=>{const C=new Set(j);return C.has(x)?C.delete(x):C.add(x),C})},w=x=>{l(j=>{const C=new Set(j);return C.has(x)?C.delete(x):C.add(x),C})},v=((e==null?void 0:e.findings)||[]).filter(x=>x.provenance==="deep-analysis"),N=v.filter(x=>!(u!=="all"&&x.severity!==u||d&&!x.verified)),m=Object.entries(Lf).map(([x,j])=>{const C=N.filter(T=>j.includes(T.category||""));return{group:x,findings:C}}).filter(x=>x.findings.length>0),p=Object.values(Lf).flat(),g=N.filter(x=>!p.includes(x.category||"")),S=e==null?void 0:e.deep;return a.jsxs("div",{className:"deep-analysis",children:[a.jsxs("div",{className:"deep-header",children:[a.jsxs("div",{className:"deep-title",children:[a.jsx(as,{size:24}),a.jsx("h2",{children:"Deep Analysis"}),(S==null?void 0:S.tier)&&a.jsx("span",{className:"tier-badge",children:S.tier})]}),a.jsx("div",{className:"deep-actions",children:a.jsx("button",{className:"refresh-btn",onClick:f,disabled:n,children:a.jsx(us,{size:16,className:n?"spinning":""})})})]}),n?a.jsx("div",{className:"deep-loading",children:"Loading deep analysis data..."}):!(S!=null&&S.enabled)&&v.length===0?a.jsxs("div",{className:"deep-empty",children:[a.jsx(as,{size:48}),a.jsx("h3",{children:"Deep Analysis Not Yet Run"}),a.jsxs("p",{children:["Run ",a.jsx("code",{children:"rigour check --deep"})," to get LLM-powered code quality analysis with 40+ categories."]}),a.jsxs("div",{className:"empty-features",children:[a.jsxs("div",{className:"feature",children:[a.jsx(li,{size:16})," SOLID Principles"]}),a.jsxs("div",{className:"feature",children:[a.jsx(mn,{size:16})," Design Patterns"]}),a.jsxs("div",{className:"feature",children:[a.jsx(In,{size:16})," Concurrency Safety"]}),a.jsxs("div",{className:"feature",children:[a.jsx(C0,{size:16})," Architecture Quality"]})]})]}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"deep-stats-banner",children:[a.jsxs("div",{className:"stat-card",children:[a.jsx("span",{className:"stat-value",children:(S==null?void 0:S.findings_count)??v.length}),a.jsx("span",{className:"stat-label",children:"Findings"})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx("span",{className:"stat-value",children:(S==null?void 0:S.findings_verified)??v.filter(x=>x.verified).length}),a.jsx("span",{className:"stat-label",children:"Verified"})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx("span",{className:"stat-value",children:(S==null?void 0:S.files_analyzed)??"—"}),a.jsx("span",{className:"stat-label",children:"Files Analyzed"})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx("span",{className:"stat-value",children:(S==null?void 0:S.model)||"—"}),a.jsx("span",{className:"stat-label",children:"Model"})]}),(S==null?void 0:S.total_ms)&&a.jsxs("div",{className:"stat-card",children:[a.jsxs("span",{className:"stat-value",children:[(S.total_ms/1e3).toFixed(1),"s"]}),a.jsx("span",{className:"stat-label",children:"Inference"})]})]}),((e==null?void 0:e.score)!==void 0||(e==null?void 0:e.code_quality_score)!==void 0)&&a.jsxs("div",{className:"deep-scores",children:[(e==null?void 0:e.score)!==void 0&&a.jsx(ca,{label:"Overall",score:e.score}),(e==null?void 0:e.ai_health_score)!==void 0&&a.jsx(ca,{label:"AI Health",score:e.ai_health_score}),(e==null?void 0:e.structural_score)!==void 0&&a.jsx(ca,{label:"Structural",score:e.structural_score})]}),a.jsxs("div",{className:"deep-filters",children:[a.jsxs("div",{className:"filter-group",children:[a.jsx(gu,{size:14}),a.jsxs("select",{value:u,onChange:x=>c(x.target.value),className:"filter-select",children:[a.jsx("option",{value:"all",children:"All Severities"}),a.jsx("option",{value:"critical",children:"Critical"}),a.jsx("option",{value:"high",children:"High"}),a.jsx("option",{value:"medium",children:"Medium"}),a.jsx("option",{value:"low",children:"Low"})]})]}),a.jsxs("button",{className:`filter-toggle ${d?"active":""}`,onClick:()=>h(!d),children:[a.jsx(ht,{size:14}),"Verified Only"]}),a.jsxs("span",{className:"filter-count",children:[N.length," finding",N.length!==1?"s":""]})]}),a.jsxs("div",{className:"deep-findings",children:[m.map(({group:x,findings:j})=>a.jsxs("div",{className:"finding-group",children:[a.jsxs("button",{className:"group-header",onClick:()=>y(x),children:[s.has(x)?a.jsx(Oi,{size:16}):a.jsx(jn,{size:16}),a.jsx("span",{className:"group-name",children:x}),a.jsx("span",{className:"group-count",children:j.length}),a.jsx("div",{className:"group-severity-dots",children:["critical","high","medium","low"].map(C=>{const T=j.filter(D=>D.severity===C).length;return T>0?a.jsx("span",{className:"sev-dot",style:{backgroundColor:Vg[C]},title:`${T} ${C}`},C):null})})]}),s.has(x)&&a.jsx("div",{className:"group-findings",children:j.map(C=>a.jsx(Rf,{finding:C,expanded:o.has(C.id),onToggle:()=>w(C.id)},C.id))})]},x)),g.length>0&&a.jsxs("div",{className:"finding-group",children:[a.jsxs("button",{className:"group-header",onClick:()=>y("_other"),children:[s.has("_other")?a.jsx(Oi,{size:16}):a.jsx(jn,{size:16}),a.jsx("span",{className:"group-name",children:"Other Findings"}),a.jsx("span",{className:"group-count",children:g.length})]}),s.has("_other")&&a.jsx("div",{className:"group-findings",children:g.map(x=>a.jsx(Rf,{finding:x,expanded:o.has(x.id),onToggle:()=>w(x.id)},x.id))})]}),N.length===0&&a.jsxs("div",{className:"no-findings",children:[a.jsx(ht,{size:32}),a.jsx("p",{children:"No deep analysis findings match the current filters."})]})]})]})]})},Rf=({finding:e,expanded:t,onToggle:n})=>{const r=Vg[e.severity||"info"],s=k2[e.category||""]||e.category||"Unknown";return a.jsxs("div",{className:`finding-card severity-${e.severity||"info"}`,children:[a.jsxs("button",{className:"finding-header",onClick:n,children:[a.jsxs("div",{className:"finding-left",children:[a.jsx("span",{className:"severity-indicator",style:{backgroundColor:r}}),a.jsx("span",{className:"finding-title",children:e.title})]}),a.jsxs("div",{className:"finding-right",children:[a.jsx("span",{className:"category-tag",children:s}),e.verified&&a.jsxs("span",{className:"verified-badge",title:"AST-verified",children:[a.jsx(ht,{size:12})," Verified"]}),e.confidence!==void 0&&a.jsxs("span",{className:"confidence-badge",title:`Confidence: ${(e.confidence*100).toFixed(0)}%`,children:[(e.confidence*100).toFixed(0),"%"]}),a.jsx("span",{className:"severity-badge",style:{color:r},children:e.severity||"info"}),t?a.jsx(Oi,{size:14}):a.jsx(jn,{size:14})]})]}),t&&a.jsxs("div",{className:"finding-body",children:[a.jsx("p",{className:"finding-details",children:e.details}),e.hint&&a.jsxs("div",{className:"finding-hint",children:[a.jsx(In,{size:14}),a.jsx("span",{children:e.hint})]}),e.files&&e.files.length>0&&a.jsx("div",{className:"finding-files",children:e.files.map((i,o)=>a.jsxs("span",{className:"file-tag",children:[a.jsx(ct,{size:12}),i,e.line&&`:${e.line}`,e.endLine&&`-${e.endLine}`]},o))}),a.jsx("div",{className:"finding-meta",children:e.source&&a.jsxs("span",{className:"meta-tag",children:["Source: ",e.source]})})]})]})},ca=({label:e,score:t})=>{const n=2*Math.PI*36,r=n-t/100*n,s=t>=80?"var(--status-success)":t>=60?"var(--status-warning)":"var(--status-error)";return a.jsxs("div",{className:"score-ring",children:[a.jsxs("svg",{width:"88",height:"88",viewBox:"0 0 88 88",children:[a.jsx("circle",{cx:"44",cy:"44",r:"36",fill:"none",stroke:"var(--border-dim)",strokeWidth:"6"}),a.jsx("circle",{cx:"44",cy:"44",r:"36",fill:"none",stroke:s,strokeWidth:"6",strokeDasharray:n,strokeDashoffset:r,strokeLinecap:"round",transform:"rotate(-90 44 44)",style:{transition:"stroke-dashoffset 0.8s ease"}}),a.jsx("text",{x:"44",y:"42",textAnchor:"middle",fill:"var(--text-main)",fontSize:"18",fontWeight:"700",children:t}),a.jsx("text",{x:"44",y:"56",textAnchor:"middle",fill:"var(--text-dim)",fontSize:"9",children:"/100"})]}),a.jsx("span",{className:"score-label",children:e})]})};function N2(){var Ee,O,b,W;const[e,t]=k.useState(()=>localStorage.getItem("rigour-theme")||"dark"),[n,r]=k.useState("memory"),[s,i]=k.useState([]),[o,l]=k.useState(null),[u,c]=k.useState(null),[d,h]=k.useState(!1),[f,y]=k.useState([]),[w,v]=k.useState(null);ze.useEffect(()=>{const P=new EventSource("/api/events");return P.onmessage=A=>{try{const R=JSON.parse(A.data);i(L=>[R,...L].slice(0,100))}catch(R){console.error("Failed to parse event",R)}},fetch("/api/tree").then(A=>A.json()).then(y).catch(A=>console.error("Failed to fetch tree",A)),fetch("/api/info").then(A=>A.json()).then(v).catch(A=>console.error("Failed to fetch info",A)),()=>P.close()},[]),k.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("rigour-theme",e)},[e]);const N=()=>t(P=>P==="dark"?"light":"dark"),[m,p]=k.useState(""),[g,S]=k.useState({}),[x,j]=k.useState({}),[C,T]=k.useState(null),[D,M]=k.useState(null);k.useEffect(()=>{(async()=>{try{const[A,R,L,z,ae]=await Promise.all([fetch("/api/config").then(X=>X.ok?X.text():""),fetch("/api/memory").then(X=>X.json()),fetch("/api/index-stats").then(X=>X.json()),fetch("/api/agents").then(X=>X.json()),fetch("/api/checkpoints").then(X=>X.json())]);p(A),S(R),j(L),T(z),M(ae)}catch(A){console.error("Failed to fetch meta data",A)}})()},[]);const $=async P=>{try{const A=P.replace(/\s*\(\d+\s*lines\)$/,""),L=await(await fetch(`/api/file?path=${encodeURIComponent(A)}`)).text();l({filename:A,original:L,modified:L})}catch(A){console.error("Failed to fetch file content",A)}},I=async P=>{if(u)try{await fetch("/api/arbitrate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:u.requestId||u.id,decision:P,timestamp:new Date().toISOString()})}),i(A=>A.map(R=>(R.requestId||R.id)===(u.requestId||u.id)?{...R,status:P==="approve"?"success":"error",arbitrated:!0,decision:P}:R)),h(!1),c(null)}catch(A){console.error("Arbitration failed",A)}},de=[{id:"audit",label:"Audit Log",icon:Ii},{id:"gates",label:"Quality Gates",icon:Ko},{id:"deep",label:"Deep Analysis",icon:as},{id:"patterns",label:"Pattern Index",icon:Qp},{id:"memory",label:"Memory Bank",icon:g0},{id:"agents",label:"Agent Teams",icon:il},{id:"checkpoints",label:"Checkpoints",icon:sl}];return a.jsxs("div",{className:"studio",children:[a.jsxs("aside",{className:"sidebar",children:[a.jsxs("div",{className:"brand",children:[a.jsx("div",{className:"logo-icon",children:a.jsx(Ko,{size:18})}),a.jsx("span",{children:"Rigour Studio"}),a.jsxs("div",{className:"version-pill",children:["v",(w==null?void 0:w.version)||"2.13"]})]}),a.jsx("nav",{children:de.map(P=>a.jsxs("button",{className:`nav-item ${n===P.id?"active":""}`,onClick:()=>r(P.id),children:[a.jsx(P.icon,{size:18}),a.jsx("span",{children:P.label}),n===P.id&&a.jsx(At.div,{layoutId:"nav-glow",className:"nav-glow"})]},P.id))}),a.jsxs("div",{className:"sidebar-footer",children:[a.jsxs("div",{className:"trust-indicator",children:[a.jsx(qp,{size:14}),a.jsx("span",{children:"Local Governance"})]}),a.jsx("button",{className:"footer-item",children:a.jsx(Yp,{size:18})}),a.jsx("button",{className:"footer-item",children:a.jsx(S0,{size:18})})]})]}),a.jsxs("main",{className:"main-content",children:[a.jsxs("header",{children:[a.jsx("div",{className:"header-left",children:w&&a.jsxs("div",{className:"project-identity",children:[a.jsx(co,{size:14,className:"folder-icon"}),a.jsx("span",{className:"project-name",children:w.name}),a.jsx("span",{className:"project-path",children:w.path})]})}),a.jsxs("div",{className:"header-right",children:[a.jsxs("div",{className:"connection-status",children:[a.jsxs("div",{className:"status-indicator",children:[a.jsx("div",{className:"pulse-emitter"}),a.jsx("span",{children:"LIVE"})]}),a.jsx("div",{className:"v-divider"}),a.jsxs("span",{children:["v",(w==null?void 0:w.version)||"0.0.0"]})]}),a.jsx("button",{className:"theme-toggle",onClick:N,children:e==="dark"?a.jsx(k0,{size:18}):a.jsx(j0,{size:18})})]})]}),a.jsxs("div",{className:"view-container",children:[a.jsxs(D0,{mode:"wait",children:[n==="audit"&&a.jsx(At.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(x2,{logs:s,onClearLogs:()=>i([]),onSelectLog:P=>{var A,R,L;if(c(P),P!=null&&P._rigour_report||(P==null?void 0:P.type)==="interception_requested"){if(P!=null&&P._rigour_report){const z=(L=(R=(A=P._rigour_report.failures)==null?void 0:A[0])==null?void 0:R.files)==null?void 0:L[0];z?$(z):l(null)}else l(null);h(!0)}else l(null),h(!1)},selectedLog:u})},"audit"),n==="gates"&&a.jsx(At.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(y2,{})},"gates"),n==="deep"&&a.jsx(At.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(C2,{})},"deep"),n==="patterns"&&a.jsx(At.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(v2,{})},"patterns"),n==="memory"&&a.jsx(At.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(g2,{})},"memory"),n==="agents"&&a.jsx(At.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(S2,{session:C})},"agents"),n==="checkpoints"&&a.jsx(At.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(j2,{checkpoints:(D==null?void 0:D.checkpoints)||[]})},"checkpoints")]}),u&&d&&a.jsx("div",{className:"governance-overlay",children:a.jsxs("div",{className:"governance-window",children:[a.jsxs("div",{className:"governance-header",children:[a.jsxs("div",{className:"title",children:[a.jsx(Ko,{size:20}),a.jsxs("span",{children:["Governance Audit: ",u.tool]})]}),a.jsxs("div",{className:"hitl-actions",children:[u.type==="interception_requested"&&a.jsxs(a.Fragment,{children:[a.jsxs("button",{className:"btn-approve",onClick:()=>I("approve"),children:[a.jsx(ht,{size:16})," Approve"]}),a.jsxs("button",{className:"btn-reject",onClick:()=>I("reject"),children:[a.jsx(ls,{size:16})," Reject"]}),a.jsx("div",{className:"divider"})]}),a.jsx("button",{onClick:()=>h(!1),className:"close-btn",children:a.jsx(yu,{size:20})})]})]}),a.jsx("div",{className:"governance-body",children:u.type==="interception_requested"?a.jsxs("div",{className:"interception-view",children:[a.jsxs("div",{className:"interception-card",children:[a.jsx(Ii,{size:48}),a.jsx("h4",{children:"Command Intercepted"}),a.jsx("div",{className:"command-box",children:a.jsx("code",{children:u.command})}),a.jsx("p",{children:"An AI agent is requesting to execute this command. Review the project state below before arbitrating."}),a.jsxs("div",{className:"warning-note",children:[a.jsx(qt,{size:16}),a.jsx("span",{children:"Critical actions should be manually verified."})]})]}),a.jsx(Df,{files:f.map(P=>P.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:P=>$(P),activeFile:o==null?void 0:o.filename,violatedFiles:[]})]}):a.jsxs(a.Fragment,{children:[a.jsx(Df,{files:(((O=(Ee=u._rigour_report)==null?void 0:Ee.failures)==null?void 0:O.flatMap(P=>P.files||[]))||f).map(P=>P.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:P=>$(P),activeFile:o==null?void 0:o.filename,violatedFiles:(((W=(b=u._rigour_report)==null?void 0:b.failures)==null?void 0:W.flatMap(P=>P.files||[]))||[]).map(P=>P.replace(/\s*\(\d+\s*lines\)$/,""))}),a.jsx("div",{className:"diff-view-area",children:o?a.jsx(p2,{filename:o.filename,originalCode:o.original,modifiedCode:o.modified,onClose:()=>l(null),theme:e}):a.jsxs("div",{className:"diff-placeholder",children:[a.jsx(zi,{size:48}),a.jsx("p",{children:"Select a file to audit the proposed changes"})]})})]})})]})})]})]})]})}da.createRoot(document.getElementById("root")).render(a.jsx(ze.StrictMode,{children:a.jsx(N2,{})}));
|