@rigour-labs/cli 2.18.0 → 2.18.2

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.
@@ -0,0 +1,289 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function My(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ef={exports:{}},Ws={},Mf={exports:{}},F={};/**
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 di=Symbol.for("react.element"),Ay=Symbol.for("react.portal"),Dy=Symbol.for("react.fragment"),Ly=Symbol.for("react.strict_mode"),Ry=Symbol.for("react.profiler"),Vy=Symbol.for("react.provider"),_y=Symbol.for("react.context"),zy=Symbol.for("react.forward_ref"),Oy=Symbol.for("react.suspense"),Iy=Symbol.for("react.memo"),Fy=Symbol.for("react.lazy"),Gu=Symbol.iterator;function By(e){return e===null||typeof e!="object"?null:(e=Gu&&e[Gu]||e["@@iterator"],typeof e=="function"?e:null)}var Af={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Df=Object.assign,Lf={};function sr(e,t,n){this.props=e,this.context=t,this.refs=Lf,this.updater=n||Af}sr.prototype.isReactComponent={};sr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};sr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rf(){}Rf.prototype=sr.prototype;function gl(e,t,n){this.props=e,this.context=t,this.refs=Lf,this.updater=n||Af}var vl=gl.prototype=new Rf;vl.constructor=gl;Df(vl,sr.prototype);vl.isPureReactComponent=!0;var Qu=Array.isArray,Vf=Object.prototype.hasOwnProperty,xl={current:null},_f={key:!0,ref:!0,__self:!0,__source:!0};function zf(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Vf.call(t,r)&&!_f.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:di,type:e,key:s,ref:o,props:i,_owner:xl.current}}function Uy(e,t){return{$$typeof:di,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function wl(e){return typeof e=="object"&&e!==null&&e.$$typeof===di}function $y(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var qu=/\/+/g;function mo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$y(""+e.key):t.toString(36)}function Ki(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case di:case Ay:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+mo(o,0):r,Qu(i)?(n="",e!=null&&(n=e.replace(qu,"$&/")+"/"),Ki(i,t,n,"",function(c){return c})):i!=null&&(wl(i)&&(i=Uy(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(qu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Qu(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+mo(s,a);o+=Ki(s,t,n,l,i)}else if(l=By(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+mo(s,a++),o+=Ki(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ji(e,t,n){if(e==null)return e;var r=[],i=0;return Ki(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Wy(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},bi={transition:null},Hy={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:bi,ReactCurrentOwner:xl};function Of(){throw Error("act(...) is not supported in production builds of React.")}F.Children={map:ji,forEach:function(e,t,n){ji(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ji(e,function(){t++}),t},toArray:function(e){return ji(e,function(t){return t})||[]},only:function(e){if(!wl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};F.Component=sr;F.Fragment=Dy;F.Profiler=Ry;F.PureComponent=gl;F.StrictMode=Ly;F.Suspense=Oy;F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hy;F.act=Of;F.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Df({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=xl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Vf.call(t,l)&&!_f.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:di,type:e.type,key:i,ref:s,props:r,_owner:o}};F.createContext=function(e){return e={$$typeof:_y,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vy,_context:e},e.Consumer=e};F.createElement=zf;F.createFactory=function(e){var t=zf.bind(null,e);return t.type=e,t};F.createRef=function(){return{current:null}};F.forwardRef=function(e){return{$$typeof:zy,render:e}};F.isValidElement=wl;F.lazy=function(e){return{$$typeof:Fy,_payload:{_status:-1,_result:e},_init:Wy}};F.memo=function(e,t){return{$$typeof:Iy,type:e,compare:t===void 0?null:t}};F.startTransition=function(e){var t=bi.transition;bi.transition={};try{e()}finally{bi.transition=t}};F.unstable_act=Of;F.useCallback=function(e,t){return Pe.current.useCallback(e,t)};F.useContext=function(e){return Pe.current.useContext(e)};F.useDebugValue=function(){};F.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};F.useEffect=function(e,t){return Pe.current.useEffect(e,t)};F.useId=function(){return Pe.current.useId()};F.useImperativeHandle=function(e,t,n){return Pe.current.useImperativeHandle(e,t,n)};F.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};F.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};F.useMemo=function(e,t){return Pe.current.useMemo(e,t)};F.useReducer=function(e,t,n){return Pe.current.useReducer(e,t,n)};F.useRef=function(e){return Pe.current.useRef(e)};F.useState=function(e){return Pe.current.useState(e)};F.useSyncExternalStore=function(e,t,n){return Pe.current.useSyncExternalStore(e,t,n)};F.useTransition=function(){return Pe.current.useTransition()};F.version="18.3.1";Mf.exports=F;var k=Mf.exports;const ze=My(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 Ky=k,by=Symbol.for("react.element"),Gy=Symbol.for("react.fragment"),Qy=Object.prototype.hasOwnProperty,qy=Ky.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yy={key:!0,ref:!0,__self:!0,__source:!0};function If(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Qy.call(t,r)&&!Yy.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:by,type:e,key:s,ref:o,props:i,_owner:qy.current}}Ws.Fragment=Gy;Ws.jsx=If;Ws.jsxs=If;Ef.exports=Ws;var u=Ef.exports,oa={},Ff={exports:{}},$e={},Bf={exports:{}},Uf={};/**
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<i(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,se=z>>>1;L<se;){var q=2*(L+1)-1,ot=P[q],Jt=q+1,Si=P[Jt];if(0>i(ot,R))Jt<z&&0>i(Si,ot)?(P[L]=Si,P[Jt]=R,L=Jt):(P[L]=ot,P[q]=R,L=q);else if(Jt<z&&0>i(Si,R))P[L]=Si,P[Jt]=R,L=Jt;else break e}}return A}function i(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 s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,f=null,h=3,v=!1,x=!1,g=!1,C=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 y(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(l,A);else break;A=n(c)}}function S(P){if(g=!1,y(P),!x)if(n(l)!==null)x=!0,U(w);else{var A=n(c);A!==null&&$(S,A.startTime-P)}}function w(P,A){x=!1,g&&(g=!1,m(N),N=-1),v=!0;var R=h;try{for(y(A),f=n(l);f!==null&&(!(f.expirationTime>A)||P&&!W());){var L=f.callback;if(typeof L=="function"){f.callback=null,h=f.priorityLevel;var z=L(f.expirationTime<=A);A=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(l)&&r(l),y(A)}else r(l);f=n(l)}if(f!==null)var se=!0;else{var q=n(c);q!==null&&$(S,q.startTime-A),se=!1}return se}finally{f=null,h=R,v=!1}}var j=!1,T=null,N=-1,V=5,M=-1;function W(){return!(e.unstable_now()-M<V)}function me(){if(T!==null){var P=e.unstable_now();M=P;var A=!0;try{A=T(!0,P)}finally{A?Ne():(j=!1,T=null)}}else j=!1}var Ne;if(typeof p=="function")Ne=function(){p(me)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,O=Ee.port2;Ee.port1.onmessage=me,Ne=function(){O.postMessage(null)}}else Ne=function(){C(me,0)};function U(P){T=P,j||(j=!0,Ne())}function $(P,A){N=C(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(){x||v||(x=!0,U(w))},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"):V=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var A=3;break;default:A=h}var R=h;h=A;try{return P()}finally{h=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=h;h=P;try{return A()}finally{h=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(l)===null&&P===n(c)&&(g?(m(N),N=-1):g=!0,$(S,R-L))):(P.sortIndex=z,t(l,P),x||v||(x=!0,U(w))),P},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(P){var A=h;return function(){var R=h;h=A;try{return P.apply(this,arguments)}finally{h=R}}}})(Uf);Bf.exports=Uf;var Xy=Bf.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 Zy=k,Be=Xy;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 $f=new Set,Ur={};function wn(e,t){Qn(e,t),Qn(e+"Capture",t)}function Qn(e,t){for(Ur[e]=t,e=0;e<t.length;e++)$f.add(t[e])}var jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aa=Object.prototype.hasOwnProperty,Jy=/^[: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]*$/,Yu={},Xu={};function eg(e){return aa.call(Xu,e)?!0:aa.call(Yu,e)?!1:Jy.test(e)?Xu[e]=!0:(Yu[e]=!0,!1)}function tg(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 ng(e,t,n,r){if(t===null||typeof t>"u"||tg(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,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[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];pe[t]=new Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[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){pe[e]=new Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sl=/[\-:]([a-z])/g;function jl(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(Sl,jl);pe[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(Sl,jl);pe[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(Sl,jl);pe[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Te(e,1,!1,e.toLowerCase(),null,!0,!0)});function kl(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ng(t,n,i,r)&&(n=null),r||i===null?eg(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Nt=Zy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ki=Symbol.for("react.element"),Cn=Symbol.for("react.portal"),Pn=Symbol.for("react.fragment"),Cl=Symbol.for("react.strict_mode"),la=Symbol.for("react.profiler"),Wf=Symbol.for("react.provider"),Hf=Symbol.for("react.context"),Pl=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),ca=Symbol.for("react.suspense_list"),Tl=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Kf=Symbol.for("react.offscreen"),Zu=Symbol.iterator;function cr(e){return e===null||typeof e!="object"?null:(e=Zu&&e[Zu]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,yo;function xr(e){if(yo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yo=t&&t[1]||""}return`
34
+ `+yo+e}var go=!1;function vo(e,t){if(!e||go)return"";go=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(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 i=c.stack.split(`
35
+ `),s=r.stack.split(`
36
+ `),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{go=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xr(e):""}function rg(e){switch(e.tag){case 5:return xr(e.type);case 16:return xr("Lazy");case 13:return xr("Suspense");case 19:return xr("SuspenseList");case 0:case 2:case 15:return e=vo(e.type,!1),e;case 11:return e=vo(e.type.render,!1),e;case 1:return e=vo(e.type,!0),e;default:return""}}function da(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pn:return"Fragment";case Cn:return"Portal";case la:return"Profiler";case Cl:return"StrictMode";case ua:return"Suspense";case ca:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hf:return(e.displayName||"Context")+".Consumer";case Wf:return(e._context.displayName||"Context")+".Provider";case Pl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tl:return t=e.displayName||null,t!==null?t:da(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return da(e(t))}catch{}}return null}function ig(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 da(t);case 8:return t===Cl?"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 Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sg(e){var t=bf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ci(e){e._valueTracker||(e._valueTracker=sg(e))}function Gf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function as(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 fa(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ju(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(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 Qf(e,t){t=t.checked,t!=null&&kl(e,"checked",t,!1)}function ha(e,t){Qf(e,t);var n=Kt(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")?pa(e,t.type,n):t.hasOwnProperty("defaultValue")&&pa(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ec(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 pa(e,t,n){(t!=="number"||as(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wr=Array.isArray;function $n(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Kt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ma(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tc(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(wr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Kt(n)}}function qf(e,t){var n=Kt(t.value),r=Kt(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 nc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Yf(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 ya(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Yf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Pi,Xf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Pi=Pi||document.createElement("div"),Pi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nr={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},og=["Webkit","ms","Moz","O"];Object.keys(Nr).forEach(function(e){og.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nr[t]=Nr[e]})});function Zf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nr.hasOwnProperty(e)&&Nr[e]?(""+t).trim():t+"px"}function Jf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Zf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ag=ee({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 ga(e,t){if(t){if(ag[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 va(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 xa=null;function Nl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wa=null,Wn=null,Hn=null;function rc(e){if(e=pi(e)){if(typeof wa!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Qs(t),wa(e.stateNode,e.type,t))}}function eh(e){Wn?Hn?Hn.push(e):Hn=[e]:Wn=e}function th(){if(Wn){var e=Wn,t=Hn;if(Hn=Wn=null,rc(e),t)for(e=0;e<t.length;e++)rc(t[e])}}function nh(e,t){return e(t)}function rh(){}var xo=!1;function ih(e,t,n){if(xo)return e(t,n);xo=!0;try{return nh(e,t,n)}finally{xo=!1,(Wn!==null||Hn!==null)&&(rh(),th())}}function Wr(e,t){var n=e.stateNode;if(n===null)return null;var r=Qs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Sa=!1;if(jt)try{var dr={};Object.defineProperty(dr,"passive",{get:function(){Sa=!0}}),window.addEventListener("test",dr,dr),window.removeEventListener("test",dr,dr)}catch{Sa=!1}function lg(e,t,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Er=!1,ls=null,us=!1,ja=null,ug={onError:function(e){Er=!0,ls=e}};function cg(e,t,n,r,i,s,o,a,l){Er=!1,ls=null,lg.apply(ug,arguments)}function dg(e,t,n,r,i,s,o,a,l){if(cg.apply(this,arguments),Er){if(Er){var c=ls;Er=!1,ls=null}else throw Error(E(198));us||(us=!0,ja=c)}}function Sn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function sh(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 ic(e){if(Sn(e)!==e)throw Error(E(188))}function fg(e){var t=e.alternate;if(!t){if(t=Sn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return ic(i),e;if(s===r)return ic(i),t;s=s.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(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 oh(e){return e=fg(e),e!==null?ah(e):null}function ah(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ah(e);if(t!==null)return t;e=e.sibling}return null}var lh=Be.unstable_scheduleCallback,sc=Be.unstable_cancelCallback,hg=Be.unstable_shouldYield,pg=Be.unstable_requestPaint,ie=Be.unstable_now,mg=Be.unstable_getCurrentPriorityLevel,El=Be.unstable_ImmediatePriority,uh=Be.unstable_UserBlockingPriority,cs=Be.unstable_NormalPriority,yg=Be.unstable_LowPriority,ch=Be.unstable_IdlePriority,Hs=null,ct=null;function gg(e){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Hs,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:wg,vg=Math.log,xg=Math.LN2;function wg(e){return e>>>=0,e===0?32:31-(vg(e)/xg|0)|0}var Ti=64,Ni=4194304;function Sr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ds(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Sr(a):(s&=o,s!==0&&(r=Sr(s)))}else o=n&~i,o!==0?r=Sr(o):s!==0&&(r=Sr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),i=1<<n,r|=e[n],t&=~i;return r}function Sg(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 jg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-rt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=Sg(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function ka(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function dh(){var e=Ti;return Ti<<=1,!(Ti&4194240)&&(Ti=64),e}function wo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fi(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 kg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-rt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Ml(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var H=0;function fh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hh,Al,ph,mh,yh,Ca=!1,Ei=[],zt=null,Ot=null,It=null,Hr=new Map,Kr=new Map,Lt=[],Cg="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 oc(e,t){switch(e){case"focusin":case"focusout":zt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Hr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kr.delete(t.pointerId)}}function fr(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=pi(t),t!==null&&Al(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Pg(e,t,n,r,i){switch(t){case"focusin":return zt=fr(zt,e,t,n,r,i),!0;case"dragenter":return Ot=fr(Ot,e,t,n,r,i),!0;case"mouseover":return It=fr(It,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Hr.set(s,fr(Hr.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Kr.set(s,fr(Kr.get(s)||null,e,t,n,r,i)),!0}return!1}function gh(e){var t=an(e.target);if(t!==null){var n=Sn(t);if(n!==null){if(t=n.tag,t===13){if(t=sh(n),t!==null){e.blockedOn=t,yh(e.priority,function(){ph(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 Gi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xa=r,n.target.dispatchEvent(r),xa=null}else return t=pi(n),t!==null&&Al(t),e.blockedOn=n,!1;t.shift()}return!0}function ac(e,t,n){Gi(e)&&n.delete(t)}function Tg(){Ca=!1,zt!==null&&Gi(zt)&&(zt=null),Ot!==null&&Gi(Ot)&&(Ot=null),It!==null&&Gi(It)&&(It=null),Hr.forEach(ac),Kr.forEach(ac)}function hr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ca||(Ca=!0,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,Tg)))}function br(e){function t(i){return hr(i,e)}if(0<Ei.length){hr(Ei[0],e);for(var n=1;n<Ei.length;n++){var r=Ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zt!==null&&hr(zt,e),Ot!==null&&hr(Ot,e),It!==null&&hr(It,e),Hr.forEach(t),Kr.forEach(t),n=0;n<Lt.length;n++)r=Lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&(n=Lt[0],n.blockedOn===null);)gh(n),n.blockedOn===null&&Lt.shift()}var Kn=Nt.ReactCurrentBatchConfig,fs=!0;function Ng(e,t,n,r){var i=H,s=Kn.transition;Kn.transition=null;try{H=1,Dl(e,t,n,r)}finally{H=i,Kn.transition=s}}function Eg(e,t,n,r){var i=H,s=Kn.transition;Kn.transition=null;try{H=4,Dl(e,t,n,r)}finally{H=i,Kn.transition=s}}function Dl(e,t,n,r){if(fs){var i=Pa(e,t,n,r);if(i===null)Ao(e,t,r,hs,n),oc(e,r);else if(Pg(i,e,t,n,r))r.stopPropagation();else if(oc(e,r),t&4&&-1<Cg.indexOf(e)){for(;i!==null;){var s=pi(i);if(s!==null&&hh(s),s=Pa(e,t,n,r),s===null&&Ao(e,t,r,hs,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Ao(e,t,r,null,n)}}var hs=null;function Pa(e,t,n,r){if(hs=null,e=Nl(r),e=an(e),e!==null)if(t=Sn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=sh(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 hs=e,null}function vh(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(mg()){case El:return 1;case uh:return 4;case cs:case yg:return 16;case ch:return 536870912;default:return 16}default:return 16}}var Vt=null,Ll=null,Qi=null;function xh(){if(Qi)return Qi;var e,t=Ll,n=t.length,r,i="value"in Vt?Vt.value:Vt.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Qi=i.slice(e,1<r?1-r:void 0)}function qi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mi(){return!0}function lc(){return!1}function We(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Mi:lc,this.isPropagationStopped=lc,this}return ee(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=Mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),t}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rl=We(or),hi=ee({},or,{view:0,detail:0}),Mg=We(hi),So,jo,pr,Ks=ee({},hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pr&&(pr&&e.type==="mousemove"?(So=e.screenX-pr.screenX,jo=e.screenY-pr.screenY):jo=So=0,pr=e),So)},movementY:function(e){return"movementY"in e?e.movementY:jo}}),uc=We(Ks),Ag=ee({},Ks,{dataTransfer:0}),Dg=We(Ag),Lg=ee({},hi,{relatedTarget:0}),ko=We(Lg),Rg=ee({},or,{animationName:0,elapsedTime:0,pseudoElement:0}),Vg=We(Rg),_g=ee({},or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zg=We(_g),Og=ee({},or,{data:0}),cc=We(Og),Ig={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fg={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"},Bg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ug(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bg[e])?!!t[e]:!1}function Vl(){return Ug}var $g=ee({},hi,{key:function(e){if(e.key){var t=Ig[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vl,charCode:function(e){return e.type==="keypress"?qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wg=We($g),Hg=ee({},Ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dc=We(Hg),Kg=ee({},hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vl}),bg=We(Kg),Gg=ee({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qg=We(Gg),qg=ee({},Ks,{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}),Yg=We(qg),Xg=[9,13,27,32],_l=jt&&"CompositionEvent"in window,Mr=null;jt&&"documentMode"in document&&(Mr=document.documentMode);var Zg=jt&&"TextEvent"in window&&!Mr,wh=jt&&(!_l||Mr&&8<Mr&&11>=Mr),fc=" ",hc=!1;function Sh(e,t){switch(e){case"keyup":return Xg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function Jg(e,t){switch(e){case"compositionend":return jh(t);case"keypress":return t.which!==32?null:(hc=!0,fc);case"textInput":return e=t.data,e===fc&&hc?null:e;default:return null}}function ev(e,t){if(Tn)return e==="compositionend"||!_l&&Sh(e,t)?(e=xh(),Qi=Ll=Vt=null,Tn=!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 wh&&t.locale!=="ko"?null:t.data;default:return null}}var tv={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 pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tv[e.type]:t==="textarea"}function kh(e,t,n,r){eh(r),t=ps(t,"onChange"),0<t.length&&(n=new Rl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ar=null,Gr=null;function nv(e){Vh(e,0)}function bs(e){var t=Mn(e);if(Gf(t))return e}function rv(e,t){if(e==="change")return t}var Ch=!1;if(jt){var Co;if(jt){var Po="oninput"in document;if(!Po){var mc=document.createElement("div");mc.setAttribute("oninput","return;"),Po=typeof mc.oninput=="function"}Co=Po}else Co=!1;Ch=Co&&(!document.documentMode||9<document.documentMode)}function yc(){Ar&&(Ar.detachEvent("onpropertychange",Ph),Gr=Ar=null)}function Ph(e){if(e.propertyName==="value"&&bs(Gr)){var t=[];kh(t,Gr,e,Nl(e)),ih(nv,t)}}function iv(e,t,n){e==="focusin"?(yc(),Ar=t,Gr=n,Ar.attachEvent("onpropertychange",Ph)):e==="focusout"&&yc()}function sv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bs(Gr)}function ov(e,t){if(e==="click")return bs(t)}function av(e,t){if(e==="input"||e==="change")return bs(t)}function lv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var st=typeof Object.is=="function"?Object.is:lv;function Qr(e,t){if(st(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!aa.call(t,i)||!st(e[i],t[i]))return!1}return!0}function gc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vc(e,t){var n=gc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gc(n)}}function Th(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Th(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nh(){for(var e=window,t=as();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=as(e.document)}return t}function zl(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 uv(e){var t=Nh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Th(n.ownerDocument.documentElement,n)){if(r!==null&&zl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=vc(n,s);var o=vc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var cv=jt&&"documentMode"in document&&11>=document.documentMode,Nn=null,Ta=null,Dr=null,Na=!1;function xc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Na||Nn==null||Nn!==as(r)||(r=Nn,"selectionStart"in r&&zl(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}),Dr&&Qr(Dr,r)||(Dr=r,r=ps(Ta,"onSelect"),0<r.length&&(t=new Rl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Nn)))}function Ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var En={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionend:Ai("Transition","TransitionEnd")},To={},Eh={};jt&&(Eh=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);function Gs(e){if(To[e])return To[e];if(!En[e])return e;var t=En[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Eh)return To[e]=t[n];return e}var Mh=Gs("animationend"),Ah=Gs("animationiteration"),Dh=Gs("animationstart"),Lh=Gs("transitionend"),Rh=new Map,wc="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 qt(e,t){Rh.set(e,t),wn(t,[e])}for(var No=0;No<wc.length;No++){var Eo=wc[No],dv=Eo.toLowerCase(),fv=Eo[0].toUpperCase()+Eo.slice(1);qt(dv,"on"+fv)}qt(Mh,"onAnimationEnd");qt(Ah,"onAnimationIteration");qt(Dh,"onAnimationStart");qt("dblclick","onDoubleClick");qt("focusin","onFocus");qt("focusout","onBlur");qt(Lh,"onTransitionEnd");Qn("onMouseEnter",["mouseout","mouseover"]);Qn("onMouseLeave",["mouseout","mouseover"]);Qn("onPointerEnter",["pointerout","pointerover"]);Qn("onPointerLeave",["pointerout","pointerover"]);wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wn("onBeforeInput",["compositionend","keypress","textInput","paste"]);wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),hv=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Sc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,dg(r,t,void 0,e),e.currentTarget=null}function Vh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Sc(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Sc(i,a,c),s=l}}}if(us)throw e=ja,us=!1,ja=null,e}function b(e,t){var n=t[La];n===void 0&&(n=t[La]=new Set);var r=e+"__bubble";n.has(r)||(_h(t,e,2,!1),n.add(r))}function Mo(e,t,n){var r=0;t&&(r|=4),_h(n,e,r,t)}var Di="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Di]){e[Di]=!0,$f.forEach(function(n){n!=="selectionchange"&&(hv.has(n)||Mo(n,!1,e),Mo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Di]||(t[Di]=!0,Mo("selectionchange",!1,t))}}function _h(e,t,n,r){switch(vh(t)){case 1:var i=Ng;break;case 4:i=Eg;break;default:i=Dl}n=i.bind(null,t,n,e),i=void 0,!Sa||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ao(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=an(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}ih(function(){var c=s,d=Nl(n),f=[];e:{var h=Rh.get(e);if(h!==void 0){var v=Rl,x=e;switch(e){case"keypress":if(qi(n)===0)break e;case"keydown":case"keyup":v=Wg;break;case"focusin":x="focus",v=ko;break;case"focusout":x="blur",v=ko;break;case"beforeblur":case"afterblur":v=ko;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=uc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Dg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=bg;break;case Mh:case Ah:case Dh:v=Vg;break;case Lh:v=Qg;break;case"scroll":v=Mg;break;case"wheel":v=Yg;break;case"copy":case"cut":case"paste":v=zg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=dc}var g=(t&4)!==0,C=!g&&e==="scroll",m=g?h!==null?h+"Capture":null:h;g=[];for(var p=c,y;p!==null;){y=p;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,m!==null&&(S=Wr(p,m),S!=null&&g.push(Yr(p,S,y)))),C)break;p=p.return}0<g.length&&(h=new v(h,x,null,n,d),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",h&&n!==xa&&(x=n.relatedTarget||n.fromElement)&&(an(x)||x[kt]))break e;if((v||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=c,x=x?an(x):null,x!==null&&(C=Sn(x),x!==C||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=c),v!==x)){if(g=uc,S="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=dc,S="onPointerLeave",m="onPointerEnter",p="pointer"),C=v==null?h:Mn(v),y=x==null?h:Mn(x),h=new g(S,p+"leave",v,n,d),h.target=C,h.relatedTarget=y,S=null,an(d)===c&&(g=new g(m,p+"enter",x,n,d),g.target=y,g.relatedTarget=C,S=g),C=S,v&&x)t:{for(g=v,m=x,p=0,y=g;y;y=kn(y))p++;for(y=0,S=m;S;S=kn(S))y++;for(;0<p-y;)g=kn(g),p--;for(;0<y-p;)m=kn(m),y--;for(;p--;){if(g===m||m!==null&&g===m.alternate)break t;g=kn(g),m=kn(m)}g=null}else g=null;v!==null&&jc(f,h,v,g,!1),x!==null&&C!==null&&jc(f,C,x,g,!0)}}e:{if(h=c?Mn(c):window,v=h.nodeName&&h.nodeName.toLowerCase(),v==="select"||v==="input"&&h.type==="file")var w=rv;else if(pc(h))if(Ch)w=av;else{w=sv;var j=iv}else(v=h.nodeName)&&v.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=ov);if(w&&(w=w(e,c))){kh(f,w,n,d);break e}j&&j(e,h,c),e==="focusout"&&(j=h._wrapperState)&&j.controlled&&h.type==="number"&&pa(h,"number",h.value)}switch(j=c?Mn(c):window,e){case"focusin":(pc(j)||j.contentEditable==="true")&&(Nn=j,Ta=c,Dr=null);break;case"focusout":Dr=Ta=Nn=null;break;case"mousedown":Na=!0;break;case"contextmenu":case"mouseup":case"dragend":Na=!1,xc(f,n,d);break;case"selectionchange":if(cv)break;case"keydown":case"keyup":xc(f,n,d)}var T;if(_l)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Tn?Sh(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(wh&&n.locale!=="ko"&&(Tn||N!=="onCompositionStart"?N==="onCompositionEnd"&&Tn&&(T=xh()):(Vt=d,Ll="value"in Vt?Vt.value:Vt.textContent,Tn=!0)),j=ps(c,N),0<j.length&&(N=new cc(N,e,null,n,d),f.push({event:N,listeners:j}),T?N.data=T:(T=jh(n),T!==null&&(N.data=T)))),(T=Zg?Jg(e,n):ev(e,n))&&(c=ps(c,"onBeforeInput"),0<c.length&&(d=new cc("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=T))}Vh(f,t)})}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ps(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Wr(e,n),s!=null&&r.unshift(Yr(e,s,i)),s=Wr(e,t),s!=null&&r.push(Yr(e,s,i))),e=e.return}return r}function kn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function jc(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Wr(n,s),l!=null&&o.unshift(Yr(n,l,a))):i||(l=Wr(n,s),l!=null&&o.push(Yr(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var pv=/\r\n?/g,mv=/\u0000|\uFFFD/g;function kc(e){return(typeof e=="string"?e:""+e).replace(pv,`
38
+ `).replace(mv,"")}function Li(e,t,n){if(t=kc(t),kc(e)!==t&&n)throw Error(E(425))}function ms(){}var Ea=null,Ma=null;function Aa(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 Da=typeof setTimeout=="function"?setTimeout:void 0,yv=typeof clearTimeout=="function"?clearTimeout:void 0,Cc=typeof Promise=="function"?Promise:void 0,gv=typeof queueMicrotask=="function"?queueMicrotask:typeof Cc<"u"?function(e){return Cc.resolve(null).then(e).catch(vv)}:Da;function vv(e){setTimeout(function(){throw e})}function Do(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),br(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);br(t)}function Ft(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Pc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ar=Math.random().toString(36).slice(2),ut="__reactFiber$"+ar,Xr="__reactProps$"+ar,kt="__reactContainer$"+ar,La="__reactEvents$"+ar,xv="__reactListeners$"+ar,wv="__reactHandles$"+ar;function an(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kt]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pc(e);e!==null;){if(n=e[ut])return n;e=Pc(e)}return t}e=n,n=e.parentNode}return null}function pi(e){return e=e[ut]||e[kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Qs(e){return e[Xr]||null}var Ra=[],An=-1;function Yt(e){return{current:e}}function G(e){0>An||(e.current=Ra[An],Ra[An]=null,An--)}function K(e,t){An++,Ra[An]=e.current,e.current=t}var bt={},Se=Yt(bt),De=Yt(!1),pn=bt;function qn(e,t){var n=e.type.contextTypes;if(!n)return bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Le(e){return e=e.childContextTypes,e!=null}function ys(){G(De),G(Se)}function Tc(e,t,n){if(Se.current!==bt)throw Error(E(168));K(Se,t),K(De,n)}function zh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,ig(e)||"Unknown",i));return ee({},n,r)}function gs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bt,pn=Se.current,K(Se,e),K(De,De.current),!0}function Nc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=zh(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,G(De),G(Se),K(Se,e)):G(De),K(De,n)}var mt=null,qs=!1,Lo=!1;function Oh(e){mt===null?mt=[e]:mt.push(e)}function Sv(e){qs=!0,Oh(e)}function Xt(){if(!Lo&&mt!==null){Lo=!0;var e=0,t=H;try{var n=mt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,qs=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),lh(El,Xt),i}finally{H=t,Lo=!1}}return null}var Dn=[],Ln=0,vs=null,xs=0,be=[],Ge=0,mn=null,yt=1,gt="";function nn(e,t){Dn[Ln++]=xs,Dn[Ln++]=vs,vs=e,xs=t}function Ih(e,t,n){be[Ge++]=yt,be[Ge++]=gt,be[Ge++]=mn,mn=e;var r=yt;e=gt;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var s=32-rt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yt=1<<32-rt(t)+i|n<<i|r,gt=s+e}else yt=1<<s|n<<i|r,gt=e}function Ol(e){e.return!==null&&(nn(e,1),Ih(e,1,0))}function Il(e){for(;e===vs;)vs=Dn[--Ln],Dn[Ln]=null,xs=Dn[--Ln],Dn[Ln]=null;for(;e===mn;)mn=be[--Ge],be[Ge]=null,gt=be[--Ge],be[Ge]=null,yt=be[--Ge],be[Ge]=null}var Ie=null,Oe=null,Y=!1,nt=null;function Fh(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 Ec(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ie=e,Oe=Ft(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ie=e,Oe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=mn!==null?{id:yt,overflow:gt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ie=e,Oe=null,!0):!1;default:return!1}}function Va(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _a(e){if(Y){var t=Oe;if(t){var n=t;if(!Ec(e,t)){if(Va(e))throw Error(E(418));t=Ft(n.nextSibling);var r=Ie;t&&Ec(e,t)?Fh(r,n):(e.flags=e.flags&-4097|2,Y=!1,Ie=e)}}else{if(Va(e))throw Error(E(418));e.flags=e.flags&-4097|2,Y=!1,Ie=e}}}function Mc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ie=e}function Ri(e){if(e!==Ie)return!1;if(!Y)return Mc(e),Y=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Aa(e.type,e.memoizedProps)),t&&(t=Oe)){if(Va(e))throw Bh(),Error(E(418));for(;t;)Fh(e,t),t=Ft(t.nextSibling)}if(Mc(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=Ft(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Oe=null}}else Oe=Ie?Ft(e.stateNode.nextSibling):null;return!0}function Bh(){for(var e=Oe;e;)e=Ft(e.nextSibling)}function Yn(){Oe=Ie=null,Y=!1}function Fl(e){nt===null?nt=[e]:nt.push(e)}var jv=Nt.ReactCurrentBatchConfig;function mr(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 i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Vi(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ac(e){var t=e._init;return t(e._payload)}function Uh(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.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 i(m,p){return m=Wt(m,p),m.index=0,m.sibling=null,m}function s(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,y,S){return p===null||p.tag!==6?(p=Fo(y,m.mode,S),p.return=m,p):(p=i(p,y),p.return=m,p)}function l(m,p,y,S){var w=y.type;return w===Pn?d(m,p,y.props.children,S,y.key):p!==null&&(p.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Ac(w)===p.type)?(S=i(p,y.props),S.ref=mr(m,p,y),S.return=m,S):(S=ns(y.type,y.key,y.props,null,m.mode,S),S.ref=mr(m,p,y),S.return=m,S)}function c(m,p,y,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Bo(y,m.mode,S),p.return=m,p):(p=i(p,y.children||[]),p.return=m,p)}function d(m,p,y,S,w){return p===null||p.tag!==7?(p=fn(y,m.mode,S,w),p.return=m,p):(p=i(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Fo(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ki:return y=ns(p.type,p.key,p.props,null,m.mode,y),y.ref=mr(m,null,p),y.return=m,y;case Cn:return p=Bo(p,m.mode,y),p.return=m,p;case At:var S=p._init;return f(m,S(p._payload),y)}if(wr(p)||cr(p))return p=fn(p,m.mode,y,null),p.return=m,p;Vi(m,p)}return null}function h(m,p,y,S){var w=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return w!==null?null:a(m,p,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:return y.key===w?l(m,p,y,S):null;case Cn:return y.key===w?c(m,p,y,S):null;case At:return w=y._init,h(m,p,w(y._payload),S)}if(wr(y)||cr(y))return w!==null?null:d(m,p,y,S,null);Vi(m,y)}return null}function v(m,p,y,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(y)||null,a(p,m,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ki:return m=m.get(S.key===null?y:S.key)||null,l(p,m,S,w);case Cn:return m=m.get(S.key===null?y:S.key)||null,c(p,m,S,w);case At:var j=S._init;return v(m,p,y,j(S._payload),w)}if(wr(S)||cr(S))return m=m.get(y)||null,d(p,m,S,w,null);Vi(p,S)}return null}function x(m,p,y,S){for(var w=null,j=null,T=p,N=p=0,V=null;T!==null&&N<y.length;N++){T.index>N?(V=T,T=null):V=T.sibling;var M=h(m,T,y[N],S);if(M===null){T===null&&(T=V);break}e&&T&&M.alternate===null&&t(m,T),p=s(M,p,N),j===null?w=M:j.sibling=M,j=M,T=V}if(N===y.length)return n(m,T),Y&&nn(m,N),w;if(T===null){for(;N<y.length;N++)T=f(m,y[N],S),T!==null&&(p=s(T,p,N),j===null?w=T:j.sibling=T,j=T);return Y&&nn(m,N),w}for(T=r(m,T);N<y.length;N++)V=v(T,m,N,y[N],S),V!==null&&(e&&V.alternate!==null&&T.delete(V.key===null?N:V.key),p=s(V,p,N),j===null?w=V:j.sibling=V,j=V);return e&&T.forEach(function(W){return t(m,W)}),Y&&nn(m,N),w}function g(m,p,y,S){var w=cr(y);if(typeof w!="function")throw Error(E(150));if(y=w.call(y),y==null)throw Error(E(151));for(var j=w=null,T=p,N=p=0,V=null,M=y.next();T!==null&&!M.done;N++,M=y.next()){T.index>N?(V=T,T=null):V=T.sibling;var W=h(m,T,M.value,S);if(W===null){T===null&&(T=V);break}e&&T&&W.alternate===null&&t(m,T),p=s(W,p,N),j===null?w=W:j.sibling=W,j=W,T=V}if(M.done)return n(m,T),Y&&nn(m,N),w;if(T===null){for(;!M.done;N++,M=y.next())M=f(m,M.value,S),M!==null&&(p=s(M,p,N),j===null?w=M:j.sibling=M,j=M);return Y&&nn(m,N),w}for(T=r(m,T);!M.done;N++,M=y.next())M=v(T,m,N,M.value,S),M!==null&&(e&&M.alternate!==null&&T.delete(M.key===null?N:M.key),p=s(M,p,N),j===null?w=M:j.sibling=M,j=M);return e&&T.forEach(function(me){return t(m,me)}),Y&&nn(m,N),w}function C(m,p,y,S){if(typeof y=="object"&&y!==null&&y.type===Pn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:e:{for(var w=y.key,j=p;j!==null;){if(j.key===w){if(w=y.type,w===Pn){if(j.tag===7){n(m,j.sibling),p=i(j,y.props.children),p.return=m,m=p;break e}}else if(j.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Ac(w)===j.type){n(m,j.sibling),p=i(j,y.props),p.ref=mr(m,j,y),p.return=m,m=p;break e}n(m,j);break}else t(m,j);j=j.sibling}y.type===Pn?(p=fn(y.props.children,m.mode,S,y.key),p.return=m,m=p):(S=ns(y.type,y.key,y.props,null,m.mode,S),S.ref=mr(m,p,y),S.return=m,m=S)}return o(m);case Cn:e:{for(j=y.key;p!==null;){if(p.key===j)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=i(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Bo(y,m.mode,S),p.return=m,m=p}return o(m);case At:return j=y._init,C(m,p,j(y._payload),S)}if(wr(y))return x(m,p,y,S);if(cr(y))return g(m,p,y,S);Vi(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,y),p.return=m,m=p):(n(m,p),p=Fo(y,m.mode,S),p.return=m,m=p),o(m)):n(m,p)}return C}var Xn=Uh(!0),$h=Uh(!1),ws=Yt(null),Ss=null,Rn=null,Bl=null;function Ul(){Bl=Rn=Ss=null}function $l(e){var t=ws.current;G(ws),e._currentValue=t}function za(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 bn(e,t){Ss=e,Bl=Rn=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(Bl!==e)if(e={context:e,memoizedValue:t,next:null},Rn===null){if(Ss===null)throw Error(E(308));Rn=e,Ss.dependencies={lanes:0,firstContext:e}}else Rn=Rn.next=e;return t}var ln=null;function Wl(e){ln===null?ln=[e]:ln.push(e)}function Wh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Wl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ct(e,r)}function Ct(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dt=!1;function Hl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ct(e,n)}return i=r.interleaved,i===null?(t.next=t,Wl(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ct(e,n)}function Yi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ml(e,n)}}function Dc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function js(e,t,n,r){var i=e.updateQueue;Dt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,d=c=l=null,a=s;do{var h=a.lane,v=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,g=a;switch(h=t,v=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){f=x.call(v,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,h=typeof x=="function"?x.call(v,f,h):x,h==null)break e;f=ee({},f,h);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else v={eventTime:v,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=v,l=f):d=d.next=v,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);gn|=o,e.lanes=o,e.memoizedState=f}}function Lc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var mi={},dt=Yt(mi),Zr=Yt(mi),Jr=Yt(mi);function un(e){if(e===mi)throw Error(E(174));return e}function Kl(e,t){switch(K(Jr,t),K(Zr,e),K(dt,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ya(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ya(t,e)}G(dt),K(dt,t)}function Zn(){G(dt),G(Zr),G(Jr)}function Kh(e){un(Jr.current);var t=un(dt.current),n=ya(t,e.type);t!==n&&(K(Zr,e),K(dt,n))}function bl(e){Zr.current===e&&(G(dt),G(Zr))}var X=Yt(0);function ks(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 Ro=[];function Gl(){for(var e=0;e<Ro.length;e++)Ro[e]._workInProgressVersionPrimary=null;Ro.length=0}var Xi=Nt.ReactCurrentDispatcher,Vo=Nt.ReactCurrentBatchConfig,yn=0,J=null,ae=null,ue=null,Cs=!1,Lr=!1,ei=0,kv=0;function ye(){throw Error(E(321))}function Ql(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!st(e[n],t[n]))return!1;return!0}function ql(e,t,n,r,i,s){if(yn=s,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=e===null||e.memoizedState===null?Nv:Ev,e=n(r,i),Lr){s=0;do{if(Lr=!1,ei=0,25<=s)throw Error(E(301));s+=1,ue=ae=null,t.updateQueue=null,Xi.current=Mv,e=n(r,i)}while(Lr)}if(Xi.current=Ps,t=ae!==null&&ae.next!==null,yn=0,ue=ae=J=null,Cs=!1,t)throw Error(E(300));return e}function Yl(){var e=ei!==0;return ei=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?J.memoizedState=ue=e:ue=ue.next=e,ue}function Xe(){if(ae===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=ue===null?J.memoizedState:ue.next;if(t!==null)ue=t,ae=e;else{if(e===null)throw Error(E(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},ue===null?J.memoizedState=ue=e:ue=ue.next=e}return ue}function ti(e,t){return typeof t=="function"?t(e):t}function _o(e){var t=Xe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=ae,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var d=c.lane;if((yn&d)===d)l!==null&&(l=l.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 f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,J.lanes|=d,gn|=d}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,st(r,t.memoizedState)||(Ae=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,J.lanes|=s,gn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zo(e){var t=Xe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);st(s,t.memoizedState)||(Ae=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function bh(){}function Gh(e,t){var n=J,r=Xe(),i=t(),s=!st(r.memoizedState,i);if(s&&(r.memoizedState=i,Ae=!0),r=r.queue,Xl(Yh.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,ni(9,qh.bind(null,n,r,i,t),void 0,null),ce===null)throw Error(E(349));yn&30||Qh(n,t,i)}return i}function Qh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qh(e,t,n,r){t.value=n,t.getSnapshot=r,Xh(t)&&Zh(e)}function Yh(e,t,n){return n(function(){Xh(t)&&Zh(e)})}function Xh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!st(e,n)}catch{return!0}}function Zh(e){var t=Ct(e,1);t!==null&&it(t,e,1,-1)}function Rc(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:ti,lastRenderedState:e},t.queue=e,e=e.dispatch=Tv.bind(null,J,e),[t.memoizedState,e]}function ni(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.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 Jh(){return Xe().memoizedState}function Zi(e,t,n,r){var i=lt();J.flags|=e,i.memoizedState=ni(1|t,n,void 0,r===void 0?null:r)}function Ys(e,t,n,r){var i=Xe();r=r===void 0?null:r;var s=void 0;if(ae!==null){var o=ae.memoizedState;if(s=o.destroy,r!==null&&Ql(r,o.deps)){i.memoizedState=ni(t,n,s,r);return}}J.flags|=e,i.memoizedState=ni(1|t,n,s,r)}function Vc(e,t){return Zi(8390656,8,e,t)}function Xl(e,t){return Ys(2048,8,e,t)}function ep(e,t){return Ys(4,2,e,t)}function tp(e,t){return Ys(4,4,e,t)}function np(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 rp(e,t,n){return n=n!=null?n.concat([e]):null,Ys(4,4,np.bind(null,t,e),n)}function Zl(){}function ip(e,t){var n=Xe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ql(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function sp(e,t){var n=Xe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ql(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function op(e,t,n){return yn&21?(st(n,t)||(n=dh(),J.lanes|=n,gn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ae=!0),e.memoizedState=n)}function Cv(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Vo.transition;Vo.transition={};try{e(!1),t()}finally{H=n,Vo.transition=r}}function ap(){return Xe().memoizedState}function Pv(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lp(e))up(t,n);else if(n=Wh(e,t,n,r),n!==null){var i=Ce();it(n,e,r,i),cp(n,t,r)}}function Tv(e,t,n){var r=$t(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lp(e))up(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,st(a,o)){var l=t.interleaved;l===null?(i.next=i,Wl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Wh(e,t,i,r),n!==null&&(i=Ce(),it(n,e,r,i),cp(n,t,r))}}function lp(e){var t=e.alternate;return e===J||t!==null&&t===J}function up(e,t){Lr=Cs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ml(e,n)}}var Ps={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},Nv={readContext:Ye,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ye,useEffect:Vc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zi(4194308,4,np.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zi(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=Pv.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Rc,useDebugValue:Zl,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Rc(!1),t=e[0];return e=Cv.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,i=lt();if(Y){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ce===null)throw Error(E(349));yn&30||Qh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Vc(Yh.bind(null,r,s,e),[e]),r.flags|=2048,ni(9,qh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=lt(),t=ce.identifierPrefix;if(Y){var n=gt,r=yt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ei++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=kv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ev={readContext:Ye,useCallback:ip,useContext:Ye,useEffect:Xl,useImperativeHandle:rp,useInsertionEffect:ep,useLayoutEffect:tp,useMemo:sp,useReducer:_o,useRef:Jh,useState:function(){return _o(ti)},useDebugValue:Zl,useDeferredValue:function(e){var t=Xe();return op(t,ae.memoizedState,e)},useTransition:function(){var e=_o(ti)[0],t=Xe().memoizedState;return[e,t]},useMutableSource:bh,useSyncExternalStore:Gh,useId:ap,unstable_isNewReconciler:!1},Mv={readContext:Ye,useCallback:ip,useContext:Ye,useEffect:Xl,useImperativeHandle:rp,useInsertionEffect:ep,useLayoutEffect:tp,useMemo:sp,useReducer:zo,useRef:Jh,useState:function(){return zo(ti)},useDebugValue:Zl,useDeferredValue:function(e){var t=Xe();return ae===null?t.memoizedState=e:op(t,ae.memoizedState,e)},useTransition:function(){var e=zo(ti)[0],t=Xe().memoizedState;return[e,t]},useMutableSource:bh,useSyncExternalStore:Gh,useId:ap,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Oa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xs={isMounted:function(e){return(e=e._reactInternals)?Sn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ce(),i=$t(e),s=xt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Yi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ce(),i=$t(e),s=xt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Yi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ce(),r=$t(e),i=xt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Bt(e,i,r),t!==null&&(it(t,e,r,n),Yi(t,e,r))}};function _c(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Qr(n,r)||!Qr(i,s):!0}function dp(e,t,n){var r=!1,i=bt,s=t.contextType;return typeof s=="object"&&s!==null?s=Ye(s):(i=Le(t)?pn:Se.current,r=t.contextTypes,s=(r=r!=null)?qn(e,i):bt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function zc(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&&Xs.enqueueReplaceState(t,t.state,null)}function Ia(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Hl(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ye(s):(s=Le(t)?pn:Se.current,i.context=qn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Oa(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Xs.enqueueReplaceState(i,i.state,null),js(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Jn(e,t){try{var n="",r=t;do n+=rg(r),r=r.return;while(r);var i=n}catch(s){i=`
39
+ Error generating stack: `+s.message+`
40
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function Oo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Av=typeof WeakMap=="function"?WeakMap:Map;function fp(e,t,n){n=xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ns||(Ns=!0,qa=r),Fa(e,t)},n}function hp(e,t,n){n=xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Fa(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Fa(e,t),typeof r!="function"&&(Ut===null?Ut=new Set([this]):Ut.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Oc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Av;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Hv.bind(null,e,t,n),t.then(e,e))}function Ic(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 Fc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=xt(-1,1),t.tag=2,Bt(n,t,1))),n.lanes|=1),e)}var Dv=Nt.ReactCurrentOwner,Ae=!1;function ke(e,t,n,r){t.child=e===null?$h(t,null,n,r):Xn(t,e.child,n,r)}function Bc(e,t,n,r,i){n=n.render;var s=t.ref;return bn(t,i),r=ql(e,t,n,r,s,i),n=Yl(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(Y&&n&&Ol(t),t.flags|=1,ke(e,t,r,i),t.child)}function Uc(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!ou(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,pp(e,t,s,r,i)):(e=ns(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Qr,n(o,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=Wt(s,r),e.ref=t.ref,e.return=t,t.child=e}function pp(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Qr(s,r)&&e.ref===t.ref)if(Ae=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Ae=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return Ba(e,t,n,r,i)}function mp(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(_n,Ve),Ve|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(_n,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,K(_n,Ve),Ve|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,K(_n,Ve),Ve|=r;return ke(e,t,i,n),t.child}function yp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ba(e,t,n,r,i){var s=Le(n)?pn:Se.current;return s=qn(t,s),bn(t,i),n=ql(e,t,n,r,s,i),r=Yl(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(Y&&r&&Ol(t),t.flags|=1,ke(e,t,n,i),t.child)}function $c(e,t,n,r,i){if(Le(n)){var s=!0;gs(t)}else s=!1;if(bn(t,i),t.stateNode===null)Ji(e,t),dp(t,n,r),Ia(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ye(c):(c=Le(n)?pn:Se.current,c=qn(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&zc(t,o,r,c),Dt=!1;var h=t.memoizedState;o.state=h,js(t,r,o,i),l=t.memoizedState,a!==r||h!==l||De.current||Dt?(typeof d=="function"&&(Oa(t,n,d,r),l=t.memoizedState),(a=Dt||_c(t,n,a,r,h,l,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Hh(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:et(t.type,a),o.props=c,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ye(l):(l=Le(n)?pn:Se.current,l=qn(t,l));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&zc(t,o,r,l),Dt=!1,h=t.memoizedState,o.state=h,js(t,r,o,i);var x=t.memoizedState;a!==f||h!==x||De.current||Dt?(typeof v=="function"&&(Oa(t,n,v,r),x=t.memoizedState),(c=Dt||_c(t,n,c,r,h,x,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Ua(e,t,n,r,s,i)}function Ua(e,t,n,r,i,s){yp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Nc(t,n,!1),Pt(e,t,s);r=t.stateNode,Dv.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Xn(t,e.child,null,s),t.child=Xn(t,null,a,s)):ke(e,t,a,s),t.memoizedState=r.state,i&&Nc(t,n,!0),t.child}function gp(e){var t=e.stateNode;t.pendingContext?Tc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Tc(e,t.context,!1),Kl(e,t.containerInfo)}function Wc(e,t,n,r,i){return Yn(),Fl(i),t.flags|=256,ke(e,t,n,r),t.child}var $a={dehydrated:null,treeContext:null,retryLane:0};function Wa(e){return{baseLanes:e,cachePool:null,transitions:null}}function vp(e,t,n){var r=t.pendingProps,i=X.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),K(X,i&1),e===null)return _a(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=eo(o,r,0,null),e=fn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Wa(n),t.memoizedState=$a,e):Jl(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Lv(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Wt(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Wt(a,s):(s=fn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Wa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=$a,r}return s=e.child,e=s.sibling,r=Wt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Jl(e,t){return t=eo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _i(e,t,n,r){return r!==null&&Fl(r),Xn(t,e.child,null,n),e=Jl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lv(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Oo(Error(E(422))),_i(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=eo({mode:"visible",children:r.children},i,0,null),s=fn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Xn(t,e.child,null,o),t.child.memoizedState=Wa(o),t.memoizedState=$a,s);if(!(t.mode&1))return _i(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(E(419)),r=Oo(s,r,void 0),_i(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ae||a){if(r=ce,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ct(e,i),it(r,e,i,-1))}return su(),r=Oo(Error(E(421))),_i(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Kv.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Oe=Ft(i.nextSibling),Ie=t,Y=!0,nt=null,e!==null&&(be[Ge++]=yt,be[Ge++]=gt,be[Ge++]=mn,yt=e.id,gt=e.overflow,mn=t),t=Jl(t,r.children),t.flags|=4096,t)}function Hc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),za(e.return,t,n)}function Io(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function xp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ke(e,t,r.children,n),r=X.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&&Hc(e,n,t);else if(e.tag===19)Hc(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(X,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ks(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Io(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ks(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Io(t,!0,n,null,s);break;case"together":Io(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ji(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),gn|=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=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Rv(e,t,n){switch(t.tag){case 3:gp(t),Yn();break;case 5:Kh(t);break;case 1:Le(t.type)&&gs(t);break;case 4:Kl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;K(ws,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?vp(e,t,n):(K(X,X.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);K(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,mp(e,t,n)}return Pt(e,t,n)}var wp,Ha,Sp,jp;wp=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}};Ha=function(){};Sp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,un(dt.current);var s=null;switch(n){case"input":i=fa(e,i),r=fa(e,r),s=[];break;case"select":i=ee({},i,{value:void 0}),r=ee({},r,{value:void 0}),s=[];break;case"textarea":i=ma(e,i),r=ma(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ms)}ga(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ur.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ur.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&b("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};jp=function(e,t,n,r){n!==r&&(t.flags|=4)};function yr(e,t){if(!Y)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vv(e,t,n){var r=t.pendingProps;switch(Il(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ge(t),null;case 1:return Le(t.type)&&ys(),ge(t),null;case 3:return r=t.stateNode,Zn(),G(De),G(Se),Gl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(Za(nt),nt=null))),Ha(e,t),ge(t),null;case 5:bl(t);var i=un(Jr.current);if(n=t.type,e!==null&&t.stateNode!=null)Sp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return ge(t),null}if(e=un(dt.current),Ri(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ut]=t,r[Xr]=s,e=(t.mode&1)!==0,n){case"dialog":b("cancel",r),b("close",r);break;case"iframe":case"object":case"embed":b("load",r);break;case"video":case"audio":for(i=0;i<jr.length;i++)b(jr[i],r);break;case"source":b("error",r);break;case"img":case"image":case"link":b("error",r),b("load",r);break;case"details":b("toggle",r);break;case"input":Ju(r,s),b("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},b("invalid",r);break;case"textarea":tc(r,s),b("invalid",r)}ga(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Li(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Li(r.textContent,a,e),i=["children",""+a]):Ur.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&b("scroll",r)}switch(n){case"input":Ci(r),ec(r,s,!0);break;case"textarea":Ci(r),nc(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ms)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Yf(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[Xr]=r,wp(e,t,!1,!1),t.stateNode=e;e:{switch(o=va(n,r),n){case"dialog":b("cancel",e),b("close",e),i=r;break;case"iframe":case"object":case"embed":b("load",e),i=r;break;case"video":case"audio":for(i=0;i<jr.length;i++)b(jr[i],e);i=r;break;case"source":b("error",e),i=r;break;case"img":case"image":case"link":b("error",e),b("load",e),i=r;break;case"details":b("toggle",e),i=r;break;case"input":Ju(e,r),i=fa(e,r),b("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ee({},r,{value:void 0}),b("invalid",e);break;case"textarea":tc(e,r),i=ma(e,r),b("invalid",e);break;default:i=r}ga(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Jf(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Xf(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&$r(e,l):typeof l=="number"&&$r(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ur.hasOwnProperty(s)?l!=null&&s==="onScroll"&&b("scroll",e):l!=null&&kl(e,s,l,o))}switch(n){case"input":Ci(e),ec(e,r,!1);break;case"textarea":Ci(e),nc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Kt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?$n(e,!!r.multiple,s,!1):r.defaultValue!=null&&$n(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ms)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ge(t),null;case 6:if(e&&t.stateNode!=null)jp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=un(Jr.current),un(dt.current),Ri(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(s=r.nodeValue!==n)&&(e=Ie,e!==null))switch(e.tag){case 3:Li(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Li(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return ge(t),null;case 13:if(G(X),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Y&&Oe!==null&&t.mode&1&&!(t.flags&128))Bh(),Yn(),t.flags|=98560,s=!1;else if(s=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(E(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(E(317));s[ut]=t}else Yn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ge(t),s=!1}else nt!==null&&(Za(nt),nt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||X.current&1?le===0&&(le=3):su())),t.updateQueue!==null&&(t.flags|=4),ge(t),null);case 4:return Zn(),Ha(e,t),e===null&&qr(t.stateNode.containerInfo),ge(t),null;case 10:return $l(t.type._context),ge(t),null;case 17:return Le(t.type)&&ys(),ge(t),null;case 19:if(G(X),s=t.memoizedState,s===null)return ge(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)yr(s,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ks(e),o!==null){for(t.flags|=128,yr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(X,X.current&1|2),t.child}e=e.sibling}s.tail!==null&&ie()>er&&(t.flags|=128,r=!0,yr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Y)return ge(t),null}else 2*ie()-s.renderingStartTime>er&&n!==1073741824&&(t.flags|=128,r=!0,yr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ie(),t.sibling=null,n=X.current,K(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return iu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function _v(e,t){switch(Il(t),t.tag){case 1:return Le(t.type)&&ys(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),G(De),G(Se),Gl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bl(t),null;case 13:if(G(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(X),null;case 4:return Zn(),null;case 10:return $l(t.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var zi=!1,xe=!1,zv=typeof WeakSet=="function"?WeakSet:Set,D=null;function Vn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function Ka(e,t,n){try{n()}catch(r){ne(e,t,r)}}var Kc=!1;function Ov(e,t){if(Ea=fs,e=Nh(),zl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var v;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(v=f.firstChild)!==null;)h=f,f=v;for(;;){if(f===e)break t;if(h===n&&++c===i&&(a=o),h===s&&++d===r&&(l=o),(v=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ma={focusedElem:e,selectionRange:n},fs=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,C=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:et(t.type,g),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=Kc,Kc=!1,x}function Rr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Ka(t,n,s)}i=i.next}while(i!==r)}}function Zs(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 ba(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 kp(e){var t=e.alternate;t!==null&&(e.alternate=null,kp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Xr],delete t[La],delete t[xv],delete t[wv])),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 Cp(e){return e.tag===5||e.tag===3||e.tag===4}function bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cp(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 Ga(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=ms));else if(r!==4&&(e=e.child,e!==null))for(Ga(e,t,n),e=e.sibling;e!==null;)Ga(e,t,n),e=e.sibling}function Qa(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(Qa(e,t,n),e=e.sibling;e!==null;)Qa(e,t,n),e=e.sibling}var de=null,tt=!1;function Et(e,t,n){for(n=n.child;n!==null;)Pp(e,t,n),n=n.sibling}function Pp(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Hs,n)}catch{}switch(n.tag){case 5:xe||Vn(n,t);case 6:var r=de,i=tt;de=null,Et(e,t,n),de=r,tt=i,de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?Do(e.parentNode,n):e.nodeType===1&&Do(e,n),br(e)):Do(de,n.stateNode));break;case 4:r=de,i=tt,de=n.stateNode.containerInfo,tt=!0,Et(e,t,n),de=r,tt=i;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Ka(n,t,o),i=i.next}while(i!==r)}Et(e,t,n);break;case 1:if(!xe&&(Vn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ne(n,t,a)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,Et(e,t,n),xe=r):Et(e,t,n);break;default:Et(e,t,n)}}function Gc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zv),t.forEach(function(r){var i=bv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:de=a.stateNode,tt=!1;break e;case 3:de=a.stateNode.containerInfo,tt=!0;break e;case 4:de=a.stateNode.containerInfo,tt=!0;break e}a=a.return}if(de===null)throw Error(E(160));Pp(s,o,i),de=null,tt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){ne(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tp(t,e),t=t.sibling}function Tp(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{Rr(3,e,e.return),Zs(3,e)}catch(g){ne(e,e.return,g)}try{Rr(5,e,e.return)}catch(g){ne(e,e.return,g)}}break;case 1:Ze(t,e),at(e),r&512&&n!==null&&Vn(n,n.return);break;case 5:if(Ze(t,e),at(e),r&512&&n!==null&&Vn(n,n.return),e.flags&32){var i=e.stateNode;try{$r(i,"")}catch(g){ne(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Qf(i,s),va(a,o);var c=va(a,s);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?Jf(i,f):d==="dangerouslySetInnerHTML"?Xf(i,f):d==="children"?$r(i,f):kl(i,d,f,c)}switch(a){case"input":ha(i,s);break;case"textarea":qf(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?$n(i,!!s.multiple,v,!1):h!==!!s.multiple&&(s.defaultValue!=null?$n(i,!!s.multiple,s.defaultValue,!0):$n(i,!!s.multiple,s.multiple?[]:"",!1))}i[Xr]=s}catch(g){ne(e,e.return,g)}}break;case 6:if(Ze(t,e),at(e),r&4){if(e.stateNode===null)throw Error(E(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(g){ne(e,e.return,g)}}break;case 3:if(Ze(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{br(t.containerInfo)}catch(g){ne(e,e.return,g)}break;case 4:Ze(t,e),at(e);break;case 13:Ze(t,e),at(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(nu=ie())),r&4&&Gc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(xe=(c=xe)||d,Ze(t,e),xe=c):Ze(t,e),at(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(f=D=d;D!==null;){switch(h=D,v=h.child,h.tag){case 0:case 11:case 14:case 15:Rr(4,h,h.return);break;case 1:Vn(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(g){ne(r,n,g)}}break;case 5:Vn(h,h.return);break;case 22:if(h.memoizedState!==null){qc(f);continue}}v!==null?(v.return=h,D=v):qc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Zf("display",o))}catch(g){ne(e,e.return,g)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){ne(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ze(t,e),at(e),r&4&&Gc(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(Cp(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&($r(i,""),r.flags&=-33);var s=bc(e);Qa(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=bc(e);Ga(e,a,o);break;default:throw Error(E(161))}}catch(l){ne(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Iv(e,t,n){D=e,Np(e)}function Np(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||zi;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||xe;a=zi;var c=xe;if(zi=o,(xe=l)&&!c)for(D=i;D!==null;)o=D,l=o.child,o.tag===22&&o.memoizedState!==null?Yc(i):l!==null?(l.return=o,D=l):Yc(i);for(;s!==null;)D=s,Np(s),s=s.sibling;D=i,zi=a,xe=c}Qc(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,D=s):Qc(e)}}function Qc(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:xe||Zs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!xe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Lc(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Lc(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&br(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}xe||t.flags&512&&ba(t)}catch(h){ne(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function qc(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Yc(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zs(4,t)}catch(l){ne(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ne(t,i,l)}}var s=t.return;try{ba(t)}catch(l){ne(t,s,l)}break;case 5:var o=t.return;try{ba(t)}catch(l){ne(t,o,l)}}}catch(l){ne(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var Fv=Math.ceil,Ts=Nt.ReactCurrentDispatcher,eu=Nt.ReactCurrentOwner,qe=Nt.ReactCurrentBatchConfig,B=0,ce=null,oe=null,he=0,Ve=0,_n=Yt(0),le=0,ri=null,gn=0,Js=0,tu=0,Vr=null,Me=null,nu=0,er=1/0,pt=null,Ns=!1,qa=null,Ut=null,Oi=!1,_t=null,Es=0,_r=0,Ya=null,es=-1,ts=0;function Ce(){return B&6?ie():es!==-1?es:es=ie()}function $t(e){return e.mode&1?B&2&&he!==0?he&-he:jv.transition!==null?(ts===0&&(ts=dh()),ts):(e=H,e!==0||(e=window.event,e=e===void 0?16:vh(e.type)),e):1}function it(e,t,n,r){if(50<_r)throw _r=0,Ya=null,Error(E(185));fi(e,n,r),(!(B&2)||e!==ce)&&(e===ce&&(!(B&2)&&(Js|=n),le===4&&Rt(e,he)),Re(e,r),n===1&&B===0&&!(t.mode&1)&&(er=ie()+500,qs&&Xt()))}function Re(e,t){var n=e.callbackNode;jg(e,t);var r=ds(e,e===ce?he:0);if(r===0)n!==null&&sc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&sc(n),t===1)e.tag===0?Sv(Xc.bind(null,e)):Oh(Xc.bind(null,e)),gv(function(){!(B&6)&&Xt()}),n=null;else{switch(fh(r)){case 1:n=El;break;case 4:n=uh;break;case 16:n=cs;break;case 536870912:n=ch;break;default:n=cs}n=_p(n,Ep.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ep(e,t){if(es=-1,ts=0,B&6)throw Error(E(327));var n=e.callbackNode;if(Gn()&&e.callbackNode!==n)return null;var r=ds(e,e===ce?he:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ms(e,r);else{t=r;var i=B;B|=2;var s=Ap();(ce!==e||he!==t)&&(pt=null,er=ie()+500,dn(e,t));do try{$v();break}catch(a){Mp(e,a)}while(!0);Ul(),Ts.current=s,B=i,oe!==null?t=0:(ce=null,he=0,t=le)}if(t!==0){if(t===2&&(i=ka(e),i!==0&&(r=i,t=Xa(e,i))),t===1)throw n=ri,dn(e,0),Rt(e,r),Re(e,ie()),n;if(t===6)Rt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Bv(i)&&(t=Ms(e,r),t===2&&(s=ka(e),s!==0&&(r=s,t=Xa(e,s))),t===1))throw n=ri,dn(e,0),Rt(e,r),Re(e,ie()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:rn(e,Me,pt);break;case 3:if(Rt(e,r),(r&130023424)===r&&(t=nu+500-ie(),10<t)){if(ds(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ce(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Da(rn.bind(null,e,Me,pt),t);break}rn(e,Me,pt);break;case 4:if(Rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-rt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fv(r/1960))-r,10<r){e.timeoutHandle=Da(rn.bind(null,e,Me,pt),r);break}rn(e,Me,pt);break;case 5:rn(e,Me,pt);break;default:throw Error(E(329))}}}return Re(e,ie()),e.callbackNode===n?Ep.bind(null,e):null}function Xa(e,t){var n=Vr;return e.current.memoizedState.isDehydrated&&(dn(e,t).flags|=256),e=Ms(e,t),e!==2&&(t=Me,Me=n,t!==null&&Za(t)),e}function Za(e){Me===null?Me=e:Me.push.apply(Me,e)}function Bv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!st(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rt(e,t){for(t&=~tu,t&=~Js,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 Xc(e){if(B&6)throw Error(E(327));Gn();var t=ds(e,0);if(!(t&1))return Re(e,ie()),null;var n=Ms(e,t);if(e.tag!==0&&n===2){var r=ka(e);r!==0&&(t=r,n=Xa(e,r))}if(n===1)throw n=ri,dn(e,0),Rt(e,t),Re(e,ie()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rn(e,Me,pt),Re(e,ie()),null}function ru(e,t){var n=B;B|=1;try{return e(t)}finally{B=n,B===0&&(er=ie()+500,qs&&Xt())}}function vn(e){_t!==null&&_t.tag===0&&!(B&6)&&Gn();var t=B;B|=1;var n=qe.transition,r=H;try{if(qe.transition=null,H=1,e)return e()}finally{H=r,qe.transition=n,B=t,!(B&6)&&Xt()}}function iu(){Ve=_n.current,G(_n)}function dn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yv(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(Il(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ys();break;case 3:Zn(),G(De),G(Se),Gl();break;case 5:bl(r);break;case 4:Zn();break;case 13:G(X);break;case 19:G(X);break;case 10:$l(r.type._context);break;case 22:case 23:iu()}n=n.return}if(ce=e,oe=e=Wt(e.current,null),he=Ve=t,le=0,ri=null,tu=Js=gn=0,Me=Vr=null,ln!==null){for(t=0;t<ln.length;t++)if(n=ln[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}ln=null}return e}function Mp(e,t){do{var n=oe;try{if(Ul(),Xi.current=Ps,Cs){for(var r=J.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Cs=!1}if(yn=0,ue=ae=J=null,Lr=!1,ei=0,eu.current=null,n===null||n.return===null){le=1,ri=t,oe=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=he,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=Ic(o);if(v!==null){v.flags&=-257,Fc(v,o,a,s,t),v.mode&1&&Oc(s,c,t),t=v,l=c;var x=t.updateQueue;if(x===null){var g=new Set;g.add(l),t.updateQueue=g}else x.add(l);break e}else{if(!(t&1)){Oc(s,c,t),su();break e}l=Error(E(426))}}else if(Y&&a.mode&1){var C=Ic(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Fc(C,o,a,s,t),Fl(Jn(l,a));break e}}s=l=Jn(l,a),le!==4&&(le=2),Vr===null?Vr=[s]:Vr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=fp(s,l,t);Dc(s,m);break e;case 1:a=l;var p=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ut===null||!Ut.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=hp(s,a,t);Dc(s,S);break e}}s=s.return}while(s!==null)}Lp(n)}catch(w){t=w,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function Ap(){var e=Ts.current;return Ts.current=Ps,e===null?Ps:e}function su(){(le===0||le===3||le===2)&&(le=4),ce===null||!(gn&268435455)&&!(Js&268435455)||Rt(ce,he)}function Ms(e,t){var n=B;B|=2;var r=Ap();(ce!==e||he!==t)&&(pt=null,dn(e,t));do try{Uv();break}catch(i){Mp(e,i)}while(!0);if(Ul(),B=n,Ts.current=r,oe!==null)throw Error(E(261));return ce=null,he=0,le}function Uv(){for(;oe!==null;)Dp(oe)}function $v(){for(;oe!==null&&!hg();)Dp(oe)}function Dp(e){var t=Vp(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?Lp(e):oe=t,eu.current=null}function Lp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_v(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,oe=null;return}}else if(n=Vv(n,t,Ve),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);le===0&&(le=5)}function rn(e,t,n){var r=H,i=qe.transition;try{qe.transition=null,H=1,Wv(e,t,n,r)}finally{qe.transition=i,H=r}return null}function Wv(e,t,n,r){do Gn();while(_t!==null);if(B&6)throw Error(E(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(kg(e,s),e===ce&&(oe=ce=null,he=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Oi||(Oi=!0,_p(cs,function(){return Gn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=qe.transition,qe.transition=null;var o=H;H=1;var a=B;B|=4,eu.current=null,Ov(e,n),Tp(n,e),uv(Ma),fs=!!Ea,Ma=Ea=null,e.current=n,Iv(n),pg(),B=a,H=o,qe.transition=s}else e.current=n;if(Oi&&(Oi=!1,_t=e,Es=i),s=e.pendingLanes,s===0&&(Ut=null),gg(n.stateNode),Re(e,ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ns)throw Ns=!1,e=qa,qa=null,e;return Es&1&&e.tag!==0&&Gn(),s=e.pendingLanes,s&1?e===Ya?_r++:(_r=0,Ya=e):_r=0,Xt(),null}function Gn(){if(_t!==null){var e=fh(Es),t=qe.transition,n=H;try{if(qe.transition=null,H=16>e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,Es=0,B&6)throw Error(E(331));var i=B;for(B|=4,D=e.current;D!==null;){var s=D,o=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(D=c;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:Rr(8,d,s)}var f=d.child;if(f!==null)f.return=d,D=f;else for(;D!==null;){d=D;var h=d.sibling,v=d.return;if(kp(d),d===c){D=null;break}if(h!==null){h.return=v,D=h;break}D=v}}}var x=s.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var C=g.sibling;g.sibling=null,g=C}while(g!==null)}}D=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,D=o;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Rr(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var p=e.current;for(D=p;D!==null;){o=D;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,D=y;else e:for(o=p;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Zs(9,a)}}catch(w){ne(a,a.return,w)}if(a===o){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(B=i,Xt(),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Hs,e)}catch{}r=!0}return r}finally{H=n,qe.transition=t}}return!1}function Zc(e,t,n){t=Jn(n,t),t=fp(e,t,1),e=Bt(e,t,1),t=Ce(),e!==null&&(fi(e,1,t),Re(e,t))}function ne(e,t,n){if(e.tag===3)Zc(e,e,n);else for(;t!==null;){if(t.tag===3){Zc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ut===null||!Ut.has(r))){e=Jn(n,e),e=hp(t,e,1),t=Bt(t,e,1),e=Ce(),t!==null&&(fi(t,1,e),Re(t,e));break}}t=t.return}}function Hv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ce(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(he&n)===n&&(le===4||le===3&&(he&130023424)===he&&500>ie()-nu?dn(e,0):tu|=n),Re(e,t)}function Rp(e,t){t===0&&(e.mode&1?(t=Ni,Ni<<=1,!(Ni&130023424)&&(Ni=4194304)):t=1);var n=Ce();e=Ct(e,t),e!==null&&(fi(e,t,n),Re(e,n))}function Kv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rp(e,n)}function bv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Rp(e,n)}var Vp;Vp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,Rv(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,Y&&t.flags&1048576&&Ih(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ji(e,t),e=t.pendingProps;var i=qn(t,Se.current);bn(t,n),i=ql(null,t,r,e,i,n);var s=Yl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(s=!0,gs(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hl(t),i.updater=Xs,t.stateNode=i,i._reactInternals=t,Ia(t,r,e,n),t=Ua(null,t,r,!0,s,n)):(t.tag=0,Y&&s&&Ol(t),ke(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ji(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Qv(r),e=et(r,e),i){case 0:t=Ba(null,t,r,e,n);break e;case 1:t=$c(null,t,r,e,n);break e;case 11:t=Bc(null,t,r,e,n);break e;case 14:t=Uc(null,t,r,et(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Ba(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),$c(e,t,r,i,n);case 3:e:{if(gp(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Hh(e,t),js(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Jn(Error(E(423)),t),t=Wc(e,t,r,n,i);break e}else if(r!==i){i=Jn(Error(E(424)),t),t=Wc(e,t,r,n,i);break e}else for(Oe=Ft(t.stateNode.containerInfo.firstChild),Ie=t,Y=!0,nt=null,n=$h(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yn(),r===i){t=Pt(e,t,n);break e}ke(e,t,r,n)}t=t.child}return t;case 5:return Kh(t),e===null&&_a(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Aa(r,i)?o=null:s!==null&&Aa(r,s)&&(t.flags|=32),yp(e,t),ke(e,t,o,n),t.child;case 6:return e===null&&_a(t),null;case 13:return vp(e,t,n);case 4:return Kl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):ke(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Bc(e,t,r,i,n);case 7:return ke(e,t,t.pendingProps,n),t.child;case 8:return ke(e,t,t.pendingProps.children,n),t.child;case 12:return ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,K(ws,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!De.current){t=Pt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=xt(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),za(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),za(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ke(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bn(t,n),i=Ye(i),r=r(i),t.flags|=1,ke(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Uc(e,t,r,i,n);case 15:return pp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Ji(e,t),t.tag=1,Le(r)?(e=!0,gs(t)):e=!1,bn(t,n),dp(t,r,i),Ia(t,r,i,n),Ua(null,t,r,!0,e,n);case 19:return xp(e,t,n);case 22:return mp(e,t,n)}throw Error(E(156,t.tag))};function _p(e,t){return lh(e,t)}function Gv(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 Gv(e,t,n,r)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qv(e){if(typeof e=="function")return ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pl)return 11;if(e===Tl)return 14}return 2}function Wt(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 ns(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")ou(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pn:return fn(n.children,i,s,t);case Cl:o=8,i|=8;break;case la:return e=Qe(12,n,t,i|2),e.elementType=la,e.lanes=s,e;case ua:return e=Qe(13,n,t,i),e.elementType=ua,e.lanes=s,e;case ca:return e=Qe(19,n,t,i),e.elementType=ca,e.lanes=s,e;case Kf:return eo(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wf:o=10;break e;case Hf:o=9;break e;case Pl:o=11;break e;case Tl:o=14;break e;case At:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Qe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function fn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function eo(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=Kf,e.lanes=n,e.stateNode={isHidden:!1},e}function Fo(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function Bo(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 qv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function au(e,t,n,r,i,s,o,a,l){return e=new qv(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Qe(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hl(s),e}function Yv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Cn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zp(e){if(!e)return bt;e=e._reactInternals;e:{if(Sn(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(Le(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(Le(n))return zh(e,n,t)}return t}function Op(e,t,n,r,i,s,o,a,l){return e=au(n,r,!0,e,i,s,o,a,l),e.context=zp(null),n=e.current,r=Ce(),i=$t(n),s=xt(r,i),s.callback=t??null,Bt(n,s,i),e.current.lanes=i,fi(e,i,r),Re(e,r),e}function to(e,t,n,r){var i=t.current,s=Ce(),o=$t(i);return n=zp(n),t.context===null?t.context=n:t.pendingContext=n,t=xt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Bt(i,t,o),e!==null&&(it(e,i,o,s),Yi(e,i,o)),o}function As(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Jc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){Jc(e,t),(e=e.alternate)&&Jc(e,t)}function Xv(){return null}var Ip=typeof reportError=="function"?reportError:function(e){console.error(e)};function uu(e){this._internalRoot=e}no.prototype.render=uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));to(e,t,null,null)};no.prototype.unmount=uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vn(function(){to(null,e,null,null)}),t[kt]=null}};function no(e){this._internalRoot=e}no.prototype.unstable_scheduleHydration=function(e){if(e){var t=mh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&t!==0&&t<Lt[n].priority;n++);Lt.splice(n,0,e),n===0&&gh(e)}};function cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ro(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ed(){}function Zv(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=As(o);s.call(c)}}var o=Op(t,r,e,0,null,!1,!1,"",ed);return e._reactRootContainer=o,e[kt]=o.current,qr(e.nodeType===8?e.parentNode:e),vn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=As(l);a.call(c)}}var l=au(e,0,!1,null,null,!1,!1,"",ed);return e._reactRootContainer=l,e[kt]=l.current,qr(e.nodeType===8?e.parentNode:e),vn(function(){to(t,l,n,r)}),l}function io(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=As(o);a.call(l)}}to(t,o,e,i)}else o=Zv(n,t,e,i,r);return As(o)}hh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Sr(t.pendingLanes);n!==0&&(Ml(t,n|1),Re(t,ie()),!(B&6)&&(er=ie()+500,Xt()))}break;case 13:vn(function(){var r=Ct(e,1);if(r!==null){var i=Ce();it(r,e,1,i)}}),lu(e,1)}};Al=function(e){if(e.tag===13){var t=Ct(e,134217728);if(t!==null){var n=Ce();it(t,e,134217728,n)}lu(e,134217728)}};ph=function(e){if(e.tag===13){var t=$t(e),n=Ct(e,t);if(n!==null){var r=Ce();it(n,e,t,r)}lu(e,t)}};mh=function(){return H};yh=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};wa=function(e,t,n){switch(t){case"input":if(ha(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Qs(r);if(!i)throw Error(E(90));Gf(r),ha(r,i)}}}break;case"textarea":qf(e,n);break;case"select":t=n.value,t!=null&&$n(e,!!n.multiple,t,!1)}};nh=ru;rh=vn;var Jv={usingClientEntryPoint:!1,Events:[pi,Mn,Qs,eh,th,ru]},gr={findFiberByHostInstance:an,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},e0={bundleType:gr.bundleType,version:gr.version,rendererPackageName:gr.rendererPackageName,rendererConfig:gr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oh(e),e===null?null:e.stateNode},findFiberByHostInstance:gr.findFiberByHostInstance||Xv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{Hs=Ii.inject(e0),ct=Ii}catch{}}$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jv;$e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cu(t))throw Error(E(200));return Yv(e,t,null,n)};$e.createRoot=function(e,t){if(!cu(e))throw Error(E(299));var n=!1,r="",i=Ip;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=au(e,1,!1,null,null,n,!1,r,i),e[kt]=t.current,qr(e.nodeType===8?e.parentNode:e),new uu(t)};$e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=oh(t),e=e===null?null:e.stateNode,e};$e.flushSync=function(e){return vn(e)};$e.hydrate=function(e,t,n){if(!ro(t))throw Error(E(200));return io(null,e,t,!0,n)};$e.hydrateRoot=function(e,t,n){if(!cu(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Ip;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Op(t,null,e,1,n??null,i,!1,s,o),e[kt]=t.current,qr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new no(t)};$e.render=function(e,t,n){if(!ro(t))throw Error(E(200));return io(null,e,t,!1,n)};$e.unmountComponentAtNode=function(e){if(!ro(e))throw Error(E(40));return e._reactRootContainer?(vn(function(){io(null,null,e,!1,function(){e._reactRootContainer=null,e[kt]=null})}),!0):!1};$e.unstable_batchedUpdates=ru;$e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ro(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return io(e,t,n,!1,r)};$e.version="18.3.1-next-f1338f8080-20240426";function Fp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fp)}catch(e){console.error(e)}}Fp(),Ff.exports=$e;var t0=Ff.exports,td=t0;oa.createRoot=td.createRoot,oa.hydrateRoot=td.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 n0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bp=(...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 r0={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 i0=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>k.createElement("svg",{ref:l,...r0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bp("lucide",i),...a},[...o.map(([c,d])=>k.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
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 I=(e,t)=>{const n=k.forwardRef(({className:r,...i},s)=>k.createElement(i0,{ref:s,iconNode:t,className:Bp(`lucide-${n0(e)}`,r),...i}));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 Ds=I("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 nd=I("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 s0=I("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 o0=I("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 a0=I("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 so=I("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 l0=I("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 tr=I("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 ii=I("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 Uo=I("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 Ls=I("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 u0=I("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 c0=I("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 Up=I("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 d0=I("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 f0=I("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 vt=I("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 $p=I("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 Ja=I("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 h0=I("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 oo=I("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 p0=I("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 rd=I("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 m0=I("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 id=I("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 rs=I("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 Wp=I("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 y0=I("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 Rs=I("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 du=I("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 Hp=I("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 $o=I("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 g0=I("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 v0=I("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 Vs=I("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
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 x0=I("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"}]]);/**
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 w0=I("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"}]]);/**
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 S0=I("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"}]]);/**
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 xn=I("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"}]]);/**
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 el=I("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"}]]);/**
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 fu=I("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
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 j0=I("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"}]]),hu=k.createContext({});function pu(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const ao=k.createContext(null),mu=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class k0 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 C0({children:e,isPresent:t}){const n=k.useId(),r=k.useRef(null),i=k.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=k.useContext(mu);return k.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:c}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return s&&(d.nonce=s),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
271
+ [data-motion-pop-id="${n}"] {
272
+ position: absolute !important;
273
+ width: ${o}px !important;
274
+ height: ${a}px !important;
275
+ top: ${l}px !important;
276
+ left: ${c}px !important;
277
+ }
278
+ `),()=>{document.head.removeChild(d)}},[t]),u.jsx(k0,{isPresent:t,childRef:r,sizeRef:i,children:k.cloneElement(e,{ref:r})})}const P0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=pu(T0),l=k.useId(),c=k.useCallback(f=>{a.set(f,!0);for(const h of a.values())if(!h)return;r&&r()},[a,r]),d=k.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c,register:f=>(a.set(f,!1),()=>a.delete(f))}),s?[Math.random(),c]:[n,c]);return k.useMemo(()=>{a.forEach((f,h)=>a.set(h,!1))},[n]),k.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=u.jsx(C0,{isPresent:n,children:e})),u.jsx(ao.Provider,{value:d,children:e})};function T0(){return new Map}function Kp(e=!0){const t=k.useContext(ao);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=k.useId();k.useEffect(()=>{e&&i(s)},[e]);const o=k.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Fi=e=>e.key||"";function sd(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const yu=typeof window<"u",bp=yu?k.useLayoutEffect:k.useEffect,N0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[a,l]=Kp(o),c=k.useMemo(()=>sd(e),[e]),d=o&&!a?[]:c.map(Fi),f=k.useRef(!0),h=k.useRef(c),v=pu(()=>new Map),[x,g]=k.useState(c),[C,m]=k.useState(c);bp(()=>{f.current=!1,h.current=c;for(let S=0;S<C.length;S++){const w=Fi(C[S]);d.includes(w)?v.delete(w):v.get(w)!==!0&&v.set(w,!1)}},[C,d.length,d.join("-")]);const p=[];if(c!==x){let S=[...c];for(let w=0;w<C.length;w++){const j=C[w],T=Fi(j);d.includes(T)||(S.splice(w,0,j),p.push(j))}s==="wait"&&p.length&&(S=p),m(sd(S)),g(c);return}const{forceRender:y}=k.useContext(hu);return u.jsx(u.Fragment,{children:C.map(S=>{const w=Fi(S),j=o&&!a?!1:c===C||d.includes(w),T=()=>{if(v.has(w))v.set(w,!0);else return;let N=!0;v.forEach(V=>{V||(N=!1)}),N&&(y==null||y(),m(h.current),o&&(l==null||l()),r&&r())};return u.jsx(P0,{isPresent:j,initial:!f.current||n?void 0:!1,custom:j?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:j?void 0:T,children:S},w)})})},Fe=e=>e;let Gp=Fe;function gu(e){let t;return()=>(t===void 0&&(t=e()),t)}const nr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wt=e=>e*1e3,St=e=>e/1e3,E0={useManualTiming:!1};function M0(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,f=!1)=>{const v=f&&r?t:n;return d&&s.add(c),v.has(c)||v.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(o=c,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(c))}};return l}const Bi=["read","resolveKeyframes","update","preRender","render","postRender"],A0=40;function Qp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Bi.reduce((m,p)=>(m[p]=M0(s),m),{}),{read:a,resolveKeyframes:l,update:c,preRender:d,render:f,postRender:h}=o,v=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,A0),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},x=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Bi.reduce((m,p)=>{const y=o[p];return m[p]=(S,w=!1,j=!1)=>(n||x(),y.schedule(S,w,j)),m},{}),cancel:m=>{for(let p=0;p<Bi.length;p++)o[Bi[p]].cancel(m)},state:i,steps:o}}const{schedule:Q,cancel:Gt,state:fe,steps:Wo}=Qp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fe,!0),qp=k.createContext({strict:!1}),od={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rr={};for(const e in od)rr[e]={isEnabled:t=>od[e].some(n=>!!t[n])};function D0(e){for(const t in e)rr[t]={...rr[t],...e[t]}}const L0=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _s(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||L0.has(e)}let Yp=e=>!_s(e);function R0(e){e&&(Yp=t=>t.startsWith("on")?!_s(t):e(t))}try{R0(require("@emotion/is-prop-valid").default)}catch{}function V0(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Yp(i)||n===!0&&_s(i)||!t&&!_s(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function _0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const lo=k.createContext({});function si(e){return typeof e=="string"||Array.isArray(e)}function uo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const vu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xu=["initial",...vu];function co(e){return uo(e.animate)||xu.some(t=>si(e[t]))}function Xp(e){return!!(co(e)||e.variants)}function z0(e,t){if(co(e)){const{initial:n,animate:r}=e;return{initial:n===!1||si(n)?n:void 0,animate:si(r)?r:void 0}}return e.inherit!==!1?t:{}}function O0(e){const{initial:t,animate:n}=z0(e,k.useContext(lo));return k.useMemo(()=>({initial:t,animate:n}),[ad(t),ad(n)])}function ad(e){return Array.isArray(e)?e.join(" "):e}const I0=Symbol.for("motionComponentSymbol");function zn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function F0(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):zn(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),B0="framerAppearId",Zp="data-"+wu(B0),{schedule:Su}=Qp(queueMicrotask,!1),Jp=k.createContext({});function U0(e,t,n,r,i){var s,o;const{visualElement:a}=k.useContext(lo),l=k.useContext(qp),c=k.useContext(ao),d=k.useContext(mu).reducedMotion,f=k.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,v=k.useContext(Jp);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&$0(f.current,n,i,v);const x=k.useRef(!1);k.useInsertionEffect(()=>{h&&x.current&&h.update(n,c)});const g=n[Zp],C=k.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return bp(()=>{h&&(x.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Su.render(h.render),C.current&&h.animationState&&h.animationState.animateChanges())}),k.useEffect(()=>{h&&(!C.current&&h.animationState&&h.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),C.current=!1))}),h}function $0(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:em(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&zn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function em(e){if(e)return e.options.allowProjection!==!1?e.projection:em(e.parent)}function W0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&D0(e);function a(c,d){let f;const h={...k.useContext(mu),...c,layoutId:H0(c)},{isStatic:v}=h,x=O0(c),g=r(c,v);if(!v&&yu){K0();const C=b0(h);f=C.MeasureLayout,x.visualElement=U0(i,g,h,t,C.ProjectionNode)}return u.jsxs(lo.Provider,{value:x,children:[f&&x.visualElement?u.jsx(f,{visualElement:x.visualElement,...h}):null,n(i,c,F0(g,x.visualElement,d),g,v,x.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=k.forwardRef(a);return l[I0]=i,l}function H0({layoutId:e}){const t=k.useContext(hu).id;return t&&e!==void 0?t+"-"+e:e}function K0(e,t){k.useContext(qp).strict}function b0(e){const{drag:t,layout:n}=rr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const G0=["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 ju(e){return typeof e!="string"||e.includes("-")?!1:!!(G0.indexOf(e)>-1||/[A-Z]/u.test(e))}function ld(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ku(e,t,n,r){if(typeof t=="function"){const[i,s]=ld(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=ld(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const tl=e=>Array.isArray(e),Q0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),q0=e=>tl(e)?e[e.length-1]||0:e,we=e=>!!(e&&e.getVelocity);function is(e){const t=we(e)?e.get():e;return Q0(t)?t.toValue():t}function Y0({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:X0(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const tm=e=>(t,n)=>{const r=k.useContext(lo),i=k.useContext(ao),s=()=>Y0(e,t,r,i);return n?s():pu(s)};function X0(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=is(s[h]);let{initial:o,animate:a}=e;const l=co(e),c=Xp(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!uo(f)){const h=Array.isArray(f)?f:[f];for(let v=0;v<h.length;v++){const x=ku(e,h[v]);if(x){const{transitionEnd:g,transition:C,...m}=x;for(const p in m){let y=m[p];if(Array.isArray(y)){const S=d?y.length-1:0;y=y[S]}y!==null&&(i[p]=y)}for(const p in g)i[p]=g[p]}}}return i}const lr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jn=new Set(lr),nm=e=>t=>typeof t=="string"&&t.startsWith(e),rm=nm("--"),Z0=nm("var(--"),Cu=e=>Z0(e)?J0.test(e.split("/*")[0].trim()):!1,J0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,im=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Tt=(e,t,n)=>n>t?t:n<e?e:n,ur={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oi={...ur,transform:e=>Tt(0,1,e)},Ui={...ur,default:1},yi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mt=yi("deg"),ft=yi("%"),_=yi("px"),e1=yi("vh"),t1=yi("vw"),ud={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)},n1={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,backgroundPositionX:_,backgroundPositionY:_},r1={rotate:Mt,rotateX:Mt,rotateY:Mt,rotateZ:Mt,scale:Ui,scaleX:Ui,scaleY:Ui,scaleZ:Ui,skew:Mt,skewX:Mt,skewY:Mt,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:oi,originX:ud,originY:ud,originZ:_},cd={...ur,transform:Math.round},Pu={...n1,...r1,zIndex:cd,size:_,fillOpacity:oi,strokeOpacity:oi,numOctaves:cd},i1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s1=lr.length;function o1(e,t,n){let r="",i=!0;for(let s=0;s<s1;s++){const o=lr[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=im(a,Pu[o]);if(!l){i=!1;const d=i1[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Tu(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(jn.has(l)){o=!0;continue}else if(rm(l)){i[l]=c;continue}else{const d=im(c,Pu[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=o1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${c} ${d}`}}const a1={offset:"stroke-dashoffset",array:"stroke-dasharray"},l1={offset:"strokeDashoffset",array:"strokeDasharray"};function u1(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?a1:l1;e[s.offset]=_.transform(-r);const o=_.transform(t),a=_.transform(n);e[s.array]=`${o} ${a}`}function dd(e,t,n){return typeof e=="string"?e:_.transform(t+n*e)}function c1(e,t,n){const r=dd(t,e.x,e.width),i=dd(n,e.y,e.height);return`${r} ${i}`}function Nu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},d,f){if(Tu(e,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:v,dimensions:x}=e;h.transform&&(x&&(v.transform=h.transform),delete h.transform),x&&(i!==void 0||s!==void 0||v.transform)&&(v.transformOrigin=c1(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&u1(h,o,a,l,!1)}const Eu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),sm=()=>({...Eu(),attrs:{}}),Mu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function om(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const am=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 lm(e,t,n,r){om(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(am.has(i)?i:wu(i),t.attrs[i])}const zs={};function d1(e){Object.assign(zs,e)}function um(e,{layout:t,layoutId:n}){return jn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zs[e]||e==="opacity")}function Au(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(we(i[o])||t.style&&we(t.style[o])||um(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function cm(e,t,n){const r=Au(e,t,n);for(const i in e)if(we(e[i])||we(t[i])){const s=lr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function f1(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 fd=["x","y","width","height","cx","cy","r"],h1={useVisualState:tm({scrapeMotionValuesFromProps:cm,createRenderState:sm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(jn.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a<fd.length;a++){const l=fd[a];e[l]!==t[l]&&(o=!0)}o&&Q.read(()=>{f1(n,r),Q.render(()=>{Nu(r,i,Mu(n.tagName),e.transformTemplate),lm(n,r)})})}})},p1={useVisualState:tm({scrapeMotionValuesFromProps:Au,createRenderState:Eu})};function dm(e,t,n){for(const r in t)!we(t[r])&&!um(r,n)&&(e[r]=t[r])}function m1({transformTemplate:e},t){return k.useMemo(()=>{const n=Eu();return Tu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function y1(e,t){const n=e.style||{},r={};return dm(r,n,e),Object.assign(r,m1(e,t)),r}function g1(e,t){const n={},r=y1(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 v1(e,t,n,r){const i=k.useMemo(()=>{const s=sm();return Nu(s,t,Mu(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};dm(s,e.style,e),i.style={...s,...i.style}}return i}function x1(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(ju(n)?v1:g1)(r,s,o,n),c=V0(r,typeof n=="string",e),d=n!==k.Fragment?{...c,...l,ref:i}:{},{children:f}=r,h=k.useMemo(()=>we(f)?f.get():f,[f]);return k.createElement(n,{...d,children:h})}}function w1(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...ju(r)?h1:p1,preloadedFeatures:e,useRender:x1(i),createVisualElement:t,Component:r};return W0(o)}}function fm(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 fo(e,t,n){const r=e.getProps();return ku(r,t,n!==void 0?n:r.custom,e)}const S1=gu(()=>window.ScrollTimeline!==void 0);class j1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(S1()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class k1 extends j1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Du(e,t){return e?e[t]||e.default||e:void 0}const nl=2e4;function hm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<nl;)t+=n,r=e.next(t);return t>=nl?1/0:t}function Lu(e){return typeof e=="function"}function hd(e,t){e.timeline=t,e.onfinish=null}const Ru=e=>Array.isArray(e)&&typeof e[0]=="number",C1={linearEasing:void 0};function P1(e,t){const n=gu(e);return()=>{var r;return(r=C1[t])!==null&&r!==void 0?r:n()}}const Os=P1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),pm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(nr(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function mm(e){return!!(typeof e=="function"&&Os()||!e||typeof e=="string"&&(e in rl||Os())||Ru(e)||Array.isArray(e)&&e.every(mm))}const kr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,rl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kr([0,.65,.55,1]),circOut:kr([.55,0,1,.45]),backIn:kr([.31,.01,.66,-.59]),backOut:kr([.33,1.53,.69,.99])};function ym(e,t){if(e)return typeof e=="function"&&Os()?pm(e,t):Ru(e)?kr(e):Array.isArray(e)?e.map(n=>ym(n,t)||rl.easeOut):rl[e]}const Je={x:!1,y:!1};function gm(){return Je.x||Je.y}function T1(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function vm(e,t){const n=T1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function pd(e){return t=>{t.pointerType==="touch"||gm()||e(t)}}function N1(e,t,n={}){const[r,i,s]=vm(e,n),o=pd(a=>{const{target:l}=a,c=t(a);if(typeof c!="function"||!l)return;const d=pd(f=>{c(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,i)});return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const xm=(e,t)=>t?e===t?!0:xm(e,t.parentElement):!1,Vu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,E1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function M1(e){return E1.has(e.tagName)||e.tabIndex!==-1}const Cr=new WeakSet;function md(e){return t=>{t.key==="Enter"&&e(t)}}function Ho(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const A1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=md(()=>{if(Cr.has(n))return;Ho(n,"down");const i=md(()=>{Ho(n,"up")}),s=()=>Ho(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yd(e){return Vu(e)&&!gm()}function D1(e,t,n={}){const[r,i,s]=vm(e,n),o=a=>{const l=a.currentTarget;if(!yd(a)||Cr.has(l))return;Cr.add(l);const c=t(a),d=(v,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!yd(v)||!Cr.has(l))&&(Cr.delete(l),typeof c=="function"&&c(v,{success:x}))},f=v=>{d(v,n.useGlobalTarget||xm(l,v.target))},h=v=>{d(v,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{!M1(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",c=>A1(c,i),i)}),s}function L1(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 wm=new Set(["width","height","top","left","right","bottom",...lr]);let ss;function R1(){ss=void 0}const ht={now:()=>(ss===void 0&&ht.set(fe.isProcessing||E0.useManualTiming?fe.timestamp:performance.now()),ss),set:e=>{ss=e,queueMicrotask(R1)}};function _u(e,t){e.indexOf(t)===-1&&e.push(t)}function zu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ou{constructor(){this.subscriptions=[]}add(t){return _u(this.subscriptions,t),()=>zu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Sm(e,t){return t?e*(1e3/t):0}const gd=30,V1=e=>!isNaN(parseFloat(e));class _1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ht.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=V1(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 Ou);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.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=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>gd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gd);return Sm(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 ai(e,t){return new _1(e,t)}function z1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function O1(e,t){const n=fo(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=q0(s[o]);z1(e,o,a)}}function I1(e){return!!(we(e)&&e.add)}function il(e,t){const n=e.getValue("willChange");if(I1(n))return n.add(t)}function jm(e){return e.props[Zp]}const km=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F1=1e-7,B1=12;function U1(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=km(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>F1&&++a<B1);return o}function gi(e,t,n,r){if(e===t&&n===r)return Fe;const i=s=>U1(s,0,1,e,n);return s=>s===0||s===1?s:km(i(s),t,r)}const Cm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pm=e=>t=>1-e(1-t),Tm=gi(.33,1.53,.69,.99),Iu=Pm(Tm),Nm=Cm(Iu),Em=e=>(e*=2)<1?.5*Iu(e):.5*(2-Math.pow(2,-10*(e-1))),Fu=e=>1-Math.sin(Math.acos(e)),Mm=Pm(Fu),Am=Cm(Fu),Dm=e=>/^0[^.\s]+$/u.test(e);function $1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dm(e):!0}const zr=e=>Math.round(e*1e5)/1e5,Bu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function W1(e){return e==null}const H1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Uu=(e,t)=>n=>!!(typeof n=="string"&&H1.test(n)&&n.startsWith(e)||t&&!W1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Lm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Bu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},K1=e=>Tt(0,255,e),Ko={...ur,transform:e=>Math.round(K1(e))},cn={test:Uu("rgb","red"),parse:Lm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ko.transform(e)+", "+Ko.transform(t)+", "+Ko.transform(n)+", "+zr(oi.transform(r))+")"};function b1(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const sl={test:Uu("#"),parse:b1,transform:cn.transform},On={test:Uu("hsl","hue"),parse:Lm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(zr(t))+", "+ft.transform(zr(n))+", "+zr(oi.transform(r))+")"},ve={test:e=>cn.test(e)||sl.test(e)||On.test(e),parse:e=>cn.test(e)?cn.parse(e):On.test(e)?On.parse(e):sl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cn.transform(e):On.transform(e)},G1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Q1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Bu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(G1))===null||n===void 0?void 0:n.length)||0)>0}const Rm="number",Vm="color",q1="var",Y1="var(",vd="${}",X1=/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 li(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(X1,l=>(ve.test(l)?(r.color.push(s),i.push(Vm),n.push(ve.parse(l))):l.startsWith(Y1)?(r.var.push(s),i.push(q1),n.push(l)):(r.number.push(s),i.push(Rm),n.push(parseFloat(l))),++s,vd)).split(vd);return{values:n,split:a,indexes:r,types:i}}function _m(e){return li(e).values}function zm(e){const{split:t,types:n}=li(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Rm?s+=zr(i[o]):a===Vm?s+=ve.transform(i[o]):s+=i[o]}return s}}const Z1=e=>typeof e=="number"?0:e;function J1(e){const t=_m(e);return zm(e)(t.map(Z1))}const Qt={test:Q1,parse:_m,createTransformer:zm,getAnimatableNone:J1},ex=new Set(["brightness","contrast","saturate","opacity"]);function tx(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Bu)||[];if(!r)return e;const i=n.replace(r,"");let s=ex.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const nx=/\b([a-z-]*)\(.*?\)/gu,ol={...Qt,getAnimatableNone:e=>{const t=e.match(nx);return t?t.map(tx).join(" "):e}},rx={...Pu,color:ve,backgroundColor:ve,outlineColor:ve,fill:ve,stroke:ve,borderColor:ve,borderTopColor:ve,borderRightColor:ve,borderBottomColor:ve,borderLeftColor:ve,filter:ol,WebkitFilter:ol},$u=e=>rx[e];function Om(e,t){let n=$u(e);return n!==ol&&(n=Qt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ix=new Set(["auto","none","0"]);function sx(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!ix.has(s)&&li(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Om(n,i)}const xd=e=>e===ur||e===_,wd=(e,t)=>parseFloat(e.split(", ")[t]),Sd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return wd(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?wd(s[1],e):0}},ox=new Set(["x","y","z"]),ax=lr.filter(e=>!ox.has(e));function lx(e){const t=[];return ax.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ir={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Sd(4,13),y:Sd(5,14)};ir.translateX=ir.x;ir.translateY=ir.y;const hn=new Set;let al=!1,ll=!1;function Im(){if(ll){const e=Array.from(hn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=lx(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ll=!1,al=!1,hn.forEach(e=>e.complete()),hn.clear()}function Fm(){hn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ll=!0)})}function ux(){Fm(),Im()}class Wu{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(hn.add(this),al||(al=!0,Q.read(Fm),Q.resolveKeyframes(Im))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),hn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,hn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Bm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),cx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dx(e){const t=cx.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Um(e,t,n=1){const[r,i]=dx(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Bm(o)?parseFloat(o):o}return Cu(i)?Um(i,t,n+1):i}const $m=e=>t=>t.test(e),fx={test:e=>e==="auto",parse:e=>e},Wm=[ur,_,ft,Mt,t1,e1,fx],jd=e=>Wm.find($m(e));class Hm extends Wu{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Cu(c))){const d=Um(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!wm.has(r)||t.length!==2)return;const[i,s]=t,o=jd(i),a=jd(s);if(o!==a)if(xd(o)&&xd(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)$1(t[i])&&r.push(i);r.length&&sx(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ir[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=ir[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const kd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qt.test(e)||e==="0")&&!e.startsWith("url("));function hx(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 px(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=kd(i,t),a=kd(s,t);return!o||!a?!1:hx(e)||(n==="spring"||Lu(n))&&r}const mx=e=>e!==null;function ho(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(mx),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const yx=40;class Km{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ht.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>yx?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ux(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ht.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!px(t,r,i,s))if(o)this.options.duration=0;else{l&&l(ho(t,this.options,n)),a&&a(),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 Z=(e,t,n)=>e+(t-e)*n;function bo(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 gx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=bo(l,a,e+1/3),s=bo(l,a,e),o=bo(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Is(e,t){return n=>n>0?t:e}const Go=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},vx=[sl,cn,On],xx=e=>vx.find(t=>t.test(e));function Cd(e){const t=xx(e);if(!t)return!1;let n=t.parse(e);return t===On&&(n=gx(n)),n}const Pd=(e,t)=>{const n=Cd(e),r=Cd(t);if(!n||!r)return Is(e,t);const i={...n};return s=>(i.red=Go(n.red,r.red,s),i.green=Go(n.green,r.green,s),i.blue=Go(n.blue,r.blue,s),i.alpha=Z(n.alpha,r.alpha,s),cn.transform(i))},wx=(e,t)=>n=>t(e(n)),vi=(...e)=>e.reduce(wx),ul=new Set(["none","hidden"]);function Sx(e,t){return ul.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jx(e,t){return n=>Z(e,t,n)}function Hu(e){return typeof e=="number"?jx:typeof e=="string"?Cu(e)?Is:ve.test(e)?Pd:Px:Array.isArray(e)?bm:typeof e=="object"?ve.test(e)?Pd:kx:Is}function bm(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Hu(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function kx(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Hu(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Cx(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][i[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const Px=(e,t)=>{const n=Qt.createTransformer(t),r=li(e),i=li(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ul.has(e)&&!i.values.length||ul.has(t)&&!r.values.length?Sx(e,t):vi(bm(Cx(r,i),i.values),n):Is(e,t)};function Gm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Z(e,t,n):Hu(e)(e,t)}const Tx=5;function Qm(e,t,n){const r=Math.max(t-Tx,0);return Sm(n-e(r),t-r)}const te={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Qo=.001;function Nx({duration:e=te.duration,bounce:t=te.bounce,velocity:n=te.velocity,mass:r=te.mass}){let i,s,o=1-t;o=Tt(te.minDamping,te.maxDamping,o),e=Tt(te.minDuration,te.maxDuration,St(e)),o<1?(i=c=>{const d=c*o,f=d*e,h=d-n,v=cl(c,o),x=Math.exp(-f);return Qo-h/v*x},s=c=>{const f=c*o*e,h=f*n+n,v=Math.pow(o,2)*Math.pow(c,2)*e,x=Math.exp(-f),g=cl(Math.pow(c,2),o);return(-i(c)+Qo>0?-1:1)*((h-v)*x)/g}):(i=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Qo+d*f},s=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,l=Mx(i,s,a);if(e=wt(e),isNaN(l))return{stiffness:te.stiffness,damping:te.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Ex=12;function Mx(e,t,n){let r=n;for(let i=1;i<Ex;i++)r=r-e(r)/t(r);return r}function cl(e,t){return e*Math.sqrt(1-t*t)}const Ax=["duration","bounce"],Dx=["stiffness","damping","mass"];function Td(e,t){return t.some(n=>e[n]!==void 0)}function Lx(e){let t={velocity:te.velocity,stiffness:te.stiffness,damping:te.damping,mass:te.mass,isResolvedFromDuration:!1,...e};if(!Td(e,Dx)&&Td(e,Ax))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:te.mass,stiffness:i,damping:s}}else{const n=Nx(e);t={...t,...n,mass:te.mass},t.isResolvedFromDuration=!0}return t}function qm(e=te.visualDuration,t=te.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:v}=Lx({...n,velocity:-St(n.velocity||0)}),x=h||0,g=c/(2*Math.sqrt(l*d)),C=o-s,m=St(Math.sqrt(l/d)),p=Math.abs(C)<5;r||(r=p?te.restSpeed.granular:te.restSpeed.default),i||(i=p?te.restDelta.granular:te.restDelta.default);let y;if(g<1){const w=cl(m,g);y=j=>{const T=Math.exp(-g*m*j);return o-T*((x+g*m*C)/w*Math.sin(w*j)+C*Math.cos(w*j))}}else if(g===1)y=w=>o-Math.exp(-m*w)*(C+(x+m*C)*w);else{const w=m*Math.sqrt(g*g-1);y=j=>{const T=Math.exp(-g*m*j),N=Math.min(w*j,300);return o-T*((x+g*m*C)*Math.sinh(N)+w*C*Math.cosh(N))/w}}const S={calculatedDuration:v&&f||null,next:w=>{const j=y(w);if(v)a.done=w>=f;else{let T=0;g<1&&(T=w===0?wt(x):Qm(y,w,j));const N=Math.abs(T)<=r,V=Math.abs(o-j)<=i;a.done=N&&V}return a.value=a.done?o:j,a},toString:()=>{const w=Math.min(hm(S),nl),j=pm(T=>S.next(w*T).value,w,30);return w+"ms "+j}};return S}function Nd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},v=N=>a!==void 0&&N<a||l!==void 0&&N>l,x=N=>a===void 0?l:l===void 0||Math.abs(a-N)<Math.abs(l-N)?a:l;let g=n*t;const C=f+g,m=o===void 0?C:o(C);m!==C&&(g=m-f);const p=N=>-g*Math.exp(-N/r),y=N=>m+p(N),S=N=>{const V=p(N),M=y(N);h.done=Math.abs(V)<=c,h.value=h.done?m:M};let w,j;const T=N=>{v(h.value)&&(w=N,j=qm({keyframes:[h.value,x(h.value)],velocity:Qm(y,N,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return T(0),{calculatedDuration:null,next:N=>{let V=!1;return!j&&w===void 0&&(V=!0,S(N),T(N)),w!==void 0&&N>=w?j.next(N-w):(!V&&S(N),h)}}}const Rx=gi(.42,0,1,1),Vx=gi(0,0,.58,1),Ym=gi(.42,0,.58,1),_x=e=>Array.isArray(e)&&typeof e[0]!="number",zx={linear:Fe,easeIn:Rx,easeInOut:Ym,easeOut:Vx,circIn:Fu,circInOut:Am,circOut:Mm,backIn:Iu,backInOut:Nm,backOut:Tm,anticipate:Em},Ed=e=>{if(Ru(e)){Gp(e.length===4);const[t,n,r,i]=e;return gi(t,n,r,i)}else if(typeof e=="string")return zx[e];return e};function Ox(e,t,n){const r=[],i=n||Gm,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Fe:t;a=vi(l,a)}r.push(a)}return r}function Ix(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Gp(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ox(t,r,i),l=a.length,c=d=>{if(o&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=nr(e[f],e[f+1],d);return a[f](h)};return n?d=>c(Tt(e[0],e[s-1],d)):c}function Fx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=nr(0,t,r);e.push(Z(n,1,i))}}function Bx(e){const t=[0];return Fx(t,e.length-1),t}function Ux(e,t){return e.map(n=>n*t)}function $x(e,t){return e.map(()=>t||Ym).splice(0,e.length-1)}function Fs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_x(r)?r.map(Ed):Ed(r),s={done:!1,value:t[0]},o=Ux(n&&n.length===t.length?n:Bx(t),e),a=Ix(o,t,{ease:Array.isArray(i)?i:$x(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Wx=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Q.update(t,!0),stop:()=>Gt(t),now:()=>fe.isProcessing?fe.timestamp:ht.now()}},Hx={decay:Nd,inertia:Nd,tween:Fs,keyframes:Fs,spring:qm},Kx=e=>e/100;class Ku extends Km{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Wu,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=Lu(n)?n:Hx[n]||Fs;let l,c;a!==Fs&&typeof t[0]!="number"&&(l=vi(Kx,Gm(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});s==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=hm(d));const{calculatedDuration:f}=d,h=f+i,v=h*(r+1)-i;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:v}}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:N}=this.options;return{done:!0,value:N[N.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:h,repeat:v,repeatType:x,repeatDelay:g,onUpdate:C}=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-h*(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 y=this.currentTime,S=s;if(v){const N=Math.min(this.currentTime,d)/f;let V=Math.floor(N),M=N%1;!M&&N>=1&&(M=1),M===1&&V--,V=Math.min(V,v+1),!!(V%2)&&(x==="reverse"?(M=1-M,g&&(M-=g/f)):x==="mirror"&&(S=o)),y=Tt(0,1,M)*f}const w=p?{done:!1,value:l[0]}:S.next(y);a&&(w.value=a(w.value));let{done:j}=w;!p&&c!==null&&(j=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return T&&i!==void 0&&(w.value=ho(l,this.options,i)),C&&C(w.value),T&&this.finish(),w}get duration(){const{resolved:t}=this;return t?St(t.calculatedDuration):0}get time(){return St(this.currentTime)}set time(t){t=wt(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=St(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Wx,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const bx=new Set(["opacity","clipPath","filter","transform"]);function Gx(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=ym(a,i);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Qx=gu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bs=10,qx=2e4;function Yx(e){return Lu(e.type)||e.type==="spring"||!mm(e.ease)}function Xx(e,t){const n=new Ku({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<qx;)r=n.sample(s),i.push(r.value),s+=Bs;return{times:void 0,keyframes:i,duration:s-Bs,ease:"linear"}}const Xm={anticipate:Em,backInOut:Nm,circInOut:Am};function Zx(e){return e in Xm}class Md extends Km{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Hm(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Os()&&Zx(s)&&(s=Xm[s]),Yx(this.options)){const{onComplete:f,onUpdate:h,motionValue:v,element:x,...g}=this.options,C=Xx(t,g);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,i=C.times,s=C.ease,o="keyframes"}const d=Gx(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(hd(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;a.set(ho(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return St(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return St(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wt(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 Fe;const{animation:r}=n;hd(r,t)}return Fe}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,element:h,...v}=this.options,x=new Ku({...v,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),g=wt(this.time);c.setWithVelocity(x.sample(g-Bs).value,x.sample(g).value,Bs)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Qx()&&r&&bx.has(r)&&!l&&!c&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const Jx={type:"spring",stiffness:500,damping:25,restSpeed:10},ew=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tw={type:"keyframes",duration:.8},nw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rw=(e,{keyframes:t})=>t.length>2?tw:jn.has(e)?e.startsWith("scale")?ew(t[1]):Jx:nw;function iw({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const bu=(e,t,n,r={},i,s)=>o=>{const a=Du(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-wt(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};iw(a)||(d={...d,...rw(e,d)}),d.duration&&(d.duration=wt(d.duration)),d.repeatDelay&&(d.repeatDelay=wt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const h=ho(d.keyframes,a);if(h!==void 0)return Q.update(()=>{d.onUpdate(h),d.onComplete()}),new k1([])}return!s&&Md.supports(d)?new Md(d):new Ku(d)};function sw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Zm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const h=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),v=l[f];if(v===void 0||d&&sw(d,f))continue;const x={delay:n,...Du(o||{},f)};let g=!1;if(window.MotionHandoffAnimation){const m=jm(e);if(m){const p=window.MotionHandoffAnimation(m,f,Q);p!==null&&(x.startTime=p,g=!0)}}il(e,f),h.start(bu(f,h,v,e.shouldReduceMotion&&wm.has(f)?{type:!1}:x,e,g));const C=h.animation;C&&c.push(C)}return a&&Promise.all(c).then(()=>{Q.update(()=>{a&&O1(e,a)})}),c}function dl(e,t,n={}){var r;const i=fo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Zm(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return ow(e,t,d+c,f,h,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,d]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>d())}else return Promise.all([o(),a(n.delay)])}function ow(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(aw).forEach((c,d)=>{c.notify("AnimationStart",t),o.push(dl(c,t,{...s,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function aw(e,t){return e.sortNodePosition(t)}function lw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>dl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=dl(e,t,n);else{const i=typeof t=="function"?fo(e,t,n.custom):t;r=Promise.all(Zm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const uw=xu.length;function Jm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Jm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<uw;n++){const r=xu[n],i=e.props[r];(si(i)||i===!1)&&(t[r]=i)}return t}const cw=[...vu].reverse(),dw=vu.length;function fw(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lw(e,n,r)))}function hw(e){let t=fw(e),n=Ad(),r=!0;const i=l=>(c,d)=>{var f;const h=fo(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:v,transitionEnd:x,...g}=h;c={...c,...g,...x}}return c};function s(l){t=l(e)}function o(l){const{props:c}=e,d=Jm(e.parent)||{},f=[],h=new Set;let v={},x=1/0;for(let C=0;C<dw;C++){const m=cw[C],p=n[m],y=c[m]!==void 0?c[m]:d[m],S=si(y),w=m===l?p.isActive:null;w===!1&&(x=C);let j=y===d[m]&&y!==c[m]&&S;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),p.protectedKeys={...v},!p.isActive&&w===null||!y&&!p.prevProp||uo(y)||typeof y=="boolean")continue;const T=pw(p.prevProp,y);let N=T||m===l&&p.isActive&&!j&&S||C>x&&S,V=!1;const M=Array.isArray(y)?y:[y];let W=M.reduce(i(m),{});w===!1&&(W={});const{prevResolvedValues:me={}}=p,Ne={...me,...W},Ee=$=>{N=!0,h.has($)&&(V=!0,h.delete($)),p.needsAnimating[$]=!0;const P=e.getValue($);P&&(P.liveStyle=!1)};for(const $ in Ne){const P=W[$],A=me[$];if(v.hasOwnProperty($))continue;let R=!1;tl(P)&&tl(A)?R=!fm(P,A):R=P!==A,R?P!=null?Ee($):h.add($):P!==void 0&&h.has($)?Ee($):p.protectedKeys[$]=!0}p.prevProp=y,p.prevResolvedValues=W,p.isActive&&(v={...v,...W}),r&&e.blockInitialAnimation&&(N=!1),N&&(!(j&&T)||V)&&f.push(...M.map($=>({animation:$,options:{type:m}})))}if(h.size){const C={};h.forEach(m=>{const p=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),C[m]=p??null}),f.push({animation:C})}let g=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(l,c)}),n[l].isActive=c;const f=o(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Ad(),r=!0}}}function pw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fm(t,e):!1}function en(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ad(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mw extends Zt{constructor(t){super(t),t.animationState||(t.animationState=hw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();uo(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 yw=0;class gw extends Zt{constructor(){super(...arguments),this.id=yw++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const vw={animation:{Feature:mw},exit:{Feature:gw}};function ui(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function xi(e){return{point:{x:e.pageX,y:e.pageY}}}const xw=e=>t=>Vu(t)&&e(t,xi(t));function Or(e,t,n,r){return ui(e,t,xw(n),r)}const Dd=(e,t)=>Math.abs(e-t);function ww(e,t){const n=Dd(e.x,t.x),r=Dd(e.y,t.y);return Math.sqrt(n**2+r**2)}class ey{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Yo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,v=ww(f.offset,{x:0,y:0})>=3;if(!h&&!v)return;const{point:x}=f,{timestamp:g}=fe;this.history.push({...x,timestamp:g});const{onStart:C,onMove:m}=this.handlers;h||(C&&C(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=qo(h,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Yo(f.type==="pointercancel"?this.lastMoveEventInfo:qo(h,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,C),x&&x(f,C)},!Vu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=xi(t),a=qo(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=fe;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Yo(a,this.history)),this.removeListeners=vi(Or(this.contextWindow,"pointermove",this.handlePointerMove),Or(this.contextWindow,"pointerup",this.handlePointerUp),Or(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Gt(this.updatePoint)}}function qo(e,t){return t?{point:t(e.point)}:e}function Ld(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yo({point:e},t){return{point:e,delta:Ld(e,ty(t)),offset:Ld(e,Sw(t)),velocity:jw(t,.1)}}function Sw(e){return e[0]}function ty(e){return e[e.length-1]}function jw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ty(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wt(t)));)n--;if(!r)return{x:0,y:0};const s=St(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const ny=1e-4,kw=1-ny,Cw=1+ny,ry=.01,Pw=0-ry,Tw=0+ry;function Ue(e){return e.max-e.min}function Nw(e,t,n){return Math.abs(e-t)<=n}function Rd(e,t,n,r=.5){e.origin=r,e.originPoint=Z(t.min,t.max,e.origin),e.scale=Ue(n)/Ue(t),e.translate=Z(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kw&&e.scale<=Cw||isNaN(e.scale))&&(e.scale=1),(e.translate>=Pw&&e.translate<=Tw||isNaN(e.translate))&&(e.translate=0)}function Ir(e,t,n,r){Rd(e.x,t.x,n.x,r?r.originX:void 0),Rd(e.y,t.y,n.y,r?r.originY:void 0)}function Vd(e,t,n){e.min=n.min+t.min,e.max=e.min+Ue(t)}function Ew(e,t,n){Vd(e.x,t.x,n.x),Vd(e.y,t.y,n.y)}function _d(e,t,n){e.min=t.min-n.min,e.max=e.min+Ue(t)}function Fr(e,t,n){_d(e.x,t.x,n.x),_d(e.y,t.y,n.y)}function Mw(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Z(n,e,r.max):Math.min(e,n)),e}function zd(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 Aw(e,{top:t,left:n,bottom:r,right:i}){return{x:zd(e.x,n,i),y:zd(e.y,t,r)}}function Od(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 Dw(e,t){return{x:Od(e.x,t.x),y:Od(e.y,t.y)}}function Lw(e,t){let n=.5;const r=Ue(e),i=Ue(t);return i>r?n=nr(t.min,t.max-r,e.min):r>i&&(n=nr(e.min,e.max-i,t.min)),Tt(0,1,n)}function Rw(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 fl=.35;function Vw(e=fl){return e===!1?e=0:e===!0&&(e=fl),{x:Id(e,"left","right"),y:Id(e,"top","bottom")}}function Id(e,t,n){return{min:Fd(e,t),max:Fd(e,n)}}function Fd(e,t){return typeof e=="number"?e:e[t]||0}const Bd=()=>({translate:0,scale:1,origin:0,originPoint:0}),In=()=>({x:Bd(),y:Bd()}),Ud=()=>({min:0,max:0}),re=()=>({x:Ud(),y:Ud()});function Ke(e){return[e("x"),e("y")]}function iy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _w({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zw(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 Xo(e){return e===void 0||e===1}function hl({scale:e,scaleX:t,scaleY:n}){return!Xo(e)||!Xo(t)||!Xo(n)}function sn(e){return hl(e)||sy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sy(e){return $d(e.x)||$d(e.y)}function $d(e){return e&&e!=="0%"}function Us(e,t,n){const r=e-n,i=t*r;return n+i}function Wd(e,t,n,r,i){return i!==void 0&&(e=Us(e,i,r)),Us(e,n,r)+t}function pl(e,t=0,n=1,r,i){e.min=Wd(e.min,t,n,r,i),e.max=Wd(e.max,t,n,r,i)}function oy(e,{x:t,y:n}){pl(e.x,t.translate,t.scale,t.originPoint),pl(e.y,n.translate,n.scale,n.originPoint)}const Hd=.999999999999,Kd=1.0000000000001;function Ow(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Bn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,oy(e,o)),r&&sn(s.latestValues)&&Bn(e,s.latestValues))}t.x<Kd&&t.x>Hd&&(t.x=1),t.y<Kd&&t.y>Hd&&(t.y=1)}function Fn(e,t){e.min=e.min+t,e.max=e.max+t}function bd(e,t,n,r,i=.5){const s=Z(e.min,e.max,i);pl(e,t,n,s,r)}function Bn(e,t){bd(e.x,t.x,t.scaleX,t.scale,t.originX),bd(e.y,t.y,t.scaleY,t.scale,t.originY)}function ay(e,t){return iy(zw(e.getBoundingClientRect(),t))}function Iw(e,t,n){const r=ay(e,n),{scroll:i}=t;return i&&(Fn(r.x,i.offset.x),Fn(r.y,i.offset.y)),r}const ly=({current:e})=>e?e.ownerDocument.defaultView:null,Fw=new WeakMap;class Bw{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=re(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xi(d).point)},s=(d,f)=>{const{drag:h,dragPropagation:v,onDragStart:x}=this.getProps();if(h&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=L1(h),!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),Ke(C=>{let m=this.getAxisMotionValue(C).get()||0;if(ft.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const y=p.layout.layoutBox[C];y&&(m=Ue(y)*(parseFloat(m)/100))}}this.originPoint[C]=m}),x&&Q.postRender(()=>x(d,f)),il(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:h,dragDirectionLock:v,onDirectionLock:x,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:C}=f;if(v&&this.currentDirection===null){this.currentDirection=Uw(C),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,C),this.updateAxis("y",f.point,C),this.visualElement.render(),g&&g(d,f)},a=(d,f)=>this.stop(d,f),l=()=>Ke(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ey(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:ly(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Q.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!$i(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Mw(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&zn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Aw(i.layoutBox,n):this.constraints=!1,this.elastic=Vw(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ke(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Rw(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!zn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Iw(r,i.root,this.visualElement.getTransformPagePoint());let o=Dw(i.layout.layoutBox,s);if(n){const a=n(_w(o));this.hasMutatedConstraints=!!a,a&&(o=iy(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Ke(d=>{if(!$i(d,n,this.currentDirection))return;let f=l&&l[d]||{};o&&(f={min:0,max:0});const h=i?200:1e6,v=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return il(this.visualElement,t),r.start(bu(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ke(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ke(n=>{const{drag:r}=this.getProps();if(!$i(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Z(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!zn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ke(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Lw({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ke(o=>{if(!$i(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Z(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Fw.set(this.visualElement,this);const t=this.visualElement.current,n=Or(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();zn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Q.read(r);const o=ui(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ke(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=fl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function $i(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Uw(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $w extends Zt{constructor(t){super(t),this.removeGroupControls=Fe,this.removeListeners=Fe,this.controls=new Bw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gd=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))};class Ww extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Fe}onPointerDown(t){this.session=new ey(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ly(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Gd(t),onStart:Gd(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Q.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Or(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 os={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=Qd(e,t.target.x),r=Qd(e,t.target.y);return`${n}% ${r}%`}},Hw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qt.parse(e);if(i.length>5)return r;const s=Qt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const c=Z(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class Kw extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;d1(bw),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),os.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Q.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Su.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function uy(e){const[t,n]=Kp(),r=k.useContext(hu);return u.jsx(Kw,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(Jp),isPresent:t,safeToRemove:n})}const bw={borderRadius:{...vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vr,borderTopRightRadius:vr,borderBottomLeftRadius:vr,borderBottomRightRadius:vr,boxShadow:Hw};function Gw(e,t,n){const r=we(e)?e:ai(e);return r.start(bu("",r,t,n)),r.animation}function Qw(e){return e instanceof SVGElement&&e.tagName!=="svg"}const qw=(e,t)=>e.depth-t.depth;class Yw{constructor(){this.children=[],this.isDirty=!1}add(t){_u(this.children,t),this.isDirty=!0}remove(t){zu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(qw),this.isDirty=!1,this.children.forEach(t)}}function Xw(e,t){const n=ht.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Gt(r),e(s-t))};return Q.read(r,!0),()=>Gt(r)}const cy=["TopLeft","TopRight","BottomLeft","BottomRight"],Zw=cy.length,qd=e=>typeof e=="string"?parseFloat(e):e,Yd=e=>typeof e=="number"||_.test(e);function Jw(e,t,n,r,i,s){i?(e.opacity=Z(0,n.opacity!==void 0?n.opacity:1,eS(r)),e.opacityExit=Z(t.opacity!==void 0?t.opacity:1,0,tS(r))):s&&(e.opacity=Z(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Zw;o++){const a=`border${cy[o]}Radius`;let l=Xd(t,a),c=Xd(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Yd(l)===Yd(c)?(e[a]=Math.max(Z(qd(l),qd(c),r),0),(ft.test(c)||ft.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=Z(t.rotate||0,n.rotate||0,r))}function Xd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eS=dy(0,.5,Mm),tS=dy(.5,.95,Fe);function dy(e,t,n){return r=>r<e?0:r>t?1:n(nr(e,t,r))}function Zd(e,t){e.min=t.min,e.max=t.max}function He(e,t){Zd(e.x,t.x),Zd(e.y,t.y)}function Jd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ef(e,t,n,r,i){return e-=t,e=Us(e,1/n,r),i!==void 0&&(e=Us(e,1/i,r)),e}function nS(e,t=0,n=1,r=.5,i,s=e,o=e){if(ft.test(t)&&(t=parseFloat(t),t=Z(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Z(s.min,s.max,r);e===s&&(a-=t),e.min=ef(e.min,t,n,a,i),e.max=ef(e.max,t,n,a,i)}function tf(e,t,[n,r,i],s,o){nS(e,t[n],t[r],t[i],t.scale,s,o)}const rS=["x","scaleX","originX"],iS=["y","scaleY","originY"];function nf(e,t,n,r){tf(e.x,t,rS,n?n.x:void 0,r?r.x:void 0),tf(e.y,t,iS,n?n.y:void 0,r?r.y:void 0)}function rf(e){return e.translate===0&&e.scale===1}function fy(e){return rf(e.x)&&rf(e.y)}function sf(e,t){return e.min===t.min&&e.max===t.max}function sS(e,t){return sf(e.x,t.x)&&sf(e.y,t.y)}function of(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function hy(e,t){return of(e.x,t.x)&&of(e.y,t.y)}function af(e){return Ue(e.x)/Ue(e.y)}function lf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oS{constructor(){this.members=[]}add(t){_u(this.members,t),t.scheduleRender()}remove(t){if(zu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function aS(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:h,skewX:v,skewY:x}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),v&&(r+=`skewX(${v}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const on={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Pr=typeof window<"u"&&window.MotionDebug!==void 0,Zo=["","X","Y","Z"],lS={visibility:"hidden"},uf=1e3;let uS=0;function Jo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function py(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=jm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&py(r)}function my({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=uS++,this.animationId=0,this.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,Pr&&(on.totalNodes=on.resolvedTargetDeltas=on.recalculatedProjection=0),this.nodes.forEach(fS),this.nodes.forEach(gS),this.nodes.forEach(vS),this.nodes.forEach(hS),Pr&&window.MotionDebug.record(on)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yw)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Ou),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Qw(o),this.instance=o;const{layoutId:l,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),a&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Xw(h,250),os.hasAnimatedSinceResize&&(os.hasAnimatedSinceResize=!1,this.nodes.forEach(df))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||kS,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!hy(this.targetLayout,x)||v,y=!h&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const S={...Du(g,"layout"),onPlay:C,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else h||df(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Gt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xS),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&&py(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const 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(cf);return}this.isUpdating||this.nodes.forEach(mS),this.isUpdating=!1,this.nodes.forEach(yS),this.nodes.forEach(cS),this.nodes.forEach(dS),this.clearAllSnapshots();const a=ht.now();fe.delta=Tt(0,1e3/60,a-fe.timestamp),fe.timestamp=a,fe.isProcessing=!0,Wo.update.process(fe),Wo.preRender.process(fe),Wo.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Su.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pS),this.sharedNodes.forEach(wS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!fy(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&(a||sn(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),CS(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return re();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(PS))){const{scroll:d}=this.root;d&&(Fn(l.x,d.offset.x),Fn(l.y,d.offset.y))}return l}removeElementScroll(o){var a;const l=re();if(He(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&He(l,o),Fn(l.x,f.offset.x),Fn(l.y,f.offset.y))}return l}applyTransform(o,a=!1){const l=re();He(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Bn(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),sn(d.latestValues)&&Bn(l,d.latestValues)}return sn(this.latestValues)&&Bn(l,this.latestValues),l}removeTransform(o){const a=re();He(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!sn(c.latestValues))continue;hl(c.latestValues)&&c.updateSnapshot();const d=re(),f=c.measurePageBox();He(d,f),nf(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return sn(this.latestValues)&&nf(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=fe.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),Fr(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ew(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):He(this.target,this.layout.layoutBox),oy(this.target,this.targetDelta)):He(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),Fr(this.relativeTargetOrigin,this.target,v.target),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Pr&&on.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||hl(this.parent.latestValues)||sy(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 a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(c=!1),c)return;const{layout:d,layoutId:f}=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||f))return;He(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,v=this.treeScale.y;Ow(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=re());const{target:x}=a;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jd(this.prevProjectionDelta.x,this.projectionDelta.x),Jd(this.prevProjectionDelta.y,this.projectionDelta.y)),Ir(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==v||!lf(this.projectionDelta.x,this.prevProjectionDelta.x)||!lf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),Pr&&on.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=In(),this.projectionDelta=In(),this.projectionDeltaWithTransform=In()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},f=In();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=re(),v=l?l.source:void 0,x=this.layout?this.layout.source:void 0,g=v!==x,C=this.getStack(),m=!C||C.members.length<=1,p=!!(g&&!m&&this.options.crossfade===!0&&!this.path.some(jS));this.animationProgress=0;let y;this.mixTargetDelta=S=>{const w=S/1e3;ff(f.x,o.x,w),ff(f.y,o.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),SS(this.relativeTarget,this.relativeTargetOrigin,h,w),y&&sS(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=re()),He(y,this.relativeTarget)),g&&(this.animationValues=d,Jw(d,c,this.latestValues,w,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},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&&(Gt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{os.hasAnimatedSinceResize=!0,this.currentAnimation=Gw(0,uf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},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(uf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&yy(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||re();const f=Ue(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Ue(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}He(a,l),Bn(a,d),Ir(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new oS),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(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:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Jo("z",o,c,this.animationValues);for(let d=0;d<Zo.length;d++)Jo(`rotate${Zo[d]}`,o,c,this.animationValues),Jo(`skew${Zo[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 a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return lS;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=is(o==null?void 0:o.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=is(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!sn(this.latestValues)&&(g.transform=d?d({},""):"none",this.hasProjected=!1),g}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=aS(this.projectionDeltaWithTransform,this.treeScale,h),d&&(c.transform=d(h,c.transform));const{x:v,y:x}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in zs){if(h[g]===void 0)continue;const{correct:C,applyTo:m}=zs[g],p=c.transform==="none"?h[g]:C(h[g],f);if(m){const y=m.length;for(let S=0;S<y;S++)c[m[S]]=p}else c[g]=p}return this.options.layoutId&&(c.pointerEvents=f===this?is(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(cf),this.root.sharedNodes.clear()}}}function cS(e){e.updateLayout()}function dS(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Ke(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],v=Ue(h);h.min=r[f].min,h.max=h.min+v}):yy(s,n.layoutBox,r)&&Ke(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],v=Ue(r[f]);h.max=h.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+v)});const a=In();Ir(a,r,n.layoutBox);const l=In();o?Ir(l,e.applyTransform(i,!0),n.measuredBox):Ir(l,r,n.layoutBox);const c=!fy(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:v}=f;if(h&&v){const x=re();Fr(x,n.layoutBox,h.layoutBox);const g=re();Fr(g,r,v.layoutBox),hy(x,g)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function fS(e){Pr&&on.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 hS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pS(e){e.clearSnapshot()}function cf(e){e.clearMeasurements()}function mS(e){e.isLayoutDirty=!1}function yS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function df(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gS(e){e.resolveTargetDelta()}function vS(e){e.calcProjection()}function xS(e){e.resetSkewAndRotation()}function wS(e){e.removeLeadSnapshot()}function ff(e,t,n){e.translate=Z(t.translate,0,n),e.scale=Z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hf(e,t,n,r){e.min=Z(t.min,n.min,r),e.max=Z(t.max,n.max,r)}function SS(e,t,n,r){hf(e.x,t.x,n.x,r),hf(e.y,t.y,n.y,r)}function jS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kS={duration:.45,ease:[.4,0,.1,1]},pf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mf=pf("applewebkit/")&&!pf("chrome/")?Math.round:Fe;function yf(e){e.min=mf(e.min),e.max=mf(e.max)}function CS(e){yf(e.x),yf(e.y)}function yy(e,t,n){return e==="position"||e==="preserve-aspect"&&!Nw(af(t),af(n),.2)}function PS(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const TS=my({attachResizeListener:(e,t)=>ui(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ea={current:void 0},gy=my({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ea.current){const e=new TS({});e.mount(window),e.setOptions({layoutScroll:!0}),ea.current=e}return ea.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),NS={pan:{Feature:Ww},drag:{Feature:$w,ProjectionNode:gy,MeasureLayout:uy}};function gf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Q.postRender(()=>s(t,xi(t)))}class ES extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=N1(t,n=>(gf(this.node,n,"Start"),r=>gf(this.node,r,"End"))))}unmount(){}}class MS extends Zt{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=vi(ui(this.node.current,"focus",()=>this.onFocus()),ui(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Q.postRender(()=>s(t,xi(t)))}class AS extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=D1(t,n=>(vf(this.node,n,"Start"),(r,{success:i})=>vf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ml=new WeakMap,ta=new WeakMap,DS=e=>{const t=ml.get(e.target);t&&t(e)},LS=e=>{e.forEach(DS)};function RS({root:e,...t}){const n=e||document;ta.has(n)||ta.set(n,{});const r=ta.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(LS,{root:e,...t})),r[i]}function VS(e,t,n){const r=RS(t);return ml.set(e,n),r.observe(e),()=>{ml.delete(e),r.unobserve(e)}}const _S={some:0,all:1};class zS extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:_S[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=c?d:f;h&&h(l)};return VS(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(OS(t,n))&&this.startObserver()}unmount(){}}function OS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const IS={inView:{Feature:zS},tap:{Feature:AS},focus:{Feature:MS},hover:{Feature:ES}},FS={layout:{ProjectionNode:gy,MeasureLayout:uy}},yl={current:null},vy={current:!1};function BS(){if(vy.current=!0,!!yu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yl.current=e.matches;e.addListener(t),t()}else yl.current=!1}const US=[...Wm,ve,Qt],$S=e=>US.find($m(e)),xf=new WeakMap;function WS(e,t,n){for(const r in t){const i=t[r],s=n[r];if(we(i))e.addValue(r,i);else if(we(s))e.addValue(r,ai(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,ai(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class HS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Wu,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 v=ht.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Q.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=co(n),this.isVariantNode=Xp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in h){const x=h[v];l[v]!==void 0&&we(x)&&x.set(l[v],!1)}}mount(t){this.current=t,xf.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)),vy.current||BS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xf.delete(this.current),this.projection&&this.projection.unmount(),Gt(this.notifyUpdate),Gt(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=jn.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in rr){const n=rr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):re()}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<wf.length;r++){const i=wf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=WS(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=ai(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Bm(i)||Dm(i))?i=parseFloat(i):!$S(i)&&Qt.test(n)&&(i=Om(t,n)),this.setBaseTarget(t,we(i)?i.get():i)),we(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=ku(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!we(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ou),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xy extends HS{constructor(){super(...arguments),this.KeyframeResolver=Hm}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;we(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function KS(e){return window.getComputedStyle(e)}class bS extends xy{constructor(){super(...arguments),this.type="html",this.renderInstance=om}readValueFromInstance(t,n){if(jn.has(n)){const r=$u(n);return r&&r.default||0}else{const r=KS(t),i=(rm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ay(t,n)}build(t,n,r){Tu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Au(t,n,r)}}class GS extends xy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=re}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(jn.has(n)){const r=$u(n);return r&&r.default||0}return n=am.has(n)?n:wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return cm(t,n,r)}build(t,n,r){Nu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){lm(t,n,r,i)}mount(t){this.isSVGTag=Mu(t.tagName),super.mount(t)}}const QS=(e,t)=>ju(e)?new GS(t):new bS(t,{allowProjection:e!==k.Fragment}),qS=w1({...vw,...IS,...NS,...FS},QS),tn=_0(qS);function Sf(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 YS(e){if(Array.isArray(e))return e}function XS(e,t,n){return(t=i2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}function JS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
279
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jf(Object(n),!0).forEach(function(r){XS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e2(e,t){if(e==null)return{};var n,r,i=t2(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function t2(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 n2(e,t){return YS(e)||ZS(e,t)||s2(e,t)||JS()}function r2(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 i2(e){var t=r2(e,"string");return typeof t=="symbol"?t:t+""}function s2(e,t){if(e){if(typeof e=="string")return Sf(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)?Sf(e,t):void 0}}function o2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cf(Object(n),!0).forEach(function(r){o2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a2(){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(i,s){return s(i)},r)}}function Tr(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function $s(e){return{}.toString.call(e).includes("Object")}function l2(e){return!Object.keys(e).length}function ci(e){return typeof e=="function"}function u2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c2(e,t){return $s(t)||Ht("changeType"),Object.keys(t).some(function(n){return!u2(e,n)})&&Ht("changeField"),t}function d2(e){ci(e)||Ht("selectorType")}function f2(e){ci(e)||$s(e)||Ht("handlerType"),$s(e)&&Object.values(e).some(function(t){return!ci(t)})&&Ht("handlersType")}function h2(e){e||Ht("initialIsRequired"),$s(e)||Ht("initialType"),l2(e)&&Ht("initialContent")}function p2(e,t){throw new Error(e[t]||e.default)}var m2={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"},Ht=Tr(p2)(m2),Wi={changes:c2,selector:d2,handler:f2,initial:h2};function y2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wi.initial(e),Wi.handler(t);var n={current:e},r=Tr(x2)(n,t),i=Tr(v2)(n),s=Tr(Wi.changes)(e),o=Tr(g2)(n);function a(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return Wi.selector(c),c(n.current)}function l(c){a2(r,i,s,o)(c)}return[a,l]}function g2(e,t){return ci(t)?t(e.current):t}function v2(e,t){return e.current=Pf(Pf({},e.current),t),t}function x2(e,t,n){return ci(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var w2={create:y2},S2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function j2(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function k2(e){return{}.toString.call(e).includes("Object")}function C2(e){return e||Tf("configIsRequired"),k2(e)||Tf("configType"),e.urls?(P2(),{paths:{vs:e.urls.monacoBase}}):e}function P2(){console.warn(wy.deprecation)}function T2(e,t){throw new Error(e[t]||e.default)}var wy={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!
280
+ You are using deprecated way of configuration.
281
+
282
+ Instead of using
283
+ monaco.config({ urls: { monacoBase: '...' } })
284
+ use
285
+ monaco.config({ paths: { vs: '...' } })
286
+
287
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
288
+ `},Tf=j2(T2)(wy),N2={config:C2},E2=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(i){return n.reduceRight(function(s,o){return o(s)},i)}};function Sy(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Sy(e[n],t[n]))}),kf(kf({},e),t)}var M2={type:"cancelation",msg:"operation is manually canceled"};function na(e){var t=!1,n=new Promise(function(r,i){e.then(function(s){return t?i(M2):r(s)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var A2=["monaco"],D2=w2.create({config:S2,isInitialized:!1,resolve:null,reject:null,monaco:null}),jy=n2(D2,2),wi=jy[0],po=jy[1];function L2(e){var t=N2.config(e),n=t.monaco,r=e2(t,A2);po(function(i){return{config:Sy(i.config,r),monaco:n}})}function R2(){var e=wi(function(t){var n=t.monaco,r=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:r,resolve:i}});if(!e.isInitialized){if(po({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),na(ra);if(window.monaco&&window.monaco.editor)return ky(window.monaco),e.resolve(window.monaco),na(ra);E2(V2,z2)(O2)}return na(ra)}function V2(e){return document.body.appendChild(e)}function _2(e){var t=document.createElement("script");return e&&(t.src=e),t}function z2(e){var t=wi(function(r){var i=r.config,s=r.reject;return{config:i,reject:s}}),n=_2("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function O2(){var e=wi(function(n){var r=n.config,i=n.resolve,s=n.reject;return{config:r,resolve:i,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;ky(r),e.resolve(r)},function(n){e.reject(n)})}function ky(e){wi().monaco||po({monaco:e})}function I2(){return wi(function(e){var t=e.monaco;return t})}var ra=new Promise(function(e,t){return po({resolve:e,reject:t})}),Cy={config:L2,init:R2,__getMonacoInstance:I2},F2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ia=F2,B2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},U2=B2;function $2({children:e}){return ze.createElement("div",{style:U2.container},e)}var W2=$2,H2=W2;function K2({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:s,wrapperProps:o}){return ze.createElement("section",{style:{...ia.wrapper,width:e,height:t},...o},!n&&ze.createElement(H2,null,r),ze.createElement("div",{ref:i,style:{...ia.fullWidth,...!n&&ia.hide},className:s}))}var b2=K2,Py=k.memo(b2);function G2(e){k.useEffect(e,[])}var Ty=G2;function Q2(e,t,n=!0){let r=k.useRef(!0);k.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var _e=Q2;function Br(){}function Un(e,t,n,r){return q2(e,r)||Y2(e,t,n,r)}function q2(e,t){return e.editor.getModel(Ny(e,t))}function Y2(e,t,n,r){return e.editor.createModel(t,n,r?Ny(e,r):void 0)}function Ny(e,t){return e.Uri.parse(t)}function X2({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:s,modifiedModelPath:o,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:d="Loading...",options:f={},height:h="100%",width:v="100%",className:x,wrapperProps:g={},beforeMount:C=Br,onMount:m=Br}){let[p,y]=k.useState(!1),[S,w]=k.useState(!0),j=k.useRef(null),T=k.useRef(null),N=k.useRef(null),V=k.useRef(m),M=k.useRef(C),W=k.useRef(!1);Ty(()=>{let O=Cy.init();return O.then(U=>(T.current=U)&&w(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>j.current?Ee():O.cancel()}),_e(()=>{if(j.current&&T.current){let O=j.current.getOriginalEditor(),U=Un(T.current,e||"",r||n||"text",s||"");U!==O.getModel()&&O.setModel(U)}},[s],p),_e(()=>{if(j.current&&T.current){let O=j.current.getModifiedEditor(),U=Un(T.current,t||"",i||n||"text",o||"");U!==O.getModel()&&O.setModel(U)}},[o],p),_e(()=>{let O=j.current.getModifiedEditor();O.getOption(T.current.editor.EditorOption.readOnly)?O.setValue(t||""):t!==O.getValue()&&(O.executeEdits("",[{range:O.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),O.pushUndoStop())},[t],p),_e(()=>{var O,U;(U=(O=j.current)==null?void 0:O.getModel())==null||U.original.setValue(e||"")},[e],p),_e(()=>{let{original:O,modified:U}=j.current.getModel();T.current.editor.setModelLanguage(O,r||n||"text"),T.current.editor.setModelLanguage(U,i||n||"text")},[n,r,i],p),_e(()=>{var O;(O=T.current)==null||O.editor.setTheme(c)},[c],p),_e(()=>{var O;(O=j.current)==null||O.updateOptions(f)},[f],p);let me=k.useCallback(()=>{var $;if(!T.current)return;M.current(T.current);let O=Un(T.current,e||"",r||n||"text",s||""),U=Un(T.current,t||"",i||n||"text",o||"");($=j.current)==null||$.setModel({original:O,modified:U})},[n,t,i,e,r,s,o]),Ne=k.useCallback(()=>{var O;!W.current&&N.current&&(j.current=T.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...f}),me(),(O=T.current)==null||O.editor.setTheme(c),y(!0),W.current=!0)},[f,c,me]);k.useEffect(()=>{p&&V.current(j.current,T.current)},[p]),k.useEffect(()=>{!S&&!p&&Ne()},[S,p,Ne]);function Ee(){var U,$,P,A;let O=(U=j.current)==null?void 0:U.getModel();a||(($=O==null?void 0:O.original)==null||$.dispose()),l||((P=O==null?void 0:O.modified)==null||P.dispose()),(A=j.current)==null||A.dispose()}return ze.createElement(Py,{width:v,height:h,isEditorReady:p,loading:d,_ref:N,className:x,wrapperProps:g})}var Z2=X2,J2=k.memo(Z2);function ej(e){let t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}var tj=ej,Hi=new Map;function nj({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:s,theme:o="light",line:a,loading:l="Loading...",options:c={},overrideServices:d={},saveViewState:f=!0,keepCurrentModel:h=!1,width:v="100%",height:x="100%",className:g,wrapperProps:C={},beforeMount:m=Br,onMount:p=Br,onChange:y,onValidate:S=Br}){let[w,j]=k.useState(!1),[T,N]=k.useState(!0),V=k.useRef(null),M=k.useRef(null),W=k.useRef(null),me=k.useRef(p),Ne=k.useRef(m),Ee=k.useRef(),O=k.useRef(r),U=tj(s),$=k.useRef(!1),P=k.useRef(!1);Ty(()=>{let L=Cy.init();return L.then(z=>(V.current=z)&&N(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>M.current?R():L.cancel()}),_e(()=>{var z,se,q,ot;let L=Un(V.current,e||r||"",t||i||"",s||n||"");L!==((z=M.current)==null?void 0:z.getModel())&&(f&&Hi.set(U,(se=M.current)==null?void 0:se.saveViewState()),(q=M.current)==null||q.setModel(L),f&&((ot=M.current)==null||ot.restoreViewState(Hi.get(s))))},[s],w),_e(()=>{var L;(L=M.current)==null||L.updateOptions(c)},[c],w),_e(()=>{!M.current||r===void 0||(M.current.getOption(V.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],w),_e(()=>{var z,se;let L=(z=M.current)==null?void 0:z.getModel();L&&i&&((se=V.current)==null||se.editor.setModelLanguage(L,i))},[i],w),_e(()=>{var L;a!==void 0&&((L=M.current)==null||L.revealLine(a))},[a],w),_e(()=>{var L;(L=V.current)==null||L.editor.setTheme(o)},[o],w);let A=k.useCallback(()=>{var L;if(!(!W.current||!V.current)&&!$.current){Ne.current(V.current);let z=s||n,se=Un(V.current,r||e||"",t||i||"",z||"");M.current=(L=V.current)==null?void 0:L.editor.create(W.current,{model:se,automaticLayout:!0,...c},d),f&&M.current.restoreViewState(Hi.get(z)),V.current.editor.setTheme(o),a!==void 0&&M.current.revealLine(a),j(!0),$.current=!0}},[e,t,n,r,i,s,c,d,f,o,a]);k.useEffect(()=>{w&&me.current(M.current,V.current)},[w]),k.useEffect(()=>{!T&&!w&&A()},[T,w,A]),O.current=r,k.useEffect(()=>{var L,z;w&&y&&((L=Ee.current)==null||L.dispose(),Ee.current=(z=M.current)==null?void 0:z.onDidChangeModelContent(se=>{P.current||y(M.current.getValue(),se)}))},[w,y]),k.useEffect(()=>{if(w){let L=V.current.editor.onDidChangeMarkers(z=>{var q;let se=(q=M.current.getModel())==null?void 0:q.uri;if(se&&z.find(ot=>ot.path===se.path)){let ot=V.current.editor.getModelMarkers({resource:se});S==null||S(ot)}});return()=>{L==null||L.dispose()}}return()=>{}},[w,S]);function R(){var L,z;(L=Ee.current)==null||L.dispose(),h?f&&Hi.set(s,M.current.saveViewState()):(z=M.current.getModel())==null||z.dispose(),M.current.dispose()}return ze.createElement(Py,{width:v,height:x,isEditorReady:w,loading:l,_ref:W,className:g,wrapperProps:C})}var rj=nj,ij=k.memo(rj);const sj=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"},oj=({filename:e,originalCode:t,modifiedCode:n,onClose:r,theme:i="dark"})=>{const s=t!==n,o=sj(e),a=i==="dark"?"vs-dark":"light";return u.jsx("div",{className:"diff-viewer-overlay",children:u.jsxs("div",{className:"diff-viewer-window",children:[u.jsxs("div",{className:"diff-viewer-header",children:[u.jsxs("div",{className:"title",children:[u.jsx(vt,{size:18}),u.jsx("span",{children:e}),s&&u.jsx("span",{className:"diff-badge",children:"Modified"})]}),u.jsx("button",{onClick:r,className:"close-btn",children:u.jsx(fu,{size:20})})]}),u.jsx("div",{className:"diff-editor-container",children:s?u.jsx(J2,{height:"100%",language:o,original:t,modified:n,theme:a,options:{renderSideBySide:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13}}):u.jsx(ij,{height:"100%",language:o,value:n,theme:a,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on"}})})]})})},aj=(e,t)=>{const n=[];e.forEach(i=>{const s=i.split("/");let o=n,a="";s.forEach((l,c)=>{a=a?`${a}/${l}`:l;const d=c<s.length-1;let f=o.find(h=>h.name===l);f||(f={name:l,path:a,isDirectory:d,children:[],isViolated:t.some(h=>h===a||h.startsWith(`${a}/`))},o.push(f)),o=f.children})});const r=i=>{i.sort((s,o)=>s.isDirectory&&!o.isDirectory?-1:!s.isDirectory&&o.isDirectory?1:s.name.localeCompare(o.name)),i.forEach(s=>r(s.children))};return r(n),n},Ey=({node:e,level:t,onSelect:n,activeFile:r})=>{const[i,s]=k.useState(t===0),o=r===e.path,a=l=>{l.stopPropagation(),e.isDirectory?s(!i):n(e.path)};return u.jsxs("div",{className:"tree-node-container",children:[u.jsxs("div",{className:`tree-item ${o?"active":""} ${e.isViolated?"violated":""}`,style:{paddingLeft:`${t*12+8}px`},onClick:a,children:[e.isDirectory?u.jsxs(u.Fragment,{children:[i?u.jsx(a0,{size:14,className:"chevron"}):u.jsx(so,{size:14,className:"chevron"}),i?u.jsx(h0,{size:14,className:"folder-icon"}):u.jsx(oo,{size:14,className:"folder-icon"})]}):u.jsx(vt,{size:14,className:"file-icon"}),u.jsx("span",{className:"node-name",title:e.path,children:e.name}),e.isViolated&&u.jsx(l0,{size:12,className:"violation-icon"})]}),e.isDirectory&&i&&u.jsx("div",{className:"tree-children",children:e.children.map(l=>u.jsx(Ey,{node:l,level:t+1,onSelect:n,activeFile:r},l.path))})]})},Nf=({files:e,onSelect:t,activeFile:n,violatedFiles:r=[]})=>{const i=k.useMemo(()=>aj(e,r),[e,r]);return u.jsxs("div",{className:"file-tree",children:[u.jsxs("div",{className:"tree-header",children:[u.jsx(oo,{size:14}),u.jsx("span",{children:"Project Explorer"})]}),u.jsx("div",{className:"tree-list",children:i.length===0?u.jsx("div",{className:"empty-tree-state",children:"No files found"}):i.map(s=>u.jsx(Ey,{node:s,level:0,onSelect:t,activeFile:n},s.path))})]})},sa=e=>typeof e=="string"?e:JSON.stringify(e,null,2),lj=()=>{const[e,t]=k.useState({memories:{}}),[n,r]=k.useState(null),[i,s]=k.useState(""),[o,a]=k.useState(!0),[l,c]=k.useState(!1),d=async()=>{a(!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{a(!1)}};k.useEffect(()=>{d()},[]);const f=Object.entries(e.memories||{}),h=f.filter(([m])=>m.toLowerCase().includes(i.toLowerCase())),v=n?e.memories[n]:null,x=m=>{try{return new Date(m).toLocaleString()}catch{return m}},g=()=>{v&&(navigator.clipboard.writeText(sa(v.value)),c(!0),setTimeout(()=>c(!1),2e3))},C=m=>{const p=sa(m);if(p.includes("1)")&&p.includes("2)")){const y=p.split(/(\d+\))/);return u.jsx("div",{className:"formatted-content",children:y.map((S,w)=>{if(/^\d+\)$/.test(S))return u.jsx("div",{className:"section-marker",children:S},w);if(S.trim().startsWith("Priority:")){const[j,T]=S.split("Priority:");return u.jsxs(ze.Fragment,{children:[j.trim()&&u.jsx("div",{className:"section-body",children:j.trim()}),u.jsx("div",{className:"priority-box",children:T.trim()})]},w)}return S.trim()?u.jsx("div",{className:"section-body",children:S.trim()},w):null})})}return u.jsx("pre",{children:p})};return u.jsxs("div",{className:"memory-bank",children:[u.jsxs("div",{className:"memory-header",children:[u.jsxs("div",{className:"memory-title",children:[u.jsx(nd,{size:24}),u.jsx("h2",{children:"Memory Bank"}),u.jsxs("span",{className:"memory-count",children:[f.length," entries"]})]}),u.jsxs("div",{className:"memory-actions",children:[u.jsxs("div",{className:"search-box",children:[u.jsx(du,{size:16}),u.jsx("input",{type:"text",placeholder:"Search memories...",value:i,onChange:m=>s(m.target.value)})]}),u.jsx("button",{className:"refresh-btn",onClick:d,disabled:o,children:u.jsx(Rs,{size:16,className:o?"spinning":""})})]})]}),u.jsxs("div",{className:"memory-content",children:[u.jsx("div",{className:"memory-list",children:o?u.jsx("div",{className:"memory-loading",children:"Loading memories..."}):h.length===0?u.jsxs("div",{className:"memory-empty",children:[u.jsx(Up,{size:48}),u.jsx("h3",{children:"No Memories Stored"}),u.jsxs("p",{children:["Use ",u.jsx("code",{children:"store_memory"})," via MCP to persist agent context."]})]}):h.map(([m,p])=>u.jsxs("div",{className:`memory-item ${n===m?"active":""}`,onClick:()=>r(m),children:[u.jsxs("div",{className:"memory-item-header",children:[u.jsx(id,{size:14}),u.jsx("span",{className:"memory-key",children:m}),u.jsx(so,{size:14,className:"chevron"})]}),u.jsxs("div",{className:"memory-item-meta",children:[u.jsx(Ls,{size:12}),u.jsx("span",{children:x(p.timestamp)})]}),u.jsx("div",{className:"memory-item-preview",children:(()=>{const y=sa(p.value);return y.slice(0,100)+(y.length>100?"...":"")})()})]},m))}),u.jsx("div",{className:"memory-detail",children:v?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"detail-header",children:[u.jsx(id,{size:18}),u.jsx("h3",{children:n})]}),u.jsxs("div",{className:"detail-meta",children:[u.jsxs("div",{className:"meta-left",children:[u.jsx(Ls,{size:14}),u.jsxs("span",{children:["Stored: ",x(v.timestamp)]})]}),u.jsxs("button",{className:`copy-btn ${l?"copied":""}`,onClick:g,children:[l?u.jsx(o0,{size:14}):u.jsx(u0,{size:14}),u.jsx("span",{children:l?"Copied":"Copy"})]})]}),u.jsx("div",{className:"detail-content",children:C(v.value)})]}):u.jsxs("div",{className:"detail-placeholder",children:[u.jsx(nd,{size:48}),u.jsx("p",{children:"Select a memory to view its contents"})]})})]})]})},uj=()=>{var w;const[e,t]=k.useState({patterns:[],stats:{totalPatterns:0,totalFiles:0,byType:{}}}),[n,r]=k.useState(null),[i,s]=k.useState(""),[o,a]=k.useState("all"),[l,c]=k.useState(!0),[d,f]=k.useState(!1),[h,v]=k.useState([]),[x,g]=k.useState(!1),C=async()=>{c(!0);try{const T=await(await fetch("/api/index-stats")).json();t(T)}catch(j){console.error("Failed to fetch pattern index:",j)}finally{c(!1)}};k.useEffect(()=>{C()},[]),k.useEffect(()=>{if(!d||i.length<3){v([]);return}const j=setTimeout(async()=>{g(!0);try{const N=await(await fetch(`/api/index-search?q=${encodeURIComponent(i)}`)).json();v(N)}catch(T){console.error("Semantic search failed:",T)}finally{g(!1)}},500);return()=>clearTimeout(j)},[i,d]);const m=d&&i.length>=3?h:e.patterns||[],p=e.stats||{totalPatterns:0,totalFiles:0,byType:{}},y=d&&i.length>=3?m:m.filter(j=>{const T=j.name.toLowerCase().includes(i.toLowerCase())||j.file.toLowerCase().includes(i.toLowerCase()),N=o==="all"||j.type===o;return T&&N}),S=Object.keys(p.byType||{});return u.jsxs("div",{className:"pattern-index",children:[u.jsxs("div",{className:"pattern-header",children:[u.jsxs("div",{className:"pattern-title",children:[u.jsx(rs,{size:24}),u.jsx("h2",{children:"Pattern Index"}),u.jsxs("span",{className:"pattern-count",children:[p.totalPatterns," patterns"]})]}),u.jsxs("div",{className:"pattern-actions",children:[u.jsxs("div",{className:"search-box",children:[u.jsx(du,{size:16}),u.jsx("input",{type:"text",placeholder:"Search patterns...",value:i,onChange:j=>s(j.target.value)})]}),u.jsxs("div",{className:"filter-box",children:[u.jsx($p,{size:16}),u.jsxs("select",{value:o,onChange:j=>a(j.target.value),children:[u.jsx("option",{value:"all",children:"All Types"}),S.map(j=>u.jsxs("option",{value:j,children:[j," (",p.byType[j],")"]},j))]})]}),u.jsxs("button",{className:`semantic-toggle ${d?"active":""}`,onClick:()=>f(!d),title:"Semantic Search (v2)",children:[u.jsx(rd,{size:16}),u.jsx("span",{children:"AI Search"})]}),u.jsx("button",{className:"refresh-btn",onClick:C,disabled:l,children:u.jsx(Rs,{size:16,className:l?"spinning":""})})]})]}),u.jsxs("div",{className:"pattern-stats",children:[u.jsxs("div",{className:"stat-card",children:[u.jsx(s0,{size:20}),u.jsxs("div",{className:"stat-info",children:[u.jsx("span",{className:"stat-value",children:p.totalPatterns}),u.jsx("span",{className:"stat-label",children:"Total Patterns"})]})]}),u.jsxs("div",{className:"stat-card",children:[u.jsx(vt,{size:20}),u.jsxs("div",{className:"stat-info",children:[u.jsx("span",{className:"stat-value",children:p.totalFiles}),u.jsx("span",{className:"stat-label",children:"Files Indexed"})]})]}),u.jsxs("div",{className:"stat-card",children:[u.jsx(rd,{size:20}),u.jsxs("div",{className:"stat-info",children:[u.jsx("span",{className:"stat-value",children:S.length}),u.jsx("span",{className:"stat-label",children:"Pattern Types"})]})]}),p.indexDurationMs&&u.jsxs("div",{className:"stat-card",children:[u.jsx(Ls,{size:20}),u.jsxs("div",{className:"stat-info",children:[u.jsxs("span",{className:"stat-value",children:[p.indexDurationMs,"ms"]}),u.jsx("span",{className:"stat-label",children:"Index Time"})]})]})]}),u.jsxs("div",{className:"pattern-content",children:[u.jsxs("div",{className:"pattern-list",children:[x&&u.jsxs("div",{className:"searching-indicator",children:[u.jsx(Rs,{size:14,className:"spinning"}),u.jsx("span",{children:"AI is analyzing your query..."})]}),l?u.jsx("div",{className:"pattern-loading",children:"Loading patterns..."}):y.length===0?u.jsxs("div",{className:"pattern-empty",children:[u.jsx(rs,{size:48}),u.jsx("h3",{children:"No Patterns Indexed"}),u.jsxs("p",{children:["Run ",u.jsx("code",{children:"rigour index"})," to scan your codebase."]})]}):y.map(j=>u.jsxs("div",{className:`pattern-item ${(n==null?void 0:n.id)===j.id?"active":""}`,onClick:()=>r(j),children:[j.similarity&&u.jsxs("div",{className:"similarity-badge",children:[(j.similarity*100).toFixed(0),"% Match"]}),u.jsxs("div",{className:"pattern-item-header",children:[u.jsx("span",{className:"pattern-type-badge",children:j.type}),u.jsx("span",{className:"pattern-name",children:j.name}),u.jsx(so,{size:14,className:"chevron"})]}),u.jsxs("div",{className:"pattern-item-file",children:[u.jsx(vt,{size:12}),u.jsxs("span",{children:[j.file,":",j.line]})]}),j.exported&&u.jsx("span",{className:"exported-badge",children:"exported"})]},j.id))]}),u.jsx("div",{className:"pattern-detail",children:n?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"detail-header",children:[u.jsx("span",{className:"pattern-type-badge large",children:n.type}),u.jsx("h3",{children:n.name})]}),u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Location"}),u.jsxs("code",{children:[n.file,":",n.line,"-",n.endLine]})]}),n.signature&&u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Signature"}),u.jsx("pre",{children:n.signature})]}),n.description&&u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Description"}),u.jsx("p",{children:n.description})]}),((w=n.keywords)==null?void 0:w.length)>0&&u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Keywords"}),u.jsx("div",{className:"keywords-list",children:n.keywords.map((j,T)=>u.jsx("span",{className:"keyword-tag",children:j},T))})]}),u.jsxs("div",{className:"detail-section",children:[u.jsx("h4",{children:"Usage"}),u.jsxs("p",{children:["Imported in ",u.jsx("strong",{children:n.usageCount})," files"]})]})]}):u.jsxs("div",{className:"detail-placeholder",children:[u.jsx(rs,{size:48}),u.jsx("p",{children:"Select a pattern to view details"})]})})]})]})},cj=()=>{const[e,t]=k.useState(null),[n,r]=k.useState(""),[i,s]=k.useState(!0),[o,a]=k.useState("visual"),l=async()=>{s(!0);try{const h=await(await fetch("/api/config")).text();r(h);const v=c(h);t(v)}catch(f){console.error("Failed to fetch config:",f)}finally{s(!1)}},c=f=>{var h;try{const v=f.split(`
289
+ `),x={};let g=null,C=null;for(const m of v){if(m.startsWith("#")||!m.trim())continue;const p=m.search(/\S/),y=m.trim();if(p===0&&y.includes(":")){const[S]=y.split(":");g=S.trim(),C=null;const w=(h=y.split(":")[1])==null?void 0:h.trim();w&&w!=="{}"&&w!=="[]"?x[g]=isNaN(Number(w))?w:Number(w):x[g]={}}else if(p===2&&g&&y.includes(":")){const[S]=y.split(":");C=S.trim();const w=y.split(":").slice(1).join(":").trim();if(w&&w!=="{}"&&w!=="[]"){typeof x[g]!="object"&&(x[g]={});const j=w==="true"?!0:w==="false"?!1:isNaN(Number(w))?w:Number(w);x[g][C]=j}else typeof x[g]!="object"&&(x[g]={}),x[g][C]={}}else if(p===4&&g&&C&&y.includes(":")){const[S]=y.split(":"),w=y.split(":").slice(1).join(":").trim();typeof x[g][C]!="object"&&(x[g][C]={});const j=w==="true"?!0:w==="false"?!1:isNaN(Number(w))?w:Number(w);x[g][C][S.trim()]=j}}return x}catch{return{}}};k.useEffect(()=>{l()},[]);const d=(e==null?void 0:e.gates)||{};return u.jsxs("div",{className:"quality-gates",children:[u.jsxs("div",{className:"gates-header",children:[u.jsxs("div",{className:"gates-title",children:[u.jsx(g0,{size:24}),u.jsx("h2",{children:"Quality Gates"}),(e==null?void 0:e.preset)&&u.jsx("span",{className:"preset-badge",children:e.preset})]}),u.jsxs("div",{className:"gates-actions",children:[u.jsxs("div",{className:"view-toggle",children:[u.jsxs("button",{className:o==="visual"?"active":"",onClick:()=>a("visual"),children:[u.jsx(rs,{size:16})," Visual"]}),u.jsxs("button",{className:o==="raw"?"active":"",onClick:()=>a("raw"),children:[u.jsx(vt,{size:16})," YAML"]})]}),u.jsx("button",{className:"refresh-btn",onClick:l,disabled:i,children:u.jsx(Rs,{size:16,className:i?"spinning":""})})]})]}),i?u.jsx("div",{className:"gates-loading",children:"Loading configuration..."}):o==="raw"?u.jsx("div",{className:"gates-raw",children:u.jsx("pre",{children:n})}):u.jsxs("div",{className:"gates-content",children:[u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(vt,{size:18}),u.jsx("h3",{children:"Code Quality"})]}),u.jsxs("div",{className:"gate-grid",children:[u.jsx(je,{label:"Max File Lines",value:d.max_file_lines,icon:u.jsx(vt,{size:16})}),u.jsx(je,{label:"Forbid TODOs",value:d.forbid_todos,icon:d.forbid_todos?u.jsx(ii,{size:16}):u.jsx(tr,{size:16})}),u.jsx(je,{label:"Forbid FIXMEs",value:d.forbid_fixme,icon:d.forbid_fixme?u.jsx(ii,{size:16}):u.jsx(tr,{size:16})})]})]}),d.ast&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(p0,{size:18}),u.jsx("h3",{children:"AST Limits"})]}),u.jsxs("div",{className:"gate-grid",children:[u.jsx(je,{label:"Complexity",value:d.ast.complexity}),u.jsx(je,{label:"Max Methods",value:d.ast.max_methods}),u.jsx(je,{label:"Max Params",value:d.ast.max_params}),u.jsx(je,{label:"Max Nesting",value:d.ast.max_nesting}),u.jsx(je,{label:"Max Function Lines",value:d.ast.max_function_lines}),u.jsx(je,{label:"Max Inheritance",value:d.ast.max_inheritance_depth})]})]}),d.safety&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(Wp,{size:18}),u.jsx("h3",{children:"Safety Controls"})]}),u.jsx("div",{className:"gate-grid",children:u.jsx(je,{label:"Max Files/Cycle",value:d.safety.max_files_changed_per_cycle})}),d.safety.protected_paths&&d.safety.protected_paths.length>0&&u.jsxs("div",{className:"protected-paths",children:[u.jsx("h4",{children:"Protected Paths"}),u.jsx("div",{className:"path-list",children:d.safety.protected_paths.map((f,h)=>u.jsx("span",{className:"path-tag",children:f},h))})]})]}),d.required_files&&d.required_files.length>0&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(xn,{size:18}),u.jsx("h3",{children:"Required Files"})]}),u.jsx("div",{className:"file-list",children:d.required_files.map((f,h)=>u.jsxs("div",{className:"file-item",children:[u.jsx(vt,{size:14}),u.jsx("span",{children:f})]},h))})]}),d.context&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(j0,{size:18}),u.jsx("h3",{children:"Context Mining"})]}),u.jsxs("div",{className:"gate-grid",children:[u.jsx(je,{label:"Enabled",value:d.context.enabled}),u.jsx(je,{label:"Sensitivity",value:d.context.sensitivity}),u.jsx(je,{label:"Mining Depth",value:d.context.mining_depth})]})]}),d.retry_loop_breaker&&u.jsxs("div",{className:"gate-section",children:[u.jsxs("div",{className:"section-header",children:[u.jsx(Hp,{size:18}),u.jsx("h3",{children:"Retry Loop Breaker"})]}),u.jsxs("div",{className:"gate-grid",children:[u.jsx(je,{label:"Enabled",value:d.retry_loop_breaker.enabled}),u.jsx(je,{label:"Max Retries",value:d.retry_loop_breaker.max_retries})]})]})]})]})},je=({label:e,value:t,icon:n})=>{const r=typeof t=="boolean"?t?"Yes":"No":t??"N/A";return u.jsxs("div",{className:"gate-card",children:[n&&u.jsx("div",{className:"gate-icon",children:n}),u.jsxs("div",{className:"gate-info",children:[u.jsx("span",{className:"gate-value",children:r}),u.jsx("span",{className:"gate-label",children:e})]})]})},dj=({logs:e,onClearLogs:t,onSelectLog:n,selectedLog:r})=>{const[i,s]=k.useState(""),[o,a]=k.useState("all"),[l,c]=k.useState("all"),d=ze.useMemo(()=>{const g={};return e.forEach(C=>{const m=C.requestId||C.id;g[m]?g[m]={...g[m],...C}:g[m]={...C}}),Object.values(g).sort((C,m)=>new Date(m.timestamp).getTime()-new Date(C.timestamp).getTime())},[e]),f=ze.useMemo(()=>{const g=new Set;return d.forEach(C=>C.tool&&g.add(C.tool)),Array.from(g)},[d]),h=ze.useMemo(()=>d.filter(g=>{var y;const C=!i||((y=g.tool)==null?void 0:y.toLowerCase().includes(i.toLowerCase()))||JSON.stringify(g.arguments||{}).toLowerCase().includes(i.toLowerCase()),m=o==="all"||g.status===o,p=l==="all"||g.tool===l;return C&&m&&p}),[d,i,o,l]),v=ze.useMemo(()=>({total:d.length,success:d.filter(g=>g.status==="success").length,error:d.filter(g=>g.status==="error").length,pending:d.filter(g=>!g.status||g.status==="pending").length}),[d]),x=()=>{const g=JSON.stringify(h,null,2),C=new Blob([g],{type:"application/json"}),m=URL.createObjectURL(C),p=document.createElement("a");p.href=m,p.download=`rigour-audit-${new Date().toISOString().split("T")[0]}.json`,p.click()};return u.jsxs("div",{className:"audit-log",children:[u.jsxs("div",{className:"audit-header",children:[u.jsxs("div",{className:"audit-title",children:[u.jsx(Ds,{size:24}),u.jsx("h2",{children:"Audit Trail"}),u.jsxs("span",{className:"log-count",children:[h.length," events"]})]}),u.jsxs("div",{className:"audit-actions",children:[u.jsxs("button",{className:"btn-secondary",onClick:t,children:[u.jsx(x0,{size:16})," Clear"]}),u.jsxs("button",{className:"btn-primary",onClick:x,children:[u.jsx(d0,{size:16})," Export"]})]})]}),u.jsxs("div",{className:"audit-stats",children:[u.jsxs("div",{className:"stat-pill",children:[u.jsx(Ds,{size:14}),u.jsxs("span",{children:[v.total," Total"]})]}),u.jsxs("div",{className:"stat-pill success",children:[u.jsx(tr,{size:14}),u.jsxs("span",{children:[v.success," Success"]})]}),u.jsxs("div",{className:"stat-pill error",children:[u.jsx(ii,{size:14}),u.jsxs("span",{children:[v.error," Failed"]})]}),u.jsxs("div",{className:"stat-pill pending",children:[u.jsx(xn,{size:14}),u.jsxs("span",{children:[v.pending," Pending"]})]})]}),u.jsxs("div",{className:"audit-filters",children:[u.jsxs("div",{className:"search-box",children:[u.jsx(du,{size:16}),u.jsx("input",{type:"text",placeholder:"Search logs...",value:i,onChange:g=>s(g.target.value)})]}),u.jsxs("div",{className:"filter-box",children:[u.jsx($p,{size:16}),u.jsxs("select",{value:o,onChange:g=>a(g.target.value),children:[u.jsx("option",{value:"all",children:"All Status"}),u.jsx("option",{value:"success",children:"Success"}),u.jsx("option",{value:"error",children:"Error"}),u.jsx("option",{value:"pending",children:"Pending"})]})]}),u.jsxs("div",{className:"filter-box",children:[u.jsx(Vs,{size:16}),u.jsxs("select",{value:l,onChange:g=>c(g.target.value),children:[u.jsx("option",{value:"all",children:"All Tools"}),f.map(g=>u.jsx("option",{value:g,children:g},g))]})]})]}),u.jsxs("div",{className:"audit-content",children:[u.jsx("div",{className:"log-list",children:h.length===0?u.jsxs("div",{className:"empty-state",children:[u.jsx(Vs,{size:48}),u.jsx("h3",{children:"No Interactions Detected"}),u.jsx("p",{children:"Rigour tool calls will appear here in real-time."})]}):h.map(g=>u.jsxs("div",{className:`log-entry ${(r==null?void 0:r.id)===g.id?"active":""} ${g._rigour_report?"has-report":""}`,onClick:()=>n((r==null?void 0:r.id)===g.id?null:g),children:[u.jsxs("div",{className:"log-header",children:[u.jsx("span",{className:`status-dot ${g.status||"pending"}`}),u.jsx("span",{className:"log-tool",children:g.tool}),u.jsxs("span",{className:"log-time",children:[u.jsx(Ls,{size:12}),new Date(g.timestamp).toLocaleTimeString()]}),g._rigour_report&&u.jsxs("span",{className:"report-badge",children:[u.jsx(f0,{size:12})," Report"]}),g.arbitrated&&u.jsx("span",{className:`arbitrated-badge ${g.decision}`,children:g.decision==="approve"?"Approved":"Rejected"}),u.jsx(so,{size:14,className:"chevron"})]}),g.requestId&&u.jsxs("div",{className:"log-request-id",children:["ID: ",g.requestId.slice(0,12),"..."]})]},g.id))}),u.jsx("div",{className:"log-detail",children:r?u.jsx(fj,{log:r,onClose:()=>n(null)}):u.jsxs("div",{className:"detail-placeholder",children:[u.jsx(vt,{size:48}),u.jsx("p",{children:"Select a log entry to view details"})]})})]})]})},fj=({log:e,onClose:t})=>{var s,o,a,l,c,d,f;const n=!!e._rigour_report||["rigour_checkpoint","rigour_agent_register","rigour_handoff"].includes(e.tool),[r,i]=k.useState(n?"report":"args");return u.jsxs("div",{className:"log-detail-view",children:[u.jsxs("div",{className:"detail-header",children:[u.jsxs("div",{className:"detail-info",children:[u.jsxs("span",{className:`status-badge ${e.status||"pending"}`,children:[e.status==="success"?u.jsx(tr,{size:14}):e.status==="error"?u.jsx(ii,{size:14}):u.jsx(xn,{size:14}),e.status||"pending"]}),u.jsx("h3",{children:e.tool})]}),u.jsx("button",{className:"close-btn",onClick:t,children:u.jsx(fu,{size:18})})]}),u.jsxs("div",{className:"detail-meta",children:[u.jsxs("div",{className:"meta-item",children:[u.jsx("span",{className:"meta-label",children:"Timestamp"}),u.jsx("span",{className:"meta-value",children:new Date(e.timestamp).toLocaleString()})]}),e.requestId&&u.jsxs("div",{className:"meta-item",children:[u.jsx("span",{className:"meta-label",children:"Request ID"}),u.jsx("span",{className:"meta-value mono",children:e.requestId})]})]}),n&&u.jsxs("div",{className:"detail-tabs",children:[u.jsx("button",{className:r==="report"?"active":"",onClick:()=>i("report"),children:e._rigour_report?"Verification Report":"Visualized Content"}),u.jsx("button",{className:r==="args"?"active":"",onClick:()=>i("args"),children:"Technical Arguments"})]}),u.jsx("div",{className:"detail-body",children:r==="args"?u.jsxs(u.Fragment,{children:[e.arguments&&u.jsxs("div",{className:"code-section",children:[u.jsx("h4",{children:"Arguments"}),u.jsx("pre",{children:JSON.stringify(e.arguments,null,2)})]}),e.error&&u.jsxs("div",{className:"error-section",children:[u.jsx("h4",{children:"Error"}),u.jsx("div",{className:"error-message",children:e.error})]})]}):u.jsx("div",{className:"verification-view",children:e.tool==="rigour_checkpoint"?u.jsxs("div",{className:"checkpoint-viz",children:[u.jsxs("div",{className:"viz-stats",children:[u.jsxs("div",{className:"viz-stat",children:[u.jsx("span",{className:"label",children:"Progress"}),u.jsxs("span",{className:"value",children:[((s=e.arguments)==null?void 0:s.progressPct)??0,"%"]})]}),u.jsxs("div",{className:"viz-stat",children:[u.jsx("span",{className:"label",children:"Quality"}),u.jsxs("span",{className:"value",style:{color:(((o=e.arguments)==null?void 0:o.qualityScore)??0)>=80?"#34d399":"#f87171"},children:[((a=e.arguments)==null?void 0:a.qualityScore)??0,"%"]})]})]}),u.jsxs("div",{className:"viz-summary",children:[u.jsx("h4",{children:"Summary of Work"}),u.jsx("p",{children:((l=e.arguments)==null?void 0:l.summary)||"No summary provided."})]}),((c=e.arguments)==null?void 0:c.filesChanged)&&e.arguments.filesChanged.length>0&&u.jsxs("div",{className:"viz-files",children:[u.jsx("h4",{children:"Files Changed"}),u.jsx("div",{className:"file-badges",children:e.arguments.filesChanged.map(h=>u.jsx("span",{className:"file-badge",children:h},h))})]})]}):e.tool==="rigour_agent_register"?u.jsxs("div",{className:"agent-viz",children:[u.jsx(Ds,{size:32,className:"viz-icon"}),u.jsx("h3",{children:"Agent Scope Claims"}),u.jsxs("div",{className:"scope-box",children:[u.jsx("h4",{children:"Claimed Scope:"}),u.jsx("div",{className:"scope-list",children:(f=(d=e.arguments)==null?void 0:d.taskScope)==null?void 0:f.map(h=>u.jsx("code",{children:h},h))})]})]}):u.jsxs("div",{className:"code-section",children:[u.jsx("h4",{children:"Rigour Report"}),u.jsx("pre",{children:JSON.stringify(e._rigour_report,null,2)})]})})})]})};function hj({session:e}){if(!e||e.agents.length===0)return u.jsxs("div",{className:"empty-state",children:[u.jsx(el,{size:48}),u.jsx("h3",{children:"No Active Agent Team"}),u.jsxs("p",{children:["When multiple agents register via ",u.jsx("code",{children:"rigour_agent_register"}),", they'll appear here."]}),u.jsxs("div",{className:"hint-box",children:[u.jsx("span",{children:"Supported Models:"}),u.jsxs("div",{className:"model-badges",children:[u.jsx("span",{className:"badge opus",children:"Opus 4.6"}),u.jsx("span",{className:"badge gpt",children:"GPT-5.3"})]})]})]});const t=r=>{switch(r){case"active":return u.jsx(Uo,{size:10,fill:"#34d399",stroke:"#34d399"});case"idle":return u.jsx(Uo,{size:10,fill:"#fbbf24",stroke:"#fbbf24"});case"completed":return u.jsx(tr,{size:14,color:"#34d399"});default:return u.jsx(Uo,{size:10})}},n=(r,i)=>i.some(s=>s.agentId===r.agentId?!1:r.taskScope.some(o=>s.taskScope.some(a=>a===o||o.startsWith(a)||a.startsWith(o))));return u.jsxs("div",{className:"agent-teams",children:[u.jsxs("div",{className:"panel-header",children:[u.jsxs("div",{className:"title",children:[u.jsx(el,{size:18}),u.jsx("span",{children:"Agent Team Session"})]}),u.jsx("div",{className:`session-status ${e.status}`,children:e.status.toUpperCase()})]}),u.jsxs("div",{className:"session-info",children:[u.jsx("span",{className:"session-id",children:e.sessionId}),u.jsxs("span",{className:"agent-count",children:[e.agents.length," agents"]})]}),u.jsx("div",{className:"agents-grid",children:e.agents.map(r=>u.jsxs("div",{className:`agent-card ${r.status} ${n(r,e.agents)?"has-conflict":""}`,children:[u.jsxs("div",{className:"agent-header",children:[u.jsxs("div",{className:"agent-id",children:[t(r.status),u.jsx("span",{children:r.agentId})]}),n(r,e.agents)&&u.jsxs("div",{className:"conflict-badge",children:[u.jsx(xn,{size:12}),u.jsx("span",{children:"Scope Conflict"})]})]}),u.jsxs("div",{className:"task-scope",children:[u.jsx("h4",{children:"Task Scope"}),u.jsx("ul",{children:r.taskScope.map((i,s)=>u.jsxs("li",{children:[u.jsx(oo,{size:12}),u.jsx("code",{children:i})]},s))})]}),u.jsxs("div",{className:"agent-meta",children:[u.jsxs("span",{children:["Registered: ",new Date(r.registeredAt).toLocaleTimeString()]}),r.lastCheckpoint&&u.jsxs("span",{children:["Last checkpoint: ",new Date(r.lastCheckpoint).toLocaleTimeString()]})]})]},r.agentId))})]})}function pj({checkpoints:e}){if(!e||e.length===0)return u.jsxs("div",{className:"empty-state",children:[u.jsx(Ja,{size:48}),u.jsx("h3",{children:"No Checkpoints Yet"}),u.jsxs("p",{children:["Checkpoints will appear here as agents report progress via ",u.jsx("code",{children:"rigour_checkpoint"}),"."]}),u.jsx("div",{className:"hint-box",children:u.jsx("span",{children:"Default interval: 15 minutes"})})]});const t=i=>i>=80?"#34d399":i>=60?"#fbbf24":"#f87171",n=i=>{if(i===0)return null;const s=e[i-1].qualityScore,o=e[i].qualityScore;return o>s+5?u.jsx(S0,{size:14,color:"#34d399"}):o<s-5?u.jsx(w0,{size:14,color:"#f87171"}):null},r=e.some((i,s)=>{if(s<2)return!1;const o=e.slice(Math.max(0,s-2),s),a=o.reduce((l,c)=>l+c.qualityScore,0)/o.length;return i.qualityScore<a-10});return u.jsxs("div",{className:"checkpoint-timeline",children:[u.jsxs("div",{className:"panel-header",children:[u.jsxs("div",{className:"title",children:[u.jsx(Ja,{size:18}),u.jsx("span",{children:"Checkpoint Timeline"})]}),u.jsxs("div",{className:"drift-visualization",children:[u.jsxs("svg",{width:"120",height:"30",viewBox:"0 0 120 30",className:"drift-sparkline",children:[u.jsx("path",{d:`M ${e.map((i,s)=>`${s/(e.length-1||1)*120} ${30-i.qualityScore/100*30}`).join(" L ")}`,fill:"none",stroke:"var(--accent-primary)",strokeWidth:"2",strokeLinecap:"round"}),e.map((i,s)=>u.jsx("circle",{cx:s/(e.length-1||1)*120,cy:30-i.qualityScore/100*30,r:"2",fill:t(i.qualityScore)},s))]}),u.jsx("span",{className:"drift-label",children:"Session Stability"})]}),r&&u.jsxs("div",{className:"drift-alert",children:[u.jsx(xn,{size:14}),u.jsx("span",{children:"Drift Detected"})]})]}),u.jsxs("div",{className:"timeline-container",children:[u.jsx("div",{className:"timeline-line"}),e.map((i,s)=>u.jsxs("div",{className:`checkpoint-entry ${i.warnings.length>0?"has-warnings":""}`,children:[u.jsx("div",{className:"checkpoint-marker",children:u.jsx("div",{className:"marker-dot",style:{backgroundColor:t(i.qualityScore)}})}),u.jsxs("div",{className:"checkpoint-content",children:[u.jsxs("div",{className:"checkpoint-header",children:[u.jsx("span",{className:"checkpoint-id",children:i.checkpointId}),u.jsx("span",{className:"checkpoint-time",children:new Date(i.timestamp).toLocaleTimeString()})]}),u.jsxs("div",{className:"checkpoint-stats",children:[u.jsxs("div",{className:"stat",children:[u.jsx("span",{className:"label",children:"Progress"}),u.jsx("div",{className:"progress-bar",children:u.jsx("div",{className:"progress-fill",style:{width:`${i.progressPct}%`}})}),u.jsxs("span",{className:"value",children:[i.progressPct,"%"]})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{className:"label",children:"Quality"}),u.jsxs("span",{className:"value score",style:{color:t(i.qualityScore)},children:[i.qualityScore,"%",n(s)]})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{className:"label",children:"Agent"}),u.jsx("span",{className:"value agent-id",children:i.agentId})]})]}),u.jsx("div",{className:"checkpoint-summary",children:u.jsx("p",{children:i.summary})}),i.filesChanged.length>0&&u.jsx("div",{className:"files-changed",children:u.jsxs("span",{className:"count",children:[i.filesChanged.length," files changed"]})}),i.warnings.length>0&&u.jsx("div",{className:"warnings",children:i.warnings.map((o,a)=>u.jsxs("div",{className:"warning-item",children:[u.jsx(xn,{size:12}),u.jsx("span",{children:o})]},a))})]})]},i.checkpointId))]})]})}function mj(){var Ee,O,U,$;const[e,t]=k.useState(()=>localStorage.getItem("rigour-theme")||"dark"),[n,r]=k.useState("memory"),[i,s]=k.useState([]),[o,a]=k.useState(null),[l,c]=k.useState(null),[d,f]=k.useState(!1),[h,v]=k.useState([]),[x,g]=k.useState(null);ze.useEffect(()=>{const P=new EventSource("/api/events");return P.onmessage=A=>{try{const R=JSON.parse(A.data);s(L=>[R,...L].slice(0,100))}catch(R){console.error("Failed to parse event",R)}},fetch("/api/tree").then(A=>A.json()).then(v).catch(A=>console.error("Failed to fetch tree",A)),fetch("/api/info").then(A=>A.json()).then(g).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 C=()=>t(P=>P==="dark"?"light":"dark"),[m,p]=k.useState(""),[y,S]=k.useState({}),[w,j]=k.useState({}),[T,N]=k.useState(null),[V,M]=k.useState(null);k.useEffect(()=>{(async()=>{try{const[A,R,L,z,se]=await Promise.all([fetch("/api/config").then(q=>q.ok?q.text():""),fetch("/api/memory").then(q=>q.json()),fetch("/api/index-stats").then(q=>q.json()),fetch("/api/agents").then(q=>q.json()),fetch("/api/checkpoints").then(q=>q.json())]);p(A),S(R),j(L),N(z),M(se)}catch(A){console.error("Failed to fetch meta data",A)}})()},[]);const W=async P=>{try{const A=P.replace(/\s*\(\d+\s*lines\)$/,""),L=await(await fetch(`/api/file?path=${encodeURIComponent(A)}`)).text();a({filename:A,original:L,modified:L})}catch(A){console.error("Failed to fetch file content",A)}},me=async P=>{if(l)try{await fetch("/api/arbitrate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:l.requestId||l.id,decision:P,timestamp:new Date().toISOString()})}),s(A=>A.map(R=>(R.requestId||R.id)===(l.requestId||l.id)?{...R,status:P==="approve"?"success":"error",arbitrated:!0,decision:P}:R)),f(!1),c(null)}catch(A){console.error("Arbitration failed",A)}},Ne=[{id:"audit",label:"Audit Log",icon:Vs},{id:"gates",label:"Quality Gates",icon:$o},{id:"patterns",label:"Pattern Index",icon:Up},{id:"memory",label:"Memory Bank",icon:c0},{id:"agents",label:"Agent Teams",icon:el},{id:"checkpoints",label:"Checkpoints",icon:Ja}];return u.jsxs("div",{className:"studio",children:[u.jsxs("aside",{className:"sidebar",children:[u.jsxs("div",{className:"brand",children:[u.jsx("div",{className:"logo-icon",children:u.jsx($o,{size:18})}),u.jsx("span",{children:"Rigour Studio"}),u.jsxs("div",{className:"version-pill",children:["v",(x==null?void 0:x.version)||"2.13"]})]}),u.jsx("nav",{children:Ne.map(P=>u.jsxs("button",{className:`nav-item ${n===P.id?"active":""}`,onClick:()=>r(P.id),children:[u.jsx(P.icon,{size:18}),u.jsx("span",{children:P.label}),n===P.id&&u.jsx(tn.div,{layoutId:"nav-glow",className:"nav-glow"})]},P.id))}),u.jsxs("div",{className:"sidebar-footer",children:[u.jsxs("div",{className:"trust-indicator",children:[u.jsx(Wp,{size:14}),u.jsx("span",{children:"Local Governance"})]}),u.jsx("button",{className:"footer-item",children:u.jsx(Hp,{size:18})}),u.jsx("button",{className:"footer-item",children:u.jsx(m0,{size:18})})]})]}),u.jsxs("main",{className:"main-content",children:[u.jsxs("header",{children:[u.jsx("div",{className:"header-left",children:x&&u.jsxs("div",{className:"project-identity",children:[u.jsx(oo,{size:14,className:"folder-icon"}),u.jsx("span",{className:"project-name",children:x.name}),u.jsx("span",{className:"project-path",children:x.path})]})}),u.jsxs("div",{className:"header-right",children:[u.jsxs("div",{className:"connection-status",children:[u.jsxs("div",{className:"status-indicator",children:[u.jsx("div",{className:"pulse-emitter"}),u.jsx("span",{children:"LIVE"})]}),u.jsx("div",{className:"v-divider"}),u.jsxs("span",{children:["v",(x==null?void 0:x.version)||"0.0.0"]})]}),u.jsx("button",{className:"theme-toggle",onClick:C,children:e==="dark"?u.jsx(v0,{size:18}):u.jsx(y0,{size:18})})]})]}),u.jsxs("div",{className:"view-container",children:[u.jsxs(N0,{mode:"wait",children:[n==="audit"&&u.jsx(tn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(dj,{logs:i,onClearLogs:()=>s([]),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?W(z):a(null)}else a(null);f(!0)}else a(null),f(!1)},selectedLog:l})},"audit"),n==="gates"&&u.jsx(tn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(cj,{})},"gates"),n==="patterns"&&u.jsx(tn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(uj,{})},"patterns"),n==="memory"&&u.jsx(tn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(lj,{})},"memory"),n==="agents"&&u.jsx(tn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(hj,{session:T})},"agents"),n==="checkpoints"&&u.jsx(tn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:u.jsx(pj,{checkpoints:(V==null?void 0:V.checkpoints)||[]})},"checkpoints")]}),l&&d&&u.jsx("div",{className:"governance-overlay",children:u.jsxs("div",{className:"governance-window",children:[u.jsxs("div",{className:"governance-header",children:[u.jsxs("div",{className:"title",children:[u.jsx($o,{size:20}),u.jsxs("span",{children:["Governance Audit: ",l.tool]})]}),u.jsxs("div",{className:"hitl-actions",children:[l.type==="interception_requested"&&u.jsxs(u.Fragment,{children:[u.jsxs("button",{className:"btn-approve",onClick:()=>me("approve"),children:[u.jsx(tr,{size:16})," Approve"]}),u.jsxs("button",{className:"btn-reject",onClick:()=>me("reject"),children:[u.jsx(ii,{size:16})," Reject"]}),u.jsx("div",{className:"divider"})]}),u.jsx("button",{onClick:()=>f(!1),className:"close-btn",children:u.jsx(fu,{size:20})})]})]}),u.jsx("div",{className:"governance-body",children:l.type==="interception_requested"?u.jsxs("div",{className:"interception-view",children:[u.jsxs("div",{className:"interception-card",children:[u.jsx(Vs,{size:48}),u.jsx("h4",{children:"Command Intercepted"}),u.jsx("div",{className:"command-box",children:u.jsx("code",{children:l.command})}),u.jsx("p",{children:"An AI agent is requesting to execute this command. Review the project state below before arbitrating."}),u.jsxs("div",{className:"warning-note",children:[u.jsx(xn,{size:16}),u.jsx("span",{children:"Critical actions should be manually verified."})]})]}),u.jsx(Nf,{files:h.map(P=>P.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:P=>W(P),activeFile:o==null?void 0:o.filename,violatedFiles:[]})]}):u.jsxs(u.Fragment,{children:[u.jsx(Nf,{files:(((O=(Ee=l._rigour_report)==null?void 0:Ee.failures)==null?void 0:O.flatMap(P=>P.files||[]))||h).map(P=>P.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:P=>W(P),activeFile:o==null?void 0:o.filename,violatedFiles:((($=(U=l._rigour_report)==null?void 0:U.failures)==null?void 0:$.flatMap(P=>P.files||[]))||[]).map(P=>P.replace(/\s*\(\d+\s*lines\)$/,""))}),u.jsx("div",{className:"diff-view-area",children:o?u.jsx(oj,{filename:o.filename,originalCode:o.original,modifiedCode:o.modified,onClose:()=>a(null),theme:e}):u.jsxs("div",{className:"diff-placeholder",children:[u.jsx(Ds,{size:48}),u.jsx("p",{children:"Select a file to audit the proposed changes"})]})})]})})]})})]})]})]})}oa.createRoot(document.getElementById("root")).render(u.jsx(ze.StrictMode,{children:u.jsx(mj,{})}));