@kite-copilot/chat-panel 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/embed.global.js +13 -13
- package/package.json +1 -1
package/dist/embed.global.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var KiteChatEmbed=(()=>{var fS=Object.create;var Gi=Object.defineProperty;var pS=Object.getOwnPropertyDescriptor;var mS=Object.getOwnPropertyNames;var hS=Object.getPrototypeOf,gS=Object.prototype.hasOwnProperty;var xS=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Da=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yS=(e,t)=>{for(var a in t)Gi(e,a,{get:t[a],enumerable:!0})},Ym=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mS(t))!gS.call(e,o)&&o!==a&&Gi(e,o,{get:()=>t[o],enumerable:!(r=pS(t,o))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?fS(hS(e)):{},Ym(t||!e||!e.__esModule?Gi(a,"default",{value:e,enumerable:!0}):a,e)),vS=e=>Ym(Gi({},"__esModule",{value:!0}),e);var uh=Da(Y=>{"use strict";var fs=Symbol.for("react.element"),LS=Symbol.for("react.portal"),CS=Symbol.for("react.fragment"),SS=Symbol.for("react.strict_mode"),IS=Symbol.for("react.profiler"),wS=Symbol.for("react.provider"),kS=Symbol.for("react.context"),bS=Symbol.for("react.forward_ref"),PS=Symbol.for("react.suspense"),TS=Symbol.for("react.memo"),AS=Symbol.for("react.lazy"),Zm=Symbol.iterator;function RS(e){return e===null||typeof e!="object"?null:(e=Zm&&e[Zm]||e["@@iterator"],typeof e=="function"?e:null)}var th={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ah=Object.assign,rh={};function Mo(e,t,a){this.props=e,this.context=t,this.refs=rh,this.updater=a||th}Mo.prototype.isReactComponent={};Mo.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")};Mo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oh(){}oh.prototype=Mo.prototype;function uc(e,t,a){this.props=e,this.context=t,this.refs=rh,this.updater=a||th}var dc=uc.prototype=new oh;dc.constructor=uc;ah(dc,Mo.prototype);dc.isPureReactComponent=!0;var Jm=Array.isArray,nh=Object.prototype.hasOwnProperty,cc={current:null},sh={key:!0,ref:!0,__self:!0,__source:!0};function ih(e,t,a){var r,o={},n=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(n=""+t.key),t)nh.call(t,r)&&!sh.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=a;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:fs,type:e,key:n,ref:s,props:o,_owner:cc.current}}function DS(e,t){return{$$typeof:fs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fc(e){return typeof e=="object"&&e!==null&&e.$$typeof===fs}function MS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var eh=/\/+/g;function lc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?MS(""+e.key):t.toString(36)}function Ki(e,t,a,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case fs:case LS:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+lc(s,0):r,Jm(o)?(a="",e!=null&&(a=e.replace(eh,"$&/")+"/"),Ki(o,t,a,"",function(u){return u})):o!=null&&(fc(o)&&(o=DS(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(eh,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Jm(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+lc(n,i);s+=Ki(n,t,a,l,o)}else if(l=RS(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+lc(n,i++),s+=Ki(n,t,a,l,o);else if(n==="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 s}function ji(e,t,a){if(e==null)return e;var r=[],o=0;return Ki(e,r,"","",function(n){return t.call(a,n,o++)}),r}function NS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ct={current:null},$i={transition:null},ES={ReactCurrentDispatcher:ct,ReactCurrentBatchConfig:$i,ReactCurrentOwner:cc};function lh(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:ji,forEach:function(e,t,a){ji(e,function(){t.apply(this,arguments)},a)},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(!fc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=Mo;Y.Fragment=CS;Y.Profiler=IS;Y.PureComponent=uc;Y.StrictMode=SS;Y.Suspense=PS;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ES;Y.act=lh;Y.cloneElement=function(e,t,a){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ah({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=cc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)nh.call(t,l)&&!sh.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:fs,type:e.type,key:o,ref:n,props:r,_owner:s}};Y.createContext=function(e){return e={$$typeof:kS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wS,_context:e},e.Consumer=e};Y.createElement=ih;Y.createFactory=function(e){var t=ih.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:bS,render:e}};Y.isValidElement=fc;Y.lazy=function(e){return{$$typeof:AS,_payload:{_status:-1,_result:e},_init:NS}};Y.memo=function(e,t){return{$$typeof:TS,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=$i.transition;$i.transition={};try{e()}finally{$i.transition=t}};Y.unstable_act=lh;Y.useCallback=function(e,t){return ct.current.useCallback(e,t)};Y.useContext=function(e){return ct.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return ct.current.useDeferredValue(e)};Y.useEffect=function(e,t){return ct.current.useEffect(e,t)};Y.useId=function(){return ct.current.useId()};Y.useImperativeHandle=function(e,t,a){return ct.current.useImperativeHandle(e,t,a)};Y.useInsertionEffect=function(e,t){return ct.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return ct.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return ct.current.useMemo(e,t)};Y.useReducer=function(e,t,a){return ct.current.useReducer(e,t,a)};Y.useRef=function(e){return ct.current.useRef(e)};Y.useState=function(e){return ct.current.useState(e)};Y.useSyncExternalStore=function(e,t,a){return ct.current.useSyncExternalStore(e,t,a)};Y.useTransition=function(){return ct.current.useTransition()};Y.version="18.3.1"});var G=Da((xT,dh)=>{"use strict";dh.exports=uh()});var Lh=Da(ge=>{"use strict";function gc(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,o=e[r];if(0<Xi(o,t))e[r]=t,e[a]=o,a=r;else break e}}function ta(e){return e.length===0?null:e[0]}function Yi(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,o=e.length,n=o>>>1;r<n;){var s=2*(r+1)-1,i=e[s],l=s+1,u=e[l];if(0>Xi(i,a))l<o&&0>Xi(u,i)?(e[r]=u,e[l]=a,r=l):(e[r]=i,e[s]=a,r=s);else if(l<o&&0>Xi(u,a))e[r]=u,e[l]=a,r=l;else break e}}return t}function Xi(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ch=performance,ge.unstable_now=function(){return ch.now()}):(pc=Date,fh=pc.now(),ge.unstable_now=function(){return pc.now()-fh});var ch,pc,fh,pa=[],or=[],FS=1,Gt=null,rt=3,Zi=!1,$r=!1,ms=!1,hh=typeof setTimeout=="function"?setTimeout:null,gh=typeof clearTimeout=="function"?clearTimeout:null,ph=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function xc(e){for(var t=ta(or);t!==null;){if(t.callback===null)Yi(or);else if(t.startTime<=e)Yi(or),t.sortIndex=t.expirationTime,gc(pa,t);else break;t=ta(or)}}function yc(e){if(ms=!1,xc(e),!$r)if(ta(pa)!==null)$r=!0,Lc(vc);else{var t=ta(or);t!==null&&Cc(yc,t.startTime-e)}}function vc(e,t){$r=!1,ms&&(ms=!1,gh(hs),hs=-1),Zi=!0;var a=rt;try{for(xc(t),Gt=ta(pa);Gt!==null&&(!(Gt.expirationTime>t)||e&&!vh());){var r=Gt.callback;if(typeof r=="function"){Gt.callback=null,rt=Gt.priorityLevel;var o=r(Gt.expirationTime<=t);t=ge.unstable_now(),typeof o=="function"?Gt.callback=o:Gt===ta(pa)&&Yi(pa),xc(t)}else Yi(pa);Gt=ta(pa)}if(Gt!==null)var n=!0;else{var s=ta(or);s!==null&&Cc(yc,s.startTime-t),n=!1}return n}finally{Gt=null,rt=a,Zi=!1}}var Ji=!1,Qi=null,hs=-1,xh=5,yh=-1;function vh(){return!(ge.unstable_now()-yh<xh)}function mc(){if(Qi!==null){var e=ge.unstable_now();yh=e;var t=!0;try{t=Qi(!0,e)}finally{t?ps():(Ji=!1,Qi=null)}}else Ji=!1}var ps;typeof ph=="function"?ps=function(){ph(mc)}:typeof MessageChannel<"u"?(hc=new MessageChannel,mh=hc.port2,hc.port1.onmessage=mc,ps=function(){mh.postMessage(null)}):ps=function(){hh(mc,0)};var hc,mh;function Lc(e){Qi=e,Ji||(Ji=!0,ps())}function Cc(e,t){hs=hh(function(){e(ge.unstable_now())},t)}ge.unstable_IdlePriority=5;ge.unstable_ImmediatePriority=1;ge.unstable_LowPriority=4;ge.unstable_NormalPriority=3;ge.unstable_Profiling=null;ge.unstable_UserBlockingPriority=2;ge.unstable_cancelCallback=function(e){e.callback=null};ge.unstable_continueExecution=function(){$r||Zi||($r=!0,Lc(vc))};ge.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xh=0<e?Math.floor(1e3/e):5};ge.unstable_getCurrentPriorityLevel=function(){return rt};ge.unstable_getFirstCallbackNode=function(){return ta(pa)};ge.unstable_next=function(e){switch(rt){case 1:case 2:case 3:var t=3;break;default:t=rt}var a=rt;rt=t;try{return e()}finally{rt=a}};ge.unstable_pauseExecution=function(){};ge.unstable_requestPaint=function(){};ge.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=rt;rt=e;try{return t()}finally{rt=a}};ge.unstable_scheduleCallback=function(e,t,a){var r=ge.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:FS++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,gc(or,e),ta(pa)===null&&e===ta(or)&&(ms?(gh(hs),hs=-1):ms=!0,Cc(yc,a-r))):(e.sortIndex=o,gc(pa,e),$r||Zi||($r=!0,Lc(vc))),e};ge.unstable_shouldYield=vh;ge.unstable_wrapCallback=function(e){var t=rt;return function(){var a=rt;rt=t;try{return e.apply(this,arguments)}finally{rt=a}}}});var Sh=Da((vT,Ch)=>{"use strict";Ch.exports=Lh()});var by=Da(Ft=>{"use strict";var BS=G(),Nt=Sh();function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);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 Ag=new Set,Os={};function io(e,t){Jo(e,t),Jo(e+"Capture",t)}function Jo(e,t){for(Os[e]=t,e=0;e<t.length;e++)Ag.add(t[e])}var Oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wc=Object.prototype.hasOwnProperty,OS=/^[: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]*$/,Ih={},wh={};function VS(e){return Wc.call(wh,e)?!0:Wc.call(Ih,e)?!1:OS.test(e)?wh[e]=!0:(Ih[e]=!0,!1)}function US(e,t,a,r){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _S(e,t,a,r){if(t===null||typeof t>"u"||US(e,t,a,r))return!0;if(r)return!1;if(a!==null)switch(a.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 mt(e,t,a,r,o,n,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=s}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new mt(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){Qe[e]=new mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Of=/[\-:]([a-z])/g;function Vf(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(Of,Vf);Qe[t]=new mt(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(Of,Vf);Qe[t]=new mt(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(Of,Vf);Qe[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new mt(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Uf(e,t,a,r){var o=Qe.hasOwnProperty(t)?Qe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_S(t,a,o,r)&&(a=null),r||o===null?VS(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):o.mustUseProperty?e[o.propertyName]=a===null?o.type===3?!1:"":a:(t=o.attributeName,r=o.attributeNamespace,a===null?e.removeAttribute(t):(o=o.type,a=o===3||o===4&&a===!0?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}var za=BS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,el=Symbol.for("react.element"),Fo=Symbol.for("react.portal"),Bo=Symbol.for("react.fragment"),_f=Symbol.for("react.strict_mode"),Gc=Symbol.for("react.profiler"),Rg=Symbol.for("react.provider"),Dg=Symbol.for("react.context"),zf=Symbol.for("react.forward_ref"),jc=Symbol.for("react.suspense"),Kc=Symbol.for("react.suspense_list"),Hf=Symbol.for("react.memo"),sr=Symbol.for("react.lazy"),Mg=Symbol.for("react.offscreen"),kh=Symbol.iterator;function gs(e){return e===null||typeof e!="object"?null:(e=kh&&e[kh]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Object.assign,Sc;function ws(e){if(Sc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Sc=t&&t[1]||""}return`
|
|
1
|
+
"use strict";var KiteChatEmbed=(()=>{var fS=Object.create;var Gi=Object.defineProperty;var pS=Object.getOwnPropertyDescriptor;var mS=Object.getOwnPropertyNames;var hS=Object.getPrototypeOf,gS=Object.prototype.hasOwnProperty;var xS=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Da=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yS=(e,t)=>{for(var a in t)Gi(e,a,{get:t[a],enumerable:!0})},Ym=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mS(t))!gS.call(e,o)&&o!==a&&Gi(e,o,{get:()=>t[o],enumerable:!(r=pS(t,o))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?fS(hS(e)):{},Ym(t||!e||!e.__esModule?Gi(a,"default",{value:e,enumerable:!0}):a,e)),vS=e=>Ym(Gi({},"__esModule",{value:!0}),e);var uh=Da(Y=>{"use strict";var fs=Symbol.for("react.element"),LS=Symbol.for("react.portal"),CS=Symbol.for("react.fragment"),SS=Symbol.for("react.strict_mode"),IS=Symbol.for("react.profiler"),wS=Symbol.for("react.provider"),kS=Symbol.for("react.context"),bS=Symbol.for("react.forward_ref"),PS=Symbol.for("react.suspense"),TS=Symbol.for("react.memo"),AS=Symbol.for("react.lazy"),Zm=Symbol.iterator;function RS(e){return e===null||typeof e!="object"?null:(e=Zm&&e[Zm]||e["@@iterator"],typeof e=="function"?e:null)}var th={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ah=Object.assign,rh={};function Mo(e,t,a){this.props=e,this.context=t,this.refs=rh,this.updater=a||th}Mo.prototype.isReactComponent={};Mo.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")};Mo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oh(){}oh.prototype=Mo.prototype;function uc(e,t,a){this.props=e,this.context=t,this.refs=rh,this.updater=a||th}var dc=uc.prototype=new oh;dc.constructor=uc;ah(dc,Mo.prototype);dc.isPureReactComponent=!0;var Jm=Array.isArray,nh=Object.prototype.hasOwnProperty,cc={current:null},sh={key:!0,ref:!0,__self:!0,__source:!0};function ih(e,t,a){var r,o={},n=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(n=""+t.key),t)nh.call(t,r)&&!sh.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=a;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:fs,type:e,key:n,ref:s,props:o,_owner:cc.current}}function DS(e,t){return{$$typeof:fs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fc(e){return typeof e=="object"&&e!==null&&e.$$typeof===fs}function MS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var eh=/\/+/g;function lc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?MS(""+e.key):t.toString(36)}function Ki(e,t,a,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case fs:case LS:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+lc(s,0):r,Jm(o)?(a="",e!=null&&(a=e.replace(eh,"$&/")+"/"),Ki(o,t,a,"",function(u){return u})):o!=null&&(fc(o)&&(o=DS(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(eh,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Jm(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+lc(n,i);s+=Ki(n,t,a,l,o)}else if(l=RS(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+lc(n,i++),s+=Ki(n,t,a,l,o);else if(n==="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 s}function ji(e,t,a){if(e==null)return e;var r=[],o=0;return Ki(e,r,"","",function(n){return t.call(a,n,o++)}),r}function NS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var dt={current:null},$i={transition:null},ES={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:$i,ReactCurrentOwner:cc};function lh(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:ji,forEach:function(e,t,a){ji(e,function(){t.apply(this,arguments)},a)},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(!fc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=Mo;Y.Fragment=CS;Y.Profiler=IS;Y.PureComponent=uc;Y.StrictMode=SS;Y.Suspense=PS;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ES;Y.act=lh;Y.cloneElement=function(e,t,a){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ah({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=cc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)nh.call(t,l)&&!sh.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:fs,type:e.type,key:o,ref:n,props:r,_owner:s}};Y.createContext=function(e){return e={$$typeof:kS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wS,_context:e},e.Consumer=e};Y.createElement=ih;Y.createFactory=function(e){var t=ih.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:bS,render:e}};Y.isValidElement=fc;Y.lazy=function(e){return{$$typeof:AS,_payload:{_status:-1,_result:e},_init:NS}};Y.memo=function(e,t){return{$$typeof:TS,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=$i.transition;$i.transition={};try{e()}finally{$i.transition=t}};Y.unstable_act=lh;Y.useCallback=function(e,t){return dt.current.useCallback(e,t)};Y.useContext=function(e){return dt.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return dt.current.useDeferredValue(e)};Y.useEffect=function(e,t){return dt.current.useEffect(e,t)};Y.useId=function(){return dt.current.useId()};Y.useImperativeHandle=function(e,t,a){return dt.current.useImperativeHandle(e,t,a)};Y.useInsertionEffect=function(e,t){return dt.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return dt.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return dt.current.useMemo(e,t)};Y.useReducer=function(e,t,a){return dt.current.useReducer(e,t,a)};Y.useRef=function(e){return dt.current.useRef(e)};Y.useState=function(e){return dt.current.useState(e)};Y.useSyncExternalStore=function(e,t,a){return dt.current.useSyncExternalStore(e,t,a)};Y.useTransition=function(){return dt.current.useTransition()};Y.version="18.3.1"});var G=Da((xT,dh)=>{"use strict";dh.exports=uh()});var Lh=Da(ge=>{"use strict";function gc(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,o=e[r];if(0<Xi(o,t))e[r]=t,e[a]=o,a=r;else break e}}function ta(e){return e.length===0?null:e[0]}function Yi(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,o=e.length,n=o>>>1;r<n;){var s=2*(r+1)-1,i=e[s],l=s+1,u=e[l];if(0>Xi(i,a))l<o&&0>Xi(u,i)?(e[r]=u,e[l]=a,r=l):(e[r]=i,e[s]=a,r=s);else if(l<o&&0>Xi(u,a))e[r]=u,e[l]=a,r=l;else break e}}return t}function Xi(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ch=performance,ge.unstable_now=function(){return ch.now()}):(pc=Date,fh=pc.now(),ge.unstable_now=function(){return pc.now()-fh});var ch,pc,fh,pa=[],or=[],FS=1,Gt=null,at=3,Zi=!1,$r=!1,ms=!1,hh=typeof setTimeout=="function"?setTimeout:null,gh=typeof clearTimeout=="function"?clearTimeout:null,ph=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function xc(e){for(var t=ta(or);t!==null;){if(t.callback===null)Yi(or);else if(t.startTime<=e)Yi(or),t.sortIndex=t.expirationTime,gc(pa,t);else break;t=ta(or)}}function yc(e){if(ms=!1,xc(e),!$r)if(ta(pa)!==null)$r=!0,Lc(vc);else{var t=ta(or);t!==null&&Cc(yc,t.startTime-e)}}function vc(e,t){$r=!1,ms&&(ms=!1,gh(hs),hs=-1),Zi=!0;var a=at;try{for(xc(t),Gt=ta(pa);Gt!==null&&(!(Gt.expirationTime>t)||e&&!vh());){var r=Gt.callback;if(typeof r=="function"){Gt.callback=null,at=Gt.priorityLevel;var o=r(Gt.expirationTime<=t);t=ge.unstable_now(),typeof o=="function"?Gt.callback=o:Gt===ta(pa)&&Yi(pa),xc(t)}else Yi(pa);Gt=ta(pa)}if(Gt!==null)var n=!0;else{var s=ta(or);s!==null&&Cc(yc,s.startTime-t),n=!1}return n}finally{Gt=null,at=a,Zi=!1}}var Ji=!1,Qi=null,hs=-1,xh=5,yh=-1;function vh(){return!(ge.unstable_now()-yh<xh)}function mc(){if(Qi!==null){var e=ge.unstable_now();yh=e;var t=!0;try{t=Qi(!0,e)}finally{t?ps():(Ji=!1,Qi=null)}}else Ji=!1}var ps;typeof ph=="function"?ps=function(){ph(mc)}:typeof MessageChannel<"u"?(hc=new MessageChannel,mh=hc.port2,hc.port1.onmessage=mc,ps=function(){mh.postMessage(null)}):ps=function(){hh(mc,0)};var hc,mh;function Lc(e){Qi=e,Ji||(Ji=!0,ps())}function Cc(e,t){hs=hh(function(){e(ge.unstable_now())},t)}ge.unstable_IdlePriority=5;ge.unstable_ImmediatePriority=1;ge.unstable_LowPriority=4;ge.unstable_NormalPriority=3;ge.unstable_Profiling=null;ge.unstable_UserBlockingPriority=2;ge.unstable_cancelCallback=function(e){e.callback=null};ge.unstable_continueExecution=function(){$r||Zi||($r=!0,Lc(vc))};ge.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xh=0<e?Math.floor(1e3/e):5};ge.unstable_getCurrentPriorityLevel=function(){return at};ge.unstable_getFirstCallbackNode=function(){return ta(pa)};ge.unstable_next=function(e){switch(at){case 1:case 2:case 3:var t=3;break;default:t=at}var a=at;at=t;try{return e()}finally{at=a}};ge.unstable_pauseExecution=function(){};ge.unstable_requestPaint=function(){};ge.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=at;at=e;try{return t()}finally{at=a}};ge.unstable_scheduleCallback=function(e,t,a){var r=ge.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:FS++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,gc(or,e),ta(pa)===null&&e===ta(or)&&(ms?(gh(hs),hs=-1):ms=!0,Cc(yc,a-r))):(e.sortIndex=o,gc(pa,e),$r||Zi||($r=!0,Lc(vc))),e};ge.unstable_shouldYield=vh;ge.unstable_wrapCallback=function(e){var t=at;return function(){var a=at;at=t;try{return e.apply(this,arguments)}finally{at=a}}}});var Sh=Da((vT,Ch)=>{"use strict";Ch.exports=Lh()});var by=Da(Ft=>{"use strict";var BS=G(),Nt=Sh();function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);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 Ag=new Set,Os={};function io(e,t){Jo(e,t),Jo(e+"Capture",t)}function Jo(e,t){for(Os[e]=t,e=0;e<t.length;e++)Ag.add(t[e])}var Oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wc=Object.prototype.hasOwnProperty,OS=/^[: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]*$/,Ih={},wh={};function VS(e){return Wc.call(wh,e)?!0:Wc.call(Ih,e)?!1:OS.test(e)?wh[e]=!0:(Ih[e]=!0,!1)}function US(e,t,a,r){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _S(e,t,a,r){if(t===null||typeof t>"u"||US(e,t,a,r))return!0;if(r)return!1;if(a!==null)switch(a.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 pt(e,t,a,r,o,n,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=s}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new pt(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){Qe[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Of=/[\-:]([a-z])/g;function Vf(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(Of,Vf);Qe[t]=new pt(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(Of,Vf);Qe[t]=new pt(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(Of,Vf);Qe[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Uf(e,t,a,r){var o=Qe.hasOwnProperty(t)?Qe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_S(t,a,o,r)&&(a=null),r||o===null?VS(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):o.mustUseProperty?e[o.propertyName]=a===null?o.type===3?!1:"":a:(t=o.attributeName,r=o.attributeNamespace,a===null?e.removeAttribute(t):(o=o.type,a=o===3||o===4&&a===!0?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}var za=BS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,el=Symbol.for("react.element"),Fo=Symbol.for("react.portal"),Bo=Symbol.for("react.fragment"),_f=Symbol.for("react.strict_mode"),Gc=Symbol.for("react.profiler"),Rg=Symbol.for("react.provider"),Dg=Symbol.for("react.context"),zf=Symbol.for("react.forward_ref"),jc=Symbol.for("react.suspense"),Kc=Symbol.for("react.suspense_list"),Hf=Symbol.for("react.memo"),sr=Symbol.for("react.lazy"),Mg=Symbol.for("react.offscreen"),kh=Symbol.iterator;function gs(e){return e===null||typeof e!="object"?null:(e=kh&&e[kh]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Object.assign,Sc;function ws(e){if(Sc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Sc=t&&t[1]||""}return`
|
|
2
2
|
`+Sc+e}var Ic=!1;function wc(e,t){if(!e||Ic)return"";Ic=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
3
3
|
`),n=r.stack.split(`
|
|
4
4
|
`),s=o.length-1,i=n.length-1;1<=s&&0<=i&&o[s]!==n[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==n[i]){if(s!==1||i!==1)do if(s--,i--,0>i||o[s]!==n[i]){var l=`
|
|
5
5
|
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{Ic=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?ws(e):""}function zS(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=wc(e.type,!1),e;case 11:return e=wc(e.type.render,!1),e;case 1:return e=wc(e.type,!0),e;default:return""}}function $c(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 Bo:return"Fragment";case Fo:return"Portal";case Gc:return"Profiler";case _f:return"StrictMode";case jc:return"Suspense";case Kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dg:return(e.displayName||"Context")+".Consumer";case Rg:return(e._context.displayName||"Context")+".Provider";case zf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hf:return t=e.displayName||null,t!==null?t:$c(e.type)||"Memo";case sr:t=e._payload,e=e._init;try{return $c(e(t))}catch{}}return null}function HS(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 $c(t);case 8:return t===_f?"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 Lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ng(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qS(e){var t=Ng(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,n=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tl(e){e._valueTracker||(e._valueTracker=qS(e))}function Eg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Ng(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Al(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 Xc(e,t){var a=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function bh(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=Lr(t.value!=null?t.value:a),e._wrapperState={initialChecked:r,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Fg(e,t){t=t.checked,t!=null&&Uf(e,"checked",t,!1)}function Qc(e,t){Fg(e,t);var a=Lr(t.value),r=t.type;if(a!=null)r==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yc(e,t.type,a):t.hasOwnProperty("defaultValue")&&Yc(e,t.type,Lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ph(e,t,a){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,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function Yc(e,t,a){(t!=="number"||Al(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var ks=Array.isArray;function Ko(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Lr(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Zc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return Te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Th(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(R(92));if(ks(a)){if(1<a.length)throw Error(R(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:Lr(a)}}function Bg(e,t){var a=Lr(t.value),r=Lr(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),r!=null&&(e.defaultValue=""+r)}function Ah(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Og(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 Jc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Og(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var al,Vg=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,a,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(al=al||document.createElement("div"),al.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=al.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vs(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Ts={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},WS=["Webkit","ms","Moz","O"];Object.keys(Ts).forEach(function(e){WS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ts[t]=Ts[e]})});function Ug(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||Ts.hasOwnProperty(e)&&Ts[e]?(""+t).trim():t+"px"}function _g(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=Ug(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var GS=Te({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 ef(e,t){if(t){if(GS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function tf(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 af=null;function qf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rf=null,$o=null,Xo=null;function Rh(e){if(e=ai(e)){if(typeof rf!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ru(t),rf(e.stateNode,e.type,t))}}function zg(e){$o?Xo?Xo.push(e):Xo=[e]:$o=e}function Hg(){if($o){var e=$o,t=Xo;if(Xo=$o=null,Rh(e),t)for(e=0;e<t.length;e++)Rh(t[e])}}function qg(e,t){return e(t)}function Wg(){}var kc=!1;function Gg(e,t,a){if(kc)return e(t,a);kc=!0;try{return qg(e,t,a)}finally{kc=!1,($o!==null||Xo!==null)&&(Wg(),Hg())}}function Us(e,t){var a=e.stateNode;if(a===null)return null;var r=ru(a);if(r===null)return null;a=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(a&&typeof a!="function")throw Error(R(231,t,typeof a));return a}var of=!1;if(Oa)try{No={},Object.defineProperty(No,"passive",{get:function(){of=!0}}),window.addEventListener("test",No,No),window.removeEventListener("test",No,No)}catch{of=!1}var No;function jS(e,t,a,r,o,n,s,i,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(a,u)}catch(d){this.onError(d)}}var As=!1,Rl=null,Dl=!1,nf=null,KS={onError:function(e){As=!0,Rl=e}};function $S(e,t,a,r,o,n,s,i,l){As=!1,Rl=null,jS.apply(KS,arguments)}function XS(e,t,a,r,o,n,s,i,l){if($S.apply(this,arguments),As){if(As){var u=Rl;As=!1,Rl=null}else throw Error(R(198));Dl||(Dl=!0,nf=u)}}function lo(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function jg(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 Dh(e){if(lo(e)!==e)throw Error(R(188))}function QS(e){var t=e.alternate;if(!t){if(t=lo(e),t===null)throw Error(R(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var n=o.alternate;if(n===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===a)return Dh(o),e;if(n===r)return Dh(o),t;n=n.sibling}throw Error(R(188))}if(a.return!==r.return)a=o,r=n;else{for(var s=!1,i=o.child;i;){if(i===a){s=!0,a=o,r=n;break}if(i===r){s=!0,r=o,a=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===a){s=!0,a=n,r=o;break}if(i===r){s=!0,r=n,a=o;break}i=i.sibling}if(!s)throw Error(R(189))}}if(a.alternate!==r)throw Error(R(190))}if(a.tag!==3)throw Error(R(188));return a.stateNode.current===a?e:t}function Kg(e){return e=QS(e),e!==null?$g(e):null}function $g(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$g(e);if(t!==null)return t;e=e.sibling}return null}var Xg=Nt.unstable_scheduleCallback,Mh=Nt.unstable_cancelCallback,YS=Nt.unstable_shouldYield,ZS=Nt.unstable_requestPaint,Me=Nt.unstable_now,JS=Nt.unstable_getCurrentPriorityLevel,Wf=Nt.unstable_ImmediatePriority,Qg=Nt.unstable_UserBlockingPriority,Ml=Nt.unstable_NormalPriority,eI=Nt.unstable_LowPriority,Yg=Nt.unstable_IdlePriority,Jl=null,xa=null;function tI(e){if(xa&&typeof xa.onCommitFiberRoot=="function")try{xa.onCommitFiberRoot(Jl,e,void 0,(e.current.flags&128)===128)}catch{}}var sa=Math.clz32?Math.clz32:oI,aI=Math.log,rI=Math.LN2;function oI(e){return e>>>=0,e===0?32:31-(aI(e)/rI|0)|0}var rl=64,ol=4194304;function bs(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 Nl(e,t){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,n=e.pingedLanes,s=a&268435455;if(s!==0){var i=s&~o;i!==0?r=bs(i):(n&=s,n!==0&&(r=bs(n)))}else s=a&~o,s!==0?r=bs(s):n!==0&&(r=bs(n));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if((r&4)!==0&&(r|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)a=31-sa(t),o=1<<a,r|=e[a],t&=~o;return r}function nI(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 sI(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-sa(n),i=1<<s,l=o[s];l===-1?((i&a)===0||(i&r)!==0)&&(o[s]=nI(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}}function sf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zg(){var e=rl;return rl<<=1,(rl&4194240)===0&&(rl=64),e}function bc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ei(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-sa(t),e[t]=a}function iI(e,t){var a=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<a;){var o=31-sa(a),n=1<<o;t[o]=0,r[o]=-1,e[o]=-1,a&=~n}}function Gf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-sa(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var pe=0;function Jg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ex,jf,tx,ax,rx,lf=!1,nl=[],fr=null,pr=null,mr=null,_s=new Map,zs=new Map,lr=[],lI="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 Nh(e,t){switch(e){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":pr=null;break;case"mouseover":case"mouseout":mr=null;break;case"pointerover":case"pointerout":_s.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zs.delete(t.pointerId)}}function xs(e,t,a,r,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:n,targetContainers:[o]},t!==null&&(t=ai(t),t!==null&&jf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function uI(e,t,a,r,o){switch(t){case"focusin":return fr=xs(fr,e,t,a,r,o),!0;case"dragenter":return pr=xs(pr,e,t,a,r,o),!0;case"mouseover":return mr=xs(mr,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return _s.set(n,xs(_s.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,zs.set(n,xs(zs.get(n)||null,e,t,a,r,o)),!0}return!1}function ox(e){var t=Yr(e.target);if(t!==null){var a=lo(t);if(a!==null){if(t=a.tag,t===13){if(t=jg(a),t!==null){e.blockedOn=t,rx(e.priority,function(){tx(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=uf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);af=r,a.target.dispatchEvent(r),af=null}else return t=ai(a),t!==null&&jf(t),e.blockedOn=a,!1;t.shift()}return!0}function Eh(e,t,a){vl(e)&&a.delete(t)}function dI(){lf=!1,fr!==null&&vl(fr)&&(fr=null),pr!==null&&vl(pr)&&(pr=null),mr!==null&&vl(mr)&&(mr=null),_s.forEach(Eh),zs.forEach(Eh)}function ys(e,t){e.blockedOn===t&&(e.blockedOn=null,lf||(lf=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,dI)))}function Hs(e){function t(o){return ys(o,e)}if(0<nl.length){ys(nl[0],e);for(var a=1;a<nl.length;a++){var r=nl[a];r.blockedOn===e&&(r.blockedOn=null)}}for(fr!==null&&ys(fr,e),pr!==null&&ys(pr,e),mr!==null&&ys(mr,e),_s.forEach(t),zs.forEach(t),a=0;a<lr.length;a++)r=lr[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<lr.length&&(a=lr[0],a.blockedOn===null);)ox(a),a.blockedOn===null&&lr.shift()}var Qo=za.ReactCurrentBatchConfig,El=!0;function cI(e,t,a,r){var o=pe,n=Qo.transition;Qo.transition=null;try{pe=1,Kf(e,t,a,r)}finally{pe=o,Qo.transition=n}}function fI(e,t,a,r){var o=pe,n=Qo.transition;Qo.transition=null;try{pe=4,Kf(e,t,a,r)}finally{pe=o,Qo.transition=n}}function Kf(e,t,a,r){if(El){var o=uf(e,t,a,r);if(o===null)Nc(e,t,r,Fl,a),Nh(e,r);else if(uI(o,e,t,a,r))r.stopPropagation();else if(Nh(e,r),t&4&&-1<lI.indexOf(e)){for(;o!==null;){var n=ai(o);if(n!==null&&ex(n),n=uf(e,t,a,r),n===null&&Nc(e,t,r,Fl,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else Nc(e,t,r,null,a)}}var Fl=null;function uf(e,t,a,r){if(Fl=null,e=qf(r),e=Yr(e),e!==null)if(t=lo(e),t===null)e=null;else if(a=t.tag,a===13){if(e=jg(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fl=e,null}function nx(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(JS()){case Wf:return 1;case Qg:return 4;case Ml:case eI:return 16;case Yg:return 536870912;default:return 16}default:return 16}}var dr=null,$f=null,Ll=null;function sx(){if(Ll)return Ll;var e,t=$f,a=t.length,r,o="value"in dr?dr.value:dr.textContent,n=o.length;for(e=0;e<a&&t[e]===o[e];e++);var s=a-e;for(r=1;r<=s&&t[a-r]===o[n-r];r++);return Ll=o.slice(e,1<r?1-r:void 0)}function Cl(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 sl(){return!0}function Fh(){return!1}function Et(e){function t(a,r,o,n,s){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?sl:Fh,this.isPropagationStopped=Fh,this}return Te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=sl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=sl)},persist:function(){},isPersistent:sl}),t}var sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xf=Et(sn),ti=Te({},sn,{view:0,detail:0}),pI=Et(ti),Pc,Tc,vs,eu=Te({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qf,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!==vs&&(vs&&e.type==="mousemove"?(Pc=e.screenX-vs.screenX,Tc=e.screenY-vs.screenY):Tc=Pc=0,vs=e),Pc)},movementY:function(e){return"movementY"in e?e.movementY:Tc}}),Bh=Et(eu),mI=Te({},eu,{dataTransfer:0}),hI=Et(mI),gI=Te({},ti,{relatedTarget:0}),Ac=Et(gI),xI=Te({},sn,{animationName:0,elapsedTime:0,pseudoElement:0}),yI=Et(xI),vI=Te({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),LI=Et(vI),CI=Te({},sn,{data:0}),Oh=Et(CI),SI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},II={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"},wI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wI[e])?!!t[e]:!1}function Qf(){return kI}var bI=Te({},ti,{key:function(e){if(e.key){var t=SI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?II[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qf,charCode:function(e){return e.type==="keypress"?Cl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),PI=Et(bI),TI=Te({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vh=Et(TI),AI=Te({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qf}),RI=Et(AI),DI=Te({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0}),MI=Et(DI),NI=Te({},eu,{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}),EI=Et(NI),FI=[9,13,27,32],Yf=Oa&&"CompositionEvent"in window,Rs=null;Oa&&"documentMode"in document&&(Rs=document.documentMode);var BI=Oa&&"TextEvent"in window&&!Rs,ix=Oa&&(!Yf||Rs&&8<Rs&&11>=Rs),Uh=" ",_h=!1;function lx(e,t){switch(e){case"keyup":return FI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ux(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oo=!1;function OI(e,t){switch(e){case"compositionend":return ux(t);case"keypress":return t.which!==32?null:(_h=!0,Uh);case"textInput":return e=t.data,e===Uh&&_h?null:e;default:return null}}function VI(e,t){if(Oo)return e==="compositionend"||!Yf&&lx(e,t)?(e=sx(),Ll=$f=dr=null,Oo=!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 ix&&t.locale!=="ko"?null:t.data;default:return null}}var UI={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 zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!UI[e.type]:t==="textarea"}function dx(e,t,a,r){zg(r),t=Bl(t,"onChange"),0<t.length&&(a=new Xf("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Ds=null,qs=null;function _I(e){Cx(e,0)}function tu(e){var t=_o(e);if(Eg(t))return e}function zI(e,t){if(e==="change")return t}var cx=!1;Oa&&(Oa?(ll="oninput"in document,ll||(Rc=document.createElement("div"),Rc.setAttribute("oninput","return;"),ll=typeof Rc.oninput=="function"),il=ll):il=!1,cx=il&&(!document.documentMode||9<document.documentMode));var il,ll,Rc;function Hh(){Ds&&(Ds.detachEvent("onpropertychange",fx),qs=Ds=null)}function fx(e){if(e.propertyName==="value"&&tu(qs)){var t=[];dx(t,qs,e,qf(e)),Gg(_I,t)}}function HI(e,t,a){e==="focusin"?(Hh(),Ds=t,qs=a,Ds.attachEvent("onpropertychange",fx)):e==="focusout"&&Hh()}function qI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(qs)}function WI(e,t){if(e==="click")return tu(t)}function GI(e,t){if(e==="input"||e==="change")return tu(t)}function jI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var la=typeof Object.is=="function"?Object.is:jI;function Ws(e,t){if(la(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!Wc.call(t,o)||!la(e[o],t[o]))return!1}return!0}function qh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wh(e,t){var a=qh(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=qh(a)}}function px(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?px(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mx(){for(var e=window,t=Al();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Al(e.document)}return t}function Zf(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 KI(e){var t=mx(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&px(a.ownerDocument.documentElement,a)){if(r!==null&&Zf(a)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=a.textContent.length,n=Math.min(r.start,o);r=r.end===void 0?n:Math.min(r.end,o),!e.extend&&n>r&&(o=r,r=n,n=o),o=Wh(a,n);var s=Wh(a,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var $I=Oa&&"documentMode"in document&&11>=document.documentMode,Vo=null,df=null,Ms=null,cf=!1;function Gh(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cf||Vo==null||Vo!==Al(r)||(r=Vo,"selectionStart"in r&&Zf(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}),Ms&&Ws(Ms,r)||(Ms=r,r=Bl(df,"onSelect"),0<r.length&&(t=new Xf("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Vo)))}function ul(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Uo={animationend:ul("Animation","AnimationEnd"),animationiteration:ul("Animation","AnimationIteration"),animationstart:ul("Animation","AnimationStart"),transitionend:ul("Transition","TransitionEnd")},Dc={},hx={};Oa&&(hx=document.createElement("div").style,"AnimationEvent"in window||(delete Uo.animationend.animation,delete Uo.animationiteration.animation,delete Uo.animationstart.animation),"TransitionEvent"in window||delete Uo.transitionend.transition);function au(e){if(Dc[e])return Dc[e];if(!Uo[e])return e;var t=Uo[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in hx)return Dc[e]=t[a];return e}var gx=au("animationend"),xx=au("animationiteration"),yx=au("animationstart"),vx=au("transitionend"),Lx=new Map,jh="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 Sr(e,t){Lx.set(e,t),io(t,[e])}for(dl=0;dl<jh.length;dl++)cl=jh[dl],Kh=cl.toLowerCase(),$h=cl[0].toUpperCase()+cl.slice(1),Sr(Kh,"on"+$h);var cl,Kh,$h,dl;Sr(gx,"onAnimationEnd");Sr(xx,"onAnimationIteration");Sr(yx,"onAnimationStart");Sr("dblclick","onDoubleClick");Sr("focusin","onFocus");Sr("focusout","onBlur");Sr(vx,"onTransitionEnd");Jo("onMouseEnter",["mouseout","mouseover"]);Jo("onMouseLeave",["mouseout","mouseover"]);Jo("onPointerEnter",["pointerout","pointerover"]);Jo("onPointerLeave",["pointerout","pointerover"]);io("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));io("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));io("onBeforeInput",["compositionend","keypress","textInput","paste"]);io("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));io("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));io("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ps="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(" "),XI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ps));function Xh(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,XS(r,t,void 0,e),e.currentTarget=null}function Cx(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var n=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==n&&o.isPropagationStopped())break e;Xh(o,i,u),n=l}else for(s=0;s<r.length;s++){if(i=r[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==n&&o.isPropagationStopped())break e;Xh(o,i,u),n=l}}}if(Dl)throw e=nf,Dl=!1,nf=null,e}function ve(e,t){var a=t[gf];a===void 0&&(a=t[gf]=new Set);var r=e+"__bubble";a.has(r)||(Sx(t,e,2,!1),a.add(r))}function Mc(e,t,a){var r=0;t&&(r|=4),Sx(a,e,r,t)}var fl="_reactListening"+Math.random().toString(36).slice(2);function Gs(e){if(!e[fl]){e[fl]=!0,Ag.forEach(function(a){a!=="selectionchange"&&(XI.has(a)||Mc(a,!1,e),Mc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fl]||(t[fl]=!0,Mc("selectionchange",!1,t))}}function Sx(e,t,a,r){switch(nx(t)){case 1:var o=cI;break;case 4:o=fI;break;default:o=Kf}a=o.bind(null,t,a,e),o=void 0,!of||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Nc(e,t,a,r,o){var n=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;i!==null;){if(s=Yr(i),s===null)return;if(l=s.tag,l===5||l===6){r=n=s;continue e}i=i.parentNode}}r=r.return}Gg(function(){var u=n,d=qf(a),c=[];e:{var f=Lx.get(e);if(f!==void 0){var g=Xf,v=e;switch(e){case"keypress":if(Cl(a)===0)break e;case"keydown":case"keyup":g=PI;break;case"focusin":v="focus",g=Ac;break;case"focusout":v="blur",g=Ac;break;case"beforeblur":case"afterblur":g=Ac;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Bh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=hI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=RI;break;case gx:case xx:case yx:g=yI;break;case vx:g=MI;break;case"scroll":g=pI;break;case"wheel":g=EI;break;case"copy":case"cut":case"paste":g=LI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Vh}var C=(t&4)!==0,I=!C&&e==="scroll",m=C?f!==null?f+"Capture":null:f;C=[];for(var h=u,x;h!==null;){x=h;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,m!==null&&(S=Us(h,m),S!=null&&C.push(js(h,S,x)))),I)break;h=h.return}0<C.length&&(f=new g(f,v,null,a,d),c.push({event:f,listeners:C}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&a!==af&&(v=a.relatedTarget||a.fromElement)&&(Yr(v)||v[Va]))break e;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(v=a.relatedTarget||a.toElement,g=u,v=v?Yr(v):null,v!==null&&(I=lo(v),v!==I||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(C=Bh,S="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(C=Vh,S="onPointerLeave",m="onPointerEnter",h="pointer"),I=g==null?f:_o(g),x=v==null?f:_o(v),f=new C(S,h+"leave",g,a,d),f.target=I,f.relatedTarget=x,S=null,Yr(d)===u&&(C=new C(m,h+"enter",v,a,d),C.target=x,C.relatedTarget=I,S=C),I=S,g&&v)t:{for(C=g,m=v,h=0,x=C;x;x=Eo(x))h++;for(x=0,S=m;S;S=Eo(S))x++;for(;0<h-x;)C=Eo(C),h--;for(;0<x-h;)m=Eo(m),x--;for(;h--;){if(C===m||m!==null&&C===m.alternate)break t;C=Eo(C),m=Eo(m)}C=null}else C=null;g!==null&&Qh(c,f,g,C,!1),v!==null&&I!==null&&Qh(c,I,v,C,!0)}}e:{if(f=u?_o(u):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var k=zI;else if(zh(f))if(cx)k=GI;else{k=qI;var T=HI}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=WI);if(k&&(k=k(e,u))){dx(c,k,a,d);break e}T&&T(e,f,u),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&Yc(f,"number",f.value)}switch(T=u?_o(u):window,e){case"focusin":(zh(T)||T.contentEditable==="true")&&(Vo=T,df=u,Ms=null);break;case"focusout":Ms=df=Vo=null;break;case"mousedown":cf=!0;break;case"contextmenu":case"mouseup":case"dragend":cf=!1,Gh(c,a,d);break;case"selectionchange":if($I)break;case"keydown":case"keyup":Gh(c,a,d)}var D;if(Yf)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Oo?lx(e,a)&&(A="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(A="onCompositionStart");A&&(ix&&a.locale!=="ko"&&(Oo||A!=="onCompositionStart"?A==="onCompositionEnd"&&Oo&&(D=sx()):(dr=d,$f="value"in dr?dr.value:dr.textContent,Oo=!0)),T=Bl(u,A),0<T.length&&(A=new Oh(A,e,null,a,d),c.push({event:A,listeners:T}),D?A.data=D:(D=ux(a),D!==null&&(A.data=D)))),(D=BI?OI(e,a):VI(e,a))&&(u=Bl(u,"onBeforeInput"),0<u.length&&(d=new Oh("onBeforeInput","beforeinput",null,a,d),c.push({event:d,listeners:u}),d.data=D))}Cx(c,t)})}function js(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Bl(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=Us(e,a),n!=null&&r.unshift(js(e,n,o)),n=Us(e,t),n!=null&&r.push(js(e,n,o))),e=e.return}return r}function Eo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Qh(e,t,a,r,o){for(var n=t._reactName,s=[];a!==null&&a!==r;){var i=a,l=i.alternate,u=i.stateNode;if(l!==null&&l===r)break;i.tag===5&&u!==null&&(i=u,o?(l=Us(a,n),l!=null&&s.unshift(js(a,l,i))):o||(l=Us(a,n),l!=null&&s.push(js(a,l,i)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var QI=/\r\n?/g,YI=/\u0000|\uFFFD/g;function Yh(e){return(typeof e=="string"?e:""+e).replace(QI,`
|
|
6
|
-
`).replace(YI,"")}function pl(e,t,a){if(t=Yh(t),Yh(e)!==t&&a)throw Error(R(425))}function Ol(){}var ff=null,pf=null;function mf(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 hf=typeof setTimeout=="function"?setTimeout:void 0,ZI=typeof clearTimeout=="function"?clearTimeout:void 0,Zh=typeof Promise=="function"?Promise:void 0,JI=typeof queueMicrotask=="function"?queueMicrotask:typeof Zh<"u"?function(e){return Zh.resolve(null).then(e).catch(ew)}:hf;function ew(e){setTimeout(function(){throw e})}function Ec(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(r===0){e.removeChild(o),Hs(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);Hs(t)}function hr(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 Jh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var ln=Math.random().toString(36).slice(2),ga="__reactFiber$"+ln,Ks="__reactProps$"+ln,Va="__reactContainer$"+ln,gf="__reactEvents$"+ln,tw="__reactListeners$"+ln,aw="__reactHandles$"+ln;function Yr(e){var t=e[ga];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Va]||a[ga]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Jh(e);e!==null;){if(a=e[ga])return a;e=Jh(e)}return t}e=a,a=e.parentNode}return null}function ai(e){return e=e[ga]||e[Va],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _o(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ru(e){return e[Ks]||null}var xf=[],zo=-1;function Ir(e){return{current:e}}function Le(e){0>zo||(e.current=xf[zo],xf[zo]=null,zo--)}function xe(e,t){zo++,xf[zo]=e.current,e.current=t}var Cr={},it=Ir(Cr),St=Ir(!1),ao=Cr;function en(e,t){var a=e.type.contextTypes;if(!a)return Cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in a)o[n]=t[n];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function It(e){return e=e.childContextTypes,e!=null}function Vl(){Le(St),Le(it)}function eg(e,t,a){if(it.current!==Cr)throw Error(R(168));xe(it,t),xe(St,a)}function Ix(e,t,a){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return a;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,HS(e)||"Unknown",o));return Te({},a,r)}function Ul(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,ao=it.current,xe(it,e),xe(St,St.current),!0}function tg(e,t,a){var r=e.stateNode;if(!r)throw Error(R(169));a?(e=Ix(e,t,ao),r.__reactInternalMemoizedMergedChildContext=e,Le(St),Le(it),xe(it,e)):Le(St),xe(St,a)}var Na=null,ou=!1,Fc=!1;function wx(e){Na===null?Na=[e]:Na.push(e)}function rw(e){ou=!0,wx(e)}function wr(){if(!Fc&&Na!==null){Fc=!0;var e=0,t=pe;try{var a=Na;for(pe=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}Na=null,ou=!1}catch(o){throw Na!==null&&(Na=Na.slice(e+1)),Xg(Wf,wr),o}finally{pe=t,Fc=!1}}return null}var Ho=[],qo=0,_l=null,zl=0,jt=[],Kt=0,ro=null,Ea=1,Fa="";function Xr(e,t){Ho[qo++]=zl,Ho[qo++]=_l,_l=e,zl=t}function kx(e,t,a){jt[Kt++]=Ea,jt[Kt++]=Fa,jt[Kt++]=ro,ro=e;var r=Ea;e=Fa;var o=32-sa(r)-1;r&=~(1<<o),a+=1;var n=32-sa(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ea=1<<32-sa(t)+o|a<<o|r,Fa=n+e}else Ea=1<<n|a<<o|r,Fa=e}function Jf(e){e.return!==null&&(Xr(e,1),kx(e,1,0))}function ep(e){for(;e===_l;)_l=Ho[--qo],Ho[qo]=null,zl=Ho[--qo],Ho[qo]=null;for(;e===ro;)ro=jt[--Kt],jt[Kt]=null,Fa=jt[--Kt],jt[Kt]=null,Ea=jt[--Kt],jt[Kt]=null}var Mt=null,Dt=null,we=!1,na=null;function bx(e,t){var a=$t(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function ag(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Mt=e,Dt=hr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Mt=e,Dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=ro!==null?{id:Ea,overflow:Fa}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=$t(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,Mt=e,Dt=null,!0):!1;default:return!1}}function yf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vf(e){if(we){var t=Dt;if(t){var a=t;if(!ag(e,t)){if(yf(e))throw Error(R(418));t=hr(a.nextSibling);var r=Mt;t&&ag(e,t)?bx(r,a):(e.flags=e.flags&-4097|2,we=!1,Mt=e)}}else{if(yf(e))throw Error(R(418));e.flags=e.flags&-4097|2,we=!1,Mt=e}}}function rg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Mt=e}function ml(e){if(e!==Mt)return!1;if(!we)return rg(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!mf(e.type,e.memoizedProps)),t&&(t=Dt)){if(yf(e))throw Px(),Error(R(418));for(;t;)bx(e,t),t=hr(t.nextSibling)}if(rg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){Dt=hr(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}Dt=null}}else Dt=Mt?hr(e.stateNode.nextSibling):null;return!0}function Px(){for(var e=Dt;e;)e=hr(e.nextSibling)}function tn(){Dt=Mt=null,we=!1}function tp(e){na===null?na=[e]:na.push(e)}var ow=za.ReactCurrentBatchConfig;function Ls(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(R(309));var r=a.stateNode}if(!r)throw Error(R(147,e));var o=r,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(s){var i=o.refs;s===null?delete i[n]:i[n]=s},t._stringRef=n,t)}if(typeof e!="string")throw Error(R(284));if(!a._owner)throw Error(R(290,e))}return e}function hl(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function og(e){var t=e._init;return t(e._payload)}function Tx(e){function t(m,h){if(e){var x=m.deletions;x===null?(m.deletions=[h],m.flags|=16):x.push(h)}}function a(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function o(m,h){return m=vr(m,h),m.index=0,m.sibling=null,m}function n(m,h,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<h?(m.flags|=2,h):x):(m.flags|=2,h)):(m.flags|=1048576,h)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function i(m,h,x,S){return h===null||h.tag!==6?(h=Hc(x,m.mode,S),h.return=m,h):(h=o(h,x),h.return=m,h)}function l(m,h,x,S){var k=x.type;return k===Bo?d(m,h,x.props.children,S,x.key):h!==null&&(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===sr&&og(k)===h.type)?(S=o(h,x.props),S.ref=Ls(m,h,x),S.return=m,S):(S=Tl(x.type,x.key,x.props,null,m.mode,S),S.ref=Ls(m,h,x),S.return=m,S)}function u(m,h,x,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=qc(x,m.mode,S),h.return=m,h):(h=o(h,x.children||[]),h.return=m,h)}function d(m,h,x,S,k){return h===null||h.tag!==7?(h=to(x,m.mode,S,k),h.return=m,h):(h=o(h,x),h.return=m,h)}function c(m,h,x){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Hc(""+h,m.mode,x),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case el:return x=Tl(h.type,h.key,h.props,null,m.mode,x),x.ref=Ls(m,null,h),x.return=m,x;case Fo:return h=qc(h,m.mode,x),h.return=m,h;case sr:var S=h._init;return c(m,S(h._payload),x)}if(ks(h)||gs(h))return h=to(h,m.mode,x,null),h.return=m,h;hl(m,h)}return null}function f(m,h,x,S){var k=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return k!==null?null:i(m,h,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case el:return x.key===k?l(m,h,x,S):null;case Fo:return x.key===k?u(m,h,x,S):null;case sr:return k=x._init,f(m,h,k(x._payload),S)}if(ks(x)||gs(x))return k!==null?null:d(m,h,x,S,null);hl(m,x)}return null}function g(m,h,x,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(x)||null,i(h,m,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case el:return m=m.get(S.key===null?x:S.key)||null,l(h,m,S,k);case Fo:return m=m.get(S.key===null?x:S.key)||null,u(h,m,S,k);case sr:var T=S._init;return g(m,h,x,T(S._payload),k)}if(ks(S)||gs(S))return m=m.get(x)||null,d(h,m,S,k,null);hl(h,S)}return null}function v(m,h,x,S){for(var k=null,T=null,D=h,A=h=0,B=null;D!==null&&A<x.length;A++){D.index>A?(B=D,D=null):B=D.sibling;var V=f(m,D,x[A],S);if(V===null){D===null&&(D=B);break}e&&D&&V.alternate===null&&t(m,D),h=n(V,h,A),T===null?k=V:T.sibling=V,T=V,D=B}if(A===x.length)return a(m,D),we&&Xr(m,A),k;if(D===null){for(;A<x.length;A++)D=c(m,x[A],S),D!==null&&(h=n(D,h,A),T===null?k=D:T.sibling=D,T=D);return we&&Xr(m,A),k}for(D=r(m,D);A<x.length;A++)B=g(D,m,A,x[A],S),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?A:B.key),h=n(B,h,A),T===null?k=B:T.sibling=B,T=B);return e&&D.forEach(function(de){return t(m,de)}),we&&Xr(m,A),k}function C(m,h,x,S){var k=gs(x);if(typeof k!="function")throw Error(R(150));if(x=k.call(x),x==null)throw Error(R(151));for(var T=k=null,D=h,A=h=0,B=null,V=x.next();D!==null&&!V.done;A++,V=x.next()){D.index>A?(B=D,D=null):B=D.sibling;var de=f(m,D,V.value,S);if(de===null){D===null&&(D=B);break}e&&D&&de.alternate===null&&t(m,D),h=n(de,h,A),T===null?k=de:T.sibling=de,T=de,D=B}if(V.done)return a(m,D),we&&Xr(m,A),k;if(D===null){for(;!V.done;A++,V=x.next())V=c(m,V.value,S),V!==null&&(h=n(V,h,A),T===null?k=V:T.sibling=V,T=V);return we&&Xr(m,A),k}for(D=r(m,D);!V.done;A++,V=x.next())V=g(D,m,A,V.value,S),V!==null&&(e&&V.alternate!==null&&D.delete(V.key===null?A:V.key),h=n(V,h,A),T===null?k=V:T.sibling=V,T=V);return e&&D.forEach(function(se){return t(m,se)}),we&&Xr(m,A),k}function I(m,h,x,S){if(typeof x=="object"&&x!==null&&x.type===Bo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case el:e:{for(var k=x.key,T=h;T!==null;){if(T.key===k){if(k=x.type,k===Bo){if(T.tag===7){a(m,T.sibling),h=o(T,x.props.children),h.return=m,m=h;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===sr&&og(k)===T.type){a(m,T.sibling),h=o(T,x.props),h.ref=Ls(m,T,x),h.return=m,m=h;break e}a(m,T);break}else t(m,T);T=T.sibling}x.type===Bo?(h=to(x.props.children,m.mode,S,x.key),h.return=m,m=h):(S=Tl(x.type,x.key,x.props,null,m.mode,S),S.ref=Ls(m,h,x),S.return=m,m=S)}return s(m);case Fo:e:{for(T=x.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){a(m,h.sibling),h=o(h,x.children||[]),h.return=m,m=h;break e}else{a(m,h);break}else t(m,h);h=h.sibling}h=qc(x,m.mode,S),h.return=m,m=h}return s(m);case sr:return T=x._init,I(m,h,T(x._payload),S)}if(ks(x))return v(m,h,x,S);if(gs(x))return C(m,h,x,S);hl(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,h!==null&&h.tag===6?(a(m,h.sibling),h=o(h,x),h.return=m,m=h):(a(m,h),h=Hc(x,m.mode,S),h.return=m,m=h),s(m)):a(m,h)}return I}var an=Tx(!0),Ax=Tx(!1),Hl=Ir(null),ql=null,Wo=null,ap=null;function rp(){ap=Wo=ql=null}function op(e){var t=Hl.current;Le(Hl),e._currentValue=t}function Lf(e,t,a){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===a)break;e=e.return}}function Yo(e,t){ql=e,ap=Wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ct=!0),e.firstContext=null)}function Qt(e){var t=e._currentValue;if(ap!==e)if(e={context:e,memoizedValue:t,next:null},Wo===null){if(ql===null)throw Error(R(308));Wo=e,ql.dependencies={lanes:0,firstContext:e}}else Wo=Wo.next=e;return t}var Zr=null;function np(e){Zr===null?Zr=[e]:Zr.push(e)}function Rx(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,np(t)):(a.next=o.next,o.next=a),t.interleaved=a,Ua(e,r)}function Ua(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var ir=!1;function sp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dx(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 Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gr(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ne&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ua(e,a)}return o=r.interleaved,o===null?(t.next=t,np(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ua(e,a)}function Sl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Gf(e,a)}}function ng(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};n===null?o=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:r.shared,effects:r.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Wl(e,t,a,r){var o=e.updateQueue;ir=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==s&&(i===null?d.firstBaseUpdate=u:i.next=u,d.lastBaseUpdate=l))}if(n!==null){var c=o.baseState;s=0,d=u=l=null,i=n;do{var f=i.lane,g=i.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var v=e,C=i;switch(f=t,g=a,C.tag){case 1:if(v=C.payload,typeof v=="function"){c=v.call(g,c,f);break e}c=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=C.payload,f=typeof v=="function"?v.call(g,c,f):v,f==null)break e;c=Te({},c,f);break e;case 2:ir=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[i]:f.push(i))}else g={eventTime:g,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=g,l=c):d=d.next=g,s|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(d===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);no|=s,e.lanes=s,e.memoizedState=c}}function sg(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=a,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var ri={},ya=Ir(ri),$s=Ir(ri),Xs=Ir(ri);function Jr(e){if(e===ri)throw Error(R(174));return e}function ip(e,t){switch(xe(Xs,t),xe($s,e),xe(ya,ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jc(t,e)}Le(ya),xe(ya,t)}function rn(){Le(ya),Le($s),Le(Xs)}function Mx(e){Jr(Xs.current);var t=Jr(ya.current),a=Jc(t,e.type);t!==a&&(xe($s,e),xe(ya,a))}function lp(e){$s.current===e&&(Le(ya),Le($s))}var be=Ir(0);function Gl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bc=[];function up(){for(var e=0;e<Bc.length;e++)Bc[e]._workInProgressVersionPrimary=null;Bc.length=0}var Il=za.ReactCurrentDispatcher,Oc=za.ReactCurrentBatchConfig,oo=0,Pe=null,Ue=null,We=null,jl=!1,Ns=!1,Qs=0,nw=0;function ot(){throw Error(R(321))}function dp(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!la(e[a],t[a]))return!1;return!0}function cp(e,t,a,r,o,n){if(oo=n,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Il.current=e===null||e.memoizedState===null?uw:dw,e=a(r,o),Ns){n=0;do{if(Ns=!1,Qs=0,25<=n)throw Error(R(301));n+=1,We=Ue=null,t.updateQueue=null,Il.current=cw,e=a(r,o)}while(Ns)}if(Il.current=Kl,t=Ue!==null&&Ue.next!==null,oo=0,We=Ue=Pe=null,jl=!1,t)throw Error(R(300));return e}function fp(){var e=Qs!==0;return Qs=0,e}function ha(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Pe.memoizedState=We=e:We=We.next=e,We}function Yt(){if(Ue===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=We===null?Pe.memoizedState:We.next;if(t!==null)We=t,Ue=e;else{if(e===null)throw Error(R(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},We===null?Pe.memoizedState=We=e:We=We.next=e}return We}function Ys(e,t){return typeof t=="function"?t(e):t}function Vc(e){var t=Yt(),a=t.queue;if(a===null)throw Error(R(311));a.lastRenderedReducer=e;var r=Ue,o=r.baseQueue,n=a.pending;if(n!==null){if(o!==null){var s=o.next;o.next=n.next,n.next=s}r.baseQueue=o=n,a.pending=null}if(o!==null){n=o.next,r=r.baseState;var i=s=null,l=null,u=n;do{var d=u.lane;if((oo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(i=l=c,s=r):l=l.next=c,Pe.lanes|=d,no|=d}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,la(r,t.memoizedState)||(Ct=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,a.lastRenderedState=r}if(e=a.interleaved,e!==null){o=e;do n=o.lane,Pe.lanes|=n,no|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function Uc(e){var t=Yt(),a=t.queue;if(a===null)throw Error(R(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var s=o=o.next;do n=e(n,s.action),s=s.next;while(s!==o);la(n,t.memoizedState)||(Ct=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function Nx(){}function Ex(e,t){var a=Pe,r=Yt(),o=t(),n=!la(r.memoizedState,o);if(n&&(r.memoizedState=o,Ct=!0),r=r.queue,pp(Ox.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||We!==null&&We.memoizedState.tag&1){if(a.flags|=2048,Zs(9,Bx.bind(null,a,r,o,t),void 0,null),Ge===null)throw Error(R(349));(oo&30)!==0||Fx(a,t,o)}return o}function Fx(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Bx(e,t,a,r){t.value=a,t.getSnapshot=r,Vx(t)&&Ux(e)}function Ox(e,t,a){return a(function(){Vx(t)&&Ux(e)})}function Vx(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!la(e,a)}catch{return!0}}function Ux(e){var t=Ua(e,1);t!==null&&ia(t,e,1,-1)}function ig(e){var t=ha();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ys,lastRenderedState:e},t.queue=e,e=e.dispatch=lw.bind(null,Pe,e),[t.memoizedState,e]}function Zs(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e)),e}function _x(){return Yt().memoizedState}function wl(e,t,a,r){var o=ha();Pe.flags|=e,o.memoizedState=Zs(1|t,a,void 0,r===void 0?null:r)}function nu(e,t,a,r){var o=Yt();r=r===void 0?null:r;var n=void 0;if(Ue!==null){var s=Ue.memoizedState;if(n=s.destroy,r!==null&&dp(r,s.deps)){o.memoizedState=Zs(t,a,n,r);return}}Pe.flags|=e,o.memoizedState=Zs(1|t,a,n,r)}function lg(e,t){return wl(8390656,8,e,t)}function pp(e,t){return nu(2048,8,e,t)}function zx(e,t){return nu(4,2,e,t)}function Hx(e,t){return nu(4,4,e,t)}function qx(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 Wx(e,t,a){return a=a!=null?a.concat([e]):null,nu(4,4,qx.bind(null,t,e),a)}function mp(){}function Gx(e,t){var a=Yt();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&dp(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function jx(e,t){var a=Yt();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&dp(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function Kx(e,t,a){return(oo&21)===0?(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=a):(la(a,t)||(a=Zg(),Pe.lanes|=a,no|=a,e.baseState=!0),t)}function sw(e,t){var a=pe;pe=a!==0&&4>a?a:4,e(!0);var r=Oc.transition;Oc.transition={};try{e(!1),t()}finally{pe=a,Oc.transition=r}}function $x(){return Yt().memoizedState}function iw(e,t,a){var r=yr(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},Xx(e))Qx(t,a);else if(a=Rx(e,t,a,r),a!==null){var o=pt();ia(a,e,r,o),Yx(a,t,r)}}function lw(e,t,a){var r=yr(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if(Xx(e))Qx(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(o.hasEagerState=!0,o.eagerState=i,la(i,s)){var l=t.interleaved;l===null?(o.next=o,np(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=Rx(e,t,o,r),a!==null&&(o=pt(),ia(a,e,r,o),Yx(a,t,r))}}function Xx(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Qx(e,t){Ns=jl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Yx(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Gf(e,a)}}var Kl={readContext:Qt,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},uw={readContext:Qt,useCallback:function(e,t){return ha().memoizedState=[e,t===void 0?null:t],e},useContext:Qt,useEffect:lg,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,wl(4194308,4,qx.bind(null,t,e),a)},useLayoutEffect:function(e,t){return wl(4194308,4,e,t)},useInsertionEffect:function(e,t){return wl(4,2,e,t)},useMemo:function(e,t){var a=ha();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=ha();return t=a!==void 0?a(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=iw.bind(null,Pe,e),[r.memoizedState,e]},useRef:function(e){var t=ha();return e={current:e},t.memoizedState=e},useState:ig,useDebugValue:mp,useDeferredValue:function(e){return ha().memoizedState=e},useTransition:function(){var e=ig(!1),t=e[0];return e=sw.bind(null,e[1]),ha().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=Pe,o=ha();if(we){if(a===void 0)throw Error(R(407));a=a()}else{if(a=t(),Ge===null)throw Error(R(349));(oo&30)!==0||Fx(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,lg(Ox.bind(null,r,n,e),[e]),r.flags|=2048,Zs(9,Bx.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=ha(),t=Ge.identifierPrefix;if(we){var a=Fa,r=Ea;a=(r&~(1<<32-sa(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Qs++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=nw++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},dw={readContext:Qt,useCallback:Gx,useContext:Qt,useEffect:pp,useImperativeHandle:Wx,useInsertionEffect:zx,useLayoutEffect:Hx,useMemo:jx,useReducer:Vc,useRef:_x,useState:function(){return Vc(Ys)},useDebugValue:mp,useDeferredValue:function(e){var t=Yt();return Kx(t,Ue.memoizedState,e)},useTransition:function(){var e=Vc(Ys)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Nx,useSyncExternalStore:Ex,useId:$x,unstable_isNewReconciler:!1},cw={readContext:Qt,useCallback:Gx,useContext:Qt,useEffect:pp,useImperativeHandle:Wx,useInsertionEffect:zx,useLayoutEffect:Hx,useMemo:jx,useReducer:Uc,useRef:_x,useState:function(){return Uc(Ys)},useDebugValue:mp,useDeferredValue:function(e){var t=Yt();return Ue===null?t.memoizedState=e:Kx(t,Ue.memoizedState,e)},useTransition:function(){var e=Uc(Ys)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Nx,useSyncExternalStore:Ex,useId:$x,unstable_isNewReconciler:!1};function ra(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function Cf(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:Te({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var su={isMounted:function(e){return(e=e._reactInternals)?lo(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=pt(),o=yr(e),n=Ba(r,o);n.payload=t,a!=null&&(n.callback=a),t=gr(e,n,o),t!==null&&(ia(t,e,o,r),Sl(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=pt(),o=yr(e),n=Ba(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=gr(e,n,o),t!==null&&(ia(t,e,o,r),Sl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=pt(),r=yr(e),o=Ba(a,r);o.tag=2,t!=null&&(o.callback=t),t=gr(e,o,r),t!==null&&(ia(t,e,r,a),Sl(t,e,r))}};function ug(e,t,a,r,o,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,n,s):t.prototype&&t.prototype.isPureReactComponent?!Ws(a,r)||!Ws(o,n):!0}function Zx(e,t,a){var r=!1,o=Cr,n=t.contextType;return typeof n=="object"&&n!==null?n=Qt(n):(o=It(t)?ao:it.current,r=t.contextTypes,n=(r=r!=null)?en(e,o):Cr),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=su,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function dg(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&su.enqueueReplaceState(t,t.state,null)}function Sf(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},sp(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Qt(n):(n=It(t)?ao:it.current,o.context=en(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(Cf(e,t,n,a),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&su.enqueueReplaceState(o,o.state,null),Wl(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function on(e,t){try{var a="",r=t;do a+=zS(r),r=r.return;while(r);var o=a}catch(n){o=`
|
|
6
|
+
`).replace(YI,"")}function pl(e,t,a){if(t=Yh(t),Yh(e)!==t&&a)throw Error(R(425))}function Ol(){}var ff=null,pf=null;function mf(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 hf=typeof setTimeout=="function"?setTimeout:void 0,ZI=typeof clearTimeout=="function"?clearTimeout:void 0,Zh=typeof Promise=="function"?Promise:void 0,JI=typeof queueMicrotask=="function"?queueMicrotask:typeof Zh<"u"?function(e){return Zh.resolve(null).then(e).catch(ew)}:hf;function ew(e){setTimeout(function(){throw e})}function Ec(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(r===0){e.removeChild(o),Hs(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);Hs(t)}function hr(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 Jh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var ln=Math.random().toString(36).slice(2),ga="__reactFiber$"+ln,Ks="__reactProps$"+ln,Va="__reactContainer$"+ln,gf="__reactEvents$"+ln,tw="__reactListeners$"+ln,aw="__reactHandles$"+ln;function Yr(e){var t=e[ga];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Va]||a[ga]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Jh(e);e!==null;){if(a=e[ga])return a;e=Jh(e)}return t}e=a,a=e.parentNode}return null}function ai(e){return e=e[ga]||e[Va],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _o(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ru(e){return e[Ks]||null}var xf=[],zo=-1;function Ir(e){return{current:e}}function Le(e){0>zo||(e.current=xf[zo],xf[zo]=null,zo--)}function xe(e,t){zo++,xf[zo]=e.current,e.current=t}var Cr={},st=Ir(Cr),Ct=Ir(!1),ao=Cr;function en(e,t){var a=e.type.contextTypes;if(!a)return Cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in a)o[n]=t[n];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function St(e){return e=e.childContextTypes,e!=null}function Vl(){Le(Ct),Le(st)}function eg(e,t,a){if(st.current!==Cr)throw Error(R(168));xe(st,t),xe(Ct,a)}function Ix(e,t,a){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return a;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,HS(e)||"Unknown",o));return Te({},a,r)}function Ul(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,ao=st.current,xe(st,e),xe(Ct,Ct.current),!0}function tg(e,t,a){var r=e.stateNode;if(!r)throw Error(R(169));a?(e=Ix(e,t,ao),r.__reactInternalMemoizedMergedChildContext=e,Le(Ct),Le(st),xe(st,e)):Le(Ct),xe(Ct,a)}var Na=null,ou=!1,Fc=!1;function wx(e){Na===null?Na=[e]:Na.push(e)}function rw(e){ou=!0,wx(e)}function wr(){if(!Fc&&Na!==null){Fc=!0;var e=0,t=pe;try{var a=Na;for(pe=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}Na=null,ou=!1}catch(o){throw Na!==null&&(Na=Na.slice(e+1)),Xg(Wf,wr),o}finally{pe=t,Fc=!1}}return null}var Ho=[],qo=0,_l=null,zl=0,jt=[],Kt=0,ro=null,Ea=1,Fa="";function Xr(e,t){Ho[qo++]=zl,Ho[qo++]=_l,_l=e,zl=t}function kx(e,t,a){jt[Kt++]=Ea,jt[Kt++]=Fa,jt[Kt++]=ro,ro=e;var r=Ea;e=Fa;var o=32-sa(r)-1;r&=~(1<<o),a+=1;var n=32-sa(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ea=1<<32-sa(t)+o|a<<o|r,Fa=n+e}else Ea=1<<n|a<<o|r,Fa=e}function Jf(e){e.return!==null&&(Xr(e,1),kx(e,1,0))}function ep(e){for(;e===_l;)_l=Ho[--qo],Ho[qo]=null,zl=Ho[--qo],Ho[qo]=null;for(;e===ro;)ro=jt[--Kt],jt[Kt]=null,Fa=jt[--Kt],jt[Kt]=null,Ea=jt[--Kt],jt[Kt]=null}var Mt=null,Dt=null,we=!1,na=null;function bx(e,t){var a=$t(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function ag(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Mt=e,Dt=hr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Mt=e,Dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=ro!==null?{id:Ea,overflow:Fa}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=$t(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,Mt=e,Dt=null,!0):!1;default:return!1}}function yf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vf(e){if(we){var t=Dt;if(t){var a=t;if(!ag(e,t)){if(yf(e))throw Error(R(418));t=hr(a.nextSibling);var r=Mt;t&&ag(e,t)?bx(r,a):(e.flags=e.flags&-4097|2,we=!1,Mt=e)}}else{if(yf(e))throw Error(R(418));e.flags=e.flags&-4097|2,we=!1,Mt=e}}}function rg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Mt=e}function ml(e){if(e!==Mt)return!1;if(!we)return rg(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!mf(e.type,e.memoizedProps)),t&&(t=Dt)){if(yf(e))throw Px(),Error(R(418));for(;t;)bx(e,t),t=hr(t.nextSibling)}if(rg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){Dt=hr(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}Dt=null}}else Dt=Mt?hr(e.stateNode.nextSibling):null;return!0}function Px(){for(var e=Dt;e;)e=hr(e.nextSibling)}function tn(){Dt=Mt=null,we=!1}function tp(e){na===null?na=[e]:na.push(e)}var ow=za.ReactCurrentBatchConfig;function Ls(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(R(309));var r=a.stateNode}if(!r)throw Error(R(147,e));var o=r,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(s){var i=o.refs;s===null?delete i[n]:i[n]=s},t._stringRef=n,t)}if(typeof e!="string")throw Error(R(284));if(!a._owner)throw Error(R(290,e))}return e}function hl(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function og(e){var t=e._init;return t(e._payload)}function Tx(e){function t(m,h){if(e){var x=m.deletions;x===null?(m.deletions=[h],m.flags|=16):x.push(h)}}function a(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function o(m,h){return m=vr(m,h),m.index=0,m.sibling=null,m}function n(m,h,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<h?(m.flags|=2,h):x):(m.flags|=2,h)):(m.flags|=1048576,h)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function i(m,h,x,S){return h===null||h.tag!==6?(h=Hc(x,m.mode,S),h.return=m,h):(h=o(h,x),h.return=m,h)}function l(m,h,x,S){var k=x.type;return k===Bo?d(m,h,x.props.children,S,x.key):h!==null&&(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===sr&&og(k)===h.type)?(S=o(h,x.props),S.ref=Ls(m,h,x),S.return=m,S):(S=Tl(x.type,x.key,x.props,null,m.mode,S),S.ref=Ls(m,h,x),S.return=m,S)}function u(m,h,x,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=qc(x,m.mode,S),h.return=m,h):(h=o(h,x.children||[]),h.return=m,h)}function d(m,h,x,S,k){return h===null||h.tag!==7?(h=to(x,m.mode,S,k),h.return=m,h):(h=o(h,x),h.return=m,h)}function c(m,h,x){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Hc(""+h,m.mode,x),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case el:return x=Tl(h.type,h.key,h.props,null,m.mode,x),x.ref=Ls(m,null,h),x.return=m,x;case Fo:return h=qc(h,m.mode,x),h.return=m,h;case sr:var S=h._init;return c(m,S(h._payload),x)}if(ks(h)||gs(h))return h=to(h,m.mode,x,null),h.return=m,h;hl(m,h)}return null}function f(m,h,x,S){var k=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return k!==null?null:i(m,h,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case el:return x.key===k?l(m,h,x,S):null;case Fo:return x.key===k?u(m,h,x,S):null;case sr:return k=x._init,f(m,h,k(x._payload),S)}if(ks(x)||gs(x))return k!==null?null:d(m,h,x,S,null);hl(m,x)}return null}function g(m,h,x,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(x)||null,i(h,m,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case el:return m=m.get(S.key===null?x:S.key)||null,l(h,m,S,k);case Fo:return m=m.get(S.key===null?x:S.key)||null,u(h,m,S,k);case sr:var T=S._init;return g(m,h,x,T(S._payload),k)}if(ks(S)||gs(S))return m=m.get(x)||null,d(h,m,S,k,null);hl(h,S)}return null}function v(m,h,x,S){for(var k=null,T=null,D=h,A=h=0,B=null;D!==null&&A<x.length;A++){D.index>A?(B=D,D=null):B=D.sibling;var V=f(m,D,x[A],S);if(V===null){D===null&&(D=B);break}e&&D&&V.alternate===null&&t(m,D),h=n(V,h,A),T===null?k=V:T.sibling=V,T=V,D=B}if(A===x.length)return a(m,D),we&&Xr(m,A),k;if(D===null){for(;A<x.length;A++)D=c(m,x[A],S),D!==null&&(h=n(D,h,A),T===null?k=D:T.sibling=D,T=D);return we&&Xr(m,A),k}for(D=r(m,D);A<x.length;A++)B=g(D,m,A,x[A],S),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?A:B.key),h=n(B,h,A),T===null?k=B:T.sibling=B,T=B);return e&&D.forEach(function(de){return t(m,de)}),we&&Xr(m,A),k}function C(m,h,x,S){var k=gs(x);if(typeof k!="function")throw Error(R(150));if(x=k.call(x),x==null)throw Error(R(151));for(var T=k=null,D=h,A=h=0,B=null,V=x.next();D!==null&&!V.done;A++,V=x.next()){D.index>A?(B=D,D=null):B=D.sibling;var de=f(m,D,V.value,S);if(de===null){D===null&&(D=B);break}e&&D&&de.alternate===null&&t(m,D),h=n(de,h,A),T===null?k=de:T.sibling=de,T=de,D=B}if(V.done)return a(m,D),we&&Xr(m,A),k;if(D===null){for(;!V.done;A++,V=x.next())V=c(m,V.value,S),V!==null&&(h=n(V,h,A),T===null?k=V:T.sibling=V,T=V);return we&&Xr(m,A),k}for(D=r(m,D);!V.done;A++,V=x.next())V=g(D,m,A,V.value,S),V!==null&&(e&&V.alternate!==null&&D.delete(V.key===null?A:V.key),h=n(V,h,A),T===null?k=V:T.sibling=V,T=V);return e&&D.forEach(function(se){return t(m,se)}),we&&Xr(m,A),k}function I(m,h,x,S){if(typeof x=="object"&&x!==null&&x.type===Bo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case el:e:{for(var k=x.key,T=h;T!==null;){if(T.key===k){if(k=x.type,k===Bo){if(T.tag===7){a(m,T.sibling),h=o(T,x.props.children),h.return=m,m=h;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===sr&&og(k)===T.type){a(m,T.sibling),h=o(T,x.props),h.ref=Ls(m,T,x),h.return=m,m=h;break e}a(m,T);break}else t(m,T);T=T.sibling}x.type===Bo?(h=to(x.props.children,m.mode,S,x.key),h.return=m,m=h):(S=Tl(x.type,x.key,x.props,null,m.mode,S),S.ref=Ls(m,h,x),S.return=m,m=S)}return s(m);case Fo:e:{for(T=x.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){a(m,h.sibling),h=o(h,x.children||[]),h.return=m,m=h;break e}else{a(m,h);break}else t(m,h);h=h.sibling}h=qc(x,m.mode,S),h.return=m,m=h}return s(m);case sr:return T=x._init,I(m,h,T(x._payload),S)}if(ks(x))return v(m,h,x,S);if(gs(x))return C(m,h,x,S);hl(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,h!==null&&h.tag===6?(a(m,h.sibling),h=o(h,x),h.return=m,m=h):(a(m,h),h=Hc(x,m.mode,S),h.return=m,m=h),s(m)):a(m,h)}return I}var an=Tx(!0),Ax=Tx(!1),Hl=Ir(null),ql=null,Wo=null,ap=null;function rp(){ap=Wo=ql=null}function op(e){var t=Hl.current;Le(Hl),e._currentValue=t}function Lf(e,t,a){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===a)break;e=e.return}}function Yo(e,t){ql=e,ap=Wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Lt=!0),e.firstContext=null)}function Qt(e){var t=e._currentValue;if(ap!==e)if(e={context:e,memoizedValue:t,next:null},Wo===null){if(ql===null)throw Error(R(308));Wo=e,ql.dependencies={lanes:0,firstContext:e}}else Wo=Wo.next=e;return t}var Zr=null;function np(e){Zr===null?Zr=[e]:Zr.push(e)}function Rx(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,np(t)):(a.next=o.next,o.next=a),t.interleaved=a,Ua(e,r)}function Ua(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var ir=!1;function sp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dx(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 Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gr(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ne&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ua(e,a)}return o=r.interleaved,o===null?(t.next=t,np(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ua(e,a)}function Sl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Gf(e,a)}}function ng(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};n===null?o=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:r.shared,effects:r.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Wl(e,t,a,r){var o=e.updateQueue;ir=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==s&&(i===null?d.firstBaseUpdate=u:i.next=u,d.lastBaseUpdate=l))}if(n!==null){var c=o.baseState;s=0,d=u=l=null,i=n;do{var f=i.lane,g=i.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var v=e,C=i;switch(f=t,g=a,C.tag){case 1:if(v=C.payload,typeof v=="function"){c=v.call(g,c,f);break e}c=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=C.payload,f=typeof v=="function"?v.call(g,c,f):v,f==null)break e;c=Te({},c,f);break e;case 2:ir=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[i]:f.push(i))}else g={eventTime:g,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=g,l=c):d=d.next=g,s|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(d===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);no|=s,e.lanes=s,e.memoizedState=c}}function sg(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=a,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var ri={},ya=Ir(ri),$s=Ir(ri),Xs=Ir(ri);function Jr(e){if(e===ri)throw Error(R(174));return e}function ip(e,t){switch(xe(Xs,t),xe($s,e),xe(ya,ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jc(t,e)}Le(ya),xe(ya,t)}function rn(){Le(ya),Le($s),Le(Xs)}function Mx(e){Jr(Xs.current);var t=Jr(ya.current),a=Jc(t,e.type);t!==a&&(xe($s,e),xe(ya,a))}function lp(e){$s.current===e&&(Le(ya),Le($s))}var be=Ir(0);function Gl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bc=[];function up(){for(var e=0;e<Bc.length;e++)Bc[e]._workInProgressVersionPrimary=null;Bc.length=0}var Il=za.ReactCurrentDispatcher,Oc=za.ReactCurrentBatchConfig,oo=0,Pe=null,Ue=null,We=null,jl=!1,Ns=!1,Qs=0,nw=0;function rt(){throw Error(R(321))}function dp(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!la(e[a],t[a]))return!1;return!0}function cp(e,t,a,r,o,n){if(oo=n,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Il.current=e===null||e.memoizedState===null?uw:dw,e=a(r,o),Ns){n=0;do{if(Ns=!1,Qs=0,25<=n)throw Error(R(301));n+=1,We=Ue=null,t.updateQueue=null,Il.current=cw,e=a(r,o)}while(Ns)}if(Il.current=Kl,t=Ue!==null&&Ue.next!==null,oo=0,We=Ue=Pe=null,jl=!1,t)throw Error(R(300));return e}function fp(){var e=Qs!==0;return Qs=0,e}function ha(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Pe.memoizedState=We=e:We=We.next=e,We}function Yt(){if(Ue===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=We===null?Pe.memoizedState:We.next;if(t!==null)We=t,Ue=e;else{if(e===null)throw Error(R(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},We===null?Pe.memoizedState=We=e:We=We.next=e}return We}function Ys(e,t){return typeof t=="function"?t(e):t}function Vc(e){var t=Yt(),a=t.queue;if(a===null)throw Error(R(311));a.lastRenderedReducer=e;var r=Ue,o=r.baseQueue,n=a.pending;if(n!==null){if(o!==null){var s=o.next;o.next=n.next,n.next=s}r.baseQueue=o=n,a.pending=null}if(o!==null){n=o.next,r=r.baseState;var i=s=null,l=null,u=n;do{var d=u.lane;if((oo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(i=l=c,s=r):l=l.next=c,Pe.lanes|=d,no|=d}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,la(r,t.memoizedState)||(Lt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,a.lastRenderedState=r}if(e=a.interleaved,e!==null){o=e;do n=o.lane,Pe.lanes|=n,no|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function Uc(e){var t=Yt(),a=t.queue;if(a===null)throw Error(R(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var s=o=o.next;do n=e(n,s.action),s=s.next;while(s!==o);la(n,t.memoizedState)||(Lt=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function Nx(){}function Ex(e,t){var a=Pe,r=Yt(),o=t(),n=!la(r.memoizedState,o);if(n&&(r.memoizedState=o,Lt=!0),r=r.queue,pp(Ox.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||We!==null&&We.memoizedState.tag&1){if(a.flags|=2048,Zs(9,Bx.bind(null,a,r,o,t),void 0,null),Ge===null)throw Error(R(349));(oo&30)!==0||Fx(a,t,o)}return o}function Fx(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Bx(e,t,a,r){t.value=a,t.getSnapshot=r,Vx(t)&&Ux(e)}function Ox(e,t,a){return a(function(){Vx(t)&&Ux(e)})}function Vx(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!la(e,a)}catch{return!0}}function Ux(e){var t=Ua(e,1);t!==null&&ia(t,e,1,-1)}function ig(e){var t=ha();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ys,lastRenderedState:e},t.queue=e,e=e.dispatch=lw.bind(null,Pe,e),[t.memoizedState,e]}function Zs(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e)),e}function _x(){return Yt().memoizedState}function wl(e,t,a,r){var o=ha();Pe.flags|=e,o.memoizedState=Zs(1|t,a,void 0,r===void 0?null:r)}function nu(e,t,a,r){var o=Yt();r=r===void 0?null:r;var n=void 0;if(Ue!==null){var s=Ue.memoizedState;if(n=s.destroy,r!==null&&dp(r,s.deps)){o.memoizedState=Zs(t,a,n,r);return}}Pe.flags|=e,o.memoizedState=Zs(1|t,a,n,r)}function lg(e,t){return wl(8390656,8,e,t)}function pp(e,t){return nu(2048,8,e,t)}function zx(e,t){return nu(4,2,e,t)}function Hx(e,t){return nu(4,4,e,t)}function qx(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 Wx(e,t,a){return a=a!=null?a.concat([e]):null,nu(4,4,qx.bind(null,t,e),a)}function mp(){}function Gx(e,t){var a=Yt();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&dp(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function jx(e,t){var a=Yt();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&dp(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function Kx(e,t,a){return(oo&21)===0?(e.baseState&&(e.baseState=!1,Lt=!0),e.memoizedState=a):(la(a,t)||(a=Zg(),Pe.lanes|=a,no|=a,e.baseState=!0),t)}function sw(e,t){var a=pe;pe=a!==0&&4>a?a:4,e(!0);var r=Oc.transition;Oc.transition={};try{e(!1),t()}finally{pe=a,Oc.transition=r}}function $x(){return Yt().memoizedState}function iw(e,t,a){var r=yr(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},Xx(e))Qx(t,a);else if(a=Rx(e,t,a,r),a!==null){var o=ft();ia(a,e,r,o),Yx(a,t,r)}}function lw(e,t,a){var r=yr(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if(Xx(e))Qx(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(o.hasEagerState=!0,o.eagerState=i,la(i,s)){var l=t.interleaved;l===null?(o.next=o,np(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=Rx(e,t,o,r),a!==null&&(o=ft(),ia(a,e,r,o),Yx(a,t,r))}}function Xx(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Qx(e,t){Ns=jl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Yx(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Gf(e,a)}}var Kl={readContext:Qt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},uw={readContext:Qt,useCallback:function(e,t){return ha().memoizedState=[e,t===void 0?null:t],e},useContext:Qt,useEffect:lg,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,wl(4194308,4,qx.bind(null,t,e),a)},useLayoutEffect:function(e,t){return wl(4194308,4,e,t)},useInsertionEffect:function(e,t){return wl(4,2,e,t)},useMemo:function(e,t){var a=ha();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=ha();return t=a!==void 0?a(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=iw.bind(null,Pe,e),[r.memoizedState,e]},useRef:function(e){var t=ha();return e={current:e},t.memoizedState=e},useState:ig,useDebugValue:mp,useDeferredValue:function(e){return ha().memoizedState=e},useTransition:function(){var e=ig(!1),t=e[0];return e=sw.bind(null,e[1]),ha().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=Pe,o=ha();if(we){if(a===void 0)throw Error(R(407));a=a()}else{if(a=t(),Ge===null)throw Error(R(349));(oo&30)!==0||Fx(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,lg(Ox.bind(null,r,n,e),[e]),r.flags|=2048,Zs(9,Bx.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=ha(),t=Ge.identifierPrefix;if(we){var a=Fa,r=Ea;a=(r&~(1<<32-sa(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Qs++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=nw++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},dw={readContext:Qt,useCallback:Gx,useContext:Qt,useEffect:pp,useImperativeHandle:Wx,useInsertionEffect:zx,useLayoutEffect:Hx,useMemo:jx,useReducer:Vc,useRef:_x,useState:function(){return Vc(Ys)},useDebugValue:mp,useDeferredValue:function(e){var t=Yt();return Kx(t,Ue.memoizedState,e)},useTransition:function(){var e=Vc(Ys)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Nx,useSyncExternalStore:Ex,useId:$x,unstable_isNewReconciler:!1},cw={readContext:Qt,useCallback:Gx,useContext:Qt,useEffect:pp,useImperativeHandle:Wx,useInsertionEffect:zx,useLayoutEffect:Hx,useMemo:jx,useReducer:Uc,useRef:_x,useState:function(){return Uc(Ys)},useDebugValue:mp,useDeferredValue:function(e){var t=Yt();return Ue===null?t.memoizedState=e:Kx(t,Ue.memoizedState,e)},useTransition:function(){var e=Uc(Ys)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Nx,useSyncExternalStore:Ex,useId:$x,unstable_isNewReconciler:!1};function ra(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function Cf(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:Te({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var su={isMounted:function(e){return(e=e._reactInternals)?lo(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=ft(),o=yr(e),n=Ba(r,o);n.payload=t,a!=null&&(n.callback=a),t=gr(e,n,o),t!==null&&(ia(t,e,o,r),Sl(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=ft(),o=yr(e),n=Ba(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=gr(e,n,o),t!==null&&(ia(t,e,o,r),Sl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ft(),r=yr(e),o=Ba(a,r);o.tag=2,t!=null&&(o.callback=t),t=gr(e,o,r),t!==null&&(ia(t,e,r,a),Sl(t,e,r))}};function ug(e,t,a,r,o,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,n,s):t.prototype&&t.prototype.isPureReactComponent?!Ws(a,r)||!Ws(o,n):!0}function Zx(e,t,a){var r=!1,o=Cr,n=t.contextType;return typeof n=="object"&&n!==null?n=Qt(n):(o=St(t)?ao:st.current,r=t.contextTypes,n=(r=r!=null)?en(e,o):Cr),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=su,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function dg(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&su.enqueueReplaceState(t,t.state,null)}function Sf(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},sp(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Qt(n):(n=St(t)?ao:st.current,o.context=en(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(Cf(e,t,n,a),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&su.enqueueReplaceState(o,o.state,null),Wl(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function on(e,t){try{var a="",r=t;do a+=zS(r),r=r.return;while(r);var o=a}catch(n){o=`
|
|
7
7
|
Error generating stack: `+n.message+`
|
|
8
|
-
`+n.stack}return{value:e,source:t,stack:o,digest:null}}function _c(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function If(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var fw=typeof WeakMap=="function"?WeakMap:Map;function Jx(e,t,a){a=Ba(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){Xl||(Xl=!0,Nf=r),If(e,t)},a}function ey(e,t,a){a=Ba(-1,a),a.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;a.payload=function(){return r(o)},a.callback=function(){If(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){If(e,t),typeof r!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function cg(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new fw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(o.add(a),e=bw.bind(null,e,t,a),t.then(e,e))}function fg(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 pg(e,t,a,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=Ba(-1,1),t.tag=2,gr(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var pw=za.ReactCurrentOwner,Ct=!1;function ft(e,t,a,r){t.child=e===null?Ax(t,null,a,r):an(t,e.child,a,r)}function mg(e,t,a,r,o){a=a.render;var n=t.ref;return Yo(t,o),r=cp(e,t,a,r,n,o),a=fp(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_a(e,t,o)):(we&&a&&Jf(t),t.flags|=1,ft(e,t,r,o),t.child)}function hg(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!Sp(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,ty(e,t,n,r,o)):(e=Tl(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ws,a(s,r)&&e.ref===t.ref)return _a(e,t,o)}return t.flags|=1,e=vr(n,r),e.ref=t.ref,e.return=t,t.child=e}function ty(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(Ws(n,r)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,_a(e,t,o)}return wf(e,t,a,r,o)}function ay(e,t,a){var r=t.pendingProps,o=r.children,n=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xe(jo,Rt),Rt|=a;else{if((a&1073741824)===0)return e=n!==null?n.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xe(jo,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,xe(jo,Rt),Rt|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,xe(jo,Rt),Rt|=r;return ft(e,t,o,a),t.child}function ry(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function wf(e,t,a,r,o){var n=It(a)?ao:it.current;return n=en(t,n),Yo(t,o),a=cp(e,t,a,r,n,o),r=fp(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_a(e,t,o)):(we&&r&&Jf(t),t.flags|=1,ft(e,t,a,o),t.child)}function gg(e,t,a,r,o){if(It(a)){var n=!0;Ul(t)}else n=!1;if(Yo(t,o),t.stateNode===null)kl(e,t),Zx(t,a,r),Sf(t,a,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,u=a.contextType;typeof u=="object"&&u!==null?u=Qt(u):(u=It(a)?ao:it.current,u=en(t,u));var d=a.getDerivedStateFromProps,c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||l!==u)&&dg(t,s,r,u),ir=!1;var f=t.memoizedState;s.state=f,Wl(t,r,s,o),l=t.memoizedState,i!==r||f!==l||St.current||ir?(typeof d=="function"&&(Cf(t,a,d,r),l=t.memoizedState),(i=ir||ug(t,a,i,r,f,l,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Dx(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:ra(t.type,i),s.props=u,c=t.pendingProps,f=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=Qt(l):(l=It(a)?ao:it.current,l=en(t,l));var g=a.getDerivedStateFromProps;(d=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==c||f!==l)&&dg(t,s,r,l),ir=!1,f=t.memoizedState,s.state=f,Wl(t,r,s,o);var v=t.memoizedState;i!==c||f!==v||St.current||ir?(typeof g=="function"&&(Cf(t,a,g,r),v=t.memoizedState),(u=ir||ug(t,a,u,r,f,v,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return kf(e,t,a,r,n,o)}function kf(e,t,a,r,o,n){ry(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&tg(t,a,!1),_a(e,t,n);r=t.stateNode,pw.current=t;var i=s&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=an(t,e.child,null,n),t.child=an(t,null,i,n)):ft(e,t,i,n),t.memoizedState=r.state,o&&tg(t,a,!0),t.child}function oy(e){var t=e.stateNode;t.pendingContext?eg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&eg(e,t.context,!1),ip(e,t.containerInfo)}function xg(e,t,a,r,o){return tn(),tp(o),t.flags|=256,ft(e,t,a,r),t.child}var bf={dehydrated:null,treeContext:null,retryLane:0};function Pf(e){return{baseLanes:e,cachePool:null,transitions:null}}function ny(e,t,a){var r=t.pendingProps,o=be.current,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),xe(be,o&1),e===null)return vf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,n?(r=t.mode,n=t.child,s={mode:"hidden",children:s},(r&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=s):n=uu(s,r,0,null),e=to(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=Pf(a),t.memoizedState=bf,e):hp(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return mw(e,t,s,r,i,o,a);if(n){n=r.fallback,s=t.mode,o=e.child,i=o.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=vr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=vr(i,n):(n=to(n,s,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,r=n,n=t.child,s=e.child.memoizedState,s=s===null?Pf(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=bf,r}return n=e.child,e=n.sibling,r=vr(n,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=a),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r}function hp(e,t){return t=uu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gl(e,t,a,r){return r!==null&&tp(r),an(t,e.child,null,a),e=hp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mw(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=_c(Error(R(422))),gl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=uu({mode:"visible",children:r.children},o,0,null),n=to(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&an(t,e.child,null,s),t.child.memoizedState=Pf(s),t.memoizedState=bf,n);if((t.mode&1)===0)return gl(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,n=Error(R(419)),r=_c(n,r,void 0),gl(e,t,s,r)}if(i=(s&e.childLanes)!==0,Ct||i){if(r=Ge,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,Ua(e,o),ia(r,e,o,-1))}return Cp(),r=_c(Error(R(421))),gl(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Pw.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,Dt=hr(o.nextSibling),Mt=t,we=!0,na=null,e!==null&&(jt[Kt++]=Ea,jt[Kt++]=Fa,jt[Kt++]=ro,Ea=e.id,Fa=e.overflow,ro=t),t=hp(t,r.children),t.flags|=4096,t)}function yg(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Lf(e.return,t,a)}function zc(e,t,a,r,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=o)}function sy(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(ft(e,t,r.children,a),r=be.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yg(e,a,t);else if(e.tag===19)yg(e,a,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(xe(be,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Gl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),zc(t,!1,o,a,n);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Gl(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}zc(t,!0,a,null,n);break;case"together":zc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function kl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _a(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),no|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,a=vr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function hw(e,t,a){switch(t.tag){case 3:oy(t),tn();break;case 5:Mx(t);break;case 1:It(t.type)&&Ul(t);break;case 4:ip(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xe(Hl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xe(be,be.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?ny(e,t,a):(xe(be,be.current&1),e=_a(e,t,a),e!==null?e.sibling:null);xe(be,be.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return sy(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xe(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,ay(e,t,a)}return _a(e,t,a)}var iy,Tf,ly,uy;iy=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};Tf=function(){};ly=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Jr(ya.current);var n=null;switch(a){case"input":o=Xc(e,o),r=Xc(e,r),n=[];break;case"select":o=Te({},o,{value:void 0}),r=Te({},r,{value:void 0}),n=[];break;case"textarea":o=Zc(e,o),r=Zc(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ol)}ef(a,r);var s;a=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var i=o[u];for(s in i)i.hasOwnProperty(s)&&(a||(a={}),a[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Os.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in r){var l=r[u];if(i=o?.[u],r.hasOwnProperty(u)&&l!==i&&(l!=null||i!=null))if(u==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(a||(a={}),a[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(a||(a={}),a[s]=l[s])}else a||(n||(n=[]),n.push(u,a)),a=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(n=n||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(n=n||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Os.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ve("scroll",e),n||i===l||(n=[])):(n=n||[]).push(u,l))}a&&(n=n||[]).push("style",a);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};uy=function(e,t,a,r){a!==r&&(t.flags|=4)};function Cs(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function gw(e,t,a){var r=t.pendingProps;switch(ep(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return It(t.type)&&Vl(),nt(t),null;case 3:return r=t.stateNode,rn(),Le(St),Le(it),up(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ml(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,na!==null&&(Bf(na),na=null))),Tf(e,t),nt(t),null;case 5:lp(t);var o=Jr(Xs.current);if(a=t.type,e!==null&&t.stateNode!=null)ly(e,t,a,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return nt(t),null}if(e=Jr(ya.current),ml(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[ga]=t,r[Ks]=n,e=(t.mode&1)!==0,a){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(o=0;o<Ps.length;o++)ve(Ps[o],r);break;case"source":ve("error",r);break;case"img":case"image":case"link":ve("error",r),ve("load",r);break;case"details":ve("toggle",r);break;case"input":bh(r,n),ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},ve("invalid",r);break;case"textarea":Th(r,n),ve("invalid",r)}ef(a,n),o=null;for(var s in n)if(n.hasOwnProperty(s)){var i=n[s];s==="children"?typeof i=="string"?r.textContent!==i&&(n.suppressHydrationWarning!==!0&&pl(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&pl(r.textContent,i,e),o=["children",""+i]):Os.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&ve("scroll",r)}switch(a){case"input":tl(r),Ph(r,n,!0);break;case"textarea":tl(r),Ah(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=Ol)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Og(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=s.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(a,{is:r.is}):(e=s.createElement(a),a==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,a),e[ga]=t,e[Ks]=r,iy(e,t,!1,!1),t.stateNode=e;e:{switch(s=tf(a,r),a){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ps.length;o++)ve(Ps[o],e);o=r;break;case"source":ve("error",e),o=r;break;case"img":case"image":case"link":ve("error",e),ve("load",e),o=r;break;case"details":ve("toggle",e),o=r;break;case"input":bh(e,r),o=Xc(e,r),ve("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Te({},r,{value:void 0}),ve("invalid",e);break;case"textarea":Th(e,r),o=Zc(e,r),ve("invalid",e);break;default:o=r}ef(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?_g(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Vg(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&Vs(e,l):typeof l=="number"&&Vs(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Os.hasOwnProperty(n)?l!=null&&n==="onScroll"&&ve("scroll",e):l!=null&&Uf(e,n,l,s))}switch(a){case"input":tl(e),Ph(e,r,!1);break;case"textarea":tl(e),Ah(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Lr(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?Ko(e,!!r.multiple,n,!1):r.defaultValue!=null&&Ko(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ol)}switch(a){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 nt(t),null;case 6:if(e&&t.stateNode!=null)uy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(a=Jr(Xs.current),Jr(ya.current),ml(t)){if(r=t.stateNode,a=t.memoizedProps,r[ga]=t,(n=r.nodeValue!==a)&&(e=Mt,e!==null))switch(e.tag){case 3:pl(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pl(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[ga]=t,t.stateNode=r}return nt(t),null;case 13:if(Le(be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&&Dt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Px(),tn(),t.flags|=98560,n=!1;else if(n=ml(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error(R(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(R(317));n[ga]=t}else tn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),n=!1}else na!==null&&(Bf(na),na=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(be.current&1)!==0?_e===0&&(_e=3):Cp())),t.updateQueue!==null&&(t.flags|=4),nt(t),null);case 4:return rn(),Tf(e,t),e===null&&Gs(t.stateNode.containerInfo),nt(t),null;case 10:return op(t.type._context),nt(t),null;case 17:return It(t.type)&&Vl(),nt(t),null;case 19:if(Le(be),n=t.memoizedState,n===null)return nt(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)Cs(n,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Gl(e),s!==null){for(t.flags|=128,Cs(n,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=a,a=t.child;a!==null;)n=a,e=r,n.flags&=14680066,s=n.alternate,s===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,e=s.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return xe(be,be.current&1|2),t.child}e=e.sibling}n.tail!==null&&Me()>nn&&(t.flags|=128,r=!0,Cs(n,!1),t.lanes=4194304)}else{if(!r)if(e=Gl(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),Cs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!we)return nt(t),null}else 2*Me()-n.renderingStartTime>nn&&a!==1073741824&&(t.flags|=128,r=!0,Cs(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(a=n.last,a!==null?a.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Me(),t.sibling=null,a=be.current,xe(be,r?a&1|2:a&1),t):(nt(t),null);case 22:case 23:return Lp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Rt&1073741824)!==0&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function xw(e,t){switch(ep(t),t.tag){case 1:return It(t.type)&&Vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rn(),Le(St),Le(it),up(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return lp(t),null;case 13:if(Le(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(be),null;case 4:return rn(),null;case 10:return op(t.type._context),null;case 22:case 23:return Lp(),null;case 24:return null;default:return null}}var xl=!1,st=!1,yw=typeof WeakSet=="function"?WeakSet:Set,F=null;function Go(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){Ae(e,t,r)}else a.current=null}function Af(e,t,a){try{a()}catch(r){Ae(e,t,r)}}var vg=!1;function vw(e,t){if(ff=El,e=mx(),Zf(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,n=r.focusNode;r=r.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var s=0,i=-1,l=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var g;c!==a||o!==0&&c.nodeType!==3||(i=s+o),c!==n||r!==0&&c.nodeType!==3||(l=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(g=c.firstChild)!==null;)f=c,c=g;for(;;){if(c===e)break t;if(f===a&&++u===o&&(i=s),f===n&&++d===r&&(l=s),(g=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=g}a=i===-1||l===-1?null:{start:i,end:l}}else a=null}a=a||{start:0,end:0}}else a=null;for(pf={focusedElem:e,selectionRange:a},El=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var C=v.memoizedProps,I=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?C:ra(t.type,C),I);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){Ae(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return v=vg,vg=!1,v}function Es(e,t,a){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var n=o.destroy;o.destroy=void 0,n!==void 0&&Af(t,a,n)}o=o.next}while(o!==r)}}function iu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var r=a.create;a.destroy=r()}a=a.next}while(a!==t)}}function Rf(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof t=="function"?t(e):t.current=e}}function dy(e){var t=e.alternate;t!==null&&(e.alternate=null,dy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ga],delete t[Ks],delete t[gf],delete t[tw],delete t[aw])),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 cy(e){return e.tag===5||e.tag===3||e.tag===4}function Lg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cy(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 Df(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ol));else if(r!==4&&(e=e.child,e!==null))for(Df(e,t,a),e=e.sibling;e!==null;)Df(e,t,a),e=e.sibling}function Mf(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mf(e,t,a),e=e.sibling;e!==null;)Mf(e,t,a),e=e.sibling}var $e=null,oa=!1;function nr(e,t,a){for(a=a.child;a!==null;)fy(e,t,a),a=a.sibling}function fy(e,t,a){if(xa&&typeof xa.onCommitFiberUnmount=="function")try{xa.onCommitFiberUnmount(Jl,a)}catch{}switch(a.tag){case 5:st||Go(a,t);case 6:var r=$e,o=oa;$e=null,nr(e,t,a),$e=r,oa=o,$e!==null&&(oa?(e=$e,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):$e.removeChild(a.stateNode));break;case 18:$e!==null&&(oa?(e=$e,a=a.stateNode,e.nodeType===8?Ec(e.parentNode,a):e.nodeType===1&&Ec(e,a),Hs(e)):Ec($e,a.stateNode));break;case 4:r=$e,o=oa,$e=a.stateNode.containerInfo,oa=!0,nr(e,t,a),$e=r,oa=o;break;case 0:case 11:case 14:case 15:if(!st&&(r=a.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var n=o,s=n.destroy;n=n.tag,s!==void 0&&((n&2)!==0||(n&4)!==0)&&Af(a,t,s),o=o.next}while(o!==r)}nr(e,t,a);break;case 1:if(!st&&(Go(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){Ae(a,t,i)}nr(e,t,a);break;case 21:nr(e,t,a);break;case 22:a.mode&1?(st=(r=st)||a.memoizedState!==null,nr(e,t,a),st=r):nr(e,t,a);break;default:nr(e,t,a)}}function Cg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new yw),t.forEach(function(r){var o=Tw.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function aa(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];try{var n=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:$e=i.stateNode,oa=!1;break e;case 3:$e=i.stateNode.containerInfo,oa=!0;break e;case 4:$e=i.stateNode.containerInfo,oa=!0;break e}i=i.return}if($e===null)throw Error(R(160));fy(n,s,o),$e=null,oa=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ae(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)py(t,e),t=t.sibling}function py(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(aa(t,e),ma(e),r&4){try{Es(3,e,e.return),iu(3,e)}catch(C){Ae(e,e.return,C)}try{Es(5,e,e.return)}catch(C){Ae(e,e.return,C)}}break;case 1:aa(t,e),ma(e),r&512&&a!==null&&Go(a,a.return);break;case 5:if(aa(t,e),ma(e),r&512&&a!==null&&Go(a,a.return),e.flags&32){var o=e.stateNode;try{Vs(o,"")}catch(C){Ae(e,e.return,C)}}if(r&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,s=a!==null?a.memoizedProps:n,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&Fg(o,n),tf(i,s);var u=tf(i,n);for(s=0;s<l.length;s+=2){var d=l[s],c=l[s+1];d==="style"?_g(o,c):d==="dangerouslySetInnerHTML"?Vg(o,c):d==="children"?Vs(o,c):Uf(o,d,c,u)}switch(i){case"input":Qc(o,n);break;case"textarea":Bg(o,n);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var g=n.value;g!=null?Ko(o,!!n.multiple,g,!1):f!==!!n.multiple&&(n.defaultValue!=null?Ko(o,!!n.multiple,n.defaultValue,!0):Ko(o,!!n.multiple,n.multiple?[]:"",!1))}o[Ks]=n}catch(C){Ae(e,e.return,C)}}break;case 6:if(aa(t,e),ma(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(C){Ae(e,e.return,C)}}break;case 3:if(aa(t,e),ma(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Hs(t.containerInfo)}catch(C){Ae(e,e.return,C)}break;case 4:aa(t,e),ma(e);break;case 13:aa(t,e),ma(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(yp=Me())),r&4&&Cg(e);break;case 22:if(d=a!==null&&a.memoizedState!==null,e.mode&1?(st=(u=st)||d,aa(t,e),st=u):aa(t,e),ma(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&(e.mode&1)!==0)for(F=e,d=e.child;d!==null;){for(c=F=d;F!==null;){switch(f=F,g=f.child,f.tag){case 0:case 11:case 14:case 15:Es(4,f,f.return);break;case 1:Go(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,a=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(C){Ae(r,a,C)}}break;case 5:Go(f,f.return);break;case 22:if(f.memoizedState!==null){Ig(c);continue}}g!==null?(g.return=f,F=g):Ig(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=c.stateNode,l=c.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=Ug("display",s))}catch(C){Ae(e,e.return,C)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(C){Ae(e,e.return,C)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:aa(t,e),ma(e),r&4&&Cg(e);break;case 21:break;default:aa(t,e),ma(e)}}function ma(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(cy(a)){var r=a;break e}a=a.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Vs(o,""),r.flags&=-33);var n=Lg(e);Mf(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=Lg(e);Df(e,i,s);break;default:throw Error(R(161))}}catch(l){Ae(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lw(e,t,a){F=e,my(e,t,a)}function my(e,t,a){for(var r=(e.mode&1)!==0;F!==null;){var o=F,n=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||xl;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||st;i=xl;var u=st;if(xl=s,(st=l)&&!u)for(F=o;F!==null;)s=F,l=s.child,s.tag===22&&s.memoizedState!==null?wg(o):l!==null?(l.return=s,F=l):wg(o);for(;n!==null;)F=n,my(n,t,a),n=n.sibling;F=o,xl=i,st=u}Sg(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,F=n):Sg(e,t,a)}}function Sg(e){for(;F!==null;){var t=F;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:st||iu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!st)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:ra(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&sg(t,n,r);break;case 3:var s=t.updateQueue;if(s!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}sg(t,s,a)}break;case 5:var i=t.stateNode;if(a===null&&t.flags&4){a=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src&&(a.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&Hs(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}st||t.flags&512&&Rf(t)}catch(f){Ae(t,t.return,f)}}if(t===e){F=null;break}if(a=t.sibling,a!==null){a.return=t.return,F=a;break}F=t.return}}function Ig(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}function wg(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{iu(4,t)}catch(l){Ae(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ae(t,o,l)}}var n=t.return;try{Rf(t)}catch(l){Ae(t,n,l)}break;case 5:var s=t.return;try{Rf(t)}catch(l){Ae(t,s,l)}}}catch(l){Ae(t,t.return,l)}if(t===e){F=null;break}var i=t.sibling;if(i!==null){i.return=t.return,F=i;break}F=t.return}}var Cw=Math.ceil,$l=za.ReactCurrentDispatcher,gp=za.ReactCurrentOwner,Xt=za.ReactCurrentBatchConfig,ne=0,Ge=null,Fe=null,Xe=0,Rt=0,jo=Ir(0),_e=0,Js=null,no=0,lu=0,xp=0,Fs=null,Lt=null,yp=0,nn=1/0,Ma=null,Xl=!1,Nf=null,xr=null,yl=!1,cr=null,Ql=0,Bs=0,Ef=null,bl=-1,Pl=0;function pt(){return(ne&6)!==0?Me():bl!==-1?bl:bl=Me()}function yr(e){return(e.mode&1)===0?1:(ne&2)!==0&&Xe!==0?Xe&-Xe:ow.transition!==null?(Pl===0&&(Pl=Zg()),Pl):(e=pe,e!==0||(e=window.event,e=e===void 0?16:nx(e.type)),e)}function ia(e,t,a,r){if(50<Bs)throw Bs=0,Ef=null,Error(R(185));ei(e,a,r),((ne&2)===0||e!==Ge)&&(e===Ge&&((ne&2)===0&&(lu|=a),_e===4&&ur(e,Xe)),wt(e,r),a===1&&ne===0&&(t.mode&1)===0&&(nn=Me()+500,ou&&wr()))}function wt(e,t){var a=e.callbackNode;sI(e,t);var r=Nl(e,e===Ge?Xe:0);if(r===0)a!==null&&Mh(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&Mh(a),t===1)e.tag===0?rw(kg.bind(null,e)):wx(kg.bind(null,e)),JI(function(){(ne&6)===0&&wr()}),a=null;else{switch(Jg(r)){case 1:a=Wf;break;case 4:a=Qg;break;case 16:a=Ml;break;case 536870912:a=Yg;break;default:a=Ml}a=Sy(a,hy.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function hy(e,t){if(bl=-1,Pl=0,(ne&6)!==0)throw Error(R(327));var a=e.callbackNode;if(Zo()&&e.callbackNode!==a)return null;var r=Nl(e,e===Ge?Xe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Yl(e,r);else{t=r;var o=ne;ne|=2;var n=xy();(Ge!==e||Xe!==t)&&(Ma=null,nn=Me()+500,eo(e,t));do try{ww();break}catch(i){gy(e,i)}while(!0);rp(),$l.current=n,ne=o,Fe!==null?t=0:(Ge=null,Xe=0,t=_e)}if(t!==0){if(t===2&&(o=sf(e),o!==0&&(r=o,t=Ff(e,o))),t===1)throw a=Js,eo(e,0),ur(e,r),wt(e,Me()),a;if(t===6)ur(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Sw(o)&&(t=Yl(e,r),t===2&&(n=sf(e),n!==0&&(r=n,t=Ff(e,n))),t===1))throw a=Js,eo(e,0),ur(e,r),wt(e,Me()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Qr(e,Lt,Ma);break;case 3:if(ur(e,r),(r&130023424)===r&&(t=yp+500-Me(),10<t)){if(Nl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){pt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=hf(Qr.bind(null,e,Lt,Ma),t);break}Qr(e,Lt,Ma);break;case 4:if(ur(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-sa(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cw(r/1960))-r,10<r){e.timeoutHandle=hf(Qr.bind(null,e,Lt,Ma),r);break}Qr(e,Lt,Ma);break;case 5:Qr(e,Lt,Ma);break;default:throw Error(R(329))}}}return wt(e,Me()),e.callbackNode===a?hy.bind(null,e):null}function Ff(e,t){var a=Fs;return e.current.memoizedState.isDehydrated&&(eo(e,t).flags|=256),e=Yl(e,t),e!==2&&(t=Lt,Lt=a,t!==null&&Bf(t)),e}function Bf(e){Lt===null?Lt=e:Lt.push.apply(Lt,e)}function Sw(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var r=0;r<a.length;r++){var o=a[r],n=o.getSnapshot;o=o.value;try{if(!la(n(),o))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 ur(e,t){for(t&=~xp,t&=~lu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-sa(t),r=1<<a;e[a]=-1,t&=~r}}function kg(e){if((ne&6)!==0)throw Error(R(327));Zo();var t=Nl(e,0);if((t&1)===0)return wt(e,Me()),null;var a=Yl(e,t);if(e.tag!==0&&a===2){var r=sf(e);r!==0&&(t=r,a=Ff(e,r))}if(a===1)throw a=Js,eo(e,0),ur(e,t),wt(e,Me()),a;if(a===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qr(e,Lt,Ma),wt(e,Me()),null}function vp(e,t){var a=ne;ne|=1;try{return e(t)}finally{ne=a,ne===0&&(nn=Me()+500,ou&&wr())}}function so(e){cr!==null&&cr.tag===0&&(ne&6)===0&&Zo();var t=ne;ne|=1;var a=Xt.transition,r=pe;try{if(Xt.transition=null,pe=1,e)return e()}finally{pe=r,Xt.transition=a,ne=t,(ne&6)===0&&wr()}}function Lp(){Rt=jo.current,Le(jo)}function eo(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,ZI(a)),Fe!==null)for(a=Fe.return;a!==null;){var r=a;switch(ep(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vl();break;case 3:rn(),Le(St),Le(it),up();break;case 5:lp(r);break;case 4:rn();break;case 13:Le(be);break;case 19:Le(be);break;case 10:op(r.type._context);break;case 22:case 23:Lp()}a=a.return}if(Ge=e,Fe=e=vr(e.current,null),Xe=Rt=t,_e=0,Js=null,xp=lu=no=0,Lt=Fs=null,Zr!==null){for(t=0;t<Zr.length;t++)if(a=Zr[t],r=a.interleaved,r!==null){a.interleaved=null;var o=r.next,n=a.pending;if(n!==null){var s=n.next;n.next=o,r.next=s}a.pending=r}Zr=null}return e}function gy(e,t){do{var a=Fe;try{if(rp(),Il.current=Kl,jl){for(var r=Pe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}jl=!1}if(oo=0,We=Ue=Pe=null,Ns=!1,Qs=0,gp.current=null,a===null||a.return===null){_e=1,Js=t,Fe=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=Xe,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=i,c=d.tag;if((d.mode&1)===0&&(c===0||c===11||c===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=fg(s);if(g!==null){g.flags&=-257,pg(g,s,i,n,t),g.mode&1&&cg(n,u,t),t=g,l=u;var v=t.updateQueue;if(v===null){var C=new Set;C.add(l),t.updateQueue=C}else v.add(l);break e}else{if((t&1)===0){cg(n,u,t),Cp();break e}l=Error(R(426))}}else if(we&&i.mode&1){var I=fg(s);if(I!==null){(I.flags&65536)===0&&(I.flags|=256),pg(I,s,i,n,t),tp(on(l,i));break e}}n=l=on(l,i),_e!==4&&(_e=2),Fs===null?Fs=[n]:Fs.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var m=Jx(n,l,t);ng(n,m);break e;case 1:i=l;var h=n.type,x=n.stateNode;if((n.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(xr===null||!xr.has(x)))){n.flags|=65536,t&=-t,n.lanes|=t;var S=ey(n,i,t);ng(n,S);break e}}n=n.return}while(n!==null)}vy(a)}catch(k){t=k,Fe===a&&a!==null&&(Fe=a=a.return);continue}break}while(!0)}function xy(){var e=$l.current;return $l.current=Kl,e===null?Kl:e}function Cp(){(_e===0||_e===3||_e===2)&&(_e=4),Ge===null||(no&268435455)===0&&(lu&268435455)===0||ur(Ge,Xe)}function Yl(e,t){var a=ne;ne|=2;var r=xy();(Ge!==e||Xe!==t)&&(Ma=null,eo(e,t));do try{Iw();break}catch(o){gy(e,o)}while(!0);if(rp(),ne=a,$l.current=r,Fe!==null)throw Error(R(261));return Ge=null,Xe=0,_e}function Iw(){for(;Fe!==null;)yy(Fe)}function ww(){for(;Fe!==null&&!YS();)yy(Fe)}function yy(e){var t=Cy(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?vy(e):Fe=t,gp.current=null}function vy(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=gw(a,t,Rt),a!==null){Fe=a;return}}else{if(a=xw(a,t),a!==null){a.flags&=32767,Fe=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_e=6,Fe=null;return}}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);_e===0&&(_e=5)}function Qr(e,t,a){var r=pe,o=Xt.transition;try{Xt.transition=null,pe=1,kw(e,t,a,r)}finally{Xt.transition=o,pe=r}return null}function kw(e,t,a,r){do Zo();while(cr!==null);if((ne&6)!==0)throw Error(R(327));a=e.finishedWork;var o=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var n=a.lanes|a.childLanes;if(iI(e,n),e===Ge&&(Fe=Ge=null,Xe=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||yl||(yl=!0,Sy(Ml,function(){return Zo(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=Xt.transition,Xt.transition=null;var s=pe;pe=1;var i=ne;ne|=4,gp.current=null,vw(e,a),py(a,e),KI(pf),El=!!ff,pf=ff=null,e.current=a,Lw(a,e,o),ZS(),ne=i,pe=s,Xt.transition=n}else e.current=a;if(yl&&(yl=!1,cr=e,Ql=o),n=e.pendingLanes,n===0&&(xr=null),tI(a.stateNode,r),wt(e,Me()),t!==null)for(r=e.onRecoverableError,a=0;a<t.length;a++)o=t[a],r(o.value,{componentStack:o.stack,digest:o.digest});if(Xl)throw Xl=!1,e=Nf,Nf=null,e;return(Ql&1)!==0&&e.tag!==0&&Zo(),n=e.pendingLanes,(n&1)!==0?e===Ef?Bs++:(Bs=0,Ef=e):Bs=0,wr(),null}function Zo(){if(cr!==null){var e=Jg(Ql),t=Xt.transition,a=pe;try{if(Xt.transition=null,pe=16>e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Ql=0,(ne&6)!==0)throw Error(R(331));var o=ne;for(ne|=4,F=e.current;F!==null;){var n=F,s=n.child;if((F.flags&16)!==0){var i=n.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(F=u;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:Es(8,d,n)}var c=d.child;if(c!==null)c.return=d,F=c;else for(;F!==null;){d=F;var f=d.sibling,g=d.return;if(dy(d),d===u){F=null;break}if(f!==null){f.return=g,F=f;break}F=g}}}var v=n.alternate;if(v!==null){var C=v.child;if(C!==null){v.child=null;do{var I=C.sibling;C.sibling=null,C=I}while(C!==null)}}F=n}}if((n.subtreeFlags&2064)!==0&&s!==null)s.return=n,F=s;else e:for(;F!==null;){if(n=F,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:Es(9,n,n.return)}var m=n.sibling;if(m!==null){m.return=n.return,F=m;break e}F=n.return}}var h=e.current;for(F=h;F!==null;){s=F;var x=s.child;if((s.subtreeFlags&2064)!==0&&x!==null)x.return=s,F=x;else e:for(s=h;F!==null;){if(i=F,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:iu(9,i)}}catch(k){Ae(i,i.return,k)}if(i===s){F=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,F=S;break e}F=i.return}}if(ne=o,wr(),xa&&typeof xa.onPostCommitFiberRoot=="function")try{xa.onPostCommitFiberRoot(Jl,e)}catch{}r=!0}return r}finally{pe=a,Xt.transition=t}}return!1}function bg(e,t,a){t=on(a,t),t=Jx(e,t,1),e=gr(e,t,1),t=pt(),e!==null&&(ei(e,1,t),wt(e,t))}function Ae(e,t,a){if(e.tag===3)bg(e,e,a);else for(;t!==null;){if(t.tag===3){bg(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xr===null||!xr.has(r))){e=on(a,e),e=ey(t,e,1),t=gr(t,e,1),e=pt(),t!==null&&(ei(t,1,e),wt(t,e));break}}t=t.return}}function bw(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=pt(),e.pingedLanes|=e.suspendedLanes&a,Ge===e&&(Xe&a)===a&&(_e===4||_e===3&&(Xe&130023424)===Xe&&500>Me()-yp?eo(e,0):xp|=a),wt(e,t)}function Ly(e,t){t===0&&((e.mode&1)===0?t=1:(t=ol,ol<<=1,(ol&130023424)===0&&(ol=4194304)));var a=pt();e=Ua(e,t),e!==null&&(ei(e,t,a),wt(e,a))}function Pw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ly(e,a)}function Tw(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Ly(e,a)}var Cy;Cy=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)Ct=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return Ct=!1,hw(e,t,a);Ct=(e.flags&131072)!==0}else Ct=!1,we&&(t.flags&1048576)!==0&&kx(t,zl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kl(e,t),e=t.pendingProps;var o=en(t,it.current);Yo(t,a),o=cp(null,t,r,e,o,a);var n=fp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(r)?(n=!0,Ul(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,sp(t),o.updater=su,t.stateNode=o,o._reactInternals=t,Sf(t,r,e,a),t=kf(null,t,r,!0,n,a)):(t.tag=0,we&&n&&Jf(t),ft(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(kl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Rw(r),e=ra(r,e),o){case 0:t=wf(null,t,r,e,a);break e;case 1:t=gg(null,t,r,e,a);break e;case 11:t=mg(null,t,r,e,a);break e;case 14:t=hg(null,t,r,ra(r.type,e),a);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ra(r,o),wf(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ra(r,o),gg(e,t,r,o,a);case 3:e:{if(oy(t),e===null)throw Error(R(387));r=t.pendingProps,n=t.memoizedState,o=n.element,Dx(e,t),Wl(t,r,null,a);var s=t.memoizedState;if(r=s.element,n.isDehydrated)if(n={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=on(Error(R(423)),t),t=xg(e,t,r,a,o);break e}else if(r!==o){o=on(Error(R(424)),t),t=xg(e,t,r,a,o);break e}else for(Dt=hr(t.stateNode.containerInfo.firstChild),Mt=t,we=!0,na=null,a=Ax(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(tn(),r===o){t=_a(e,t,a);break e}ft(e,t,r,a)}t=t.child}return t;case 5:return Mx(t),e===null&&vf(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,mf(r,o)?s=null:n!==null&&mf(r,n)&&(t.flags|=32),ry(e,t),ft(e,t,s,a),t.child;case 6:return e===null&&vf(t),null;case 13:return ny(e,t,a);case 4:return ip(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,a):ft(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ra(r,o),mg(e,t,r,o,a);case 7:return ft(e,t,t.pendingProps,a),t.child;case 8:return ft(e,t,t.pendingProps.children,a),t.child;case 12:return ft(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,n=t.memoizedProps,s=o.value,xe(Hl,r._currentValue),r._currentValue=s,n!==null)if(la(n.value,s)){if(n.children===o.children&&!St.current){t=_a(e,t,a);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){s=n.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(n.tag===1){l=Ba(-1,a&-a),l.tag=2;var u=n.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}n.lanes|=a,l=n.alternate,l!==null&&(l.lanes|=a),Lf(n.return,a,t),i.lanes|=a;break}l=l.next}}else if(n.tag===10)s=n.type===t.type?null:n.child;else if(n.tag===18){if(s=n.return,s===null)throw Error(R(341));s.lanes|=a,i=s.alternate,i!==null&&(i.lanes|=a),Lf(s,a,t),s=n.sibling}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}ft(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Yo(t,a),o=Qt(o),r=r(o),t.flags|=1,ft(e,t,r,a),t.child;case 14:return r=t.type,o=ra(r,t.pendingProps),o=ra(r.type,o),hg(e,t,r,o,a);case 15:return ty(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ra(r,o),kl(e,t),t.tag=1,It(r)?(e=!0,Ul(t)):e=!1,Yo(t,a),Zx(t,r,o),Sf(t,r,o,a),kf(null,t,r,!0,e,a);case 19:return sy(e,t,a);case 22:return ay(e,t,a)}throw Error(R(156,t.tag))};function Sy(e,t){return Xg(e,t)}function Aw(e,t,a,r){this.tag=e,this.key=a,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 $t(e,t,a,r){return new Aw(e,t,a,r)}function Sp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rw(e){if(typeof e=="function")return Sp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zf)return 11;if(e===Hf)return 14}return 2}function vr(e,t){var a=e.alternate;return a===null?(a=$t(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function Tl(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")Sp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Bo:return to(a.children,o,n,t);case _f:s=8,o|=8;break;case Gc:return e=$t(12,a,t,o|2),e.elementType=Gc,e.lanes=n,e;case jc:return e=$t(13,a,t,o),e.elementType=jc,e.lanes=n,e;case Kc:return e=$t(19,a,t,o),e.elementType=Kc,e.lanes=n,e;case Mg:return uu(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rg:s=10;break e;case Dg:s=9;break e;case zf:s=11;break e;case Hf:s=14;break e;case sr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=$t(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function to(e,t,a,r){return e=$t(7,e,r,t),e.lanes=a,e}function uu(e,t,a,r){return e=$t(22,e,r,t),e.elementType=Mg,e.lanes=a,e.stateNode={isHidden:!1},e}function Hc(e,t,a){return e=$t(6,e,null,t),e.lanes=a,e}function qc(e,t,a){return t=$t(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dw(e,t,a,r,o){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=bc(0),this.expirationTimes=bc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ip(e,t,a,r,o,n,s,i,l){return e=new Dw(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=$t(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},sp(n),e}function Mw(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function Iy(e){if(!e)return Cr;e=e._reactInternals;e:{if(lo(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(It(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var a=e.type;if(It(a))return Ix(e,a,t)}return t}function wy(e,t,a,r,o,n,s,i,l){return e=Ip(a,r,!0,e,o,n,s,i,l),e.context=Iy(null),a=e.current,r=pt(),o=yr(a),n=Ba(r,o),n.callback=t??null,gr(a,n,o),e.current.lanes=o,ei(e,o,r),wt(e,r),e}function du(e,t,a,r){var o=t.current,n=pt(),s=yr(o);return a=Iy(a),t.context===null?t.context=a:t.pendingContext=a,t=Ba(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gr(o,t,s),e!==null&&(ia(e,o,s,n),Sl(e,o,s)),s}function Zl(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 Pg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function wp(e,t){Pg(e,t),(e=e.alternate)&&Pg(e,t)}function Nw(){return null}var ky=typeof reportError=="function"?reportError:function(e){console.error(e)};function kp(e){this._internalRoot=e}cu.prototype.render=kp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));du(e,t,null,null)};cu.prototype.unmount=kp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;so(function(){du(null,e,null,null)}),t[Va]=null}};function cu(e){this._internalRoot=e}cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ax();e={blockedOn:null,target:e,priority:t};for(var a=0;a<lr.length&&t!==0&&t<lr[a].priority;a++);lr.splice(a,0,e),a===0&&ox(e)}};function bp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Tg(){}function Ew(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=Zl(s);n.call(u)}}var s=wy(t,r,e,0,null,!1,!1,"",Tg);return e._reactRootContainer=s,e[Va]=s.current,Gs(e.nodeType===8?e.parentNode:e),so(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=Zl(l);i.call(u)}}var l=Ip(e,0,!1,null,null,!1,!1,"",Tg);return e._reactRootContainer=l,e[Va]=l.current,Gs(e.nodeType===8?e.parentNode:e),so(function(){du(t,l,a,r)}),l}function pu(e,t,a,r,o){var n=a._reactRootContainer;if(n){var s=n;if(typeof o=="function"){var i=o;o=function(){var l=Zl(s);i.call(l)}}du(t,s,e,o)}else s=Ew(a,t,e,o,r);return Zl(s)}ex=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=bs(t.pendingLanes);a!==0&&(Gf(t,a|1),wt(t,Me()),(ne&6)===0&&(nn=Me()+500,wr()))}break;case 13:so(function(){var r=Ua(e,1);if(r!==null){var o=pt();ia(r,e,1,o)}}),wp(e,1)}};jf=function(e){if(e.tag===13){var t=Ua(e,134217728);if(t!==null){var a=pt();ia(t,e,134217728,a)}wp(e,134217728)}};tx=function(e){if(e.tag===13){var t=yr(e),a=Ua(e,t);if(a!==null){var r=pt();ia(a,e,t,r)}wp(e,t)}};ax=function(){return pe};rx=function(e,t){var a=pe;try{return pe=e,t()}finally{pe=a}};rf=function(e,t,a){switch(t){case"input":if(Qc(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=ru(r);if(!o)throw Error(R(90));Eg(r),Qc(r,o)}}}break;case"textarea":Bg(e,a);break;case"select":t=a.value,t!=null&&Ko(e,!!a.multiple,t,!1)}};qg=vp;Wg=so;var Fw={usingClientEntryPoint:!1,Events:[ai,_o,ru,zg,Hg,vp]},Ss={findFiberByHostInstance:Yr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bw={bundleType:Ss.bundleType,version:Ss.version,rendererPackageName:Ss.rendererPackageName,rendererConfig:Ss.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:za.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Kg(e),e===null?null:e.stateNode},findFiberByHostInstance:Ss.findFiberByHostInstance||Nw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Is=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Is.isDisabled&&Is.supportsFiber))try{Jl=Is.inject(Bw),xa=Is}catch{}var Is;Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fw;Ft.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bp(t))throw Error(R(200));return Mw(e,t,null,a)};Ft.createRoot=function(e,t){if(!bp(e))throw Error(R(299));var a=!1,r="",o=ky;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ip(e,1,!1,null,null,a,!1,r,o),e[Va]=t.current,Gs(e.nodeType===8?e.parentNode:e),new kp(t)};Ft.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Kg(t),e=e===null?null:e.stateNode,e};Ft.flushSync=function(e){return so(e)};Ft.hydrate=function(e,t,a){if(!fu(t))throw Error(R(200));return pu(null,e,t,!0,a)};Ft.hydrateRoot=function(e,t,a){if(!bp(e))throw Error(R(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=ky;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=wy(t,null,e,1,a??null,o,!1,n,s),e[Va]=t.current,Gs(e),r)for(e=0;e<r.length;e++)a=r[e],o=a._getVersion,o=o(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,o]:t.mutableSourceEagerHydrationData.push(a,o);return new cu(t)};Ft.render=function(e,t,a){if(!fu(t))throw Error(R(200));return pu(null,e,t,!1,a)};Ft.unmountComponentAtNode=function(e){if(!fu(e))throw Error(R(40));return e._reactRootContainer?(so(function(){pu(null,null,e,!1,function(){e._reactRootContainer=null,e[Va]=null})}),!0):!1};Ft.unstable_batchedUpdates=vp;Ft.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!fu(a))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return pu(e,t,a,!1,r)};Ft.version="18.3.1-next-f1338f8080-20240426"});var Pp=Da((CT,Ty)=>{"use strict";function Py(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Py)}catch(e){console.error(e)}}Py(),Ty.exports=by()});var Ry=Da(Tp=>{"use strict";var Ay=Pp();Tp.createRoot=Ay.createRoot,Tp.hydrateRoot=Ay.hydrateRoot;var ST});var _y=Da(hu=>{"use strict";var mk=G(),hk=Symbol.for("react.element"),gk=Symbol.for("react.fragment"),xk=Object.prototype.hasOwnProperty,yk=mk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vk={key:!0,ref:!0,__self:!0,__source:!0};function Uy(e,t,a){var r,o={},n=null,s=null;a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)xk.call(t,r)&&!vk.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:hk,type:e,key:n,ref:s,props:o,_owner:yk.current}}hu.Fragment=gk;hu.jsx=Uy;hu.jsxs=Uy});var le=Da((RT,zy)=>{"use strict";zy.exports=_y()});var fT={};yS(fT,{initKiteChat:()=>Wm});var Ta=M(G(),1),rS=M(Ry(),1);var j=M(G(),1);function Dy(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=Dy(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function mu(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=Dy(e))&&(r&&(r+=" "),r+=t);return r}var Ow=e=>{let t=Uw(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split("-");return i[0]===""&&i.length!==1&&i.shift(),Ey(i,t)||Vw(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Ey=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?Ey(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let n=e.join("-");return t.validators.find(({validator:s})=>s(n))?.classGroupId},My=/^\[(.+)\]$/,Vw=e=>{if(My.test(e)){let t=My.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Uw=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return zw(Object.entries(e.classGroups),a).forEach(([n,s])=>{Rp(s,r,n,t)}),r},Rp=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let n=o===""?t:Ny(t,o);n.classGroupId=a;return}if(typeof o=="function"){if(_w(o)){Rp(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([n,s])=>{Rp(s,Ny(t,n),a,r)})})},Ny=(e,t)=>{let a=e;return t.split("-").forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},_w=e=>e.isThemeGetter,zw=(e,t)=>t?e.map(([a,r])=>{let o=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,o]}):e,Hw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,r=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return o(n,s),s},set(n,s){a.has(n)?a.set(n,s):o(n,s)}}};var qw=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,c;for(let I=0;I<i.length;I++){let m=i[I];if(u===0){if(m===o&&(r||i.slice(I,I+n)===t)){l.push(i.slice(d,I)),d=I+n;continue}if(m==="/"){c=I;continue}}m==="["?u++:m==="]"&&u--}let f=l.length===0?i:i.substring(d),g=f.startsWith("!"),v=g?f.substring(1):f,C=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:C}};return a?i=>a({className:i,parseClassName:s}):s},Ww=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(r=>{r[0]==="["?(t.push(...a.sort(),r),a=[]):a.push(r)}),t.push(...a.sort()),t},Gw=e=>({cache:Hw(e.cacheSize),parseClassName:qw(e),...Ow(e)}),jw=/\s+/,Kw=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,n=[],s=e.trim().split(jw),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:g}=a(u),v=!!g,C=r(v?f.substring(0,g):f);if(!C){if(!v){i=u+(i.length>0?" "+i:i);continue}if(C=r(f),!C){i=u+(i.length>0?" "+i:i);continue}v=!1}let I=Ww(d).join(":"),m=c?I+"!":I,h=m+C;if(n.includes(h))continue;n.push(h);let x=o(C,v);for(let S=0;S<x.length;++S){let k=x[S];n.push(m+k)}i=u+(i.length>0?" "+i:i)}return i};function $w(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Fy(t))&&(r&&(r+=" "),r+=a);return r}var Fy=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Fy(e[r]))&&(a&&(a+=" "),a+=t);return a};function Xw(e,...t){let a,r,o,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=Gw(u),r=a.cache.get,o=a.cache.set,n=i,i(l)}function i(l){let u=r(l);if(u)return u;let d=Kw(l,a);return o(l,d),d}return function(){return n($w.apply(null,arguments))}}var Ce=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},By=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qw=/^\d+\/\d+$/,Yw=new Set(["px","full","screen"]),Zw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ek=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ak=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ha=e=>un(e)||Yw.has(e)||Qw.test(e),kr=e=>dn(e,"length",dk),un=e=>!!e&&!Number.isNaN(Number(e)),Ap=e=>dn(e,"number",un),oi=e=>!!e&&Number.isInteger(Number(e)),rk=e=>e.endsWith("%")&&un(e.slice(0,-1)),X=e=>By.test(e),br=e=>Zw.test(e),ok=new Set(["length","size","percentage"]),nk=e=>dn(e,ok,Oy),sk=e=>dn(e,"position",Oy),ik=new Set(["image","url"]),lk=e=>dn(e,ik,fk),uk=e=>dn(e,"",ck),ni=()=>!0,dn=(e,t,a)=>{let r=By.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},dk=e=>Jw.test(e)&&!ek.test(e),Oy=()=>!1,ck=e=>tk.test(e),fk=e=>ak.test(e);var pk=()=>{let e=Ce("colors"),t=Ce("spacing"),a=Ce("blur"),r=Ce("brightness"),o=Ce("borderColor"),n=Ce("borderRadius"),s=Ce("borderSpacing"),i=Ce("borderWidth"),l=Ce("contrast"),u=Ce("grayscale"),d=Ce("hueRotate"),c=Ce("invert"),f=Ce("gap"),g=Ce("gradientColorStops"),v=Ce("gradientColorStopPositions"),C=Ce("inset"),I=Ce("margin"),m=Ce("opacity"),h=Ce("padding"),x=Ce("saturate"),S=Ce("scale"),k=Ce("sepia"),T=Ce("skew"),D=Ce("space"),A=Ce("translate"),B=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",X,t],se=()=>[X,t],jr=()=>["",Ha,kr],Z=()=>["auto",un,X],Jt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["solid","dashed","dotted","double","none"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ve=()=>["start","end","center","between","around","evenly","stretch"],xt=()=>["","0",X],Wt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],yt=()=>[un,X];return{cacheSize:500,separator:":",theme:{colors:[ni],spacing:[Ha,kr],blur:["none","",br,X],brightness:yt(),borderColor:[e],borderRadius:["none","","full",br,X],borderSpacing:se(),borderWidth:jr(),contrast:yt(),grayscale:xt(),hueRotate:yt(),invert:xt(),gap:se(),gradientColorStops:[e],gradientColorStopPositions:[rk,kr],inset:de(),margin:de(),opacity:yt(),padding:se(),saturate:yt(),scale:yt(),sepia:xt(),skew:yt(),space:se(),translate:se()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[br]}],"break-after":[{"break-after":Wt()}],"break-before":[{"break-before":Wt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Jt(),X]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",oi,X]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:xt()}],shrink:[{shrink:xt()}],order:[{order:["first","last","none",oi,X]}],"grid-cols":[{"grid-cols":[ni]}],"col-start-end":[{col:["auto",{span:["full",oi,X]},X]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[ni]}],"row-start-end":[{row:["auto",{span:[oi,X]},X]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],ms:[{ms:[I]}],me:[{me:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[br]},br]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",br,kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ap]}],"font-family":[{font:[ni]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",un,Ap]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ha,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ha,kr]}],"underline-offset":[{"underline-offset":["auto",Ha,X]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:se()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Jt(),sk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...he(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:he()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[Ha,X]}],"outline-w":[{outline:[Ha,kr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:jr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Ha,kr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",br,uk]}],"shadow-color":[{shadow:[ni]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...De(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":De()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",br,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[x]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:yt()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:yt()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[oi,X]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":se()}],"scroll-mx":[{"scroll-mx":se()}],"scroll-my":[{"scroll-my":se()}],"scroll-ms":[{"scroll-ms":se()}],"scroll-me":[{"scroll-me":se()}],"scroll-mt":[{"scroll-mt":se()}],"scroll-mr":[{"scroll-mr":se()}],"scroll-mb":[{"scroll-mb":se()}],"scroll-ml":[{"scroll-ml":se()}],"scroll-p":[{"scroll-p":se()}],"scroll-px":[{"scroll-px":se()}],"scroll-py":[{"scroll-py":se()}],"scroll-ps":[{"scroll-ps":se()}],"scroll-pe":[{"scroll-pe":se()}],"scroll-pt":[{"scroll-pt":se()}],"scroll-pr":[{"scroll-pr":se()}],"scroll-pb":[{"scroll-pb":se()}],"scroll-pl":[{"scroll-pl":se()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ha,kr,Ap]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Vy=Xw(pk);function Bt(...e){return Vy(mu(e))}var Hy=M(le(),1);function ke({className:e,type:t,...a}){return(0,Hy.jsx)("input",{type:t,"data-slot":"input",className:Bt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...a})}var Be=M(G(),1);var Wy=M(G(),1);function qy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function si(...e){return t=>{let a=!1,r=e.map(o=>{let n=qy(o,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let o=0;o<r.length;o++){let n=r[o];typeof n=="function"?n():qy(e[o],null)}}}}function qa(...e){return Wy.useCallback(si(...e),e)}var gu=M(le(),1),Lk=Symbol.for("react.lazy"),xu=Be[" use ".trim().toString()];function Ck(e){return typeof e=="object"&&e!==null&&"then"in e}function Gy(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Lk&&"_payload"in e&&Ck(e._payload)}function Sk(e){let t=Ik(e),a=Be.forwardRef((r,o)=>{let{children:n,...s}=r;Gy(n)&&typeof xu=="function"&&(n=xu(n._payload));let i=Be.Children.toArray(n),l=i.find(kk);if(l){let u=l.props.children,d=i.map(c=>c===l?Be.Children.count(u)>1?Be.Children.only(null):Be.isValidElement(u)?u.props.children:null:c);return(0,gu.jsx)(t,{...s,ref:o,children:Be.isValidElement(u)?Be.cloneElement(u,void 0,d):null})}return(0,gu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}var jy=Sk("Slot");function Ik(e){let t=Be.forwardRef((a,r)=>{let{children:o,...n}=a;if(Gy(o)&&typeof xu=="function"&&(o=xu(o._payload)),Be.isValidElement(o)){let s=Pk(o),i=bk(n,o.props);return o.type!==Be.Fragment&&(i.ref=r?si(r,s):s),Be.cloneElement(o,i)}return Be.Children.count(o)>1?Be.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wk=Symbol("radix.slottable");function kk(e){return Be.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wk}function bk(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}function Pk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Ky=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$y=mu,Xy=(e,t)=>a=>{var r;if(t?.variants==null)return $y(e,a?.class,a?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(u=>{let d=a?.[u],c=n?.[u];if(d===null)return null;let f=Ky(d)||Ky(c);return o[u][f]}),i=a&&Object.entries(a).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...g}=d;return Object.entries(g).every(v=>{let[C,I]=v;return Array.isArray(I)?I.includes({...n,...i}[C]):{...n,...i}[C]===I})?[...u,c,f]:u},[]);return $y(e,s,l,a?.class,a?.className)};var Qy=M(le(),1),Tk=Xy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ot({className:e,variant:t,size:a,asChild:r=!1,...o}){return(0,Qy.jsx)(r?jy:"button",{"data-slot":"button",className:Bt(Tk({variant:t,size:a,className:e})),...o})}var Sv=M(G(),1);var q=M(G(),1);var Zy=M(G(),1),Ek=M(Pp(),1);var ze=M(G(),1);var yu=M(le(),1);function Yy(e){let t=Ak(e),a=ze.forwardRef((r,o)=>{let{children:n,...s}=r,i=ze.Children.toArray(n),l=i.find(Dk);if(l){let u=l.props.children,d=i.map(c=>c===l?ze.Children.count(u)>1?ze.Children.only(null):ze.isValidElement(u)?u.props.children:null:c);return(0,yu.jsx)(t,{...s,ref:o,children:ze.isValidElement(u)?ze.cloneElement(u,void 0,d):null})}return(0,yu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}function Ak(e){let t=ze.forwardRef((a,r)=>{let{children:o,...n}=a;if(ze.isValidElement(o)){let s=Nk(o),i=Mk(n,o.props);return o.type!==ze.Fragment&&(i.ref=r?si(r,s):s),ze.cloneElement(o,i)}return ze.Children.count(o)>1?ze.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rk=Symbol("radix.slottable");function Dk(e){return ze.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rk}function Mk(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}function Nk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Jy=M(le(),1),Fk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cn=Fk.reduce((e,t)=>{let a=Yy(`Primitive.${t}`),r=Zy.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Jy.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});var kt=M(G(),1);var ev=M(G(),1),ii=globalThis?.document?ev.useLayoutEffect:()=>{};var tv=M(G(),1);function Bk(e,t){return tv.useReducer((a,r)=>t[a][r]??a,e)}var fn=e=>{let{present:t,children:a}=e,r=Ok(t),o=typeof a=="function"?a({present:r.isPresent}):kt.Children.only(a),n=qa(r.ref,Vk(o));return typeof a=="function"||r.isPresent?kt.cloneElement(o,{ref:n}):null};fn.displayName="Presence";function Ok(e){let[t,a]=kt.useState(),r=kt.useRef(null),o=kt.useRef(e),n=kt.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Bk(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return kt.useEffect(()=>{let u=vu(r.current);n.current=i==="mounted"?u:"none"},[i]),ii(()=>{let u=r.current,d=o.current;if(d!==e){let f=n.current,g=vu(u);e?l("MOUNT"):g==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ii(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,c=g=>{let C=vu(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&C&&(l("ANIMATION_END"),!o.current)){let I=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=I)})}},f=g=>{g.target===t&&(n.current=vu(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:kt.useCallback(u=>{r.current=u?getComputedStyle(u):null,a(u)},[])}}function vu(e){return e?.animationName||"none"}function Vk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Wa=M(G(),1),av=M(le(),1);function rv(e,t=[]){let a=[];function r(n,s){let i=Wa.createContext(s),l=a.length;a=[...a,s];let u=c=>{let{scope:f,children:g,...v}=c,C=f?.[e]?.[l]||i,I=Wa.useMemo(()=>v,Object.values(v));return(0,av.jsx)(C.Provider,{value:I,children:g})};u.displayName=n+"Provider";function d(c,f){let g=f?.[e]?.[l]||i,v=Wa.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[u,d]}let o=()=>{let n=a.map(s=>Wa.createContext(s));return function(i){let l=i?.[e]||n;return Wa.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Uk(o,...t)]}function Uk(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let c=l(n)[`__scope${u}`];return{...i,...c}},{});return Wa.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return a.scopeName=t.scopeName,a}var pn=M(G(),1);function Pr(e){let t=pn.useRef(e);return pn.useEffect(()=>{t.current=e}),pn.useMemo(()=>(...a)=>t.current?.(...a),[])}var Lu=M(G(),1),_k=M(le(),1),zk=Lu.createContext(void 0);function ov(e){let t=Lu.useContext(zk);return e||t||"ltr"}function nv(e,[t,a]){return Math.min(a,Math.max(t,e))}var eA=!!(typeof window<"u"&&window.document&&window.document.createElement);function Tr(e,t,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e?.(o),a===!1||!o.defaultPrevented)return t?.(o)}}var iv=M(G(),1),ue=M(le(),1);function Hk(e,t){return iv.useReducer((a,r)=>t[a][r]??a,e)}var Dp="ScrollArea",[lv,cA]=rv(Dp),[qk,Zt]=lv(Dp),uv=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,type:r="hover",dir:o,scrollHideDelay:n=600,...s}=e,[i,l]=q.useState(null),[u,d]=q.useState(null),[c,f]=q.useState(null),[g,v]=q.useState(null),[C,I]=q.useState(null),[m,h]=q.useState(0),[x,S]=q.useState(0),[k,T]=q.useState(!1),[D,A]=q.useState(!1),B=qa(t,de=>l(de)),V=ov(o);return(0,ue.jsx)(qk,{scope:a,type:r,dir:V,scrollHideDelay:n,scrollArea:i,viewport:u,onViewportChange:d,content:c,onContentChange:f,scrollbarX:g,onScrollbarXChange:v,scrollbarXEnabled:k,onScrollbarXEnabledChange:T,scrollbarY:C,onScrollbarYChange:I,scrollbarYEnabled:D,onScrollbarYEnabledChange:A,onCornerWidthChange:h,onCornerHeightChange:S,children:(0,ue.jsx)(cn.div,{dir:V,...s,ref:B,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});uv.displayName=Dp;var dv="ScrollAreaViewport",cv=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,children:r,nonce:o,...n}=e,s=Zt(dv,a),i=q.useRef(null),l=qa(t,i,s.onViewportChange);return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,ue.jsx)(cn.div,{"data-radix-scroll-area-viewport":"",...n,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,ue.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});cv.displayName=dv;var va="ScrollAreaScrollbar",Mp=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Zt(va,e.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return q.useEffect(()=>(i?n(!0):s(!0),()=>{i?n(!1):s(!1)}),[i,n,s]),o.type==="hover"?(0,ue.jsx)(Wk,{...r,ref:t,forceMount:a}):o.type==="scroll"?(0,ue.jsx)(Gk,{...r,ref:t,forceMount:a}):o.type==="auto"?(0,ue.jsx)(fv,{...r,ref:t,forceMount:a}):o.type==="always"?(0,ue.jsx)(Np,{...r,ref:t}):null});Mp.displayName=va;var Wk=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Zt(va,e.__scopeScrollArea),[n,s]=q.useState(!1);return q.useEffect(()=>{let i=o.scrollArea,l=0;if(i){let u=()=>{window.clearTimeout(l),s(!0)},d=()=>{l=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",u),i.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",u),i.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),(0,ue.jsx)(fn,{present:a||n,children:(0,ue.jsx)(fv,{"data-state":n?"visible":"hidden",...r,ref:t})})}),Gk=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Zt(va,e.__scopeScrollArea),n=e.orientation==="horizontal",s=wu(()=>l("SCROLL_END"),100),[i,l]=Hk("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return q.useEffect(()=>{if(i==="idle"){let u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[i,o.scrollHideDelay,l]),q.useEffect(()=>{let u=o.viewport,d=n?"scrollLeft":"scrollTop";if(u){let c=u[d],f=()=>{let g=u[d];c!==g&&(l("SCROLL"),s()),c=g};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,n,l,s]),(0,ue.jsx)(fn,{present:a||i!=="hidden",children:(0,ue.jsx)(Np,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Tr(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Tr(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),fv=q.forwardRef((e,t)=>{let a=Zt(va,e.__scopeScrollArea),{forceMount:r,...o}=e,[n,s]=q.useState(!1),i=e.orientation==="horizontal",l=wu(()=>{if(a.viewport){let u=a.viewport.offsetWidth<a.viewport.scrollWidth,d=a.viewport.offsetHeight<a.viewport.scrollHeight;s(i?u:d)}},10);return mn(a.viewport,l),mn(a.content,l),(0,ue.jsx)(fn,{present:r||n,children:(0,ue.jsx)(Np,{"data-state":n?"visible":"hidden",...o,ref:t})})}),Np=q.forwardRef((e,t)=>{let{orientation:a="vertical",...r}=e,o=Zt(va,e.__scopeScrollArea),n=q.useRef(null),s=q.useRef(0),[i,l]=q.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=gv(i.viewport,i.content),d={...r,sizes:i,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function c(f,g){return Yk(f,s.current,i,g)}return a==="horizontal"?(0,ue.jsx)(jk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let f=o.viewport.scrollLeft,g=sv(f,i,o.dir);n.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=c(f,o.dir))}}):a==="vertical"?(0,ue.jsx)(Kk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let f=o.viewport.scrollTop,g=sv(f,i);n.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=c(f))}}):null}),jk=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Zt(va,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=qa(t,l,n.onScrollbarXChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,ue.jsx)(mv,{"data-orientation":"horizontal",...o,ref:u,sizes:a,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Iu(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,c)=>{if(n.viewport){let f=n.viewport.scrollLeft+d.deltaX;e.onWheelScroll(f),yv(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Su(s.paddingLeft),paddingEnd:Su(s.paddingRight)}})}})}),Kk=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Zt(va,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=qa(t,l,n.onScrollbarYChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,ue.jsx)(mv,{"data-orientation":"vertical",...o,ref:u,sizes:a,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Iu(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,c)=>{if(n.viewport){let f=n.viewport.scrollTop+d.deltaY;e.onWheelScroll(f),yv(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Su(s.paddingTop),paddingEnd:Su(s.paddingBottom)}})}})}),[$k,pv]=lv(va),mv=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,sizes:r,hasThumb:o,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:c,...f}=e,g=Zt(va,a),[v,C]=q.useState(null),I=qa(t,B=>C(B)),m=q.useRef(null),h=q.useRef(""),x=g.viewport,S=r.content-r.viewport,k=Pr(d),T=Pr(l),D=wu(c,10);function A(B){if(m.current){let V=B.clientX-m.current.left,de=B.clientY-m.current.top;u({x:V,y:de})}}return q.useEffect(()=>{let B=V=>{let de=V.target;v?.contains(de)&&k(V,S)};return document.addEventListener("wheel",B,{passive:!1}),()=>document.removeEventListener("wheel",B,{passive:!1})},[x,v,S,k]),q.useEffect(T,[r,T]),mn(v,D),mn(g.content,D),(0,ue.jsx)($k,{scope:a,scrollbar:v,hasThumb:o,onThumbChange:Pr(n),onThumbPointerUp:Pr(s),onThumbPositionChange:T,onThumbPointerDown:Pr(i),children:(0,ue.jsx)(cn.div,{...f,ref:I,style:{position:"absolute",...f.style},onPointerDown:Tr(e.onPointerDown,B=>{B.button===0&&(B.target.setPointerCapture(B.pointerId),m.current=v.getBoundingClientRect(),h.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),A(B))}),onPointerMove:Tr(e.onPointerMove,A),onPointerUp:Tr(e.onPointerUp,B=>{let V=B.target;V.hasPointerCapture(B.pointerId)&&V.releasePointerCapture(B.pointerId),document.body.style.webkitUserSelect=h.current,g.viewport&&(g.viewport.style.scrollBehavior=""),m.current=null})})})}),Cu="ScrollAreaThumb",Ep=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=pv(Cu,e.__scopeScrollArea);return(0,ue.jsx)(fn,{present:a||o.hasThumb,children:(0,ue.jsx)(Xk,{ref:t,...r})})}),Xk=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,style:r,...o}=e,n=Zt(Cu,a),s=pv(Cu,a),{onThumbPositionChange:i}=s,l=qa(t,c=>s.onThumbChange(c)),u=q.useRef(void 0),d=wu(()=>{u.current&&(u.current(),u.current=void 0)},100);return q.useEffect(()=>{let c=n.viewport;if(c){let f=()=>{if(d(),!u.current){let g=Zk(c,i);u.current=g,i()}};return i(),c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[n.viewport,d,i]),(0,ue.jsx)(cn.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Tr(e.onPointerDownCapture,c=>{let g=c.target.getBoundingClientRect(),v=c.clientX-g.left,C=c.clientY-g.top;s.onThumbPointerDown({x:v,y:C})}),onPointerUp:Tr(e.onPointerUp,s.onThumbPointerUp)})});Ep.displayName=Cu;var Fp="ScrollAreaCorner",hv=q.forwardRef((e,t)=>{let a=Zt(Fp,e.__scopeScrollArea),r=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&r?(0,ue.jsx)(Qk,{...e,ref:t}):null});hv.displayName=Fp;var Qk=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,...r}=e,o=Zt(Fp,a),[n,s]=q.useState(0),[i,l]=q.useState(0),u=!!(n&&i);return mn(o.scrollbarX,()=>{let d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),l(d)}),mn(o.scrollbarY,()=>{let d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),s(d)}),u?(0,ue.jsx)(cn.div,{...r,ref:t,style:{width:n,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Su(e){return e?parseInt(e,10):0}function gv(e,t){let a=e/t;return isNaN(a)?0:a}function Iu(e){let t=gv(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-a)*t;return Math.max(r,18)}function Yk(e,t,a,r="ltr"){let o=Iu(a),n=o/2,s=t||n,i=o-s,l=a.scrollbar.paddingStart+s,u=a.scrollbar.size-a.scrollbar.paddingEnd-i,d=a.content-a.viewport,c=r==="ltr"?[0,d]:[d*-1,0];return xv([l,u],c)(e)}function sv(e,t,a="ltr"){let r=Iu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=t.scrollbar.size-o,s=t.content-t.viewport,i=n-r,l=a==="ltr"?[0,s]:[s*-1,0],u=nv(e,l);return xv([0,s],[0,i])(u)}function xv(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(a-e[0])}}function yv(e,t){return e>0&&e<t}var Zk=(e,t=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){let n={left:e.scrollLeft,top:e.scrollTop},s=a.left!==n.left,i=a.top!==n.top;(s||i)&&t(),a=n,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function wu(e,t){let a=Pr(e),r=q.useRef(0);return q.useEffect(()=>()=>window.clearTimeout(r.current),[]),q.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(a,t)},[a,t])}function mn(e,t){let a=Pr(t);ii(()=>{let r=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(a)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,a])}var vv=uv,Lv=cv;var Cv=hv;var Ar=M(le(),1),Bp=Sv.forwardRef(({className:e,children:t,...a},r)=>(0,Ar.jsxs)(vv,{"data-slot":"scroll-area",className:Bt("relative",e),...a,children:[(0,Ar.jsx)(Lv,{ref:r,"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),(0,Ar.jsx)(eb,{}),(0,Ar.jsx)(Cv,{})]}));Bp.displayName="ScrollArea";function eb({className:e,orientation:t="vertical",...a}){return(0,Ar.jsx)(Mp,{"data-slot":"scroll-area-scrollbar",orientation:t,className:Bt("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:(0,Ar.jsx)(Ep,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var bu=M(G());var Iv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),Op=e=>{let t=tb(e);return t.charAt(0).toUpperCase()+t.slice(1)},ku=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),wv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var li=M(G());var kv={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"};var bv=(0,li.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>(0,li.createElement)("svg",{ref:l,...kv,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:ku("lucide",o),...!n&&!wv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,d])=>(0,li.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var O=(e,t)=>{let a=(0,bu.forwardRef)(({className:r,...o},n)=>(0,bu.createElement)(bv,{ref:n,iconNode:t,className:ku(`lucide-${Iv(Op(e))}`,`lucide-${e}`,r),...o}));return a.displayName=Op(e),a};var ab=[["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"}]],ui=O("activity",ab);var rb=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],hn=O("arrow-left",rb);var ob=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],di=O("arrow-up",ob);var nb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],ci=O("calendar",nb);var sb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fi=O("chevron-down",sb);var ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],pi=O("chevron-right",ib);var lb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mi=O("chevron-left",lb);var ub=[["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"}]],ua=O("circle-alert",ub);var db=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],je=O("circle-check",db);var cb=[["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"}]],da=O("circle-x",cb);var fb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],uo=O("clock",fb);var pb=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],Ga=O("command",pb);var mb=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],ja=O("corner-down-left",mb);var hb=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],co=O("credit-card",hb);var gb=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],fo=O("crown",gb);var xb=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],po=O("dollar-sign",xb);var yb=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],gn=O("file-spreadsheet",yb);var vb=[["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"}]],xn=O("key",vb);var Lb=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],hi=O("laptop",Lb);var Cb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vt=O("loader-circle",Cb);var Sb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],yn=O("mail",Sb);var Ib=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vn=O("map-pin",Ib);var wb=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],gi=O("paperclip",wb);var kb=[["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"}]],Ln=O("refresh-cw",kb);var bb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],mo=O("search",bb);var Pb=[["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"}]],Cn=O("shield",Pb);var Tb=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],xi=O("smartphone",Tb);var Ab=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],bt=O("square-pen",Ab);var Rb=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],yi=O("trending-up",Rb);var Db=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Sn=O("users",Db);var Mb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ho=O("x",Mb);var Nb=[["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"}]],vi=O("zap",Nb);var Re=M(le(),1);function Pv({phase:e,progressSteps:t=[]}){return(0,Re.jsxs)("div",{className:"mb-3 rounded-lg bg-muted/40 px-3 py-3 text-xs text-muted-foreground transition-colors",children:[e==="thinking"&&t.length===0&&(0,Re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Re.jsx)(Vt,{className:"h-3.5 w-3.5 animate-spin"}),(0,Re.jsx)("span",{children:"Thinking\u2026"})]}),e==="searching"&&(0,Re.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-300",children:[(0,Re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Re.jsx)(mo,{className:"h-3.5 w-3.5 opacity-70"}),(0,Re.jsx)("span",{children:"Searching across pages\u2026"})]}),(0,Re.jsxs)("ul",{className:"ml-6 list-disc space-y-1",children:[(0,Re.jsx)("li",{className:"opacity-90",children:"Checking recent changes"}),(0,Re.jsx)("li",{className:"opacity-90",children:"Scanning documentation"}),(0,Re.jsx)("li",{className:"opacity-90",children:"Summarizing relevant sections"})]})]}),(e==="thinking"||e==="executing"||e==="responding")&&t.length>0&&(0,Re.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-200",children:[t.map((a,r)=>(0,Re.jsxs)("div",{className:`flex items-center gap-2 transition-opacity duration-200 ${a.completed?"opacity-60":"opacity-100"}`,children:[a.completed?(0,Re.jsx)(je,{className:"h-3.5 w-3.5 text-green-500 flex-shrink-0"}):(0,Re.jsx)(Vt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,Re.jsx)("span",{className:a.completed?"line-through":"",children:a.message})]},r)),e==="responding"&&(0,Re.jsxs)("div",{className:"flex items-center gap-2 opacity-100 animate-in fade-in-0 duration-200",children:[(0,Re.jsx)(Vt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,Re.jsx)("span",{children:"Preparing response..."})]})]})]})}var Tv=M(G(),1);var ca=M(le(),1);function Av({title:e,links:t}){let[a,r]=Tv.useState(!1);return(0,ca.jsxs)("div",{className:"text-xs text-muted-foreground",children:[(0,ca.jsx)("button",{type:"button",onClick:()=>r(o=>!o),className:"flex w-full items-center gap-2 px-0 py-0","aria-expanded":a,children:(0,ca.jsxs)("div",{className:"flex items-center gap-1.5",children:[a?(0,ca.jsx)(fi,{className:"h-3 w-3 opacity-70"}):(0,ca.jsx)(mo,{className:"h-3 w-3 opacity-70"}),(0,ca.jsx)("span",{children:e})]})}),a&&t.length>0&&(0,ca.jsx)("ul",{className:"ml-5 mt-1 space-y-0.5",children:t.map(o=>(0,ca.jsx)("li",{children:(0,ca.jsx)("a",{href:o.href,target:"_blank",rel:"noreferrer",className:"text-primary hover:underline",children:o.label})},o.href))})]})}var Ci=M(le(),1),La=M(G(),1);var Rv=M(G(),1),In=(0,Rv.createContext)({});var Dv=M(G(),1);function wn(e){let t=(0,Dv.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Up=M(le(),1),Bv=M(G(),1),go=M(G(),1);var Mv=M(G(),1),Rr=(0,Mv.createContext)(null);var Ev=M(le(),1),Pu=M(G(),1),Ka=M(G(),1);var Nv=M(G(),1),kn=(0,Nv.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var Vp=class extends Pu.Component{getSnapshotBeforeUpdate(t){let a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){let r=this.props.sizeRef.current;r.height=a.offsetHeight||0,r.width=a.offsetWidth||0,r.top=a.offsetTop,r.left=a.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function Fv({children:e,isPresent:t}){let a=(0,Ka.useId)(),r=(0,Ka.useRef)(null),o=(0,Ka.useRef)({width:0,height:0,top:0,left:0}),{nonce:n}=(0,Ka.useContext)(kn);return(0,Ka.useInsertionEffect)(()=>{let{width:s,height:i,top:l,left:u}=o.current;if(t||!r.current||!s||!i)return;r.current.dataset.motionPopId=a;let d=document.createElement("style");return n&&(d.nonce=n),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
8
|
+
`+n.stack}return{value:e,source:t,stack:o,digest:null}}function _c(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function If(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var fw=typeof WeakMap=="function"?WeakMap:Map;function Jx(e,t,a){a=Ba(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){Xl||(Xl=!0,Nf=r),If(e,t)},a}function ey(e,t,a){a=Ba(-1,a),a.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;a.payload=function(){return r(o)},a.callback=function(){If(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){If(e,t),typeof r!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function cg(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new fw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(o.add(a),e=bw.bind(null,e,t,a),t.then(e,e))}function fg(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 pg(e,t,a,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=Ba(-1,1),t.tag=2,gr(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var pw=za.ReactCurrentOwner,Lt=!1;function ct(e,t,a,r){t.child=e===null?Ax(t,null,a,r):an(t,e.child,a,r)}function mg(e,t,a,r,o){a=a.render;var n=t.ref;return Yo(t,o),r=cp(e,t,a,r,n,o),a=fp(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_a(e,t,o)):(we&&a&&Jf(t),t.flags|=1,ct(e,t,r,o),t.child)}function hg(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!Sp(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,ty(e,t,n,r,o)):(e=Tl(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ws,a(s,r)&&e.ref===t.ref)return _a(e,t,o)}return t.flags|=1,e=vr(n,r),e.ref=t.ref,e.return=t,t.child=e}function ty(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(Ws(n,r)&&e.ref===t.ref)if(Lt=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Lt=!0);else return t.lanes=e.lanes,_a(e,t,o)}return wf(e,t,a,r,o)}function ay(e,t,a){var r=t.pendingProps,o=r.children,n=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xe(jo,Rt),Rt|=a;else{if((a&1073741824)===0)return e=n!==null?n.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xe(jo,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,xe(jo,Rt),Rt|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,xe(jo,Rt),Rt|=r;return ct(e,t,o,a),t.child}function ry(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function wf(e,t,a,r,o){var n=St(a)?ao:st.current;return n=en(t,n),Yo(t,o),a=cp(e,t,a,r,n,o),r=fp(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_a(e,t,o)):(we&&r&&Jf(t),t.flags|=1,ct(e,t,a,o),t.child)}function gg(e,t,a,r,o){if(St(a)){var n=!0;Ul(t)}else n=!1;if(Yo(t,o),t.stateNode===null)kl(e,t),Zx(t,a,r),Sf(t,a,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,u=a.contextType;typeof u=="object"&&u!==null?u=Qt(u):(u=St(a)?ao:st.current,u=en(t,u));var d=a.getDerivedStateFromProps,c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||l!==u)&&dg(t,s,r,u),ir=!1;var f=t.memoizedState;s.state=f,Wl(t,r,s,o),l=t.memoizedState,i!==r||f!==l||Ct.current||ir?(typeof d=="function"&&(Cf(t,a,d,r),l=t.memoizedState),(i=ir||ug(t,a,i,r,f,l,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Dx(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:ra(t.type,i),s.props=u,c=t.pendingProps,f=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=Qt(l):(l=St(a)?ao:st.current,l=en(t,l));var g=a.getDerivedStateFromProps;(d=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==c||f!==l)&&dg(t,s,r,l),ir=!1,f=t.memoizedState,s.state=f,Wl(t,r,s,o);var v=t.memoizedState;i!==c||f!==v||Ct.current||ir?(typeof g=="function"&&(Cf(t,a,g,r),v=t.memoizedState),(u=ir||ug(t,a,u,r,f,v,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return kf(e,t,a,r,n,o)}function kf(e,t,a,r,o,n){ry(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&tg(t,a,!1),_a(e,t,n);r=t.stateNode,pw.current=t;var i=s&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=an(t,e.child,null,n),t.child=an(t,null,i,n)):ct(e,t,i,n),t.memoizedState=r.state,o&&tg(t,a,!0),t.child}function oy(e){var t=e.stateNode;t.pendingContext?eg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&eg(e,t.context,!1),ip(e,t.containerInfo)}function xg(e,t,a,r,o){return tn(),tp(o),t.flags|=256,ct(e,t,a,r),t.child}var bf={dehydrated:null,treeContext:null,retryLane:0};function Pf(e){return{baseLanes:e,cachePool:null,transitions:null}}function ny(e,t,a){var r=t.pendingProps,o=be.current,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),xe(be,o&1),e===null)return vf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,n?(r=t.mode,n=t.child,s={mode:"hidden",children:s},(r&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=s):n=uu(s,r,0,null),e=to(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=Pf(a),t.memoizedState=bf,e):hp(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return mw(e,t,s,r,i,o,a);if(n){n=r.fallback,s=t.mode,o=e.child,i=o.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=vr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=vr(i,n):(n=to(n,s,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,r=n,n=t.child,s=e.child.memoizedState,s=s===null?Pf(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=bf,r}return n=e.child,e=n.sibling,r=vr(n,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=a),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r}function hp(e,t){return t=uu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gl(e,t,a,r){return r!==null&&tp(r),an(t,e.child,null,a),e=hp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mw(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=_c(Error(R(422))),gl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=uu({mode:"visible",children:r.children},o,0,null),n=to(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&an(t,e.child,null,s),t.child.memoizedState=Pf(s),t.memoizedState=bf,n);if((t.mode&1)===0)return gl(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,n=Error(R(419)),r=_c(n,r,void 0),gl(e,t,s,r)}if(i=(s&e.childLanes)!==0,Lt||i){if(r=Ge,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,Ua(e,o),ia(r,e,o,-1))}return Cp(),r=_c(Error(R(421))),gl(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Pw.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,Dt=hr(o.nextSibling),Mt=t,we=!0,na=null,e!==null&&(jt[Kt++]=Ea,jt[Kt++]=Fa,jt[Kt++]=ro,Ea=e.id,Fa=e.overflow,ro=t),t=hp(t,r.children),t.flags|=4096,t)}function yg(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Lf(e.return,t,a)}function zc(e,t,a,r,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=o)}function sy(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(ct(e,t,r.children,a),r=be.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yg(e,a,t);else if(e.tag===19)yg(e,a,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(xe(be,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Gl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),zc(t,!1,o,a,n);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Gl(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}zc(t,!0,a,null,n);break;case"together":zc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function kl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _a(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),no|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,a=vr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function hw(e,t,a){switch(t.tag){case 3:oy(t),tn();break;case 5:Mx(t);break;case 1:St(t.type)&&Ul(t);break;case 4:ip(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xe(Hl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xe(be,be.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?ny(e,t,a):(xe(be,be.current&1),e=_a(e,t,a),e!==null?e.sibling:null);xe(be,be.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return sy(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xe(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,ay(e,t,a)}return _a(e,t,a)}var iy,Tf,ly,uy;iy=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};Tf=function(){};ly=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Jr(ya.current);var n=null;switch(a){case"input":o=Xc(e,o),r=Xc(e,r),n=[];break;case"select":o=Te({},o,{value:void 0}),r=Te({},r,{value:void 0}),n=[];break;case"textarea":o=Zc(e,o),r=Zc(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ol)}ef(a,r);var s;a=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var i=o[u];for(s in i)i.hasOwnProperty(s)&&(a||(a={}),a[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Os.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in r){var l=r[u];if(i=o?.[u],r.hasOwnProperty(u)&&l!==i&&(l!=null||i!=null))if(u==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(a||(a={}),a[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(a||(a={}),a[s]=l[s])}else a||(n||(n=[]),n.push(u,a)),a=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(n=n||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(n=n||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Os.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ve("scroll",e),n||i===l||(n=[])):(n=n||[]).push(u,l))}a&&(n=n||[]).push("style",a);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};uy=function(e,t,a,r){a!==r&&(t.flags|=4)};function Cs(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function gw(e,t,a){var r=t.pendingProps;switch(ep(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return St(t.type)&&Vl(),ot(t),null;case 3:return r=t.stateNode,rn(),Le(Ct),Le(st),up(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ml(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,na!==null&&(Bf(na),na=null))),Tf(e,t),ot(t),null;case 5:lp(t);var o=Jr(Xs.current);if(a=t.type,e!==null&&t.stateNode!=null)ly(e,t,a,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return ot(t),null}if(e=Jr(ya.current),ml(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[ga]=t,r[Ks]=n,e=(t.mode&1)!==0,a){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(o=0;o<Ps.length;o++)ve(Ps[o],r);break;case"source":ve("error",r);break;case"img":case"image":case"link":ve("error",r),ve("load",r);break;case"details":ve("toggle",r);break;case"input":bh(r,n),ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},ve("invalid",r);break;case"textarea":Th(r,n),ve("invalid",r)}ef(a,n),o=null;for(var s in n)if(n.hasOwnProperty(s)){var i=n[s];s==="children"?typeof i=="string"?r.textContent!==i&&(n.suppressHydrationWarning!==!0&&pl(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&pl(r.textContent,i,e),o=["children",""+i]):Os.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&ve("scroll",r)}switch(a){case"input":tl(r),Ph(r,n,!0);break;case"textarea":tl(r),Ah(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=Ol)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Og(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=s.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(a,{is:r.is}):(e=s.createElement(a),a==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,a),e[ga]=t,e[Ks]=r,iy(e,t,!1,!1),t.stateNode=e;e:{switch(s=tf(a,r),a){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ps.length;o++)ve(Ps[o],e);o=r;break;case"source":ve("error",e),o=r;break;case"img":case"image":case"link":ve("error",e),ve("load",e),o=r;break;case"details":ve("toggle",e),o=r;break;case"input":bh(e,r),o=Xc(e,r),ve("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Te({},r,{value:void 0}),ve("invalid",e);break;case"textarea":Th(e,r),o=Zc(e,r),ve("invalid",e);break;default:o=r}ef(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?_g(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Vg(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&Vs(e,l):typeof l=="number"&&Vs(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Os.hasOwnProperty(n)?l!=null&&n==="onScroll"&&ve("scroll",e):l!=null&&Uf(e,n,l,s))}switch(a){case"input":tl(e),Ph(e,r,!1);break;case"textarea":tl(e),Ah(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Lr(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?Ko(e,!!r.multiple,n,!1):r.defaultValue!=null&&Ko(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ol)}switch(a){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 ot(t),null;case 6:if(e&&t.stateNode!=null)uy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(a=Jr(Xs.current),Jr(ya.current),ml(t)){if(r=t.stateNode,a=t.memoizedProps,r[ga]=t,(n=r.nodeValue!==a)&&(e=Mt,e!==null))switch(e.tag){case 3:pl(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pl(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[ga]=t,t.stateNode=r}return ot(t),null;case 13:if(Le(be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&&Dt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Px(),tn(),t.flags|=98560,n=!1;else if(n=ml(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error(R(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(R(317));n[ga]=t}else tn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),n=!1}else na!==null&&(Bf(na),na=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(be.current&1)!==0?_e===0&&(_e=3):Cp())),t.updateQueue!==null&&(t.flags|=4),ot(t),null);case 4:return rn(),Tf(e,t),e===null&&Gs(t.stateNode.containerInfo),ot(t),null;case 10:return op(t.type._context),ot(t),null;case 17:return St(t.type)&&Vl(),ot(t),null;case 19:if(Le(be),n=t.memoizedState,n===null)return ot(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)Cs(n,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Gl(e),s!==null){for(t.flags|=128,Cs(n,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=a,a=t.child;a!==null;)n=a,e=r,n.flags&=14680066,s=n.alternate,s===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,e=s.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return xe(be,be.current&1|2),t.child}e=e.sibling}n.tail!==null&&Me()>nn&&(t.flags|=128,r=!0,Cs(n,!1),t.lanes=4194304)}else{if(!r)if(e=Gl(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),Cs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!we)return ot(t),null}else 2*Me()-n.renderingStartTime>nn&&a!==1073741824&&(t.flags|=128,r=!0,Cs(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(a=n.last,a!==null?a.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Me(),t.sibling=null,a=be.current,xe(be,r?a&1|2:a&1),t):(ot(t),null);case 22:case 23:return Lp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Rt&1073741824)!==0&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function xw(e,t){switch(ep(t),t.tag){case 1:return St(t.type)&&Vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rn(),Le(Ct),Le(st),up(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return lp(t),null;case 13:if(Le(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(be),null;case 4:return rn(),null;case 10:return op(t.type._context),null;case 22:case 23:return Lp(),null;case 24:return null;default:return null}}var xl=!1,nt=!1,yw=typeof WeakSet=="function"?WeakSet:Set,F=null;function Go(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){Ae(e,t,r)}else a.current=null}function Af(e,t,a){try{a()}catch(r){Ae(e,t,r)}}var vg=!1;function vw(e,t){if(ff=El,e=mx(),Zf(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,n=r.focusNode;r=r.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var s=0,i=-1,l=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var g;c!==a||o!==0&&c.nodeType!==3||(i=s+o),c!==n||r!==0&&c.nodeType!==3||(l=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(g=c.firstChild)!==null;)f=c,c=g;for(;;){if(c===e)break t;if(f===a&&++u===o&&(i=s),f===n&&++d===r&&(l=s),(g=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=g}a=i===-1||l===-1?null:{start:i,end:l}}else a=null}a=a||{start:0,end:0}}else a=null;for(pf={focusedElem:e,selectionRange:a},El=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var C=v.memoizedProps,I=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?C:ra(t.type,C),I);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){Ae(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return v=vg,vg=!1,v}function Es(e,t,a){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var n=o.destroy;o.destroy=void 0,n!==void 0&&Af(t,a,n)}o=o.next}while(o!==r)}}function iu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var r=a.create;a.destroy=r()}a=a.next}while(a!==t)}}function Rf(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof t=="function"?t(e):t.current=e}}function dy(e){var t=e.alternate;t!==null&&(e.alternate=null,dy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ga],delete t[Ks],delete t[gf],delete t[tw],delete t[aw])),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 cy(e){return e.tag===5||e.tag===3||e.tag===4}function Lg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cy(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 Df(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ol));else if(r!==4&&(e=e.child,e!==null))for(Df(e,t,a),e=e.sibling;e!==null;)Df(e,t,a),e=e.sibling}function Mf(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mf(e,t,a),e=e.sibling;e!==null;)Mf(e,t,a),e=e.sibling}var $e=null,oa=!1;function nr(e,t,a){for(a=a.child;a!==null;)fy(e,t,a),a=a.sibling}function fy(e,t,a){if(xa&&typeof xa.onCommitFiberUnmount=="function")try{xa.onCommitFiberUnmount(Jl,a)}catch{}switch(a.tag){case 5:nt||Go(a,t);case 6:var r=$e,o=oa;$e=null,nr(e,t,a),$e=r,oa=o,$e!==null&&(oa?(e=$e,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):$e.removeChild(a.stateNode));break;case 18:$e!==null&&(oa?(e=$e,a=a.stateNode,e.nodeType===8?Ec(e.parentNode,a):e.nodeType===1&&Ec(e,a),Hs(e)):Ec($e,a.stateNode));break;case 4:r=$e,o=oa,$e=a.stateNode.containerInfo,oa=!0,nr(e,t,a),$e=r,oa=o;break;case 0:case 11:case 14:case 15:if(!nt&&(r=a.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var n=o,s=n.destroy;n=n.tag,s!==void 0&&((n&2)!==0||(n&4)!==0)&&Af(a,t,s),o=o.next}while(o!==r)}nr(e,t,a);break;case 1:if(!nt&&(Go(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){Ae(a,t,i)}nr(e,t,a);break;case 21:nr(e,t,a);break;case 22:a.mode&1?(nt=(r=nt)||a.memoizedState!==null,nr(e,t,a),nt=r):nr(e,t,a);break;default:nr(e,t,a)}}function Cg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new yw),t.forEach(function(r){var o=Tw.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function aa(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];try{var n=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:$e=i.stateNode,oa=!1;break e;case 3:$e=i.stateNode.containerInfo,oa=!0;break e;case 4:$e=i.stateNode.containerInfo,oa=!0;break e}i=i.return}if($e===null)throw Error(R(160));fy(n,s,o),$e=null,oa=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ae(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)py(t,e),t=t.sibling}function py(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(aa(t,e),ma(e),r&4){try{Es(3,e,e.return),iu(3,e)}catch(C){Ae(e,e.return,C)}try{Es(5,e,e.return)}catch(C){Ae(e,e.return,C)}}break;case 1:aa(t,e),ma(e),r&512&&a!==null&&Go(a,a.return);break;case 5:if(aa(t,e),ma(e),r&512&&a!==null&&Go(a,a.return),e.flags&32){var o=e.stateNode;try{Vs(o,"")}catch(C){Ae(e,e.return,C)}}if(r&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,s=a!==null?a.memoizedProps:n,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&Fg(o,n),tf(i,s);var u=tf(i,n);for(s=0;s<l.length;s+=2){var d=l[s],c=l[s+1];d==="style"?_g(o,c):d==="dangerouslySetInnerHTML"?Vg(o,c):d==="children"?Vs(o,c):Uf(o,d,c,u)}switch(i){case"input":Qc(o,n);break;case"textarea":Bg(o,n);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var g=n.value;g!=null?Ko(o,!!n.multiple,g,!1):f!==!!n.multiple&&(n.defaultValue!=null?Ko(o,!!n.multiple,n.defaultValue,!0):Ko(o,!!n.multiple,n.multiple?[]:"",!1))}o[Ks]=n}catch(C){Ae(e,e.return,C)}}break;case 6:if(aa(t,e),ma(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(C){Ae(e,e.return,C)}}break;case 3:if(aa(t,e),ma(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Hs(t.containerInfo)}catch(C){Ae(e,e.return,C)}break;case 4:aa(t,e),ma(e);break;case 13:aa(t,e),ma(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(yp=Me())),r&4&&Cg(e);break;case 22:if(d=a!==null&&a.memoizedState!==null,e.mode&1?(nt=(u=nt)||d,aa(t,e),nt=u):aa(t,e),ma(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&(e.mode&1)!==0)for(F=e,d=e.child;d!==null;){for(c=F=d;F!==null;){switch(f=F,g=f.child,f.tag){case 0:case 11:case 14:case 15:Es(4,f,f.return);break;case 1:Go(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,a=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(C){Ae(r,a,C)}}break;case 5:Go(f,f.return);break;case 22:if(f.memoizedState!==null){Ig(c);continue}}g!==null?(g.return=f,F=g):Ig(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=c.stateNode,l=c.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=Ug("display",s))}catch(C){Ae(e,e.return,C)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(C){Ae(e,e.return,C)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:aa(t,e),ma(e),r&4&&Cg(e);break;case 21:break;default:aa(t,e),ma(e)}}function ma(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(cy(a)){var r=a;break e}a=a.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Vs(o,""),r.flags&=-33);var n=Lg(e);Mf(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=Lg(e);Df(e,i,s);break;default:throw Error(R(161))}}catch(l){Ae(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lw(e,t,a){F=e,my(e,t,a)}function my(e,t,a){for(var r=(e.mode&1)!==0;F!==null;){var o=F,n=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||xl;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||nt;i=xl;var u=nt;if(xl=s,(nt=l)&&!u)for(F=o;F!==null;)s=F,l=s.child,s.tag===22&&s.memoizedState!==null?wg(o):l!==null?(l.return=s,F=l):wg(o);for(;n!==null;)F=n,my(n,t,a),n=n.sibling;F=o,xl=i,nt=u}Sg(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,F=n):Sg(e,t,a)}}function Sg(e){for(;F!==null;){var t=F;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:nt||iu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!nt)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:ra(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&sg(t,n,r);break;case 3:var s=t.updateQueue;if(s!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}sg(t,s,a)}break;case 5:var i=t.stateNode;if(a===null&&t.flags&4){a=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src&&(a.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&Hs(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}nt||t.flags&512&&Rf(t)}catch(f){Ae(t,t.return,f)}}if(t===e){F=null;break}if(a=t.sibling,a!==null){a.return=t.return,F=a;break}F=t.return}}function Ig(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}function wg(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{iu(4,t)}catch(l){Ae(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ae(t,o,l)}}var n=t.return;try{Rf(t)}catch(l){Ae(t,n,l)}break;case 5:var s=t.return;try{Rf(t)}catch(l){Ae(t,s,l)}}}catch(l){Ae(t,t.return,l)}if(t===e){F=null;break}var i=t.sibling;if(i!==null){i.return=t.return,F=i;break}F=t.return}}var Cw=Math.ceil,$l=za.ReactCurrentDispatcher,gp=za.ReactCurrentOwner,Xt=za.ReactCurrentBatchConfig,ne=0,Ge=null,Fe=null,Xe=0,Rt=0,jo=Ir(0),_e=0,Js=null,no=0,lu=0,xp=0,Fs=null,vt=null,yp=0,nn=1/0,Ma=null,Xl=!1,Nf=null,xr=null,yl=!1,cr=null,Ql=0,Bs=0,Ef=null,bl=-1,Pl=0;function ft(){return(ne&6)!==0?Me():bl!==-1?bl:bl=Me()}function yr(e){return(e.mode&1)===0?1:(ne&2)!==0&&Xe!==0?Xe&-Xe:ow.transition!==null?(Pl===0&&(Pl=Zg()),Pl):(e=pe,e!==0||(e=window.event,e=e===void 0?16:nx(e.type)),e)}function ia(e,t,a,r){if(50<Bs)throw Bs=0,Ef=null,Error(R(185));ei(e,a,r),((ne&2)===0||e!==Ge)&&(e===Ge&&((ne&2)===0&&(lu|=a),_e===4&&ur(e,Xe)),It(e,r),a===1&&ne===0&&(t.mode&1)===0&&(nn=Me()+500,ou&&wr()))}function It(e,t){var a=e.callbackNode;sI(e,t);var r=Nl(e,e===Ge?Xe:0);if(r===0)a!==null&&Mh(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&Mh(a),t===1)e.tag===0?rw(kg.bind(null,e)):wx(kg.bind(null,e)),JI(function(){(ne&6)===0&&wr()}),a=null;else{switch(Jg(r)){case 1:a=Wf;break;case 4:a=Qg;break;case 16:a=Ml;break;case 536870912:a=Yg;break;default:a=Ml}a=Sy(a,hy.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function hy(e,t){if(bl=-1,Pl=0,(ne&6)!==0)throw Error(R(327));var a=e.callbackNode;if(Zo()&&e.callbackNode!==a)return null;var r=Nl(e,e===Ge?Xe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Yl(e,r);else{t=r;var o=ne;ne|=2;var n=xy();(Ge!==e||Xe!==t)&&(Ma=null,nn=Me()+500,eo(e,t));do try{ww();break}catch(i){gy(e,i)}while(!0);rp(),$l.current=n,ne=o,Fe!==null?t=0:(Ge=null,Xe=0,t=_e)}if(t!==0){if(t===2&&(o=sf(e),o!==0&&(r=o,t=Ff(e,o))),t===1)throw a=Js,eo(e,0),ur(e,r),It(e,Me()),a;if(t===6)ur(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Sw(o)&&(t=Yl(e,r),t===2&&(n=sf(e),n!==0&&(r=n,t=Ff(e,n))),t===1))throw a=Js,eo(e,0),ur(e,r),It(e,Me()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Qr(e,vt,Ma);break;case 3:if(ur(e,r),(r&130023424)===r&&(t=yp+500-Me(),10<t)){if(Nl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ft(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=hf(Qr.bind(null,e,vt,Ma),t);break}Qr(e,vt,Ma);break;case 4:if(ur(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-sa(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cw(r/1960))-r,10<r){e.timeoutHandle=hf(Qr.bind(null,e,vt,Ma),r);break}Qr(e,vt,Ma);break;case 5:Qr(e,vt,Ma);break;default:throw Error(R(329))}}}return It(e,Me()),e.callbackNode===a?hy.bind(null,e):null}function Ff(e,t){var a=Fs;return e.current.memoizedState.isDehydrated&&(eo(e,t).flags|=256),e=Yl(e,t),e!==2&&(t=vt,vt=a,t!==null&&Bf(t)),e}function Bf(e){vt===null?vt=e:vt.push.apply(vt,e)}function Sw(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var r=0;r<a.length;r++){var o=a[r],n=o.getSnapshot;o=o.value;try{if(!la(n(),o))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 ur(e,t){for(t&=~xp,t&=~lu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-sa(t),r=1<<a;e[a]=-1,t&=~r}}function kg(e){if((ne&6)!==0)throw Error(R(327));Zo();var t=Nl(e,0);if((t&1)===0)return It(e,Me()),null;var a=Yl(e,t);if(e.tag!==0&&a===2){var r=sf(e);r!==0&&(t=r,a=Ff(e,r))}if(a===1)throw a=Js,eo(e,0),ur(e,t),It(e,Me()),a;if(a===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qr(e,vt,Ma),It(e,Me()),null}function vp(e,t){var a=ne;ne|=1;try{return e(t)}finally{ne=a,ne===0&&(nn=Me()+500,ou&&wr())}}function so(e){cr!==null&&cr.tag===0&&(ne&6)===0&&Zo();var t=ne;ne|=1;var a=Xt.transition,r=pe;try{if(Xt.transition=null,pe=1,e)return e()}finally{pe=r,Xt.transition=a,ne=t,(ne&6)===0&&wr()}}function Lp(){Rt=jo.current,Le(jo)}function eo(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,ZI(a)),Fe!==null)for(a=Fe.return;a!==null;){var r=a;switch(ep(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vl();break;case 3:rn(),Le(Ct),Le(st),up();break;case 5:lp(r);break;case 4:rn();break;case 13:Le(be);break;case 19:Le(be);break;case 10:op(r.type._context);break;case 22:case 23:Lp()}a=a.return}if(Ge=e,Fe=e=vr(e.current,null),Xe=Rt=t,_e=0,Js=null,xp=lu=no=0,vt=Fs=null,Zr!==null){for(t=0;t<Zr.length;t++)if(a=Zr[t],r=a.interleaved,r!==null){a.interleaved=null;var o=r.next,n=a.pending;if(n!==null){var s=n.next;n.next=o,r.next=s}a.pending=r}Zr=null}return e}function gy(e,t){do{var a=Fe;try{if(rp(),Il.current=Kl,jl){for(var r=Pe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}jl=!1}if(oo=0,We=Ue=Pe=null,Ns=!1,Qs=0,gp.current=null,a===null||a.return===null){_e=1,Js=t,Fe=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=Xe,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=i,c=d.tag;if((d.mode&1)===0&&(c===0||c===11||c===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=fg(s);if(g!==null){g.flags&=-257,pg(g,s,i,n,t),g.mode&1&&cg(n,u,t),t=g,l=u;var v=t.updateQueue;if(v===null){var C=new Set;C.add(l),t.updateQueue=C}else v.add(l);break e}else{if((t&1)===0){cg(n,u,t),Cp();break e}l=Error(R(426))}}else if(we&&i.mode&1){var I=fg(s);if(I!==null){(I.flags&65536)===0&&(I.flags|=256),pg(I,s,i,n,t),tp(on(l,i));break e}}n=l=on(l,i),_e!==4&&(_e=2),Fs===null?Fs=[n]:Fs.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var m=Jx(n,l,t);ng(n,m);break e;case 1:i=l;var h=n.type,x=n.stateNode;if((n.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(xr===null||!xr.has(x)))){n.flags|=65536,t&=-t,n.lanes|=t;var S=ey(n,i,t);ng(n,S);break e}}n=n.return}while(n!==null)}vy(a)}catch(k){t=k,Fe===a&&a!==null&&(Fe=a=a.return);continue}break}while(!0)}function xy(){var e=$l.current;return $l.current=Kl,e===null?Kl:e}function Cp(){(_e===0||_e===3||_e===2)&&(_e=4),Ge===null||(no&268435455)===0&&(lu&268435455)===0||ur(Ge,Xe)}function Yl(e,t){var a=ne;ne|=2;var r=xy();(Ge!==e||Xe!==t)&&(Ma=null,eo(e,t));do try{Iw();break}catch(o){gy(e,o)}while(!0);if(rp(),ne=a,$l.current=r,Fe!==null)throw Error(R(261));return Ge=null,Xe=0,_e}function Iw(){for(;Fe!==null;)yy(Fe)}function ww(){for(;Fe!==null&&!YS();)yy(Fe)}function yy(e){var t=Cy(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?vy(e):Fe=t,gp.current=null}function vy(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=gw(a,t,Rt),a!==null){Fe=a;return}}else{if(a=xw(a,t),a!==null){a.flags&=32767,Fe=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_e=6,Fe=null;return}}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);_e===0&&(_e=5)}function Qr(e,t,a){var r=pe,o=Xt.transition;try{Xt.transition=null,pe=1,kw(e,t,a,r)}finally{Xt.transition=o,pe=r}return null}function kw(e,t,a,r){do Zo();while(cr!==null);if((ne&6)!==0)throw Error(R(327));a=e.finishedWork;var o=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var n=a.lanes|a.childLanes;if(iI(e,n),e===Ge&&(Fe=Ge=null,Xe=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||yl||(yl=!0,Sy(Ml,function(){return Zo(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=Xt.transition,Xt.transition=null;var s=pe;pe=1;var i=ne;ne|=4,gp.current=null,vw(e,a),py(a,e),KI(pf),El=!!ff,pf=ff=null,e.current=a,Lw(a,e,o),ZS(),ne=i,pe=s,Xt.transition=n}else e.current=a;if(yl&&(yl=!1,cr=e,Ql=o),n=e.pendingLanes,n===0&&(xr=null),tI(a.stateNode,r),It(e,Me()),t!==null)for(r=e.onRecoverableError,a=0;a<t.length;a++)o=t[a],r(o.value,{componentStack:o.stack,digest:o.digest});if(Xl)throw Xl=!1,e=Nf,Nf=null,e;return(Ql&1)!==0&&e.tag!==0&&Zo(),n=e.pendingLanes,(n&1)!==0?e===Ef?Bs++:(Bs=0,Ef=e):Bs=0,wr(),null}function Zo(){if(cr!==null){var e=Jg(Ql),t=Xt.transition,a=pe;try{if(Xt.transition=null,pe=16>e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Ql=0,(ne&6)!==0)throw Error(R(331));var o=ne;for(ne|=4,F=e.current;F!==null;){var n=F,s=n.child;if((F.flags&16)!==0){var i=n.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(F=u;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:Es(8,d,n)}var c=d.child;if(c!==null)c.return=d,F=c;else for(;F!==null;){d=F;var f=d.sibling,g=d.return;if(dy(d),d===u){F=null;break}if(f!==null){f.return=g,F=f;break}F=g}}}var v=n.alternate;if(v!==null){var C=v.child;if(C!==null){v.child=null;do{var I=C.sibling;C.sibling=null,C=I}while(C!==null)}}F=n}}if((n.subtreeFlags&2064)!==0&&s!==null)s.return=n,F=s;else e:for(;F!==null;){if(n=F,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:Es(9,n,n.return)}var m=n.sibling;if(m!==null){m.return=n.return,F=m;break e}F=n.return}}var h=e.current;for(F=h;F!==null;){s=F;var x=s.child;if((s.subtreeFlags&2064)!==0&&x!==null)x.return=s,F=x;else e:for(s=h;F!==null;){if(i=F,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:iu(9,i)}}catch(k){Ae(i,i.return,k)}if(i===s){F=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,F=S;break e}F=i.return}}if(ne=o,wr(),xa&&typeof xa.onPostCommitFiberRoot=="function")try{xa.onPostCommitFiberRoot(Jl,e)}catch{}r=!0}return r}finally{pe=a,Xt.transition=t}}return!1}function bg(e,t,a){t=on(a,t),t=Jx(e,t,1),e=gr(e,t,1),t=ft(),e!==null&&(ei(e,1,t),It(e,t))}function Ae(e,t,a){if(e.tag===3)bg(e,e,a);else for(;t!==null;){if(t.tag===3){bg(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xr===null||!xr.has(r))){e=on(a,e),e=ey(t,e,1),t=gr(t,e,1),e=ft(),t!==null&&(ei(t,1,e),It(t,e));break}}t=t.return}}function bw(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=ft(),e.pingedLanes|=e.suspendedLanes&a,Ge===e&&(Xe&a)===a&&(_e===4||_e===3&&(Xe&130023424)===Xe&&500>Me()-yp?eo(e,0):xp|=a),It(e,t)}function Ly(e,t){t===0&&((e.mode&1)===0?t=1:(t=ol,ol<<=1,(ol&130023424)===0&&(ol=4194304)));var a=ft();e=Ua(e,t),e!==null&&(ei(e,t,a),It(e,a))}function Pw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ly(e,a)}function Tw(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Ly(e,a)}var Cy;Cy=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ct.current)Lt=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return Lt=!1,hw(e,t,a);Lt=(e.flags&131072)!==0}else Lt=!1,we&&(t.flags&1048576)!==0&&kx(t,zl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kl(e,t),e=t.pendingProps;var o=en(t,st.current);Yo(t,a),o=cp(null,t,r,e,o,a);var n=fp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(r)?(n=!0,Ul(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,sp(t),o.updater=su,t.stateNode=o,o._reactInternals=t,Sf(t,r,e,a),t=kf(null,t,r,!0,n,a)):(t.tag=0,we&&n&&Jf(t),ct(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(kl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Rw(r),e=ra(r,e),o){case 0:t=wf(null,t,r,e,a);break e;case 1:t=gg(null,t,r,e,a);break e;case 11:t=mg(null,t,r,e,a);break e;case 14:t=hg(null,t,r,ra(r.type,e),a);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ra(r,o),wf(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ra(r,o),gg(e,t,r,o,a);case 3:e:{if(oy(t),e===null)throw Error(R(387));r=t.pendingProps,n=t.memoizedState,o=n.element,Dx(e,t),Wl(t,r,null,a);var s=t.memoizedState;if(r=s.element,n.isDehydrated)if(n={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=on(Error(R(423)),t),t=xg(e,t,r,a,o);break e}else if(r!==o){o=on(Error(R(424)),t),t=xg(e,t,r,a,o);break e}else for(Dt=hr(t.stateNode.containerInfo.firstChild),Mt=t,we=!0,na=null,a=Ax(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(tn(),r===o){t=_a(e,t,a);break e}ct(e,t,r,a)}t=t.child}return t;case 5:return Mx(t),e===null&&vf(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,mf(r,o)?s=null:n!==null&&mf(r,n)&&(t.flags|=32),ry(e,t),ct(e,t,s,a),t.child;case 6:return e===null&&vf(t),null;case 13:return ny(e,t,a);case 4:return ip(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,a):ct(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ra(r,o),mg(e,t,r,o,a);case 7:return ct(e,t,t.pendingProps,a),t.child;case 8:return ct(e,t,t.pendingProps.children,a),t.child;case 12:return ct(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,n=t.memoizedProps,s=o.value,xe(Hl,r._currentValue),r._currentValue=s,n!==null)if(la(n.value,s)){if(n.children===o.children&&!Ct.current){t=_a(e,t,a);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){s=n.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(n.tag===1){l=Ba(-1,a&-a),l.tag=2;var u=n.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}n.lanes|=a,l=n.alternate,l!==null&&(l.lanes|=a),Lf(n.return,a,t),i.lanes|=a;break}l=l.next}}else if(n.tag===10)s=n.type===t.type?null:n.child;else if(n.tag===18){if(s=n.return,s===null)throw Error(R(341));s.lanes|=a,i=s.alternate,i!==null&&(i.lanes|=a),Lf(s,a,t),s=n.sibling}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}ct(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Yo(t,a),o=Qt(o),r=r(o),t.flags|=1,ct(e,t,r,a),t.child;case 14:return r=t.type,o=ra(r,t.pendingProps),o=ra(r.type,o),hg(e,t,r,o,a);case 15:return ty(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ra(r,o),kl(e,t),t.tag=1,St(r)?(e=!0,Ul(t)):e=!1,Yo(t,a),Zx(t,r,o),Sf(t,r,o,a),kf(null,t,r,!0,e,a);case 19:return sy(e,t,a);case 22:return ay(e,t,a)}throw Error(R(156,t.tag))};function Sy(e,t){return Xg(e,t)}function Aw(e,t,a,r){this.tag=e,this.key=a,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 $t(e,t,a,r){return new Aw(e,t,a,r)}function Sp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rw(e){if(typeof e=="function")return Sp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zf)return 11;if(e===Hf)return 14}return 2}function vr(e,t){var a=e.alternate;return a===null?(a=$t(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function Tl(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")Sp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Bo:return to(a.children,o,n,t);case _f:s=8,o|=8;break;case Gc:return e=$t(12,a,t,o|2),e.elementType=Gc,e.lanes=n,e;case jc:return e=$t(13,a,t,o),e.elementType=jc,e.lanes=n,e;case Kc:return e=$t(19,a,t,o),e.elementType=Kc,e.lanes=n,e;case Mg:return uu(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rg:s=10;break e;case Dg:s=9;break e;case zf:s=11;break e;case Hf:s=14;break e;case sr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=$t(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function to(e,t,a,r){return e=$t(7,e,r,t),e.lanes=a,e}function uu(e,t,a,r){return e=$t(22,e,r,t),e.elementType=Mg,e.lanes=a,e.stateNode={isHidden:!1},e}function Hc(e,t,a){return e=$t(6,e,null,t),e.lanes=a,e}function qc(e,t,a){return t=$t(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dw(e,t,a,r,o){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=bc(0),this.expirationTimes=bc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ip(e,t,a,r,o,n,s,i,l){return e=new Dw(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=$t(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},sp(n),e}function Mw(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function Iy(e){if(!e)return Cr;e=e._reactInternals;e:{if(lo(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(St(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var a=e.type;if(St(a))return Ix(e,a,t)}return t}function wy(e,t,a,r,o,n,s,i,l){return e=Ip(a,r,!0,e,o,n,s,i,l),e.context=Iy(null),a=e.current,r=ft(),o=yr(a),n=Ba(r,o),n.callback=t??null,gr(a,n,o),e.current.lanes=o,ei(e,o,r),It(e,r),e}function du(e,t,a,r){var o=t.current,n=ft(),s=yr(o);return a=Iy(a),t.context===null?t.context=a:t.pendingContext=a,t=Ba(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gr(o,t,s),e!==null&&(ia(e,o,s,n),Sl(e,o,s)),s}function Zl(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 Pg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function wp(e,t){Pg(e,t),(e=e.alternate)&&Pg(e,t)}function Nw(){return null}var ky=typeof reportError=="function"?reportError:function(e){console.error(e)};function kp(e){this._internalRoot=e}cu.prototype.render=kp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));du(e,t,null,null)};cu.prototype.unmount=kp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;so(function(){du(null,e,null,null)}),t[Va]=null}};function cu(e){this._internalRoot=e}cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ax();e={blockedOn:null,target:e,priority:t};for(var a=0;a<lr.length&&t!==0&&t<lr[a].priority;a++);lr.splice(a,0,e),a===0&&ox(e)}};function bp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Tg(){}function Ew(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=Zl(s);n.call(u)}}var s=wy(t,r,e,0,null,!1,!1,"",Tg);return e._reactRootContainer=s,e[Va]=s.current,Gs(e.nodeType===8?e.parentNode:e),so(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=Zl(l);i.call(u)}}var l=Ip(e,0,!1,null,null,!1,!1,"",Tg);return e._reactRootContainer=l,e[Va]=l.current,Gs(e.nodeType===8?e.parentNode:e),so(function(){du(t,l,a,r)}),l}function pu(e,t,a,r,o){var n=a._reactRootContainer;if(n){var s=n;if(typeof o=="function"){var i=o;o=function(){var l=Zl(s);i.call(l)}}du(t,s,e,o)}else s=Ew(a,t,e,o,r);return Zl(s)}ex=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=bs(t.pendingLanes);a!==0&&(Gf(t,a|1),It(t,Me()),(ne&6)===0&&(nn=Me()+500,wr()))}break;case 13:so(function(){var r=Ua(e,1);if(r!==null){var o=ft();ia(r,e,1,o)}}),wp(e,1)}};jf=function(e){if(e.tag===13){var t=Ua(e,134217728);if(t!==null){var a=ft();ia(t,e,134217728,a)}wp(e,134217728)}};tx=function(e){if(e.tag===13){var t=yr(e),a=Ua(e,t);if(a!==null){var r=ft();ia(a,e,t,r)}wp(e,t)}};ax=function(){return pe};rx=function(e,t){var a=pe;try{return pe=e,t()}finally{pe=a}};rf=function(e,t,a){switch(t){case"input":if(Qc(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=ru(r);if(!o)throw Error(R(90));Eg(r),Qc(r,o)}}}break;case"textarea":Bg(e,a);break;case"select":t=a.value,t!=null&&Ko(e,!!a.multiple,t,!1)}};qg=vp;Wg=so;var Fw={usingClientEntryPoint:!1,Events:[ai,_o,ru,zg,Hg,vp]},Ss={findFiberByHostInstance:Yr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bw={bundleType:Ss.bundleType,version:Ss.version,rendererPackageName:Ss.rendererPackageName,rendererConfig:Ss.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:za.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Kg(e),e===null?null:e.stateNode},findFiberByHostInstance:Ss.findFiberByHostInstance||Nw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Is=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Is.isDisabled&&Is.supportsFiber))try{Jl=Is.inject(Bw),xa=Is}catch{}var Is;Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fw;Ft.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bp(t))throw Error(R(200));return Mw(e,t,null,a)};Ft.createRoot=function(e,t){if(!bp(e))throw Error(R(299));var a=!1,r="",o=ky;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ip(e,1,!1,null,null,a,!1,r,o),e[Va]=t.current,Gs(e.nodeType===8?e.parentNode:e),new kp(t)};Ft.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Kg(t),e=e===null?null:e.stateNode,e};Ft.flushSync=function(e){return so(e)};Ft.hydrate=function(e,t,a){if(!fu(t))throw Error(R(200));return pu(null,e,t,!0,a)};Ft.hydrateRoot=function(e,t,a){if(!bp(e))throw Error(R(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=ky;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=wy(t,null,e,1,a??null,o,!1,n,s),e[Va]=t.current,Gs(e),r)for(e=0;e<r.length;e++)a=r[e],o=a._getVersion,o=o(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,o]:t.mutableSourceEagerHydrationData.push(a,o);return new cu(t)};Ft.render=function(e,t,a){if(!fu(t))throw Error(R(200));return pu(null,e,t,!1,a)};Ft.unmountComponentAtNode=function(e){if(!fu(e))throw Error(R(40));return e._reactRootContainer?(so(function(){pu(null,null,e,!1,function(){e._reactRootContainer=null,e[Va]=null})}),!0):!1};Ft.unstable_batchedUpdates=vp;Ft.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!fu(a))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return pu(e,t,a,!1,r)};Ft.version="18.3.1-next-f1338f8080-20240426"});var Pp=Da((CT,Ty)=>{"use strict";function Py(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Py)}catch(e){console.error(e)}}Py(),Ty.exports=by()});var Ry=Da(Tp=>{"use strict";var Ay=Pp();Tp.createRoot=Ay.createRoot,Tp.hydrateRoot=Ay.hydrateRoot;var ST});var _y=Da(hu=>{"use strict";var mk=G(),hk=Symbol.for("react.element"),gk=Symbol.for("react.fragment"),xk=Object.prototype.hasOwnProperty,yk=mk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vk={key:!0,ref:!0,__self:!0,__source:!0};function Uy(e,t,a){var r,o={},n=null,s=null;a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)xk.call(t,r)&&!vk.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:hk,type:e,key:n,ref:s,props:o,_owner:yk.current}}hu.Fragment=gk;hu.jsx=Uy;hu.jsxs=Uy});var le=Da((RT,zy)=>{"use strict";zy.exports=_y()});var fT={};yS(fT,{initKiteChat:()=>Wm});var Ta=M(G(),1),rS=M(Ry(),1);var j=M(G(),1);function Dy(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=Dy(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function mu(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=Dy(e))&&(r&&(r+=" "),r+=t);return r}var Ow=e=>{let t=Uw(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split("-");return i[0]===""&&i.length!==1&&i.shift(),Ey(i,t)||Vw(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Ey=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?Ey(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let n=e.join("-");return t.validators.find(({validator:s})=>s(n))?.classGroupId},My=/^\[(.+)\]$/,Vw=e=>{if(My.test(e)){let t=My.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Uw=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return zw(Object.entries(e.classGroups),a).forEach(([n,s])=>{Rp(s,r,n,t)}),r},Rp=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let n=o===""?t:Ny(t,o);n.classGroupId=a;return}if(typeof o=="function"){if(_w(o)){Rp(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([n,s])=>{Rp(s,Ny(t,n),a,r)})})},Ny=(e,t)=>{let a=e;return t.split("-").forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},_w=e=>e.isThemeGetter,zw=(e,t)=>t?e.map(([a,r])=>{let o=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,o]}):e,Hw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,r=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return o(n,s),s},set(n,s){a.has(n)?a.set(n,s):o(n,s)}}};var qw=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,c;for(let I=0;I<i.length;I++){let m=i[I];if(u===0){if(m===o&&(r||i.slice(I,I+n)===t)){l.push(i.slice(d,I)),d=I+n;continue}if(m==="/"){c=I;continue}}m==="["?u++:m==="]"&&u--}let f=l.length===0?i:i.substring(d),g=f.startsWith("!"),v=g?f.substring(1):f,C=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:C}};return a?i=>a({className:i,parseClassName:s}):s},Ww=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(r=>{r[0]==="["?(t.push(...a.sort(),r),a=[]):a.push(r)}),t.push(...a.sort()),t},Gw=e=>({cache:Hw(e.cacheSize),parseClassName:qw(e),...Ow(e)}),jw=/\s+/,Kw=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,n=[],s=e.trim().split(jw),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:g}=a(u),v=!!g,C=r(v?f.substring(0,g):f);if(!C){if(!v){i=u+(i.length>0?" "+i:i);continue}if(C=r(f),!C){i=u+(i.length>0?" "+i:i);continue}v=!1}let I=Ww(d).join(":"),m=c?I+"!":I,h=m+C;if(n.includes(h))continue;n.push(h);let x=o(C,v);for(let S=0;S<x.length;++S){let k=x[S];n.push(m+k)}i=u+(i.length>0?" "+i:i)}return i};function $w(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Fy(t))&&(r&&(r+=" "),r+=a);return r}var Fy=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Fy(e[r]))&&(a&&(a+=" "),a+=t);return a};function Xw(e,...t){let a,r,o,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=Gw(u),r=a.cache.get,o=a.cache.set,n=i,i(l)}function i(l){let u=r(l);if(u)return u;let d=Kw(l,a);return o(l,d),d}return function(){return n($w.apply(null,arguments))}}var Ce=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},By=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qw=/^\d+\/\d+$/,Yw=new Set(["px","full","screen"]),Zw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ek=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ak=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ha=e=>un(e)||Yw.has(e)||Qw.test(e),kr=e=>dn(e,"length",dk),un=e=>!!e&&!Number.isNaN(Number(e)),Ap=e=>dn(e,"number",un),oi=e=>!!e&&Number.isInteger(Number(e)),rk=e=>e.endsWith("%")&&un(e.slice(0,-1)),X=e=>By.test(e),br=e=>Zw.test(e),ok=new Set(["length","size","percentage"]),nk=e=>dn(e,ok,Oy),sk=e=>dn(e,"position",Oy),ik=new Set(["image","url"]),lk=e=>dn(e,ik,fk),uk=e=>dn(e,"",ck),ni=()=>!0,dn=(e,t,a)=>{let r=By.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},dk=e=>Jw.test(e)&&!ek.test(e),Oy=()=>!1,ck=e=>tk.test(e),fk=e=>ak.test(e);var pk=()=>{let e=Ce("colors"),t=Ce("spacing"),a=Ce("blur"),r=Ce("brightness"),o=Ce("borderColor"),n=Ce("borderRadius"),s=Ce("borderSpacing"),i=Ce("borderWidth"),l=Ce("contrast"),u=Ce("grayscale"),d=Ce("hueRotate"),c=Ce("invert"),f=Ce("gap"),g=Ce("gradientColorStops"),v=Ce("gradientColorStopPositions"),C=Ce("inset"),I=Ce("margin"),m=Ce("opacity"),h=Ce("padding"),x=Ce("saturate"),S=Ce("scale"),k=Ce("sepia"),T=Ce("skew"),D=Ce("space"),A=Ce("translate"),B=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",X,t],se=()=>[X,t],jr=()=>["",Ha,kr],Z=()=>["auto",un,X],Jt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["solid","dashed","dotted","double","none"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ve=()=>["start","end","center","between","around","evenly","stretch"],gt=()=>["","0",X],Wt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],xt=()=>[un,X];return{cacheSize:500,separator:":",theme:{colors:[ni],spacing:[Ha,kr],blur:["none","",br,X],brightness:xt(),borderColor:[e],borderRadius:["none","","full",br,X],borderSpacing:se(),borderWidth:jr(),contrast:xt(),grayscale:gt(),hueRotate:xt(),invert:gt(),gap:se(),gradientColorStops:[e],gradientColorStopPositions:[rk,kr],inset:de(),margin:de(),opacity:xt(),padding:se(),saturate:xt(),scale:xt(),sepia:gt(),skew:xt(),space:se(),translate:se()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[br]}],"break-after":[{"break-after":Wt()}],"break-before":[{"break-before":Wt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Jt(),X]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",oi,X]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:gt()}],shrink:[{shrink:gt()}],order:[{order:["first","last","none",oi,X]}],"grid-cols":[{"grid-cols":[ni]}],"col-start-end":[{col:["auto",{span:["full",oi,X]},X]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[ni]}],"row-start-end":[{row:["auto",{span:[oi,X]},X]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],ms:[{ms:[I]}],me:[{me:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[br]},br]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",br,kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ap]}],"font-family":[{font:[ni]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",un,Ap]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ha,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ha,kr]}],"underline-offset":[{"underline-offset":["auto",Ha,X]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:se()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Jt(),sk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...he(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:he()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[Ha,X]}],"outline-w":[{outline:[Ha,kr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:jr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Ha,kr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",br,uk]}],"shadow-color":[{shadow:[ni]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...De(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":De()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",br,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[x]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:xt()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:xt()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[oi,X]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":se()}],"scroll-mx":[{"scroll-mx":se()}],"scroll-my":[{"scroll-my":se()}],"scroll-ms":[{"scroll-ms":se()}],"scroll-me":[{"scroll-me":se()}],"scroll-mt":[{"scroll-mt":se()}],"scroll-mr":[{"scroll-mr":se()}],"scroll-mb":[{"scroll-mb":se()}],"scroll-ml":[{"scroll-ml":se()}],"scroll-p":[{"scroll-p":se()}],"scroll-px":[{"scroll-px":se()}],"scroll-py":[{"scroll-py":se()}],"scroll-ps":[{"scroll-ps":se()}],"scroll-pe":[{"scroll-pe":se()}],"scroll-pt":[{"scroll-pt":se()}],"scroll-pr":[{"scroll-pr":se()}],"scroll-pb":[{"scroll-pb":se()}],"scroll-pl":[{"scroll-pl":se()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ha,kr,Ap]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Vy=Xw(pk);function Bt(...e){return Vy(mu(e))}var Hy=M(le(),1);function ke({className:e,type:t,...a}){return(0,Hy.jsx)("input",{type:t,"data-slot":"input",className:Bt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...a})}var Be=M(G(),1);var Wy=M(G(),1);function qy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function si(...e){return t=>{let a=!1,r=e.map(o=>{let n=qy(o,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let o=0;o<r.length;o++){let n=r[o];typeof n=="function"?n():qy(e[o],null)}}}}function qa(...e){return Wy.useCallback(si(...e),e)}var gu=M(le(),1),Lk=Symbol.for("react.lazy"),xu=Be[" use ".trim().toString()];function Ck(e){return typeof e=="object"&&e!==null&&"then"in e}function Gy(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Lk&&"_payload"in e&&Ck(e._payload)}function Sk(e){let t=Ik(e),a=Be.forwardRef((r,o)=>{let{children:n,...s}=r;Gy(n)&&typeof xu=="function"&&(n=xu(n._payload));let i=Be.Children.toArray(n),l=i.find(kk);if(l){let u=l.props.children,d=i.map(c=>c===l?Be.Children.count(u)>1?Be.Children.only(null):Be.isValidElement(u)?u.props.children:null:c);return(0,gu.jsx)(t,{...s,ref:o,children:Be.isValidElement(u)?Be.cloneElement(u,void 0,d):null})}return(0,gu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}var jy=Sk("Slot");function Ik(e){let t=Be.forwardRef((a,r)=>{let{children:o,...n}=a;if(Gy(o)&&typeof xu=="function"&&(o=xu(o._payload)),Be.isValidElement(o)){let s=Pk(o),i=bk(n,o.props);return o.type!==Be.Fragment&&(i.ref=r?si(r,s):s),Be.cloneElement(o,i)}return Be.Children.count(o)>1?Be.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wk=Symbol("radix.slottable");function kk(e){return Be.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wk}function bk(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}function Pk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Ky=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$y=mu,Xy=(e,t)=>a=>{var r;if(t?.variants==null)return $y(e,a?.class,a?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(u=>{let d=a?.[u],c=n?.[u];if(d===null)return null;let f=Ky(d)||Ky(c);return o[u][f]}),i=a&&Object.entries(a).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...g}=d;return Object.entries(g).every(v=>{let[C,I]=v;return Array.isArray(I)?I.includes({...n,...i}[C]):{...n,...i}[C]===I})?[...u,c,f]:u},[]);return $y(e,s,l,a?.class,a?.className)};var Qy=M(le(),1),Tk=Xy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ot({className:e,variant:t,size:a,asChild:r=!1,...o}){return(0,Qy.jsx)(r?jy:"button",{"data-slot":"button",className:Bt(Tk({variant:t,size:a,className:e})),...o})}var Sv=M(G(),1);var q=M(G(),1);var Zy=M(G(),1),Ek=M(Pp(),1);var ze=M(G(),1);var yu=M(le(),1);function Yy(e){let t=Ak(e),a=ze.forwardRef((r,o)=>{let{children:n,...s}=r,i=ze.Children.toArray(n),l=i.find(Dk);if(l){let u=l.props.children,d=i.map(c=>c===l?ze.Children.count(u)>1?ze.Children.only(null):ze.isValidElement(u)?u.props.children:null:c);return(0,yu.jsx)(t,{...s,ref:o,children:ze.isValidElement(u)?ze.cloneElement(u,void 0,d):null})}return(0,yu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}function Ak(e){let t=ze.forwardRef((a,r)=>{let{children:o,...n}=a;if(ze.isValidElement(o)){let s=Nk(o),i=Mk(n,o.props);return o.type!==ze.Fragment&&(i.ref=r?si(r,s):s),ze.cloneElement(o,i)}return ze.Children.count(o)>1?ze.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rk=Symbol("radix.slottable");function Dk(e){return ze.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rk}function Mk(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}function Nk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Jy=M(le(),1),Fk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cn=Fk.reduce((e,t)=>{let a=Yy(`Primitive.${t}`),r=Zy.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Jy.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});var wt=M(G(),1);var ev=M(G(),1),ii=globalThis?.document?ev.useLayoutEffect:()=>{};var tv=M(G(),1);function Bk(e,t){return tv.useReducer((a,r)=>t[a][r]??a,e)}var fn=e=>{let{present:t,children:a}=e,r=Ok(t),o=typeof a=="function"?a({present:r.isPresent}):wt.Children.only(a),n=qa(r.ref,Vk(o));return typeof a=="function"||r.isPresent?wt.cloneElement(o,{ref:n}):null};fn.displayName="Presence";function Ok(e){let[t,a]=wt.useState(),r=wt.useRef(null),o=wt.useRef(e),n=wt.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Bk(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return wt.useEffect(()=>{let u=vu(r.current);n.current=i==="mounted"?u:"none"},[i]),ii(()=>{let u=r.current,d=o.current;if(d!==e){let f=n.current,g=vu(u);e?l("MOUNT"):g==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ii(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,c=g=>{let C=vu(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&C&&(l("ANIMATION_END"),!o.current)){let I=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=I)})}},f=g=>{g.target===t&&(n.current=vu(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:wt.useCallback(u=>{r.current=u?getComputedStyle(u):null,a(u)},[])}}function vu(e){return e?.animationName||"none"}function Vk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Wa=M(G(),1),av=M(le(),1);function rv(e,t=[]){let a=[];function r(n,s){let i=Wa.createContext(s),l=a.length;a=[...a,s];let u=c=>{let{scope:f,children:g,...v}=c,C=f?.[e]?.[l]||i,I=Wa.useMemo(()=>v,Object.values(v));return(0,av.jsx)(C.Provider,{value:I,children:g})};u.displayName=n+"Provider";function d(c,f){let g=f?.[e]?.[l]||i,v=Wa.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[u,d]}let o=()=>{let n=a.map(s=>Wa.createContext(s));return function(i){let l=i?.[e]||n;return Wa.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Uk(o,...t)]}function Uk(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let c=l(n)[`__scope${u}`];return{...i,...c}},{});return Wa.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return a.scopeName=t.scopeName,a}var pn=M(G(),1);function Pr(e){let t=pn.useRef(e);return pn.useEffect(()=>{t.current=e}),pn.useMemo(()=>(...a)=>t.current?.(...a),[])}var Lu=M(G(),1),_k=M(le(),1),zk=Lu.createContext(void 0);function ov(e){let t=Lu.useContext(zk);return e||t||"ltr"}function nv(e,[t,a]){return Math.min(a,Math.max(t,e))}var eA=!!(typeof window<"u"&&window.document&&window.document.createElement);function Tr(e,t,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e?.(o),a===!1||!o.defaultPrevented)return t?.(o)}}var iv=M(G(),1),ue=M(le(),1);function Hk(e,t){return iv.useReducer((a,r)=>t[a][r]??a,e)}var Dp="ScrollArea",[lv,cA]=rv(Dp),[qk,Zt]=lv(Dp),uv=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,type:r="hover",dir:o,scrollHideDelay:n=600,...s}=e,[i,l]=q.useState(null),[u,d]=q.useState(null),[c,f]=q.useState(null),[g,v]=q.useState(null),[C,I]=q.useState(null),[m,h]=q.useState(0),[x,S]=q.useState(0),[k,T]=q.useState(!1),[D,A]=q.useState(!1),B=qa(t,de=>l(de)),V=ov(o);return(0,ue.jsx)(qk,{scope:a,type:r,dir:V,scrollHideDelay:n,scrollArea:i,viewport:u,onViewportChange:d,content:c,onContentChange:f,scrollbarX:g,onScrollbarXChange:v,scrollbarXEnabled:k,onScrollbarXEnabledChange:T,scrollbarY:C,onScrollbarYChange:I,scrollbarYEnabled:D,onScrollbarYEnabledChange:A,onCornerWidthChange:h,onCornerHeightChange:S,children:(0,ue.jsx)(cn.div,{dir:V,...s,ref:B,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});uv.displayName=Dp;var dv="ScrollAreaViewport",cv=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,children:r,nonce:o,...n}=e,s=Zt(dv,a),i=q.useRef(null),l=qa(t,i,s.onViewportChange);return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,ue.jsx)(cn.div,{"data-radix-scroll-area-viewport":"",...n,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,ue.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});cv.displayName=dv;var va="ScrollAreaScrollbar",Mp=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Zt(va,e.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return q.useEffect(()=>(i?n(!0):s(!0),()=>{i?n(!1):s(!1)}),[i,n,s]),o.type==="hover"?(0,ue.jsx)(Wk,{...r,ref:t,forceMount:a}):o.type==="scroll"?(0,ue.jsx)(Gk,{...r,ref:t,forceMount:a}):o.type==="auto"?(0,ue.jsx)(fv,{...r,ref:t,forceMount:a}):o.type==="always"?(0,ue.jsx)(Np,{...r,ref:t}):null});Mp.displayName=va;var Wk=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Zt(va,e.__scopeScrollArea),[n,s]=q.useState(!1);return q.useEffect(()=>{let i=o.scrollArea,l=0;if(i){let u=()=>{window.clearTimeout(l),s(!0)},d=()=>{l=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",u),i.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",u),i.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),(0,ue.jsx)(fn,{present:a||n,children:(0,ue.jsx)(fv,{"data-state":n?"visible":"hidden",...r,ref:t})})}),Gk=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Zt(va,e.__scopeScrollArea),n=e.orientation==="horizontal",s=wu(()=>l("SCROLL_END"),100),[i,l]=Hk("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return q.useEffect(()=>{if(i==="idle"){let u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[i,o.scrollHideDelay,l]),q.useEffect(()=>{let u=o.viewport,d=n?"scrollLeft":"scrollTop";if(u){let c=u[d],f=()=>{let g=u[d];c!==g&&(l("SCROLL"),s()),c=g};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,n,l,s]),(0,ue.jsx)(fn,{present:a||i!=="hidden",children:(0,ue.jsx)(Np,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Tr(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Tr(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),fv=q.forwardRef((e,t)=>{let a=Zt(va,e.__scopeScrollArea),{forceMount:r,...o}=e,[n,s]=q.useState(!1),i=e.orientation==="horizontal",l=wu(()=>{if(a.viewport){let u=a.viewport.offsetWidth<a.viewport.scrollWidth,d=a.viewport.offsetHeight<a.viewport.scrollHeight;s(i?u:d)}},10);return mn(a.viewport,l),mn(a.content,l),(0,ue.jsx)(fn,{present:r||n,children:(0,ue.jsx)(Np,{"data-state":n?"visible":"hidden",...o,ref:t})})}),Np=q.forwardRef((e,t)=>{let{orientation:a="vertical",...r}=e,o=Zt(va,e.__scopeScrollArea),n=q.useRef(null),s=q.useRef(0),[i,l]=q.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=gv(i.viewport,i.content),d={...r,sizes:i,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function c(f,g){return Yk(f,s.current,i,g)}return a==="horizontal"?(0,ue.jsx)(jk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let f=o.viewport.scrollLeft,g=sv(f,i,o.dir);n.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=c(f,o.dir))}}):a==="vertical"?(0,ue.jsx)(Kk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let f=o.viewport.scrollTop,g=sv(f,i);n.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=c(f))}}):null}),jk=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Zt(va,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=qa(t,l,n.onScrollbarXChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,ue.jsx)(mv,{"data-orientation":"horizontal",...o,ref:u,sizes:a,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Iu(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,c)=>{if(n.viewport){let f=n.viewport.scrollLeft+d.deltaX;e.onWheelScroll(f),yv(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Su(s.paddingLeft),paddingEnd:Su(s.paddingRight)}})}})}),Kk=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Zt(va,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=qa(t,l,n.onScrollbarYChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,ue.jsx)(mv,{"data-orientation":"vertical",...o,ref:u,sizes:a,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Iu(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,c)=>{if(n.viewport){let f=n.viewport.scrollTop+d.deltaY;e.onWheelScroll(f),yv(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Su(s.paddingTop),paddingEnd:Su(s.paddingBottom)}})}})}),[$k,pv]=lv(va),mv=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,sizes:r,hasThumb:o,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:c,...f}=e,g=Zt(va,a),[v,C]=q.useState(null),I=qa(t,B=>C(B)),m=q.useRef(null),h=q.useRef(""),x=g.viewport,S=r.content-r.viewport,k=Pr(d),T=Pr(l),D=wu(c,10);function A(B){if(m.current){let V=B.clientX-m.current.left,de=B.clientY-m.current.top;u({x:V,y:de})}}return q.useEffect(()=>{let B=V=>{let de=V.target;v?.contains(de)&&k(V,S)};return document.addEventListener("wheel",B,{passive:!1}),()=>document.removeEventListener("wheel",B,{passive:!1})},[x,v,S,k]),q.useEffect(T,[r,T]),mn(v,D),mn(g.content,D),(0,ue.jsx)($k,{scope:a,scrollbar:v,hasThumb:o,onThumbChange:Pr(n),onThumbPointerUp:Pr(s),onThumbPositionChange:T,onThumbPointerDown:Pr(i),children:(0,ue.jsx)(cn.div,{...f,ref:I,style:{position:"absolute",...f.style},onPointerDown:Tr(e.onPointerDown,B=>{B.button===0&&(B.target.setPointerCapture(B.pointerId),m.current=v.getBoundingClientRect(),h.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),A(B))}),onPointerMove:Tr(e.onPointerMove,A),onPointerUp:Tr(e.onPointerUp,B=>{let V=B.target;V.hasPointerCapture(B.pointerId)&&V.releasePointerCapture(B.pointerId),document.body.style.webkitUserSelect=h.current,g.viewport&&(g.viewport.style.scrollBehavior=""),m.current=null})})})}),Cu="ScrollAreaThumb",Ep=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=pv(Cu,e.__scopeScrollArea);return(0,ue.jsx)(fn,{present:a||o.hasThumb,children:(0,ue.jsx)(Xk,{ref:t,...r})})}),Xk=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,style:r,...o}=e,n=Zt(Cu,a),s=pv(Cu,a),{onThumbPositionChange:i}=s,l=qa(t,c=>s.onThumbChange(c)),u=q.useRef(void 0),d=wu(()=>{u.current&&(u.current(),u.current=void 0)},100);return q.useEffect(()=>{let c=n.viewport;if(c){let f=()=>{if(d(),!u.current){let g=Zk(c,i);u.current=g,i()}};return i(),c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[n.viewport,d,i]),(0,ue.jsx)(cn.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Tr(e.onPointerDownCapture,c=>{let g=c.target.getBoundingClientRect(),v=c.clientX-g.left,C=c.clientY-g.top;s.onThumbPointerDown({x:v,y:C})}),onPointerUp:Tr(e.onPointerUp,s.onThumbPointerUp)})});Ep.displayName=Cu;var Fp="ScrollAreaCorner",hv=q.forwardRef((e,t)=>{let a=Zt(Fp,e.__scopeScrollArea),r=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&r?(0,ue.jsx)(Qk,{...e,ref:t}):null});hv.displayName=Fp;var Qk=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,...r}=e,o=Zt(Fp,a),[n,s]=q.useState(0),[i,l]=q.useState(0),u=!!(n&&i);return mn(o.scrollbarX,()=>{let d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),l(d)}),mn(o.scrollbarY,()=>{let d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),s(d)}),u?(0,ue.jsx)(cn.div,{...r,ref:t,style:{width:n,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Su(e){return e?parseInt(e,10):0}function gv(e,t){let a=e/t;return isNaN(a)?0:a}function Iu(e){let t=gv(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-a)*t;return Math.max(r,18)}function Yk(e,t,a,r="ltr"){let o=Iu(a),n=o/2,s=t||n,i=o-s,l=a.scrollbar.paddingStart+s,u=a.scrollbar.size-a.scrollbar.paddingEnd-i,d=a.content-a.viewport,c=r==="ltr"?[0,d]:[d*-1,0];return xv([l,u],c)(e)}function sv(e,t,a="ltr"){let r=Iu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=t.scrollbar.size-o,s=t.content-t.viewport,i=n-r,l=a==="ltr"?[0,s]:[s*-1,0],u=nv(e,l);return xv([0,s],[0,i])(u)}function xv(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(a-e[0])}}function yv(e,t){return e>0&&e<t}var Zk=(e,t=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){let n={left:e.scrollLeft,top:e.scrollTop},s=a.left!==n.left,i=a.top!==n.top;(s||i)&&t(),a=n,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function wu(e,t){let a=Pr(e),r=q.useRef(0);return q.useEffect(()=>()=>window.clearTimeout(r.current),[]),q.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(a,t)},[a,t])}function mn(e,t){let a=Pr(t);ii(()=>{let r=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(a)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,a])}var vv=uv,Lv=cv;var Cv=hv;var Ar=M(le(),1),Bp=Sv.forwardRef(({className:e,children:t,...a},r)=>(0,Ar.jsxs)(vv,{"data-slot":"scroll-area",className:Bt("relative",e),...a,children:[(0,Ar.jsx)(Lv,{ref:r,"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),(0,Ar.jsx)(eb,{}),(0,Ar.jsx)(Cv,{})]}));Bp.displayName="ScrollArea";function eb({className:e,orientation:t="vertical",...a}){return(0,Ar.jsx)(Mp,{"data-slot":"scroll-area-scrollbar",orientation:t,className:Bt("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:(0,Ar.jsx)(Ep,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var bu=M(G());var Iv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),Op=e=>{let t=tb(e);return t.charAt(0).toUpperCase()+t.slice(1)},ku=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),wv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var li=M(G());var kv={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"};var bv=(0,li.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>(0,li.createElement)("svg",{ref:l,...kv,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:ku("lucide",o),...!n&&!wv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,d])=>(0,li.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var O=(e,t)=>{let a=(0,bu.forwardRef)(({className:r,...o},n)=>(0,bu.createElement)(bv,{ref:n,iconNode:t,className:ku(`lucide-${Iv(Op(e))}`,`lucide-${e}`,r),...o}));return a.displayName=Op(e),a};var ab=[["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"}]],ui=O("activity",ab);var rb=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],hn=O("arrow-left",rb);var ob=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],di=O("arrow-up",ob);var nb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],ci=O("calendar",nb);var sb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fi=O("chevron-down",sb);var ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],pi=O("chevron-right",ib);var lb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mi=O("chevron-left",lb);var ub=[["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"}]],ua=O("circle-alert",ub);var db=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],je=O("circle-check",db);var cb=[["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"}]],da=O("circle-x",cb);var fb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],uo=O("clock",fb);var pb=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],Ga=O("command",pb);var mb=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],ja=O("corner-down-left",mb);var hb=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],co=O("credit-card",hb);var gb=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],fo=O("crown",gb);var xb=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],po=O("dollar-sign",xb);var yb=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],gn=O("file-spreadsheet",yb);var vb=[["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"}]],xn=O("key",vb);var Lb=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],hi=O("laptop",Lb);var Cb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vt=O("loader-circle",Cb);var Sb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],yn=O("mail",Sb);var Ib=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vn=O("map-pin",Ib);var wb=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],gi=O("paperclip",wb);var kb=[["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"}]],Ln=O("refresh-cw",kb);var bb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],mo=O("search",bb);var Pb=[["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"}]],Cn=O("shield",Pb);var Tb=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],xi=O("smartphone",Tb);var Ab=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],kt=O("square-pen",Ab);var Rb=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],yi=O("trending-up",Rb);var Db=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Sn=O("users",Db);var Mb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ho=O("x",Mb);var Nb=[["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"}]],vi=O("zap",Nb);var Re=M(le(),1);function Pv({phase:e,progressSteps:t=[]}){return(0,Re.jsxs)("div",{className:"mb-3 rounded-lg bg-muted/40 px-3 py-3 text-xs text-muted-foreground transition-colors",children:[e==="thinking"&&t.length===0&&(0,Re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Re.jsx)(Vt,{className:"h-3.5 w-3.5 animate-spin"}),(0,Re.jsx)("span",{children:"Thinking\u2026"})]}),e==="searching"&&(0,Re.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-300",children:[(0,Re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Re.jsx)(mo,{className:"h-3.5 w-3.5 opacity-70"}),(0,Re.jsx)("span",{children:"Searching across pages\u2026"})]}),(0,Re.jsxs)("ul",{className:"ml-6 list-disc space-y-1",children:[(0,Re.jsx)("li",{className:"opacity-90",children:"Checking recent changes"}),(0,Re.jsx)("li",{className:"opacity-90",children:"Scanning documentation"}),(0,Re.jsx)("li",{className:"opacity-90",children:"Summarizing relevant sections"})]})]}),(e==="thinking"||e==="executing"||e==="responding")&&t.length>0&&(0,Re.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-200",children:[t.map((a,r)=>(0,Re.jsxs)("div",{className:`flex items-center gap-2 transition-opacity duration-200 ${a.completed?"opacity-60":"opacity-100"}`,children:[a.completed?(0,Re.jsx)(je,{className:"h-3.5 w-3.5 text-green-500 flex-shrink-0"}):(0,Re.jsx)(Vt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,Re.jsx)("span",{className:a.completed?"line-through":"",children:a.message})]},r)),e==="responding"&&(0,Re.jsxs)("div",{className:"flex items-center gap-2 opacity-100 animate-in fade-in-0 duration-200",children:[(0,Re.jsx)(Vt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,Re.jsx)("span",{children:"Preparing response..."})]})]})]})}var Tv=M(G(),1);var ca=M(le(),1);function Av({title:e,links:t}){let[a,r]=Tv.useState(!1);return(0,ca.jsxs)("div",{className:"text-xs text-muted-foreground",children:[(0,ca.jsx)("button",{type:"button",onClick:()=>r(o=>!o),className:"flex w-full items-center gap-2 px-0 py-0","aria-expanded":a,children:(0,ca.jsxs)("div",{className:"flex items-center gap-1.5",children:[a?(0,ca.jsx)(fi,{className:"h-3 w-3 opacity-70"}):(0,ca.jsx)(mo,{className:"h-3 w-3 opacity-70"}),(0,ca.jsx)("span",{children:e})]})}),a&&t.length>0&&(0,ca.jsx)("ul",{className:"ml-5 mt-1 space-y-0.5",children:t.map(o=>(0,ca.jsx)("li",{children:(0,ca.jsx)("a",{href:o.href,target:"_blank",rel:"noreferrer",className:"text-primary hover:underline",children:o.label})},o.href))})]})}var Ci=M(le(),1),La=M(G(),1);var Rv=M(G(),1),In=(0,Rv.createContext)({});var Dv=M(G(),1);function wn(e){let t=(0,Dv.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Up=M(le(),1),Bv=M(G(),1),go=M(G(),1);var Mv=M(G(),1),Rr=(0,Mv.createContext)(null);var Ev=M(le(),1),Pu=M(G(),1),Ka=M(G(),1);var Nv=M(G(),1),kn=(0,Nv.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var Vp=class extends Pu.Component{getSnapshotBeforeUpdate(t){let a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){let r=this.props.sizeRef.current;r.height=a.offsetHeight||0,r.width=a.offsetWidth||0,r.top=a.offsetTop,r.left=a.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function Fv({children:e,isPresent:t}){let a=(0,Ka.useId)(),r=(0,Ka.useRef)(null),o=(0,Ka.useRef)({width:0,height:0,top:0,left:0}),{nonce:n}=(0,Ka.useContext)(kn);return(0,Ka.useInsertionEffect)(()=>{let{width:s,height:i,top:l,left:u}=o.current;if(t||!r.current||!s||!i)return;r.current.dataset.motionPopId=a;let d=document.createElement("style");return n&&(d.nonce=n),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
9
9
|
[data-motion-pop-id="${a}"] {
|
|
10
10
|
position: absolute !important;
|
|
11
11
|
width: ${s}px !important;
|
|
@@ -13,28 +13,28 @@ Error generating stack: `+n.message+`
|
|
|
13
13
|
top: ${l}px !important;
|
|
14
14
|
left: ${u}px !important;
|
|
15
15
|
}
|
|
16
|
-
`),()=>{document.head.removeChild(d)}},[t]),(0,Ev.jsx)(Vp,{isPresent:t,childRef:r,sizeRef:o,children:Pu.cloneElement(e,{ref:r})})}var Ov=({children:e,initial:t,isPresent:a,onExitComplete:r,custom:o,presenceAffectsLayout:n,mode:s})=>{let i=wn(Eb),l=(0,go.useId)(),u=(0,go.useCallback)(c=>{i.set(c,!0);for(let f of i.values())if(!f)return;r&&r()},[i,r]),d=(0,go.useMemo)(()=>({id:l,initial:t,isPresent:a,custom:o,onExitComplete:u,register:c=>(i.set(c,!1),()=>i.delete(c))}),n?[Math.random(),u]:[a,u]);return(0,go.useMemo)(()=>{i.forEach((c,f)=>i.set(f,!1))},[a]),Bv.useEffect(()=>{!a&&!i.size&&r&&r()},[a]),s==="popLayout"&&(e=(0,Up.jsx)(Fv,{isPresent:a,children:e})),(0,Up.jsx)(Rr.Provider,{value:d,children:e})};function Eb(){return new Map}var Dr=M(G(),1);function Tu(e=!0){let t=(0,Dr.useContext)(Rr);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:r,register:o}=t,n=(0,Dr.useId)();(0,Dr.useEffect)(()=>{e&&o(n)},[e]);let s=(0,Dr.useCallback)(()=>e&&r&&r(n),[n,r,e]);return!a&&r?[!1,s]:[!0]}var Au=M(G(),1),Li=e=>e.key||"";function _p(e){let t=[];return Au.Children.forEach(e,a=>{(0,Au.isValidElement)(a)&&t.push(a)}),t}var Ru=M(G(),1);var bn=typeof window<"u";var Du=bn?Ru.useLayoutEffect:Ru.useEffect;var zp=({children:e,custom:t,initial:a=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:n="sync",propagate:s=!1})=>{let[i,l]=Tu(s),u=(0,La.useMemo)(()=>_p(e),[e]),d=s&&!i?[]:u.map(Li),c=(0,La.useRef)(!0),f=(0,La.useRef)(u),g=wn(()=>new Map),[v,C]=(0,La.useState)(u),[I,m]=(0,La.useState)(u);Du(()=>{c.current=!1,f.current=u;for(let S=0;S<I.length;S++){let k=Li(I[S]);d.includes(k)?g.delete(k):g.get(k)!==!0&&g.set(k,!1)}},[I,d.length,d.join("-")]);let h=[];if(u!==v){let S=[...u];for(let k=0;k<I.length;k++){let T=I[k],D=Li(T);d.includes(D)||(S.splice(k,0,T),h.push(T))}n==="wait"&&h.length&&(S=h),m(_p(S)),C(u);return}let{forceRender:x}=(0,La.useContext)(In);return(0,Ci.jsx)(Ci.Fragment,{children:I.map(S=>{let k=Li(S),T=s&&!i?!1:u===I||d.includes(k),D=()=>{if(g.has(k))g.set(k,!0);else return;let A=!0;g.forEach(B=>{B||(A=!1)}),A&&(x?.(),m(f.current),s&&l?.(),r&&r())};return(0,Ci.jsx)(Ov,{isPresent:T,initial:!c.current||a?void 0:!1,custom:T?void 0:t,presenceAffectsLayout:o,mode:n,onExitComplete:T?void 0:D,children:S},k)})})};var me=e=>e;var $a=me,fa=me;function xo(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ut=(e,t,a)=>{let r=t-e;return r===0?1:(a-e)/r};var Ne=e=>e*1e3,Ye=e=>e/1e3;var Pn={skipAnimations:!1,useManualTiming:!1};function Vv(e){let t=new Set,a=new Set,r=!1,o=!1,n=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function i(u){n.has(u)&&(l.schedule(u),e()),u(s)}let l={schedule:(u,d=!1,c=!1)=>{let g=c&&r?t:a;return d&&n.add(u),g.has(u)||g.add(u),u},cancel:u=>{a.delete(u),n.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,a]=[a,t],t.forEach(i),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}var Mu=["read","resolveKeyframes","update","preRender","render","postRender"],Fb=40;function Nu(e,t){let a=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},n=()=>a=!0,s=Mu.reduce((m,h)=>(m[h]=Vv(n),m),{}),{read:i,resolveKeyframes:l,update:u,preRender:d,render:c,postRender:f}=s,g=()=>{let m=Pn.useManualTiming?o.timestamp:performance.now();a=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,Fb),1),o.timestamp=m,o.isProcessing=!0,i.process(o),l.process(o),u.process(o),d.process(o),c.process(o),f.process(o),o.isProcessing=!1,a&&t&&(r=!1,e(g))},v=()=>{a=!0,r=!0,o.isProcessing||e(g)};return{schedule:Mu.reduce((m,h)=>{let x=s[h];return m[h]=(S,k=!1,T=!1)=>(a||v(),x.schedule(S,k,T)),m},{}),cancel:m=>{for(let h=0;h<Mu.length;h++)s[Mu[h]].cancel(m)},state:o,steps:s}}var{schedule:Q,cancel:_t,state:Ee,steps:Eu}=Nu(typeof requestAnimationFrame<"u"?requestAnimationFrame:me,!0);var Uv=M(G(),1),Fu=(0,Uv.createContext)({strict:!1});var _v={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"]},Xa={};for(let e in _v)Xa[e]={isEnabled:t=>_v[e].some(a=>!!t[a])};function zv(e){for(let t in e)Xa[t]={...Xa[t],...e[t]}}var Bb=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 Si(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bb.has(e)}var Hv=e=>!Si(e);function Ob(e){e&&(Hv=t=>t.startsWith("on")?!Si(t):e(t))}try{Ob(xS("@emotion/is-prop-valid").default)}catch{}function qv(e,t,a){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||(Hv(o)||a===!0&&Si(o)||!t&&!Si(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Wv(e){if(typeof Proxy>"u")return e;let t=new Map,a=(...r)=>e(...r);return new Proxy(a,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}var zu=M(le(),1);var Rn=M(G(),1);var Gv=M(G(),1),Mr=(0,Gv.createContext)({});var Vu=M(G(),1);function Qa(e){return typeof e=="string"||Array.isArray(e)}function Nr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}var Bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ii=["initial",...Bu];function yo(e){return Nr(e.animate)||Ii.some(t=>Qa(e[t]))}function Ou(e){return!!(yo(e)||e.variants)}function jv(e,t){if(yo(e)){let{initial:a,animate:r}=e;return{initial:a===!1||Qa(a)?a:void 0,animate:Qa(r)?r:void 0}}return e.inherit!==!1?t:{}}function $v(e){let{initial:t,animate:a}=jv(e,(0,Vu.useContext)(Mr));return(0,Vu.useMemo)(()=>({initial:t,animate:a}),[Kv(t),Kv(a)])}function Kv(e){return Array.isArray(e)?e.join(" "):e}var Xv=Symbol.for("motionComponentSymbol");var Qv=M(G(),1);function Ya(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Yv(e,t,a){return(0,Qv.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),a&&(typeof a=="function"?a(r):Ya(a)&&(a.current=r))},[t])}var Pt=M(G(),1);var Tn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var Vb="framerAppearId",Uu="data-"+Tn(Vb);var{schedule:An,cancel:EM}=Nu(queueMicrotask,!1);var Zv=M(G(),1),_u=(0,Zv.createContext)({});function Jv(e,t,a,r,o){var n,s;let{visualElement:i}=(0,Pt.useContext)(Mr),l=(0,Pt.useContext)(Fu),u=(0,Pt.useContext)(Rr),d=(0,Pt.useContext)(kn).reducedMotion,c=(0,Pt.useRef)(null);r=r||l.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:a,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));let f=c.current,g=(0,Pt.useContext)(_u);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&Ub(c.current,a,o,g);let v=(0,Pt.useRef)(!1);(0,Pt.useInsertionEffect)(()=>{f&&v.current&&f.update(a,u)});let C=a[Uu],I=(0,Pt.useRef)(!!C&&!(!((n=window.MotionHandoffIsComplete)===null||n===void 0)&&n.call(window,C))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,C)));return Du(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),An.render(f.render),I.current&&f.animationState&&f.animationState.animateChanges())}),(0,Pt.useEffect)(()=>{f&&(!I.current&&f.animationState&&f.animationState.animateChanges(),I.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,C)}),I.current=!1))}),f}function Ub(e,t,a,r){let{layoutId:o,layout:n,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:u}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:e0(e.parent)),e.projection.setOptions({layoutId:o,layout:n,alwaysMeasureLayout:!!s||i&&Ya(i),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function e0(e){if(e)return e.options.allowProjection!==!1?e.projection:e0(e.parent)}function t0({preloadedFeatures:e,createVisualElement:t,useRender:a,useVisualState:r,Component:o}){var n,s;e&&zv(e);function i(u,d){let c,f={...(0,Rn.useContext)(kn),...u,layoutId:_b(u)},{isStatic:g}=f,v=$v(u),C=r(u,g);if(!g&&bn){zb(f,e);let I=Hb(f);c=I.MeasureLayout,v.visualElement=Jv(o,C,f,t,I.ProjectionNode)}return(0,zu.jsxs)(Mr.Provider,{value:v,children:[c&&v.visualElement?(0,zu.jsx)(c,{visualElement:v.visualElement,...f}):null,a(o,u,Yv(C,v.visualElement,d),C,g,v.visualElement)]})}i.displayName=`motion.${typeof o=="string"?o:`create(${(s=(n=o.displayName)!==null&&n!==void 0?n:o.name)!==null&&s!==void 0?s:""})`}`;let l=(0,Rn.forwardRef)(i);return l[Xv]=o,l}function _b({layoutId:e}){let t=(0,Rn.useContext)(In).id;return t&&e!==void 0?t+"-"+e:e}function zb(e,t){let a=(0,Rn.useContext)(Fu).strict}function Hb(e){let{drag:t,layout:a}=Xa;if(!t&&!a)return{};let r={...t,...a};return{MeasureLayout:t?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var a0=["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 Dn(e){return typeof e!="string"||e.includes("-")?!1:!!(a0.indexOf(e)>-1||/[A-Z]/u.test(e))}var Hp=M(G(),1);function r0(e){let t=[{},{}];return e?.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function Mn(e,t,a,r){if(typeof t=="function"){let[o,n]=r0(r);t=t(a!==void 0?a:e.custom,o,n)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,n]=r0(r);t=t(a!==void 0?a:e.custom,o,n)}return t}var wi=e=>Array.isArray(e);var o0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),n0=e=>wi(e)?e[e.length-1]||0:e;var ye=e=>!!(e&&e.getVelocity);function Nn(e){let t=ye(e)?e.get():e;return o0(t)?t.toValue():t}function qb({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:a},r,o,n){let s={latestValues:Wb(r,o,n,e),renderState:t()};return a&&(s.onMount=i=>a({props:r,current:i,...s}),s.onUpdate=i=>a(i)),s}var Hu=e=>(t,a)=>{let r=(0,Hp.useContext)(Mr),o=(0,Hp.useContext)(Rr),n=()=>qb(e,t,r,o);return a?n():wn(n)};function Wb(e,t,a,r){let o={},n=r(e,{});for(let f in n)o[f]=Nn(n[f]);let{initial:s,animate:i}=e,l=yo(e),u=Ou(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let d=a?a.initial===!1:!1;d=d||s===!1;let c=d?i:s;if(c&&typeof c!="boolean"&&!Nr(c)){let f=Array.isArray(c)?c:[c];for(let g=0;g<f.length;g++){let v=Mn(e,f[g]);if(v){let{transitionEnd:C,transition:I,...m}=v;for(let h in m){let x=m[h];if(Array.isArray(x)){let S=d?x.length-1:0;x=x[S]}x!==null&&(o[h]=x)}for(let h in C)o[h]=C[h]}}}return o}var Ca=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Tt=new Set(Ca);var s0=e=>t=>typeof t=="string"&&t.startsWith(e),qu=s0("--"),Gb=s0("var(--"),En=e=>Gb(e)?jb.test(e.split("/*")[0].trim()):!1,jb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Wu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var Ze=(e,t,a)=>a>t?t:a<e?e:a;var Sa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Za={...Sa,transform:e=>Ze(0,1,e)},ki={...Sa,default:1};var bi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ia=bi("deg"),ht=bi("%"),H=bi("px"),i0=bi("vh"),l0=bi("vw"),qp={...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)};var u0={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H};var d0={rotate:Ia,rotateX:Ia,rotateY:Ia,rotateZ:Ia,scale:ki,scaleX:ki,scaleY:ki,scaleZ:ki,skew:Ia,skewX:Ia,skewY:Ia,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:Za,originX:qp,originY:qp,originZ:H};var Wp={...Sa,transform:Math.round};var Fn={...u0,...d0,zIndex:Wp,size:H,fillOpacity:Za,strokeOpacity:Za,numOctaves:Wp};var Kb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$b=Ca.length;function c0(e,t,a){let r="",o=!0;for(let n=0;n<$b;n++){let s=Ca[n],i=e[s];if(i===void 0)continue;let l=!0;if(typeof i=="number"?l=i===(s.startsWith("scale")?1:0):l=parseFloat(i)===0,!l||a){let u=Wu(i,Fn[s]);if(!l){o=!1;let d=Kb[s]||s;r+=`${d}(${u}) `}a&&(t[s]=u)}}return r=r.trim(),a?r=a(t,o?"":r):o&&(r="none"),r}function Bn(e,t,a){let{style:r,vars:o,transformOrigin:n}=e,s=!1,i=!1;for(let l in t){let u=t[l];if(Tt.has(l)){s=!0;continue}else if(qu(l)){o[l]=u;continue}else{let d=Wu(u,Fn[l]);l.startsWith("origin")?(i=!0,n[l]=d):r[l]=d}}if(t.transform||(s||a?r.transform=c0(t,e.transform,a):r.transform&&(r.transform="none")),i){let{originX:l="50%",originY:u="50%",originZ:d=0}=n;r.transformOrigin=`${l} ${u} ${d}`}}var Xb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qb={offset:"strokeDashoffset",array:"strokeDasharray"};function f0(e,t,a=1,r=0,o=!0){e.pathLength=1;let n=o?Xb:Qb;e[n.offset]=H.transform(-r);let s=H.transform(t),i=H.transform(a);e[n.array]=`${s} ${i}`}function p0(e,t,a){return typeof e=="string"?e:H.transform(t+a*e)}function m0(e,t,a){let r=p0(t,e.x,e.width),o=p0(a,e.y,e.height);return`${r} ${o}`}function On(e,{attrX:t,attrY:a,attrScale:r,originX:o,originY:n,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...u},d,c){if(Bn(e,u,c),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:g,dimensions:v}=e;f.transform&&(v&&(g.transform=f.transform),delete f.transform),v&&(o!==void 0||n!==void 0||g.transform)&&(g.transformOrigin=m0(v,o!==void 0?o:.5,n!==void 0?n:.5)),t!==void 0&&(f.x=t),a!==void 0&&(f.y=a),r!==void 0&&(f.scale=r),s!==void 0&&f0(f,s,i,l,!1)}var Vn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var Gu=()=>({...Vn(),attrs:{}});var Un=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ju(e,{style:t,vars:a},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(let n in a)e.style.setProperty(n,a[n])}var Ku=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 $u(e,t,a,r){ju(e,t,void 0,r);for(let o in t.attrs)e.setAttribute(Ku.has(o)?o:Tn(o),t.attrs[o])}var _n={};function h0(e){Object.assign(_n,e)}function Xu(e,{layout:t,layoutId:a}){return Tt.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!_n[e]||e==="opacity")}function zn(e,t,a){var r;let{style:o}=e,n={};for(let s in o)(ye(o[s])||t.style&&ye(t.style[s])||Xu(s,e)||((r=a?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(n[s]=o[s]);return n}function Qu(e,t,a){let r=zn(e,t,a);for(let o in e)if(ye(e[o])||ye(t[o])){let n=Ca.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o]}return r}function Yb(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}var g0=["x","y","width","height","cx","cy","r"],x0={useVisualState:Hu({scrapeMotionValuesFromProps:Qu,createRenderState:Gu,onUpdate:({props:e,prevProps:t,current:a,renderState:r,latestValues:o})=>{if(!a)return;let n=!!e.drag;if(!n){for(let i in o)if(Tt.has(i)){n=!0;break}}if(!n)return;let s=!t;if(t)for(let i=0;i<g0.length;i++){let l=g0[i];e[l]!==t[l]&&(s=!0)}s&&Q.read(()=>{Yb(a,r),Q.render(()=>{On(r,o,Un(a.tagName),e.transformTemplate),$u(a,r)})})}})};var y0={useVisualState:Hu({scrapeMotionValuesFromProps:zn,createRenderState:Vn})};var Hn=M(G(),1);var v0=M(G(),1);function Gp(e,t,a){for(let r in t)!ye(t[r])&&!Xu(r,a)&&(e[r]=t[r])}function Zb({transformTemplate:e},t){return(0,v0.useMemo)(()=>{let a=Vn();return Bn(a,t,e),Object.assign({},a.vars,a.style)},[t])}function Jb(e,t){let a=e.style||{},r={};return Gp(r,a,e),Object.assign(r,Zb(e,t)),r}function L0(e,t){let a={},r=Jb(e,t);return e.drag&&e.dragListener!==!1&&(a.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)&&(a.tabIndex=0),a.style=r,a}var C0=M(G(),1);function S0(e,t,a,r){let o=(0,C0.useMemo)(()=>{let n=Gu();return On(n,t,Un(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};Gp(n,e.style,e),o.style={...n,...o.style}}return o}function I0(e=!1){return(a,r,o,{latestValues:n},s)=>{let l=(Dn(a)?S0:L0)(r,n,s,a),u=qv(r,typeof a=="string",e),d=a!==Hn.Fragment?{...u,...l,ref:o}:{},{children:c}=r,f=(0,Hn.useMemo)(()=>ye(c)?c.get():c,[c]);return(0,Hn.createElement)(a,{...d,children:f})}}function w0(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Dn(r)?x0:y0,preloadedFeatures:e,useRender:I0(o),createVisualElement:t,Component:r};return t0(s)}}function jp(e,t){if(!Array.isArray(t))return!1;let a=t.length;if(a!==e.length)return!1;for(let r=0;r<a;r++)if(t[r]!==e[r])return!1;return!0}function Er(e,t,a){let r=e.getProps();return Mn(r,t,a!==void 0?a:r.custom,e)}var Kp=xo(()=>window.ScrollTimeline!==void 0);var Pi=class{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,a){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=a}attachTimeline(t,a){let r=this.animations.map(o=>{if(Kp()&&o.attachTimeline)return o.attachTimeline(t);if(typeof a=="function")return a(o)});return()=>{r.forEach((o,n)=>{o&&o(),this.animations[n].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 a=0;a<this.animations.length;a++)t=Math.max(t,this.animations[a].duration);return t}runAll(t){this.animations.forEach(a=>a[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var Ti=class extends Pi{then(t,a){return Promise.all(this.animations).then(t).catch(a)}};function Fr(e,t){return e?e[t]||e.default||e:void 0}function qn(e){let t=0,a=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=a,r=e.next(t);return t>=2e4?1/0:t}function Br(e){return typeof e=="function"}function Ai(e,t){e.timeline=t,e.onfinish=null}var Wn=e=>Array.isArray(e)&&typeof e[0]=="number";var Xp={linearEasing:void 0};function k0(e,t){let a=xo(e);return()=>{var r;return(r=Xp[t])!==null&&r!==void 0?r:a()}}var Or=k0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ri=(e,t,a=10)=>{let r="",o=Math.max(Math.round(t/a),2);for(let n=0;n<o;n++)r+=e(Ut(0,o-1,n))+", ";return`linear(${r.substring(0,r.length-2)})`};function Zu(e){return!!(typeof e=="function"&&Or()||!e||typeof e=="string"&&(e in Yu||Or())||Wn(e)||Array.isArray(e)&&e.every(Zu))}var Gn=([e,t,a,r])=>`cubic-bezier(${e}, ${t}, ${a}, ${r})`,Yu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gn([0,.65,.55,1]),circOut:Gn([.55,0,1,.45]),backIn:Gn([.31,.01,.66,-.59]),backOut:Gn([.33,1.53,.69,.99])};function jn(e,t){if(e)return typeof e=="function"&&Or()?Ri(e,t):Wn(e)?Gn(e):Array.isArray(e)?e.map(a=>jn(a,t)||Yu.easeOut):Yu[e]}var zt={x:!1,y:!1};function Kn(){return zt.x||zt.y}function Qp(e,t,a){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let n=(r=a?.[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}function Ju(e,t){let a=Qp(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[a,o,()=>r.abort()]}function b0(e){return t=>{t.pointerType==="touch"||Kn()||e(t)}}function Yp(e,t,a={}){let[r,o,n]=Ju(e,a),s=b0(i=>{let{target:l}=i,u=t(i);if(typeof u!="function"||!l)return;let d=b0(c=>{u(c),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(i=>{i.addEventListener("pointerenter",s,o)}),n}var ed=(e,t)=>t?e===t?!0:ed(e,t.parentElement):!1;var vo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var eP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function P0(e){return eP.has(e.tagName)||e.tabIndex!==-1}var Lo=new WeakSet;function T0(e){return t=>{t.key==="Enter"&&e(t)}}function Zp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var A0=(e,t)=>{let a=e.currentTarget;if(!a)return;let r=T0(()=>{if(Lo.has(a))return;Zp(a,"down");let o=T0(()=>{Zp(a,"up")}),n=()=>Zp(a,"cancel");a.addEventListener("keyup",o,t),a.addEventListener("blur",n,t)});a.addEventListener("keydown",r,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),t)};function R0(e){return vo(e)&&!Kn()}function Jp(e,t,a={}){let[r,o,n]=Ju(e,a),s=i=>{let l=i.currentTarget;if(!R0(i)||Lo.has(l))return;Lo.add(l);let u=t(i),d=(g,v)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),!(!R0(g)||!Lo.has(l))&&(Lo.delete(l),typeof u=="function"&&u(g,{success:v}))},c=g=>{d(g,a.useGlobalTarget||ed(l,g.target))},f=g=>{d(g,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",f,o)};return r.forEach(i=>{!P0(i)&&i.getAttribute("tabindex")===null&&(i.tabIndex=0),(a.useGlobalTarget?window:i).addEventListener("pointerdown",s,o),i.addEventListener("focus",u=>A0(u,o),o)}),n}function em(e){return e==="x"||e==="y"?zt[e]?null:(zt[e]=!0,()=>{zt[e]=!1}):zt.x||zt.y?null:(zt.x=zt.y=!0,()=>{zt.x=zt.y=!1})}var td=new Set(["width","height","top","left","right","bottom",...Ca]);var ad;function aP(){ad=void 0}var lt={now:()=>(ad===void 0&<.set(Ee.isProcessing||Pn.useManualTiming?Ee.timestamp:performance.now()),ad),set:e=>{ad=e,queueMicrotask(aP)}};function $n(e,t){e.indexOf(t)===-1&&e.push(t)}function Xn(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var Vr=class{constructor(){this.subscriptions=[]}add(t){return $n(this.subscriptions,t),()=>Xn(this.subscriptions,t)}notify(t,a,r){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,a,r);else for(let n=0;n<o;n++){let s=this.subscriptions[n];s&&s(t,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function rd(e,t){return t?e*(1e3/t):0}var M0=30,rP=e=>!isNaN(parseFloat(e)),N0={current:void 0},tm=class{constructor(t,a={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{let n=lt.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Vr);let r=this.events[t].add(a);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t,a=!0){!a||!this.passiveEffect?this.updateAndNotify(t,a):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return N0.current&&N0.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>M0)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,M0);return rd(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),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 Ja(e,t){return new tm(e,t)}function oP(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Ja(a))}function E0(e,t){let a=Er(e,t),{transitionEnd:r={},transition:o={},...n}=a||{};n={...n,...r};for(let s in n){let i=n0(n[s]);oP(e,s,i)}}function F0(e){return!!(ye(e)&&e.add)}function Di(e,t){let a=e.getValue("willChange");if(F0(a))return a.add(t)}function od(e){return e.props[Uu]}var nd={current:!1};var B0=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,nP=1e-7,sP=12;function iP(e,t,a,r,o){let n,s,i=0;do s=t+(a-t)/2,n=B0(s,r,o)-e,n>0?a=s:t=s;while(Math.abs(n)>nP&&++i<sP);return s}function Ur(e,t,a,r){if(e===t&&a===r)return me;let o=n=>iP(n,0,1,e,a);return n=>n===0||n===1?n:B0(o(n),t,r)}var sd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var id=e=>t=>1-e(1-t);var am=Ur(.33,1.53,.69,.99),Mi=id(am),ld=sd(Mi);var ud=e=>(e*=2)<1?.5*Mi(e):.5*(2-Math.pow(2,-10*(e-1)));var dd=e=>1-Math.sin(Math.acos(e)),cd=id(dd),fd=sd(dd);var pd=e=>/^0[^.\s]+$/u.test(e);function O0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||pd(e):!0}var _r=e=>Math.round(e*1e5)/1e5;var Qn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function V0(e){return e==null}var U0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Yn=(e,t)=>a=>!!(typeof a=="string"&&U0.test(a)&&a.startsWith(e)||t&&!V0(a)&&Object.prototype.hasOwnProperty.call(a,t)),md=(e,t,a)=>r=>{if(typeof r!="string")return r;let[o,n,s,i]=r.match(Qn);return{[e]:parseFloat(o),[t]:parseFloat(n),[a]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var lP=e=>Ze(0,255,e),rm={...Sa,transform:e=>Math.round(lP(e))},wa={test:Yn("rgb","red"),parse:md("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:r=1})=>"rgba("+rm.transform(e)+", "+rm.transform(t)+", "+rm.transform(a)+", "+_r(Za.transform(r))+")"};function uP(e){let t="",a="",r="",o="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,a+=a,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}var Ni={test:Yn("#"),parse:uP,transform:wa.transform};var zr={test:Yn("hsl","hue"),parse:md("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(_r(t))+", "+ht.transform(_r(a))+", "+_r(Za.transform(r))+")"};var Oe={test:e=>wa.test(e)||Ni.test(e)||zr.test(e),parse:e=>wa.test(e)?wa.parse(e):zr.test(e)?zr.parse(e):Ni.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?wa.transform(e):zr.transform(e)};var _0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dP(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Qn))===null||t===void 0?void 0:t.length)||0)+(((a=e.match(_0))===null||a===void 0?void 0:a.length)||0)>0}var H0="number",q0="color",cP="var",fP="var(",z0="${}",pP=/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 Co(e){let t=e.toString(),a=[],r={color:[],number:[],var:[]},o=[],n=0,i=t.replace(pP,l=>(Oe.test(l)?(r.color.push(n),o.push(q0),a.push(Oe.parse(l))):l.startsWith(fP)?(r.var.push(n),o.push(cP),a.push(l)):(r.number.push(n),o.push(H0),a.push(parseFloat(l))),++n,z0)).split(z0);return{values:a,split:i,indexes:r,types:o}}function W0(e){return Co(e).values}function G0(e){let{split:t,types:a}=Co(e),r=t.length;return o=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],o[s]!==void 0){let i=a[s];i===H0?n+=_r(o[s]):i===q0?n+=Oe.transform(o[s]):n+=o[s]}return n}}var mP=e=>typeof e=="number"?0:e;function hP(e){let t=W0(e);return G0(e)(t.map(mP))}var gt={test:dP,parse:W0,createTransformer:G0,getAnimatableNone:hP};var gP=new Set(["brightness","contrast","saturate","opacity"]);function xP(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=a.match(Qn)||[];if(!r)return e;let o=a.replace(r,""),n=gP.has(t)?1:0;return r!==a&&(n*=100),t+"("+n+o+")"}var yP=/\b([a-z-]*)\(.*?\)/gu,Ei={...gt,getAnimatableNone:e=>{let t=e.match(yP);return t?t.map(xP).join(" "):e}};var vP={...Fn,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:Ei,WebkitFilter:Ei},Zn=e=>vP[e];function hd(e,t){let a=Zn(e);return a!==Ei&&(a=gt),a.getAnimatableNone?a.getAnimatableNone(t):void 0}var LP=new Set(["auto","none","0"]);function j0(e,t,a){let r=0,o;for(;r<e.length&&!o;){let n=e[r];typeof n=="string"&&!LP.has(n)&&Co(n).values.length&&(o=e[r]),r++}if(o&&a)for(let n of t)e[n]=hd(a,o)}var om=e=>e===Sa||e===H,K0=(e,t)=>parseFloat(e.split(", ")[t]),$0=(e,t)=>(a,{transform:r})=>{if(r==="none"||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/u);if(o)return K0(o[1],t);{let n=r.match(/^matrix\((.+)\)$/u);return n?K0(n[1],e):0}},CP=new Set(["x","y","z"]),SP=Ca.filter(e=>!CP.has(e));function X0(e){let t=[];return SP.forEach(a=>{let r=e.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}var So={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),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:$0(4,13),y:$0(5,14)};So.translateX=So.x;So.translateY=So.y;var Io=new Set,nm=!1,sm=!1;function Q0(){if(sm){let e=Array.from(Io).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),a=new Map;t.forEach(r=>{let o=X0(r);o.length&&(a.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let o=a.get(r);o&&o.forEach(([n,s])=>{var i;(i=r.getValue(n))===null||i===void 0||i.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}sm=!1,nm=!1,Io.forEach(e=>e.complete()),Io.clear()}function Y0(){Io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sm=!0)})}function Z0(){Y0(),Q0()}var Hr=class{constructor(t,a,r,o,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=r,this.motionValue=o,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Io.add(this),nm||(nm=!0,Q.read(Y0),Q.resolveKeyframes(Q0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:a,element:r,motionValue:o}=this;for(let n=0;n<t.length;n++)if(t[n]===null)if(n===0){let s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&a){let l=r.readValue(a,i);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Io.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Io.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var gd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var IP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wP(e){let t=IP.exec(e);if(!t)return[,];let[,a,r,o]=t;return[`--${a??r}`,o]}var kP=4;function im(e,t,a=1){fa(a<=kP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=wP(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return gd(s)?parseFloat(s):s}return En(o)?im(o,t,a+1):o}var xd=e=>t=>t.test(e);var J0={test:e=>e==="auto",parse:e=>e};var lm=[Sa,H,ht,Ia,l0,i0,J0],um=e=>lm.find(xd(e));var Jn=class extends Hr{constructor(t,a,r,o,n){super(t,a,r,o,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),En(u))){let d=im(u,a.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!td.has(r)||t.length!==2)return;let[o,n]=t,s=um(o),i=um(n);if(s!==i)if(om(s)&&om(i))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:a}=this,r=[];for(let o=0;o<t.length;o++)O0(t[o])&&r.push(o);r.length&&j0(t,r,a)}measureInitialState(){let{element:t,unresolvedKeyframes:a,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=So[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;let o=a[a.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;let{element:a,name:r,unresolvedKeyframes:o}=this;if(!a||!a.current)return;let n=a.getValue(r);n&&n.jump(this.measuredOrigin,!1);let s=o.length-1,i=o[s];o[s]=So[r](a.measureViewportBox(),window.getComputedStyle(a.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{a.getValue(l).set(u)}),this.resolveNoneKeyframes()}};var dm=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(gt.test(e)||e==="0")&&!e.startsWith("url("));function bP(e){let t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function eL(e,t,a,r){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=dm(o,t),i=dm(n,t);return $a(s===i,`You are trying to animate ${t} from "${o}" to "${n}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${n} via the \`style\` property.`),!s||!i?!1:bP(e)||(a==="spring"||Br(a))&&r}var PP=e=>e!==null;function qr(e,{repeat:t,repeatType:a="loop"},r){let o=e.filter(PP),n=t&&a!=="loop"&&t%2===1?0:o.length-1;return!n||r===void 0?o[n]:r}var TP=40,es=class{constructor({autoplay:t=!0,delay:a=0,type:r="keyframes",repeat:o=0,repeatDelay:n=0,repeatType:s="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=lt.now(),this.options={autoplay:t,delay:a,type:r,repeat:o,repeatDelay:n,repeatType:s,...i},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>TP?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Z0(),this._resolved}onKeyframesResolved(t,a){this.resolvedAt=lt.now(),this.hasAttemptedResolve=!0;let{name:r,type:o,velocity:n,delay:s,onComplete:i,onUpdate:l,isGenerator:u}=this.options;if(!u&&!eL(t,r,o,n))if(nd.current||!s){l&&l(qr(t,this.options,a)),i&&i(),this.resolveFinishedPromise();return}else this.options.duration=0;let d=this.initPlayback(t,a);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:a,...d},this.onPostResolved())}onPostResolved(){}then(t,a){return this.currentFinishedPromise.then(t,a)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};var re=(e,t,a)=>e+(t-e)*a;function cm(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function tL({hue:e,saturation:t,lightness:a,alpha:r}){e/=360,t/=100,a/=100;let o=0,n=0,s=0;if(!t)o=n=s=a;else{let i=a<.5?a*(1+t):a+t-a*t,l=2*a-i;o=cm(l,i,e+1/3),n=cm(l,i,e),s=cm(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function ts(e,t){return a=>a>0?t:e}var fm=(e,t,a)=>{let r=e*e,o=a*(t*t-r)+r;return o<0?0:Math.sqrt(o)},AP=[Ni,wa,zr],RP=e=>AP.find(t=>t.test(e));function aL(e){let t=RP(e);if($a(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let a=t.parse(e);return t===zr&&(a=tL(a)),a}var pm=(e,t)=>{let a=aL(e),r=aL(t);if(!a||!r)return ts(e,t);let o={...a};return n=>(o.red=fm(a.red,r.red,n),o.green=fm(a.green,r.green,n),o.blue=fm(a.blue,r.blue,n),o.alpha=re(a.alpha,r.alpha,n),wa.transform(o))};var DP=(e,t)=>a=>t(e(a)),ka=(...e)=>e.reduce(DP);var yd=new Set(["none","hidden"]);function rL(e,t){return yd.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function MP(e,t){return a=>re(e,t,a)}function vd(e){return typeof e=="number"?MP:typeof e=="string"?En(e)?ts:Oe.test(e)?pm:FP:Array.isArray(e)?oL:typeof e=="object"?Oe.test(e)?pm:NP:ts}function oL(e,t){let a=[...e],r=a.length,o=e.map((n,s)=>vd(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)a[s]=o[s](n);return a}}function NP(e,t){let a={...e,...t},r={};for(let o in a)e[o]!==void 0&&t[o]!==void 0&&(r[o]=vd(e[o])(e[o],t[o]));return o=>{for(let n in r)a[n]=r[n](o);return a}}function EP(e,t){var a;let r=[],o={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let s=t.types[n],i=e.indexes[s][o[s]],l=(a=e.values[i])!==null&&a!==void 0?a:0;r[n]=l,o[s]++}return r}var FP=(e,t)=>{let a=gt.createTransformer(t),r=Co(e),o=Co(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?yd.has(e)&&!o.values.length||yd.has(t)&&!r.values.length?rL(e,t):ka(oL(EP(r,o),o.values),a):($a(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ts(e,t))};function Ld(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?re(e,t,a):vd(e)(e,t)}var BP=5;function Cd(e,t,a){let r=Math.max(t-BP,0);return rd(a-e(r),t-r)}var Se={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};var mm=.001;function nL({duration:e=Se.duration,bounce:t=Se.bounce,velocity:a=Se.velocity,mass:r=Se.mass}){let o,n;$a(e<=Ne(Se.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Ze(Se.minDamping,Se.maxDamping,s),e=Ze(Se.minDuration,Se.maxDuration,Ye(e)),s<1?(o=u=>{let d=u*s,c=d*e,f=d-a,g=Sd(u,s),v=Math.exp(-c);return mm-f/g*v},n=u=>{let c=u*s*e,f=c*a+a,g=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-c),C=Sd(Math.pow(u,2),s);return(-o(u)+mm>0?-1:1)*((f-g)*v)/C}):(o=u=>{let d=Math.exp(-u*e),c=(u-a)*e+1;return-mm+d*c},n=u=>{let d=Math.exp(-u*e),c=(a-u)*(e*e);return d*c});let i=5/e,l=VP(o,n,i);if(e=Ne(e),isNaN(l))return{stiffness:Se.stiffness,damping:Se.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var OP=12;function VP(e,t,a){let r=a;for(let o=1;o<OP;o++)r=r-e(r)/t(r);return r}function Sd(e,t){return e*Math.sqrt(1-t*t)}var UP=["duration","bounce"],_P=["stiffness","damping","mass"];function sL(e,t){return t.some(a=>e[a]!==void 0)}function zP(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!sL(e,_P)&&sL(e,UP))if(e.visualDuration){let a=e.visualDuration,r=2*Math.PI/(a*1.2),o=r*r,n=2*Ze(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Se.mass,stiffness:o,damping:n}}else{let a=nL(e);t={...t,...a,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function Id(e=Se.visualDuration,t=Se.bounce){let a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:o}=a,n=a.keyframes[0],s=a.keyframes[a.keyframes.length-1],i={done:!1,value:n},{stiffness:l,damping:u,mass:d,duration:c,velocity:f,isResolvedFromDuration:g}=zP({...a,velocity:-Ye(a.velocity||0)}),v=f||0,C=u/(2*Math.sqrt(l*d)),I=s-n,m=Ye(Math.sqrt(l/d)),h=Math.abs(I)<5;r||(r=h?Se.restSpeed.granular:Se.restSpeed.default),o||(o=h?Se.restDelta.granular:Se.restDelta.default);let x;if(C<1){let k=Sd(m,C);x=T=>{let D=Math.exp(-C*m*T);return s-D*((v+C*m*I)/k*Math.sin(k*T)+I*Math.cos(k*T))}}else if(C===1)x=k=>s-Math.exp(-m*k)*(I+(v+m*I)*k);else{let k=m*Math.sqrt(C*C-1);x=T=>{let D=Math.exp(-C*m*T),A=Math.min(k*T,300);return s-D*((v+C*m*I)*Math.sinh(A)+k*I*Math.cosh(A))/k}}let S={calculatedDuration:g&&c||null,next:k=>{let T=x(k);if(g)i.done=k>=c;else{let D=0;C<1&&(D=k===0?Ne(v):Cd(x,k,T));let A=Math.abs(D)<=r,B=Math.abs(s-T)<=o;i.done=A&&B}return i.value=i.done?s:T,i},toString:()=>{let k=Math.min(qn(S),2e4),T=Ri(D=>S.next(k*D).value,k,30);return k+"ms "+T}};return S}function hm({keyframes:e,velocity:t=0,power:a=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:d}){let c=e[0],f={done:!1,value:c},g=A=>i!==void 0&&A<i||l!==void 0&&A>l,v=A=>i===void 0?l:l===void 0||Math.abs(i-A)<Math.abs(l-A)?i:l,C=a*t,I=c+C,m=s===void 0?I:s(I);m!==I&&(C=m-c);let h=A=>-C*Math.exp(-A/r),x=A=>m+h(A),S=A=>{let B=h(A),V=x(A);f.done=Math.abs(B)<=u,f.value=f.done?m:V},k,T,D=A=>{g(f.value)&&(k=A,T=Id({keyframes:[f.value,v(f.value)],velocity:Cd(x,A,f.value),damping:o,stiffness:n,restDelta:u,restSpeed:d}))};return D(0),{calculatedDuration:null,next:A=>{let B=!1;return!T&&k===void 0&&(B=!0,S(A),D(A)),k!==void 0&&A>=k?T.next(A-k):(!B&&S(A),f)}}}var iL=Ur(.42,0,1,1),lL=Ur(0,0,.58,1),wd=Ur(.42,0,.58,1);var uL=e=>Array.isArray(e)&&typeof e[0]!="number";var dL={linear:me,easeIn:iL,easeInOut:wd,easeOut:lL,circIn:dd,circInOut:fd,circOut:cd,backIn:Mi,backInOut:ld,backOut:am,anticipate:ud},gm=e=>{if(Wn(e)){fa(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,a,r,o]=e;return Ur(t,a,r,o)}else if(typeof e=="string")return fa(dL[e]!==void 0,`Invalid easing type '${e}'`),dL[e];return e};function HP(e,t,a){let r=[],o=a||Ld,n=e.length-1;for(let s=0;s<n;s++){let i=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||me:t;i=ka(l,i)}r.push(i)}return r}function cL(e,t,{clamp:a=!0,ease:r,mixer:o}={}){let n=e.length;if(fa(n===t.length,"Both input and output ranges must be the same length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=HP(t,r,o),l=i.length,u=d=>{if(s&&d<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(d<e[c+1]);c++);let f=Ut(e[c],e[c+1],d);return i[c](f)};return a?d=>u(Ze(e[0],e[n-1],d)):u}function fL(e,t){let a=e[e.length-1];for(let r=1;r<=t;r++){let o=Ut(0,t,r);e.push(re(a,1,o))}}function pL(e){let t=[0];return fL(t,e.length-1),t}function mL(e,t){return e.map(a=>a*t)}function qP(e,t){return e.map(()=>t||wd).splice(0,e.length-1)}function Fi({duration:e=300,keyframes:t,times:a,ease:r="easeInOut"}){let o=uL(r)?r.map(gm):gm(r),n={done:!1,value:t[0]},s=mL(a&&a.length===t.length?a:pL(t),e),i=cL(s,t,{ease:Array.isArray(o)?o:qP(t,o)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var hL=e=>{let t=({timestamp:a})=>e(a);return{start:()=>Q.update(t,!0),stop:()=>_t(t),now:()=>Ee.isProcessing?Ee.timestamp:lt.now()}};var WP={decay:hm,inertia:hm,tween:Fi,keyframes:Fi,spring:Id},GP=e=>e/100,wo=class extends es{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();let{onStop:l}=this.options;l&&l()};let{name:a,motionValue:r,element:o,keyframes:n}=this.options,s=o?.KeyframeResolver||Hr,i=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(n,i,a,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:a="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:n,velocity:s=0}=this.options,i=Br(a)?a:WP[a]||Fi,l,u;i!==Fi&&typeof t[0]!="number"&&(l=ka(GP,Ld(t[0],t[1])),t=[0,100]);let d=i({...this.options,keyframes:t});n==="mirror"&&(u=i({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=qn(d));let{calculatedDuration:c}=d,f=c+o,g=f*(r+1)-o;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:c,resolvedDuration:f,totalDuration:g}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,a=!1){let{resolved:r}=this;if(!r){let{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}let{finalKeyframe:o,generator:n,mirroredGenerator:s,mapPercentToKeyframes:i,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:c}=r;if(this.startTime===null)return n.next(0);let{delay:f,repeat:g,repeatType:v,repeatDelay:C,onUpdate:I}=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)),a?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let m=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let x=this.currentTime,S=n;if(g){let A=Math.min(this.currentTime,d)/c,B=Math.floor(A),V=A%1;!V&&A>=1&&(V=1),V===1&&B--,B=Math.min(B,g+1),B%2&&(v==="reverse"?(V=1-V,C&&(V-=C/c)):v==="mirror"&&(S=s)),x=Ze(0,1,V)*c}let k=h?{done:!1,value:l[0]}:S.next(x);i&&(k.value=i(k.value));let{done:T}=k;!h&&u!==null&&(T=this.speed>=0?this.currentTime>=d:this.currentTime<=0);let D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return D&&o!==void 0&&(k.value=qr(l,this.options,o)),I&&I(k.value),D&&this.finish(),k}get duration(){let{resolved:t}=this;return t?Ye(t.calculatedDuration):0}get time(){return Ye(this.currentTime)}set time(t){t=Ne(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){let a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=Ye(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=hL,onPlay:a,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),a&&a();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):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";let{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)}};var gL=new Set(["opacity","clipPath","filter","transform"]);function xL(e,t,a,{delay:r=0,duration:o=300,repeat:n=0,repeatType:s="loop",ease:i="easeInOut",times:l}={}){let u={[t]:a};l&&(u.offset=l);let d=jn(i,o);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"})}var yL=xo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var kd=10,jP=2e4;function KP(e){return Br(e.type)||e.type==="spring"||!Zu(e.ease)}function $P(e,t){let a=new wo({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},o=[],n=0;for(;!r.done&&n<jP;)r=a.sample(n),o.push(r.value),n+=kd;return{times:void 0,keyframes:o,duration:n-kd,ease:"linear"}}var vL={anticipate:ud,backInOut:ld,circInOut:fd};function XP(e){return e in vL}var Bi=class extends es{constructor(t){super(t);let{name:a,motionValue:r,element:o,keyframes:n}=this.options;this.resolver=new Jn(n,(s,i)=>this.onKeyframesResolved(s,i),a,r,o),this.resolver.scheduleResolve()}initPlayback(t,a){let{duration:r=300,times:o,ease:n,type:s,motionValue:i,name:l,startTime:u}=this.options;if(!i.owner||!i.owner.current)return!1;if(typeof n=="string"&&Or()&&XP(n)&&(n=vL[n]),KP(this.options)){let{onComplete:c,onUpdate:f,motionValue:g,element:v,...C}=this.options,I=$P(t,C);t=I.keyframes,t.length===1&&(t[1]=t[0]),r=I.duration,o=I.times,n=I.ease,s="keyframes"}let d=xL(i.owner.current,l,t,{...this.options,duration:r,times:o,ease:n});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Ai(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:c}=this.options;i.set(qr(t,this.options,a)),c&&c(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:s,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:a}=t;return Ye(a)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:a}=t;return Ye(a.currentTime||0)}set time(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.currentTime=Ne(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:a}=t;return a.playbackRate}set speed(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:a}=t;return a.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:a}=t;return a.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:a}=this;if(!a)return me;let{animation:r}=a;Ai(r,t)}return me}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:a}=t;a.playState==="finished"&&this.updateFinishedPromise(),a.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:a}=t;a.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:a,keyframes:r,duration:o,type:n,ease:s,times:i}=t;if(a.playState==="idle"||a.playState==="finished")return;if(this.time){let{motionValue:u,onUpdate:d,onComplete:c,element:f,...g}=this.options,v=new wo({...g,keyframes:r,duration:o,type:n,ease:s,times:i,isGenerator:!0}),C=Ne(this.time);u.setWithVelocity(v.sample(C-kd).value,v.sample(C).value,kd)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:a,name:r,repeatDelay:o,repeatType:n,damping:s,type:i}=t;if(!a||!a.owner||!(a.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=a.owner.getProps();return yL()&&r&&gL.has(r)&&!l&&!u&&!o&&n!=="mirror"&&s!==0&&i!=="inertia"}};var QP={type:"spring",stiffness:500,damping:25,restSpeed:10},YP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZP={type:"keyframes",duration:.8},JP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LL=(e,{keyframes:t})=>t.length>2?ZP:Tt.has(e)?e.startsWith("scale")?YP(t[1]):QP:JP;function CL({when:e,delay:t,delayChildren:a,staggerChildren:r,staggerDirection:o,repeat:n,repeatType:s,repeatDelay:i,from:l,elapsed:u,...d}){return!!Object.keys(d).length}var as=(e,t,a,r={},o,n)=>s=>{let i=Fr(r,e)||{},l=i.delay||r.delay||0,{elapsed:u=0}=r;u=u-Ne(l);let d={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:n?void 0:o};CL(i)||(d={...d,...LL(e,d)}),d.duration&&(d.duration=Ne(d.duration)),d.repeatDelay&&(d.repeatDelay=Ne(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let c=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(c=!0)),(nd.current||Pn.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!n&&t.get()!==void 0){let f=qr(d.keyframes,i);if(f!==void 0)return Q.update(()=>{d.onUpdate(f),d.onComplete()}),new Ti([])}return!n&&Bi.supports(d)?new Bi(d):new wo(d)};function e1({protectedKeys:e,needsAnimating:t},a){let r=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function bd(e,t,{delay:a=0,transitionOverride:r,type:o}={}){var n;let{transition:s=e.getDefaultTransition(),transitionEnd:i,...l}=t;r&&(s=r);let u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(let c in l){let f=e.getValue(c,(n=e.latestValues[c])!==null&&n!==void 0?n:null),g=l[c];if(g===void 0||d&&e1(d,c))continue;let v={delay:a,...Fr(s||{},c)},C=!1;if(window.MotionHandoffAnimation){let m=od(e);if(m){let h=window.MotionHandoffAnimation(m,c,Q);h!==null&&(v.startTime=h,C=!0)}}Di(e,c),f.start(as(c,f,g,e.shouldReduceMotion&&td.has(c)?{type:!1}:v,e,C));let I=f.animation;I&&u.push(I)}return i&&Promise.all(u).then(()=>{Q.update(()=>{i&&E0(e,i)})}),u}function Pd(e,t,a={}){var r;let o=Er(e,t,a.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(n=a.transitionOverride);let s=o?()=>Promise.all(bd(e,o,a)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:d=0,staggerChildren:c,staggerDirection:f}=n;return t1(e,t,d+u,c,f,a)}:()=>Promise.resolve(),{when:l}=n;if(l){let[u,d]=l==="beforeChildren"?[s,i]:[i,s];return u().then(()=>d())}else return Promise.all([s(),i(a.delay)])}function t1(e,t,a=0,r=0,o=1,n){let s=[],i=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>i-u*r;return Array.from(e.variantChildren).sort(a1).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(Pd(u,t,{...n,delay:a+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function a1(e,t){return e.sortNodePosition(t)}function SL(e,t,a={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let o=t.map(n=>Pd(e,n,a));r=Promise.all(o)}else if(typeof t=="string")r=Pd(e,t,a);else{let o=typeof t=="function"?Er(e,t,a.custom):t;r=Promise.all(bd(e,o,a))}return r.then(()=>{e.notify("AnimationComplete",t)})}var r1=Ii.length;function xm(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?xm(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;a<r1;a++){let r=Ii[a],o=e.props[r];(Qa(o)||o===!1)&&(t[r]=o)}return t}var o1=[...Bu].reverse(),n1=Bu.length;function s1(e){return t=>Promise.all(t.map(({animation:a,options:r})=>SL(e,a,r)))}function wL(e){let t=s1(e),a=IL(),r=!0,o=l=>(u,d)=>{var c;let f=Er(e,d,l==="exit"?(c=e.presenceContext)===null||c===void 0?void 0:c.custom:void 0);if(f){let{transition:g,transitionEnd:v,...C}=f;u={...u,...C,...v}}return u};function n(l){t=l(e)}function s(l){let{props:u}=e,d=xm(e.parent)||{},c=[],f=new Set,g={},v=1/0;for(let I=0;I<n1;I++){let m=o1[I],h=a[m],x=u[m]!==void 0?u[m]:d[m],S=Qa(x),k=m===l?h.isActive:null;k===!1&&(v=I);let T=x===d[m]&&x!==u[m]&&S;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),h.protectedKeys={...g},!h.isActive&&k===null||!x&&!h.prevProp||Nr(x)||typeof x=="boolean")continue;let D=i1(h.prevProp,x),A=D||m===l&&h.isActive&&!T&&S||I>v&&S,B=!1,V=Array.isArray(x)?x:[x],de=V.reduce(o(m),{});k===!1&&(de={});let{prevResolvedValues:se={}}=h,jr={...se,...de},Z=De=>{A=!0,f.has(De)&&(B=!0,f.delete(De)),h.needsAnimating[De]=!0;let Ve=e.getValue(De);Ve&&(Ve.liveStyle=!1)};for(let De in jr){let Ve=de[De],xt=se[De];if(g.hasOwnProperty(De))continue;let Wt=!1;wi(Ve)&&wi(xt)?Wt=!jp(Ve,xt):Wt=Ve!==xt,Wt?Ve!=null?Z(De):f.add(De):Ve!==void 0&&f.has(De)?Z(De):h.protectedKeys[De]=!0}h.prevProp=x,h.prevResolvedValues=de,h.isActive&&(g={...g,...de}),r&&e.blockInitialAnimation&&(A=!1),A&&(!(T&&D)||B)&&c.push(...V.map(De=>({animation:De,options:{type:m}})))}if(f.size){let I={};f.forEach(m=>{let h=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),I[m]=h??null}),c.push({animation:I})}let C=!!c.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(c):Promise.resolve()}function i(l,u){var d;if(a[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),a[l].isActive=u;let c=s(l);for(let f in a)a[f].protectedKeys={};return c}return{animateChanges:s,setActive:i,setAnimateFunction:n,getState:()=>a,reset:()=>{a=IL(),r=!0}}}function i1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jp(t,e):!1}function ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function IL(){return{animate:ko(!0),whileInView:ko(),whileHover:ko(),whileTap:ko(),whileDrag:ko(),whileFocus:ko(),exit:ko()}}var Ke=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Td=class extends Ke{constructor(t){super(t),t.animationState||(t.animationState=wL(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Nr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};var l1=0,Ad=class extends Ke{constructor(){super(...arguments),this.id=l1++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let o=this.node.animationState.setActive("exit",!t);a&&!t&&o.then(()=>a(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};var kL={animation:{Feature:Td},exit:{Feature:Ad}};function er(e,t,a,r={passive:!0}){return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a)}function tr(e){return{point:{x:e.pageX,y:e.pageY}}}var bL=e=>t=>vo(t)&&e(t,tr(t));function Wr(e,t,a,r){return er(e,t,bL(a),r)}var PL=(e,t)=>Math.abs(e-t);function TL(e,t){let a=PL(e.x,t.x),r=PL(e.y,t.y);return Math.sqrt(a**2+r**2)}var rs=class{constructor(t,a,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=vm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=TL(c.offset,{x:0,y:0})>=3;if(!f&&!g)return;let{point:v}=c,{timestamp:C}=Ee;this.history.push({...v,timestamp:C});let{onStart:I,onMove:m}=this.handlers;f||(I&&I(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=ym(f,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{this.end();let{onEnd:g,onSessionEnd:v,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let I=vm(c.type==="pointercancel"?this.lastMoveEventInfo:ym(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(c,I),v&&v(c,I)},!vo(t))return;this.dragSnapToOrigin=n,this.handlers=a,this.transformPagePoint=r,this.contextWindow=o||window;let s=tr(t),i=ym(s,this.transformPagePoint),{point:l}=i,{timestamp:u}=Ee;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=a;d&&d(t,vm(i,this.history)),this.removeListeners=ka(Wr(this.contextWindow,"pointermove",this.handlePointerMove),Wr(this.contextWindow,"pointerup",this.handlePointerUp),Wr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_t(this.updatePoint)}};function ym(e,t){return t?{point:t(e.point)}:e}function AL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vm({point:e},t){return{point:e,delta:AL(e,RL(t)),offset:AL(e,u1(t)),velocity:d1(t,.1)}}function u1(e){return e[0]}function RL(e){return e[e.length-1]}function d1(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null,o=RL(e);for(;a>=0&&(r=e[a],!(o.timestamp-r.timestamp>Ne(t)));)a--;if(!r)return{x:0,y:0};let n=Ye(o.timestamp-r.timestamp);if(n===0)return{x:0,y:0};let s={x:(o.x-r.x)/n,y:(o.y-r.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}var EL=1e-4,c1=1-EL,f1=1+EL,FL=.01,p1=0-FL,m1=0+FL;function Je(e){return e.max-e.min}function BL(e,t,a){return Math.abs(e-t)<=a}function DL(e,t,a,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=Je(a)/Je(t),e.translate=re(a.min,a.max,e.origin)-e.originPoint,(e.scale>=c1&&e.scale<=f1||isNaN(e.scale))&&(e.scale=1),(e.translate>=p1&&e.translate<=m1||isNaN(e.translate))&&(e.translate=0)}function os(e,t,a,r){DL(e.x,t.x,a.x,r?r.originX:void 0),DL(e.y,t.y,a.y,r?r.originY:void 0)}function ML(e,t,a){e.min=a.min+t.min,e.max=e.min+Je(t)}function OL(e,t,a){ML(e.x,t.x,a.x),ML(e.y,t.y,a.y)}function NL(e,t,a){e.min=t.min-a.min,e.max=e.min+Je(t)}function ns(e,t,a){NL(e.x,t.x,a.x),NL(e.y,t.y,a.y)}function HL(e,{min:t,max:a},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):a!==void 0&&e>a&&(e=r?re(a,e,r.max):Math.min(e,a)),e}function VL(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function qL(e,{top:t,left:a,bottom:r,right:o}){return{x:VL(e.x,a,o),y:VL(e.y,t,r)}}function UL(e,t){let a=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,r]=[r,a]),{min:a,max:r}}function WL(e,t){return{x:UL(e.x,t.x),y:UL(e.y,t.y)}}function GL(e,t){let a=.5,r=Je(e),o=Je(t);return o>r?a=Ut(t.min,t.max-r,e.min):r>o&&(a=Ut(e.min,e.max-o,t.min)),Ze(0,1,a)}function jL(e,t){let a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}var Rd=.35;function KL(e=Rd){return e===!1?e=0:e===!0&&(e=Rd),{x:_L(e,"left","right"),y:_L(e,"top","bottom")}}function _L(e,t,a){return{min:zL(e,t),max:zL(e,a)}}function zL(e,t){return typeof e=="number"?e:e[t]||0}var $L=()=>({translate:0,scale:1,origin:0,originPoint:0}),bo=()=>({x:$L(),y:$L()}),XL=()=>({min:0,max:0}),Ie=()=>({x:XL(),y:XL()});function At(e){return[e("x"),e("y")]}function Dd({top:e,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:e,max:r}}}function QL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YL(e,t){if(!t)return e;let a=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function Lm(e){return e===void 0||e===1}function Md({scale:e,scaleX:t,scaleY:a}){return!Lm(e)||!Lm(t)||!Lm(a)}function ar(e){return Md(e)||Cm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Cm(e){return ZL(e.x)||ZL(e.y)}function ZL(e){return e&&e!=="0%"}function Oi(e,t,a){let r=e-a,o=t*r;return a+o}function JL(e,t,a,r,o){return o!==void 0&&(e=Oi(e,o,r)),Oi(e,a,r)+t}function Sm(e,t=0,a=1,r,o){e.min=JL(e.min,t,a,r,o),e.max=JL(e.max,t,a,r,o)}function Im(e,{x:t,y:a}){Sm(e.x,t.translate,t.scale,t.originPoint),Sm(e.y,a.translate,a.scale,a.originPoint)}var eC=.999999999999,tC=1.0000000000001;function rC(e,t,a,r=!1){let o=a.length;if(!o)return;t.x=t.y=1;let n,s;for(let i=0;i<o;i++){n=a[i],s=n.projectionDelta;let{visualElement:l}=n.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&Po(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Im(e,s)),r&&ar(n.latestValues)&&Po(e,n.latestValues))}t.x<tC&&t.x>eC&&(t.x=1),t.y<tC&&t.y>eC&&(t.y=1)}function Gr(e,t){e.min=e.min+t,e.max=e.max+t}function aC(e,t,a,r,o=.5){let n=re(e.min,e.max,o);Sm(e,t,a,n,r)}function Po(e,t){aC(e.x,t.x,t.scaleX,t.scale,t.originX),aC(e.y,t.y,t.scaleY,t.scale,t.originY)}function wm(e,t){return Dd(YL(e.getBoundingClientRect(),t))}function oC(e,t,a){let r=wm(e,a),{scroll:o}=t;return o&&(Gr(r.x,o.offset.x),Gr(r.y,o.offset.y)),r}var Nd=({current:e})=>e?e.ownerDocument.defaultView:null;var h1=new WeakMap,Fd=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ie(),this.visualElement=t}start(t,{snapToCursor:a=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let o=d=>{let{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(tr(d).point)},n=(d,c)=>{let{drag:f,dragPropagation:g,onDragStart:v}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=em(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),At(I=>{let m=this.getAxisMotionValue(I).get()||0;if(ht.test(m)){let{projection:h}=this.visualElement;if(h&&h.layout){let x=h.layout.layoutBox[I];x&&(m=Je(x)*(parseFloat(m)/100))}}this.originPoint[I]=m}),v&&Q.postRender(()=>v(d,c)),Di(this.visualElement,"transform");let{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},s=(d,c)=>{let{dragPropagation:f,dragDirectionLock:g,onDirectionLock:v,onDrag:C}=this.getProps();if(!f&&!this.openDragLock)return;let{offset:I}=c;if(g&&this.currentDirection===null){this.currentDirection=g1(I),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",c.point,I),this.updateAxis("y",c.point,I),this.visualElement.render(),C&&C(d,c)},i=(d,c)=>this.stop(d,c),l=()=>At(d=>{var c;return this.getAnimationState(d)==="paused"&&((c=this.getAxisMotionValue(d).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new rs(t,{onSessionStart:o,onStart:n,onMove:s,onSessionEnd:i,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Nd(this.visualElement)})}stop(t,a){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:o}=a;this.startAnimation(o);let{onDragEnd:n}=this.getProps();n&&Q.postRender(()=>n(t,a))}cancel(){this.isDragging=!1;let{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,r){let{drag:o}=this.getProps();if(!r||!Ed(t,o,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=HL(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:a,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,n=this.constraints;a&&Ya(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=qL(o.layoutBox,a):this.constraints=!1,this.elastic=KL(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&At(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=jL(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Ya(t))return!1;let r=t.current;fa(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let n=oC(r,o.root,this.visualElement.getTransformPagePoint()),s=WL(o.layout.layoutBox,n);if(a){let i=a(QL(s));this.hasMutatedConstraints=!!i,i&&(s=Dd(i))}return s}startAnimation(t){let{drag:a,dragMomentum:r,dragElastic:o,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=At(d=>{if(!Ed(d,a,this.currentDirection))return;let c=l&&l[d]||{};s&&(c={min:0,max:0});let f=o?200:1e6,g=o?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...n,...c};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(i)}startAxisValueAnimation(t,a){let r=this.getAxisMotionValue(t);return Di(this.visualElement,t),r.start(as(t,r,0,a,this.visualElement,!1))}stopAnimation(){At(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){At(t=>{var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.pause()})}getAnimationState(t){var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.state}getAxisMotionValue(t){let a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[a];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){At(a=>{let{drag:r}=this.getProps();if(!Ed(a,r,this.currentDirection))return;let{projection:o}=this.visualElement,n=this.getAxisMotionValue(a);if(o&&o.layout){let{min:s,max:i}=o.layout.layoutBox[a];n.set(t[a]-re(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!Ya(a)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};At(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let l=i.get();o[s]=GL({min:l,max:l},this.constraints[s])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),At(s=>{if(!Ed(s,t,null))return;let i=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];i.set(re(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;h1.set(this.visualElement,this);let t=this.visualElement.current,a=Wr(t,"pointerdown",l=>{let{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();Ya(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,n=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Q.read(r);let s=er(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(At(d=>{let c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=l[d].translate,c.set(c.get()+l[d].translate))}),this.visualElement.render())}));return()=>{s(),a(),n(),i&&i()}}getProps(){let t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:n=!1,dragElastic:s=Rd,dragMomentum:i=!0}=t;return{...t,drag:a,dragDirectionLock:r,dragPropagation:o,dragConstraints:n,dragElastic:s,dragMomentum:i}}};function Ed(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function g1(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var Bd=class extends Ke{constructor(t){super(t),this.removeGroupControls=me,this.removeListeners=me,this.controls=new Fd(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||me}unmount(){this.removeGroupControls(),this.removeListeners()}};var nC=e=>(t,a)=>{e&&Q.postRender(()=>e(t,a))},Od=class extends Ke{constructor(){super(...arguments),this.removePointerDownListener=me}onPointerDown(t){this.session=new rs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nd(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:nC(t),onStart:nC(a),onMove:r,onEnd:(n,s)=>{delete this.session,o&&Q.postRender(()=>o(n,s))}}}mount(){this.removePointerDownListener=Wr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var lC=M(le(),1),Vi=M(G(),1);var ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var is={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;let a=sC(e,t.target.x),r=sC(e,t.target.y);return`${a}% ${r}%`}};var iC={correct:(e,{treeScale:t,projectionDelta:a})=>{let r=e,o=gt.parse(e);if(o.length>5)return r;let n=gt.createTransformer(e),s=typeof o[0]!="number"?1:0,i=a.x.scale*t.x,l=a.y.scale*t.y;o[0+s]/=i,o[1+s]/=l;let u=re(i,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),n(o)}};var km=class extends Vi.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:o}=this.props,{projection:n}=t;h0(x1),n&&(a.group&&a.group.add(n),r&&r.register&&o&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:a,visualElement:r,drag:o,isPresent:n}=this.props,s=r.projection;return s&&(s.isPresent=n,o||t.layoutDependency!==a||a===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||Q.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),An.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Vd(e){let[t,a]=Tu(),r=(0,Vi.useContext)(In);return(0,lC.jsx)(km,{...e,layoutGroup:r,switchLayoutGroup:(0,Vi.useContext)(_u),isPresent:t,safeToRemove:a})}var x1={borderRadius:{...is,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:is,borderTopRightRadius:is,borderBottomLeftRadius:is,borderBottomRightRadius:is,boxShadow:iC};function uC(e,t,a){let r=ye(e)?e:Ja(e);return r.start(as("",r,t,a)),r.animation}function dC(e){return e instanceof SVGElement&&e.tagName!=="svg"}var cC=(e,t)=>e.depth-t.depth;var Ud=class{constructor(){this.children=[],this.isDirty=!1}add(t){$n(this.children,t),this.isDirty=!0}remove(t){Xn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cC),this.isDirty=!1,this.children.forEach(t)}};function fC(e,t){let a=lt.now(),r=({timestamp:o})=>{let n=o-a;n>=t&&(_t(r),e(n-t))};return Q.read(r,!0),()=>_t(r)}var gC=["TopLeft","TopRight","BottomLeft","BottomRight"],y1=gC.length,pC=e=>typeof e=="string"?parseFloat(e):e,mC=e=>typeof e=="number"||H.test(e);function xC(e,t,a,r,o,n){o?(e.opacity=re(0,a.opacity!==void 0?a.opacity:1,v1(r)),e.opacityExit=re(t.opacity!==void 0?t.opacity:1,0,L1(r))):n&&(e.opacity=re(t.opacity!==void 0?t.opacity:1,a.opacity!==void 0?a.opacity:1,r));for(let s=0;s<y1;s++){let i=`border${gC[s]}Radius`,l=hC(t,i),u=hC(a,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||mC(l)===mC(u)?(e[i]=Math.max(re(pC(l),pC(u),r),0),(ht.test(u)||ht.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||a.rotate)&&(e.rotate=re(t.rotate||0,a.rotate||0,r))}function hC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var v1=yC(0,.5,cd),L1=yC(.5,.95,me);function yC(e,t,a){return r=>r<e?0:r>t?1:a(Ut(e,t,r))}function vC(e,t){e.min=t.min,e.max=t.max}function Ht(e,t){vC(e.x,t.x),vC(e.y,t.y)}function bm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function LC(e,t,a,r,o){return e-=t,e=Oi(e,1/a,r),o!==void 0&&(e=Oi(e,1/o,r)),e}function C1(e,t=0,a=1,r=.5,o,n=e,s=e){if(ht.test(t)&&(t=parseFloat(t),t=re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=re(n.min,n.max,r);e===n&&(i-=t),e.min=LC(e.min,t,a,i,o),e.max=LC(e.max,t,a,i,o)}function CC(e,t,[a,r,o],n,s){C1(e,t[a],t[r],t[o],t.scale,n,s)}var S1=["x","scaleX","originX"],I1=["y","scaleY","originY"];function Pm(e,t,a,r){CC(e.x,t,S1,a?a.x:void 0,r?r.x:void 0),CC(e.y,t,I1,a?a.y:void 0,r?r.y:void 0)}function SC(e){return e.translate===0&&e.scale===1}function Tm(e){return SC(e.x)&&SC(e.y)}function IC(e,t){return e.min===t.min&&e.max===t.max}function kC(e,t){return IC(e.x,t.x)&&IC(e.y,t.y)}function wC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Am(e,t){return wC(e.x,t.x)&&wC(e.y,t.y)}function Rm(e){return Je(e.x)/Je(e.y)}function Dm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var _d=class{constructor(){this.members=[]}add(t){$n(this.members,t),t.scheduleRender()}remove(t){if(Xn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){let a=this.members.findIndex(o=>t===o);if(a===0)return!1;let r;for(let o=a;o>=0;o--){let n=this.members[o];if(n.isPresent!==!1){r=n;break}}return r?(this.promote(r),!0):!1}promote(t,a){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,a&&(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);let{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:a,resumingFrom:r}=t;a.onExitComplete&&a.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 bC(e,t,a){let r="",o=e.x.translate/t.x,n=e.y.translate/t.y,s=a?.z||0;if((o||n||s)&&(r=`translate3d(${o}px, ${n}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),a){let{transformPerspective:u,rotate:d,rotateX:c,rotateY:f,skewX:g,skewY:v}=a;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}let i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(r+=`scale(${i}, ${l})`),r||"none"}var To={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ui=typeof window<"u"&&window.MotionDebug!==void 0,Mm=["","X","Y","Z"],w1={visibility:"hidden"},PC=1e3,k1=0;function Nm(e,t,a,r){let{latestValues:o}=t;o[e]&&(a[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function FC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=od(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:o,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Q,!(o||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&FC(r)}function zd({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},i=t?.()){this.id=k1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ui&&(To.totalNodes=To.resolvedTargetDeltas=To.recalculatedProjection=0),this.nodes.forEach(T1),this.nodes.forEach(N1),this.nodes.forEach(E1),this.nodes.forEach(A1),Ui&&window.MotionDebug.record(To)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ud)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Vr),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=dC(s),this.instance=s;let{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(u||l)&&(this.isLayoutDirty=!0),e){let c,f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=fC(f,250),ss.hasAnimatedSinceResize&&(ss.hasAnimatedSinceResize=!1,this.nodes.forEach(AC))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let C=this.options.transition||d.getDefaultTransition()||U1,{onLayoutAnimationStart:I,onLayoutAnimationComplete:m}=d.getProps(),h=!this.targetLayout||!Am(this.targetLayout,v)||g,x=!f&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,x);let S={...Fr(C,"layout"),onPlay:I,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||AC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_t(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(F1),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&FC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let c=this.path[d];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}let{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(TC);return}this.isUpdating||this.nodes.forEach(D1),this.isUpdating=!1,this.nodes.forEach(M1),this.nodes.forEach(b1),this.nodes.forEach(P1),this.clearAllSnapshots();let i=lt.now();Ee.delta=Ze(0,1e3/60,i-Ee.timestamp),Ee.timestamp=i,Ee.isProcessing=!0,Eu.update.process(Ee),Eu.preRender.process(Ee),Eu.render.process(Ee),Ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,An.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(R1),this.sharedNodes.forEach(B1)}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();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i){let l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!Tm(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(i||ar(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),_1(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:i}=this.options;if(!i)return Ie();let l=i.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(z1))){let{scroll:d}=this.root;d&&(Gr(l.x,d.offset.x),Gr(l.y,d.offset.y))}return l}removeElementScroll(s){var i;let l=Ie();if(Ht(l,s),!((i=this.scroll)===null||i===void 0)&&i.wasRoot)return l;for(let u=0;u<this.path.length;u++){let d=this.path[u],{scroll:c,options:f}=d;d!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Ht(l,s),Gr(l.x,c.offset.x),Gr(l.y,c.offset.y))}return l}applyTransform(s,i=!1){let l=Ie();Ht(l,s);for(let u=0;u<this.path.length;u++){let d=this.path[u];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Po(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ar(d.latestValues)&&Po(l,d.latestValues)}return ar(this.latestValues)&&Po(l,this.latestValues),l}removeTransform(s){let i=Ie();Ht(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!ar(u.latestValues))continue;Md(u.latestValues)&&u.updateSnapshot();let d=Ie(),c=u.measurePageBox();Ht(d,c),Pm(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ar(this.latestValues)&&Pm(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var i;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:f}=this.options;if(!(!this.layout||!(c||f))){if(this.resolvedRelativeTargetAt=Ee.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),ns(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ie(),this.targetWithTransforms=Ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),OL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ht(this.target,this.layout.layoutBox),Im(this.target,this.targetDelta)):Ht(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),ns(this.relativeTargetOrigin,this.target,g.target),Ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ui&&To.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Md(this.parent.latestValues)||Cm(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 s;let i=this.getLead(),l=!!this.resumingFrom||this!==i,u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ee.timestamp&&(u=!1),u)return;let{layout:d,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||c))return;Ht(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;rC(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Ie());let{target:v}=i;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bm(this.prevProjectionDelta.x,this.projectionDelta.x),bm(this.prevProjectionDelta.y,this.projectionDelta.y)),os(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!Dm(this.projectionDelta.x,this.prevProjectionDelta.x)||!Dm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Ui&&To.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var i;if((i=this.options.visualElement)===null||i===void 0||i.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bo(),this.projectionDelta=bo(),this.projectionDeltaWithTransform=bo()}setAnimationOrigin(s,i=!1){let l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=bo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let f=Ie(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,C=g!==v,I=this.getStack(),m=!I||I.members.length<=1,h=!!(C&&!m&&this.options.crossfade===!0&&!this.path.some(V1));this.animationProgress=0;let x;this.mixTargetDelta=S=>{let k=S/1e3;RC(c.x,s.x,k),RC(c.y,s.y,k),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ns(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),O1(this.relativeTarget,this.relativeTargetOrigin,f,k),x&&kC(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ie()),Ht(x,this.relativeTarget)),C&&(this.animationValues=d,xC(d,u,this.latestValues,k,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{ss.hasAnimatedSinceResize=!0,this.currentAnimation=uC(0,PC,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.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);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(PC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,target:l,layout:u,latestValues:d}=s;if(!(!i||!l||!u)){if(this!==s&&this.layout&&u&&BC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ie();let c=Je(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;let f=Je(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ht(i,l),Po(i,d),os(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new _d),this.sharedNodes.get(s).add(i);let u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:i}=this.options;return i?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:i}=this.options;return i?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;let u={};l.z&&Nm("z",s,u,this.animationValues);for(let d=0;d<Mm.length;d++)Nm(`rotate${Mm[d]}`,s,u,this.animationValues),Nm(`skew${Mm[d]}`,s,u,this.animationValues);s.render();for(let d in u)s.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);s.scheduleRender()}getProjectionStyles(s){var i,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return w1;let u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Nn(s?.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){let C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=Nn(s?.pointerEvents)||""),this.hasProjected&&!ar(this.latestValues)&&(C.transform=d?d({},""):"none",this.hasProjected=!1),C}let f=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=bC(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));let{x:g,y:v}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,c.animationValues?u.opacity=c===this?(l=(i=f.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=c===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(let C in _n){if(f[C]===void 0)continue;let{correct:I,applyTo:m}=_n[C],h=u.transform==="none"?f[C]:I(f[C],c);if(m){let x=m.length;for(let S=0;S<x;S++)u[m[S]]=h}else u[C]=h}return this.options.layoutId&&(u.pointerEvents=c===this?Nn(s?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(TC),this.root.sharedNodes.clear()}}}function b1(e){e.updateLayout()}function P1(e){var t;let a=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:n}=e.options,s=a.source!==e.layout.source;n==="size"?At(c=>{let f=s?a.measuredBox[c]:a.layoutBox[c],g=Je(f);f.min=r[c].min,f.max=f.min+g}):BC(n,a.layoutBox,r)&&At(c=>{let f=s?a.measuredBox[c]:a.layoutBox[c],g=Je(r[c]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+g)});let i=bo();os(i,r,a.layoutBox);let l=bo();s?os(l,e.applyTransform(o,!0),a.measuredBox):os(l,r,a.layoutBox);let u=!Tm(i),d=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:f,layout:g}=c;if(f&&g){let v=Ie();ns(v,a.layoutBox,f.layoutBox);let C=Ie();ns(C,r,g.layoutBox),Am(v,C)||(d=!0),c.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=v,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:l,layoutDelta:i,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function T1(e){Ui&&To.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 A1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function R1(e){e.clearSnapshot()}function TC(e){e.clearMeasurements()}function D1(e){e.isLayoutDirty=!1}function M1(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function AC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function N1(e){e.resolveTargetDelta()}function E1(e){e.calcProjection()}function F1(e){e.resetSkewAndRotation()}function B1(e){e.removeLeadSnapshot()}function RC(e,t,a){e.translate=re(t.translate,0,a),e.scale=re(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function DC(e,t,a,r){e.min=re(t.min,a.min,r),e.max=re(t.max,a.max,r)}function O1(e,t,a,r){DC(e.x,t.x,a.x,r),DC(e.y,t.y,a.y,r)}function V1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var U1={duration:.45,ease:[.4,0,.1,1]},MC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),NC=MC("applewebkit/")&&!MC("chrome/")?Math.round:me;function EC(e){e.min=NC(e.min),e.max=NC(e.max)}function _1(e){EC(e.x),EC(e.y)}function BC(e,t,a){return e==="position"||e==="preserve-aspect"&&!BL(Rm(t),Rm(a),.2)}function z1(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var OC=zd({attachResizeListener:(e,t)=>er(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Em={current:void 0},Hd=zd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Em.current){let e=new OC({});e.mount(window),e.setOptions({layoutScroll:!0}),Em.current=e}return Em.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var VC={pan:{Feature:Od},drag:{Feature:Bd,ProjectionNode:Hd,MeasureLayout:Vd}};function UC(e,t,a){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",a==="Start");let o="onHover"+a,n=r[o];n&&Q.postRender(()=>n(t,tr(t)))}var qd=class extends Ke{mount(){let{current:t}=this.node;t&&(this.unmount=Yp(t,a=>(UC(this.node,a,"Start"),r=>UC(this.node,r,"End"))))}unmount(){}};var Wd=class extends Ke{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=ka(er(this.node.current,"focus",()=>this.onFocus()),er(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function _C(e,t,a){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",a==="Start");let o="onTap"+(a==="End"?"":a),n=r[o];n&&Q.postRender(()=>n(t,tr(t)))}var Gd=class extends Ke{mount(){let{current:t}=this.node;t&&(this.unmount=Jp(t,a=>(_C(this.node,a,"Start"),(r,{success:o})=>_C(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var Bm=new WeakMap,Fm=new WeakMap,H1=e=>{let t=Bm.get(e.target);t&&t(e)},q1=e=>{e.forEach(H1)};function W1({root:e,...t}){let a=e||document;Fm.has(a)||Fm.set(a,{});let r=Fm.get(a),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(q1,{root:e,...t})),r[o]}function zC(e,t,a){let r=W1(t);return Bm.set(e,a),r.observe(e),()=>{Bm.delete(e),r.unobserve(e)}}var G1={some:0,all:1},jd=class extends Ke{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:a,margin:r,amount:o="some",once:n}=t,s={root:a?a.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:G1[o]},i=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:d,onViewportLeave:c}=this.node.getProps(),f=u?d:c;f&&f(l)};return zC(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:a}=this.node;["amount","margin","root"].some(j1(t,a))&&this.startObserver()}unmount(){}};function j1({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var HC={inView:{Feature:jd},tap:{Feature:Gd},focus:{Feature:Wd},hover:{Feature:qd}};var qC={layout:{ProjectionNode:Hd,MeasureLayout:Vd}};var $C=M(G(),1);var _i={current:null},Kd={current:!1};function WC(){if(Kd.current=!0,!!bn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_i.current=e.matches;e.addListener(t),t()}else _i.current=!1}var K1=[...lm,Oe,gt],GC=e=>K1.find(xd(e));var Om=new WeakMap;function jC(e,t,a){for(let r in t){let o=t[r],n=a[r];if(ye(o))e.addValue(r,o);else if(ye(n))e.addValue(r,Ja(o,{owner:e}));else if(n!==o)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(r);e.addValue(r,Ja(s!==void 0?s:o,{owner:e}))}}for(let r in a)t[r]===void 0&&e.removeValue(r);return t}var KC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$d=class{scrapeMotionValuesFromProps(t,a,r){return{}}constructor({parent:t,props:a,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:n,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hr,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=()=>{let g=lt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Q.render(this.render,!1,!0))};let{latestValues:l,renderState:u,onUpdate:d}=s;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=a.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=a,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.blockInitialAnimation=!!n,this.isControllingVariants=yo(a),this.isVariantNode=Ou(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:c,...f}=this.scrapeMotionValuesFromProps(a,{},this);for(let g in f){let v=f[g];l[g]!==void 0&&ye(v)&&v.set(l[g],!1)}}mount(t){this.current=t,Om.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((a,r)=>this.bindToMotionValue(r,a)),Kd.current||WC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_i.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Om.delete(this.current),this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=Tt.has(t),o=a.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),n=a.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{o(),n(),s&&s(),a.owner&&a.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 Xa){let a=Xa[t];if(!a)continue;let{isEnabled:r,Feature:o}=a;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<KC.length;r++){let o=KC[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let n="on"+o,s=t[n];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=jC(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){let a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){let r=this.values.get(t);a!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);let a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&a!==void 0&&(r=Ja(a===null?void 0:a,{owner:this}),this.addValue(t,r)),r}readValue(t,a){var r;let o=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 o!=null&&(typeof o=="string"&&(gd(o)||pd(o))?o=parseFloat(o):!GC(o)&>.test(a)&&(o=hd(t,a)),this.setBaseTarget(t,ye(o)?o.get():o)),ye(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){var a;let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let s=Mn(this.props,r,(a=this.presenceContext)===null||a===void 0?void 0:a.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!ye(n)?n:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Vr),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}};var ls=class extends $d{constructor(){super(...arguments),this.KeyframeResolver=Jn}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:r}){delete a[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ye(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};function $1(e){return window.getComputedStyle(e)}var Xd=class extends ls{constructor(){super(...arguments),this.type="html",this.renderInstance=ju}readValueFromInstance(t,a){if(Tt.has(a)){let r=Zn(a);return r&&r.default||0}else{let r=$1(t),o=(qu(a)?r.getPropertyValue(a):r[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:a}){return wm(t,a)}build(t,a,r){Bn(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return zn(t,a,r)}};var Qd=class extends ls{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ie}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(Tt.has(a)){let r=Zn(a);return r&&r.default||0}return a=Ku.has(a)?a:Tn(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return Qu(t,a,r)}build(t,a,r){On(t,a,this.isSVGTag,r.transformTemplate)}renderInstance(t,a,r,o){$u(t,a,r,o)}mount(t){this.isSVGTag=Un(t.tagName),super.mount(t)}};var XC=(e,t)=>Dn(e)?new Qd(t):new Xd(t,{allowProjection:e!==$C.Fragment});var QC=w0({...kL,...HC,...VC,...qC},XC);var Vm=Wv(QC);var zi=M(le(),1);function YC({x:e,y:t,visible:a,onClick:r=!1}){return(0,zi.jsx)(zp,{children:a&&(0,zi.jsx)(Vm.div,{className:"fixed pointer-events-none z-[9999]",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1,x:e,y:t},exit:{opacity:0,scale:.5},transition:{type:"spring",stiffness:200,damping:20},style:{left:0,top:0},children:(0,zi.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,zi.jsx)("path",{d:"M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z",fill:"#C4B5FD"})})})})}var us=M(G(),1);function ZC(){let[e,t]=us.useState({x:0,y:0,visible:!1,onClick:!1}),a=us.useCallback(n=>{let s=document.querySelector(n.selector);if(s){let i=s.getBoundingClientRect(),l=n.offset?.x||0,u=n.offset?.y||0;t({x:i.left+i.width/2+l,y:i.top+i.height/2+u,visible:!0,onClick:n.onClick||!1})}},[]),r=us.useCallback(()=>{t(n=>({...n,visible:!1}))},[]),o=us.useCallback(()=>{t(n=>({...n,visible:!0}))},[]);return{cursorState:e,moveTo:a,hide:r,show:o}}var ds=M(le(),1);function ut({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card",className:Bt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function ba({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card-header",className:Bt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Pa({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card-title",className:Bt("leading-none font-semibold",e),...t})}function Um({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card-description",className:Bt("text-muted-foreground text-sm",e),...t})}function dt({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card-content",className:Bt("px-6",e),...t})}var y=M(le(),1),_m=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Yd=(e,t="USD")=>new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e),zm=e=>{switch(e){case"Enterprise":return fo;case"Professional":return vi;default:return ui}},Zd=e=>{switch(e){case"Enterprise":return"bg-purple-50 text-purple-700 border-purple-200";case"Professional":return"bg-blue-50 text-blue-700 border-blue-200";default:return"bg-gray-50 text-gray-700 border-gray-200"}};function Hi({status:e,type:t="default"}){let r=(()=>{let n=e.toLowerCase();if(t==="transaction")switch(n){case"paid":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:je};case"failed":return{color:"bg-red-50 text-red-700 border-red-200",icon:da};case"pending":return{color:"bg-amber-50 text-amber-700 border-amber-200",icon:uo};case"refunded":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:Ln};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ua}}if(t==="subscription")switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:je};case"cancelled":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:da};case"past_due":return{color:"bg-red-50 text-red-700 border-red-200",icon:ua};case"trialing":return{color:"bg-blue-50 text-blue-700 border-blue-200",icon:uo};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ua}}switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:je};case"inactive":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:da};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ua}}})(),o=r.icon;return(0,y.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border ${r.color}`,children:[(0,y.jsx)(o,{className:"h-3 w-3"}),e]})}function X1({subscription:e}){let t=zm(e.plan);return(0,y.jsxs)(ut,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)("div",{className:`h-1 ${e.status==="active"?"bg-emerald-500":e.status==="past_due"?"bg-red-500":"bg-slate-300"}`}),(0,y.jsx)(ba,{className:"pb-3",children:(0,y.jsxs)("div",{className:"flex items-start justify-between",children:[(0,y.jsxs)("div",{className:"space-y-1",children:[(0,y.jsxs)(Pa,{className:"text-base font-semibold text-gray-900 flex items-center gap-2",children:[(0,y.jsx)(co,{className:"h-4 w-4 text-gray-500"}),e.id]}),e.customer_email&&(0,y.jsxs)(Um,{className:"text-sm text-gray-500 flex items-center gap-1.5",children:[(0,y.jsx)(yn,{className:"h-3 w-3"}),e.customer_email]})]}),(0,y.jsx)(Hi,{status:e.status,type:"subscription"})]})}),(0,y.jsx)(dt,{className:"pt-0",children:(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Plan"}),(0,y.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium border ${Zd(e.plan)}`,children:[(0,y.jsx)(t,{className:"h-3 w-3"}),e.plan]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Billing"}),(0,y.jsxs)("div",{className:"text-sm font-medium text-gray-900",children:[Yd(e.amount,e.currency)," / ",e.billing_cycle]})]})]}),(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Current Period"}),(0,y.jsxs)("div",{className:"text-sm text-gray-700",children:[_m(e.current_period_start)," - ",_m(e.current_period_end)]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Created"}),(0,y.jsx)("div",{className:"text-sm text-gray-700",children:_m(e.created_at)})]})]})]})})]})}function Q1({subscriptions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(ut,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(dt,{className:"py-8 text-center",children:[(0,y.jsx)(co,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No subscriptions found"})]})}):(0,y.jsxs)(ut,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(co,{className:"h-4 w-4"}),e.length," Subscription",e.length!==1?"s":""]})}),(0,y.jsxs)(dt,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>{let n=zm(o.plan);return(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,y.jsx)("div",{className:`p-2 rounded-lg ${Zd(o.plan).replace("text-","text-").replace("border-","bg-").split(" ")[0]}`,children:(0,y.jsx)(n,{className:"h-4 w-4"})}),(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.customer_email||o.customer_id}),(0,y.jsxs)("div",{className:"text-xs text-gray-500",children:[o.plan," \xB7 ",Yd(o.amount,o.currency),"/",o.billing_cycle]})]})]}),(0,y.jsx)(Hi,{status:o.status,type:"subscription"})]})},o.id)})}),r&&(0,y.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,y.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more subscription",e.length-t!==1?"s":""]})})]})]})}function Y1({customer:e}){let t=zm(e.subscription);return(0,y.jsxs)(ut,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)("div",{className:`h-1 ${e.status==="active"?"bg-emerald-500":"bg-slate-300"}`}),(0,y.jsx)(ba,{className:"pb-3",children:(0,y.jsxs)("div",{className:"flex items-start justify-between",children:[(0,y.jsx)("div",{className:"flex items-center gap-3",children:(0,y.jsxs)("div",{children:[(0,y.jsx)(Pa,{className:"text-base font-semibold text-gray-900",children:e.name}),(0,y.jsxs)(Um,{className:"text-sm text-gray-500 flex items-center gap-1",children:[(0,y.jsx)(yn,{className:"h-3 w-3"}),e.email]})]})}),(0,y.jsx)(Hi,{status:e.status,type:"customer"})]})}),(0,y.jsx)(dt,{className:"pt-0",children:(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Plan"}),(0,y.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium border ${Zd(e.subscription)}`,children:[(0,y.jsx)(t,{className:"h-3 w-3"}),e.subscription]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Revenue"}),(0,y.jsxs)("div",{className:"text-sm font-medium text-gray-900 flex items-center gap-1",children:[(0,y.jsx)(po,{className:"h-3 w-3 text-emerald-500"}),e.revenue]})]})]}),(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Location"}),(0,y.jsxs)("div",{className:"text-sm text-gray-700 flex items-center gap-1",children:[(0,y.jsx)(vn,{className:"h-3 w-3 text-gray-400"}),e.location||"Not specified"]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Customer Since"}),(0,y.jsxs)("div",{className:"text-sm text-gray-700 flex items-center gap-1",children:[(0,y.jsx)(ci,{className:"h-3 w-3 text-gray-400"}),e.joinDate]})]})]})]})})]})}function Z1({customers:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(ut,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(dt,{className:"py-8 text-center",children:[(0,y.jsx)(Sn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No customers found"})]})}):(0,y.jsxs)(ut,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(Sn,{className:"h-4 w-4"}),e.length," Customer",e.length!==1?"s":""]})}),(0,y.jsxs)(dt,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsx)("div",{className:"flex items-center gap-3 min-w-0",children:(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name}),(0,y.jsx)("div",{className:"text-xs text-gray-500 truncate",children:o.email})]})}),(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${Zd(o.subscription)}`,children:o.subscription}),(0,y.jsx)(Hi,{status:o.status,type:"customer"})]})]})},o.id))}),r&&(0,y.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,y.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more customer",e.length-t!==1?"s":""]})})]})]})}function JC({transactions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(ut,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(dt,{className:"py-8 text-center",children:[(0,y.jsx)(po,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No transactions found"})]})}):(0,y.jsxs)(ut,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(po,{className:"h-4 w-4"}),e.length," Transaction",e.length!==1?"s":""]})}),(0,y.jsxs)(dt,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,y.jsx)("div",{className:`p-2 rounded-lg ${o.status==="paid"?"bg-emerald-50":o.status==="failed"?"bg-red-50":o.status==="refunded"?"bg-slate-50":"bg-amber-50"}`,children:o.status==="paid"?(0,y.jsx)(je,{className:"h-4 w-4 text-emerald-600"}):o.status==="failed"?(0,y.jsx)(da,{className:"h-4 w-4 text-red-600"}):o.status==="refunded"?(0,y.jsx)(Ln,{className:"h-4 w-4 text-slate-600"}):(0,y.jsx)(uo,{className:"h-4 w-4 text-amber-600"})}),(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.customer}),(0,y.jsxs)("div",{className:"text-xs text-gray-500",children:[o.date,o.decline_reason&&(0,y.jsxs)("span",{className:"text-red-500 ml-2",children:["\xB7 ",o.decline_reason]})]})]})]}),(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsxs)("span",{className:`text-sm font-semibold ${o.status==="paid"?"text-emerald-600":o.status==="failed"?"text-red-600":o.status==="refunded"?"text-slate-600":"text-amber-600"}`,children:[o.status==="refunded"?"-":"",o.amount]}),(0,y.jsx)(Hi,{status:o.status,type:"transaction"})]})]})},o.id))}),r&&(0,y.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,y.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more transaction",e.length-t!==1?"s":""]})})]})]})}function J1({apiKeys:e}){return e.length===0?(0,y.jsx)(ut,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(dt,{className:"py-8 text-center",children:[(0,y.jsx)(xn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No API keys found"})]})}):(0,y.jsxs)(ut,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(xn,{className:"h-4 w-4"}),e.length," API Key",e.length!==1?"s":""]})}),(0,y.jsx)(dt,{className:"p-0",children:(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((t,a)=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900",children:t.name}),(0,y.jsxs)("div",{className:"text-xs text-gray-500 font-mono",children:[t.key.slice(0,12),"...",t.key.slice(-4)]})]}),(0,y.jsxs)("div",{className:"text-xs text-gray-500",children:["Last used: ",t.lastUsed]})]})},a))})})]})}function eT({sessions:e}){let t=a=>{let r=a.toLowerCase();return r.includes("mobile")||r.includes("iphone")||r.includes("android")?xi:hi};return e.length===0?(0,y.jsx)(ut,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(dt,{className:"py-8 text-center",children:[(0,y.jsx)(Cn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No active sessions"})]})}):(0,y.jsxs)(ut,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(Cn,{className:"h-4 w-4"}),e.length," Active Session",e.length!==1?"s":""]})}),(0,y.jsx)(dt,{className:"p-0",children:(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((a,r)=>{let o=t(a.device);return(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsx)("div",{className:"p-2 rounded-lg bg-gray-100",children:(0,y.jsx)(o,{className:"h-4 w-4 text-gray-600"})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900",children:a.device}),(0,y.jsxs)("div",{className:"text-xs text-gray-500 flex items-center gap-1",children:[(0,y.jsx)(vn,{className:"h-3 w-3"}),a.location]})]})]}),(0,y.jsx)("div",{className:"text-xs text-gray-500",children:a.time})]})},r)})})})]})}function tT({stats:e}){return(0,y.jsxs)(ut,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(yi,{className:"h-4 w-4"}),"Dashboard Overview"]})}),(0,y.jsx)(dt,{className:"p-4",children:(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[e.revenue&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-emerald-50 border border-emerald-100",children:[(0,y.jsx)("div",{className:"text-xs text-emerald-600 font-medium mb-1",children:"Revenue"}),(0,y.jsx)("div",{className:"text-lg font-bold text-emerald-700",children:Yd(e.revenue.total)}),e.revenue.change!==0&&(0,y.jsxs)("div",{className:`text-xs ${e.revenue.change>0?"text-emerald-600":"text-red-600"}`,children:[e.revenue.change>0?"+":"",e.revenue.change,"% from last period"]})]}),e.subscriptions&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-blue-50 border border-blue-100",children:[(0,y.jsx)("div",{className:"text-xs text-blue-600 font-medium mb-1",children:"Subscriptions"}),(0,y.jsxs)("div",{className:"text-lg font-bold text-blue-700",children:[e.subscriptions.active," active"]}),(0,y.jsxs)("div",{className:"text-xs text-blue-600",children:[e.subscriptions.total," total"]})]}),e.customers&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-purple-50 border border-purple-100",children:[(0,y.jsx)("div",{className:"text-xs text-purple-600 font-medium mb-1",children:"Customers"}),(0,y.jsx)("div",{className:"text-lg font-bold text-purple-700",children:e.customers.total}),e.customers.new>0&&(0,y.jsxs)("div",{className:"text-xs text-purple-600",children:["+",e.customers.new," new this period"]})]}),e.transactions&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-amber-50 border border-amber-100",children:[(0,y.jsx)("div",{className:"text-xs text-amber-600 font-medium mb-1",children:"Transactions"}),(0,y.jsxs)("div",{className:"text-lg font-bold text-amber-700",children:[e.transactions.successful," successful"]}),e.transactions.failed>0&&(0,y.jsxs)("div",{className:"text-xs text-red-600",children:[e.transactions.failed," failed"]})]})]})})]})}function aT({customers:e}){return e.length===0?(0,y.jsx)(ut,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(dt,{className:"py-8 text-center",children:[(0,y.jsx)(fo,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No top customers data"})]})}):(0,y.jsxs)(ut,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(fo,{className:"h-4 w-4 text-amber-500"}),"Top Customers"]})}),(0,y.jsx)(dt,{className:"p-0",children:(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((t,a)=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,y.jsx)("div",{className:`h-6 w-6 rounded-full flex items-center justify-center text-xs font-bold ${a===0?"bg-amber-100 text-amber-700":a===1?"bg-slate-100 text-slate-700":a===2?"bg-orange-100 text-orange-700":"bg-gray-100 text-gray-700"}`,children:a+1}),(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:t.name}),(0,y.jsx)("div",{className:"text-xs text-gray-500 truncate",children:t.email})]})]}),(0,y.jsx)("div",{className:"text-sm font-semibold text-emerald-600",children:typeof t.revenue=="number"?Yd(t.revenue):t.revenue})]})},a))})})]})}function eS({type:e,data:t}){if(!t)return null;switch(e){case"subscription":return(0,y.jsx)(X1,{subscription:t});case"subscriptions":let a=t.subscriptions||t||[];return(0,y.jsx)(Q1,{subscriptions:Array.isArray(a)?a:[a]});case"customer":return(0,y.jsx)(Y1,{customer:t.customer||t});case"customers":let r=t.customers||t||[];return(0,y.jsx)(Z1,{customers:Array.isArray(r)?r:[r]});case"transactions":let o=t.transactions||t||[];return(0,y.jsx)(JC,{transactions:Array.isArray(o)?o:[o]});case"transaction":return(0,y.jsx)(JC,{transactions:[t],maxItems:1});case"dashboard_stats":return(0,y.jsx)(tT,{stats:t});case"top_customers":let n=t.customers||t||[];return(0,y.jsx)(aT,{customers:Array.isArray(n)?n:[n]});case"api_keys":let s=t.api_keys||t||[];return(0,y.jsx)(J1,{apiKeys:Array.isArray(s)?s:[s]});case"sessions":let i=t.sessions||t||[];return(0,y.jsx)(eT,{sessions:Array.isArray(i)?i:[i]});default:return null}}var p=M(le(),1),rT="http://localhost:5002",qm=400;function oT(e){if(!e)return null;let t=e.split(`
|
|
16
|
+
`),()=>{document.head.removeChild(d)}},[t]),(0,Ev.jsx)(Vp,{isPresent:t,childRef:r,sizeRef:o,children:Pu.cloneElement(e,{ref:r})})}var Ov=({children:e,initial:t,isPresent:a,onExitComplete:r,custom:o,presenceAffectsLayout:n,mode:s})=>{let i=wn(Eb),l=(0,go.useId)(),u=(0,go.useCallback)(c=>{i.set(c,!0);for(let f of i.values())if(!f)return;r&&r()},[i,r]),d=(0,go.useMemo)(()=>({id:l,initial:t,isPresent:a,custom:o,onExitComplete:u,register:c=>(i.set(c,!1),()=>i.delete(c))}),n?[Math.random(),u]:[a,u]);return(0,go.useMemo)(()=>{i.forEach((c,f)=>i.set(f,!1))},[a]),Bv.useEffect(()=>{!a&&!i.size&&r&&r()},[a]),s==="popLayout"&&(e=(0,Up.jsx)(Fv,{isPresent:a,children:e})),(0,Up.jsx)(Rr.Provider,{value:d,children:e})};function Eb(){return new Map}var Dr=M(G(),1);function Tu(e=!0){let t=(0,Dr.useContext)(Rr);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:r,register:o}=t,n=(0,Dr.useId)();(0,Dr.useEffect)(()=>{e&&o(n)},[e]);let s=(0,Dr.useCallback)(()=>e&&r&&r(n),[n,r,e]);return!a&&r?[!1,s]:[!0]}var Au=M(G(),1),Li=e=>e.key||"";function _p(e){let t=[];return Au.Children.forEach(e,a=>{(0,Au.isValidElement)(a)&&t.push(a)}),t}var Ru=M(G(),1);var bn=typeof window<"u";var Du=bn?Ru.useLayoutEffect:Ru.useEffect;var zp=({children:e,custom:t,initial:a=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:n="sync",propagate:s=!1})=>{let[i,l]=Tu(s),u=(0,La.useMemo)(()=>_p(e),[e]),d=s&&!i?[]:u.map(Li),c=(0,La.useRef)(!0),f=(0,La.useRef)(u),g=wn(()=>new Map),[v,C]=(0,La.useState)(u),[I,m]=(0,La.useState)(u);Du(()=>{c.current=!1,f.current=u;for(let S=0;S<I.length;S++){let k=Li(I[S]);d.includes(k)?g.delete(k):g.get(k)!==!0&&g.set(k,!1)}},[I,d.length,d.join("-")]);let h=[];if(u!==v){let S=[...u];for(let k=0;k<I.length;k++){let T=I[k],D=Li(T);d.includes(D)||(S.splice(k,0,T),h.push(T))}n==="wait"&&h.length&&(S=h),m(_p(S)),C(u);return}let{forceRender:x}=(0,La.useContext)(In);return(0,Ci.jsx)(Ci.Fragment,{children:I.map(S=>{let k=Li(S),T=s&&!i?!1:u===I||d.includes(k),D=()=>{if(g.has(k))g.set(k,!0);else return;let A=!0;g.forEach(B=>{B||(A=!1)}),A&&(x?.(),m(f.current),s&&l?.(),r&&r())};return(0,Ci.jsx)(Ov,{isPresent:T,initial:!c.current||a?void 0:!1,custom:T?void 0:t,presenceAffectsLayout:o,mode:n,onExitComplete:T?void 0:D,children:S},k)})})};var me=e=>e;var $a=me,fa=me;function xo(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ut=(e,t,a)=>{let r=t-e;return r===0?1:(a-e)/r};var Ne=e=>e*1e3,Ye=e=>e/1e3;var Pn={skipAnimations:!1,useManualTiming:!1};function Vv(e){let t=new Set,a=new Set,r=!1,o=!1,n=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function i(u){n.has(u)&&(l.schedule(u),e()),u(s)}let l={schedule:(u,d=!1,c=!1)=>{let g=c&&r?t:a;return d&&n.add(u),g.has(u)||g.add(u),u},cancel:u=>{a.delete(u),n.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,a]=[a,t],t.forEach(i),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}var Mu=["read","resolveKeyframes","update","preRender","render","postRender"],Fb=40;function Nu(e,t){let a=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},n=()=>a=!0,s=Mu.reduce((m,h)=>(m[h]=Vv(n),m),{}),{read:i,resolveKeyframes:l,update:u,preRender:d,render:c,postRender:f}=s,g=()=>{let m=Pn.useManualTiming?o.timestamp:performance.now();a=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,Fb),1),o.timestamp=m,o.isProcessing=!0,i.process(o),l.process(o),u.process(o),d.process(o),c.process(o),f.process(o),o.isProcessing=!1,a&&t&&(r=!1,e(g))},v=()=>{a=!0,r=!0,o.isProcessing||e(g)};return{schedule:Mu.reduce((m,h)=>{let x=s[h];return m[h]=(S,k=!1,T=!1)=>(a||v(),x.schedule(S,k,T)),m},{}),cancel:m=>{for(let h=0;h<Mu.length;h++)s[Mu[h]].cancel(m)},state:o,steps:s}}var{schedule:Q,cancel:_t,state:Ee,steps:Eu}=Nu(typeof requestAnimationFrame<"u"?requestAnimationFrame:me,!0);var Uv=M(G(),1),Fu=(0,Uv.createContext)({strict:!1});var _v={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"]},Xa={};for(let e in _v)Xa[e]={isEnabled:t=>_v[e].some(a=>!!t[a])};function zv(e){for(let t in e)Xa[t]={...Xa[t],...e[t]}}var Bb=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 Si(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bb.has(e)}var Hv=e=>!Si(e);function Ob(e){e&&(Hv=t=>t.startsWith("on")?!Si(t):e(t))}try{Ob(xS("@emotion/is-prop-valid").default)}catch{}function qv(e,t,a){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||(Hv(o)||a===!0&&Si(o)||!t&&!Si(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Wv(e){if(typeof Proxy>"u")return e;let t=new Map,a=(...r)=>e(...r);return new Proxy(a,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}var zu=M(le(),1);var Rn=M(G(),1);var Gv=M(G(),1),Mr=(0,Gv.createContext)({});var Vu=M(G(),1);function Qa(e){return typeof e=="string"||Array.isArray(e)}function Nr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}var Bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ii=["initial",...Bu];function yo(e){return Nr(e.animate)||Ii.some(t=>Qa(e[t]))}function Ou(e){return!!(yo(e)||e.variants)}function jv(e,t){if(yo(e)){let{initial:a,animate:r}=e;return{initial:a===!1||Qa(a)?a:void 0,animate:Qa(r)?r:void 0}}return e.inherit!==!1?t:{}}function $v(e){let{initial:t,animate:a}=jv(e,(0,Vu.useContext)(Mr));return(0,Vu.useMemo)(()=>({initial:t,animate:a}),[Kv(t),Kv(a)])}function Kv(e){return Array.isArray(e)?e.join(" "):e}var Xv=Symbol.for("motionComponentSymbol");var Qv=M(G(),1);function Ya(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Yv(e,t,a){return(0,Qv.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),a&&(typeof a=="function"?a(r):Ya(a)&&(a.current=r))},[t])}var bt=M(G(),1);var Tn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var Vb="framerAppearId",Uu="data-"+Tn(Vb);var{schedule:An,cancel:EM}=Nu(queueMicrotask,!1);var Zv=M(G(),1),_u=(0,Zv.createContext)({});function Jv(e,t,a,r,o){var n,s;let{visualElement:i}=(0,bt.useContext)(Mr),l=(0,bt.useContext)(Fu),u=(0,bt.useContext)(Rr),d=(0,bt.useContext)(kn).reducedMotion,c=(0,bt.useRef)(null);r=r||l.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:a,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));let f=c.current,g=(0,bt.useContext)(_u);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&Ub(c.current,a,o,g);let v=(0,bt.useRef)(!1);(0,bt.useInsertionEffect)(()=>{f&&v.current&&f.update(a,u)});let C=a[Uu],I=(0,bt.useRef)(!!C&&!(!((n=window.MotionHandoffIsComplete)===null||n===void 0)&&n.call(window,C))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,C)));return Du(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),An.render(f.render),I.current&&f.animationState&&f.animationState.animateChanges())}),(0,bt.useEffect)(()=>{f&&(!I.current&&f.animationState&&f.animationState.animateChanges(),I.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,C)}),I.current=!1))}),f}function Ub(e,t,a,r){let{layoutId:o,layout:n,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:u}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:e0(e.parent)),e.projection.setOptions({layoutId:o,layout:n,alwaysMeasureLayout:!!s||i&&Ya(i),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function e0(e){if(e)return e.options.allowProjection!==!1?e.projection:e0(e.parent)}function t0({preloadedFeatures:e,createVisualElement:t,useRender:a,useVisualState:r,Component:o}){var n,s;e&&zv(e);function i(u,d){let c,f={...(0,Rn.useContext)(kn),...u,layoutId:_b(u)},{isStatic:g}=f,v=$v(u),C=r(u,g);if(!g&&bn){zb(f,e);let I=Hb(f);c=I.MeasureLayout,v.visualElement=Jv(o,C,f,t,I.ProjectionNode)}return(0,zu.jsxs)(Mr.Provider,{value:v,children:[c&&v.visualElement?(0,zu.jsx)(c,{visualElement:v.visualElement,...f}):null,a(o,u,Yv(C,v.visualElement,d),C,g,v.visualElement)]})}i.displayName=`motion.${typeof o=="string"?o:`create(${(s=(n=o.displayName)!==null&&n!==void 0?n:o.name)!==null&&s!==void 0?s:""})`}`;let l=(0,Rn.forwardRef)(i);return l[Xv]=o,l}function _b({layoutId:e}){let t=(0,Rn.useContext)(In).id;return t&&e!==void 0?t+"-"+e:e}function zb(e,t){let a=(0,Rn.useContext)(Fu).strict}function Hb(e){let{drag:t,layout:a}=Xa;if(!t&&!a)return{};let r={...t,...a};return{MeasureLayout:t?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var a0=["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 Dn(e){return typeof e!="string"||e.includes("-")?!1:!!(a0.indexOf(e)>-1||/[A-Z]/u.test(e))}var Hp=M(G(),1);function r0(e){let t=[{},{}];return e?.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function Mn(e,t,a,r){if(typeof t=="function"){let[o,n]=r0(r);t=t(a!==void 0?a:e.custom,o,n)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,n]=r0(r);t=t(a!==void 0?a:e.custom,o,n)}return t}var wi=e=>Array.isArray(e);var o0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),n0=e=>wi(e)?e[e.length-1]||0:e;var ye=e=>!!(e&&e.getVelocity);function Nn(e){let t=ye(e)?e.get():e;return o0(t)?t.toValue():t}function qb({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:a},r,o,n){let s={latestValues:Wb(r,o,n,e),renderState:t()};return a&&(s.onMount=i=>a({props:r,current:i,...s}),s.onUpdate=i=>a(i)),s}var Hu=e=>(t,a)=>{let r=(0,Hp.useContext)(Mr),o=(0,Hp.useContext)(Rr),n=()=>qb(e,t,r,o);return a?n():wn(n)};function Wb(e,t,a,r){let o={},n=r(e,{});for(let f in n)o[f]=Nn(n[f]);let{initial:s,animate:i}=e,l=yo(e),u=Ou(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let d=a?a.initial===!1:!1;d=d||s===!1;let c=d?i:s;if(c&&typeof c!="boolean"&&!Nr(c)){let f=Array.isArray(c)?c:[c];for(let g=0;g<f.length;g++){let v=Mn(e,f[g]);if(v){let{transitionEnd:C,transition:I,...m}=v;for(let h in m){let x=m[h];if(Array.isArray(x)){let S=d?x.length-1:0;x=x[S]}x!==null&&(o[h]=x)}for(let h in C)o[h]=C[h]}}}return o}var Ca=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pt=new Set(Ca);var s0=e=>t=>typeof t=="string"&&t.startsWith(e),qu=s0("--"),Gb=s0("var(--"),En=e=>Gb(e)?jb.test(e.split("/*")[0].trim()):!1,jb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Wu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var Ze=(e,t,a)=>a>t?t:a<e?e:a;var Sa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Za={...Sa,transform:e=>Ze(0,1,e)},ki={...Sa,default:1};var bi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ia=bi("deg"),mt=bi("%"),H=bi("px"),i0=bi("vh"),l0=bi("vw"),qp={...mt,parse:e=>mt.parse(e)/100,transform:e=>mt.transform(e*100)};var u0={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H};var d0={rotate:Ia,rotateX:Ia,rotateY:Ia,rotateZ:Ia,scale:ki,scaleX:ki,scaleY:ki,scaleZ:ki,skew:Ia,skewX:Ia,skewY:Ia,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:Za,originX:qp,originY:qp,originZ:H};var Wp={...Sa,transform:Math.round};var Fn={...u0,...d0,zIndex:Wp,size:H,fillOpacity:Za,strokeOpacity:Za,numOctaves:Wp};var Kb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$b=Ca.length;function c0(e,t,a){let r="",o=!0;for(let n=0;n<$b;n++){let s=Ca[n],i=e[s];if(i===void 0)continue;let l=!0;if(typeof i=="number"?l=i===(s.startsWith("scale")?1:0):l=parseFloat(i)===0,!l||a){let u=Wu(i,Fn[s]);if(!l){o=!1;let d=Kb[s]||s;r+=`${d}(${u}) `}a&&(t[s]=u)}}return r=r.trim(),a?r=a(t,o?"":r):o&&(r="none"),r}function Bn(e,t,a){let{style:r,vars:o,transformOrigin:n}=e,s=!1,i=!1;for(let l in t){let u=t[l];if(Pt.has(l)){s=!0;continue}else if(qu(l)){o[l]=u;continue}else{let d=Wu(u,Fn[l]);l.startsWith("origin")?(i=!0,n[l]=d):r[l]=d}}if(t.transform||(s||a?r.transform=c0(t,e.transform,a):r.transform&&(r.transform="none")),i){let{originX:l="50%",originY:u="50%",originZ:d=0}=n;r.transformOrigin=`${l} ${u} ${d}`}}var Xb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qb={offset:"strokeDashoffset",array:"strokeDasharray"};function f0(e,t,a=1,r=0,o=!0){e.pathLength=1;let n=o?Xb:Qb;e[n.offset]=H.transform(-r);let s=H.transform(t),i=H.transform(a);e[n.array]=`${s} ${i}`}function p0(e,t,a){return typeof e=="string"?e:H.transform(t+a*e)}function m0(e,t,a){let r=p0(t,e.x,e.width),o=p0(a,e.y,e.height);return`${r} ${o}`}function On(e,{attrX:t,attrY:a,attrScale:r,originX:o,originY:n,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...u},d,c){if(Bn(e,u,c),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:g,dimensions:v}=e;f.transform&&(v&&(g.transform=f.transform),delete f.transform),v&&(o!==void 0||n!==void 0||g.transform)&&(g.transformOrigin=m0(v,o!==void 0?o:.5,n!==void 0?n:.5)),t!==void 0&&(f.x=t),a!==void 0&&(f.y=a),r!==void 0&&(f.scale=r),s!==void 0&&f0(f,s,i,l,!1)}var Vn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var Gu=()=>({...Vn(),attrs:{}});var Un=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ju(e,{style:t,vars:a},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(let n in a)e.style.setProperty(n,a[n])}var Ku=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 $u(e,t,a,r){ju(e,t,void 0,r);for(let o in t.attrs)e.setAttribute(Ku.has(o)?o:Tn(o),t.attrs[o])}var _n={};function h0(e){Object.assign(_n,e)}function Xu(e,{layout:t,layoutId:a}){return Pt.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!_n[e]||e==="opacity")}function zn(e,t,a){var r;let{style:o}=e,n={};for(let s in o)(ye(o[s])||t.style&&ye(t.style[s])||Xu(s,e)||((r=a?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(n[s]=o[s]);return n}function Qu(e,t,a){let r=zn(e,t,a);for(let o in e)if(ye(e[o])||ye(t[o])){let n=Ca.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o]}return r}function Yb(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}var g0=["x","y","width","height","cx","cy","r"],x0={useVisualState:Hu({scrapeMotionValuesFromProps:Qu,createRenderState:Gu,onUpdate:({props:e,prevProps:t,current:a,renderState:r,latestValues:o})=>{if(!a)return;let n=!!e.drag;if(!n){for(let i in o)if(Pt.has(i)){n=!0;break}}if(!n)return;let s=!t;if(t)for(let i=0;i<g0.length;i++){let l=g0[i];e[l]!==t[l]&&(s=!0)}s&&Q.read(()=>{Yb(a,r),Q.render(()=>{On(r,o,Un(a.tagName),e.transformTemplate),$u(a,r)})})}})};var y0={useVisualState:Hu({scrapeMotionValuesFromProps:zn,createRenderState:Vn})};var Hn=M(G(),1);var v0=M(G(),1);function Gp(e,t,a){for(let r in t)!ye(t[r])&&!Xu(r,a)&&(e[r]=t[r])}function Zb({transformTemplate:e},t){return(0,v0.useMemo)(()=>{let a=Vn();return Bn(a,t,e),Object.assign({},a.vars,a.style)},[t])}function Jb(e,t){let a=e.style||{},r={};return Gp(r,a,e),Object.assign(r,Zb(e,t)),r}function L0(e,t){let a={},r=Jb(e,t);return e.drag&&e.dragListener!==!1&&(a.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)&&(a.tabIndex=0),a.style=r,a}var C0=M(G(),1);function S0(e,t,a,r){let o=(0,C0.useMemo)(()=>{let n=Gu();return On(n,t,Un(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};Gp(n,e.style,e),o.style={...n,...o.style}}return o}function I0(e=!1){return(a,r,o,{latestValues:n},s)=>{let l=(Dn(a)?S0:L0)(r,n,s,a),u=qv(r,typeof a=="string",e),d=a!==Hn.Fragment?{...u,...l,ref:o}:{},{children:c}=r,f=(0,Hn.useMemo)(()=>ye(c)?c.get():c,[c]);return(0,Hn.createElement)(a,{...d,children:f})}}function w0(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Dn(r)?x0:y0,preloadedFeatures:e,useRender:I0(o),createVisualElement:t,Component:r};return t0(s)}}function jp(e,t){if(!Array.isArray(t))return!1;let a=t.length;if(a!==e.length)return!1;for(let r=0;r<a;r++)if(t[r]!==e[r])return!1;return!0}function Er(e,t,a){let r=e.getProps();return Mn(r,t,a!==void 0?a:r.custom,e)}var Kp=xo(()=>window.ScrollTimeline!==void 0);var Pi=class{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,a){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=a}attachTimeline(t,a){let r=this.animations.map(o=>{if(Kp()&&o.attachTimeline)return o.attachTimeline(t);if(typeof a=="function")return a(o)});return()=>{r.forEach((o,n)=>{o&&o(),this.animations[n].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 a=0;a<this.animations.length;a++)t=Math.max(t,this.animations[a].duration);return t}runAll(t){this.animations.forEach(a=>a[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var Ti=class extends Pi{then(t,a){return Promise.all(this.animations).then(t).catch(a)}};function Fr(e,t){return e?e[t]||e.default||e:void 0}function qn(e){let t=0,a=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=a,r=e.next(t);return t>=2e4?1/0:t}function Br(e){return typeof e=="function"}function Ai(e,t){e.timeline=t,e.onfinish=null}var Wn=e=>Array.isArray(e)&&typeof e[0]=="number";var Xp={linearEasing:void 0};function k0(e,t){let a=xo(e);return()=>{var r;return(r=Xp[t])!==null&&r!==void 0?r:a()}}var Or=k0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ri=(e,t,a=10)=>{let r="",o=Math.max(Math.round(t/a),2);for(let n=0;n<o;n++)r+=e(Ut(0,o-1,n))+", ";return`linear(${r.substring(0,r.length-2)})`};function Zu(e){return!!(typeof e=="function"&&Or()||!e||typeof e=="string"&&(e in Yu||Or())||Wn(e)||Array.isArray(e)&&e.every(Zu))}var Gn=([e,t,a,r])=>`cubic-bezier(${e}, ${t}, ${a}, ${r})`,Yu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gn([0,.65,.55,1]),circOut:Gn([.55,0,1,.45]),backIn:Gn([.31,.01,.66,-.59]),backOut:Gn([.33,1.53,.69,.99])};function jn(e,t){if(e)return typeof e=="function"&&Or()?Ri(e,t):Wn(e)?Gn(e):Array.isArray(e)?e.map(a=>jn(a,t)||Yu.easeOut):Yu[e]}var zt={x:!1,y:!1};function Kn(){return zt.x||zt.y}function Qp(e,t,a){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let n=(r=a?.[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}function Ju(e,t){let a=Qp(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[a,o,()=>r.abort()]}function b0(e){return t=>{t.pointerType==="touch"||Kn()||e(t)}}function Yp(e,t,a={}){let[r,o,n]=Ju(e,a),s=b0(i=>{let{target:l}=i,u=t(i);if(typeof u!="function"||!l)return;let d=b0(c=>{u(c),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(i=>{i.addEventListener("pointerenter",s,o)}),n}var ed=(e,t)=>t?e===t?!0:ed(e,t.parentElement):!1;var vo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var eP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function P0(e){return eP.has(e.tagName)||e.tabIndex!==-1}var Lo=new WeakSet;function T0(e){return t=>{t.key==="Enter"&&e(t)}}function Zp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var A0=(e,t)=>{let a=e.currentTarget;if(!a)return;let r=T0(()=>{if(Lo.has(a))return;Zp(a,"down");let o=T0(()=>{Zp(a,"up")}),n=()=>Zp(a,"cancel");a.addEventListener("keyup",o,t),a.addEventListener("blur",n,t)});a.addEventListener("keydown",r,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),t)};function R0(e){return vo(e)&&!Kn()}function Jp(e,t,a={}){let[r,o,n]=Ju(e,a),s=i=>{let l=i.currentTarget;if(!R0(i)||Lo.has(l))return;Lo.add(l);let u=t(i),d=(g,v)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),!(!R0(g)||!Lo.has(l))&&(Lo.delete(l),typeof u=="function"&&u(g,{success:v}))},c=g=>{d(g,a.useGlobalTarget||ed(l,g.target))},f=g=>{d(g,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",f,o)};return r.forEach(i=>{!P0(i)&&i.getAttribute("tabindex")===null&&(i.tabIndex=0),(a.useGlobalTarget?window:i).addEventListener("pointerdown",s,o),i.addEventListener("focus",u=>A0(u,o),o)}),n}function em(e){return e==="x"||e==="y"?zt[e]?null:(zt[e]=!0,()=>{zt[e]=!1}):zt.x||zt.y?null:(zt.x=zt.y=!0,()=>{zt.x=zt.y=!1})}var td=new Set(["width","height","top","left","right","bottom",...Ca]);var ad;function aP(){ad=void 0}var it={now:()=>(ad===void 0&&it.set(Ee.isProcessing||Pn.useManualTiming?Ee.timestamp:performance.now()),ad),set:e=>{ad=e,queueMicrotask(aP)}};function $n(e,t){e.indexOf(t)===-1&&e.push(t)}function Xn(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var Vr=class{constructor(){this.subscriptions=[]}add(t){return $n(this.subscriptions,t),()=>Xn(this.subscriptions,t)}notify(t,a,r){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,a,r);else for(let n=0;n<o;n++){let s=this.subscriptions[n];s&&s(t,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function rd(e,t){return t?e*(1e3/t):0}var M0=30,rP=e=>!isNaN(parseFloat(e)),N0={current:void 0},tm=class{constructor(t,a={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{let n=it.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=it.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Vr);let r=this.events[t].add(a);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t,a=!0){!a||!this.passiveEffect?this.updateAndNotify(t,a):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return N0.current&&N0.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=it.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>M0)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,M0);return rd(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),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 Ja(e,t){return new tm(e,t)}function oP(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Ja(a))}function E0(e,t){let a=Er(e,t),{transitionEnd:r={},transition:o={},...n}=a||{};n={...n,...r};for(let s in n){let i=n0(n[s]);oP(e,s,i)}}function F0(e){return!!(ye(e)&&e.add)}function Di(e,t){let a=e.getValue("willChange");if(F0(a))return a.add(t)}function od(e){return e.props[Uu]}var nd={current:!1};var B0=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,nP=1e-7,sP=12;function iP(e,t,a,r,o){let n,s,i=0;do s=t+(a-t)/2,n=B0(s,r,o)-e,n>0?a=s:t=s;while(Math.abs(n)>nP&&++i<sP);return s}function Ur(e,t,a,r){if(e===t&&a===r)return me;let o=n=>iP(n,0,1,e,a);return n=>n===0||n===1?n:B0(o(n),t,r)}var sd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var id=e=>t=>1-e(1-t);var am=Ur(.33,1.53,.69,.99),Mi=id(am),ld=sd(Mi);var ud=e=>(e*=2)<1?.5*Mi(e):.5*(2-Math.pow(2,-10*(e-1)));var dd=e=>1-Math.sin(Math.acos(e)),cd=id(dd),fd=sd(dd);var pd=e=>/^0[^.\s]+$/u.test(e);function O0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||pd(e):!0}var _r=e=>Math.round(e*1e5)/1e5;var Qn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function V0(e){return e==null}var U0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Yn=(e,t)=>a=>!!(typeof a=="string"&&U0.test(a)&&a.startsWith(e)||t&&!V0(a)&&Object.prototype.hasOwnProperty.call(a,t)),md=(e,t,a)=>r=>{if(typeof r!="string")return r;let[o,n,s,i]=r.match(Qn);return{[e]:parseFloat(o),[t]:parseFloat(n),[a]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var lP=e=>Ze(0,255,e),rm={...Sa,transform:e=>Math.round(lP(e))},wa={test:Yn("rgb","red"),parse:md("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:r=1})=>"rgba("+rm.transform(e)+", "+rm.transform(t)+", "+rm.transform(a)+", "+_r(Za.transform(r))+")"};function uP(e){let t="",a="",r="",o="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,a+=a,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}var Ni={test:Yn("#"),parse:uP,transform:wa.transform};var zr={test:Yn("hsl","hue"),parse:md("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+mt.transform(_r(t))+", "+mt.transform(_r(a))+", "+_r(Za.transform(r))+")"};var Oe={test:e=>wa.test(e)||Ni.test(e)||zr.test(e),parse:e=>wa.test(e)?wa.parse(e):zr.test(e)?zr.parse(e):Ni.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?wa.transform(e):zr.transform(e)};var _0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dP(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Qn))===null||t===void 0?void 0:t.length)||0)+(((a=e.match(_0))===null||a===void 0?void 0:a.length)||0)>0}var H0="number",q0="color",cP="var",fP="var(",z0="${}",pP=/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 Co(e){let t=e.toString(),a=[],r={color:[],number:[],var:[]},o=[],n=0,i=t.replace(pP,l=>(Oe.test(l)?(r.color.push(n),o.push(q0),a.push(Oe.parse(l))):l.startsWith(fP)?(r.var.push(n),o.push(cP),a.push(l)):(r.number.push(n),o.push(H0),a.push(parseFloat(l))),++n,z0)).split(z0);return{values:a,split:i,indexes:r,types:o}}function W0(e){return Co(e).values}function G0(e){let{split:t,types:a}=Co(e),r=t.length;return o=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],o[s]!==void 0){let i=a[s];i===H0?n+=_r(o[s]):i===q0?n+=Oe.transform(o[s]):n+=o[s]}return n}}var mP=e=>typeof e=="number"?0:e;function hP(e){let t=W0(e);return G0(e)(t.map(mP))}var ht={test:dP,parse:W0,createTransformer:G0,getAnimatableNone:hP};var gP=new Set(["brightness","contrast","saturate","opacity"]);function xP(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=a.match(Qn)||[];if(!r)return e;let o=a.replace(r,""),n=gP.has(t)?1:0;return r!==a&&(n*=100),t+"("+n+o+")"}var yP=/\b([a-z-]*)\(.*?\)/gu,Ei={...ht,getAnimatableNone:e=>{let t=e.match(yP);return t?t.map(xP).join(" "):e}};var vP={...Fn,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:Ei,WebkitFilter:Ei},Zn=e=>vP[e];function hd(e,t){let a=Zn(e);return a!==Ei&&(a=ht),a.getAnimatableNone?a.getAnimatableNone(t):void 0}var LP=new Set(["auto","none","0"]);function j0(e,t,a){let r=0,o;for(;r<e.length&&!o;){let n=e[r];typeof n=="string"&&!LP.has(n)&&Co(n).values.length&&(o=e[r]),r++}if(o&&a)for(let n of t)e[n]=hd(a,o)}var om=e=>e===Sa||e===H,K0=(e,t)=>parseFloat(e.split(", ")[t]),$0=(e,t)=>(a,{transform:r})=>{if(r==="none"||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/u);if(o)return K0(o[1],t);{let n=r.match(/^matrix\((.+)\)$/u);return n?K0(n[1],e):0}},CP=new Set(["x","y","z"]),SP=Ca.filter(e=>!CP.has(e));function X0(e){let t=[];return SP.forEach(a=>{let r=e.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}var So={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),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:$0(4,13),y:$0(5,14)};So.translateX=So.x;So.translateY=So.y;var Io=new Set,nm=!1,sm=!1;function Q0(){if(sm){let e=Array.from(Io).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),a=new Map;t.forEach(r=>{let o=X0(r);o.length&&(a.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let o=a.get(r);o&&o.forEach(([n,s])=>{var i;(i=r.getValue(n))===null||i===void 0||i.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}sm=!1,nm=!1,Io.forEach(e=>e.complete()),Io.clear()}function Y0(){Io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sm=!0)})}function Z0(){Y0(),Q0()}var Hr=class{constructor(t,a,r,o,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=r,this.motionValue=o,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Io.add(this),nm||(nm=!0,Q.read(Y0),Q.resolveKeyframes(Q0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:a,element:r,motionValue:o}=this;for(let n=0;n<t.length;n++)if(t[n]===null)if(n===0){let s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&a){let l=r.readValue(a,i);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Io.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Io.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var gd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var IP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wP(e){let t=IP.exec(e);if(!t)return[,];let[,a,r,o]=t;return[`--${a??r}`,o]}var kP=4;function im(e,t,a=1){fa(a<=kP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=wP(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return gd(s)?parseFloat(s):s}return En(o)?im(o,t,a+1):o}var xd=e=>t=>t.test(e);var J0={test:e=>e==="auto",parse:e=>e};var lm=[Sa,H,mt,Ia,l0,i0,J0],um=e=>lm.find(xd(e));var Jn=class extends Hr{constructor(t,a,r,o,n){super(t,a,r,o,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),En(u))){let d=im(u,a.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!td.has(r)||t.length!==2)return;let[o,n]=t,s=um(o),i=um(n);if(s!==i)if(om(s)&&om(i))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:a}=this,r=[];for(let o=0;o<t.length;o++)O0(t[o])&&r.push(o);r.length&&j0(t,r,a)}measureInitialState(){let{element:t,unresolvedKeyframes:a,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=So[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;let o=a[a.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;let{element:a,name:r,unresolvedKeyframes:o}=this;if(!a||!a.current)return;let n=a.getValue(r);n&&n.jump(this.measuredOrigin,!1);let s=o.length-1,i=o[s];o[s]=So[r](a.measureViewportBox(),window.getComputedStyle(a.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{a.getValue(l).set(u)}),this.resolveNoneKeyframes()}};var dm=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ht.test(e)||e==="0")&&!e.startsWith("url("));function bP(e){let t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function eL(e,t,a,r){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=dm(o,t),i=dm(n,t);return $a(s===i,`You are trying to animate ${t} from "${o}" to "${n}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${n} via the \`style\` property.`),!s||!i?!1:bP(e)||(a==="spring"||Br(a))&&r}var PP=e=>e!==null;function qr(e,{repeat:t,repeatType:a="loop"},r){let o=e.filter(PP),n=t&&a!=="loop"&&t%2===1?0:o.length-1;return!n||r===void 0?o[n]:r}var TP=40,es=class{constructor({autoplay:t=!0,delay:a=0,type:r="keyframes",repeat:o=0,repeatDelay:n=0,repeatType:s="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=it.now(),this.options={autoplay:t,delay:a,type:r,repeat:o,repeatDelay:n,repeatType:s,...i},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>TP?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Z0(),this._resolved}onKeyframesResolved(t,a){this.resolvedAt=it.now(),this.hasAttemptedResolve=!0;let{name:r,type:o,velocity:n,delay:s,onComplete:i,onUpdate:l,isGenerator:u}=this.options;if(!u&&!eL(t,r,o,n))if(nd.current||!s){l&&l(qr(t,this.options,a)),i&&i(),this.resolveFinishedPromise();return}else this.options.duration=0;let d=this.initPlayback(t,a);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:a,...d},this.onPostResolved())}onPostResolved(){}then(t,a){return this.currentFinishedPromise.then(t,a)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};var re=(e,t,a)=>e+(t-e)*a;function cm(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function tL({hue:e,saturation:t,lightness:a,alpha:r}){e/=360,t/=100,a/=100;let o=0,n=0,s=0;if(!t)o=n=s=a;else{let i=a<.5?a*(1+t):a+t-a*t,l=2*a-i;o=cm(l,i,e+1/3),n=cm(l,i,e),s=cm(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function ts(e,t){return a=>a>0?t:e}var fm=(e,t,a)=>{let r=e*e,o=a*(t*t-r)+r;return o<0?0:Math.sqrt(o)},AP=[Ni,wa,zr],RP=e=>AP.find(t=>t.test(e));function aL(e){let t=RP(e);if($a(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let a=t.parse(e);return t===zr&&(a=tL(a)),a}var pm=(e,t)=>{let a=aL(e),r=aL(t);if(!a||!r)return ts(e,t);let o={...a};return n=>(o.red=fm(a.red,r.red,n),o.green=fm(a.green,r.green,n),o.blue=fm(a.blue,r.blue,n),o.alpha=re(a.alpha,r.alpha,n),wa.transform(o))};var DP=(e,t)=>a=>t(e(a)),ka=(...e)=>e.reduce(DP);var yd=new Set(["none","hidden"]);function rL(e,t){return yd.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function MP(e,t){return a=>re(e,t,a)}function vd(e){return typeof e=="number"?MP:typeof e=="string"?En(e)?ts:Oe.test(e)?pm:FP:Array.isArray(e)?oL:typeof e=="object"?Oe.test(e)?pm:NP:ts}function oL(e,t){let a=[...e],r=a.length,o=e.map((n,s)=>vd(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)a[s]=o[s](n);return a}}function NP(e,t){let a={...e,...t},r={};for(let o in a)e[o]!==void 0&&t[o]!==void 0&&(r[o]=vd(e[o])(e[o],t[o]));return o=>{for(let n in r)a[n]=r[n](o);return a}}function EP(e,t){var a;let r=[],o={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let s=t.types[n],i=e.indexes[s][o[s]],l=(a=e.values[i])!==null&&a!==void 0?a:0;r[n]=l,o[s]++}return r}var FP=(e,t)=>{let a=ht.createTransformer(t),r=Co(e),o=Co(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?yd.has(e)&&!o.values.length||yd.has(t)&&!r.values.length?rL(e,t):ka(oL(EP(r,o),o.values),a):($a(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ts(e,t))};function Ld(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?re(e,t,a):vd(e)(e,t)}var BP=5;function Cd(e,t,a){let r=Math.max(t-BP,0);return rd(a-e(r),t-r)}var Se={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};var mm=.001;function nL({duration:e=Se.duration,bounce:t=Se.bounce,velocity:a=Se.velocity,mass:r=Se.mass}){let o,n;$a(e<=Ne(Se.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Ze(Se.minDamping,Se.maxDamping,s),e=Ze(Se.minDuration,Se.maxDuration,Ye(e)),s<1?(o=u=>{let d=u*s,c=d*e,f=d-a,g=Sd(u,s),v=Math.exp(-c);return mm-f/g*v},n=u=>{let c=u*s*e,f=c*a+a,g=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-c),C=Sd(Math.pow(u,2),s);return(-o(u)+mm>0?-1:1)*((f-g)*v)/C}):(o=u=>{let d=Math.exp(-u*e),c=(u-a)*e+1;return-mm+d*c},n=u=>{let d=Math.exp(-u*e),c=(a-u)*(e*e);return d*c});let i=5/e,l=VP(o,n,i);if(e=Ne(e),isNaN(l))return{stiffness:Se.stiffness,damping:Se.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var OP=12;function VP(e,t,a){let r=a;for(let o=1;o<OP;o++)r=r-e(r)/t(r);return r}function Sd(e,t){return e*Math.sqrt(1-t*t)}var UP=["duration","bounce"],_P=["stiffness","damping","mass"];function sL(e,t){return t.some(a=>e[a]!==void 0)}function zP(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!sL(e,_P)&&sL(e,UP))if(e.visualDuration){let a=e.visualDuration,r=2*Math.PI/(a*1.2),o=r*r,n=2*Ze(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Se.mass,stiffness:o,damping:n}}else{let a=nL(e);t={...t,...a,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function Id(e=Se.visualDuration,t=Se.bounce){let a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:o}=a,n=a.keyframes[0],s=a.keyframes[a.keyframes.length-1],i={done:!1,value:n},{stiffness:l,damping:u,mass:d,duration:c,velocity:f,isResolvedFromDuration:g}=zP({...a,velocity:-Ye(a.velocity||0)}),v=f||0,C=u/(2*Math.sqrt(l*d)),I=s-n,m=Ye(Math.sqrt(l/d)),h=Math.abs(I)<5;r||(r=h?Se.restSpeed.granular:Se.restSpeed.default),o||(o=h?Se.restDelta.granular:Se.restDelta.default);let x;if(C<1){let k=Sd(m,C);x=T=>{let D=Math.exp(-C*m*T);return s-D*((v+C*m*I)/k*Math.sin(k*T)+I*Math.cos(k*T))}}else if(C===1)x=k=>s-Math.exp(-m*k)*(I+(v+m*I)*k);else{let k=m*Math.sqrt(C*C-1);x=T=>{let D=Math.exp(-C*m*T),A=Math.min(k*T,300);return s-D*((v+C*m*I)*Math.sinh(A)+k*I*Math.cosh(A))/k}}let S={calculatedDuration:g&&c||null,next:k=>{let T=x(k);if(g)i.done=k>=c;else{let D=0;C<1&&(D=k===0?Ne(v):Cd(x,k,T));let A=Math.abs(D)<=r,B=Math.abs(s-T)<=o;i.done=A&&B}return i.value=i.done?s:T,i},toString:()=>{let k=Math.min(qn(S),2e4),T=Ri(D=>S.next(k*D).value,k,30);return k+"ms "+T}};return S}function hm({keyframes:e,velocity:t=0,power:a=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:d}){let c=e[0],f={done:!1,value:c},g=A=>i!==void 0&&A<i||l!==void 0&&A>l,v=A=>i===void 0?l:l===void 0||Math.abs(i-A)<Math.abs(l-A)?i:l,C=a*t,I=c+C,m=s===void 0?I:s(I);m!==I&&(C=m-c);let h=A=>-C*Math.exp(-A/r),x=A=>m+h(A),S=A=>{let B=h(A),V=x(A);f.done=Math.abs(B)<=u,f.value=f.done?m:V},k,T,D=A=>{g(f.value)&&(k=A,T=Id({keyframes:[f.value,v(f.value)],velocity:Cd(x,A,f.value),damping:o,stiffness:n,restDelta:u,restSpeed:d}))};return D(0),{calculatedDuration:null,next:A=>{let B=!1;return!T&&k===void 0&&(B=!0,S(A),D(A)),k!==void 0&&A>=k?T.next(A-k):(!B&&S(A),f)}}}var iL=Ur(.42,0,1,1),lL=Ur(0,0,.58,1),wd=Ur(.42,0,.58,1);var uL=e=>Array.isArray(e)&&typeof e[0]!="number";var dL={linear:me,easeIn:iL,easeInOut:wd,easeOut:lL,circIn:dd,circInOut:fd,circOut:cd,backIn:Mi,backInOut:ld,backOut:am,anticipate:ud},gm=e=>{if(Wn(e)){fa(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,a,r,o]=e;return Ur(t,a,r,o)}else if(typeof e=="string")return fa(dL[e]!==void 0,`Invalid easing type '${e}'`),dL[e];return e};function HP(e,t,a){let r=[],o=a||Ld,n=e.length-1;for(let s=0;s<n;s++){let i=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||me:t;i=ka(l,i)}r.push(i)}return r}function cL(e,t,{clamp:a=!0,ease:r,mixer:o}={}){let n=e.length;if(fa(n===t.length,"Both input and output ranges must be the same length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=HP(t,r,o),l=i.length,u=d=>{if(s&&d<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(d<e[c+1]);c++);let f=Ut(e[c],e[c+1],d);return i[c](f)};return a?d=>u(Ze(e[0],e[n-1],d)):u}function fL(e,t){let a=e[e.length-1];for(let r=1;r<=t;r++){let o=Ut(0,t,r);e.push(re(a,1,o))}}function pL(e){let t=[0];return fL(t,e.length-1),t}function mL(e,t){return e.map(a=>a*t)}function qP(e,t){return e.map(()=>t||wd).splice(0,e.length-1)}function Fi({duration:e=300,keyframes:t,times:a,ease:r="easeInOut"}){let o=uL(r)?r.map(gm):gm(r),n={done:!1,value:t[0]},s=mL(a&&a.length===t.length?a:pL(t),e),i=cL(s,t,{ease:Array.isArray(o)?o:qP(t,o)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var hL=e=>{let t=({timestamp:a})=>e(a);return{start:()=>Q.update(t,!0),stop:()=>_t(t),now:()=>Ee.isProcessing?Ee.timestamp:it.now()}};var WP={decay:hm,inertia:hm,tween:Fi,keyframes:Fi,spring:Id},GP=e=>e/100,wo=class extends es{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();let{onStop:l}=this.options;l&&l()};let{name:a,motionValue:r,element:o,keyframes:n}=this.options,s=o?.KeyframeResolver||Hr,i=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(n,i,a,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:a="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:n,velocity:s=0}=this.options,i=Br(a)?a:WP[a]||Fi,l,u;i!==Fi&&typeof t[0]!="number"&&(l=ka(GP,Ld(t[0],t[1])),t=[0,100]);let d=i({...this.options,keyframes:t});n==="mirror"&&(u=i({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=qn(d));let{calculatedDuration:c}=d,f=c+o,g=f*(r+1)-o;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:c,resolvedDuration:f,totalDuration:g}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,a=!1){let{resolved:r}=this;if(!r){let{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}let{finalKeyframe:o,generator:n,mirroredGenerator:s,mapPercentToKeyframes:i,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:c}=r;if(this.startTime===null)return n.next(0);let{delay:f,repeat:g,repeatType:v,repeatDelay:C,onUpdate:I}=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)),a?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let m=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let x=this.currentTime,S=n;if(g){let A=Math.min(this.currentTime,d)/c,B=Math.floor(A),V=A%1;!V&&A>=1&&(V=1),V===1&&B--,B=Math.min(B,g+1),B%2&&(v==="reverse"?(V=1-V,C&&(V-=C/c)):v==="mirror"&&(S=s)),x=Ze(0,1,V)*c}let k=h?{done:!1,value:l[0]}:S.next(x);i&&(k.value=i(k.value));let{done:T}=k;!h&&u!==null&&(T=this.speed>=0?this.currentTime>=d:this.currentTime<=0);let D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return D&&o!==void 0&&(k.value=qr(l,this.options,o)),I&&I(k.value),D&&this.finish(),k}get duration(){let{resolved:t}=this;return t?Ye(t.calculatedDuration):0}get time(){return Ye(this.currentTime)}set time(t){t=Ne(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){let a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=Ye(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=hL,onPlay:a,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),a&&a();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):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";let{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)}};var gL=new Set(["opacity","clipPath","filter","transform"]);function xL(e,t,a,{delay:r=0,duration:o=300,repeat:n=0,repeatType:s="loop",ease:i="easeInOut",times:l}={}){let u={[t]:a};l&&(u.offset=l);let d=jn(i,o);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"})}var yL=xo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var kd=10,jP=2e4;function KP(e){return Br(e.type)||e.type==="spring"||!Zu(e.ease)}function $P(e,t){let a=new wo({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},o=[],n=0;for(;!r.done&&n<jP;)r=a.sample(n),o.push(r.value),n+=kd;return{times:void 0,keyframes:o,duration:n-kd,ease:"linear"}}var vL={anticipate:ud,backInOut:ld,circInOut:fd};function XP(e){return e in vL}var Bi=class extends es{constructor(t){super(t);let{name:a,motionValue:r,element:o,keyframes:n}=this.options;this.resolver=new Jn(n,(s,i)=>this.onKeyframesResolved(s,i),a,r,o),this.resolver.scheduleResolve()}initPlayback(t,a){let{duration:r=300,times:o,ease:n,type:s,motionValue:i,name:l,startTime:u}=this.options;if(!i.owner||!i.owner.current)return!1;if(typeof n=="string"&&Or()&&XP(n)&&(n=vL[n]),KP(this.options)){let{onComplete:c,onUpdate:f,motionValue:g,element:v,...C}=this.options,I=$P(t,C);t=I.keyframes,t.length===1&&(t[1]=t[0]),r=I.duration,o=I.times,n=I.ease,s="keyframes"}let d=xL(i.owner.current,l,t,{...this.options,duration:r,times:o,ease:n});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Ai(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:c}=this.options;i.set(qr(t,this.options,a)),c&&c(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:s,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:a}=t;return Ye(a)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:a}=t;return Ye(a.currentTime||0)}set time(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.currentTime=Ne(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:a}=t;return a.playbackRate}set speed(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:a}=t;return a.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:a}=t;return a.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:a}=this;if(!a)return me;let{animation:r}=a;Ai(r,t)}return me}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:a}=t;a.playState==="finished"&&this.updateFinishedPromise(),a.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:a}=t;a.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:a,keyframes:r,duration:o,type:n,ease:s,times:i}=t;if(a.playState==="idle"||a.playState==="finished")return;if(this.time){let{motionValue:u,onUpdate:d,onComplete:c,element:f,...g}=this.options,v=new wo({...g,keyframes:r,duration:o,type:n,ease:s,times:i,isGenerator:!0}),C=Ne(this.time);u.setWithVelocity(v.sample(C-kd).value,v.sample(C).value,kd)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:a,name:r,repeatDelay:o,repeatType:n,damping:s,type:i}=t;if(!a||!a.owner||!(a.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=a.owner.getProps();return yL()&&r&&gL.has(r)&&!l&&!u&&!o&&n!=="mirror"&&s!==0&&i!=="inertia"}};var QP={type:"spring",stiffness:500,damping:25,restSpeed:10},YP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZP={type:"keyframes",duration:.8},JP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LL=(e,{keyframes:t})=>t.length>2?ZP:Pt.has(e)?e.startsWith("scale")?YP(t[1]):QP:JP;function CL({when:e,delay:t,delayChildren:a,staggerChildren:r,staggerDirection:o,repeat:n,repeatType:s,repeatDelay:i,from:l,elapsed:u,...d}){return!!Object.keys(d).length}var as=(e,t,a,r={},o,n)=>s=>{let i=Fr(r,e)||{},l=i.delay||r.delay||0,{elapsed:u=0}=r;u=u-Ne(l);let d={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:n?void 0:o};CL(i)||(d={...d,...LL(e,d)}),d.duration&&(d.duration=Ne(d.duration)),d.repeatDelay&&(d.repeatDelay=Ne(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let c=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(c=!0)),(nd.current||Pn.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!n&&t.get()!==void 0){let f=qr(d.keyframes,i);if(f!==void 0)return Q.update(()=>{d.onUpdate(f),d.onComplete()}),new Ti([])}return!n&&Bi.supports(d)?new Bi(d):new wo(d)};function e1({protectedKeys:e,needsAnimating:t},a){let r=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function bd(e,t,{delay:a=0,transitionOverride:r,type:o}={}){var n;let{transition:s=e.getDefaultTransition(),transitionEnd:i,...l}=t;r&&(s=r);let u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(let c in l){let f=e.getValue(c,(n=e.latestValues[c])!==null&&n!==void 0?n:null),g=l[c];if(g===void 0||d&&e1(d,c))continue;let v={delay:a,...Fr(s||{},c)},C=!1;if(window.MotionHandoffAnimation){let m=od(e);if(m){let h=window.MotionHandoffAnimation(m,c,Q);h!==null&&(v.startTime=h,C=!0)}}Di(e,c),f.start(as(c,f,g,e.shouldReduceMotion&&td.has(c)?{type:!1}:v,e,C));let I=f.animation;I&&u.push(I)}return i&&Promise.all(u).then(()=>{Q.update(()=>{i&&E0(e,i)})}),u}function Pd(e,t,a={}){var r;let o=Er(e,t,a.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(n=a.transitionOverride);let s=o?()=>Promise.all(bd(e,o,a)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:d=0,staggerChildren:c,staggerDirection:f}=n;return t1(e,t,d+u,c,f,a)}:()=>Promise.resolve(),{when:l}=n;if(l){let[u,d]=l==="beforeChildren"?[s,i]:[i,s];return u().then(()=>d())}else return Promise.all([s(),i(a.delay)])}function t1(e,t,a=0,r=0,o=1,n){let s=[],i=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>i-u*r;return Array.from(e.variantChildren).sort(a1).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(Pd(u,t,{...n,delay:a+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function a1(e,t){return e.sortNodePosition(t)}function SL(e,t,a={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let o=t.map(n=>Pd(e,n,a));r=Promise.all(o)}else if(typeof t=="string")r=Pd(e,t,a);else{let o=typeof t=="function"?Er(e,t,a.custom):t;r=Promise.all(bd(e,o,a))}return r.then(()=>{e.notify("AnimationComplete",t)})}var r1=Ii.length;function xm(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?xm(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;a<r1;a++){let r=Ii[a],o=e.props[r];(Qa(o)||o===!1)&&(t[r]=o)}return t}var o1=[...Bu].reverse(),n1=Bu.length;function s1(e){return t=>Promise.all(t.map(({animation:a,options:r})=>SL(e,a,r)))}function wL(e){let t=s1(e),a=IL(),r=!0,o=l=>(u,d)=>{var c;let f=Er(e,d,l==="exit"?(c=e.presenceContext)===null||c===void 0?void 0:c.custom:void 0);if(f){let{transition:g,transitionEnd:v,...C}=f;u={...u,...C,...v}}return u};function n(l){t=l(e)}function s(l){let{props:u}=e,d=xm(e.parent)||{},c=[],f=new Set,g={},v=1/0;for(let I=0;I<n1;I++){let m=o1[I],h=a[m],x=u[m]!==void 0?u[m]:d[m],S=Qa(x),k=m===l?h.isActive:null;k===!1&&(v=I);let T=x===d[m]&&x!==u[m]&&S;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),h.protectedKeys={...g},!h.isActive&&k===null||!x&&!h.prevProp||Nr(x)||typeof x=="boolean")continue;let D=i1(h.prevProp,x),A=D||m===l&&h.isActive&&!T&&S||I>v&&S,B=!1,V=Array.isArray(x)?x:[x],de=V.reduce(o(m),{});k===!1&&(de={});let{prevResolvedValues:se={}}=h,jr={...se,...de},Z=De=>{A=!0,f.has(De)&&(B=!0,f.delete(De)),h.needsAnimating[De]=!0;let Ve=e.getValue(De);Ve&&(Ve.liveStyle=!1)};for(let De in jr){let Ve=de[De],gt=se[De];if(g.hasOwnProperty(De))continue;let Wt=!1;wi(Ve)&&wi(gt)?Wt=!jp(Ve,gt):Wt=Ve!==gt,Wt?Ve!=null?Z(De):f.add(De):Ve!==void 0&&f.has(De)?Z(De):h.protectedKeys[De]=!0}h.prevProp=x,h.prevResolvedValues=de,h.isActive&&(g={...g,...de}),r&&e.blockInitialAnimation&&(A=!1),A&&(!(T&&D)||B)&&c.push(...V.map(De=>({animation:De,options:{type:m}})))}if(f.size){let I={};f.forEach(m=>{let h=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),I[m]=h??null}),c.push({animation:I})}let C=!!c.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(c):Promise.resolve()}function i(l,u){var d;if(a[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),a[l].isActive=u;let c=s(l);for(let f in a)a[f].protectedKeys={};return c}return{animateChanges:s,setActive:i,setAnimateFunction:n,getState:()=>a,reset:()=>{a=IL(),r=!0}}}function i1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jp(t,e):!1}function ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function IL(){return{animate:ko(!0),whileInView:ko(),whileHover:ko(),whileTap:ko(),whileDrag:ko(),whileFocus:ko(),exit:ko()}}var Ke=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Td=class extends Ke{constructor(t){super(t),t.animationState||(t.animationState=wL(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Nr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};var l1=0,Ad=class extends Ke{constructor(){super(...arguments),this.id=l1++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let o=this.node.animationState.setActive("exit",!t);a&&!t&&o.then(()=>a(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};var kL={animation:{Feature:Td},exit:{Feature:Ad}};function er(e,t,a,r={passive:!0}){return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a)}function tr(e){return{point:{x:e.pageX,y:e.pageY}}}var bL=e=>t=>vo(t)&&e(t,tr(t));function Wr(e,t,a,r){return er(e,t,bL(a),r)}var PL=(e,t)=>Math.abs(e-t);function TL(e,t){let a=PL(e.x,t.x),r=PL(e.y,t.y);return Math.sqrt(a**2+r**2)}var rs=class{constructor(t,a,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=vm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=TL(c.offset,{x:0,y:0})>=3;if(!f&&!g)return;let{point:v}=c,{timestamp:C}=Ee;this.history.push({...v,timestamp:C});let{onStart:I,onMove:m}=this.handlers;f||(I&&I(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=ym(f,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{this.end();let{onEnd:g,onSessionEnd:v,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let I=vm(c.type==="pointercancel"?this.lastMoveEventInfo:ym(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(c,I),v&&v(c,I)},!vo(t))return;this.dragSnapToOrigin=n,this.handlers=a,this.transformPagePoint=r,this.contextWindow=o||window;let s=tr(t),i=ym(s,this.transformPagePoint),{point:l}=i,{timestamp:u}=Ee;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=a;d&&d(t,vm(i,this.history)),this.removeListeners=ka(Wr(this.contextWindow,"pointermove",this.handlePointerMove),Wr(this.contextWindow,"pointerup",this.handlePointerUp),Wr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_t(this.updatePoint)}};function ym(e,t){return t?{point:t(e.point)}:e}function AL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vm({point:e},t){return{point:e,delta:AL(e,RL(t)),offset:AL(e,u1(t)),velocity:d1(t,.1)}}function u1(e){return e[0]}function RL(e){return e[e.length-1]}function d1(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null,o=RL(e);for(;a>=0&&(r=e[a],!(o.timestamp-r.timestamp>Ne(t)));)a--;if(!r)return{x:0,y:0};let n=Ye(o.timestamp-r.timestamp);if(n===0)return{x:0,y:0};let s={x:(o.x-r.x)/n,y:(o.y-r.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}var EL=1e-4,c1=1-EL,f1=1+EL,FL=.01,p1=0-FL,m1=0+FL;function Je(e){return e.max-e.min}function BL(e,t,a){return Math.abs(e-t)<=a}function DL(e,t,a,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=Je(a)/Je(t),e.translate=re(a.min,a.max,e.origin)-e.originPoint,(e.scale>=c1&&e.scale<=f1||isNaN(e.scale))&&(e.scale=1),(e.translate>=p1&&e.translate<=m1||isNaN(e.translate))&&(e.translate=0)}function os(e,t,a,r){DL(e.x,t.x,a.x,r?r.originX:void 0),DL(e.y,t.y,a.y,r?r.originY:void 0)}function ML(e,t,a){e.min=a.min+t.min,e.max=e.min+Je(t)}function OL(e,t,a){ML(e.x,t.x,a.x),ML(e.y,t.y,a.y)}function NL(e,t,a){e.min=t.min-a.min,e.max=e.min+Je(t)}function ns(e,t,a){NL(e.x,t.x,a.x),NL(e.y,t.y,a.y)}function HL(e,{min:t,max:a},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):a!==void 0&&e>a&&(e=r?re(a,e,r.max):Math.min(e,a)),e}function VL(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function qL(e,{top:t,left:a,bottom:r,right:o}){return{x:VL(e.x,a,o),y:VL(e.y,t,r)}}function UL(e,t){let a=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,r]=[r,a]),{min:a,max:r}}function WL(e,t){return{x:UL(e.x,t.x),y:UL(e.y,t.y)}}function GL(e,t){let a=.5,r=Je(e),o=Je(t);return o>r?a=Ut(t.min,t.max-r,e.min):r>o&&(a=Ut(e.min,e.max-o,t.min)),Ze(0,1,a)}function jL(e,t){let a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}var Rd=.35;function KL(e=Rd){return e===!1?e=0:e===!0&&(e=Rd),{x:_L(e,"left","right"),y:_L(e,"top","bottom")}}function _L(e,t,a){return{min:zL(e,t),max:zL(e,a)}}function zL(e,t){return typeof e=="number"?e:e[t]||0}var $L=()=>({translate:0,scale:1,origin:0,originPoint:0}),bo=()=>({x:$L(),y:$L()}),XL=()=>({min:0,max:0}),Ie=()=>({x:XL(),y:XL()});function Tt(e){return[e("x"),e("y")]}function Dd({top:e,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:e,max:r}}}function QL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YL(e,t){if(!t)return e;let a=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function Lm(e){return e===void 0||e===1}function Md({scale:e,scaleX:t,scaleY:a}){return!Lm(e)||!Lm(t)||!Lm(a)}function ar(e){return Md(e)||Cm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Cm(e){return ZL(e.x)||ZL(e.y)}function ZL(e){return e&&e!=="0%"}function Oi(e,t,a){let r=e-a,o=t*r;return a+o}function JL(e,t,a,r,o){return o!==void 0&&(e=Oi(e,o,r)),Oi(e,a,r)+t}function Sm(e,t=0,a=1,r,o){e.min=JL(e.min,t,a,r,o),e.max=JL(e.max,t,a,r,o)}function Im(e,{x:t,y:a}){Sm(e.x,t.translate,t.scale,t.originPoint),Sm(e.y,a.translate,a.scale,a.originPoint)}var eC=.999999999999,tC=1.0000000000001;function rC(e,t,a,r=!1){let o=a.length;if(!o)return;t.x=t.y=1;let n,s;for(let i=0;i<o;i++){n=a[i],s=n.projectionDelta;let{visualElement:l}=n.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&Po(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Im(e,s)),r&&ar(n.latestValues)&&Po(e,n.latestValues))}t.x<tC&&t.x>eC&&(t.x=1),t.y<tC&&t.y>eC&&(t.y=1)}function Gr(e,t){e.min=e.min+t,e.max=e.max+t}function aC(e,t,a,r,o=.5){let n=re(e.min,e.max,o);Sm(e,t,a,n,r)}function Po(e,t){aC(e.x,t.x,t.scaleX,t.scale,t.originX),aC(e.y,t.y,t.scaleY,t.scale,t.originY)}function wm(e,t){return Dd(YL(e.getBoundingClientRect(),t))}function oC(e,t,a){let r=wm(e,a),{scroll:o}=t;return o&&(Gr(r.x,o.offset.x),Gr(r.y,o.offset.y)),r}var Nd=({current:e})=>e?e.ownerDocument.defaultView:null;var h1=new WeakMap,Fd=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ie(),this.visualElement=t}start(t,{snapToCursor:a=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let o=d=>{let{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(tr(d).point)},n=(d,c)=>{let{drag:f,dragPropagation:g,onDragStart:v}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=em(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tt(I=>{let m=this.getAxisMotionValue(I).get()||0;if(mt.test(m)){let{projection:h}=this.visualElement;if(h&&h.layout){let x=h.layout.layoutBox[I];x&&(m=Je(x)*(parseFloat(m)/100))}}this.originPoint[I]=m}),v&&Q.postRender(()=>v(d,c)),Di(this.visualElement,"transform");let{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},s=(d,c)=>{let{dragPropagation:f,dragDirectionLock:g,onDirectionLock:v,onDrag:C}=this.getProps();if(!f&&!this.openDragLock)return;let{offset:I}=c;if(g&&this.currentDirection===null){this.currentDirection=g1(I),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",c.point,I),this.updateAxis("y",c.point,I),this.visualElement.render(),C&&C(d,c)},i=(d,c)=>this.stop(d,c),l=()=>Tt(d=>{var c;return this.getAnimationState(d)==="paused"&&((c=this.getAxisMotionValue(d).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new rs(t,{onSessionStart:o,onStart:n,onMove:s,onSessionEnd:i,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Nd(this.visualElement)})}stop(t,a){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:o}=a;this.startAnimation(o);let{onDragEnd:n}=this.getProps();n&&Q.postRender(()=>n(t,a))}cancel(){this.isDragging=!1;let{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,r){let{drag:o}=this.getProps();if(!r||!Ed(t,o,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=HL(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:a,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,n=this.constraints;a&&Ya(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=qL(o.layoutBox,a):this.constraints=!1,this.elastic=KL(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Tt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=jL(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Ya(t))return!1;let r=t.current;fa(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let n=oC(r,o.root,this.visualElement.getTransformPagePoint()),s=WL(o.layout.layoutBox,n);if(a){let i=a(QL(s));this.hasMutatedConstraints=!!i,i&&(s=Dd(i))}return s}startAnimation(t){let{drag:a,dragMomentum:r,dragElastic:o,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=Tt(d=>{if(!Ed(d,a,this.currentDirection))return;let c=l&&l[d]||{};s&&(c={min:0,max:0});let f=o?200:1e6,g=o?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...n,...c};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(i)}startAxisValueAnimation(t,a){let r=this.getAxisMotionValue(t);return Di(this.visualElement,t),r.start(as(t,r,0,a,this.visualElement,!1))}stopAnimation(){Tt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Tt(t=>{var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.pause()})}getAnimationState(t){var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.state}getAxisMotionValue(t){let a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[a];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Tt(a=>{let{drag:r}=this.getProps();if(!Ed(a,r,this.currentDirection))return;let{projection:o}=this.visualElement,n=this.getAxisMotionValue(a);if(o&&o.layout){let{min:s,max:i}=o.layout.layoutBox[a];n.set(t[a]-re(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!Ya(a)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};Tt(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let l=i.get();o[s]=GL({min:l,max:l},this.constraints[s])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Tt(s=>{if(!Ed(s,t,null))return;let i=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];i.set(re(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;h1.set(this.visualElement,this);let t=this.visualElement.current,a=Wr(t,"pointerdown",l=>{let{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();Ya(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,n=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Q.read(r);let s=er(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Tt(d=>{let c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=l[d].translate,c.set(c.get()+l[d].translate))}),this.visualElement.render())}));return()=>{s(),a(),n(),i&&i()}}getProps(){let t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:n=!1,dragElastic:s=Rd,dragMomentum:i=!0}=t;return{...t,drag:a,dragDirectionLock:r,dragPropagation:o,dragConstraints:n,dragElastic:s,dragMomentum:i}}};function Ed(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function g1(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var Bd=class extends Ke{constructor(t){super(t),this.removeGroupControls=me,this.removeListeners=me,this.controls=new Fd(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||me}unmount(){this.removeGroupControls(),this.removeListeners()}};var nC=e=>(t,a)=>{e&&Q.postRender(()=>e(t,a))},Od=class extends Ke{constructor(){super(...arguments),this.removePointerDownListener=me}onPointerDown(t){this.session=new rs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nd(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:nC(t),onStart:nC(a),onMove:r,onEnd:(n,s)=>{delete this.session,o&&Q.postRender(()=>o(n,s))}}}mount(){this.removePointerDownListener=Wr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var lC=M(le(),1),Vi=M(G(),1);var ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var is={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;let a=sC(e,t.target.x),r=sC(e,t.target.y);return`${a}% ${r}%`}};var iC={correct:(e,{treeScale:t,projectionDelta:a})=>{let r=e,o=ht.parse(e);if(o.length>5)return r;let n=ht.createTransformer(e),s=typeof o[0]!="number"?1:0,i=a.x.scale*t.x,l=a.y.scale*t.y;o[0+s]/=i,o[1+s]/=l;let u=re(i,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),n(o)}};var km=class extends Vi.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:o}=this.props,{projection:n}=t;h0(x1),n&&(a.group&&a.group.add(n),r&&r.register&&o&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:a,visualElement:r,drag:o,isPresent:n}=this.props,s=r.projection;return s&&(s.isPresent=n,o||t.layoutDependency!==a||a===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||Q.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),An.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Vd(e){let[t,a]=Tu(),r=(0,Vi.useContext)(In);return(0,lC.jsx)(km,{...e,layoutGroup:r,switchLayoutGroup:(0,Vi.useContext)(_u),isPresent:t,safeToRemove:a})}var x1={borderRadius:{...is,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:is,borderTopRightRadius:is,borderBottomLeftRadius:is,borderBottomRightRadius:is,boxShadow:iC};function uC(e,t,a){let r=ye(e)?e:Ja(e);return r.start(as("",r,t,a)),r.animation}function dC(e){return e instanceof SVGElement&&e.tagName!=="svg"}var cC=(e,t)=>e.depth-t.depth;var Ud=class{constructor(){this.children=[],this.isDirty=!1}add(t){$n(this.children,t),this.isDirty=!0}remove(t){Xn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cC),this.isDirty=!1,this.children.forEach(t)}};function fC(e,t){let a=it.now(),r=({timestamp:o})=>{let n=o-a;n>=t&&(_t(r),e(n-t))};return Q.read(r,!0),()=>_t(r)}var gC=["TopLeft","TopRight","BottomLeft","BottomRight"],y1=gC.length,pC=e=>typeof e=="string"?parseFloat(e):e,mC=e=>typeof e=="number"||H.test(e);function xC(e,t,a,r,o,n){o?(e.opacity=re(0,a.opacity!==void 0?a.opacity:1,v1(r)),e.opacityExit=re(t.opacity!==void 0?t.opacity:1,0,L1(r))):n&&(e.opacity=re(t.opacity!==void 0?t.opacity:1,a.opacity!==void 0?a.opacity:1,r));for(let s=0;s<y1;s++){let i=`border${gC[s]}Radius`,l=hC(t,i),u=hC(a,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||mC(l)===mC(u)?(e[i]=Math.max(re(pC(l),pC(u),r),0),(mt.test(u)||mt.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||a.rotate)&&(e.rotate=re(t.rotate||0,a.rotate||0,r))}function hC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var v1=yC(0,.5,cd),L1=yC(.5,.95,me);function yC(e,t,a){return r=>r<e?0:r>t?1:a(Ut(e,t,r))}function vC(e,t){e.min=t.min,e.max=t.max}function Ht(e,t){vC(e.x,t.x),vC(e.y,t.y)}function bm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function LC(e,t,a,r,o){return e-=t,e=Oi(e,1/a,r),o!==void 0&&(e=Oi(e,1/o,r)),e}function C1(e,t=0,a=1,r=.5,o,n=e,s=e){if(mt.test(t)&&(t=parseFloat(t),t=re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=re(n.min,n.max,r);e===n&&(i-=t),e.min=LC(e.min,t,a,i,o),e.max=LC(e.max,t,a,i,o)}function CC(e,t,[a,r,o],n,s){C1(e,t[a],t[r],t[o],t.scale,n,s)}var S1=["x","scaleX","originX"],I1=["y","scaleY","originY"];function Pm(e,t,a,r){CC(e.x,t,S1,a?a.x:void 0,r?r.x:void 0),CC(e.y,t,I1,a?a.y:void 0,r?r.y:void 0)}function SC(e){return e.translate===0&&e.scale===1}function Tm(e){return SC(e.x)&&SC(e.y)}function IC(e,t){return e.min===t.min&&e.max===t.max}function kC(e,t){return IC(e.x,t.x)&&IC(e.y,t.y)}function wC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Am(e,t){return wC(e.x,t.x)&&wC(e.y,t.y)}function Rm(e){return Je(e.x)/Je(e.y)}function Dm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var _d=class{constructor(){this.members=[]}add(t){$n(this.members,t),t.scheduleRender()}remove(t){if(Xn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){let a=this.members.findIndex(o=>t===o);if(a===0)return!1;let r;for(let o=a;o>=0;o--){let n=this.members[o];if(n.isPresent!==!1){r=n;break}}return r?(this.promote(r),!0):!1}promote(t,a){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,a&&(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);let{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:a,resumingFrom:r}=t;a.onExitComplete&&a.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 bC(e,t,a){let r="",o=e.x.translate/t.x,n=e.y.translate/t.y,s=a?.z||0;if((o||n||s)&&(r=`translate3d(${o}px, ${n}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),a){let{transformPerspective:u,rotate:d,rotateX:c,rotateY:f,skewX:g,skewY:v}=a;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}let i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(r+=`scale(${i}, ${l})`),r||"none"}var To={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ui=typeof window<"u"&&window.MotionDebug!==void 0,Mm=["","X","Y","Z"],w1={visibility:"hidden"},PC=1e3,k1=0;function Nm(e,t,a,r){let{latestValues:o}=t;o[e]&&(a[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function FC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=od(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:o,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Q,!(o||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&FC(r)}function zd({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},i=t?.()){this.id=k1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ui&&(To.totalNodes=To.resolvedTargetDeltas=To.recalculatedProjection=0),this.nodes.forEach(T1),this.nodes.forEach(N1),this.nodes.forEach(E1),this.nodes.forEach(A1),Ui&&window.MotionDebug.record(To)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ud)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Vr),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=dC(s),this.instance=s;let{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(u||l)&&(this.isLayoutDirty=!0),e){let c,f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=fC(f,250),ss.hasAnimatedSinceResize&&(ss.hasAnimatedSinceResize=!1,this.nodes.forEach(AC))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let C=this.options.transition||d.getDefaultTransition()||U1,{onLayoutAnimationStart:I,onLayoutAnimationComplete:m}=d.getProps(),h=!this.targetLayout||!Am(this.targetLayout,v)||g,x=!f&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,x);let S={...Fr(C,"layout"),onPlay:I,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||AC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_t(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(F1),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&FC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let c=this.path[d];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}let{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(TC);return}this.isUpdating||this.nodes.forEach(D1),this.isUpdating=!1,this.nodes.forEach(M1),this.nodes.forEach(b1),this.nodes.forEach(P1),this.clearAllSnapshots();let i=it.now();Ee.delta=Ze(0,1e3/60,i-Ee.timestamp),Ee.timestamp=i,Ee.isProcessing=!0,Eu.update.process(Ee),Eu.preRender.process(Ee),Eu.render.process(Ee),Ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,An.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(R1),this.sharedNodes.forEach(B1)}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();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i){let l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!Tm(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(i||ar(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),_1(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:i}=this.options;if(!i)return Ie();let l=i.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(z1))){let{scroll:d}=this.root;d&&(Gr(l.x,d.offset.x),Gr(l.y,d.offset.y))}return l}removeElementScroll(s){var i;let l=Ie();if(Ht(l,s),!((i=this.scroll)===null||i===void 0)&&i.wasRoot)return l;for(let u=0;u<this.path.length;u++){let d=this.path[u],{scroll:c,options:f}=d;d!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Ht(l,s),Gr(l.x,c.offset.x),Gr(l.y,c.offset.y))}return l}applyTransform(s,i=!1){let l=Ie();Ht(l,s);for(let u=0;u<this.path.length;u++){let d=this.path[u];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Po(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ar(d.latestValues)&&Po(l,d.latestValues)}return ar(this.latestValues)&&Po(l,this.latestValues),l}removeTransform(s){let i=Ie();Ht(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!ar(u.latestValues))continue;Md(u.latestValues)&&u.updateSnapshot();let d=Ie(),c=u.measurePageBox();Ht(d,c),Pm(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ar(this.latestValues)&&Pm(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var i;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:f}=this.options;if(!(!this.layout||!(c||f))){if(this.resolvedRelativeTargetAt=Ee.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),ns(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ie(),this.targetWithTransforms=Ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),OL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ht(this.target,this.layout.layoutBox),Im(this.target,this.targetDelta)):Ht(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),ns(this.relativeTargetOrigin,this.target,g.target),Ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ui&&To.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Md(this.parent.latestValues)||Cm(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 s;let i=this.getLead(),l=!!this.resumingFrom||this!==i,u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ee.timestamp&&(u=!1),u)return;let{layout:d,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||c))return;Ht(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;rC(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Ie());let{target:v}=i;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bm(this.prevProjectionDelta.x,this.projectionDelta.x),bm(this.prevProjectionDelta.y,this.projectionDelta.y)),os(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!Dm(this.projectionDelta.x,this.prevProjectionDelta.x)||!Dm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Ui&&To.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var i;if((i=this.options.visualElement)===null||i===void 0||i.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bo(),this.projectionDelta=bo(),this.projectionDeltaWithTransform=bo()}setAnimationOrigin(s,i=!1){let l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=bo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let f=Ie(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,C=g!==v,I=this.getStack(),m=!I||I.members.length<=1,h=!!(C&&!m&&this.options.crossfade===!0&&!this.path.some(V1));this.animationProgress=0;let x;this.mixTargetDelta=S=>{let k=S/1e3;RC(c.x,s.x,k),RC(c.y,s.y,k),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ns(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),O1(this.relativeTarget,this.relativeTargetOrigin,f,k),x&&kC(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ie()),Ht(x,this.relativeTarget)),C&&(this.animationValues=d,xC(d,u,this.latestValues,k,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{ss.hasAnimatedSinceResize=!0,this.currentAnimation=uC(0,PC,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.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);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(PC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,target:l,layout:u,latestValues:d}=s;if(!(!i||!l||!u)){if(this!==s&&this.layout&&u&&BC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ie();let c=Je(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;let f=Je(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ht(i,l),Po(i,d),os(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new _d),this.sharedNodes.get(s).add(i);let u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:i}=this.options;return i?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:i}=this.options;return i?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;let u={};l.z&&Nm("z",s,u,this.animationValues);for(let d=0;d<Mm.length;d++)Nm(`rotate${Mm[d]}`,s,u,this.animationValues),Nm(`skew${Mm[d]}`,s,u,this.animationValues);s.render();for(let d in u)s.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);s.scheduleRender()}getProjectionStyles(s){var i,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return w1;let u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Nn(s?.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){let C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=Nn(s?.pointerEvents)||""),this.hasProjected&&!ar(this.latestValues)&&(C.transform=d?d({},""):"none",this.hasProjected=!1),C}let f=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=bC(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));let{x:g,y:v}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,c.animationValues?u.opacity=c===this?(l=(i=f.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=c===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(let C in _n){if(f[C]===void 0)continue;let{correct:I,applyTo:m}=_n[C],h=u.transform==="none"?f[C]:I(f[C],c);if(m){let x=m.length;for(let S=0;S<x;S++)u[m[S]]=h}else u[C]=h}return this.options.layoutId&&(u.pointerEvents=c===this?Nn(s?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(TC),this.root.sharedNodes.clear()}}}function b1(e){e.updateLayout()}function P1(e){var t;let a=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:n}=e.options,s=a.source!==e.layout.source;n==="size"?Tt(c=>{let f=s?a.measuredBox[c]:a.layoutBox[c],g=Je(f);f.min=r[c].min,f.max=f.min+g}):BC(n,a.layoutBox,r)&&Tt(c=>{let f=s?a.measuredBox[c]:a.layoutBox[c],g=Je(r[c]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+g)});let i=bo();os(i,r,a.layoutBox);let l=bo();s?os(l,e.applyTransform(o,!0),a.measuredBox):os(l,r,a.layoutBox);let u=!Tm(i),d=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:f,layout:g}=c;if(f&&g){let v=Ie();ns(v,a.layoutBox,f.layoutBox);let C=Ie();ns(C,r,g.layoutBox),Am(v,C)||(d=!0),c.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=v,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:l,layoutDelta:i,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function T1(e){Ui&&To.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 A1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function R1(e){e.clearSnapshot()}function TC(e){e.clearMeasurements()}function D1(e){e.isLayoutDirty=!1}function M1(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function AC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function N1(e){e.resolveTargetDelta()}function E1(e){e.calcProjection()}function F1(e){e.resetSkewAndRotation()}function B1(e){e.removeLeadSnapshot()}function RC(e,t,a){e.translate=re(t.translate,0,a),e.scale=re(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function DC(e,t,a,r){e.min=re(t.min,a.min,r),e.max=re(t.max,a.max,r)}function O1(e,t,a,r){DC(e.x,t.x,a.x,r),DC(e.y,t.y,a.y,r)}function V1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var U1={duration:.45,ease:[.4,0,.1,1]},MC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),NC=MC("applewebkit/")&&!MC("chrome/")?Math.round:me;function EC(e){e.min=NC(e.min),e.max=NC(e.max)}function _1(e){EC(e.x),EC(e.y)}function BC(e,t,a){return e==="position"||e==="preserve-aspect"&&!BL(Rm(t),Rm(a),.2)}function z1(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var OC=zd({attachResizeListener:(e,t)=>er(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Em={current:void 0},Hd=zd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Em.current){let e=new OC({});e.mount(window),e.setOptions({layoutScroll:!0}),Em.current=e}return Em.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var VC={pan:{Feature:Od},drag:{Feature:Bd,ProjectionNode:Hd,MeasureLayout:Vd}};function UC(e,t,a){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",a==="Start");let o="onHover"+a,n=r[o];n&&Q.postRender(()=>n(t,tr(t)))}var qd=class extends Ke{mount(){let{current:t}=this.node;t&&(this.unmount=Yp(t,a=>(UC(this.node,a,"Start"),r=>UC(this.node,r,"End"))))}unmount(){}};var Wd=class extends Ke{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=ka(er(this.node.current,"focus",()=>this.onFocus()),er(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function _C(e,t,a){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",a==="Start");let o="onTap"+(a==="End"?"":a),n=r[o];n&&Q.postRender(()=>n(t,tr(t)))}var Gd=class extends Ke{mount(){let{current:t}=this.node;t&&(this.unmount=Jp(t,a=>(_C(this.node,a,"Start"),(r,{success:o})=>_C(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var Bm=new WeakMap,Fm=new WeakMap,H1=e=>{let t=Bm.get(e.target);t&&t(e)},q1=e=>{e.forEach(H1)};function W1({root:e,...t}){let a=e||document;Fm.has(a)||Fm.set(a,{});let r=Fm.get(a),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(q1,{root:e,...t})),r[o]}function zC(e,t,a){let r=W1(t);return Bm.set(e,a),r.observe(e),()=>{Bm.delete(e),r.unobserve(e)}}var G1={some:0,all:1},jd=class extends Ke{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:a,margin:r,amount:o="some",once:n}=t,s={root:a?a.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:G1[o]},i=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:d,onViewportLeave:c}=this.node.getProps(),f=u?d:c;f&&f(l)};return zC(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:a}=this.node;["amount","margin","root"].some(j1(t,a))&&this.startObserver()}unmount(){}};function j1({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var HC={inView:{Feature:jd},tap:{Feature:Gd},focus:{Feature:Wd},hover:{Feature:qd}};var qC={layout:{ProjectionNode:Hd,MeasureLayout:Vd}};var $C=M(G(),1);var _i={current:null},Kd={current:!1};function WC(){if(Kd.current=!0,!!bn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_i.current=e.matches;e.addListener(t),t()}else _i.current=!1}var K1=[...lm,Oe,ht],GC=e=>K1.find(xd(e));var Om=new WeakMap;function jC(e,t,a){for(let r in t){let o=t[r],n=a[r];if(ye(o))e.addValue(r,o);else if(ye(n))e.addValue(r,Ja(o,{owner:e}));else if(n!==o)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(r);e.addValue(r,Ja(s!==void 0?s:o,{owner:e}))}}for(let r in a)t[r]===void 0&&e.removeValue(r);return t}var KC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$d=class{scrapeMotionValuesFromProps(t,a,r){return{}}constructor({parent:t,props:a,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:n,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hr,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=()=>{let g=it.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Q.render(this.render,!1,!0))};let{latestValues:l,renderState:u,onUpdate:d}=s;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=a.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=a,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.blockInitialAnimation=!!n,this.isControllingVariants=yo(a),this.isVariantNode=Ou(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:c,...f}=this.scrapeMotionValuesFromProps(a,{},this);for(let g in f){let v=f[g];l[g]!==void 0&&ye(v)&&v.set(l[g],!1)}}mount(t){this.current=t,Om.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((a,r)=>this.bindToMotionValue(r,a)),Kd.current||WC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_i.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Om.delete(this.current),this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=Pt.has(t),o=a.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),n=a.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{o(),n(),s&&s(),a.owner&&a.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 Xa){let a=Xa[t];if(!a)continue;let{isEnabled:r,Feature:o}=a;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<KC.length;r++){let o=KC[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let n="on"+o,s=t[n];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=jC(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){let a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){let r=this.values.get(t);a!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);let a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&a!==void 0&&(r=Ja(a===null?void 0:a,{owner:this}),this.addValue(t,r)),r}readValue(t,a){var r;let o=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 o!=null&&(typeof o=="string"&&(gd(o)||pd(o))?o=parseFloat(o):!GC(o)&&ht.test(a)&&(o=hd(t,a)),this.setBaseTarget(t,ye(o)?o.get():o)),ye(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){var a;let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let s=Mn(this.props,r,(a=this.presenceContext)===null||a===void 0?void 0:a.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!ye(n)?n:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Vr),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}};var ls=class extends $d{constructor(){super(...arguments),this.KeyframeResolver=Jn}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:r}){delete a[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ye(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};function $1(e){return window.getComputedStyle(e)}var Xd=class extends ls{constructor(){super(...arguments),this.type="html",this.renderInstance=ju}readValueFromInstance(t,a){if(Pt.has(a)){let r=Zn(a);return r&&r.default||0}else{let r=$1(t),o=(qu(a)?r.getPropertyValue(a):r[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:a}){return wm(t,a)}build(t,a,r){Bn(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return zn(t,a,r)}};var Qd=class extends ls{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ie}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(Pt.has(a)){let r=Zn(a);return r&&r.default||0}return a=Ku.has(a)?a:Tn(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return Qu(t,a,r)}build(t,a,r){On(t,a,this.isSVGTag,r.transformTemplate)}renderInstance(t,a,r,o){$u(t,a,r,o)}mount(t){this.isSVGTag=Un(t.tagName),super.mount(t)}};var XC=(e,t)=>Dn(e)?new Qd(t):new Xd(t,{allowProjection:e!==$C.Fragment});var QC=w0({...kL,...HC,...VC,...qC},XC);var Vm=Wv(QC);var zi=M(le(),1);function YC({x:e,y:t,visible:a,onClick:r=!1}){return(0,zi.jsx)(zp,{children:a&&(0,zi.jsx)(Vm.div,{className:"fixed pointer-events-none z-[9999]",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1,x:e,y:t},exit:{opacity:0,scale:.5},transition:{type:"spring",stiffness:200,damping:20},style:{left:0,top:0},children:(0,zi.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,zi.jsx)("path",{d:"M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z",fill:"#C4B5FD"})})})})}var us=M(G(),1);function ZC(){let[e,t]=us.useState({x:0,y:0,visible:!1,onClick:!1}),a=us.useCallback(n=>{let s=document.querySelector(n.selector);if(s){let i=s.getBoundingClientRect(),l=n.offset?.x||0,u=n.offset?.y||0;t({x:i.left+i.width/2+l,y:i.top+i.height/2+u,visible:!0,onClick:n.onClick||!1})}},[]),r=us.useCallback(()=>{t(n=>({...n,visible:!1}))},[]),o=us.useCallback(()=>{t(n=>({...n,visible:!0}))},[]);return{cursorState:e,moveTo:a,hide:r,show:o}}var ds=M(le(),1);function lt({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card",className:Bt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function ba({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card-header",className:Bt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Pa({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card-title",className:Bt("leading-none font-semibold",e),...t})}function Um({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card-description",className:Bt("text-muted-foreground text-sm",e),...t})}function ut({className:e,...t}){return(0,ds.jsx)("div",{"data-slot":"card-content",className:Bt("px-6",e),...t})}var y=M(le(),1),_m=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Yd=(e,t="USD")=>new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e),zm=e=>{switch(e){case"Enterprise":return fo;case"Professional":return vi;default:return ui}},Zd=e=>{switch(e){case"Enterprise":return"bg-purple-50 text-purple-700 border-purple-200";case"Professional":return"bg-blue-50 text-blue-700 border-blue-200";default:return"bg-gray-50 text-gray-700 border-gray-200"}};function Hi({status:e,type:t="default"}){let r=(()=>{let n=e.toLowerCase();if(t==="transaction")switch(n){case"paid":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:je};case"failed":return{color:"bg-red-50 text-red-700 border-red-200",icon:da};case"pending":return{color:"bg-amber-50 text-amber-700 border-amber-200",icon:uo};case"refunded":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:Ln};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ua}}if(t==="subscription")switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:je};case"cancelled":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:da};case"past_due":return{color:"bg-red-50 text-red-700 border-red-200",icon:ua};case"trialing":return{color:"bg-blue-50 text-blue-700 border-blue-200",icon:uo};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ua}}switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:je};case"inactive":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:da};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ua}}})(),o=r.icon;return(0,y.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border ${r.color}`,children:[(0,y.jsx)(o,{className:"h-3 w-3"}),e]})}function X1({subscription:e}){let t=zm(e.plan);return(0,y.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)("div",{className:`h-1 ${e.status==="active"?"bg-emerald-500":e.status==="past_due"?"bg-red-500":"bg-slate-300"}`}),(0,y.jsx)(ba,{className:"pb-3",children:(0,y.jsxs)("div",{className:"flex items-start justify-between",children:[(0,y.jsxs)("div",{className:"space-y-1",children:[(0,y.jsxs)(Pa,{className:"text-base font-semibold text-gray-900 flex items-center gap-2",children:[(0,y.jsx)(co,{className:"h-4 w-4 text-gray-500"}),e.id]}),e.customer_email&&(0,y.jsxs)(Um,{className:"text-sm text-gray-500 flex items-center gap-1.5",children:[(0,y.jsx)(yn,{className:"h-3 w-3"}),e.customer_email]})]}),(0,y.jsx)(Hi,{status:e.status,type:"subscription"})]})}),(0,y.jsx)(ut,{className:"pt-0",children:(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Plan"}),(0,y.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium border ${Zd(e.plan)}`,children:[(0,y.jsx)(t,{className:"h-3 w-3"}),e.plan]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Billing"}),(0,y.jsxs)("div",{className:"text-sm font-medium text-gray-900",children:[Yd(e.amount,e.currency)," / ",e.billing_cycle]})]})]}),(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Current Period"}),(0,y.jsxs)("div",{className:"text-sm text-gray-700",children:[_m(e.current_period_start)," - ",_m(e.current_period_end)]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Created"}),(0,y.jsx)("div",{className:"text-sm text-gray-700",children:_m(e.created_at)})]})]})]})})]})}function Q1({subscriptions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(ut,{className:"py-8 text-center",children:[(0,y.jsx)(co,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No subscriptions found"})]})}):(0,y.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(co,{className:"h-4 w-4"}),e.length," Subscription",e.length!==1?"s":""]})}),(0,y.jsxs)(ut,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>{let n=zm(o.plan);return(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,y.jsx)("div",{className:`p-2 rounded-lg ${Zd(o.plan).replace("text-","text-").replace("border-","bg-").split(" ")[0]}`,children:(0,y.jsx)(n,{className:"h-4 w-4"})}),(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.customer_email||o.customer_id}),(0,y.jsxs)("div",{className:"text-xs text-gray-500",children:[o.plan," \xB7 ",Yd(o.amount,o.currency),"/",o.billing_cycle]})]})]}),(0,y.jsx)(Hi,{status:o.status,type:"subscription"})]})},o.id)})}),r&&(0,y.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,y.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more subscription",e.length-t!==1?"s":""]})})]})]})}function Y1({customer:e}){let t=zm(e.subscription);return(0,y.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)("div",{className:`h-1 ${e.status==="active"?"bg-emerald-500":"bg-slate-300"}`}),(0,y.jsx)(ba,{className:"pb-3",children:(0,y.jsxs)("div",{className:"flex items-start justify-between",children:[(0,y.jsx)("div",{className:"flex items-center gap-3",children:(0,y.jsxs)("div",{children:[(0,y.jsx)(Pa,{className:"text-base font-semibold text-gray-900",children:e.name}),(0,y.jsxs)(Um,{className:"text-sm text-gray-500 flex items-center gap-1",children:[(0,y.jsx)(yn,{className:"h-3 w-3"}),e.email]})]})}),(0,y.jsx)(Hi,{status:e.status,type:"customer"})]})}),(0,y.jsx)(ut,{className:"pt-0",children:(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Plan"}),(0,y.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium border ${Zd(e.subscription)}`,children:[(0,y.jsx)(t,{className:"h-3 w-3"}),e.subscription]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Revenue"}),(0,y.jsxs)("div",{className:"text-sm font-medium text-gray-900 flex items-center gap-1",children:[(0,y.jsx)(po,{className:"h-3 w-3 text-emerald-500"}),e.revenue]})]})]}),(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Location"}),(0,y.jsxs)("div",{className:"text-sm text-gray-700 flex items-center gap-1",children:[(0,y.jsx)(vn,{className:"h-3 w-3 text-gray-400"}),e.location||"Not specified"]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Customer Since"}),(0,y.jsxs)("div",{className:"text-sm text-gray-700 flex items-center gap-1",children:[(0,y.jsx)(ci,{className:"h-3 w-3 text-gray-400"}),e.joinDate]})]})]})]})})]})}function Z1({customers:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(ut,{className:"py-8 text-center",children:[(0,y.jsx)(Sn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No customers found"})]})}):(0,y.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(Sn,{className:"h-4 w-4"}),e.length," Customer",e.length!==1?"s":""]})}),(0,y.jsxs)(ut,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsx)("div",{className:"flex items-center gap-3 min-w-0",children:(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name}),(0,y.jsx)("div",{className:"text-xs text-gray-500 truncate",children:o.email})]})}),(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${Zd(o.subscription)}`,children:o.subscription}),(0,y.jsx)(Hi,{status:o.status,type:"customer"})]})]})},o.id))}),r&&(0,y.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,y.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more customer",e.length-t!==1?"s":""]})})]})]})}function JC({transactions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(ut,{className:"py-8 text-center",children:[(0,y.jsx)(po,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No transactions found"})]})}):(0,y.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(po,{className:"h-4 w-4"}),e.length," Transaction",e.length!==1?"s":""]})}),(0,y.jsxs)(ut,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,y.jsx)("div",{className:`p-2 rounded-lg ${o.status==="paid"?"bg-emerald-50":o.status==="failed"?"bg-red-50":o.status==="refunded"?"bg-slate-50":"bg-amber-50"}`,children:o.status==="paid"?(0,y.jsx)(je,{className:"h-4 w-4 text-emerald-600"}):o.status==="failed"?(0,y.jsx)(da,{className:"h-4 w-4 text-red-600"}):o.status==="refunded"?(0,y.jsx)(Ln,{className:"h-4 w-4 text-slate-600"}):(0,y.jsx)(uo,{className:"h-4 w-4 text-amber-600"})}),(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.customer}),(0,y.jsxs)("div",{className:"text-xs text-gray-500",children:[o.date,o.decline_reason&&(0,y.jsxs)("span",{className:"text-red-500 ml-2",children:["\xB7 ",o.decline_reason]})]})]})]}),(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsxs)("span",{className:`text-sm font-semibold ${o.status==="paid"?"text-emerald-600":o.status==="failed"?"text-red-600":o.status==="refunded"?"text-slate-600":"text-amber-600"}`,children:[o.status==="refunded"?"-":"",o.amount]}),(0,y.jsx)(Hi,{status:o.status,type:"transaction"})]})]})},o.id))}),r&&(0,y.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,y.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more transaction",e.length-t!==1?"s":""]})})]})]})}function J1({apiKeys:e}){return e.length===0?(0,y.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(ut,{className:"py-8 text-center",children:[(0,y.jsx)(xn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No API keys found"})]})}):(0,y.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(xn,{className:"h-4 w-4"}),e.length," API Key",e.length!==1?"s":""]})}),(0,y.jsx)(ut,{className:"p-0",children:(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((t,a)=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900",children:t.name}),(0,y.jsxs)("div",{className:"text-xs text-gray-500 font-mono",children:[t.key.slice(0,12),"...",t.key.slice(-4)]})]}),(0,y.jsxs)("div",{className:"text-xs text-gray-500",children:["Last used: ",t.lastUsed]})]})},a))})})]})}function eT({sessions:e}){let t=a=>{let r=a.toLowerCase();return r.includes("mobile")||r.includes("iphone")||r.includes("android")?xi:hi};return e.length===0?(0,y.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(ut,{className:"py-8 text-center",children:[(0,y.jsx)(Cn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No active sessions"})]})}):(0,y.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(Cn,{className:"h-4 w-4"}),e.length," Active Session",e.length!==1?"s":""]})}),(0,y.jsx)(ut,{className:"p-0",children:(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((a,r)=>{let o=t(a.device);return(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsx)("div",{className:"p-2 rounded-lg bg-gray-100",children:(0,y.jsx)(o,{className:"h-4 w-4 text-gray-600"})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900",children:a.device}),(0,y.jsxs)("div",{className:"text-xs text-gray-500 flex items-center gap-1",children:[(0,y.jsx)(vn,{className:"h-3 w-3"}),a.location]})]})]}),(0,y.jsx)("div",{className:"text-xs text-gray-500",children:a.time})]})},r)})})})]})}function tT({stats:e}){return(0,y.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(yi,{className:"h-4 w-4"}),"Dashboard Overview"]})}),(0,y.jsx)(ut,{className:"p-4",children:(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[e.revenue&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-emerald-50 border border-emerald-100",children:[(0,y.jsx)("div",{className:"text-xs text-emerald-600 font-medium mb-1",children:"Revenue"}),(0,y.jsx)("div",{className:"text-lg font-bold text-emerald-700",children:Yd(e.revenue.total)}),e.revenue.change!==0&&(0,y.jsxs)("div",{className:`text-xs ${e.revenue.change>0?"text-emerald-600":"text-red-600"}`,children:[e.revenue.change>0?"+":"",e.revenue.change,"% from last period"]})]}),e.subscriptions&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-blue-50 border border-blue-100",children:[(0,y.jsx)("div",{className:"text-xs text-blue-600 font-medium mb-1",children:"Subscriptions"}),(0,y.jsxs)("div",{className:"text-lg font-bold text-blue-700",children:[e.subscriptions.active," active"]}),(0,y.jsxs)("div",{className:"text-xs text-blue-600",children:[e.subscriptions.total," total"]})]}),e.customers&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-purple-50 border border-purple-100",children:[(0,y.jsx)("div",{className:"text-xs text-purple-600 font-medium mb-1",children:"Customers"}),(0,y.jsx)("div",{className:"text-lg font-bold text-purple-700",children:e.customers.total}),e.customers.new>0&&(0,y.jsxs)("div",{className:"text-xs text-purple-600",children:["+",e.customers.new," new this period"]})]}),e.transactions&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-amber-50 border border-amber-100",children:[(0,y.jsx)("div",{className:"text-xs text-amber-600 font-medium mb-1",children:"Transactions"}),(0,y.jsxs)("div",{className:"text-lg font-bold text-amber-700",children:[e.transactions.successful," successful"]}),e.transactions.failed>0&&(0,y.jsxs)("div",{className:"text-xs text-red-600",children:[e.transactions.failed," failed"]})]})]})})]})}function aT({customers:e}){return e.length===0?(0,y.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(ut,{className:"py-8 text-center",children:[(0,y.jsx)(fo,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No top customers data"})]})}):(0,y.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(ba,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Pa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(fo,{className:"h-4 w-4 text-amber-500"}),"Top Customers"]})}),(0,y.jsx)(ut,{className:"p-0",children:(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((t,a)=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,y.jsx)("div",{className:`h-6 w-6 rounded-full flex items-center justify-center text-xs font-bold ${a===0?"bg-amber-100 text-amber-700":a===1?"bg-slate-100 text-slate-700":a===2?"bg-orange-100 text-orange-700":"bg-gray-100 text-gray-700"}`,children:a+1}),(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:t.name}),(0,y.jsx)("div",{className:"text-xs text-gray-500 truncate",children:t.email})]})]}),(0,y.jsx)("div",{className:"text-sm font-semibold text-emerald-600",children:typeof t.revenue=="number"?Yd(t.revenue):t.revenue})]})},a))})})]})}function eS({type:e,data:t}){if(!t)return null;switch(e){case"subscription":return(0,y.jsx)(X1,{subscription:t});case"subscriptions":let a=t.subscriptions||t||[];return(0,y.jsx)(Q1,{subscriptions:Array.isArray(a)?a:[a]});case"customer":return(0,y.jsx)(Y1,{customer:t.customer||t});case"customers":let r=t.customers||t||[];return(0,y.jsx)(Z1,{customers:Array.isArray(r)?r:[r]});case"transactions":let o=t.transactions||t||[];return(0,y.jsx)(JC,{transactions:Array.isArray(o)?o:[o]});case"transaction":return(0,y.jsx)(JC,{transactions:[t],maxItems:1});case"dashboard_stats":return(0,y.jsx)(tT,{stats:t});case"top_customers":let n=t.customers||t||[];return(0,y.jsx)(aT,{customers:Array.isArray(n)?n:[n]});case"api_keys":let s=t.api_keys||t||[];return(0,y.jsx)(J1,{apiKeys:Array.isArray(s)?s:[s]});case"sessions":let i=t.sessions||t||[];return(0,y.jsx)(eT,{sessions:Array.isArray(i)?i:[i]});default:return null}}var p=M(le(),1),rT="http://localhost:5002",qm=400;function oT(e){if(!e)return null;let t=e.split(`
|
|
17
17
|
`),a=[],r=null,o=!1,n=[],s="",i=u=>{let d=[],c=u,f=0;for(;c.length>0;){let g=c.match(/^`([^`]+)`/);if(g){d.push((0,p.jsx)("code",{className:"bg-gray-100 px-1 py-0.5 rounded text-xs font-mono",children:g[1]},f++)),c=c.slice(g[0].length);continue}let v=c.match(/^\*\*([^*]+)\*\*/);if(v){d.push((0,p.jsx)("strong",{children:v[1]},f++)),c=c.slice(v[0].length);continue}let C=c.match(/^\*([^*]+)\*/);if(C){d.push((0,p.jsx)("em",{children:C[1]},f++)),c=c.slice(C[0].length);continue}let I=c.match(/^\[([^\]]+)\]\(([^)]+)\)/);if(I){d.push((0,p.jsx)("a",{href:I[2],className:"text-blue-600 hover:underline",target:"_blank",rel:"noopener noreferrer",children:I[1]},f++)),c=c.slice(I[0].length);continue}let m=c.search(/[`*\[]/);if(m===-1){d.push(c);break}else m===0?(d.push(c[0]),c=c.slice(1)):(d.push(c.slice(0,m)),c=c.slice(m))}return d.length===1?d[0]:(0,p.jsx)(p.Fragment,{children:d})},l=()=>{if(r){let u=r.type==="ul"?"ul":"ol";a.push((0,p.jsx)(u,{className:`${r.type==="ul"?"list-disc":"list-decimal"} ml-4 my-1`,children:r.items.map((d,c)=>(0,p.jsx)("li",{className:"ml-2",children:d},c))},a.length)),r=null}};for(let u=0;u<t.length;u++){let d=t[u];if(d.startsWith("```")){o?(a.push((0,p.jsx)("pre",{className:"bg-gray-100 rounded p-2 my-1 overflow-x-auto",children:(0,p.jsx)("code",{className:"text-xs font-mono",children:n.join(`
|
|
18
|
-
`)})},a.length)),o=!1,n=[],s=""):(l(),o=!0,s=d.slice(3).trim());continue}if(o){n.push(d);continue}let c=d.match(/^(#{1,6})\s+(.+)/);if(c){l();let v=c[1].length,C=i(c[2]),I=v===1?"text-lg font-bold my-1":v===2?"text-base font-bold my-1":"text-sm font-semibold my-1";a.push((0,p.jsx)("div",{className:I,children:C},a.length));continue}let f=d.match(/^[-*]\s+(.+)/);if(f){(!r||r.type!=="ul")&&(l(),r={type:"ul",items:[]}),r.items.push(i(f[1]));continue}let g=d.match(/^\d+[.)]\s+(.+)/);if(g){(!r||r.type!=="ol")&&(l(),r={type:"ol",items:[]}),r.items.push(i(g[1]));continue}if(d.trim()===""){l(),a.push((0,p.jsx)("div",{className:"h-2"},a.length));continue}if(d.match(/^[-*_]{3,}$/)){l(),a.push((0,p.jsx)("hr",{className:"my-2 border-gray-200"},a.length));continue}l(),a.push((0,p.jsx)("div",{children:i(d)},a.length))}return l(),(0,p.jsx)(p.Fragment,{children:a})}var nT=[{id:"changing-layouts",label:"Changing layouts",prompt:"How do I change the layout of my profiles or folders?",icon:"layout"},{id:"bulk-uploads",label:"Bulk uploads",prompt:"How do I bulk upload profiles using a CSV file?",icon:"upload"},{id:"example-setups",label:"Example setups",prompt:"Can you show me some example folder setups?",icon:"setup"}],tS=[{id:"customers",title:"Customer Management",topics:[{id:"add-customer",label:"Add a new customer",prompt:"How do I add a new customer to the system and what information is required?"},{id:"customer-details",label:"View customer details",prompt:"Show me how to view and edit customer information and their payment history."}]},{id:"payments",title:"Payment Processing",topics:[{id:"process-payment",label:"Process a payment",prompt:"How do I process a one-time payment for a customer?"},{id:"refund-payment",label:"Issue a refund",prompt:"Walk me through issuing a refund for a customer payment."}]},{id:"subscriptions",title:"Subscription Management",topics:[{id:"create-subscription",label:"Create a subscription",prompt:"How do I set up a new subscription plan for a customer?"},{id:"update-subscription",label:"Update subscription tier",prompt:"How can I change a customer's subscription plan or upgrade them?"}]},{id:"billing",title:"Billing",topics:[{id:"payment-methods",label:"Manage payment methods",prompt:"How do customers add or update their payment methods?"}]}],Hm={"getting-started":{id:"getting-started",title:"Getting started",steps:[{text:"Step 1: Let's open the Customers page. This is where you'll manage all your customers - you can view, add, and edit customer information here.",navigation:{page:"customers"},cursorTarget:{selector:'[data-page="customers"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 2: Now let's open the Add customer dialog. This is where you'll enter information for your first customer, including their name, email, and other details.",navigation:{page:"customers"},cursorTarget:{selector:'[data-testid="add-customer-button"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 3: Let's open the Settings page. This is where you manage your account settings, company information, and preferences. We're going to verify your company address is correct.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-page="settings"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 4: Here's the address field in the Company Information section. It's important to verify this address is accurate since it's used for billing and shipping purposes. Make sure it's up to date.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-testid="company-address-input"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 5: Let's open the API Keys tab. This section shows all your API keys - you'll need these to connect your application to our services. We're going to create a production API key.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-settings-tab="api"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 6: Let's open the Create API Key dialog. Here you can create a new API key for your application. You'll want to give it a descriptive name like 'Production Key' so you can easily identify it later.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-testid="create-api-key-button"]',offset:{x:0,y:0},onClick:!0}}]},"add-api-key":{id:"add-api-key",title:"How to add an API key",steps:[{text:"Step 1: Let's open the Settings page. This is where you manage your account settings and preferences. We need to go here to access the API Keys section.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-page="settings"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 2: Let's open the API Keys tab. This section shows all your API keys and allows you to create new ones. You'll need API keys to connect your application to our services.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-settings-tab="api"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 3: Let's open the Create API Key dialog. This is where you'll create your new API key - you can give it a name to help you identify it later, then click Create to generate it.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-testid="create-api-key-button"]',offset:{x:0,y:0},onClick:!0}}]},"refund-payment":{id:"refund-payment",title:"How to refund a payment",steps:[{text:"Step 1: Let's open the Home page. This is your dashboard where you can view today's activity, your payment overview, and recent transactions. We need to go here to find the payment you want to refund.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-page="dashboard"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 2: Scroll down to see the Recent transactions section at the bottom. This shows your latest payment transactions with their status. We're looking for a transaction with 'paid' status - only paid transactions can be refunded.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-testid="recent-activity-card"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 3: Let's open the dropdown menu for this paid transaction. Each transaction has a menu button (three dots) that gives you options like refunding. Click it to see the available actions, including the 'Refund payment' option.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-testid="transaction-menu-button"]',offset:{x:0,y:0},onClick:!0}}]}},sT=[];function iT({isOpen:e=!0,onClose:t,onBack:a,onNavigate:r,onActionComplete:o,currentPage:n,agentUrl:s=rT,startingQuestions:i,startingQuestionsEndpoint:l}={}){let[u,d]=j.useState(sT),[c,f]=j.useState(""),[g]=j.useState(()=>crypto.randomUUID()),v=j.useRef({}),C=u.length===0,[I,m]=j.useState("idle"),[h,x]=j.useState([]),S=j.useRef([]),k=u.length?u[u.length-1].role:void 0,[T,D]=j.useState("landing"),[A,B]=j.useState(void 0),[V,de]=j.useState(i||nT),[se,jr]=j.useState(!1);j.useEffect(()=>{l&&!i&&(jr(!0),fetch(l).then(L=>L.json()).then(L=>{Array.isArray(L)&&L.length>0&&de(L)}).catch(L=>{console.warn("[KiteChat] Failed to fetch starting questions:",L)}).finally(()=>jr(!1)))},[l,i]),j.useEffect(()=>{i&&de(i)},[i]);let[Z,Jt]=j.useState(void 0),he=j.useRef(void 0),De=j.useRef(null),[Ve,xt]=j.useState(!1);j.useEffect(()=>{window.resetIntegrationNotification=()=>{localStorage.removeItem("gmailNotificationSeen"),console.log("Integration notification reset! Click the Integrations tab to see it again.")};let L=()=>{if(!localStorage.getItem("gmailNotificationSeen")){D("landing"),B(void 0);let U=Date.now(),E="I see you're exploring integrations. Let me know if there are any other connections we should add.",_={id:U,role:"assistant",kind:"text",content:"",isNotificationMessage:!0};d(oe=>[...oe,_]),Aa(U,E),localStorage.setItem("gmailNotificationSeen","true")}};return window.addEventListener("integrationTabClicked",L),()=>{window.removeEventListener("integrationTabClicked",L)}},[]),j.useEffect(()=>{Z?(!he.current||he.current.id!==Z.id||he.current.stepIndex!==Z.stepIndex)&&(he.current=Z):he.current=void 0},[Z]);let[Wt,yt]=j.useState(null),[He,Jd]=j.useState(null),[J,ee]=j.useState({}),jm=j.useRef(null),ec=j.useRef(null),qi=j.useRef(null),{cursorState:Wi,moveTo:Kr,hide:Ao}=ZC(),[Ro,tc]=j.useState(null),[Km,rr]=j.useState(null),ac=j.useRef(null),Do=j.useRef(null);j.useEffect(()=>{if(!Z||Z.id!=="add-api-key"||Z.stepIndex!==2)return;let b=setInterval(()=>{let U=document.querySelector('[role="dialog"]'),E=he.current;if(U&&E&&E.id==="add-api-key"&&E.stepIndex===2){Ao();let _=Date.now()+1;d(oe=>[...oe,{id:_,role:"assistant",kind:"guideComplete",content:"Perfect! The dialog is now open. You can enter a name and create your API key."}]),Jt(void 0),xt(!0)}},300);return()=>clearInterval(b)},[Z,Ao]),j.useEffect(()=>()=>{Object.values(v.current).forEach(L=>window.clearInterval(L)),v.current={},S.current.forEach(L=>window.clearTimeout(L)),S.current=[]},[]),j.useEffect(()=>{if(Z&&u.length>0){let L=u[u.length-1];if((L.kind==="guideStep"||L.kind==="guideComplete")&&qi.current&&ec.current){let b=ec.current,U=qi.current,E=b.getBoundingClientRect(),oe=U.getBoundingClientRect().top-E.top+b.scrollTop;b.scrollTop=oe}}else!Z&&u.length>0&&jm.current?.scrollIntoView({behavior:"smooth"})},[u,I,Z]);let $m=j.useMemo(()=>{for(let L=u.length-1;L>=0;L--){let b=u[L];if(b.kind==="bulkSummary"&&b.bulkSummary?.navigationPage&&b.bulkSummary.successes>0)return b.bulkSummary.navigationPage}return null},[u]);j.useEffect(()=>{De.current=$m},[$m]),j.useEffect(()=>{ac.current=Km},[Km]),j.useEffect(()=>{let L=b=>{if((b.metaKey||b.ctrlKey)&&b.key==="Enter"){let U=ac.current;if(U){b.preventDefault(),b.stopPropagation(),sc(U);return}if(He){b.preventDefault(),b.stopPropagation(),oc();return}if(Wt){b.preventDefault(),b.stopPropagation(),rc(Wt);return}let E=De.current;if(console.log("[DEBUG] Keyboard handler - latestBulkSummaryNavigation:",E,"onNavigate:",!!r),E&&r){console.log("[DEBUG] Navigating via keyboard to:",E.page),b.preventDefault(),b.stopPropagation(),r(E.page,E.subtab);return}if(Ve){b.preventDefault(),b.stopPropagation(),Xm();return}if(he.current){b.preventDefault(),b.stopPropagation(),ic();return}}};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[He,Wt,Z,Ve,r]);function Aa(L,b,U){let E=b.split(" "),_=0,oe=window.setInterval(()=>{_+=1,d(te=>te.map(P=>P.id===L?{...P,content:E.slice(0,_).join(" ")}:P)),_>=E.length&&(window.clearInterval(oe),delete v.current[L],U&&U.length>0&&d(te=>te.map(P=>P.id===L?{...P,followups:U}:P)),m("idle"))},25);v.current[L]=oe}function oS(L,b){d(U=>U.map(E=>E.id===L?{...E,followupSelected:!0}:E)),nc(b.label)}function Xm(){Object.values(v.current).forEach(L=>window.clearInterval(L)),v.current={},S.current.forEach(L=>window.clearTimeout(L)),S.current=[],Ao(),d([]),f(""),m("idle"),D("landing"),B(void 0),Jt(void 0),xt(!1),yt(null),Jd(null),ee({}),a&&a()}function pT(L){D("folder"),B(L)}function nS(){D("landing"),B(void 0)}function sS(L){L.preventDefault();let b=c.trim();if(Ro){if(!b){let U={id:Date.now(),role:"assistant",kind:"text",content:"Please describe what you'd like to do with this CSV file. For example: 'Create customers from this file' or 'Add these subscriptions'."};d(E=>[...E,U]);return}lS(b,Ro),f(""),tc(null),Do.current&&(Do.current.value="");return}b&&(nc(b),f(""))}function iS(L){let b={dashboard:"dashboard",customers:"customers page",payments:"payments page",settings:"settings page",support:"support page",disputes:"disputes page",radar:"radar page"};if(L.page==="settings"&&L.subtab){let U={general:"General",billing:"Billing",security:"Security",api:"API Keys",notifications:"Notifications",integrations:"Integrations"};return`${b.settings} (${U[L.subtab]} tab)`}return b[L.page]}function rc(L){r&&r(L.page,L.subtab),yt(null),d(b=>b.map(U=>U.kind==="navigationAction"&&U.navigationTarget?.page===L.page&&U.navigationTarget?.subtab===L.subtab?{...U,navigationTarget:void 0}:U))}function oc(){if(!He)return;let L=J;if(He.type!=="updateCompanyInfo"){if(He.type==="addApiKey"){let b=L;if(!b.name||!b.name.trim())return}else if(He.type==="addCustomer"){let b=L;if(!b.name||!b.name.trim()||!b.email||!b.email.trim())return}else if(He.type==="changePassword"){let b=L;if(!b.currentPassword||!b.newPassword||!b.confirmPassword||b.newPassword!==b.confirmPassword)return}else if(He.type==="addWebhook"){let b=L;if(!b.url||!b.url.trim())return}else if(He.type==="addPaymentMethod"){let b=L;if(!b.cardNumber||!b.expiryDate)return}else if(He.type==="deleteApiKey"){let b=L;if(!b.keyId&&!b.name)return}else if(He.type==="refundPayment"){let b=L;if(!b.transactionId&&!b.customer)return}else if(He.type==="createSubscription"){let b=L;if(!b.customerEmail&&!b.customerId)return}else if((He.type==="toggleBlockRule"||He.type==="enableBlockRule"||He.type==="disableBlockRule")&&!L.ruleId)return}o&&o(He.type,L),d(b=>b.map(U=>U.kind==="actionForm"&&U.actionType===He.type?{...U,isSubmitted:!0}:U)),Jd(null),ee({})}async function nc(L){S.current.forEach(te=>window.clearTimeout(te)),S.current=[];let U=[...u].reverse().find(te=>te.role==="assistant")?.isNotificationMessage===!0,E=Date.now(),_={id:E,role:"user",content:L};if(d(te=>[...te,_]),U){let te=Date.now()+1,P={id:te,role:"assistant",kind:"text",content:""};d(N=>[...N,P]),Aa(te,"Thank you, your feedback is saved.");return}yt(null),m("thinking"),x([]);let oe=!1;try{let te=new AbortController,P=setTimeout(()=>te.abort(),6e4),N=await fetch(`${s}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:g,message:L,current_page:n||"dashboard"}),signal:te.signal});if(clearTimeout(P),!N.ok)throw new Error(`Agent request failed: ${N.status}`);let w=N.body?.getReader();if(!w)throw new Error("No response body");let K=new TextDecoder,ie="";for(;;){let{done:$,value:ce}=await w.read();if($)break;ie+=K.decode(ce,{stream:!0});let qe=ie.split(`
|
|
18
|
+
`)})},a.length)),o=!1,n=[],s=""):(l(),o=!0,s=d.slice(3).trim());continue}if(o){n.push(d);continue}let c=d.match(/^(#{1,6})\s+(.+)/);if(c){l();let v=c[1].length,C=i(c[2]),I=v===1?"text-lg font-bold my-1":v===2?"text-base font-bold my-1":"text-sm font-semibold my-1";a.push((0,p.jsx)("div",{className:I,children:C},a.length));continue}let f=d.match(/^[-*]\s+(.+)/);if(f){(!r||r.type!=="ul")&&(l(),r={type:"ul",items:[]}),r.items.push(i(f[1]));continue}let g=d.match(/^\d+[.)]\s+(.+)/);if(g){(!r||r.type!=="ol")&&(l(),r={type:"ol",items:[]}),r.items.push(i(g[1]));continue}if(d.trim()===""){l(),a.push((0,p.jsx)("div",{className:"h-2"},a.length));continue}if(d.match(/^[-*_]{3,}$/)){l(),a.push((0,p.jsx)("hr",{className:"my-2 border-gray-200"},a.length));continue}l(),a.push((0,p.jsx)("div",{children:i(d)},a.length))}return l(),(0,p.jsx)(p.Fragment,{children:a})}var nT=[{id:"changing-layouts",label:"Changing layouts",prompt:"How do I change the layout of my profiles or folders?",icon:"layout"},{id:"bulk-uploads",label:"Bulk uploads",prompt:"How do I bulk upload profiles using a CSV file?",icon:"upload"},{id:"example-setups",label:"Example setups",prompt:"Can you show me some example folder setups?",icon:"setup"}],tS=[{id:"customers",title:"Customer Management",topics:[{id:"add-customer",label:"Add a new customer",prompt:"How do I add a new customer to the system and what information is required?"},{id:"customer-details",label:"View customer details",prompt:"Show me how to view and edit customer information and their payment history."}]},{id:"payments",title:"Payment Processing",topics:[{id:"process-payment",label:"Process a payment",prompt:"How do I process a one-time payment for a customer?"},{id:"refund-payment",label:"Issue a refund",prompt:"Walk me through issuing a refund for a customer payment."}]},{id:"subscriptions",title:"Subscription Management",topics:[{id:"create-subscription",label:"Create a subscription",prompt:"How do I set up a new subscription plan for a customer?"},{id:"update-subscription",label:"Update subscription tier",prompt:"How can I change a customer's subscription plan or upgrade them?"}]},{id:"billing",title:"Billing",topics:[{id:"payment-methods",label:"Manage payment methods",prompt:"How do customers add or update their payment methods?"}]}],Hm={"getting-started":{id:"getting-started",title:"Getting started",steps:[{text:"Step 1: Let's open the Customers page. This is where you'll manage all your customers - you can view, add, and edit customer information here.",navigation:{page:"customers"},cursorTarget:{selector:'[data-page="customers"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 2: Now let's open the Add customer dialog. This is where you'll enter information for your first customer, including their name, email, and other details.",navigation:{page:"customers"},cursorTarget:{selector:'[data-testid="add-customer-button"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 3: Let's open the Settings page. This is where you manage your account settings, company information, and preferences. We're going to verify your company address is correct.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-page="settings"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 4: Here's the address field in the Company Information section. It's important to verify this address is accurate since it's used for billing and shipping purposes. Make sure it's up to date.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-testid="company-address-input"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 5: Let's open the API Keys tab. This section shows all your API keys - you'll need these to connect your application to our services. We're going to create a production API key.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-settings-tab="api"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 6: Let's open the Create API Key dialog. Here you can create a new API key for your application. You'll want to give it a descriptive name like 'Production Key' so you can easily identify it later.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-testid="create-api-key-button"]',offset:{x:0,y:0},onClick:!0}}]},"add-api-key":{id:"add-api-key",title:"How to add an API key",steps:[{text:"Step 1: Let's open the Settings page. This is where you manage your account settings and preferences. We need to go here to access the API Keys section.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-page="settings"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 2: Let's open the API Keys tab. This section shows all your API keys and allows you to create new ones. You'll need API keys to connect your application to our services.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-settings-tab="api"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 3: Let's open the Create API Key dialog. This is where you'll create your new API key - you can give it a name to help you identify it later, then click Create to generate it.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-testid="create-api-key-button"]',offset:{x:0,y:0},onClick:!0}}]},"refund-payment":{id:"refund-payment",title:"How to refund a payment",steps:[{text:"Step 1: Let's open the Home page. This is your dashboard where you can view today's activity, your payment overview, and recent transactions. We need to go here to find the payment you want to refund.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-page="dashboard"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 2: Scroll down to see the Recent transactions section at the bottom. This shows your latest payment transactions with their status. We're looking for a transaction with 'paid' status - only paid transactions can be refunded.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-testid="recent-activity-card"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 3: Let's open the dropdown menu for this paid transaction. Each transaction has a menu button (three dots) that gives you options like refunding. Click it to see the available actions, including the 'Refund payment' option.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-testid="transaction-menu-button"]',offset:{x:0,y:0},onClick:!0}}]}},sT=[];function iT({isOpen:e=!0,onClose:t,onBack:a,onNavigate:r,onActionComplete:o,currentPage:n,agentUrl:s=rT,startingQuestions:i,startingQuestionsEndpoint:l}={}){let[u,d]=j.useState(sT),[c,f]=j.useState(""),[g]=j.useState(()=>crypto.randomUUID()),v=j.useRef({}),C=u.length===0,[I,m]=j.useState("idle"),[h,x]=j.useState([]),S=j.useRef([]),k=u.length?u[u.length-1].role:void 0,[T,D]=j.useState("landing"),[A,B]=j.useState(void 0),[V,de]=j.useState(i||nT),[se,jr]=j.useState(!1);j.useEffect(()=>{l&&!i&&(jr(!0),fetch(l).then(L=>L.json()).then(L=>{Array.isArray(L)&&L.length>0&&de(L)}).catch(L=>{console.warn("[KiteChat] Failed to fetch starting questions:",L)}).finally(()=>jr(!1)))},[l,i]),j.useEffect(()=>{i&&de(i)},[i]);let[Z,Jt]=j.useState(void 0),he=j.useRef(void 0),De=j.useRef(null),[Ve,gt]=j.useState(!1);j.useEffect(()=>{window.resetIntegrationNotification=()=>{localStorage.removeItem("gmailNotificationSeen"),console.log("Integration notification reset! Click the Integrations tab to see it again.")};let L=()=>{if(!localStorage.getItem("gmailNotificationSeen")){D("landing"),B(void 0);let U=Date.now(),E="I see you're exploring integrations. Let me know if there are any other connections we should add.",_={id:U,role:"assistant",kind:"text",content:"",isNotificationMessage:!0};d(oe=>[...oe,_]),Aa(U,E),localStorage.setItem("gmailNotificationSeen","true")}};return window.addEventListener("integrationTabClicked",L),()=>{window.removeEventListener("integrationTabClicked",L)}},[]),j.useEffect(()=>{Z?(!he.current||he.current.id!==Z.id||he.current.stepIndex!==Z.stepIndex)&&(he.current=Z):he.current=void 0},[Z]);let[Wt,xt]=j.useState(null),[He,Jd]=j.useState(null),[J,ee]=j.useState({}),jm=j.useRef(null),ec=j.useRef(null),qi=j.useRef(null),{cursorState:Wi,moveTo:Kr,hide:Ao}=ZC(),[Ro,tc]=j.useState(null),[Km,rr]=j.useState(null),ac=j.useRef(null),Do=j.useRef(null);j.useEffect(()=>{if(!Z||Z.id!=="add-api-key"||Z.stepIndex!==2)return;let b=setInterval(()=>{let U=document.querySelector('[role="dialog"]'),E=he.current;if(U&&E&&E.id==="add-api-key"&&E.stepIndex===2){Ao();let _=Date.now()+1;d(oe=>[...oe,{id:_,role:"assistant",kind:"guideComplete",content:"Perfect! The dialog is now open. You can enter a name and create your API key."}]),Jt(void 0),gt(!0)}},300);return()=>clearInterval(b)},[Z,Ao]),j.useEffect(()=>()=>{Object.values(v.current).forEach(L=>window.clearInterval(L)),v.current={},S.current.forEach(L=>window.clearTimeout(L)),S.current=[]},[]),j.useEffect(()=>{if(Z&&u.length>0){let L=u[u.length-1];if((L.kind==="guideStep"||L.kind==="guideComplete")&&qi.current&&ec.current){let b=ec.current,U=qi.current,E=b.getBoundingClientRect(),oe=U.getBoundingClientRect().top-E.top+b.scrollTop;b.scrollTop=oe}}else!Z&&u.length>0&&jm.current?.scrollIntoView({behavior:"smooth"})},[u,I,Z]);let $m=j.useMemo(()=>{for(let L=u.length-1;L>=0;L--){let b=u[L];if(b.kind==="bulkSummary"&&b.bulkSummary?.navigationPage&&b.bulkSummary.successes>0)return b.bulkSummary.navigationPage}return null},[u]);j.useEffect(()=>{De.current=$m},[$m]),j.useEffect(()=>{ac.current=Km},[Km]),j.useEffect(()=>{let L=b=>{if((b.metaKey||b.ctrlKey)&&b.key==="Enter"){let U=ac.current;if(U){b.preventDefault(),b.stopPropagation(),sc(U);return}if(He){b.preventDefault(),b.stopPropagation(),oc();return}if(Wt){b.preventDefault(),b.stopPropagation(),rc(Wt);return}let E=De.current;if(console.log("[DEBUG] Keyboard handler - latestBulkSummaryNavigation:",E,"onNavigate:",!!r),E&&r){console.log("[DEBUG] Navigating via keyboard to:",E.page),b.preventDefault(),b.stopPropagation(),r(E.page,E.subtab);return}if(Ve){b.preventDefault(),b.stopPropagation(),Xm();return}if(he.current){b.preventDefault(),b.stopPropagation(),ic();return}}};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[He,Wt,Z,Ve,r]);function Aa(L,b,U){let E=b.split(" "),_=0,oe=window.setInterval(()=>{_+=1,d(te=>te.map(P=>P.id===L?{...P,content:E.slice(0,_).join(" ")}:P)),_>=E.length&&(window.clearInterval(oe),delete v.current[L],U&&U.length>0&&d(te=>te.map(P=>P.id===L?{...P,followups:U}:P)),m("idle"))},25);v.current[L]=oe}function oS(L,b){d(U=>U.map(E=>E.id===L?{...E,followupSelected:!0}:E)),nc(b.label)}function Xm(){Object.values(v.current).forEach(L=>window.clearInterval(L)),v.current={},S.current.forEach(L=>window.clearTimeout(L)),S.current=[],Ao(),d([]),f(""),m("idle"),D("landing"),B(void 0),Jt(void 0),gt(!1),xt(null),Jd(null),ee({}),a&&a()}function pT(L){D("folder"),B(L)}function nS(){D("landing"),B(void 0)}function sS(L){L.preventDefault();let b=c.trim();if(Ro){if(!b){let U={id:Date.now(),role:"assistant",kind:"text",content:"Please describe what you'd like to do with this CSV file. For example: 'Create customers from this file' or 'Add these subscriptions'."};d(E=>[...E,U]);return}lS(b,Ro),f(""),tc(null),Do.current&&(Do.current.value="");return}b&&(nc(b),f(""))}function iS(L){let b={dashboard:"dashboard",customers:"customers page",payments:"payments page",settings:"settings page",support:"support page",disputes:"disputes page",radar:"radar page"};if(L.page==="settings"&&L.subtab){let U={general:"General",billing:"Billing",security:"Security",api:"API Keys",notifications:"Notifications",integrations:"Integrations"};return`${b.settings} (${U[L.subtab]} tab)`}return b[L.page]}function rc(L){r&&r(L.page,L.subtab),xt(null),d(b=>b.map(U=>U.kind==="navigationAction"&&U.navigationTarget?.page===L.page&&U.navigationTarget?.subtab===L.subtab?{...U,navigationTarget:void 0}:U))}function oc(){if(!He)return;let L=J;if(He.type!=="updateCompanyInfo"){if(He.type==="addApiKey"){let b=L;if(!b.name||!b.name.trim())return}else if(He.type==="addCustomer"){let b=L;if(!b.name||!b.name.trim()||!b.email||!b.email.trim())return}else if(He.type==="changePassword"){let b=L;if(!b.currentPassword||!b.newPassword||!b.confirmPassword||b.newPassword!==b.confirmPassword)return}else if(He.type==="addWebhook"){let b=L;if(!b.url||!b.url.trim())return}else if(He.type==="addPaymentMethod"){let b=L;if(!b.cardNumber||!b.expiryDate)return}else if(He.type==="deleteApiKey"){let b=L;if(!b.keyId&&!b.name)return}else if(He.type==="refundPayment"){let b=L;if(!b.transactionId&&!b.customer)return}else if(He.type==="createSubscription"){let b=L;if(!b.customerEmail&&!b.customerId)return}else if((He.type==="toggleBlockRule"||He.type==="enableBlockRule"||He.type==="disableBlockRule")&&!L.ruleId)return}o&&o(He.type,L),d(b=>b.map(U=>U.kind==="actionForm"&&U.actionType===He.type?{...U,isSubmitted:!0}:U)),Jd(null),ee({})}async function nc(L){S.current.forEach(te=>window.clearTimeout(te)),S.current=[];let U=[...u].reverse().find(te=>te.role==="assistant")?.isNotificationMessage===!0,E=Date.now(),_={id:E,role:"user",content:L};if(d(te=>[...te,_]),U){let te=Date.now()+1,P={id:te,role:"assistant",kind:"text",content:""};d(N=>[...N,P]),Aa(te,"Thank you, your feedback is saved.");return}xt(null),m("thinking"),x([]);let oe=!1;try{let te=new AbortController,P=setTimeout(()=>te.abort(),6e4),N=await fetch(`${s}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:g,message:L,current_page:n||"dashboard"}),signal:te.signal});if(clearTimeout(P),!N.ok)throw new Error(`Agent request failed: ${N.status}`);let w=N.body?.getReader();if(!w)throw new Error("No response body");let K=new TextDecoder,ie="";for(;;){let{done:$,value:ce}=await w.read();if($)break;ie+=K.decode(ce,{stream:!0});let qe=ie.split(`
|
|
19
19
|
|
|
20
|
-
`);ie=qe.pop()||"";for(let
|
|
21
|
-
`),
|
|
20
|
+
`);ie=qe.pop()||"";for(let et of qe){if(!et.trim())continue;let Ra=et.split(`
|
|
21
|
+
`),tt="",ea="";for(let W of Ra)W.startsWith("event: ")?tt=W.slice(7):W.startsWith("data: ")&&(ea=W.slice(6));if(!(!tt||!ea))try{let W=JSON.parse(ea);if(tt==="progress")W.status==="thinking"?(m("thinking"),x([{message:W.message,completed:!1}])):W.status==="executing"?(m("executing"),x(z=>{let ae=z.map(yt=>({...yt,completed:!0})),fe=ae[ae.length-1];return(!fe||fe.message!==W.message)&&ae.push({message:W.message,completed:!1}),ae})):W.status==="responding"&&(m("responding"),x(z=>z.map(ae=>({...ae,completed:!0}))));else if(tt==="response"){x([]),oe=!0;let z=W;if(z.action==="navigate"&&z.navigation){let ae={page:z.navigation.page,subtab:z.navigation.subtab};xt(ae);let fe={id:E+1,role:"assistant",kind:"navigationAction",content:z.response||`I can take you to the ${iS(ae)}.`,navigationTarget:ae};d(yt=>[...yt,fe]),m("idle")}else if(z.action==="show_form"&&z.actionType){Jd({type:z.actionType,data:z.actionData||{}}),ee(z.actionData||{});let ae={id:E+1,role:"assistant",kind:"actionForm",content:z.response||z.message||"Please fill in the details below:",actionType:z.actionType,actionData:z.actionData||{}};d(fe=>[...fe,ae]),m("idle")}else if(z.action==="suggest_bulk"){let ae=E+1,fe={id:ae,role:"assistant",kind:"text",content:""};d(yt=>[...yt,fe]),Aa(ae,z.response||z.message||"For bulk operations, you can upload a CSV file - just click the \u{1F4CE} button!",z.followups),oe=!0}else if(z.action==="bulk_preview"){rr(z.bulk_session_id);let ae={id:E+1,role:"assistant",kind:"bulkPreview",content:z.message||`I found ${z.csv_data?.rowCount||0} items. Here's a preview:`,csvData:z.csv_data?{rowCount:z.csv_data.rowCount,columns:z.csv_data.columns,sampleRows:z.csv_data.sampleRows,fileName:"From context"}:void 0,suggestedAction:z.suggested_action,bulkSessionId:z.bulk_session_id};d(fe=>[...fe,ae]),m("idle"),oe=!0}else if(z.action==="execute"&&z.executionResult){let ae=E+1,fe={id:ae,role:"assistant",kind:"text",content:"",structuredData:z.structuredData||void 0};d(yt=>[...yt,fe]),Aa(ae,z.response,z.followups),oe=!0,setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:z.executionResult}}))},100)}else{let ae=E+1,fe={id:ae,role:"assistant",kind:"text",content:""};d(yt=>[...yt,fe]),Aa(ae,z.response,z.followups),oe=!0}}else if(tt==="error"){m("idle"),x([]),oe=!0;let z=E+1,ae={id:z,role:"assistant",kind:"text",content:""};d(fe=>[...fe,ae]),Aa(z,W.message||"An error occurred processing your request.")}else tt==="done"&&(x([]),m("idle"),oe=!0)}catch(W){console.error("Failed to parse SSE event:",W)}}}x([]),oe||m("idle")}catch(te){console.error("Agent request failed:",te),x([]);let P=E+1,N={id:P,role:"assistant",kind:"text",content:""};d(w=>[...w,N]),Aa(P,"I'm having trouble connecting to my backend. Please make sure the agent server is running on port 5002. For simple navigation requests, I can still help you locally.")}finally{x([])}}async function lS(L,b){S.current.forEach(_=>window.clearTimeout(_)),S.current=[];let U=Date.now(),E={id:U,role:"user",content:`\u{1F4CE} ${b.name}
|
|
22
22
|
|
|
23
23
|
${L}`};d(_=>[..._,E]),m("thinking"),x([{message:"Analyzing CSV file...",completed:!1}]);try{let _=new FormData;_.append("file",b),_.append("message",L),_.append("session_id",g),_.append("current_page",n||"dashboard");let oe=new AbortController,te=setTimeout(()=>oe.abort(),12e4),P=await fetch(`${s}/chat/bulk/stream`,{method:"POST",body:_,signal:oe.signal});if(clearTimeout(te),!P.ok)throw new Error(`Bulk upload failed: ${P.status}`);let N=P.body?.getReader();if(!N)throw new Error("No response body");let w=new TextDecoder,K="",ie=null;for(;;){let{done:$,value:ce}=await N.read();if($)break;K+=w.decode(ce,{stream:!0});let qe=K.split(`
|
|
24
24
|
|
|
25
|
-
`);K=qe.pop()||"";for(let
|
|
26
|
-
`),
|
|
25
|
+
`);K=qe.pop()||"";for(let et of qe){if(!et.trim())continue;let Ra=et.split(`
|
|
26
|
+
`),tt="",ea="";for(let W of Ra)W.startsWith("event: ")?tt=W.slice(7):W.startsWith("data: ")&&(ea=W.slice(6));if(!(!tt||!ea))try{let W=JSON.parse(ea);if(tt==="preview"){m("idle"),x([]),ie=W.bulk_session_id,rr(ie);let z={id:U+1,role:"assistant",kind:"bulkPreview",content:W.message||`I found ${W.csv_data.rowCount} rows in your CSV. Here's a preview:`,csvData:{rowCount:W.csv_data.rowCount,columns:W.csv_data.columns,sampleRows:W.csv_data.sampleRows,fileName:b.name},suggestedAction:W.suggested_action,bulkSessionId:ie||void 0};d(ae=>[...ae,z])}else if(tt==="progress")m("executing"),x([{message:`Processing row ${W.row} of ${W.total}...`,completed:!1}]),d(z=>z[z.length-1]?.kind==="bulkProgress"?z.map((fe,yt)=>yt===z.length-1?{...fe,bulkProgress:{processed:W.row,total:W.total,successes:W.successes||0,failures:W.failures||0}}:fe):[...z,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:W.row,total:W.total,successes:W.successes||0,failures:W.failures||0}}]);else if(tt==="summary")m("idle"),x([]),rr(null),d(z=>[...z.filter(fe=>fe.kind!=="bulkProgress"),{id:Date.now(),role:"assistant",kind:"bulkSummary",content:W.message,bulkSummary:{total:W.total,successes:W.successes,failures:W.failures||[],navigationPage:W.navigationPage}}]),setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:{bulk:!0,total:W.total,successes:W.successes}}}))},100);else if(tt==="error"){m("idle"),x([]),rr(null);let z={id:U+1,role:"assistant",kind:"text",content:W.message||"An error occurred processing your CSV file."};d(ae=>[...ae,z])}else tt==="done"&&(m("idle"),x([]))}catch(W){console.error("Failed to parse bulk SSE event:",W)}}}x([]),m("idle")}catch(_){console.error("Bulk upload failed:",_),x([]),m("idle");let oe={id:U+1,role:"assistant",kind:"text",content:"I'm having trouble processing your CSV file. Please make sure the agent server is running on port 5002 and try again."};d(te=>[...te,oe])}}async function sc(L){m("executing"),x([{message:"Starting bulk operation...",completed:!1}]);try{let b=await fetch(`${s}/chat/bulk/confirm`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({bulk_session_id:L})});if(!b.ok)throw new Error(`Confirm failed: ${b.status}`);let U=b.body?.getReader();if(!U)throw new Error("No response body");let E=new TextDecoder,_="";for(;;){let{done:oe,value:te}=await U.read();if(oe)break;_+=E.decode(te,{stream:!0});let P=_.split(`
|
|
27
27
|
|
|
28
28
|
`);_=P.pop()||"";for(let N of P){if(!N.trim())continue;let w=N.split(`
|
|
29
|
-
`),K="",ie="";for(let $ of w)$.startsWith("event: ")?K=$.slice(7):$.startsWith("data: ")&&(ie=$.slice(6));if(!(!K||!ie))try{let $=JSON.parse(ie);if(K==="progress")x([{message:`Processing row ${$.row} of ${$.total}...`,completed:!1}]),d(ce=>ce[ce.length-1]?.kind==="bulkProgress"?ce.map((tt,Ra)=>Ra===ce.length-1?{...tt,bulkProgress:{processed:$.row,total:$.total,successes:$.successes||0,failures:$.failures||0}}:tt):[...ce,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:$.row,total:$.total,successes:$.successes||0,failures:$.failures||0}}]);else if(K==="summary")console.log("[DEBUG] Received summary event - data:",$),console.log("[DEBUG] navigationPage from backend:",$.navigationPage),m("idle"),x([]),rr(null),d(ce=>{let qe=ce.filter(Ra=>Ra.kind!=="bulkProgress"&&Ra.kind!=="bulkPreview"),tt={id:Date.now(),role:"assistant",kind:"bulkSummary",content:$.message,bulkSummary:{total:$.total,successes:$.successes,failures:$.failures||[],navigationPage:$.navigationPage}};return console.log("[DEBUG] Creating bulkSummary message:",tt),[...qe,tt]}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:{bulk:!0,total:$.total,successes:$.successes}}}))},100);else if(K==="error"){m("idle"),x([]),rr(null);let ce={id:Date.now(),role:"assistant",kind:"text",content:$.message||"An error occurred during bulk processing."};d(qe=>[...qe,ce])}}catch($){console.error("Failed to parse confirm SSE event:",$)}}}}catch(b){console.error("Bulk confirm failed:",b),m("idle"),x([]),rr(null);let U={id:Date.now(),role:"assistant",kind:"text",content:"Failed to start bulk operation. Please try again."};d(E=>[...E,U])}}function uS(){rr(null),d(L=>L.filter(b=>b.kind!=="bulkPreview"))}function Qm(L){nc(L)}function dS(L){let b=Date.now()+Math.floor(Math.random()*1e3);d(U=>[...U,{id:b,role:"assistant",kind:"text",content:L}])}function mT(L){let b=Hm[L];if(!b)return;D("landing"),B(void 0);let U={id:L,stepIndex:0};Jt(U),he.current=U,dS(`I'll help you with ${b.title}.`);let E=b.steps[0],_=E.cursorTarget?.selector.includes("[data-page="),oe=E.cursorTarget?.selector.includes("[data-settings-tab=");if(E.cursorTarget&&(_||oe)){let P=E.cursorTarget;oe&&E.navigation&&r&&r(E.navigation.page,void 0),setTimeout(()=>{let w=()=>{let K=document.querySelector(P.selector);K&&K.offsetParent!==null?(Kr(P),P.onClick&&setTimeout(()=>{K.click()},1200)):setTimeout(w,200)};w()},oe?800:400)}else if(E.navigation&&r&&r(E.navigation.page,E.navigation.subtab),E.cursorTarget){let P=E.cursorTarget,N=P.selector.includes("data-settings-tab"),w=P.selector.includes("dialog")||P.selector.includes("api-key-name-input");setTimeout(()=>{let ie=()=>{let $=document.querySelector(P.selector);$&&$.offsetParent!==null?(Kr(P),P.onClick&&setTimeout(()=>{$.click()},1e3)):N||w?setTimeout(ie,200):(Kr(P),P.onClick&&setTimeout(()=>{let ce=document.querySelector(P.selector);ce&&ce.click()},1e3))};ie()},w?700:N?600:400)}let te={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:0};d(P=>[...P,te]),Aa(te.id,E.text)}function ic(){if(!Z)return;let L=Hm[Z.id];if(!L)return;let b=he.current;(!b||b.id!==Z.id)&&(b=Z,he.current=Z);let E=b.stepIndex+1;if(E>=L.steps.length){Ao();let w=Date.now()+1;d(K=>[...K,{id:w,role:"assistant",kind:"guideComplete",content:"Guide Complete"}]),Jt(void 0),xt(!0);return}let _=L.steps[E],oe={id:Z.id,stepIndex:E};Jt(oe),he.current=oe;let te={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:E};d(w=>[...w,te]);let P=_.cursorTarget?.selector.includes("[data-page="),N=_.cursorTarget?.selector.includes("[data-settings-tab=");if(_.cursorTarget&&(P||N)){let w=_.cursorTarget;N&&_.navigation&&r&&r(_.navigation.page,void 0),setTimeout(()=>{let ie=he.current;if(!ie||ie.id!==L.id||ie.stepIndex!==E)return;let $=()=>{let ce=he.current;if(!ce||ce.id!==L.id||ce.stepIndex!==E)return;let qe=document.querySelector(w.selector);qe&&qe.offsetParent!==null?(Kr(w),w.onClick&&setTimeout(()=>{let tt=he.current;!tt||tt.id!==L.id||tt.stepIndex!==E||qe.click()},1200)):setTimeout($,200)};$()},N?800:400)}else if(_.navigation&&r&&r(_.navigation.page,_.navigation.subtab),_.cursorTarget){let w=_.cursorTarget,K=w.selector.includes("dialog")||w.selector.includes("api-key-name-input"),ie=w.selector.includes("data-settings-tab"),$=_.navigation?.subtab&&ie&&w.selector.includes(`data-settings-tab="${_.navigation.subtab}"`),ce=w.onClick&&!$,qe=!!_.navigation,at=(!!_.navigation?.subtab?700:qe?400:0)+(K?700:ie?600:400);setTimeout(()=>{let ea=he.current;if(!ea||ea.id!==L.id||ea.stepIndex!==E)return;let W=()=>{let z=he.current;if(!z||z.id!==L.id||z.stepIndex!==E)return;let ae=document.querySelector(w.selector);ae&&ae.offsetParent!==null?(Kr(w),ce&&setTimeout(()=>{let fe=he.current;!fe||fe.id!==L.id||fe.stepIndex!==E||ae.click()},1e3)):K||ie||w.selector.includes("data-testid")?setTimeout(W,200):(Kr(w),ce&&setTimeout(()=>{let fe=he.current;if(!fe||fe.id!==L.id||fe.stepIndex!==E)return;let vt=document.querySelector(w.selector);vt&&vt.click()},1e3))};W()},at)}else Ao();Aa(te.id,_.text)}function cS(){if(!Z)return;let L=Hm[Z.id];if(!L)return;let b=Z.stepIndex-1;if(b>=0){Jt({id:Z.id,stepIndex:b});let U=L.steps[b];U.navigation&&r&&r(U.navigation.page,U.navigation.subtab),U.cursorTarget?setTimeout(()=>{Kr(U.cursorTarget)},500):Ao();let E=u.filter(_=>_.kind!=="guideStep"&&_.kind!=="guideComplete");d([...E,{id:Date.now(),role:"assistant",kind:"guideStep",content:U.text}])}}return(0,p.jsxs)("section",{className:`fixed top-0 right-0 z-40 flex flex-col bg-white border-l border-gray-200 h-full overflow-hidden transition-transform duration-300 ${e?"translate-x-0":"translate-x-full"}`,style:{width:`${qm}px`},children:[(0,p.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-gradient-to-r from-gray-50 to-white shrink-0",children:[(0,p.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:"Help"}),(0,p.jsx)("div",{className:"flex items-center gap-1",children:(0,p.jsx)(Ot,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full",onClick:()=>{d([]),D("landing"),B(void 0),Jt(void 0),he.current=void 0,xt(!1)},children:(0,p.jsx)(bt,{className:"h-3.5 w-3.5"})})})]}),(0,p.jsx)("div",{className:C?"grid flex-1 place-items-center transition-all duration-300":"flex flex-1 flex-col transition-all duration-300 min-h-0 overflow-hidden",children:C?(0,p.jsxs)("div",{className:"w-full overflow-y-auto px-4",children:[(0,p.jsxs)("div",{className:"py-4 transition-all duration-300",children:[(0,p.jsx)("h2",{className:"text-center text-2xl font-semibold text-gray-900",children:T==="folder"?tS.find(L=>L.id===A)?.title||"":"What can I help with?"}),T==="landing"&&(0,p.jsx)("p",{className:"mt-1 text-center text-xs text-gray-500",children:"Ask me anything about your account"})]}),(0,p.jsxs)("div",{className:"pb-4",children:[T==="landing"&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"mb-2 text-[10px] font-semibold uppercase tracking-wider text-gray-400",children:"Suggested Questions"}),(0,p.jsx)("div",{className:"flex flex-col gap-1",children:se?(0,p.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,p.jsx)(Vt,{className:"h-4 w-4 animate-spin text-gray-400"})}):V.map((L,b)=>{let U=["bg-blue-400","bg-green-400","bg-purple-400","bg-orange-400","bg-pink-400"];return(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"ghost",className:"w-full justify-start rounded-lg px-3 py-2 text-xs text-gray-700 hover:bg-gray-100 h-auto",onClick:()=>Qm(L.prompt),children:[(0,p.jsx)("span",{className:`mr-2 inline-block h-1.5 w-1.5 rounded-full ${U[b%U.length]}`}),L.label]},L.id)})})]}),T==="folder"&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,p.jsx)(Ot,{type:"button",size:"icon",variant:"ghost",className:"h-7 w-7 rounded-full hover:bg-gray-100",onClick:nS,"aria-label":"Back to suggestions",children:(0,p.jsx)(hn,{className:"h-4 w-4 text-gray-500"})}),(0,p.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-gray-400",children:"Topics"})]}),(0,p.jsx)("div",{className:"flex flex-col gap-1.5",children:tS.find(L=>L.id===A)?.topics.map(L=>(0,p.jsx)(Ot,{type:"button",size:"sm",variant:"secondary",className:"justify-start rounded-xl border border-gray-200 bg-gray-50 px-3 py-2.5 text-xs text-gray-700 shadow-none transition-all hover:bg-gray-100 hover:border-gray-300 h-auto",onClick:()=>Qm(L.prompt),children:L.label},L.id))})]})]})]}):(0,p.jsx)(p.Fragment,{children:(0,p.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,p.jsx)(Bp,{ref:ec,className:"h-full",children:(0,p.jsxs)("div",{className:"flex flex-col gap-2 px-4 py-3",children:[u.map((L,b)=>{let U=L.role==="user",E=b>0?u[b-1].role:void 0,_=E!==void 0&&E!==L.role,oe=he.current||Z,te=!1;if(oe&&L.kind==="guideStep"?L.guideStepIndex!==void 0?te=L.guideStepIndex===oe.stepIndex:te=b===u.length-1:L.kind==="guideComplete"&&(te=b===u.length-1),L.kind==="guideStep"&&!te)return null;if(U)return(0,p.jsx)("div",{className:`flex justify-end ${_?"mt-3":""}`,children:(0,p.jsx)("div",{className:"max-w-[280px] rounded-2xl rounded-br-md bg-gray-900 px-3.5 py-2.5 text-sm text-white shadow-sm",children:L.content})},L.id);if(L.kind==="searchSummary")return(0,p.jsx)("div",{className:`${_?"mt-3":""}`,children:(0,p.jsx)(Av,{title:L.title??"Search results",links:L.links??[]})},L.id);if(L.kind==="guideComplete")return(0,p.jsx)("div",{ref:te?qi:null,className:`${_?"mt-3":""}`,children:(0,p.jsxs)("div",{className:"flex items-center gap-2 rounded-xl bg-green-50 border border-green-200 px-3 py-2.5 text-sm leading-6",children:[(0,p.jsx)(je,{className:"h-5 w-5 text-green-600 flex-shrink-0"}),(0,p.jsx)("span",{className:"font-medium text-green-800",children:L.content})]})},L.id);if(L.kind==="navigationAction")return(0,p.jsxs)("div",{className:`${_?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-2 text-gray-700",children:L.content||""}),L.navigationTarget&&(0,p.jsx)("div",{className:"mt-2",children:(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:()=>L.navigationTarget&&rc(L.navigationTarget),children:[(0,p.jsx)("span",{children:"Confirm"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Ga,{className:"h-3 w-3"}),(0,p.jsx)(ja,{className:"h-3 w-3"})]})]})})]},L.id);if(L.kind==="actionForm"){let P=L.actionType,N=Object.keys(J).length>0?J:L.actionData||{};if(L.isSubmitted){let w="";return P==="updateCompanyInfo"?w="Company information has been updated successfully.":P==="addApiKey"?w="API key has been added successfully.":P==="addCustomer"?w="Customer has been added successfully.":P==="enable2FA"?w="Two-factor authentication has been enabled successfully.":P==="disable2FA"?w="Two-factor authentication has been disabled successfully.":P==="changePassword"?w="Your password has been changed successfully.":P==="revokeSession"?w="Session has been revoked successfully.":P==="toggleNotification"?w="Notification preferences have been updated successfully.":P==="connectIntegration"?w="Integration has been connected successfully.":P==="disconnectIntegration"?w="Integration has been disconnected successfully.":P==="addPaymentMethod"?w="Payment method has been added successfully.":P==="removePaymentMethod"?w="Payment method has been removed successfully.":P==="deleteApiKey"?w="API key has been deleted successfully.":P==="addWebhook"?w="Webhook endpoint has been added successfully.":P==="updateCurrency"?w="Currency preference has been updated successfully.":P==="updateTimezone"?w="Timezone has been updated successfully.":P==="refundPayment"?w="Refund has been processed successfully.":P==="exportCertificate"?w="Certificate of Incorporation has been downloaded successfully.":P==="createSubscription"?w="Subscription has been created successfully.":P==="toggleBlockRule"||P==="enableBlockRule"||P==="disableBlockRule"?w="Block rule has been updated successfully.":w="Action completed successfully.",(0,p.jsx)("div",{className:`${_?"mt-3":""}`,children:(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 text-gray-700",children:w})},L.id)}return(0,p.jsxs)("div",{className:`min-w-0 ${_?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:L.content||""}),P==="updateCompanyInfo"&&(0,p.jsxs)("div",{className:"space-y-2 bg-gray-50 rounded-lg p-2 border border-gray-200 overflow-hidden",children:[(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Company Name"}),(0,p.jsx)(ke,{placeholder:"Acme Corporation",value:N.companyName||"",onChange:w=>ee({...J,companyName:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Email"}),(0,p.jsx)(ke,{type:"email",placeholder:"contact@acme.com",value:N.email||"",onChange:w=>ee({...J,email:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Address"}),(0,p.jsx)(ke,{placeholder:"123 Main St, San Francisco, CA",value:N.address||"",onChange:w=>ee({...J,address:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Phone"}),(0,p.jsx)(ke,{type:"tel",placeholder:"+1 (555) 123-4567",value:N.phone||"",onChange:w=>ee({...J,phone:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Website"}),(0,p.jsx)(ke,{type:"url",placeholder:"https://acme.com",value:N.website||"",onChange:w=>ee({...J,website:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]})]}),P==="addApiKey"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"API Key Name"}),(0,p.jsx)(ke,{placeholder:"Production Key",value:N.name||"",onChange:w=>ee({...J,name:w.target.value}),className:"h-8 text-xs border-gray-200"})]})}),P==="addCustomer"&&(0,p.jsxs)("div",{className:"space-y-2 bg-gray-50 rounded-lg p-2 border border-gray-200 overflow-hidden",children:[(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Company Name"}),(0,p.jsx)(ke,{placeholder:"Acme Corporation",value:N.name||"",onChange:w=>ee({...J,name:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Email"}),(0,p.jsx)(ke,{type:"email",placeholder:"contact@acme.com",value:N.email||"",onChange:w=>ee({...J,email:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Location"}),(0,p.jsx)(ke,{placeholder:"San Francisco, CA",value:N.location||"",onChange:w=>ee({...J,location:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Subscription Tier"}),(0,p.jsxs)("select",{value:N.subscription||"Starter",onChange:w=>ee({...J,subscription:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"Starter",children:"Starter"}),(0,p.jsx)("option",{value:"Professional",children:"Professional"}),(0,p.jsx)("option",{value:"Enterprise",children:"Enterprise"})]})]})]}),(P==="enable2FA"||P==="disable2FA")&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsx)("p",{className:"text-xs text-black",children:P==="enable2FA"?"This will enable two-factor authentication for your account. You'll need to set up an authenticator app.":"This will disable two-factor authentication for your account. Your account will be less secure."})}),P==="changePassword"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Current Password"}),(0,p.jsx)(ke,{type:"password",value:N.currentPassword||"",onChange:w=>ee({...J,currentPassword:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"New Password"}),(0,p.jsx)(ke,{type:"password",value:N.newPassword||"",onChange:w=>ee({...J,newPassword:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Confirm New Password"}),(0,p.jsx)(ke,{type:"password",value:N.confirmPassword||"",onChange:w=>ee({...J,confirmPassword:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),P==="toggleNotification"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Notification Type"}),(0,p.jsxs)("select",{value:N.notificationType||"paymentReceived",onChange:w=>ee({...J,notificationType:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"paymentReceived",children:"Payment Received"}),(0,p.jsx)("option",{value:"paymentFailed",children:"Payment Failed"}),(0,p.jsx)("option",{value:"invoicePaid",children:"Invoice Paid"}),(0,p.jsx)("option",{value:"monthlySummary",children:"Monthly Summary"}),(0,p.jsx)("option",{value:"productUpdates",children:"Product Updates"})]})]}),(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsx)("input",{type:"checkbox",checked:N.enabled!==!1,onChange:w=>ee({...J,enabled:w.target.checked}),className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"}),(0,p.jsx)("label",{className:"text-xs text-black",children:"Enable this notification"})]})]}),(P==="connectIntegration"||P==="disconnectIntegration")&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Integration"}),(0,p.jsxs)("select",{value:N.integrationName||"Slack",onChange:w=>ee({...J,integrationName:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"Slack",children:"Slack"}),(0,p.jsx)("option",{value:"Zapier",children:"Zapier"}),(0,p.jsx)("option",{value:"Webhook",children:"Webhook"})]})]})}),P==="addPaymentMethod"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Card Number"}),(0,p.jsx)(ke,{placeholder:"1234 5678 9012 3456",value:N.cardNumber||"",onChange:w=>ee({...J,cardNumber:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Expiry Date"}),(0,p.jsx)(ke,{placeholder:"MM/YY",value:N.expiryDate||"",onChange:w=>ee({...J,expiryDate:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),P==="removePaymentMethod"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsx)("p",{className:"text-xs text-black",children:"This will remove the default payment method from your account."})}),P==="refundPayment"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Transaction ID or Customer Name"}),(0,p.jsx)(ke,{placeholder:"e.g., txn_1234 or Acme Corp",value:N.transactionId||N.customer||"",onChange:w=>{let K=w.target.value;K.startsWith("txn_")||/^\d+$/.test(K)?ee({...J,transactionId:K,customer:void 0}):ee({...J,customer:K,transactionId:void 0})},className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Amount (optional)"}),(0,p.jsx)(ke,{placeholder:"$0.00",value:N.amount||"",onChange:w=>ee({...J,amount:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Reason (optional)"}),(0,p.jsx)(ke,{placeholder:"e.g., Customer request",value:N.reason||"",onChange:w=>ee({...J,reason:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),P==="deleteApiKey"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"API Key Name or ID"}),(0,p.jsx)(ke,{placeholder:"Production Key",value:N.keyId||N.name||"",onChange:w=>ee({...J,keyId:w.target.value,name:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsx)("p",{className:"text-xs text-red-600",children:"Warning: This action cannot be undone. The API key will be permanently deleted."})]}),P==="addWebhook"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Webhook URL"}),(0,p.jsx)(ke,{type:"url",placeholder:"https://example.com/webhook",value:N.url||"",onChange:w=>ee({...J,url:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Name (optional)"}),(0,p.jsx)(ke,{placeholder:"Production Webhook",value:N.name||"",onChange:w=>ee({...J,name:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),P==="updateCurrency"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Currency"}),(0,p.jsxs)("select",{value:N.currency||"USD",onChange:w=>ee({...J,currency:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"USD",children:"USD ($)"}),(0,p.jsx)("option",{value:"EUR",children:"EUR (\u20AC)"}),(0,p.jsx)("option",{value:"GBP",children:"GBP (\xA3)"}),(0,p.jsx)("option",{value:"JPY",children:"JPY (\xA5)"})]})]})}),P==="updateTimezone"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Timezone"}),(0,p.jsxs)("select",{value:N.timezone||"America/Los_Angeles",onChange:w=>ee({...J,timezone:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"America/Los_Angeles",children:"Pacific Time (PT)"}),(0,p.jsx)("option",{value:"America/New_York",children:"Eastern Time (ET)"}),(0,p.jsx)("option",{value:"Europe/London",children:"GMT"}),(0,p.jsx)("option",{value:"Asia/Tokyo",children:"JST"})]})]})}),P==="revokeSession"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Device/Session"}),(0,p.jsx)(ke,{placeholder:"MacBook Pro",value:N.device||"",onChange:w=>ee({...J,device:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsx)("p",{className:"text-xs text-black",children:"This will sign out the device and invalidate its session."})]}),P==="createSubscription"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Customer Email"}),(0,p.jsx)(ke,{type:"email",placeholder:"customer@example.com",value:N.customerEmail||"",onChange:w=>ee({...J,customerEmail:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Plan"}),(0,p.jsxs)("select",{value:N.plan||"Starter",onChange:w=>ee({...J,plan:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"Starter",children:"Starter ($29/mo)"}),(0,p.jsx)("option",{value:"Professional",children:"Professional ($99/mo)"}),(0,p.jsx)("option",{value:"Enterprise",children:"Enterprise ($299/mo)"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Billing Cycle"}),(0,p.jsxs)("select",{value:N.billingCycle||"monthly",onChange:w=>ee({...J,billingCycle:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"monthly",children:"Monthly"}),(0,p.jsx)("option",{value:"yearly",children:"Yearly (Save 15%)"})]})]})]}),P==="exportCertificate"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsx)("p",{className:"text-xs text-black",children:"This will export your certificate of incorporation document."}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Format"}),(0,p.jsxs)("select",{value:N.format||"pdf",onChange:w=>ee({...J,format:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"pdf",children:"PDF"}),(0,p.jsx)("option",{value:"json",children:"JSON"})]})]})]}),(P==="toggleBlockRule"||P==="enableBlockRule"||P==="disableBlockRule")&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Block Rule"}),(0,p.jsxs)("select",{value:N.ruleId||"rule_1",onChange:w=>ee({...J,ruleId:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"rule_1",children:"Block if risk level = 'highest'"}),(0,p.jsx)("option",{value:"rule_2",children:"Block if matches Stripe block lists"}),(0,p.jsx)("option",{value:"rule_3",children:"Block if CVC verification fails"}),(0,p.jsx)("option",{value:"rule_4",children:"Block if Postal code verification fails"})]})]}),(0,p.jsx)("p",{className:"text-xs text-black",children:P==="enableBlockRule"?"This will enable the selected block rule to actively block matching payments.":P==="disableBlockRule"?"This will disable the selected block rule. Matching payments will no longer be blocked.":"This will toggle the selected block rule's state."})]}),(0,p.jsx)("div",{className:"mt-3",children:(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:oc,children:[(0,p.jsx)("span",{children:"Confirm"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Ga,{className:"h-3 w-3"}),(0,p.jsx)(ja,{className:"h-3 w-3"})]})]})})]},L.id)}if(L.kind==="bulkPreview"&&L.csvData)return(0,p.jsxs)("div",{className:`${_?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:L.content||""}),(0,p.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 overflow-hidden",children:[(0,p.jsxs)("div",{className:"bg-gray-100 px-3 py-2 border-b border-gray-200 flex items-center gap-2",children:[(0,p.jsx)(gn,{className:"h-4 w-4 text-gray-600"}),(0,p.jsx)("span",{className:"text-xs font-medium text-gray-700",children:L.csvData.fileName}),(0,p.jsxs)("span",{className:"text-xs text-gray-500",children:["\u2022 ",L.csvData.rowCount," rows"]})]}),(0,p.jsxs)("div",{className:"px-3 py-2 border-b border-gray-100",children:[(0,p.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 mb-1",children:"Columns"}),(0,p.jsx)("div",{className:"flex flex-wrap gap-1",children:L.csvData.columns.map((P,N)=>(0,p.jsx)("span",{className:"text-xs bg-blue-100 text-blue-700 px-1.5 py-0.5 rounded",children:P},N))})]}),L.csvData.sampleRows.length>0&&(0,p.jsxs)("div",{className:"px-3 py-2",children:[(0,p.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 mb-1",children:"Sample Data"}),(0,p.jsx)("div",{className:"space-y-1",children:L.csvData.sampleRows.slice(0,3).map((P,N)=>(0,p.jsxs)("div",{className:"text-xs text-gray-600 bg-white rounded px-2 py-1 border border-gray-100",children:[Object.entries(P).slice(0,3).map(([w,K],ie)=>(0,p.jsxs)("span",{children:[ie>0&&" \u2022 ",(0,p.jsxs)("span",{className:"text-gray-400",children:[w,":"]})," ",K]},w)),Object.keys(P).length>3&&(0,p.jsx)("span",{className:"text-gray-400",children:" ..."})]},N))})]}),L.suggestedAction&&(0,p.jsx)("div",{className:"px-3 py-2 bg-blue-50 border-t border-blue-100",children:(0,p.jsxs)("span",{className:"text-xs text-blue-700",children:["Suggested action: ",(0,p.jsx)("strong",{children:L.suggestedAction.replace(/_/g," ")})]})})]}),L.bulkSessionId&&(0,p.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:()=>L.bulkSessionId&&sc(L.bulkSessionId),children:[(0,p.jsxs)("span",{children:["Process ",L.csvData.rowCount," rows"]}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Ga,{className:"h-3 w-3"}),(0,p.jsx)(ja,{className:"h-3 w-3"})]})]}),(0,p.jsx)(Ot,{type:"button",size:"sm",variant:"ghost",className:"h-8 rounded-xl px-3 text-xs text-gray-500 hover:text-gray-700 hover:bg-gray-100",onClick:uS,children:"Cancel"})]})]},L.id);if(L.kind==="bulkProgress"&&L.bulkProgress){let{processed:P,total:N,successes:w,failures:K}=L.bulkProgress,ie=Math.round(P/N*100);return(0,p.jsx)("div",{className:`${_?"mt-3":""}`,children:(0,p.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 p-3",children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,p.jsx)(Vt,{className:"h-4 w-4 animate-spin text-blue-600"}),(0,p.jsxs)("span",{className:"text-sm font-medium text-gray-700",children:["Processing... ",P," of ",N]})]}),(0,p.jsx)("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden mb-2",children:(0,p.jsx)("div",{className:"h-full bg-blue-600 transition-all duration-300",style:{width:`${ie}%`}})}),(0,p.jsxs)("div",{className:"flex items-center gap-3 text-xs text-gray-600",children:[(0,p.jsxs)("span",{className:"flex items-center gap-1",children:[(0,p.jsx)(je,{className:"h-3 w-3 text-green-600"}),w," successful"]}),K>0&&(0,p.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,p.jsx)(ho,{className:"h-3 w-3"}),K," failed"]})]})]})},L.id)}if(L.kind==="bulkSummary"&&L.bulkSummary){let{total:P,successes:N,failures:w,navigationPage:K}=L.bulkSummary,ie=w.length>0,$=K?.page==="customers"?"Customers":K?.page==="dashboard"?"Dashboard":K?.page==="settings"?"Settings":"Results";return(0,p.jsx)("div",{className:`${_?"mt-3":""}`,children:(0,p.jsxs)("div",{className:`rounded-lg border p-3 ${ie?"bg-amber-50 border-amber-200":"bg-green-50 border-green-200"}`,children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,p.jsx)(je,{className:`h-5 w-5 ${ie?"text-amber-600":"text-green-600"}`}),(0,p.jsx)("span",{className:"text-sm font-medium text-gray-800",children:"Bulk operation complete"})]}),(0,p.jsx)("div",{className:"text-sm text-gray-600 mb-2",children:L.content||`Processed ${P} rows: ${N} successful${ie?`, ${w.length} failed`:""}.`}),(0,p.jsxs)("div",{className:"flex items-center gap-4 text-xs",children:[(0,p.jsxs)("span",{className:"flex items-center gap-1 text-green-700",children:[(0,p.jsx)(je,{className:"h-3 w-3"}),N," successful"]}),ie&&(0,p.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,p.jsx)(ho,{className:"h-3 w-3"}),w.length," failed"]})]}),ie&&(0,p.jsxs)("div",{className:"mt-3 pt-2 border-t border-amber-200",children:[(0,p.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-amber-700 mb-1",children:"Failed Rows"}),(0,p.jsxs)("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:[w.slice(0,5).map((ce,qe)=>(0,p.jsxs)("div",{className:"text-xs text-red-700 bg-red-50 rounded px-2 py-1",children:["Row ",ce.row,": ",ce.error||"Unknown error"]},qe)),w.length>5&&(0,p.jsxs)("div",{className:"text-xs text-amber-600",children:["...and ",w.length-5," more"]})]})]}),K&&N>0&&(0,p.jsx)("div",{className:"mt-3 pt-2 border-t border-gray-200",children:(0,p.jsxs)("button",{type:"button",onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),console.log("[DEBUG] Button clicked - navigationPage:",K,"onNavigate:",!!r),r&&K.page?(console.log("[DEBUG] Calling onNavigate with page:",K.page),r(K.page,K.subtab)):console.log("[DEBUG] Condition failed - onNavigate:",!!r,"navigationPage.page:",K.page)},className:"flex items-center gap-2 text-xs text-gray-500 hover:text-gray-700 transition-colors group cursor-pointer",children:[(0,p.jsxs)("span",{className:"flex items-center gap-1 px-1.5 py-0.5 bg-gray-100 rounded text-[10px] font-medium text-gray-600 group-hover:bg-gray-200",children:[(0,p.jsx)(Ga,{className:"h-2.5 w-2.5"}),(0,p.jsx)("span",{children:"+"}),(0,p.jsx)(ja,{className:"h-2.5 w-2.5"})]}),(0,p.jsxs)("span",{children:["View ",$]})]})})]})},L.id)}return(0,p.jsx)(j.Fragment,{children:(0,p.jsxs)("div",{ref:te?qi:null,className:`${_?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"text-sm leading-6 text-gray-700",children:(()=>{let P=L.content||"";if(L.kind==="guideStep"){let N=P.match(/^(Step\s+\d+:)([\s\S]*)/);if(N)return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("strong",{children:N[1]}),N[2]]})}return L.role==="assistant"&&P?oT(P):P||(0,p.jsx)("span",{className:"opacity-70",children:"Thinking\u2026"})})()}),L.role==="assistant"&&L.structuredData&&(0,p.jsx)("div",{className:"mt-3",children:(0,p.jsx)(eS,{type:L.structuredData.type,data:L.structuredData.data})}),L.role==="assistant"&&L.followups&&L.followups.length>0&&!L.followupSelected&&(0,p.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:L.followups.map(P=>(0,p.jsx)("button",{type:"button",onClick:()=>oS(L.id,P),className:`inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-xl
|
|
29
|
+
`),K="",ie="";for(let $ of w)$.startsWith("event: ")?K=$.slice(7):$.startsWith("data: ")&&(ie=$.slice(6));if(!(!K||!ie))try{let $=JSON.parse(ie);if(K==="progress")x([{message:`Processing row ${$.row} of ${$.total}...`,completed:!1}]),d(ce=>ce[ce.length-1]?.kind==="bulkProgress"?ce.map((et,Ra)=>Ra===ce.length-1?{...et,bulkProgress:{processed:$.row,total:$.total,successes:$.successes||0,failures:$.failures||0}}:et):[...ce,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:$.row,total:$.total,successes:$.successes||0,failures:$.failures||0}}]);else if(K==="summary")console.log("[DEBUG] Received summary event - data:",$),console.log("[DEBUG] navigationPage from backend:",$.navigationPage),m("idle"),x([]),rr(null),d(ce=>{let qe=ce.filter(Ra=>Ra.kind!=="bulkProgress"&&Ra.kind!=="bulkPreview"),et={id:Date.now(),role:"assistant",kind:"bulkSummary",content:$.message,bulkSummary:{total:$.total,successes:$.successes,failures:$.failures||[],navigationPage:$.navigationPage}};return console.log("[DEBUG] Creating bulkSummary message:",et),[...qe,et]}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:{bulk:!0,total:$.total,successes:$.successes}}}))},100);else if(K==="error"){m("idle"),x([]),rr(null);let ce={id:Date.now(),role:"assistant",kind:"text",content:$.message||"An error occurred during bulk processing."};d(qe=>[...qe,ce])}}catch($){console.error("Failed to parse confirm SSE event:",$)}}}}catch(b){console.error("Bulk confirm failed:",b),m("idle"),x([]),rr(null);let U={id:Date.now(),role:"assistant",kind:"text",content:"Failed to start bulk operation. Please try again."};d(E=>[...E,U])}}function uS(){rr(null),d(L=>L.filter(b=>b.kind!=="bulkPreview"))}function Qm(L){nc(L)}function dS(L){let b=Date.now()+Math.floor(Math.random()*1e3);d(U=>[...U,{id:b,role:"assistant",kind:"text",content:L}])}function mT(L){let b=Hm[L];if(!b)return;D("landing"),B(void 0);let U={id:L,stepIndex:0};Jt(U),he.current=U,dS(`I'll help you with ${b.title}.`);let E=b.steps[0],_=E.cursorTarget?.selector.includes("[data-page="),oe=E.cursorTarget?.selector.includes("[data-settings-tab=");if(E.cursorTarget&&(_||oe)){let P=E.cursorTarget;oe&&E.navigation&&r&&r(E.navigation.page,void 0),setTimeout(()=>{let w=()=>{let K=document.querySelector(P.selector);K&&K.offsetParent!==null?(Kr(P),P.onClick&&setTimeout(()=>{K.click()},1200)):setTimeout(w,200)};w()},oe?800:400)}else if(E.navigation&&r&&r(E.navigation.page,E.navigation.subtab),E.cursorTarget){let P=E.cursorTarget,N=P.selector.includes("data-settings-tab"),w=P.selector.includes("dialog")||P.selector.includes("api-key-name-input");setTimeout(()=>{let ie=()=>{let $=document.querySelector(P.selector);$&&$.offsetParent!==null?(Kr(P),P.onClick&&setTimeout(()=>{$.click()},1e3)):N||w?setTimeout(ie,200):(Kr(P),P.onClick&&setTimeout(()=>{let ce=document.querySelector(P.selector);ce&&ce.click()},1e3))};ie()},w?700:N?600:400)}let te={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:0};d(P=>[...P,te]),Aa(te.id,E.text)}function ic(){if(!Z)return;let L=Hm[Z.id];if(!L)return;let b=he.current;(!b||b.id!==Z.id)&&(b=Z,he.current=Z);let E=b.stepIndex+1;if(E>=L.steps.length){Ao();let w=Date.now()+1;d(K=>[...K,{id:w,role:"assistant",kind:"guideComplete",content:"Guide Complete"}]),Jt(void 0),gt(!0);return}let _=L.steps[E],oe={id:Z.id,stepIndex:E};Jt(oe),he.current=oe;let te={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:E};d(w=>[...w,te]);let P=_.cursorTarget?.selector.includes("[data-page="),N=_.cursorTarget?.selector.includes("[data-settings-tab=");if(_.cursorTarget&&(P||N)){let w=_.cursorTarget;N&&_.navigation&&r&&r(_.navigation.page,void 0),setTimeout(()=>{let ie=he.current;if(!ie||ie.id!==L.id||ie.stepIndex!==E)return;let $=()=>{let ce=he.current;if(!ce||ce.id!==L.id||ce.stepIndex!==E)return;let qe=document.querySelector(w.selector);qe&&qe.offsetParent!==null?(Kr(w),w.onClick&&setTimeout(()=>{let et=he.current;!et||et.id!==L.id||et.stepIndex!==E||qe.click()},1200)):setTimeout($,200)};$()},N?800:400)}else if(_.navigation&&r&&r(_.navigation.page,_.navigation.subtab),_.cursorTarget){let w=_.cursorTarget,K=w.selector.includes("dialog")||w.selector.includes("api-key-name-input"),ie=w.selector.includes("data-settings-tab"),$=_.navigation?.subtab&&ie&&w.selector.includes(`data-settings-tab="${_.navigation.subtab}"`),ce=w.onClick&&!$,qe=!!_.navigation,tt=(!!_.navigation?.subtab?700:qe?400:0)+(K?700:ie?600:400);setTimeout(()=>{let ea=he.current;if(!ea||ea.id!==L.id||ea.stepIndex!==E)return;let W=()=>{let z=he.current;if(!z||z.id!==L.id||z.stepIndex!==E)return;let ae=document.querySelector(w.selector);ae&&ae.offsetParent!==null?(Kr(w),ce&&setTimeout(()=>{let fe=he.current;!fe||fe.id!==L.id||fe.stepIndex!==E||ae.click()},1e3)):K||ie||w.selector.includes("data-testid")?setTimeout(W,200):(Kr(w),ce&&setTimeout(()=>{let fe=he.current;if(!fe||fe.id!==L.id||fe.stepIndex!==E)return;let yt=document.querySelector(w.selector);yt&&yt.click()},1e3))};W()},tt)}else Ao();Aa(te.id,_.text)}function cS(){if(!Z)return;let L=Hm[Z.id];if(!L)return;let b=Z.stepIndex-1;if(b>=0){Jt({id:Z.id,stepIndex:b});let U=L.steps[b];U.navigation&&r&&r(U.navigation.page,U.navigation.subtab),U.cursorTarget?setTimeout(()=>{Kr(U.cursorTarget)},500):Ao();let E=u.filter(_=>_.kind!=="guideStep"&&_.kind!=="guideComplete");d([...E,{id:Date.now(),role:"assistant",kind:"guideStep",content:U.text}])}}return(0,p.jsxs)("section",{className:`fixed top-0 right-0 z-40 flex flex-col bg-white border-l border-gray-200 h-full overflow-hidden transition-transform duration-300 ${e?"translate-x-0":"translate-x-full"}`,style:{width:`${qm}px`},children:[(0,p.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-gradient-to-r from-gray-50 to-white shrink-0",children:[(0,p.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:"Help"}),(0,p.jsx)("div",{className:"flex items-center gap-1",children:(0,p.jsx)(Ot,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full",onClick:()=>{d([]),D("landing"),B(void 0),Jt(void 0),he.current=void 0,gt(!1)},children:(0,p.jsx)(kt,{className:"h-3.5 w-3.5"})})})]}),(0,p.jsx)("div",{className:C?"grid flex-1 place-items-center transition-all duration-300":"flex flex-1 flex-col transition-all duration-300 min-h-0 overflow-hidden",children:C?(0,p.jsxs)("div",{className:"w-full overflow-y-auto px-4",children:[(0,p.jsxs)("div",{className:"py-4 transition-all duration-300",children:[(0,p.jsx)("h2",{className:"text-center text-2xl font-semibold text-gray-900",children:T==="folder"?tS.find(L=>L.id===A)?.title||"":"What can I help with?"}),T==="landing"&&(0,p.jsx)("p",{className:"mt-1 text-center text-xs text-gray-500",children:"Ask me anything about your account"})]}),(0,p.jsxs)("div",{className:"pb-4",children:[T==="landing"&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"mb-2 text-[10px] font-semibold uppercase tracking-wider text-gray-400",children:"Suggested Questions"}),(0,p.jsx)("div",{className:"flex flex-col gap-1",children:se?(0,p.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,p.jsx)(Vt,{className:"h-4 w-4 animate-spin text-gray-400"})}):V.map((L,b)=>{let U=["bg-blue-400","bg-green-400","bg-purple-400","bg-orange-400","bg-pink-400"];return(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"ghost",className:"w-full justify-start rounded-lg px-3 py-2 text-xs text-gray-700 hover:bg-gray-100 h-auto",onClick:()=>Qm(L.prompt),children:[(0,p.jsx)("span",{className:`mr-2 inline-block h-1.5 w-1.5 rounded-full ${U[b%U.length]}`}),L.label]},L.id)})})]}),T==="folder"&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,p.jsx)(Ot,{type:"button",size:"icon",variant:"ghost",className:"h-7 w-7 rounded-full hover:bg-gray-100",onClick:nS,"aria-label":"Back to suggestions",children:(0,p.jsx)(hn,{className:"h-4 w-4 text-gray-500"})}),(0,p.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-gray-400",children:"Topics"})]}),(0,p.jsx)("div",{className:"flex flex-col gap-1.5",children:tS.find(L=>L.id===A)?.topics.map(L=>(0,p.jsx)(Ot,{type:"button",size:"sm",variant:"secondary",className:"justify-start rounded-xl border border-gray-200 bg-gray-50 px-3 py-2.5 text-xs text-gray-700 shadow-none transition-all hover:bg-gray-100 hover:border-gray-300 h-auto",onClick:()=>Qm(L.prompt),children:L.label},L.id))})]})]})]}):(0,p.jsx)(p.Fragment,{children:(0,p.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,p.jsx)(Bp,{ref:ec,className:"h-full",children:(0,p.jsxs)("div",{className:"flex flex-col gap-2 px-4 py-3",children:[u.map((L,b)=>{let U=L.role==="user",E=b>0?u[b-1].role:void 0,_=E!==void 0&&E!==L.role,oe=he.current||Z,te=!1;if(oe&&L.kind==="guideStep"?L.guideStepIndex!==void 0?te=L.guideStepIndex===oe.stepIndex:te=b===u.length-1:L.kind==="guideComplete"&&(te=b===u.length-1),L.kind==="guideStep"&&!te)return null;if(U)return(0,p.jsx)("div",{className:`flex justify-end ${_?"mt-3":""}`,children:(0,p.jsx)("div",{className:"max-w-[280px] rounded-2xl rounded-br-md bg-gray-900 px-3.5 py-2.5 text-sm text-white shadow-sm",children:L.content})},L.id);if(L.kind==="searchSummary")return(0,p.jsx)("div",{className:`${_?"mt-3":""}`,children:(0,p.jsx)(Av,{title:L.title??"Search results",links:L.links??[]})},L.id);if(L.kind==="guideComplete")return(0,p.jsx)("div",{ref:te?qi:null,className:`${_?"mt-3":""}`,children:(0,p.jsxs)("div",{className:"flex items-center gap-2 rounded-xl bg-green-50 border border-green-200 px-3 py-2.5 text-sm leading-6",children:[(0,p.jsx)(je,{className:"h-5 w-5 text-green-600 flex-shrink-0"}),(0,p.jsx)("span",{className:"font-medium text-green-800",children:L.content})]})},L.id);if(L.kind==="navigationAction")return(0,p.jsxs)("div",{className:`${_?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-2 text-gray-700",children:L.content||""}),L.navigationTarget&&(0,p.jsx)("div",{className:"mt-2",children:(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:()=>L.navigationTarget&&rc(L.navigationTarget),children:[(0,p.jsx)("span",{children:"Confirm"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Ga,{className:"h-3 w-3"}),(0,p.jsx)(ja,{className:"h-3 w-3"})]})]})})]},L.id);if(L.kind==="actionForm"){let P=L.actionType,N=Object.keys(J).length>0?J:L.actionData||{};if(L.isSubmitted){let w="";return P==="updateCompanyInfo"?w="Company information has been updated successfully.":P==="addApiKey"?w="API key has been added successfully.":P==="addCustomer"?w="Customer has been added successfully.":P==="enable2FA"?w="Two-factor authentication has been enabled successfully.":P==="disable2FA"?w="Two-factor authentication has been disabled successfully.":P==="changePassword"?w="Your password has been changed successfully.":P==="revokeSession"?w="Session has been revoked successfully.":P==="toggleNotification"?w="Notification preferences have been updated successfully.":P==="connectIntegration"?w="Integration has been connected successfully.":P==="disconnectIntegration"?w="Integration has been disconnected successfully.":P==="addPaymentMethod"?w="Payment method has been added successfully.":P==="removePaymentMethod"?w="Payment method has been removed successfully.":P==="deleteApiKey"?w="API key has been deleted successfully.":P==="addWebhook"?w="Webhook endpoint has been added successfully.":P==="updateCurrency"?w="Currency preference has been updated successfully.":P==="updateTimezone"?w="Timezone has been updated successfully.":P==="refundPayment"?w="Refund has been processed successfully.":P==="exportCertificate"?w="Certificate of Incorporation has been downloaded successfully.":P==="createSubscription"?w="Subscription has been created successfully.":P==="toggleBlockRule"||P==="enableBlockRule"||P==="disableBlockRule"?w="Block rule has been updated successfully.":w="Action completed successfully.",(0,p.jsx)("div",{className:`${_?"mt-3":""}`,children:(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 text-gray-700",children:w})},L.id)}return(0,p.jsxs)("div",{className:`min-w-0 ${_?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:L.content||""}),P==="updateCompanyInfo"&&(0,p.jsxs)("div",{className:"space-y-2 bg-gray-50 rounded-lg p-2 border border-gray-200 overflow-hidden",children:[(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Company Name"}),(0,p.jsx)(ke,{placeholder:"Acme Corporation",value:N.companyName||"",onChange:w=>ee({...J,companyName:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Email"}),(0,p.jsx)(ke,{type:"email",placeholder:"contact@acme.com",value:N.email||"",onChange:w=>ee({...J,email:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Address"}),(0,p.jsx)(ke,{placeholder:"123 Main St, San Francisco, CA",value:N.address||"",onChange:w=>ee({...J,address:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Phone"}),(0,p.jsx)(ke,{type:"tel",placeholder:"+1 (555) 123-4567",value:N.phone||"",onChange:w=>ee({...J,phone:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Website"}),(0,p.jsx)(ke,{type:"url",placeholder:"https://acme.com",value:N.website||"",onChange:w=>ee({...J,website:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]})]}),P==="addApiKey"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"API Key Name"}),(0,p.jsx)(ke,{placeholder:"Production Key",value:N.name||"",onChange:w=>ee({...J,name:w.target.value}),className:"h-8 text-xs border-gray-200"})]})}),P==="addCustomer"&&(0,p.jsxs)("div",{className:"space-y-2 bg-gray-50 rounded-lg p-2 border border-gray-200 overflow-hidden",children:[(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Company Name"}),(0,p.jsx)(ke,{placeholder:"Acme Corporation",value:N.name||"",onChange:w=>ee({...J,name:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Email"}),(0,p.jsx)(ke,{type:"email",placeholder:"contact@acme.com",value:N.email||"",onChange:w=>ee({...J,email:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Location"}),(0,p.jsx)(ke,{placeholder:"San Francisco, CA",value:N.location||"",onChange:w=>ee({...J,location:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Subscription Tier"}),(0,p.jsxs)("select",{value:N.subscription||"Starter",onChange:w=>ee({...J,subscription:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"Starter",children:"Starter"}),(0,p.jsx)("option",{value:"Professional",children:"Professional"}),(0,p.jsx)("option",{value:"Enterprise",children:"Enterprise"})]})]})]}),(P==="enable2FA"||P==="disable2FA")&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsx)("p",{className:"text-xs text-black",children:P==="enable2FA"?"This will enable two-factor authentication for your account. You'll need to set up an authenticator app.":"This will disable two-factor authentication for your account. Your account will be less secure."})}),P==="changePassword"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Current Password"}),(0,p.jsx)(ke,{type:"password",value:N.currentPassword||"",onChange:w=>ee({...J,currentPassword:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"New Password"}),(0,p.jsx)(ke,{type:"password",value:N.newPassword||"",onChange:w=>ee({...J,newPassword:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Confirm New Password"}),(0,p.jsx)(ke,{type:"password",value:N.confirmPassword||"",onChange:w=>ee({...J,confirmPassword:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),P==="toggleNotification"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Notification Type"}),(0,p.jsxs)("select",{value:N.notificationType||"paymentReceived",onChange:w=>ee({...J,notificationType:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"paymentReceived",children:"Payment Received"}),(0,p.jsx)("option",{value:"paymentFailed",children:"Payment Failed"}),(0,p.jsx)("option",{value:"invoicePaid",children:"Invoice Paid"}),(0,p.jsx)("option",{value:"monthlySummary",children:"Monthly Summary"}),(0,p.jsx)("option",{value:"productUpdates",children:"Product Updates"})]})]}),(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsx)("input",{type:"checkbox",checked:N.enabled!==!1,onChange:w=>ee({...J,enabled:w.target.checked}),className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"}),(0,p.jsx)("label",{className:"text-xs text-black",children:"Enable this notification"})]})]}),(P==="connectIntegration"||P==="disconnectIntegration")&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Integration"}),(0,p.jsxs)("select",{value:N.integrationName||"Slack",onChange:w=>ee({...J,integrationName:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"Slack",children:"Slack"}),(0,p.jsx)("option",{value:"Zapier",children:"Zapier"}),(0,p.jsx)("option",{value:"Webhook",children:"Webhook"})]})]})}),P==="addPaymentMethod"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Card Number"}),(0,p.jsx)(ke,{placeholder:"1234 5678 9012 3456",value:N.cardNumber||"",onChange:w=>ee({...J,cardNumber:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Expiry Date"}),(0,p.jsx)(ke,{placeholder:"MM/YY",value:N.expiryDate||"",onChange:w=>ee({...J,expiryDate:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),P==="removePaymentMethod"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsx)("p",{className:"text-xs text-black",children:"This will remove the default payment method from your account."})}),P==="refundPayment"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Transaction ID or Customer Name"}),(0,p.jsx)(ke,{placeholder:"e.g., txn_1234 or Acme Corp",value:N.transactionId||N.customer||"",onChange:w=>{let K=w.target.value;K.startsWith("txn_")||/^\d+$/.test(K)?ee({...J,transactionId:K,customer:void 0}):ee({...J,customer:K,transactionId:void 0})},className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Amount (optional)"}),(0,p.jsx)(ke,{placeholder:"$0.00",value:N.amount||"",onChange:w=>ee({...J,amount:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Reason (optional)"}),(0,p.jsx)(ke,{placeholder:"e.g., Customer request",value:N.reason||"",onChange:w=>ee({...J,reason:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),P==="deleteApiKey"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"API Key Name or ID"}),(0,p.jsx)(ke,{placeholder:"Production Key",value:N.keyId||N.name||"",onChange:w=>ee({...J,keyId:w.target.value,name:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsx)("p",{className:"text-xs text-red-600",children:"Warning: This action cannot be undone. The API key will be permanently deleted."})]}),P==="addWebhook"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Webhook URL"}),(0,p.jsx)(ke,{type:"url",placeholder:"https://example.com/webhook",value:N.url||"",onChange:w=>ee({...J,url:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Name (optional)"}),(0,p.jsx)(ke,{placeholder:"Production Webhook",value:N.name||"",onChange:w=>ee({...J,name:w.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),P==="updateCurrency"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Currency"}),(0,p.jsxs)("select",{value:N.currency||"USD",onChange:w=>ee({...J,currency:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"USD",children:"USD ($)"}),(0,p.jsx)("option",{value:"EUR",children:"EUR (\u20AC)"}),(0,p.jsx)("option",{value:"GBP",children:"GBP (\xA3)"}),(0,p.jsx)("option",{value:"JPY",children:"JPY (\xA5)"})]})]})}),P==="updateTimezone"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Timezone"}),(0,p.jsxs)("select",{value:N.timezone||"America/Los_Angeles",onChange:w=>ee({...J,timezone:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"America/Los_Angeles",children:"Pacific Time (PT)"}),(0,p.jsx)("option",{value:"America/New_York",children:"Eastern Time (ET)"}),(0,p.jsx)("option",{value:"Europe/London",children:"GMT"}),(0,p.jsx)("option",{value:"Asia/Tokyo",children:"JST"})]})]})}),P==="revokeSession"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Device/Session"}),(0,p.jsx)(ke,{placeholder:"MacBook Pro",value:N.device||"",onChange:w=>ee({...J,device:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsx)("p",{className:"text-xs text-black",children:"This will sign out the device and invalidate its session."})]}),P==="createSubscription"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Customer Email"}),(0,p.jsx)(ke,{type:"email",placeholder:"customer@example.com",value:N.customerEmail||"",onChange:w=>ee({...J,customerEmail:w.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Plan"}),(0,p.jsxs)("select",{value:N.plan||"Starter",onChange:w=>ee({...J,plan:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"Starter",children:"Starter ($29/mo)"}),(0,p.jsx)("option",{value:"Professional",children:"Professional ($99/mo)"}),(0,p.jsx)("option",{value:"Enterprise",children:"Enterprise ($299/mo)"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Billing Cycle"}),(0,p.jsxs)("select",{value:N.billingCycle||"monthly",onChange:w=>ee({...J,billingCycle:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"monthly",children:"Monthly"}),(0,p.jsx)("option",{value:"yearly",children:"Yearly (Save 15%)"})]})]})]}),P==="exportCertificate"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsx)("p",{className:"text-xs text-black",children:"This will export your certificate of incorporation document."}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Format"}),(0,p.jsxs)("select",{value:N.format||"pdf",onChange:w=>ee({...J,format:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"pdf",children:"PDF"}),(0,p.jsx)("option",{value:"json",children:"JSON"})]})]})]}),(P==="toggleBlockRule"||P==="enableBlockRule"||P==="disableBlockRule")&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Block Rule"}),(0,p.jsxs)("select",{value:N.ruleId||"rule_1",onChange:w=>ee({...J,ruleId:w.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"rule_1",children:"Block if risk level = 'highest'"}),(0,p.jsx)("option",{value:"rule_2",children:"Block if matches Stripe block lists"}),(0,p.jsx)("option",{value:"rule_3",children:"Block if CVC verification fails"}),(0,p.jsx)("option",{value:"rule_4",children:"Block if Postal code verification fails"})]})]}),(0,p.jsx)("p",{className:"text-xs text-black",children:P==="enableBlockRule"?"This will enable the selected block rule to actively block matching payments.":P==="disableBlockRule"?"This will disable the selected block rule. Matching payments will no longer be blocked.":"This will toggle the selected block rule's state."})]}),(0,p.jsx)("div",{className:"mt-3",children:(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:oc,children:[(0,p.jsx)("span",{children:"Confirm"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Ga,{className:"h-3 w-3"}),(0,p.jsx)(ja,{className:"h-3 w-3"})]})]})})]},L.id)}if(L.kind==="bulkPreview"&&L.csvData)return(0,p.jsxs)("div",{className:`${_?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:L.content||""}),(0,p.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 overflow-hidden",children:[(0,p.jsxs)("div",{className:"bg-gray-100 px-3 py-2 border-b border-gray-200 flex items-center gap-2",children:[(0,p.jsx)(gn,{className:"h-4 w-4 text-gray-600"}),(0,p.jsx)("span",{className:"text-xs font-medium text-gray-700",children:L.csvData.fileName}),(0,p.jsxs)("span",{className:"text-xs text-gray-500",children:["\u2022 ",L.csvData.rowCount," rows"]})]}),(0,p.jsxs)("div",{className:"px-3 py-2 border-b border-gray-100",children:[(0,p.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 mb-1",children:"Columns"}),(0,p.jsx)("div",{className:"flex flex-wrap gap-1",children:L.csvData.columns.map((P,N)=>(0,p.jsx)("span",{className:"text-xs bg-blue-100 text-blue-700 px-1.5 py-0.5 rounded",children:P},N))})]}),L.csvData.sampleRows.length>0&&(0,p.jsxs)("div",{className:"px-3 py-2",children:[(0,p.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 mb-1",children:"Sample Data"}),(0,p.jsx)("div",{className:"space-y-1",children:L.csvData.sampleRows.slice(0,3).map((P,N)=>(0,p.jsxs)("div",{className:"text-xs text-gray-600 bg-white rounded px-2 py-1 border border-gray-100",children:[Object.entries(P).slice(0,3).map(([w,K],ie)=>(0,p.jsxs)("span",{children:[ie>0&&" \u2022 ",(0,p.jsxs)("span",{className:"text-gray-400",children:[w,":"]})," ",K]},w)),Object.keys(P).length>3&&(0,p.jsx)("span",{className:"text-gray-400",children:" ..."})]},N))})]}),L.suggestedAction&&(0,p.jsx)("div",{className:"px-3 py-2 bg-blue-50 border-t border-blue-100",children:(0,p.jsxs)("span",{className:"text-xs text-blue-700",children:["Suggested action: ",(0,p.jsx)("strong",{children:L.suggestedAction.replace(/_/g," ")})]})})]}),L.bulkSessionId&&(0,p.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:()=>L.bulkSessionId&&sc(L.bulkSessionId),children:[(0,p.jsxs)("span",{children:["Process ",L.csvData.rowCount," rows"]}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Ga,{className:"h-3 w-3"}),(0,p.jsx)(ja,{className:"h-3 w-3"})]})]}),(0,p.jsx)(Ot,{type:"button",size:"sm",variant:"ghost",className:"h-8 rounded-xl px-3 text-xs text-gray-500 hover:text-gray-700 hover:bg-gray-100",onClick:uS,children:"Cancel"})]})]},L.id);if(L.kind==="bulkProgress"&&L.bulkProgress){let{processed:P,total:N,successes:w,failures:K}=L.bulkProgress,ie=Math.round(P/N*100);return(0,p.jsx)("div",{className:`${_?"mt-3":""}`,children:(0,p.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 p-3",children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,p.jsx)(Vt,{className:"h-4 w-4 animate-spin text-blue-600"}),(0,p.jsxs)("span",{className:"text-sm font-medium text-gray-700",children:["Processing... ",P," of ",N]})]}),(0,p.jsx)("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden mb-2",children:(0,p.jsx)("div",{className:"h-full bg-blue-600 transition-all duration-300",style:{width:`${ie}%`}})}),(0,p.jsxs)("div",{className:"flex items-center gap-3 text-xs text-gray-600",children:[(0,p.jsxs)("span",{className:"flex items-center gap-1",children:[(0,p.jsx)(je,{className:"h-3 w-3 text-green-600"}),w," successful"]}),K>0&&(0,p.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,p.jsx)(ho,{className:"h-3 w-3"}),K," failed"]})]})]})},L.id)}if(L.kind==="bulkSummary"&&L.bulkSummary){let{total:P,successes:N,failures:w,navigationPage:K}=L.bulkSummary,ie=w.length>0,$=K?.page==="customers"?"Customers":K?.page==="dashboard"?"Dashboard":K?.page==="settings"?"Settings":"Results";return(0,p.jsx)("div",{className:`${_?"mt-3":""}`,children:(0,p.jsxs)("div",{className:`rounded-lg border p-3 ${ie?"bg-amber-50 border-amber-200":"bg-green-50 border-green-200"}`,children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,p.jsx)(je,{className:`h-5 w-5 ${ie?"text-amber-600":"text-green-600"}`}),(0,p.jsx)("span",{className:"text-sm font-medium text-gray-800",children:"Bulk operation complete"})]}),(0,p.jsx)("div",{className:"text-sm text-gray-600 mb-2",children:L.content||`Processed ${P} rows: ${N} successful${ie?`, ${w.length} failed`:""}.`}),(0,p.jsxs)("div",{className:"flex items-center gap-4 text-xs",children:[(0,p.jsxs)("span",{className:"flex items-center gap-1 text-green-700",children:[(0,p.jsx)(je,{className:"h-3 w-3"}),N," successful"]}),ie&&(0,p.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,p.jsx)(ho,{className:"h-3 w-3"}),w.length," failed"]})]}),ie&&(0,p.jsxs)("div",{className:"mt-3 pt-2 border-t border-amber-200",children:[(0,p.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-amber-700 mb-1",children:"Failed Rows"}),(0,p.jsxs)("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:[w.slice(0,5).map((ce,qe)=>(0,p.jsxs)("div",{className:"text-xs text-red-700 bg-red-50 rounded px-2 py-1",children:["Row ",ce.row,": ",ce.error||"Unknown error"]},qe)),w.length>5&&(0,p.jsxs)("div",{className:"text-xs text-amber-600",children:["...and ",w.length-5," more"]})]})]}),K&&N>0&&(0,p.jsx)("div",{className:"mt-3 pt-2 border-t border-gray-200",children:(0,p.jsxs)("button",{type:"button",onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),console.log("[DEBUG] Button clicked - navigationPage:",K,"onNavigate:",!!r),r&&K.page?(console.log("[DEBUG] Calling onNavigate with page:",K.page),r(K.page,K.subtab)):console.log("[DEBUG] Condition failed - onNavigate:",!!r,"navigationPage.page:",K.page)},className:"flex items-center gap-2 text-xs text-gray-500 hover:text-gray-700 transition-colors group cursor-pointer",children:[(0,p.jsxs)("span",{className:"flex items-center gap-1 px-1.5 py-0.5 bg-gray-100 rounded text-[10px] font-medium text-gray-600 group-hover:bg-gray-200",children:[(0,p.jsx)(Ga,{className:"h-2.5 w-2.5"}),(0,p.jsx)("span",{children:"+"}),(0,p.jsx)(ja,{className:"h-2.5 w-2.5"})]}),(0,p.jsxs)("span",{children:["View ",$]})]})})]})},L.id)}return(0,p.jsx)(j.Fragment,{children:(0,p.jsxs)("div",{ref:te?qi:null,className:`${_?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"text-sm leading-6 text-gray-700",children:(()=>{let P=L.content||"";if(L.kind==="guideStep"){let N=P.match(/^(Step\s+\d+:)([\s\S]*)/);if(N)return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("strong",{children:N[1]}),N[2]]})}return L.role==="assistant"&&P?oT(P):P||(0,p.jsx)("span",{className:"opacity-70",children:"Thinking\u2026"})})()}),L.role==="assistant"&&L.structuredData&&(0,p.jsx)("div",{className:"mt-3",children:(0,p.jsx)(eS,{type:L.structuredData.type,data:L.structuredData.data})}),L.role==="assistant"&&L.followups&&L.followups.length>0&&!L.followupSelected&&(0,p.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:L.followups.map(P=>(0,p.jsx)("button",{type:"button",onClick:()=>oS(L.id,P),className:`inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-xl
|
|
30
30
|
bg-white hover:bg-gray-50 text-gray-600 hover:text-gray-800
|
|
31
31
|
border border-gray-200 hover:border-gray-300 shadow-sm
|
|
32
|
-
transition-all duration-150 ease-in-out`,children:P.label},P.id))})]})},L.id)}),(Z||Ve)&&(0,p.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[Z&&Z.stepIndex>0&&(0,p.jsx)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-7 w-7 rounded-full p-0 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:cS,children:(0,p.jsx)(hn,{className:"h-3.5 w-3.5 text-gray-600"})}),(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:Ve?Xm:ic,children:[(0,p.jsx)("span",{children:Ve?"Done":"Next"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Ga,{className:"h-3 w-3"}),(0,p.jsx)(ja,{className:"h-3 w-3"})]})]})]}),(I==="thinking"||I==="searching"||I==="executing"||I==="responding")&&(0,p.jsx)("div",{className:`${k==="user"?"mt-3":""}`,children:(0,p.jsx)(Pv,{phase:I,progressSteps:h})}),!Z&&(0,p.jsx)("div",{ref:jm})]})})})})}),(0,p.jsxs)("div",{className:"px-4 py-3 border-t border-gray-100 bg-gray-50/50 shrink-0",children:[Ro&&(0,p.jsxs)("div",{className:"mb-2 flex items-center gap-2 rounded-xl bg-blue-50 border border-blue-200 px-3 py-2",children:[(0,p.jsx)(gn,{className:"h-4 w-4 text-blue-600"}),(0,p.jsx)("span",{className:"text-xs text-blue-700 flex-1 truncate",children:Ro.name}),(0,p.jsx)("button",{type:"button",onClick:()=>{tc(null),Do.current&&(Do.current.value="")},className:"text-blue-600 hover:text-blue-800",children:(0,p.jsx)(ho,{className:"h-4 w-4"})})]}),(0,p.jsxs)("form",{onSubmit:sS,className:"w-full",children:[(0,p.jsx)("input",{ref:Do,type:"file",accept:".csv",className:"hidden",onChange:L=>{let b=L.target.files?.[0];b&&tc(b)}}),(0,p.jsxs)("div",{className:"flex w-full items-center gap-2 rounded-2xl border border-gray-200 bg-white px-3 py-2 shadow-sm",children:[(0,p.jsx)(Ot,{type:"button",size:"icon",variant:"ghost",onClick:()=>Do.current?.click(),className:"h-8 w-8 rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100",title:"Upload CSV for bulk operations",children:(0,p.jsx)(gi,{className:"h-4 w-4"})}),(0,p.jsx)(ke,{placeholder:Ro?"Describe what to do with this CSV...":"Ask anything...",value:c,onChange:L=>f(L.target.value),onKeyDown:L=>{if((L.metaKey||L.ctrlKey)&&L.key==="Enter"){let b=ac.current;if(b){L.preventDefault(),L.stopPropagation(),sc(b);return}if(He){L.preventDefault(),L.stopPropagation(),oc();return}if(Wt){L.preventDefault(),L.stopPropagation(),rc(Wt);return}if(he.current){L.preventDefault(),L.stopPropagation(),ic();return}}},className:"flex-1 border-0 bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0 text-sm placeholder:text-gray-400"}),(0,p.jsx)(Ot,{type:"submit",size:"icon",disabled:!c.trim()&&!Ro,className:"h-8 w-8 rounded-full bg-gray-900 hover:bg-gray-800 disabled:bg-gray-300",children:(0,p.jsx)(di,{className:"h-4 w-4"})})]})]})]}),(0,p.jsx)(YC,{x:Wi.x,y:Wi.y,visible:Wi.visible,onClick:Wi.onClick})]})}function lT({isOpen:e,onClick:t,className:a=""}){return(0,p.jsx)("button",{type:"button",onClick:t,className:`fixed top-1/2 z-50 flex items-center justify-center w-6 h-16 bg-gray-100 hover:bg-gray-200 border border-gray-200 border-r-0 rounded-l-lg text-gray-600 hover:text-gray-800 shadow-md transition-all duration-300 ${a}`,"aria-label":e?"Close help panel":"Open help panel",style:{right:e?`${qm}px`:"0px",transform:"translateY(-50%)"},children:e?(0,p.jsx)(pi,{className:"h-4 w-4"}):(0,p.jsx)(mi,{className:"h-4 w-4"})})}function aS({onNavigate:e,onActionComplete:t,currentPage:a,agentUrl:r,startingQuestions:o,startingQuestionsEndpoint:n,defaultOpen:s=!1,isOpen:i,onOpenChange:l}){let[u,d]=j.useState(s),c=i!==void 0?i:u,f=g=>{i===void 0&&d(g),l?.(g)};return j.useEffect(()=>{let g=document.body.style.paddingRight,v=document.body.style.transition;return document.body.style.transition="padding-right 0.3s ease",document.body.style.paddingRight=c?`${qm}px`:"0px",()=>{document.body.style.paddingRight=g,document.body.style.transition=v}},[c]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(lT,{isOpen:c,onClick:()=>f(!c)}),(0,p.jsx)(iT,{isOpen:c,onClose:()=>f(!1),onNavigate:e,onActionComplete:t,currentPage:a,agentUrl:r,startingQuestions:o,startingQuestionsEndpoint:n})]})}var Gm=M(le(),1),cs=null,
|
|
33
|
-
@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){#kite-chat-root *,#kite-chat-root :before,#kite-chat-root :after,#kite-chat-root ::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}:root,#kite-chat-root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-400:oklch(75% .183 55.934);--color-orange-700:oklch(55.3% .195 38.402);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-pink-400:oklch(71.8% .202 349.761);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-wider:.05em;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}#kite-chat-root *,#kite-chat-root :after,#kite-chat-root :before,#kite-chat-root ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}#kite-chat-root ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}#kite-chat-root,#kite-chat-root{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}#kite-chat-root hr{height:0;color:inherit;border-top-width:1px}#kite-chat-root abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#kite-chat-root h1,#kite-chat-root h2,#kite-chat-root h3,#kite-chat-root h4,#kite-chat-root h5,#kite-chat-root h6{font-size:inherit;font-weight:inherit}#kite-chat-root a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}#kite-chat-root b,#kite-chat-root strong{font-weight:bolder}#kite-chat-root code,#kite-chat-root kbd,#kite-chat-root samp,#kite-chat-root pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}#kite-chat-root small{font-size:80%}#kite-chat-root sub,#kite-chat-root sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}#kite-chat-root sub{bottom:-.25em}#kite-chat-root sup{top:-.5em}#kite-chat-root table{text-indent:0;border-color:inherit;border-collapse:collapse}#kite-chat-root :-moz-focusring{outline:auto}#kite-chat-root progress{vertical-align:baseline}#kite-chat-root summary{display:list-item}#kite-chat-root ol,#kite-chat-root ul,#kite-chat-root menu{list-style:none}#kite-chat-root img,#kite-chat-root svg,#kite-chat-root video,#kite-chat-root canvas,#kite-chat-root audio,#kite-chat-root iframe,#kite-chat-root embed,#kite-chat-root object{vertical-align:middle;display:block}#kite-chat-root img,#kite-chat-root video{max-width:100%;height:auto}#kite-chat-root button,#kite-chat-root input,#kite-chat-root select,#kite-chat-root optgroup,#kite-chat-root textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}#kite-chat-root ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}#kite-chat-root :where(select:is([multiple],[size])) optgroup{font-weight:bolder}#kite-chat-root :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}#kite-chat-root ::file-selector-button{margin-inline-end:4px}#kite-chat-root ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){#kite-chat-root ::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){#kite-chat-root ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}#kite-chat-root textarea{resize:vertical}#kite-chat-root ::-webkit-search-decoration{-webkit-appearance:none}#kite-chat-root ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}#kite-chat-root ::-webkit-datetime-edit{display:inline-flex}#kite-chat-root ::-webkit-datetime-edit-fields-wrapper{padding:0}#kite-chat-root ::-webkit-datetime-edit{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-year-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-month-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-day-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-hour-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-minute-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-second-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-millisecond-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-meridiem-field{padding-block:0}#kite-chat-root ::-webkit-calendar-picker-indicator{line-height:1}#kite-chat-root :-moz-ui-invalid{box-shadow:none}#kite-chat-root button,#kite-chat-root input:where([type=button],[type=reset],[type=submit]){appearance:button}#kite-chat-root ::file-selector-button{appearance:button}#kite-chat-root ::-webkit-inner-spin-button{height:auto}#kite-chat-root ::-webkit-outer-spin-button{height:auto}#kite-chat-root [hidden]:where(:not([hidden=until-found])){display:none!important}#kite-chat-root .\\@container\\/card-header{container:card-header/inline-size}#kite-chat-root .pointer-events-none{pointer-events:none}#kite-chat-root .collapse{visibility:collapse}#kite-chat-root .visible{visibility:visible}#kite-chat-root .fixed{position:fixed}#kite-chat-root .relative{position:relative}#kite-chat-root .top-0{top:calc(var(--spacing)*0)}#kite-chat-root .top-1\\/2{top:50%}#kite-chat-root .right-0{right:calc(var(--spacing)*0)}#kite-chat-root .z-40{z-index:40}#kite-chat-root .z-50{z-index:50}#kite-chat-root .z-\\[9999\\]{z-index:9999}#kite-chat-root .col-start-2{grid-column-start:2}#kite-chat-root .row-span-2{grid-row:span 2/span 2}#kite-chat-root .row-start-1{grid-row-start:1}#kite-chat-root .container{width:100%}@media (min-width:40rem){#kite-chat-root .container{max-width:40rem}}@media (min-width:48rem){#kite-chat-root .container{max-width:48rem}}@media (min-width:64rem){#kite-chat-root .container{max-width:64rem}}@media (min-width:80rem){#kite-chat-root .container{max-width:80rem}}@media (min-width:96rem){#kite-chat-root .container{max-width:96rem}}#kite-chat-root .mx-auto{margin-inline:auto}#kite-chat-root .my-1{margin-block:calc(var(--spacing)*1)}#kite-chat-root .my-2{margin-block:calc(var(--spacing)*2)}#kite-chat-root .mt-1{margin-top:calc(var(--spacing)*1)}#kite-chat-root .mt-2{margin-top:calc(var(--spacing)*2)}#kite-chat-root .mt-3{margin-top:calc(var(--spacing)*3)}#kite-chat-root .mr-2{margin-right:calc(var(--spacing)*2)}#kite-chat-root .mb-1{margin-bottom:calc(var(--spacing)*1)}#kite-chat-root .mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}#kite-chat-root .mb-2{margin-bottom:calc(var(--spacing)*2)}#kite-chat-root .mb-3{margin-bottom:calc(var(--spacing)*3)}#kite-chat-root .mb-4{margin-bottom:calc(var(--spacing)*4)}#kite-chat-root .ml-2{margin-left:calc(var(--spacing)*2)}#kite-chat-root .ml-4{margin-left:calc(var(--spacing)*4)}#kite-chat-root .ml-5{margin-left:calc(var(--spacing)*5)}#kite-chat-root .ml-6{margin-left:calc(var(--spacing)*6)}#kite-chat-root .block{display:block}#kite-chat-root .contents{display:contents}#kite-chat-root .flex{display:flex}#kite-chat-root .grid{display:grid}#kite-chat-root .hidden{display:none}#kite-chat-root .inline{display:inline}#kite-chat-root .inline-block{display:inline-block}#kite-chat-root .inline-flex{display:inline-flex}#kite-chat-root .table{display:table}#kite-chat-root .size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}#kite-chat-root .size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}#kite-chat-root .size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}#kite-chat-root .size-full{width:100%;height:100%}#kite-chat-root .h-1{height:calc(var(--spacing)*1)}#kite-chat-root .h-1\\.5{height:calc(var(--spacing)*1.5)}#kite-chat-root .h-2{height:calc(var(--spacing)*2)}#kite-chat-root .h-2\\.5{height:calc(var(--spacing)*2.5)}#kite-chat-root .h-3{height:calc(var(--spacing)*3)}#kite-chat-root .h-3\\.5{height:calc(var(--spacing)*3.5)}#kite-chat-root .h-4{height:calc(var(--spacing)*4)}#kite-chat-root .h-5{height:calc(var(--spacing)*5)}#kite-chat-root .h-6{height:calc(var(--spacing)*6)}#kite-chat-root .h-7{height:calc(var(--spacing)*7)}#kite-chat-root .h-8{height:calc(var(--spacing)*8)}#kite-chat-root .h-9{height:calc(var(--spacing)*9)}#kite-chat-root .h-10{height:calc(var(--spacing)*10)}#kite-chat-root .h-16{height:calc(var(--spacing)*16)}#kite-chat-root .h-auto{height:auto}#kite-chat-root .h-full{height:100%}#kite-chat-root .max-h-32{max-height:calc(var(--spacing)*32)}#kite-chat-root .min-h-0{min-height:calc(var(--spacing)*0)}#kite-chat-root .w-1\\.5{width:calc(var(--spacing)*1.5)}#kite-chat-root .w-2\\.5{width:calc(var(--spacing)*2.5)}#kite-chat-root .w-3{width:calc(var(--spacing)*3)}#kite-chat-root .w-3\\.5{width:calc(var(--spacing)*3.5)}#kite-chat-root .w-4{width:calc(var(--spacing)*4)}#kite-chat-root .w-5{width:calc(var(--spacing)*5)}#kite-chat-root .w-6{width:calc(var(--spacing)*6)}#kite-chat-root .w-7{width:calc(var(--spacing)*7)}#kite-chat-root .w-8{width:calc(var(--spacing)*8)}#kite-chat-root .w-10{width:calc(var(--spacing)*10)}#kite-chat-root .w-full{width:100%}#kite-chat-root .max-w-\\[280px\\]{max-width:280px}#kite-chat-root .min-w-0{min-width:calc(var(--spacing)*0)}#kite-chat-root .flex-1{flex:1}#kite-chat-root .flex-shrink-0,#kite-chat-root .shrink-0{flex-shrink:0}#kite-chat-root .translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}#kite-chat-root .translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}#kite-chat-root .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}#kite-chat-root .animate-spin{animation:var(--animate-spin)}#kite-chat-root .cursor-pointer{cursor:pointer}#kite-chat-root .touch-none{touch-action:none}#kite-chat-root .list-decimal{list-style-type:decimal}#kite-chat-root .list-disc{list-style-type:disc}#kite-chat-root .auto-rows-min{grid-auto-rows:min-content}#kite-chat-root .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#kite-chat-root .grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}#kite-chat-root .flex-col{flex-direction:column}#kite-chat-root .flex-wrap{flex-wrap:wrap}#kite-chat-root .place-items-center{place-items:center}#kite-chat-root .items-center{align-items:center}#kite-chat-root .items-start{align-items:flex-start}#kite-chat-root .justify-between{justify-content:space-between}#kite-chat-root .justify-center{justify-content:center}#kite-chat-root .justify-end{justify-content:flex-end}#kite-chat-root .justify-start{justify-content:flex-start}#kite-chat-root .gap-0\\.5{gap:calc(var(--spacing)*.5)}#kite-chat-root .gap-1{gap:calc(var(--spacing)*1)}#kite-chat-root .gap-1\\.5{gap:calc(var(--spacing)*1.5)}#kite-chat-root .gap-2{gap:calc(var(--spacing)*2)}#kite-chat-root .gap-3{gap:calc(var(--spacing)*3)}#kite-chat-root .gap-4{gap:calc(var(--spacing)*4)}#kite-chat-root .gap-6{gap:calc(var(--spacing)*6)}#kite-chat-root :where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}#kite-chat-root :where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}#kite-chat-root :where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}#kite-chat-root :where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}#kite-chat-root :where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}#kite-chat-root :where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}#kite-chat-root .self-start{align-self:flex-start}#kite-chat-root .justify-self-end{justify-self:flex-end}#kite-chat-root .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#kite-chat-root .overflow-hidden{overflow:hidden}#kite-chat-root .overflow-x-auto{overflow-x:auto}#kite-chat-root .overflow-y-auto{overflow-y:auto}#kite-chat-root .rounded{border-radius:.25rem}#kite-chat-root .rounded-2xl{border-radius:var(--radius-2xl)}#kite-chat-root .rounded-\\[inherit\\]{border-radius:inherit}#kite-chat-root .rounded-full{border-radius:3.40282e38px}#kite-chat-root .rounded-lg{border-radius:var(--kite-radius)}#kite-chat-root .rounded-md{border-radius:calc(var(--kite-radius) - 2px)}#kite-chat-root .rounded-xl{border-radius:calc(var(--kite-radius) + 4px)}#kite-chat-root .rounded-l-lg{border-top-left-radius:var(--kite-radius);border-bottom-left-radius:var(--kite-radius)}#kite-chat-root .rounded-br-md{border-bottom-right-radius:calc(var(--kite-radius) - 2px)}#kite-chat-root .border{border-style:var(--tw-border-style);border-width:1px}#kite-chat-root .border-0{border-style:var(--tw-border-style);border-width:0}#kite-chat-root .border-t{border-top-style:var(--tw-border-style);border-top-width:1px}#kite-chat-root .border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}#kite-chat-root .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}#kite-chat-root .border-l{border-left-style:var(--tw-border-style);border-left-width:1px}#kite-chat-root .border-amber-100{border-color:var(--color-amber-100)}#kite-chat-root .border-amber-200{border-color:var(--color-amber-200)}#kite-chat-root .border-blue-100{border-color:var(--color-blue-100)}#kite-chat-root .border-blue-200{border-color:var(--color-blue-200)}#kite-chat-root .border-emerald-100{border-color:var(--color-emerald-100)}#kite-chat-root .border-emerald-200{border-color:var(--color-emerald-200)}#kite-chat-root .border-gray-100{border-color:var(--color-gray-100)}#kite-chat-root .border-gray-200{border-color:var(--color-gray-200)}#kite-chat-root .border-gray-300{border-color:var(--color-gray-300)}#kite-chat-root .border-green-200{border-color:var(--color-green-200)}#kite-chat-root .border-input{border-color:var(--kite-input)}#kite-chat-root .border-primary\\/20{border-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .border-primary\\/20{border-color:color-mix(in oklab,var(--kite-primary)20%,transparent)}}#kite-chat-root .border-purple-100{border-color:var(--color-purple-100)}#kite-chat-root .border-purple-200{border-color:var(--color-purple-200)}#kite-chat-root .border-red-200{border-color:var(--color-red-200)}#kite-chat-root .border-slate-200{border-color:var(--color-slate-200)}#kite-chat-root .border-t-transparent{border-top-color:#0000}#kite-chat-root .border-l-transparent{border-left-color:#0000}#kite-chat-root .bg-amber-50{background-color:var(--color-amber-50)}#kite-chat-root .bg-amber-100{background-color:var(--color-amber-100)}#kite-chat-root .bg-background{background-color:var(--kite-background)}#kite-chat-root .bg-blue-50{background-color:var(--color-blue-50)}#kite-chat-root .bg-blue-100{background-color:var(--color-blue-100)}#kite-chat-root .bg-blue-400{background-color:var(--color-blue-400)}#kite-chat-root .bg-blue-600{background-color:var(--color-blue-600)}#kite-chat-root .bg-border{background-color:var(--kite-border)}#kite-chat-root .bg-card{background-color:var(--kite-card)}#kite-chat-root .bg-destructive{background-color:var(--kite-destructive)}#kite-chat-root .bg-emerald-50{background-color:var(--color-emerald-50)}#kite-chat-root .bg-emerald-500{background-color:var(--color-emerald-500)}#kite-chat-root .bg-gray-50{background-color:var(--color-gray-50)}#kite-chat-root .bg-gray-50\\/50{background-color:#f9fafb80}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-gray-50\\/50{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}}#kite-chat-root .bg-gray-100{background-color:var(--color-gray-100)}#kite-chat-root .bg-gray-200{background-color:var(--color-gray-200)}#kite-chat-root .bg-gray-900{background-color:var(--color-gray-900)}#kite-chat-root .bg-green-50{background-color:var(--color-green-50)}#kite-chat-root .bg-green-400{background-color:var(--color-green-400)}#kite-chat-root .bg-muted\\/40{background-color:var(--kite-muted)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-muted\\/40{background-color:color-mix(in oklab,var(--kite-muted)40%,transparent)}}#kite-chat-root .bg-orange-100{background-color:var(--color-orange-100)}#kite-chat-root .bg-orange-400{background-color:var(--color-orange-400)}#kite-chat-root .bg-pink-400{background-color:var(--color-pink-400)}#kite-chat-root .bg-primary,#kite-chat-root .bg-primary\\/5{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-primary\\/5{background-color:color-mix(in oklab,var(--kite-primary)5%,transparent)}}#kite-chat-root .bg-purple-50{background-color:var(--color-purple-50)}#kite-chat-root .bg-purple-400{background-color:var(--color-purple-400)}#kite-chat-root .bg-red-50{background-color:var(--color-red-50)}#kite-chat-root .bg-red-500{background-color:var(--color-red-500)}#kite-chat-root .bg-secondary{background-color:var(--kite-secondary)}#kite-chat-root .bg-slate-50{background-color:var(--color-slate-50)}#kite-chat-root .bg-slate-100{background-color:var(--color-slate-100)}#kite-chat-root .bg-slate-300{background-color:var(--color-slate-300)}#kite-chat-root .bg-transparent{background-color:#0000}#kite-chat-root .bg-white{background-color:var(--color-white)}#kite-chat-root .bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}#kite-chat-root .from-gray-50{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}#kite-chat-root .to-white{--tw-gradient-to:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}#kite-chat-root .p-0{padding:calc(var(--spacing)*0)}#kite-chat-root .p-2{padding:calc(var(--spacing)*2)}#kite-chat-root .p-3{padding:calc(var(--spacing)*3)}#kite-chat-root .p-4{padding:calc(var(--spacing)*4)}#kite-chat-root .p-px{padding:1px}#kite-chat-root .px-0{padding-inline:calc(var(--spacing)*0)}#kite-chat-root .px-1{padding-inline:calc(var(--spacing)*1)}#kite-chat-root .px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}#kite-chat-root .px-2{padding-inline:calc(var(--spacing)*2)}#kite-chat-root .px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}#kite-chat-root .px-3{padding-inline:calc(var(--spacing)*3)}#kite-chat-root .px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}#kite-chat-root .px-4{padding-inline:calc(var(--spacing)*4)}#kite-chat-root .px-6{padding-inline:calc(var(--spacing)*6)}#kite-chat-root .py-0{padding-block:calc(var(--spacing)*0)}#kite-chat-root .py-0\\.5{padding-block:calc(var(--spacing)*.5)}#kite-chat-root .py-1{padding-block:calc(var(--spacing)*1)}#kite-chat-root .py-1\\.5{padding-block:calc(var(--spacing)*1.5)}#kite-chat-root .py-2{padding-block:calc(var(--spacing)*2)}#kite-chat-root .py-2\\.5{padding-block:calc(var(--spacing)*2.5)}#kite-chat-root .py-3{padding-block:calc(var(--spacing)*3)}#kite-chat-root .py-4{padding-block:calc(var(--spacing)*4)}#kite-chat-root .py-6{padding-block:calc(var(--spacing)*6)}#kite-chat-root .py-8{padding-block:calc(var(--spacing)*8)}#kite-chat-root .pt-0{padding-top:calc(var(--spacing)*0)}#kite-chat-root .pt-2{padding-top:calc(var(--spacing)*2)}#kite-chat-root .pb-2{padding-bottom:calc(var(--spacing)*2)}#kite-chat-root .pb-3{padding-bottom:calc(var(--spacing)*3)}#kite-chat-root .pb-4{padding-bottom:calc(var(--spacing)*4)}#kite-chat-root .text-center{text-align:center}#kite-chat-root .font-mono{font-family:var(--font-mono)}#kite-chat-root .text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}#kite-chat-root .text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}#kite-chat-root .text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}#kite-chat-root .text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#kite-chat-root .text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}#kite-chat-root .text-\\[10px\\]{font-size:10px}#kite-chat-root .leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}#kite-chat-root .leading-none{--tw-leading:1;line-height:1}#kite-chat-root .font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}#kite-chat-root .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#kite-chat-root .font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}#kite-chat-root .tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}#kite-chat-root .tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}#kite-chat-root .whitespace-nowrap{white-space:nowrap}#kite-chat-root .whitespace-pre-wrap{white-space:pre-wrap}#kite-chat-root .text-amber-500{color:var(--color-amber-500)}#kite-chat-root .text-amber-600{color:var(--color-amber-600)}#kite-chat-root .text-amber-700{color:var(--color-amber-700)}#kite-chat-root .text-black{color:var(--color-black)}#kite-chat-root .text-blue-600{color:var(--color-blue-600)}#kite-chat-root .text-blue-700{color:var(--color-blue-700)}#kite-chat-root .text-card-foreground{color:var(--kite-card-foreground)}#kite-chat-root .text-emerald-500{color:var(--color-emerald-500)}#kite-chat-root .text-emerald-600{color:var(--color-emerald-600)}#kite-chat-root .text-emerald-700{color:var(--color-emerald-700)}#kite-chat-root .text-gray-300{color:var(--color-gray-300)}#kite-chat-root .text-gray-400{color:var(--color-gray-400)}#kite-chat-root .text-gray-500{color:var(--color-gray-500)}#kite-chat-root .text-gray-600{color:var(--color-gray-600)}#kite-chat-root .text-gray-700{color:var(--color-gray-700)}#kite-chat-root .text-gray-800{color:var(--color-gray-800)}#kite-chat-root .text-gray-900{color:var(--color-gray-900)}#kite-chat-root .text-green-500{color:var(--color-green-500)}#kite-chat-root .text-green-600{color:var(--color-green-600)}#kite-chat-root .text-green-700{color:var(--color-green-700)}#kite-chat-root .text-green-800{color:var(--color-green-800)}#kite-chat-root .text-muted-foreground{color:var(--kite-muted-foreground)}#kite-chat-root .text-orange-700{color:var(--color-orange-700)}#kite-chat-root .text-primary{color:var(--kite-primary)}#kite-chat-root .text-primary-foreground{color:var(--kite-primary-foreground)}#kite-chat-root .text-purple-600{color:var(--color-purple-600)}#kite-chat-root .text-purple-700{color:var(--color-purple-700)}#kite-chat-root .text-red-500{color:var(--color-red-500)}#kite-chat-root .text-red-600{color:var(--color-red-600)}#kite-chat-root .text-red-700{color:var(--color-red-700)}#kite-chat-root .text-secondary-foreground{color:var(--kite-secondary-foreground)}#kite-chat-root .text-slate-600{color:var(--color-slate-600)}#kite-chat-root .text-slate-700{color:var(--color-slate-700)}#kite-chat-root .text-white{color:var(--color-white)}#kite-chat-root .uppercase{text-transform:uppercase}#kite-chat-root .italic{font-style:italic}#kite-chat-root .line-through{text-decoration-line:line-through}#kite-chat-root .underline-offset-4{text-underline-offset:4px}#kite-chat-root .opacity-60{opacity:.6}#kite-chat-root .opacity-70{opacity:.7}#kite-chat-root .opacity-90{opacity:.9}#kite-chat-root .opacity-100{opacity:1}#kite-chat-root .shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .outline{outline-style:var(--tw-outline-style);outline-width:1px}#kite-chat-root .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .duration-150{--tw-duration:.15s;transition-duration:.15s}#kite-chat-root .duration-200{--tw-duration:.2s;transition-duration:.2s}#kite-chat-root .duration-300{--tw-duration:.3s;transition-duration:.3s}#kite-chat-root .ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}#kite-chat-root .outline-none{--tw-outline-style:none;outline-style:none}#kite-chat-root .select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){#kite-chat-root .group-hover\\:bg-gray-200:is(:where(.group):hover *){background-color:var(--color-gray-200)}}#kite-chat-root .selection\\:bg-primary ::selection{background-color:var(--kite-primary)}#kite-chat-root .selection\\:bg-primary::selection{background-color:var(--kite-primary)}#kite-chat-root .selection\\:text-primary-foreground ::selection{color:var(--kite-primary-foreground)}#kite-chat-root .selection\\:text-primary-foreground::selection{color:var(--kite-primary-foreground)}#kite-chat-root .file\\:inline-flex::file-selector-button{display:inline-flex}#kite-chat-root .file\\:h-7::file-selector-button{height:calc(var(--spacing)*7)}#kite-chat-root .file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}#kite-chat-root .file\\:bg-transparent::file-selector-button{background-color:#0000}#kite-chat-root .file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#kite-chat-root .file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#kite-chat-root .file\\:text-foreground::file-selector-button{color:var(--kite-foreground)}#kite-chat-root .placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}#kite-chat-root .placeholder\\:text-muted-foreground::placeholder{color:var(--kite-muted-foreground)}@media (hover:hover){#kite-chat-root .hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}#kite-chat-root .hover\\:border-primary\\/30:hover{border-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:border-primary\\/30:hover{border-color:color-mix(in oklab,var(--kite-primary)30%,transparent)}}#kite-chat-root .hover\\:bg-accent:hover{background-color:var(--kite-accent)}#kite-chat-root .hover\\:bg-destructive\\/90:hover{background-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--kite-destructive)90%,transparent)}}#kite-chat-root .hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}#kite-chat-root .hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}#kite-chat-root .hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}#kite-chat-root .hover\\:bg-gray-800:hover{background-color:var(--color-gray-800)}#kite-chat-root .hover\\:bg-primary\\/10:hover{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab,var(--kite-primary)10%,transparent)}}#kite-chat-root .hover\\:bg-primary\\/90:hover{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--kite-primary)90%,transparent)}}#kite-chat-root .hover\\:bg-secondary\\/80:hover{background-color:var(--kite-secondary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--kite-secondary)80%,transparent)}}#kite-chat-root .hover\\:text-accent-foreground:hover{color:var(--kite-accent-foreground)}#kite-chat-root .hover\\:text-blue-800:hover{color:var(--color-blue-800)}#kite-chat-root .hover\\:text-gray-600:hover{color:var(--color-gray-600)}#kite-chat-root .hover\\:text-gray-700:hover{color:var(--color-gray-700)}#kite-chat-root .hover\\:text-gray-800:hover{color:var(--color-gray-800)}#kite-chat-root .hover\\:underline:hover{text-decoration-line:underline}}#kite-chat-root .focus\\:ring-primary:focus{--tw-ring-color:var(--kite-primary)}#kite-chat-root .focus-visible\\:border-ring:focus-visible{border-color:var(--kite-ring)}#kite-chat-root .focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)20%,transparent)}}#kite-chat-root .focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--kite-ring)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-ring)50%,transparent)}}#kite-chat-root .focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}#kite-chat-root .focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}#kite-chat-root .disabled\\:pointer-events-none:disabled{pointer-events:none}#kite-chat-root .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#kite-chat-root .disabled\\:bg-gray-300:disabled{background-color:var(--color-gray-300)}#kite-chat-root .disabled\\:opacity-50:disabled{opacity:.5}#kite-chat-root .has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}#kite-chat-root .has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}#kite-chat-root .has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}#kite-chat-root .has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}#kite-chat-root .aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--kite-destructive)}#kite-chat-root .aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)20%,transparent)}}@media (min-width:48rem){#kite-chat-root .md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}#kite-chat-root .dark\\:border-input:is(.dark *){border-color:var(--kite-input)}#kite-chat-root .dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab,var(--kite-destructive)60%,transparent)}}#kite-chat-root .dark\\:bg-input\\/30:is(.dark *){background-color:var(--kite-input)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--kite-input)30%,transparent)}}@media (hover:hover){#kite-chat-root .dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--kite-accent)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--kite-accent)50%,transparent)}}#kite-chat-root .dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--kite-input)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--kite-input)50%,transparent)}}}#kite-chat-root .dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)40%,transparent)}}#kite-chat-root .dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)40%,transparent)}}#kite-chat-root .\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}#kite-chat-root .\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}#kite-chat-root .\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}#kite-chat-root .\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}#kite-chat-root .\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:root{--kite-radius:.625rem;--kite-background:oklch(100% 0 0);--kite-foreground:oklch(14.5% 0 0);--kite-card:oklch(100% 0 0);--kite-card-foreground:oklch(14.5% 0 0);--kite-popover:oklch(100% 0 0);--kite-popover-foreground:oklch(14.5% 0 0);--kite-primary:oklch(20.5% 0 0);--kite-primary-foreground:oklch(98.5% 0 0);--kite-secondary:oklch(97% 0 0);--kite-secondary-foreground:oklch(20.5% 0 0);--kite-muted:oklch(97% 0 0);--kite-muted-foreground:oklch(55.6% 0 0);--kite-accent:oklch(97% 0 0);--kite-accent-foreground:oklch(20.5% 0 0);--kite-destructive:oklch(57.7% .245 27.325);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(92.2% 0 0);--kite-input:oklch(92.2% 0 0);--kite-ring:oklch(70.8% 0 0)}.dark{--kite-background:oklch(14.5% 0 0);--kite-foreground:oklch(98.5% 0 0);--kite-card:oklch(20.5% 0 0);--kite-card-foreground:oklch(98.5% 0 0);--kite-popover:oklch(20.5% 0 0);--kite-popover-foreground:oklch(98.5% 0 0);--kite-primary:oklch(92.2% 0 0);--kite-primary-foreground:oklch(20.5% 0 0);--kite-secondary:oklch(26.9% 0 0);--kite-secondary-foreground:oklch(98.5% 0 0);--kite-muted:oklch(26.9% 0 0);--kite-muted-foreground:oklch(70.8% 0 0);--kite-accent:oklch(26.9% 0 0);--kite-accent-foreground:oklch(98.5% 0 0);--kite-destructive:oklch(70.4% .191 22.216);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(100% 0 0/.1);--kite-input:oklch(100% 0 0/.15);--kite-ring:oklch(55.6% 0 0)}#kite-chat-root *{border-color:var(--kite-border)}#kite-chat-root section form input{color:var(--kite-foreground,#1a1a1a)!important}#kite-chat-root section form input::placeholder{color:var(--kite-muted-foreground,#9ca3af)!important}#kite-chat-root section .space-y-1>div+div{margin-top:.625rem}#kite-chat-root section>div.flex-1>div.overflow-y-auto{padding:1rem 1.25rem!important}#kite-chat-root section .mt-6.pt-4.border-t{margin-top:1.25rem;padding-top:1rem}#kite-chat-root section button.w-full.text-left.px-3{padding:.75rem 1rem}#kite-chat-root section .text-sm.leading-6{line-height:1.625rem}@keyframes spin{to{transform:rotate(360deg)}}#kite-chat-root .animate-spin{animation:1s linear infinite spin}#kite-chat-root [data-motion]{will-change:transform,opacity}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:root{--kite-background:oklch(14.5% 0 0);--kite-foreground:oklch(98.5% 0 0);--kite-card:oklch(20.5% 0 0);--kite-card-foreground:oklch(98.5% 0 0);--kite-popover:oklch(20.5% 0 0);--kite-popover-foreground:oklch(98.5% 0 0);--kite-primary:oklch(92.2% 0 0);--kite-primary-foreground:oklch(20.5% 0 0);--kite-secondary:oklch(26.9% 0 0);--kite-secondary-foreground:oklch(98.5% 0 0);--kite-muted:oklch(26.9% 0 0);--kite-muted-foreground:oklch(70.8% 0 0);--kite-accent:oklch(26.9% 0 0);--kite-accent-foreground:oklch(98.5% 0 0);--kite-destructive:oklch(70.4% .191 22.216);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(100% 0 0/.1);--kite-input:oklch(100% 0 0/.15);--kite-ring:oklch(55.6% 0 0)}}`,document.head.appendChild(e),fetch("https://agent-production-0a5f.up.railway.app/ingest/b149df8a-b78a-439e-adf5-7f4cdba92e1c",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({location:"embed.tsx:injectStyles:end",message:"Style injected",data:{styleInHead:!!document.getElementById("kite-chat-styles"),cssLength:e.textContent?.length||0},timestamp:Date.now(),sessionId:"debug-session",hypothesisId:"B"})}).catch(()=>{});let t=document.createElement("style");t.id="kite-chat-position",t.textContent=`
|
|
32
|
+
transition-all duration-150 ease-in-out`,children:P.label},P.id))})]})},L.id)}),(Z||Ve)&&(0,p.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[Z&&Z.stepIndex>0&&(0,p.jsx)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-7 w-7 rounded-full p-0 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:cS,children:(0,p.jsx)(hn,{className:"h-3.5 w-3.5 text-gray-600"})}),(0,p.jsxs)(Ot,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:Ve?Xm:ic,children:[(0,p.jsx)("span",{children:Ve?"Done":"Next"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Ga,{className:"h-3 w-3"}),(0,p.jsx)(ja,{className:"h-3 w-3"})]})]})]}),(I==="thinking"||I==="searching"||I==="executing"||I==="responding")&&(0,p.jsx)("div",{className:`${k==="user"?"mt-3":""}`,children:(0,p.jsx)(Pv,{phase:I,progressSteps:h})}),!Z&&(0,p.jsx)("div",{ref:jm})]})})})})}),(0,p.jsxs)("div",{className:"px-4 py-3 border-t border-gray-100 bg-gray-50/50 shrink-0",children:[Ro&&(0,p.jsxs)("div",{className:"mb-2 flex items-center gap-2 rounded-xl bg-blue-50 border border-blue-200 px-3 py-2",children:[(0,p.jsx)(gn,{className:"h-4 w-4 text-blue-600"}),(0,p.jsx)("span",{className:"text-xs text-blue-700 flex-1 truncate",children:Ro.name}),(0,p.jsx)("button",{type:"button",onClick:()=>{tc(null),Do.current&&(Do.current.value="")},className:"text-blue-600 hover:text-blue-800",children:(0,p.jsx)(ho,{className:"h-4 w-4"})})]}),(0,p.jsxs)("form",{onSubmit:sS,className:"w-full",children:[(0,p.jsx)("input",{ref:Do,type:"file",accept:".csv",className:"hidden",onChange:L=>{let b=L.target.files?.[0];b&&tc(b)}}),(0,p.jsxs)("div",{className:"flex w-full items-center gap-2 rounded-2xl border border-gray-200 bg-white px-3 py-2 shadow-sm",children:[(0,p.jsx)(Ot,{type:"button",size:"icon",variant:"ghost",onClick:()=>Do.current?.click(),className:"h-8 w-8 rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100",title:"Upload CSV for bulk operations",children:(0,p.jsx)(gi,{className:"h-4 w-4"})}),(0,p.jsx)(ke,{placeholder:Ro?"Describe what to do with this CSV...":"Ask anything...",value:c,onChange:L=>f(L.target.value),onKeyDown:L=>{if((L.metaKey||L.ctrlKey)&&L.key==="Enter"){let b=ac.current;if(b){L.preventDefault(),L.stopPropagation(),sc(b);return}if(He){L.preventDefault(),L.stopPropagation(),oc();return}if(Wt){L.preventDefault(),L.stopPropagation(),rc(Wt);return}if(he.current){L.preventDefault(),L.stopPropagation(),ic();return}}},className:"flex-1 border-0 bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0 text-sm placeholder:text-gray-400"}),(0,p.jsx)(Ot,{type:"submit",size:"icon",disabled:!c.trim()&&!Ro,className:"h-8 w-8 rounded-full bg-gray-900 hover:bg-gray-800 disabled:bg-gray-300",children:(0,p.jsx)(di,{className:"h-4 w-4"})})]})]})]}),(0,p.jsx)(YC,{x:Wi.x,y:Wi.y,visible:Wi.visible,onClick:Wi.onClick})]})}function lT({isOpen:e,onClick:t,className:a=""}){return(0,p.jsx)("button",{type:"button",onClick:t,className:`fixed top-1/2 z-50 flex items-center justify-center w-6 h-16 bg-gray-100 hover:bg-gray-200 border border-gray-200 border-r-0 rounded-l-lg text-gray-600 hover:text-gray-800 shadow-md transition-all duration-300 ${a}`,"aria-label":e?"Close help panel":"Open help panel",style:{right:e?`${qm}px`:"0px",transform:"translateY(-50%)"},children:e?(0,p.jsx)(pi,{className:"h-4 w-4"}):(0,p.jsx)(mi,{className:"h-4 w-4"})})}function aS({onNavigate:e,onActionComplete:t,currentPage:a,agentUrl:r,startingQuestions:o,startingQuestionsEndpoint:n,defaultOpen:s=!1,isOpen:i,onOpenChange:l}){let[u,d]=j.useState(s),c=i!==void 0?i:u,f=g=>{i===void 0&&d(g),l?.(g)};return j.useEffect(()=>{let g=document.body.style.paddingRight,v=document.body.style.transition;return document.body.style.transition="padding-right 0.3s ease",document.body.style.paddingRight=c?`${qm}px`:"0px",()=>{document.body.style.paddingRight=g,document.body.style.transition=v}},[c]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(lT,{isOpen:c,onClick:()=>f(!c)}),(0,p.jsx)(iT,{isOpen:c,onClose:()=>f(!1),onNavigate:e,onActionComplete:t,currentPage:a,agentUrl:r,startingQuestions:o,startingQuestionsEndpoint:n})]})}var Gm=M(le(),1),cs=null,At=null,qt={};function uT({initialConfig:e}){let[t,a]=(0,Ta.useState)(e),[r,o]=(0,Ta.useState)(e.currentPage||"dashboard"),[n,s]=(0,Ta.useState)(!1),i=(0,Ta.useRef)(!1);return(0,Ta.useEffect)(()=>{i.current=n},[n]),(0,Ta.useEffect)(()=>(qt.setCurrentPage=o,qt.setConfig=l=>a(u=>({...u,...l})),qt.setIsOpen=s,qt.getIsOpen=()=>i.current,()=>{qt={}}),[]),(0,Ta.useEffect)(()=>{t.theme==="dark"?At?.classList.add("dark"):At?.classList.remove("dark")},[t.theme]),(0,Gm.jsx)(aS,{isOpen:n,onOpenChange:s,currentPage:r,agentUrl:t.agentUrl,onNavigate:(l,u)=>t.onNavigate?.(l,u),onActionComplete:t.onActionComplete,startingQuestions:t.startingQuestions,startingQuestionsEndpoint:t.startingQuestionsEndpoint})}function dT(){if(console.log("[KiteChat-Debug] injectStyles called",{existingStyle:!!document.getElementById("kite-chat-styles"),cssContentLength:46429}),document.getElementById("kite-chat-styles"))return;let e=document.createElement("style");e.id="kite-chat-styles",e.textContent=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
33
|
+
@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){#kite-chat-root *,#kite-chat-root :before,#kite-chat-root :after,#kite-chat-root ::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}:root,#kite-chat-root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-400:oklch(75% .183 55.934);--color-orange-700:oklch(55.3% .195 38.402);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-pink-400:oklch(71.8% .202 349.761);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-wider:.05em;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}#kite-chat-root *,#kite-chat-root :after,#kite-chat-root :before,#kite-chat-root ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}#kite-chat-root ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}#kite-chat-root,#kite-chat-root{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}#kite-chat-root hr{height:0;color:inherit;border-top-width:1px}#kite-chat-root abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#kite-chat-root h1,#kite-chat-root h2,#kite-chat-root h3,#kite-chat-root h4,#kite-chat-root h5,#kite-chat-root h6{font-size:inherit;font-weight:inherit}#kite-chat-root a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}#kite-chat-root b,#kite-chat-root strong{font-weight:bolder}#kite-chat-root code,#kite-chat-root kbd,#kite-chat-root samp,#kite-chat-root pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}#kite-chat-root small{font-size:80%}#kite-chat-root sub,#kite-chat-root sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}#kite-chat-root sub{bottom:-.25em}#kite-chat-root sup{top:-.5em}#kite-chat-root table{text-indent:0;border-color:inherit;border-collapse:collapse}#kite-chat-root :-moz-focusring{outline:auto}#kite-chat-root progress{vertical-align:baseline}#kite-chat-root summary{display:list-item}#kite-chat-root ol,#kite-chat-root ul,#kite-chat-root menu{list-style:none}#kite-chat-root img,#kite-chat-root svg,#kite-chat-root video,#kite-chat-root canvas,#kite-chat-root audio,#kite-chat-root iframe,#kite-chat-root embed,#kite-chat-root object{vertical-align:middle;display:block}#kite-chat-root img,#kite-chat-root video{max-width:100%;height:auto}#kite-chat-root button,#kite-chat-root input,#kite-chat-root select,#kite-chat-root optgroup,#kite-chat-root textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}#kite-chat-root ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}#kite-chat-root :where(select:is([multiple],[size])) optgroup{font-weight:bolder}#kite-chat-root :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}#kite-chat-root ::file-selector-button{margin-inline-end:4px}#kite-chat-root ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){#kite-chat-root ::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){#kite-chat-root ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}#kite-chat-root textarea{resize:vertical}#kite-chat-root ::-webkit-search-decoration{-webkit-appearance:none}#kite-chat-root ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}#kite-chat-root ::-webkit-datetime-edit{display:inline-flex}#kite-chat-root ::-webkit-datetime-edit-fields-wrapper{padding:0}#kite-chat-root ::-webkit-datetime-edit{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-year-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-month-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-day-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-hour-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-minute-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-second-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-millisecond-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-meridiem-field{padding-block:0}#kite-chat-root ::-webkit-calendar-picker-indicator{line-height:1}#kite-chat-root :-moz-ui-invalid{box-shadow:none}#kite-chat-root button,#kite-chat-root input:where([type=button],[type=reset],[type=submit]){appearance:button}#kite-chat-root ::file-selector-button{appearance:button}#kite-chat-root ::-webkit-inner-spin-button{height:auto}#kite-chat-root ::-webkit-outer-spin-button{height:auto}#kite-chat-root [hidden]:where(:not([hidden=until-found])){display:none!important}#kite-chat-root .\\@container\\/card-header{container:card-header/inline-size}#kite-chat-root .pointer-events-none{pointer-events:none}#kite-chat-root .collapse{visibility:collapse}#kite-chat-root .visible{visibility:visible}#kite-chat-root .fixed{position:fixed}#kite-chat-root .relative{position:relative}#kite-chat-root .top-0{top:calc(var(--spacing)*0)}#kite-chat-root .top-1\\/2{top:50%}#kite-chat-root .right-0{right:calc(var(--spacing)*0)}#kite-chat-root .z-40{z-index:40}#kite-chat-root .z-50{z-index:50}#kite-chat-root .z-\\[9999\\]{z-index:9999}#kite-chat-root .col-start-2{grid-column-start:2}#kite-chat-root .row-span-2{grid-row:span 2/span 2}#kite-chat-root .row-start-1{grid-row-start:1}#kite-chat-root .container{width:100%}@media (min-width:40rem){#kite-chat-root .container{max-width:40rem}}@media (min-width:48rem){#kite-chat-root .container{max-width:48rem}}@media (min-width:64rem){#kite-chat-root .container{max-width:64rem}}@media (min-width:80rem){#kite-chat-root .container{max-width:80rem}}@media (min-width:96rem){#kite-chat-root .container{max-width:96rem}}#kite-chat-root .mx-auto{margin-inline:auto}#kite-chat-root .my-1{margin-block:calc(var(--spacing)*1)}#kite-chat-root .my-2{margin-block:calc(var(--spacing)*2)}#kite-chat-root .mt-1{margin-top:calc(var(--spacing)*1)}#kite-chat-root .mt-2{margin-top:calc(var(--spacing)*2)}#kite-chat-root .mt-3{margin-top:calc(var(--spacing)*3)}#kite-chat-root .mr-2{margin-right:calc(var(--spacing)*2)}#kite-chat-root .mb-1{margin-bottom:calc(var(--spacing)*1)}#kite-chat-root .mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}#kite-chat-root .mb-2{margin-bottom:calc(var(--spacing)*2)}#kite-chat-root .mb-3{margin-bottom:calc(var(--spacing)*3)}#kite-chat-root .mb-4{margin-bottom:calc(var(--spacing)*4)}#kite-chat-root .ml-2{margin-left:calc(var(--spacing)*2)}#kite-chat-root .ml-4{margin-left:calc(var(--spacing)*4)}#kite-chat-root .ml-5{margin-left:calc(var(--spacing)*5)}#kite-chat-root .ml-6{margin-left:calc(var(--spacing)*6)}#kite-chat-root .block{display:block}#kite-chat-root .contents{display:contents}#kite-chat-root .flex{display:flex}#kite-chat-root .grid{display:grid}#kite-chat-root .hidden{display:none}#kite-chat-root .inline{display:inline}#kite-chat-root .inline-block{display:inline-block}#kite-chat-root .inline-flex{display:inline-flex}#kite-chat-root .table{display:table}#kite-chat-root .size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}#kite-chat-root .size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}#kite-chat-root .size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}#kite-chat-root .size-full{width:100%;height:100%}#kite-chat-root .h-1{height:calc(var(--spacing)*1)}#kite-chat-root .h-1\\.5{height:calc(var(--spacing)*1.5)}#kite-chat-root .h-2{height:calc(var(--spacing)*2)}#kite-chat-root .h-2\\.5{height:calc(var(--spacing)*2.5)}#kite-chat-root .h-3{height:calc(var(--spacing)*3)}#kite-chat-root .h-3\\.5{height:calc(var(--spacing)*3.5)}#kite-chat-root .h-4{height:calc(var(--spacing)*4)}#kite-chat-root .h-5{height:calc(var(--spacing)*5)}#kite-chat-root .h-6{height:calc(var(--spacing)*6)}#kite-chat-root .h-7{height:calc(var(--spacing)*7)}#kite-chat-root .h-8{height:calc(var(--spacing)*8)}#kite-chat-root .h-9{height:calc(var(--spacing)*9)}#kite-chat-root .h-10{height:calc(var(--spacing)*10)}#kite-chat-root .h-16{height:calc(var(--spacing)*16)}#kite-chat-root .h-auto{height:auto}#kite-chat-root .h-full{height:100%}#kite-chat-root .max-h-32{max-height:calc(var(--spacing)*32)}#kite-chat-root .min-h-0{min-height:calc(var(--spacing)*0)}#kite-chat-root .w-1\\.5{width:calc(var(--spacing)*1.5)}#kite-chat-root .w-2\\.5{width:calc(var(--spacing)*2.5)}#kite-chat-root .w-3{width:calc(var(--spacing)*3)}#kite-chat-root .w-3\\.5{width:calc(var(--spacing)*3.5)}#kite-chat-root .w-4{width:calc(var(--spacing)*4)}#kite-chat-root .w-5{width:calc(var(--spacing)*5)}#kite-chat-root .w-6{width:calc(var(--spacing)*6)}#kite-chat-root .w-7{width:calc(var(--spacing)*7)}#kite-chat-root .w-8{width:calc(var(--spacing)*8)}#kite-chat-root .w-10{width:calc(var(--spacing)*10)}#kite-chat-root .w-full{width:100%}#kite-chat-root .max-w-\\[280px\\]{max-width:280px}#kite-chat-root .min-w-0{min-width:calc(var(--spacing)*0)}#kite-chat-root .flex-1{flex:1}#kite-chat-root .flex-shrink-0,#kite-chat-root .shrink-0{flex-shrink:0}#kite-chat-root .translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}#kite-chat-root .translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}#kite-chat-root .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}#kite-chat-root .animate-spin{animation:var(--animate-spin)}#kite-chat-root .cursor-pointer{cursor:pointer}#kite-chat-root .touch-none{touch-action:none}#kite-chat-root .list-decimal{list-style-type:decimal}#kite-chat-root .list-disc{list-style-type:disc}#kite-chat-root .auto-rows-min{grid-auto-rows:min-content}#kite-chat-root .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#kite-chat-root .grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}#kite-chat-root .flex-col{flex-direction:column}#kite-chat-root .flex-wrap{flex-wrap:wrap}#kite-chat-root .place-items-center{place-items:center}#kite-chat-root .items-center{align-items:center}#kite-chat-root .items-start{align-items:flex-start}#kite-chat-root .justify-between{justify-content:space-between}#kite-chat-root .justify-center{justify-content:center}#kite-chat-root .justify-end{justify-content:flex-end}#kite-chat-root .justify-start{justify-content:flex-start}#kite-chat-root .gap-0\\.5{gap:calc(var(--spacing)*.5)}#kite-chat-root .gap-1{gap:calc(var(--spacing)*1)}#kite-chat-root .gap-1\\.5{gap:calc(var(--spacing)*1.5)}#kite-chat-root .gap-2{gap:calc(var(--spacing)*2)}#kite-chat-root .gap-3{gap:calc(var(--spacing)*3)}#kite-chat-root .gap-4{gap:calc(var(--spacing)*4)}#kite-chat-root .gap-6{gap:calc(var(--spacing)*6)}#kite-chat-root :where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}#kite-chat-root :where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}#kite-chat-root :where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}#kite-chat-root :where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}#kite-chat-root :where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}#kite-chat-root :where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}#kite-chat-root .self-start{align-self:flex-start}#kite-chat-root .justify-self-end{justify-self:flex-end}#kite-chat-root .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#kite-chat-root .overflow-hidden{overflow:hidden}#kite-chat-root .overflow-x-auto{overflow-x:auto}#kite-chat-root .overflow-y-auto{overflow-y:auto}#kite-chat-root .rounded{border-radius:.25rem}#kite-chat-root .rounded-2xl{border-radius:var(--radius-2xl)}#kite-chat-root .rounded-\\[inherit\\]{border-radius:inherit}#kite-chat-root .rounded-full{border-radius:3.40282e38px}#kite-chat-root .rounded-lg{border-radius:var(--kite-radius)}#kite-chat-root .rounded-md{border-radius:calc(var(--kite-radius) - 2px)}#kite-chat-root .rounded-xl{border-radius:calc(var(--kite-radius) + 4px)}#kite-chat-root .rounded-l-lg{border-top-left-radius:var(--kite-radius);border-bottom-left-radius:var(--kite-radius)}#kite-chat-root .rounded-br-md{border-bottom-right-radius:calc(var(--kite-radius) - 2px)}#kite-chat-root .border{border-style:var(--tw-border-style);border-width:1px}#kite-chat-root .border-0{border-style:var(--tw-border-style);border-width:0}#kite-chat-root .border-t{border-top-style:var(--tw-border-style);border-top-width:1px}#kite-chat-root .border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}#kite-chat-root .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}#kite-chat-root .border-l{border-left-style:var(--tw-border-style);border-left-width:1px}#kite-chat-root .border-amber-100{border-color:var(--color-amber-100)}#kite-chat-root .border-amber-200{border-color:var(--color-amber-200)}#kite-chat-root .border-blue-100{border-color:var(--color-blue-100)}#kite-chat-root .border-blue-200{border-color:var(--color-blue-200)}#kite-chat-root .border-emerald-100{border-color:var(--color-emerald-100)}#kite-chat-root .border-emerald-200{border-color:var(--color-emerald-200)}#kite-chat-root .border-gray-100{border-color:var(--color-gray-100)}#kite-chat-root .border-gray-200{border-color:var(--color-gray-200)}#kite-chat-root .border-gray-300{border-color:var(--color-gray-300)}#kite-chat-root .border-green-200{border-color:var(--color-green-200)}#kite-chat-root .border-input{border-color:var(--kite-input)}#kite-chat-root .border-primary\\/20{border-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .border-primary\\/20{border-color:color-mix(in oklab,var(--kite-primary)20%,transparent)}}#kite-chat-root .border-purple-100{border-color:var(--color-purple-100)}#kite-chat-root .border-purple-200{border-color:var(--color-purple-200)}#kite-chat-root .border-red-200{border-color:var(--color-red-200)}#kite-chat-root .border-slate-200{border-color:var(--color-slate-200)}#kite-chat-root .border-t-transparent{border-top-color:#0000}#kite-chat-root .border-l-transparent{border-left-color:#0000}#kite-chat-root .bg-amber-50{background-color:var(--color-amber-50)}#kite-chat-root .bg-amber-100{background-color:var(--color-amber-100)}#kite-chat-root .bg-background{background-color:var(--kite-background)}#kite-chat-root .bg-blue-50{background-color:var(--color-blue-50)}#kite-chat-root .bg-blue-100{background-color:var(--color-blue-100)}#kite-chat-root .bg-blue-400{background-color:var(--color-blue-400)}#kite-chat-root .bg-blue-600{background-color:var(--color-blue-600)}#kite-chat-root .bg-border{background-color:var(--kite-border)}#kite-chat-root .bg-card{background-color:var(--kite-card)}#kite-chat-root .bg-destructive{background-color:var(--kite-destructive)}#kite-chat-root .bg-emerald-50{background-color:var(--color-emerald-50)}#kite-chat-root .bg-emerald-500{background-color:var(--color-emerald-500)}#kite-chat-root .bg-gray-50{background-color:var(--color-gray-50)}#kite-chat-root .bg-gray-50\\/50{background-color:#f9fafb80}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-gray-50\\/50{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}}#kite-chat-root .bg-gray-100{background-color:var(--color-gray-100)}#kite-chat-root .bg-gray-200{background-color:var(--color-gray-200)}#kite-chat-root .bg-gray-900{background-color:var(--color-gray-900)}#kite-chat-root .bg-green-50{background-color:var(--color-green-50)}#kite-chat-root .bg-green-400{background-color:var(--color-green-400)}#kite-chat-root .bg-muted\\/40{background-color:var(--kite-muted)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-muted\\/40{background-color:color-mix(in oklab,var(--kite-muted)40%,transparent)}}#kite-chat-root .bg-orange-100{background-color:var(--color-orange-100)}#kite-chat-root .bg-orange-400{background-color:var(--color-orange-400)}#kite-chat-root .bg-pink-400{background-color:var(--color-pink-400)}#kite-chat-root .bg-primary,#kite-chat-root .bg-primary\\/5{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-primary\\/5{background-color:color-mix(in oklab,var(--kite-primary)5%,transparent)}}#kite-chat-root .bg-purple-50{background-color:var(--color-purple-50)}#kite-chat-root .bg-purple-400{background-color:var(--color-purple-400)}#kite-chat-root .bg-red-50{background-color:var(--color-red-50)}#kite-chat-root .bg-red-500{background-color:var(--color-red-500)}#kite-chat-root .bg-secondary{background-color:var(--kite-secondary)}#kite-chat-root .bg-slate-50{background-color:var(--color-slate-50)}#kite-chat-root .bg-slate-100{background-color:var(--color-slate-100)}#kite-chat-root .bg-slate-300{background-color:var(--color-slate-300)}#kite-chat-root .bg-transparent{background-color:#0000}#kite-chat-root .bg-white{background-color:var(--color-white)}#kite-chat-root .bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}#kite-chat-root .from-gray-50{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}#kite-chat-root .to-white{--tw-gradient-to:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}#kite-chat-root .p-0{padding:calc(var(--spacing)*0)}#kite-chat-root .p-2{padding:calc(var(--spacing)*2)}#kite-chat-root .p-3{padding:calc(var(--spacing)*3)}#kite-chat-root .p-4{padding:calc(var(--spacing)*4)}#kite-chat-root .p-px{padding:1px}#kite-chat-root .px-0{padding-inline:calc(var(--spacing)*0)}#kite-chat-root .px-1{padding-inline:calc(var(--spacing)*1)}#kite-chat-root .px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}#kite-chat-root .px-2{padding-inline:calc(var(--spacing)*2)}#kite-chat-root .px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}#kite-chat-root .px-3{padding-inline:calc(var(--spacing)*3)}#kite-chat-root .px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}#kite-chat-root .px-4{padding-inline:calc(var(--spacing)*4)}#kite-chat-root .px-6{padding-inline:calc(var(--spacing)*6)}#kite-chat-root .py-0{padding-block:calc(var(--spacing)*0)}#kite-chat-root .py-0\\.5{padding-block:calc(var(--spacing)*.5)}#kite-chat-root .py-1{padding-block:calc(var(--spacing)*1)}#kite-chat-root .py-1\\.5{padding-block:calc(var(--spacing)*1.5)}#kite-chat-root .py-2{padding-block:calc(var(--spacing)*2)}#kite-chat-root .py-2\\.5{padding-block:calc(var(--spacing)*2.5)}#kite-chat-root .py-3{padding-block:calc(var(--spacing)*3)}#kite-chat-root .py-4{padding-block:calc(var(--spacing)*4)}#kite-chat-root .py-6{padding-block:calc(var(--spacing)*6)}#kite-chat-root .py-8{padding-block:calc(var(--spacing)*8)}#kite-chat-root .pt-0{padding-top:calc(var(--spacing)*0)}#kite-chat-root .pt-2{padding-top:calc(var(--spacing)*2)}#kite-chat-root .pb-2{padding-bottom:calc(var(--spacing)*2)}#kite-chat-root .pb-3{padding-bottom:calc(var(--spacing)*3)}#kite-chat-root .pb-4{padding-bottom:calc(var(--spacing)*4)}#kite-chat-root .text-center{text-align:center}#kite-chat-root .font-mono{font-family:var(--font-mono)}#kite-chat-root .text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}#kite-chat-root .text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}#kite-chat-root .text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}#kite-chat-root .text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#kite-chat-root .text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}#kite-chat-root .text-\\[10px\\]{font-size:10px}#kite-chat-root .leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}#kite-chat-root .leading-none{--tw-leading:1;line-height:1}#kite-chat-root .font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}#kite-chat-root .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#kite-chat-root .font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}#kite-chat-root .tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}#kite-chat-root .tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}#kite-chat-root .whitespace-nowrap{white-space:nowrap}#kite-chat-root .whitespace-pre-wrap{white-space:pre-wrap}#kite-chat-root .text-amber-500{color:var(--color-amber-500)}#kite-chat-root .text-amber-600{color:var(--color-amber-600)}#kite-chat-root .text-amber-700{color:var(--color-amber-700)}#kite-chat-root .text-black{color:var(--color-black)}#kite-chat-root .text-blue-600{color:var(--color-blue-600)}#kite-chat-root .text-blue-700{color:var(--color-blue-700)}#kite-chat-root .text-card-foreground{color:var(--kite-card-foreground)}#kite-chat-root .text-emerald-500{color:var(--color-emerald-500)}#kite-chat-root .text-emerald-600{color:var(--color-emerald-600)}#kite-chat-root .text-emerald-700{color:var(--color-emerald-700)}#kite-chat-root .text-gray-300{color:var(--color-gray-300)}#kite-chat-root .text-gray-400{color:var(--color-gray-400)}#kite-chat-root .text-gray-500{color:var(--color-gray-500)}#kite-chat-root .text-gray-600{color:var(--color-gray-600)}#kite-chat-root .text-gray-700{color:var(--color-gray-700)}#kite-chat-root .text-gray-800{color:var(--color-gray-800)}#kite-chat-root .text-gray-900{color:var(--color-gray-900)}#kite-chat-root .text-green-500{color:var(--color-green-500)}#kite-chat-root .text-green-600{color:var(--color-green-600)}#kite-chat-root .text-green-700{color:var(--color-green-700)}#kite-chat-root .text-green-800{color:var(--color-green-800)}#kite-chat-root .text-muted-foreground{color:var(--kite-muted-foreground)}#kite-chat-root .text-orange-700{color:var(--color-orange-700)}#kite-chat-root .text-primary{color:var(--kite-primary)}#kite-chat-root .text-primary-foreground{color:var(--kite-primary-foreground)}#kite-chat-root .text-purple-600{color:var(--color-purple-600)}#kite-chat-root .text-purple-700{color:var(--color-purple-700)}#kite-chat-root .text-red-500{color:var(--color-red-500)}#kite-chat-root .text-red-600{color:var(--color-red-600)}#kite-chat-root .text-red-700{color:var(--color-red-700)}#kite-chat-root .text-secondary-foreground{color:var(--kite-secondary-foreground)}#kite-chat-root .text-slate-600{color:var(--color-slate-600)}#kite-chat-root .text-slate-700{color:var(--color-slate-700)}#kite-chat-root .text-white{color:var(--color-white)}#kite-chat-root .uppercase{text-transform:uppercase}#kite-chat-root .italic{font-style:italic}#kite-chat-root .line-through{text-decoration-line:line-through}#kite-chat-root .underline-offset-4{text-underline-offset:4px}#kite-chat-root .opacity-60{opacity:.6}#kite-chat-root .opacity-70{opacity:.7}#kite-chat-root .opacity-90{opacity:.9}#kite-chat-root .opacity-100{opacity:1}#kite-chat-root .shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .outline{outline-style:var(--tw-outline-style);outline-width:1px}#kite-chat-root .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .duration-150{--tw-duration:.15s;transition-duration:.15s}#kite-chat-root .duration-200{--tw-duration:.2s;transition-duration:.2s}#kite-chat-root .duration-300{--tw-duration:.3s;transition-duration:.3s}#kite-chat-root .ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}#kite-chat-root .outline-none{--tw-outline-style:none;outline-style:none}#kite-chat-root .select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){#kite-chat-root .group-hover\\:bg-gray-200:is(:where(.group):hover *){background-color:var(--color-gray-200)}}#kite-chat-root .selection\\:bg-primary ::selection{background-color:var(--kite-primary)}#kite-chat-root .selection\\:bg-primary::selection{background-color:var(--kite-primary)}#kite-chat-root .selection\\:text-primary-foreground ::selection{color:var(--kite-primary-foreground)}#kite-chat-root .selection\\:text-primary-foreground::selection{color:var(--kite-primary-foreground)}#kite-chat-root .file\\:inline-flex::file-selector-button{display:inline-flex}#kite-chat-root .file\\:h-7::file-selector-button{height:calc(var(--spacing)*7)}#kite-chat-root .file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}#kite-chat-root .file\\:bg-transparent::file-selector-button{background-color:#0000}#kite-chat-root .file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#kite-chat-root .file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#kite-chat-root .file\\:text-foreground::file-selector-button{color:var(--kite-foreground)}#kite-chat-root .placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}#kite-chat-root .placeholder\\:text-muted-foreground::placeholder{color:var(--kite-muted-foreground)}@media (hover:hover){#kite-chat-root .hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}#kite-chat-root .hover\\:border-primary\\/30:hover{border-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:border-primary\\/30:hover{border-color:color-mix(in oklab,var(--kite-primary)30%,transparent)}}#kite-chat-root .hover\\:bg-accent:hover{background-color:var(--kite-accent)}#kite-chat-root .hover\\:bg-destructive\\/90:hover{background-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--kite-destructive)90%,transparent)}}#kite-chat-root .hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}#kite-chat-root .hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}#kite-chat-root .hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}#kite-chat-root .hover\\:bg-gray-800:hover{background-color:var(--color-gray-800)}#kite-chat-root .hover\\:bg-primary\\/10:hover{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab,var(--kite-primary)10%,transparent)}}#kite-chat-root .hover\\:bg-primary\\/90:hover{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--kite-primary)90%,transparent)}}#kite-chat-root .hover\\:bg-secondary\\/80:hover{background-color:var(--kite-secondary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--kite-secondary)80%,transparent)}}#kite-chat-root .hover\\:text-accent-foreground:hover{color:var(--kite-accent-foreground)}#kite-chat-root .hover\\:text-blue-800:hover{color:var(--color-blue-800)}#kite-chat-root .hover\\:text-gray-600:hover{color:var(--color-gray-600)}#kite-chat-root .hover\\:text-gray-700:hover{color:var(--color-gray-700)}#kite-chat-root .hover\\:text-gray-800:hover{color:var(--color-gray-800)}#kite-chat-root .hover\\:underline:hover{text-decoration-line:underline}}#kite-chat-root .focus\\:ring-primary:focus{--tw-ring-color:var(--kite-primary)}#kite-chat-root .focus-visible\\:border-ring:focus-visible{border-color:var(--kite-ring)}#kite-chat-root .focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#kite-chat-root .focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)20%,transparent)}}#kite-chat-root .focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--kite-ring)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-ring)50%,transparent)}}#kite-chat-root .focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}#kite-chat-root .focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}#kite-chat-root .disabled\\:pointer-events-none:disabled{pointer-events:none}#kite-chat-root .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#kite-chat-root .disabled\\:bg-gray-300:disabled{background-color:var(--color-gray-300)}#kite-chat-root .disabled\\:opacity-50:disabled{opacity:.5}#kite-chat-root .has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}#kite-chat-root .has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}#kite-chat-root .has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}#kite-chat-root .has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}#kite-chat-root .aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--kite-destructive)}#kite-chat-root .aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)20%,transparent)}}@media (min-width:48rem){#kite-chat-root .md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}#kite-chat-root .dark\\:border-input:is(.dark *){border-color:var(--kite-input)}#kite-chat-root .dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab,var(--kite-destructive)60%,transparent)}}#kite-chat-root .dark\\:bg-input\\/30:is(.dark *){background-color:var(--kite-input)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--kite-input)30%,transparent)}}@media (hover:hover){#kite-chat-root .dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--kite-accent)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--kite-accent)50%,transparent)}}#kite-chat-root .dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--kite-input)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--kite-input)50%,transparent)}}}#kite-chat-root .dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)40%,transparent)}}#kite-chat-root .dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)40%,transparent)}}#kite-chat-root .\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}#kite-chat-root .\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}#kite-chat-root .\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}#kite-chat-root .\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}#kite-chat-root .\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:root{--kite-radius:.625rem;--kite-background:oklch(100% 0 0);--kite-foreground:oklch(14.5% 0 0);--kite-card:oklch(100% 0 0);--kite-card-foreground:oklch(14.5% 0 0);--kite-popover:oklch(100% 0 0);--kite-popover-foreground:oklch(14.5% 0 0);--kite-primary:oklch(20.5% 0 0);--kite-primary-foreground:oklch(98.5% 0 0);--kite-secondary:oklch(97% 0 0);--kite-secondary-foreground:oklch(20.5% 0 0);--kite-muted:oklch(97% 0 0);--kite-muted-foreground:oklch(55.6% 0 0);--kite-accent:oklch(97% 0 0);--kite-accent-foreground:oklch(20.5% 0 0);--kite-destructive:oklch(57.7% .245 27.325);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(92.2% 0 0);--kite-input:oklch(92.2% 0 0);--kite-ring:oklch(70.8% 0 0)}.dark{--kite-background:oklch(14.5% 0 0);--kite-foreground:oklch(98.5% 0 0);--kite-card:oklch(20.5% 0 0);--kite-card-foreground:oklch(98.5% 0 0);--kite-popover:oklch(20.5% 0 0);--kite-popover-foreground:oklch(98.5% 0 0);--kite-primary:oklch(92.2% 0 0);--kite-primary-foreground:oklch(20.5% 0 0);--kite-secondary:oklch(26.9% 0 0);--kite-secondary-foreground:oklch(98.5% 0 0);--kite-muted:oklch(26.9% 0 0);--kite-muted-foreground:oklch(70.8% 0 0);--kite-accent:oklch(26.9% 0 0);--kite-accent-foreground:oklch(98.5% 0 0);--kite-destructive:oklch(70.4% .191 22.216);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(100% 0 0/.1);--kite-input:oklch(100% 0 0/.15);--kite-ring:oklch(55.6% 0 0)}#kite-chat-root *{border-color:var(--kite-border)}#kite-chat-root section form input{color:var(--kite-foreground,#1a1a1a)!important}#kite-chat-root section form input::placeholder{color:var(--kite-muted-foreground,#9ca3af)!important}#kite-chat-root section .space-y-1>div+div{margin-top:.625rem}#kite-chat-root section>div.flex-1>div.overflow-y-auto{padding:1rem 1.25rem!important}#kite-chat-root section .mt-6.pt-4.border-t{margin-top:1.25rem;padding-top:1rem}#kite-chat-root section button.w-full.text-left.px-3{padding:.75rem 1rem}#kite-chat-root section .text-sm.leading-6{line-height:1.625rem}@keyframes spin{to{transform:rotate(360deg)}}#kite-chat-root .animate-spin{animation:1s linear infinite spin}#kite-chat-root [data-motion]{will-change:transform,opacity}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-color-scheme:dark){:root{--kite-background:oklch(14.5% 0 0);--kite-foreground:oklch(98.5% 0 0);--kite-card:oklch(20.5% 0 0);--kite-card-foreground:oklch(98.5% 0 0);--kite-popover:oklch(20.5% 0 0);--kite-popover-foreground:oklch(98.5% 0 0);--kite-primary:oklch(92.2% 0 0);--kite-primary-foreground:oklch(20.5% 0 0);--kite-secondary:oklch(26.9% 0 0);--kite-secondary-foreground:oklch(98.5% 0 0);--kite-muted:oklch(26.9% 0 0);--kite-muted-foreground:oklch(70.8% 0 0);--kite-accent:oklch(26.9% 0 0);--kite-accent-foreground:oklch(98.5% 0 0);--kite-destructive:oklch(70.4% .191 22.216);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(100% 0 0/.1);--kite-input:oklch(100% 0 0/.15);--kite-ring:oklch(55.6% 0 0)}}`,document.head.appendChild(e),console.log("[KiteChat-Debug] Style injected",{styleInHead:!!document.getElementById("kite-chat-styles"),cssLength:e.textContent?.length||0});let t=document.createElement("style");t.id="kite-chat-position",t.textContent=`
|
|
34
34
|
#kite-chat-root {
|
|
35
35
|
/* Container is just a mount point - ChatPanel handles its own positioning */
|
|
36
36
|
}
|
|
37
|
-
`,document.head.appendChild(t)}function Wm(){
|
|
37
|
+
`,document.head.appendChild(t)}function Wm(){console.log("[KiteChat-Debug] init() called",{hasConfig:!!window.KiteChatConfig,configKeys:window.KiteChatConfig?Object.keys(window.KiteChatConfig):[]});let e=window.KiteChatConfig;if(!e){console.error("[KiteChat] Missing window.KiteChatConfig"),console.log("[KiteChat-Debug] FAIL: no config");return}if(!e.userId||!e.orgId){console.error("[KiteChat] userId and orgId are required"),console.log("[KiteChat-Debug] FAIL: missing userId/orgId",{hasUserId:!!e.userId,hasOrgId:!!e.orgId});return}if(cs){console.warn("[KiteChat] Already initialized");return}if(dT(),e.container){let t=typeof e.container=="string"?document.querySelector(e.container):e.container;if(console.log("[KiteChat-Debug] Using custom container",{containerSelector:typeof e.container=="string"?e.container:"HTMLElement",foundContainer:!!t,containerId:t?.id||"NO_ID",containerClasses:t?.className||""}),!t){console.error(`[KiteChat] Container not found: ${e.container}`);return}At=document.createElement("div"),At.id="kite-chat-root",t.appendChild(At),console.log("[KiteChat-Debug] Created inner wrapper with kite-chat-root ID inside custom container")}else At=document.createElement("div"),At.id="kite-chat-root",document.body.appendChild(At),console.log("[KiteChat-Debug] Created default container",{containerId:At.id});console.log("[KiteChat-Debug] About to render",{finalContainerId:At?.id||"NO_ID",finalContainerClasses:At?.className||""}),cs=(0,rS.createRoot)(At),cs.render((0,Gm.jsx)(uT,{initialConfig:e})),window.KiteChat=cT(),console.log("[KiteChat] Initialized")}function cT(){return{setCurrentPage:e=>qt.setCurrentPage?.(e),setUser:(e,t)=>qt.setConfig?.({userId:e,orgId:t}),setConfig:e=>qt.setConfig?.(e),open:()=>qt.setIsOpen?.(!0),close:()=>qt.setIsOpen?.(!1),toggle:()=>{let e=qt.getIsOpen?.()??!1;qt.setIsOpen?.(!e)},isOpen:()=>qt.getIsOpen?.()??!1,destroy:()=>{cs?.unmount(),cs=null,At?.remove(),At=null,window.KiteChat=void 0},isMounted:()=>cs!==null}}typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Wm):Wm());return vS(fT);})();
|
|
38
38
|
/*! Bundled license information:
|
|
39
39
|
|
|
40
40
|
react/cjs/react.production.min.js:
|