genaicode 0.9.4 → 0.9.6
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/ai-service/anthropic.js +28 -14
- package/dist/ai-service/anthropic.js.map +1 -1
- package/dist/ai-service/openai.js +1 -1
- package/dist/ai-service/openai.js.map +1 -1
- package/dist/ai-service/service-configurations.js +3 -3
- package/dist/ai-service/service-configurations.js.map +1 -1
- package/dist/main/config-schema.js +1 -1
- package/dist/main/config-schema.js.map +1 -1
- package/dist/main/ui/frontend/assets/index-DI1ngpa2.js +1840 -0
- package/dist/main/ui/frontend/index.html +2 -2
- package/dist/prompt/function-calling.js +5 -1
- package/dist/prompt/function-calling.js.map +1 -1
- package/dist/prompt/function-defs/ask-question.d.ts +2 -0
- package/dist/prompt/function-defs/ask-question.js +18 -1
- package/dist/prompt/function-defs/ask-question.js.map +1 -1
- package/dist/prompt/function-defs/conversation-graph.d.ts +33 -0
- package/dist/prompt/function-defs/conversation-graph.js +110 -0
- package/dist/prompt/function-defs/conversation-graph.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/ask-question-handler.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/ask-question-handler.js +12 -0
- package/dist/prompt/steps/step-ask-question/ask-question-handler.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.js +23 -23
- package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-confirm-code-generation.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-confirm-code-generation.js +27 -21
- package/dist/prompt/steps/step-ask-question/handlers/handle-confirm-code-generation.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-compression.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-compression.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-optimization.js +15 -13
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-optimization.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.d.ts +12 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.js +243 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.d.ts +2 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js +16 -17
- package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.js +17 -17
- package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-lint.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-lint.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-remove-files-from-context.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-remove-files-from-context.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-content.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-content.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-fragments.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-fragments.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-permissions.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-permissions.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.d.ts +0 -3
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js +2 -3
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.d.ts +2 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js +16 -17
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.d.ts +3 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js +5 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +7 -2
- package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +21 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question.js +24 -69
- package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
- package/dist/prompt/systemprompt.js +4 -3
- package/dist/prompt/systemprompt.js.map +1 -1
- package/package.json +7 -7
- package/dist/main/ui/frontend/assets/index-COR2Vhaf.js +0 -1814
- /package/dist/main/ui/frontend/assets/{index-S_ocA1xG.css → index-5QDg_0vR.css} +0 -0
|
@@ -1,1814 +0,0 @@
|
|
|
1
|
-
var gg=Object.defineProperty;var yg=(e,t,n)=>t in e?gg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Lr=(e,t,n)=>yg(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function xg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yf={exports:{}},U={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var _o=Symbol.for("react.element"),wg=Symbol.for("react.portal"),Sg=Symbol.for("react.fragment"),kg=Symbol.for("react.strict_mode"),Cg=Symbol.for("react.profiler"),jg=Symbol.for("react.provider"),Eg=Symbol.for("react.context"),bg=Symbol.for("react.forward_ref"),Ng=Symbol.for("react.suspense"),$g=Symbol.for("react.memo"),Rg=Symbol.for("react.lazy"),pc=Symbol.iterator;function Tg(e){return e===null||typeof e!="object"?null:(e=pc&&e[pc]||e["@@iterator"],typeof e=="function"?e:null)}var xf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wf=Object.assign,Sf={};function Er(e,t,n){this.props=e,this.context=t,this.refs=Sf,this.updater=n||xf}Er.prototype.isReactComponent={};Er.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")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kf(){}kf.prototype=Er.prototype;function Ka(e,t,n){this.props=e,this.context=t,this.refs=Sf,this.updater=n||xf}var Ga=Ka.prototype=new kf;Ga.constructor=Ka;wf(Ga,Er.prototype);Ga.isPureReactComponent=!0;var hc=Array.isArray,Cf=Object.prototype.hasOwnProperty,Qa={current:null},jf={key:!0,ref:!0,__self:!0,__source:!0};function Ef(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Cf.call(t,r)&&!jf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:_o,type:e,key:i,ref:s,props:o,_owner:Qa.current}}function Pg(e,t){return{$$typeof:_o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qa(e){return typeof e=="object"&&e!==null&&e.$$typeof===_o}function _g(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var mc=/\/+/g;function Us(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_g(""+e.key):t.toString(36)}function pi(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case _o:case wg:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Us(s,0):r,hc(o)?(n="",e!=null&&(n=e.replace(mc,"$&/")+"/"),pi(o,t,n,"",function(c){return c})):o!=null&&(qa(o)&&(o=Pg(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(mc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",hc(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+Us(i,l);s+=pi(i,t,n,a,o)}else if(a=Tg(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+Us(i,l++),s+=pi(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Wo(e,t,n){if(e==null)return e;var r=[],o=0;return pi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Lg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Re={current:null},hi={transition:null},Ig={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:hi,ReactCurrentOwner:Qa};function bf(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Wo,forEach:function(e,t,n){Wo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Wo(e,function(){t++}),t},toArray:function(e){return Wo(e,function(t){return t})||[]},only:function(e){if(!qa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=Er;U.Fragment=Sg;U.Profiler=Cg;U.PureComponent=Ka;U.StrictMode=kg;U.Suspense=Ng;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ig;U.act=bf;U.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=wf({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Qa.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Cf.call(t,a)&&!jf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:_o,type:e.type,key:o,ref:i,props:r,_owner:s}};U.createContext=function(e){return e={$$typeof:Eg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:jg,_context:e},e.Consumer=e};U.createElement=Ef;U.createFactory=function(e){var t=Ef.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:bg,render:e}};U.isValidElement=qa;U.lazy=function(e){return{$$typeof:Rg,_payload:{_status:-1,_result:e},_init:Lg}};U.memo=function(e,t){return{$$typeof:$g,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=hi.transition;hi.transition={};try{e()}finally{hi.transition=t}};U.unstable_act=bf;U.useCallback=function(e,t){return Re.current.useCallback(e,t)};U.useContext=function(e){return Re.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return Re.current.useDeferredValue(e)};U.useEffect=function(e,t){return Re.current.useEffect(e,t)};U.useId=function(){return Re.current.useId()};U.useImperativeHandle=function(e,t,n){return Re.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return Re.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return Re.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return Re.current.useMemo(e,t)};U.useReducer=function(e,t,n){return Re.current.useReducer(e,t,n)};U.useRef=function(e){return Re.current.useRef(e)};U.useState=function(e){return Re.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return Re.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return Re.current.useTransition()};U.version="18.3.1";yf.exports=U;var S=yf.exports;const Le=xg(S);var Nf={exports:{}},Ge={},$f={exports:{}},Rf={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/(function(e){function t(P,A){var D=P.length;P.push(A);e:for(;0<D;){var Y=D-1>>>1,X=P[Y];if(0<o(X,A))P[Y]=A,P[D]=X,D=Y;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var A=P[0],D=P.pop();if(D!==A){P[0]=D;e:for(var Y=0,X=P.length,pn=X>>>1;Y<pn;){var at=2*(Y+1)-1,Mt=P[at],Be=at+1,bt=P[Be];if(0>o(Mt,D))Be<X&&0>o(bt,Mt)?(P[Y]=bt,P[Be]=D,Y=Be):(P[Y]=Mt,P[at]=D,Y=at);else if(Be<X&&0>o(bt,D))P[Y]=bt,P[Be]=D,Y=Be;else break e}}return A}function o(P,A){var D=P.sortIndex-A.sortIndex;return D!==0?D:P.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],d=1,f=null,h=3,y=!1,v=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(P){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=P)r(c),A.sortIndex=A.expirationTime,t(a,A);else break;A=n(c)}}function C(P){if(x=!1,g(P),!v)if(n(a)!==null)v=!0,q(j);else{var A=n(c);A!==null&&B(C,A.startTime-P)}}function j(P,A){v=!1,x&&(x=!1,m(R),R=-1),y=!0;var D=h;try{for(g(A),f=n(a);f!==null&&(!(f.expirationTime>A)||P&&!W());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,h=f.priorityLevel;var X=Y(f.expirationTime<=A);A=e.unstable_now(),typeof X=="function"?f.callback=X:f===n(a)&&r(a),g(A)}else r(a);f=n(a)}if(f!==null)var pn=!0;else{var at=n(c);at!==null&&B(C,at.startTime-A),pn=!1}return pn}finally{f=null,h=D,y=!1}}var b=!1,$=null,R=-1,L=5,I=-1;function W(){return!(e.unstable_now()-I<L)}function F(){if($!==null){var P=e.unstable_now();I=P;var A=!0;try{A=$(!0,P)}finally{A?Q():(b=!1,$=null)}}else b=!1}var Q;if(typeof p=="function")Q=function(){p(F)};else if(typeof MessageChannel<"u"){var lt=new MessageChannel,O=lt.port2;lt.port1.onmessage=F,Q=function(){O.postMessage(null)}}else Q=function(){k(F,0)};function q(P){$=P,b||(b=!0,Q())}function B(P,A){R=k(function(){P(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){v||y||(v=!0,q(j))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var A=3;break;default:A=h}var D=h;h=A;try{return P()}finally{h=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,A){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var D=h;h=P;try{return A()}finally{h=D}},e.unstable_scheduleCallback=function(P,A,D){var Y=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?Y+D:Y):D=Y,P){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=D+X,P={id:d++,callback:A,priorityLevel:P,startTime:D,expirationTime:X,sortIndex:-1},D>Y?(P.sortIndex=D,t(c,P),n(a)===null&&P===n(c)&&(x?(m(R),R=-1):x=!0,B(C,D-Y))):(P.sortIndex=X,t(a,P),v||y||(v=!0,q(j))),P},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(P){var A=h;return function(){var D=h;h=A;try{return P.apply(this,arguments)}finally{h=D}}}})(Rf);$f.exports=Rf;var Ag=$f.exports;/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-dom.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Og=S,Ke=Ag;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Tf=new Set,co={};function Ln(e,t){fr(e,t),fr(e+"Capture",t)}function fr(e,t){for(co[e]=t,e=0;e<t.length;e++)Tf.add(t[e])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tl=Object.prototype.hasOwnProperty,Dg=/^[: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]*$/,vc={},gc={};function Mg(e){return Tl.call(gc,e)?!0:Tl.call(vc,e)?!1:Dg.test(e)?gc[e]=!0:(vc[e]=!0,!1)}function zg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Fg(e,t,n,r){if(t===null||typeof t>"u"||zg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Te(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Te(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Te(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ya=/[\-:]([a-z])/g;function Xa(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(Ya,Xa);ke[t]=new Te(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ya,Xa);ke[t]=new Te(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ya,Xa);ke[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Te(e,1,!1,e.toLowerCase(),null,!0,!0)});function Za(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Fg(t,n,o,r)&&(n=null),r||o===null?Mg(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Dt=Og.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Jo=Symbol.for("react.element"),Bn=Symbol.for("react.portal"),Un=Symbol.for("react.fragment"),eu=Symbol.for("react.strict_mode"),Pl=Symbol.for("react.profiler"),Pf=Symbol.for("react.provider"),_f=Symbol.for("react.context"),tu=Symbol.for("react.forward_ref"),_l=Symbol.for("react.suspense"),Ll=Symbol.for("react.suspense_list"),nu=Symbol.for("react.memo"),Vt=Symbol.for("react.lazy"),Lf=Symbol.for("react.offscreen"),yc=Symbol.iterator;function Ir(e){return e===null||typeof e!="object"?null:(e=yc&&e[yc]||e["@@iterator"],typeof e=="function"?e:null)}var le=Object.assign,Vs;function Gr(e){if(Vs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vs=t&&t[1]||""}return`
|
|
26
|
-
`+Vs+e}var Hs=!1;function Ws(e,t){if(!e||Hs)return"";Hs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
|
27
|
-
`),i=r.stack.split(`
|
|
28
|
-
`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
|
|
29
|
-
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Hs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function Bg(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=Ws(e.type,!1),e;case 11:return e=Ws(e.type.render,!1),e;case 1:return e=Ws(e.type,!0),e;default:return""}}function Il(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 Un:return"Fragment";case Bn:return"Portal";case Pl:return"Profiler";case eu:return"StrictMode";case _l:return"Suspense";case Ll:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _f:return(e.displayName||"Context")+".Consumer";case Pf:return(e._context.displayName||"Context")+".Provider";case tu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nu:return t=e.displayName||null,t!==null?t:Il(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return Il(e(t))}catch{}}return null}function Ug(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 Il(t);case 8:return t===eu?"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 on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function If(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vg(e){var t=If(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ko(e){e._valueTracker||(e._valueTracker=Vg(e))}function Af(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=If(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ii(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 Al(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=on(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Of(e,t){t=t.checked,t!=null&&Za(e,"checked",t,!1)}function Ol(e,t){Of(e,t);var n=on(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dl(e,t.type,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Dl(e,t,n){(t!=="number"||Ii(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qr=Array.isArray;function er(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+on(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ml(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(Qr(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:on(n)}}function Df(e,t){var n=on(t.value),r=on(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function kc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Mf(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 zl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Mf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Go,zf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Go=Go||document.createElement("div"),Go.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Go.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var eo={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},Hg=["Webkit","ms","Moz","O"];Object.keys(eo).forEach(function(e){Hg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),eo[t]=eo[e]})});function Ff(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||eo.hasOwnProperty(e)&&eo[e]?(""+t).trim():t+"px"}function Bf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ff(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Wg=le({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 Fl(e,t){if(t){if(Wg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Bl(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 Ul=null;function ru(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,tr=null,nr=null;function Cc(e){if(e=Ao(e)){if(typeof Vl!="function")throw Error(T(280));var t=e.stateNode;t&&(t=vs(t),Vl(e.stateNode,e.type,t))}}function Uf(e){tr?nr?nr.push(e):nr=[e]:tr=e}function Vf(){if(tr){var e=tr,t=nr;if(nr=tr=null,Cc(e),t)for(e=0;e<t.length;e++)Cc(t[e])}}function Hf(e,t){return e(t)}function Wf(){}var Js=!1;function Jf(e,t,n){if(Js)return e(t,n);Js=!0;try{return Hf(e,t,n)}finally{Js=!1,(tr!==null||nr!==null)&&(Wf(),Vf())}}function po(e,t){var n=e.stateNode;if(n===null)return null;var r=vs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Hl=!1;if(Lt)try{var Ar={};Object.defineProperty(Ar,"passive",{get:function(){Hl=!0}}),window.addEventListener("test",Ar,Ar),window.removeEventListener("test",Ar,Ar)}catch{Hl=!1}function Jg(e,t,n,r,o,i,s,l,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var to=!1,Ai=null,Oi=!1,Wl=null,Kg={onError:function(e){to=!0,Ai=e}};function Gg(e,t,n,r,o,i,s,l,a){to=!1,Ai=null,Jg.apply(Kg,arguments)}function Qg(e,t,n,r,o,i,s,l,a){if(Gg.apply(this,arguments),to){if(to){var c=Ai;to=!1,Ai=null}else throw Error(T(198));Oi||(Oi=!0,Wl=c)}}function In(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Kf(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 jc(e){if(In(e)!==e)throw Error(T(188))}function qg(e){var t=e.alternate;if(!t){if(t=In(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return jc(o),e;if(i===r)return jc(o),t;i=i.sibling}throw Error(T(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function Gf(e){return e=qg(e),e!==null?Qf(e):null}function Qf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qf(e);if(t!==null)return t;e=e.sibling}return null}var qf=Ke.unstable_scheduleCallback,Ec=Ke.unstable_cancelCallback,Yg=Ke.unstable_shouldYield,Xg=Ke.unstable_requestPaint,ce=Ke.unstable_now,Zg=Ke.unstable_getCurrentPriorityLevel,ou=Ke.unstable_ImmediatePriority,Yf=Ke.unstable_UserBlockingPriority,Di=Ke.unstable_NormalPriority,ey=Ke.unstable_LowPriority,Xf=Ke.unstable_IdlePriority,fs=null,jt=null;function ty(e){if(jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(fs,e,void 0,(e.current.flags&128)===128)}catch{}}var pt=Math.clz32?Math.clz32:oy,ny=Math.log,ry=Math.LN2;function oy(e){return e>>>=0,e===0?32:31-(ny(e)/ry|0)|0}var Qo=64,qo=4194304;function qr(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 Mi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=qr(l):(i&=s,i!==0&&(r=qr(i)))}else s=n&~o,s!==0?r=qr(s):i!==0&&(r=qr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pt(t),o=1<<n,r|=e[n],t&=~o;return r}function iy(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 sy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-pt(i),l=1<<s,a=o[s];a===-1?(!(l&n)||l&r)&&(o[s]=iy(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function Jl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zf(){var e=Qo;return Qo<<=1,!(Qo&4194240)&&(Qo=64),e}function Ks(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Lo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pt(t),e[t]=n}function ly(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-pt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function iu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var K=0;function ep(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var tp,su,np,rp,op,Kl=!1,Yo=[],Qt=null,qt=null,Yt=null,ho=new Map,mo=new Map,Wt=[],ay="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 bc(e,t){switch(e){case"focusin":case"focusout":Qt=null;break;case"dragenter":case"dragleave":qt=null;break;case"mouseover":case"mouseout":Yt=null;break;case"pointerover":case"pointerout":ho.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mo.delete(t.pointerId)}}function Or(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Ao(t),t!==null&&su(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function uy(e,t,n,r,o){switch(t){case"focusin":return Qt=Or(Qt,e,t,n,r,o),!0;case"dragenter":return qt=Or(qt,e,t,n,r,o),!0;case"mouseover":return Yt=Or(Yt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ho.set(i,Or(ho.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,mo.set(i,Or(mo.get(i)||null,e,t,n,r,o)),!0}return!1}function ip(e){var t=gn(e.target);if(t!==null){var n=In(t);if(n!==null){if(t=n.tag,t===13){if(t=Kf(n),t!==null){e.blockedOn=t,op(e.priority,function(){np(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ul=r,n.target.dispatchEvent(r),Ul=null}else return t=Ao(n),t!==null&&su(t),e.blockedOn=n,!1;t.shift()}return!0}function Nc(e,t,n){mi(e)&&n.delete(t)}function cy(){Kl=!1,Qt!==null&&mi(Qt)&&(Qt=null),qt!==null&&mi(qt)&&(qt=null),Yt!==null&&mi(Yt)&&(Yt=null),ho.forEach(Nc),mo.forEach(Nc)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,Kl||(Kl=!0,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,cy)))}function vo(e){function t(o){return Dr(o,e)}if(0<Yo.length){Dr(Yo[0],e);for(var n=1;n<Yo.length;n++){var r=Yo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Qt!==null&&Dr(Qt,e),qt!==null&&Dr(qt,e),Yt!==null&&Dr(Yt,e),ho.forEach(t),mo.forEach(t),n=0;n<Wt.length;n++)r=Wt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wt.length&&(n=Wt[0],n.blockedOn===null);)ip(n),n.blockedOn===null&&Wt.shift()}var rr=Dt.ReactCurrentBatchConfig,zi=!0;function dy(e,t,n,r){var o=K,i=rr.transition;rr.transition=null;try{K=1,lu(e,t,n,r)}finally{K=o,rr.transition=i}}function fy(e,t,n,r){var o=K,i=rr.transition;rr.transition=null;try{K=4,lu(e,t,n,r)}finally{K=o,rr.transition=i}}function lu(e,t,n,r){if(zi){var o=Gl(e,t,n,r);if(o===null)rl(e,t,r,Fi,n),bc(e,r);else if(uy(o,e,t,n,r))r.stopPropagation();else if(bc(e,r),t&4&&-1<ay.indexOf(e)){for(;o!==null;){var i=Ao(o);if(i!==null&&tp(i),i=Gl(e,t,n,r),i===null&&rl(e,t,r,Fi,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else rl(e,t,r,null,n)}}var Fi=null;function Gl(e,t,n,r){if(Fi=null,e=ru(r),e=gn(e),e!==null)if(t=In(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Kf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fi=e,null}function sp(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(Zg()){case ou:return 1;case Yf:return 4;case Di:case ey:return 16;case Xf:return 536870912;default:return 16}default:return 16}}var Kt=null,au=null,vi=null;function lp(){if(vi)return vi;var e,t=au,n=t.length,r,o="value"in Kt?Kt.value:Kt.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return vi=o.slice(e,1<r?1-r:void 0)}function gi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Xo(){return!0}function $c(){return!1}function Qe(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Xo:$c,this.isPropagationStopped=$c,this}return le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xo)},persist:function(){},isPersistent:Xo}),t}var br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uu=Qe(br),Io=le({},br,{view:0,detail:0}),py=Qe(Io),Gs,Qs,Mr,ps=le({},Io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cu,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!==Mr&&(Mr&&e.type==="mousemove"?(Gs=e.screenX-Mr.screenX,Qs=e.screenY-Mr.screenY):Qs=Gs=0,Mr=e),Gs)},movementY:function(e){return"movementY"in e?e.movementY:Qs}}),Rc=Qe(ps),hy=le({},ps,{dataTransfer:0}),my=Qe(hy),vy=le({},Io,{relatedTarget:0}),qs=Qe(vy),gy=le({},br,{animationName:0,elapsedTime:0,pseudoElement:0}),yy=Qe(gy),xy=le({},br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wy=Qe(xy),Sy=le({},br,{data:0}),Tc=Qe(Sy),ky={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cy={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"},jy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ey(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jy[e])?!!t[e]:!1}function cu(){return Ey}var by=le({},Io,{key:function(e){if(e.key){var t=ky[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cu,charCode:function(e){return e.type==="keypress"?gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ny=Qe(by),$y=le({},ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pc=Qe($y),Ry=le({},Io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cu}),Ty=Qe(Ry),Py=le({},br,{propertyName:0,elapsedTime:0,pseudoElement:0}),_y=Qe(Py),Ly=le({},ps,{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}),Iy=Qe(Ly),Ay=[9,13,27,32],du=Lt&&"CompositionEvent"in window,no=null;Lt&&"documentMode"in document&&(no=document.documentMode);var Oy=Lt&&"TextEvent"in window&&!no,ap=Lt&&(!du||no&&8<no&&11>=no),_c=" ",Lc=!1;function up(e,t){switch(e){case"keyup":return Ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function Dy(e,t){switch(e){case"compositionend":return cp(t);case"keypress":return t.which!==32?null:(Lc=!0,_c);case"textInput":return e=t.data,e===_c&&Lc?null:e;default:return null}}function My(e,t){if(Vn)return e==="compositionend"||!du&&up(e,t)?(e=lp(),vi=au=Kt=null,Vn=!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 ap&&t.locale!=="ko"?null:t.data;default:return null}}var zy={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 Ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zy[e.type]:t==="textarea"}function dp(e,t,n,r){Uf(r),t=Bi(t,"onChange"),0<t.length&&(n=new uu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ro=null,go=null;function Fy(e){kp(e,0)}function hs(e){var t=Jn(e);if(Af(t))return e}function By(e,t){if(e==="change")return t}var fp=!1;if(Lt){var Ys;if(Lt){var Xs="oninput"in document;if(!Xs){var Ac=document.createElement("div");Ac.setAttribute("oninput","return;"),Xs=typeof Ac.oninput=="function"}Ys=Xs}else Ys=!1;fp=Ys&&(!document.documentMode||9<document.documentMode)}function Oc(){ro&&(ro.detachEvent("onpropertychange",pp),go=ro=null)}function pp(e){if(e.propertyName==="value"&&hs(go)){var t=[];dp(t,go,e,ru(e)),Jf(Fy,t)}}function Uy(e,t,n){e==="focusin"?(Oc(),ro=t,go=n,ro.attachEvent("onpropertychange",pp)):e==="focusout"&&Oc()}function Vy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hs(go)}function Hy(e,t){if(e==="click")return hs(t)}function Wy(e,t){if(e==="input"||e==="change")return hs(t)}function Jy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Jy;function yo(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Tl.call(t,o)||!vt(e[o],t[o]))return!1}return!0}function Dc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mc(e,t){var n=Dc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Dc(n)}}function hp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mp(){for(var e=window,t=Ii();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ii(e.document)}return t}function fu(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 Ky(e){var t=mp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hp(n.ownerDocument.documentElement,n)){if(r!==null&&fu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Mc(n,i);var s=Mc(n,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(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Gy=Lt&&"documentMode"in document&&11>=document.documentMode,Hn=null,Ql=null,oo=null,ql=!1;function zc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ql||Hn==null||Hn!==Ii(r)||(r=Hn,"selectionStart"in r&&fu(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}),oo&&yo(oo,r)||(oo=r,r=Bi(Ql,"onSelect"),0<r.length&&(t=new uu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hn)))}function Zo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wn={animationend:Zo("Animation","AnimationEnd"),animationiteration:Zo("Animation","AnimationIteration"),animationstart:Zo("Animation","AnimationStart"),transitionend:Zo("Transition","TransitionEnd")},Zs={},vp={};Lt&&(vp=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function ms(e){if(Zs[e])return Zs[e];if(!Wn[e])return e;var t=Wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in vp)return Zs[e]=t[n];return e}var gp=ms("animationend"),yp=ms("animationiteration"),xp=ms("animationstart"),wp=ms("transitionend"),Sp=new Map,Fc="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 an(e,t){Sp.set(e,t),Ln(t,[e])}for(var el=0;el<Fc.length;el++){var tl=Fc[el],Qy=tl.toLowerCase(),qy=tl[0].toUpperCase()+tl.slice(1);an(Qy,"on"+qy)}an(gp,"onAnimationEnd");an(yp,"onAnimationIteration");an(xp,"onAnimationStart");an("dblclick","onDoubleClick");an("focusin","onFocus");an("focusout","onBlur");an(wp,"onTransitionEnd");fr("onMouseEnter",["mouseout","mouseover"]);fr("onMouseLeave",["mouseout","mouseover"]);fr("onPointerEnter",["pointerout","pointerover"]);fr("onPointerLeave",["pointerout","pointerover"]);Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yr="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(" "),Yy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yr));function Bc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Qg(r,t,void 0,e),e.currentTarget=null}function kp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;Bc(o,l,c),i=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,c=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;Bc(o,l,c),i=a}}}if(Oi)throw e=Wl,Oi=!1,Wl=null,e}function te(e,t){var n=t[ta];n===void 0&&(n=t[ta]=new Set);var r=e+"__bubble";n.has(r)||(Cp(t,e,2,!1),n.add(r))}function nl(e,t,n){var r=0;t&&(r|=4),Cp(n,e,r,t)}var ei="_reactListening"+Math.random().toString(36).slice(2);function xo(e){if(!e[ei]){e[ei]=!0,Tf.forEach(function(n){n!=="selectionchange"&&(Yy.has(n)||nl(n,!1,e),nl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ei]||(t[ei]=!0,nl("selectionchange",!1,t))}}function Cp(e,t,n,r){switch(sp(t)){case 1:var o=dy;break;case 4:o=fy;break;default:o=lu}n=o.bind(null,t,n,e),o=void 0,!Hl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=gn(l),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}l=l.parentNode}}r=r.return}Jf(function(){var c=i,d=ru(n),f=[];e:{var h=Sp.get(e);if(h!==void 0){var y=uu,v=e;switch(e){case"keypress":if(gi(n)===0)break e;case"keydown":case"keyup":y=Ny;break;case"focusin":v="focus",y=qs;break;case"focusout":v="blur",y=qs;break;case"beforeblur":case"afterblur":y=qs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Rc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=my;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Ty;break;case gp:case yp:case xp:y=yy;break;case wp:y=_y;break;case"scroll":y=py;break;case"wheel":y=Iy;break;case"copy":case"cut":case"paste":y=wy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Pc}var x=(t&4)!==0,k=!x&&e==="scroll",m=x?h!==null?h+"Capture":null:h;x=[];for(var p=c,g;p!==null;){g=p;var C=g.stateNode;if(g.tag===5&&C!==null&&(g=C,m!==null&&(C=po(p,m),C!=null&&x.push(wo(p,C,g)))),k)break;p=p.return}0<x.length&&(h=new y(h,v,null,n,d),f.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==Ul&&(v=n.relatedTarget||n.fromElement)&&(gn(v)||v[It]))break e;if((y||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=c,v=v?gn(v):null,v!==null&&(k=In(v),v!==k||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=c),y!==v)){if(x=Rc,C="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(x=Pc,C="onPointerLeave",m="onPointerEnter",p="pointer"),k=y==null?h:Jn(y),g=v==null?h:Jn(v),h=new x(C,p+"leave",y,n,d),h.target=k,h.relatedTarget=g,C=null,gn(d)===c&&(x=new x(m,p+"enter",v,n,d),x.target=g,x.relatedTarget=k,C=x),k=C,y&&v)t:{for(x=y,m=v,p=0,g=x;g;g=On(g))p++;for(g=0,C=m;C;C=On(C))g++;for(;0<p-g;)x=On(x),p--;for(;0<g-p;)m=On(m),g--;for(;p--;){if(x===m||m!==null&&x===m.alternate)break t;x=On(x),m=On(m)}x=null}else x=null;y!==null&&Uc(f,h,y,x,!1),v!==null&&k!==null&&Uc(f,k,v,x,!0)}}e:{if(h=c?Jn(c):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var j=By;else if(Ic(h))if(fp)j=Wy;else{j=Vy;var b=Uy}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=Hy);if(j&&(j=j(e,c))){dp(f,j,n,d);break e}b&&b(e,h,c),e==="focusout"&&(b=h._wrapperState)&&b.controlled&&h.type==="number"&&Dl(h,"number",h.value)}switch(b=c?Jn(c):window,e){case"focusin":(Ic(b)||b.contentEditable==="true")&&(Hn=b,Ql=c,oo=null);break;case"focusout":oo=Ql=Hn=null;break;case"mousedown":ql=!0;break;case"contextmenu":case"mouseup":case"dragend":ql=!1,zc(f,n,d);break;case"selectionchange":if(Gy)break;case"keydown":case"keyup":zc(f,n,d)}var $;if(du)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Vn?up(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(ap&&n.locale!=="ko"&&(Vn||R!=="onCompositionStart"?R==="onCompositionEnd"&&Vn&&($=lp()):(Kt=d,au="value"in Kt?Kt.value:Kt.textContent,Vn=!0)),b=Bi(c,R),0<b.length&&(R=new Tc(R,e,null,n,d),f.push({event:R,listeners:b}),$?R.data=$:($=cp(n),$!==null&&(R.data=$)))),($=Oy?Dy(e,n):My(e,n))&&(c=Bi(c,"onBeforeInput"),0<c.length&&(d=new Tc("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=$))}kp(f,t)})}function wo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=po(e,n),i!=null&&r.unshift(wo(e,i,o)),i=po(e,t),i!=null&&r.push(wo(e,i,o))),e=e.return}return r}function On(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Uc(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,c=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&c!==null&&(l=c,o?(a=po(n,i),a!=null&&s.unshift(wo(n,a,l))):o||(a=po(n,i),a!=null&&s.push(wo(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Xy=/\r\n?/g,Zy=/\u0000|\uFFFD/g;function Vc(e){return(typeof e=="string"?e:""+e).replace(Xy,`
|
|
30
|
-
`).replace(Zy,"")}function ti(e,t,n){if(t=Vc(t),Vc(e)!==t&&n)throw Error(T(425))}function Ui(){}var Yl=null,Xl=null;function Zl(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 ea=typeof setTimeout=="function"?setTimeout:void 0,e0=typeof clearTimeout=="function"?clearTimeout:void 0,Hc=typeof Promise=="function"?Promise:void 0,t0=typeof queueMicrotask=="function"?queueMicrotask:typeof Hc<"u"?function(e){return Hc.resolve(null).then(e).catch(n0)}:ea;function n0(e){setTimeout(function(){throw e})}function ol(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),vo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);vo(t)}function Xt(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 Wc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Nr=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Nr,So="__reactProps$"+Nr,It="__reactContainer$"+Nr,ta="__reactEvents$"+Nr,r0="__reactListeners$"+Nr,o0="__reactHandles$"+Nr;function gn(e){var t=e[Ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[It]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wc(e);e!==null;){if(n=e[Ct])return n;e=Wc(e)}return t}e=n,n=e.parentNode}return null}function Ao(e){return e=e[Ct]||e[It],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function vs(e){return e[So]||null}var na=[],Kn=-1;function un(e){return{current:e}}function re(e){0>Kn||(e.current=na[Kn],na[Kn]=null,Kn--)}function Z(e,t){Kn++,na[Kn]=e.current,e.current=t}var sn={},be=un(sn),Ae=un(!1),bn=sn;function pr(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oe(e){return e=e.childContextTypes,e!=null}function Vi(){re(Ae),re(be)}function Jc(e,t,n){if(be.current!==sn)throw Error(T(168));Z(be,t),Z(Ae,n)}function jp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,Ug(e)||"Unknown",o));return le({},n,r)}function Hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,bn=be.current,Z(be,e),Z(Ae,Ae.current),!0}function Kc(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=jp(e,t,bn),r.__reactInternalMemoizedMergedChildContext=e,re(Ae),re(be),Z(be,e)):re(Ae),Z(Ae,n)}var Rt=null,gs=!1,il=!1;function Ep(e){Rt===null?Rt=[e]:Rt.push(e)}function i0(e){gs=!0,Ep(e)}function cn(){if(!il&&Rt!==null){il=!0;var e=0,t=K;try{var n=Rt;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Rt=null,gs=!1}catch(o){throw Rt!==null&&(Rt=Rt.slice(e+1)),qf(ou,cn),o}finally{K=t,il=!1}}return null}var Gn=[],Qn=0,Wi=null,Ji=0,Ye=[],Xe=0,Nn=null,Tt=1,Pt="";function mn(e,t){Gn[Qn++]=Ji,Gn[Qn++]=Wi,Wi=e,Ji=t}function bp(e,t,n){Ye[Xe++]=Tt,Ye[Xe++]=Pt,Ye[Xe++]=Nn,Nn=e;var r=Tt;e=Pt;var o=32-pt(r)-1;r&=~(1<<o),n+=1;var i=32-pt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Tt=1<<32-pt(t)+o|n<<o|r,Pt=i+e}else Tt=1<<i|n<<o|r,Pt=e}function pu(e){e.return!==null&&(mn(e,1),bp(e,1,0))}function hu(e){for(;e===Wi;)Wi=Gn[--Qn],Gn[Qn]=null,Ji=Gn[--Qn],Gn[Qn]=null;for(;e===Nn;)Nn=Ye[--Xe],Ye[Xe]=null,Pt=Ye[--Xe],Ye[Xe]=null,Tt=Ye[--Xe],Ye[Xe]=null}var We=null,He=null,oe=!1,ft=null;function Np(e,t){var n=tt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Gc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,We=e,He=Xt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,We=e,He=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nn!==null?{id:Tt,overflow:Pt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=tt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,We=e,He=null,!0):!1;default:return!1}}function ra(e){return(e.mode&1)!==0&&(e.flags&128)===0}function oa(e){if(oe){var t=He;if(t){var n=t;if(!Gc(e,t)){if(ra(e))throw Error(T(418));t=Xt(n.nextSibling);var r=We;t&&Gc(e,t)?Np(r,n):(e.flags=e.flags&-4097|2,oe=!1,We=e)}}else{if(ra(e))throw Error(T(418));e.flags=e.flags&-4097|2,oe=!1,We=e}}}function Qc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;We=e}function ni(e){if(e!==We)return!1;if(!oe)return Qc(e),oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zl(e.type,e.memoizedProps)),t&&(t=He)){if(ra(e))throw $p(),Error(T(418));for(;t;)Np(e,t),t=Xt(t.nextSibling)}if(Qc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){He=Xt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}He=null}}else He=We?Xt(e.stateNode.nextSibling):null;return!0}function $p(){for(var e=He;e;)e=Xt(e.nextSibling)}function hr(){He=We=null,oe=!1}function mu(e){ft===null?ft=[e]:ft.push(e)}var s0=Dt.ReactCurrentBatchConfig;function zr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var l=o.refs;s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function ri(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qc(e){var t=e._init;return t(e._payload)}function Rp(e){function t(m,p){if(e){var g=m.deletions;g===null?(m.deletions=[p],m.flags|=16):g.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function o(m,p){return m=nn(m,p),m.index=0,m.sibling=null,m}function i(m,p,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<p?(m.flags|=2,p):g):(m.flags|=2,p)):(m.flags|=1048576,p)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,g,C){return p===null||p.tag!==6?(p=fl(g,m.mode,C),p.return=m,p):(p=o(p,g),p.return=m,p)}function a(m,p,g,C){var j=g.type;return j===Un?d(m,p,g.props.children,C,g.key):p!==null&&(p.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Vt&&qc(j)===p.type)?(C=o(p,g.props),C.ref=zr(m,p,g),C.return=m,C):(C=ji(g.type,g.key,g.props,null,m.mode,C),C.ref=zr(m,p,g),C.return=m,C)}function c(m,p,g,C){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=pl(g,m.mode,C),p.return=m,p):(p=o(p,g.children||[]),p.return=m,p)}function d(m,p,g,C,j){return p===null||p.tag!==7?(p=Cn(g,m.mode,C,j),p.return=m,p):(p=o(p,g),p.return=m,p)}function f(m,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=fl(""+p,m.mode,g),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Jo:return g=ji(p.type,p.key,p.props,null,m.mode,g),g.ref=zr(m,null,p),g.return=m,g;case Bn:return p=pl(p,m.mode,g),p.return=m,p;case Vt:var C=p._init;return f(m,C(p._payload),g)}if(Qr(p)||Ir(p))return p=Cn(p,m.mode,g,null),p.return=m,p;ri(m,p)}return null}function h(m,p,g,C){var j=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return j!==null?null:l(m,p,""+g,C);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Jo:return g.key===j?a(m,p,g,C):null;case Bn:return g.key===j?c(m,p,g,C):null;case Vt:return j=g._init,h(m,p,j(g._payload),C)}if(Qr(g)||Ir(g))return j!==null?null:d(m,p,g,C,null);ri(m,g)}return null}function y(m,p,g,C,j){if(typeof C=="string"&&C!==""||typeof C=="number")return m=m.get(g)||null,l(p,m,""+C,j);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Jo:return m=m.get(C.key===null?g:C.key)||null,a(p,m,C,j);case Bn:return m=m.get(C.key===null?g:C.key)||null,c(p,m,C,j);case Vt:var b=C._init;return y(m,p,g,b(C._payload),j)}if(Qr(C)||Ir(C))return m=m.get(g)||null,d(p,m,C,j,null);ri(p,C)}return null}function v(m,p,g,C){for(var j=null,b=null,$=p,R=p=0,L=null;$!==null&&R<g.length;R++){$.index>R?(L=$,$=null):L=$.sibling;var I=h(m,$,g[R],C);if(I===null){$===null&&($=L);break}e&&$&&I.alternate===null&&t(m,$),p=i(I,p,R),b===null?j=I:b.sibling=I,b=I,$=L}if(R===g.length)return n(m,$),oe&&mn(m,R),j;if($===null){for(;R<g.length;R++)$=f(m,g[R],C),$!==null&&(p=i($,p,R),b===null?j=$:b.sibling=$,b=$);return oe&&mn(m,R),j}for($=r(m,$);R<g.length;R++)L=y($,m,R,g[R],C),L!==null&&(e&&L.alternate!==null&&$.delete(L.key===null?R:L.key),p=i(L,p,R),b===null?j=L:b.sibling=L,b=L);return e&&$.forEach(function(W){return t(m,W)}),oe&&mn(m,R),j}function x(m,p,g,C){var j=Ir(g);if(typeof j!="function")throw Error(T(150));if(g=j.call(g),g==null)throw Error(T(151));for(var b=j=null,$=p,R=p=0,L=null,I=g.next();$!==null&&!I.done;R++,I=g.next()){$.index>R?(L=$,$=null):L=$.sibling;var W=h(m,$,I.value,C);if(W===null){$===null&&($=L);break}e&&$&&W.alternate===null&&t(m,$),p=i(W,p,R),b===null?j=W:b.sibling=W,b=W,$=L}if(I.done)return n(m,$),oe&&mn(m,R),j;if($===null){for(;!I.done;R++,I=g.next())I=f(m,I.value,C),I!==null&&(p=i(I,p,R),b===null?j=I:b.sibling=I,b=I);return oe&&mn(m,R),j}for($=r(m,$);!I.done;R++,I=g.next())I=y($,m,R,I.value,C),I!==null&&(e&&I.alternate!==null&&$.delete(I.key===null?R:I.key),p=i(I,p,R),b===null?j=I:b.sibling=I,b=I);return e&&$.forEach(function(F){return t(m,F)}),oe&&mn(m,R),j}function k(m,p,g,C){if(typeof g=="object"&&g!==null&&g.type===Un&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Jo:e:{for(var j=g.key,b=p;b!==null;){if(b.key===j){if(j=g.type,j===Un){if(b.tag===7){n(m,b.sibling),p=o(b,g.props.children),p.return=m,m=p;break e}}else if(b.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Vt&&qc(j)===b.type){n(m,b.sibling),p=o(b,g.props),p.ref=zr(m,b,g),p.return=m,m=p;break e}n(m,b);break}else t(m,b);b=b.sibling}g.type===Un?(p=Cn(g.props.children,m.mode,C,g.key),p.return=m,m=p):(C=ji(g.type,g.key,g.props,null,m.mode,C),C.ref=zr(m,p,g),C.return=m,m=C)}return s(m);case Bn:e:{for(b=g.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=o(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=pl(g,m.mode,C),p.return=m,m=p}return s(m);case Vt:return b=g._init,k(m,p,b(g._payload),C)}if(Qr(g))return v(m,p,g,C);if(Ir(g))return x(m,p,g,C);ri(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,g),p.return=m,m=p):(n(m,p),p=fl(g,m.mode,C),p.return=m,m=p),s(m)):n(m,p)}return k}var mr=Rp(!0),Tp=Rp(!1),Ki=un(null),Gi=null,qn=null,vu=null;function gu(){vu=qn=Gi=null}function yu(e){var t=Ki.current;re(Ki),e._currentValue=t}function ia(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function or(e,t){Gi=e,vu=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ie=!0),e.firstContext=null)}function rt(e){var t=e._currentValue;if(vu!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(Gi===null)throw Error(T(308));qn=e,Gi.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var yn=null;function xu(e){yn===null?yn=[e]:yn.push(e)}function Pp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,xu(t)):(n.next=o.next,o.next=n),t.interleaved=n,At(e,r)}function At(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ht=!1;function wu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _p(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 _t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,At(e,n)}return o=r.interleaved,o===null?(t.next=t,xu(r)):(t.next=o.next,o.next=t),r.interleaved=t,At(e,n)}function yi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iu(e,n)}}function Yc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qi(e,t,n,r){var o=e.updateQueue;Ht=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?i=c:s.next=c,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;s=0,d=c=a=null,l=i;do{var h=l.lane,y=l.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,x=l;switch(h=t,y=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){f=v.call(y,f,h);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,h=typeof v=="function"?v.call(y,f,h):v,h==null)break e;f=le({},f,h);break e;case 2:Ht=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else y={eventTime:y,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=y,a=f):d=d.next=y,s|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(a=f),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Rn|=s,e.lanes=s,e.memoizedState=f}}function Xc(e,t,n){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=n,typeof o!="function")throw Error(T(191,o));o.call(r)}}}var Oo={},Et=un(Oo),ko=un(Oo),Co=un(Oo);function xn(e){if(e===Oo)throw Error(T(174));return e}function Su(e,t){switch(Z(Co,t),Z(ko,e),Z(Et,Oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zl(t,e)}re(Et),Z(Et,t)}function vr(){re(Et),re(ko),re(Co)}function Lp(e){xn(Co.current);var t=xn(Et.current),n=zl(t,e.type);t!==n&&(Z(ko,e),Z(Et,n))}function ku(e){ko.current===e&&(re(Et),re(ko))}var ie=un(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sl=[];function Cu(){for(var e=0;e<sl.length;e++)sl[e]._workInProgressVersionPrimary=null;sl.length=0}var xi=Dt.ReactCurrentDispatcher,ll=Dt.ReactCurrentBatchConfig,$n=0,se=null,he=null,ve=null,Yi=!1,io=!1,jo=0,l0=0;function Ce(){throw Error(T(321))}function ju(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vt(e[n],t[n]))return!1;return!0}function Eu(e,t,n,r,o,i){if($n=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xi.current=e===null||e.memoizedState===null?d0:f0,e=n(r,o),io){i=0;do{if(io=!1,jo=0,25<=i)throw Error(T(301));i+=1,ve=he=null,t.updateQueue=null,xi.current=p0,e=n(r,o)}while(io)}if(xi.current=Xi,t=he!==null&&he.next!==null,$n=0,ve=he=se=null,Yi=!1,t)throw Error(T(300));return e}function bu(){var e=jo!==0;return jo=0,e}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?se.memoizedState=ve=e:ve=ve.next=e,ve}function ot(){if(he===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=ve===null?se.memoizedState:ve.next;if(t!==null)ve=t,he=e;else{if(e===null)throw Error(T(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},ve===null?se.memoizedState=ve=e:ve=ve.next=e}return ve}function Eo(e,t){return typeof t=="function"?t(e):t}function al(e){var t=ot(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=he,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=s=null,a=null,c=i;do{var d=c.lane;if(($n&d)===d)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(l=a=f,s=r):a=a.next=f,se.lanes|=d,Rn|=d}c=c.next}while(c!==null&&c!==i);a===null?s=r:a.next=l,vt(r,t.memoizedState)||(Ie=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,se.lanes|=i,Rn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ul(e){var t=ot(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);vt(i,t.memoizedState)||(Ie=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ip(){}function Ap(e,t){var n=se,r=ot(),o=t(),i=!vt(r.memoizedState,o);if(i&&(r.memoizedState=o,Ie=!0),r=r.queue,Nu(Mp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ve!==null&&ve.memoizedState.tag&1){if(n.flags|=2048,bo(9,Dp.bind(null,n,r,o,t),void 0,null),xe===null)throw Error(T(349));$n&30||Op(n,t,o)}return o}function Op(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dp(e,t,n,r){t.value=n,t.getSnapshot=r,zp(t)&&Fp(e)}function Mp(e,t,n){return n(function(){zp(t)&&Fp(e)})}function zp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vt(e,n)}catch{return!0}}function Fp(e){var t=At(e,1);t!==null&&ht(t,e,1,-1)}function Zc(e){var t=St();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:e},t.queue=e,e=e.dispatch=c0.bind(null,se,e),[t.memoizedState,e]}function bo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Bp(){return ot().memoizedState}function wi(e,t,n,r){var o=St();se.flags|=e,o.memoizedState=bo(1|t,n,void 0,r===void 0?null:r)}function ys(e,t,n,r){var o=ot();r=r===void 0?null:r;var i=void 0;if(he!==null){var s=he.memoizedState;if(i=s.destroy,r!==null&&ju(r,s.deps)){o.memoizedState=bo(t,n,i,r);return}}se.flags|=e,o.memoizedState=bo(1|t,n,i,r)}function ed(e,t){return wi(8390656,8,e,t)}function Nu(e,t){return ys(2048,8,e,t)}function Up(e,t){return ys(4,2,e,t)}function Vp(e,t){return ys(4,4,e,t)}function Hp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wp(e,t,n){return n=n!=null?n.concat([e]):null,ys(4,4,Hp.bind(null,t,e),n)}function $u(){}function Jp(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ju(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Kp(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ju(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Gp(e,t,n){return $n&21?(vt(n,t)||(n=Zf(),se.lanes|=n,Rn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ie=!0),e.memoizedState=n)}function a0(e,t){var n=K;K=n!==0&&4>n?n:4,e(!0);var r=ll.transition;ll.transition={};try{e(!1),t()}finally{K=n,ll.transition=r}}function Qp(){return ot().memoizedState}function u0(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qp(e))Yp(t,n);else if(n=Pp(e,t,n,r),n!==null){var o=$e();ht(n,e,r,o),Xp(n,t,r)}}function c0(e,t,n){var r=tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qp(e))Yp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,vt(l,s)){var a=t.interleaved;a===null?(o.next=o,xu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Pp(e,t,o,r),n!==null&&(o=$e(),ht(n,e,r,o),Xp(n,t,r))}}function qp(e){var t=e.alternate;return e===se||t!==null&&t===se}function Yp(e,t){io=Yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iu(e,n)}}var Xi={readContext:rt,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},d0={readContext:rt,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:ed,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wi(4194308,4,Hp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wi(4194308,4,e,t)},useInsertionEffect:function(e,t){return wi(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=St();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=u0.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:Zc,useDebugValue:$u,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=Zc(!1),t=e[0];return e=a0.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,o=St();if(oe){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),xe===null)throw Error(T(349));$n&30||Op(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ed(Mp.bind(null,r,i,e),[e]),r.flags|=2048,bo(9,Dp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=St(),t=xe.identifierPrefix;if(oe){var n=Pt,r=Tt;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=l0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},f0={readContext:rt,useCallback:Jp,useContext:rt,useEffect:Nu,useImperativeHandle:Wp,useInsertionEffect:Up,useLayoutEffect:Vp,useMemo:Kp,useReducer:al,useRef:Bp,useState:function(){return al(Eo)},useDebugValue:$u,useDeferredValue:function(e){var t=ot();return Gp(t,he.memoizedState,e)},useTransition:function(){var e=al(Eo)[0],t=ot().memoizedState;return[e,t]},useMutableSource:Ip,useSyncExternalStore:Ap,useId:Qp,unstable_isNewReconciler:!1},p0={readContext:rt,useCallback:Jp,useContext:rt,useEffect:Nu,useImperativeHandle:Wp,useInsertionEffect:Up,useLayoutEffect:Vp,useMemo:Kp,useReducer:ul,useRef:Bp,useState:function(){return ul(Eo)},useDebugValue:$u,useDeferredValue:function(e){var t=ot();return he===null?t.memoizedState=e:Gp(t,he.memoizedState,e)},useTransition:function(){var e=ul(Eo)[0],t=ot().memoizedState;return[e,t]},useMutableSource:Ip,useSyncExternalStore:Ap,useId:Qp,unstable_isNewReconciler:!1};function ct(e,t){if(e&&e.defaultProps){t=le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function sa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xs={isMounted:function(e){return(e=e._reactInternals)?In(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$e(),o=tn(e),i=_t(r,o);i.payload=t,n!=null&&(i.callback=n),t=Zt(e,i,o),t!==null&&(ht(t,e,o,r),yi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$e(),o=tn(e),i=_t(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Zt(e,i,o),t!==null&&(ht(t,e,o,r),yi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$e(),r=tn(e),o=_t(n,r);o.tag=2,t!=null&&(o.callback=t),t=Zt(e,o,r),t!==null&&(ht(t,e,r,n),yi(t,e,r))}};function td(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!yo(n,r)||!yo(o,i):!0}function Zp(e,t,n){var r=!1,o=sn,i=t.contextType;return typeof i=="object"&&i!==null?i=rt(i):(o=Oe(t)?bn:be.current,r=t.contextTypes,i=(r=r!=null)?pr(e,o):sn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function nd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xs.enqueueReplaceState(t,t.state,null)}function la(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},wu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=rt(i):(i=Oe(t)?bn:be.current,o.context=pr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(sa(e,t,i,n),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&&xs.enqueueReplaceState(o,o.state,null),Qi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function gr(e,t){try{var n="",r=t;do n+=Bg(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
31
|
-
Error generating stack: `+i.message+`
|
|
32
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function aa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var h0=typeof WeakMap=="function"?WeakMap:Map;function eh(e,t,n){n=_t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){es||(es=!0,ya=r),aa(e,t)},n}function th(e,t,n){n=_t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){aa(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){aa(e,t),typeof r!="function"&&(en===null?en=new Set([this]):en.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function rd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new h0;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(n)||(o.add(n),e=$0.bind(null,e,t,n),t.then(e,e))}function od(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 id(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_t(-1,1),t.tag=2,Zt(n,t,1))),n.lanes|=1),e)}var m0=Dt.ReactCurrentOwner,Ie=!1;function Ne(e,t,n,r){t.child=e===null?Tp(t,null,n,r):mr(t,e.child,n,r)}function sd(e,t,n,r,o){n=n.render;var i=t.ref;return or(t,o),r=Eu(e,t,n,r,i,o),n=bu(),e!==null&&!Ie?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ot(e,t,o)):(oe&&n&&pu(t),t.flags|=1,Ne(e,t,r,o),t.child)}function ld(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Ou(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,nh(e,t,i,r,o)):(e=ji(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:yo,n(s,r)&&e.ref===t.ref)return Ot(e,t,o)}return t.flags|=1,e=nn(i,r),e.ref=t.ref,e.return=t,t.child=e}function nh(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(yo(i,r)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ie=!0);else return t.lanes=e.lanes,Ot(e,t,o)}return ua(e,t,n,r,o)}function rh(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Z(Xn,Ve),Ve|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Z(Xn,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Z(Xn,Ve),Ve|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Z(Xn,Ve),Ve|=r;return Ne(e,t,o,n),t.child}function oh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ua(e,t,n,r,o){var i=Oe(n)?bn:be.current;return i=pr(t,i),or(t,o),n=Eu(e,t,n,r,i,o),r=bu(),e!==null&&!Ie?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ot(e,t,o)):(oe&&r&&pu(t),t.flags|=1,Ne(e,t,n,o),t.child)}function ad(e,t,n,r,o){if(Oe(n)){var i=!0;Hi(t)}else i=!1;if(or(t,o),t.stateNode===null)Si(e,t),Zp(t,n,r),la(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=rt(c):(c=Oe(n)?bn:be.current,c=pr(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==c)&&nd(t,s,r,c),Ht=!1;var h=t.memoizedState;s.state=h,Qi(t,r,s,o),a=t.memoizedState,l!==r||h!==a||Ae.current||Ht?(typeof d=="function"&&(sa(t,n,d,r),a=t.memoizedState),(l=Ht||td(t,n,l,r,h,a,c))?(f||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=a),s.props=r,s.state=a,s.context=c,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,_p(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:ct(t.type,l),s.props=c,f=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=rt(a):(a=Oe(n)?bn:be.current,a=pr(t,a));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||h!==a)&&nd(t,s,r,a),Ht=!1,h=t.memoizedState,s.state=h,Qi(t,r,s,o);var v=t.memoizedState;l!==f||h!==v||Ae.current||Ht?(typeof y=="function"&&(sa(t,n,y,r),v=t.memoizedState),(c=Ht||td(t,n,c,r,h,v,a)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=a,r=c):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ca(e,t,n,r,i,o)}function ca(e,t,n,r,o,i){oh(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Kc(t,n,!1),Ot(e,t,i);r=t.stateNode,m0.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=mr(t,e.child,null,i),t.child=mr(t,null,l,i)):Ne(e,t,l,i),t.memoizedState=r.state,o&&Kc(t,n,!0),t.child}function ih(e){var t=e.stateNode;t.pendingContext?Jc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Jc(e,t.context,!1),Su(e,t.containerInfo)}function ud(e,t,n,r,o){return hr(),mu(o),t.flags|=256,Ne(e,t,n,r),t.child}var da={dehydrated:null,treeContext:null,retryLane:0};function fa(e){return{baseLanes:e,cachePool:null,transitions:null}}function sh(e,t,n){var r=t.pendingProps,o=ie.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Z(ie,o&1),e===null)return oa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=ks(s,r,0,null),e=Cn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=fa(n),t.memoizedState=da,e):Ru(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return v0(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=nn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=nn(l,i):(i=Cn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?fa(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=da,r}return i=e.child,e=i.sibling,r=nn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ru(e,t){return t=ks({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function oi(e,t,n,r){return r!==null&&mu(r),mr(t,e.child,null,n),e=Ru(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function v0(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=cl(Error(T(422))),oi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ks({mode:"visible",children:r.children},o,0,null),i=Cn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&mr(t,e.child,null,s),t.child.memoizedState=fa(s),t.memoizedState=da,i);if(!(t.mode&1))return oi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(T(419)),r=cl(i,r,void 0),oi(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ie||l){if(r=xe,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:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,At(e,o),ht(r,e,o,-1))}return Au(),r=cl(Error(T(421))),oi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=R0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,He=Xt(o.nextSibling),We=t,oe=!0,ft=null,e!==null&&(Ye[Xe++]=Tt,Ye[Xe++]=Pt,Ye[Xe++]=Nn,Tt=e.id,Pt=e.overflow,Nn=t),t=Ru(t,r.children),t.flags|=4096,t)}function cd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ia(e.return,t,n)}function dl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function lh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ne(e,t,r.children,n),r=ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cd(e,n,t);else if(e.tag===19)cd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Z(ie,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&qi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),dl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&qi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}dl(t,!0,n,null,i);break;case"together":dl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Si(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ot(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function g0(e,t,n){switch(t.tag){case 3:ih(t),hr();break;case 5:Lp(t);break;case 1:Oe(t.type)&&Hi(t);break;case 4:Su(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Z(Ki,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Z(ie,ie.current&1),t.flags|=128,null):n&t.child.childLanes?sh(e,t,n):(Z(ie,ie.current&1),e=Ot(e,t,n),e!==null?e.sibling:null);Z(ie,ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(ie,ie.current),r)break;return null;case 22:case 23:return t.lanes=0,rh(e,t,n)}return Ot(e,t,n)}var ah,pa,uh,ch;ah=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};pa=function(){};uh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,xn(Et.current);var i=null;switch(n){case"input":o=Al(e,o),r=Al(e,r),i=[];break;case"select":o=le({},o,{value:void 0}),r=le({},r,{value:void 0}),i=[];break;case"textarea":o=Ml(e,o),r=Ml(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ui)}Fl(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(co.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var a=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==l&&(a!=null||l!=null))if(c==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(co.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&te("scroll",e),i||l===a||(i=[])):(i=i||[]).push(c,a))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};ch=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fr(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=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;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function y0(e,t,n){var r=t.pendingProps;switch(hu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return Oe(t.type)&&Vi(),je(t),null;case 3:return r=t.stateNode,vr(),re(Ae),re(be),Cu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ni(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ft!==null&&(Sa(ft),ft=null))),pa(e,t),je(t),null;case 5:ku(t);var o=xn(Co.current);if(n=t.type,e!==null&&t.stateNode!=null)uh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return je(t),null}if(e=xn(Et.current),ni(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ct]=t,r[So]=i,e=(t.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(o=0;o<Yr.length;o++)te(Yr[o],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":xc(r,i),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},te("invalid",r);break;case"textarea":Sc(r,i),te("invalid",r)}Fl(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&ti(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&ti(r.textContent,l,e),o=["children",""+l]):co.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&te("scroll",r)}switch(n){case"input":Ko(r),wc(r,i,!0);break;case"textarea":Ko(r),kc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ui)}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=Mf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ct]=t,e[So]=r,ah(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bl(n,r),n){case"dialog":te("cancel",e),te("close",e),o=r;break;case"iframe":case"object":case"embed":te("load",e),o=r;break;case"video":case"audio":for(o=0;o<Yr.length;o++)te(Yr[o],e);o=r;break;case"source":te("error",e),o=r;break;case"img":case"image":case"link":te("error",e),te("load",e),o=r;break;case"details":te("toggle",e),o=r;break;case"input":xc(e,r),o=Al(e,r),te("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=le({},r,{value:void 0}),te("invalid",e);break;case"textarea":Sc(e,r),o=Ml(e,r),te("invalid",e);break;default:o=r}Fl(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?Bf(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&zf(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&fo(e,a):typeof a=="number"&&fo(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(co.hasOwnProperty(i)?a!=null&&i==="onScroll"&&te("scroll",e):a!=null&&Za(e,i,a,s))}switch(n){case"input":Ko(e),wc(e,r,!1);break;case"textarea":Ko(e),kc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?er(e,!!r.multiple,i,!1):r.defaultValue!=null&&er(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ui)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return je(t),null;case 6:if(e&&t.stateNode!=null)ch(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=xn(Co.current),xn(Et.current),ni(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ct]=t,(i=r.nodeValue!==n)&&(e=We,e!==null))switch(e.tag){case 3:ti(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ti(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ct]=t,t.stateNode=r}return je(t),null;case 13:if(re(ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(oe&&He!==null&&t.mode&1&&!(t.flags&128))$p(),hr(),t.flags|=98560,i=!1;else if(i=ni(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[Ct]=t}else hr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;je(t),i=!1}else ft!==null&&(Sa(ft),ft=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ie.current&1?me===0&&(me=3):Au())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return vr(),pa(e,t),e===null&&xo(t.stateNode.containerInfo),je(t),null;case 10:return yu(t.type._context),je(t),null;case 17:return Oe(t.type)&&Vi(),je(t),null;case 19:if(re(ie),i=t.memoizedState,i===null)return je(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Fr(i,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=qi(e),s!==null){for(t.flags|=128,Fr(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Z(ie,ie.current&1|2),t.child}e=e.sibling}i.tail!==null&&ce()>yr&&(t.flags|=128,r=!0,Fr(i,!1),t.lanes=4194304)}else{if(!r)if(e=qi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!oe)return je(t),null}else 2*ce()-i.renderingStartTime>yr&&n!==1073741824&&(t.flags|=128,r=!0,Fr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ce(),t.sibling=null,n=ie.current,Z(ie,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Iu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function x0(e,t){switch(hu(t),t.tag){case 1:return Oe(t.type)&&Vi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vr(),re(Ae),re(be),Cu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ku(t),null;case 13:if(re(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(ie),null;case 4:return vr(),null;case 10:return yu(t.type._context),null;case 22:case 23:return Iu(),null;case 24:return null;default:return null}}var ii=!1,Ee=!1,w0=typeof WeakSet=="function"?WeakSet:Set,_=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function ha(e,t,n){try{n()}catch(r){ue(e,t,r)}}var dd=!1;function S0(e,t){if(Yl=zi,e=mp(),fu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(y=f.firstChild)!==null;)h=f,f=y;for(;;){if(f===e)break t;if(h===n&&++c===o&&(l=s),h===i&&++d===r&&(a=s),(y=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xl={focusedElem:e,selectionRange:n},zi=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,k=v.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:ct(t.type,x),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(C){ue(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return v=dd,dd=!1,v}function so(e,t,n){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 i=o.destroy;o.destroy=void 0,i!==void 0&&ha(t,n,i)}o=o.next}while(o!==r)}}function ws(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ma(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dh(e){var t=e.alternate;t!==null&&(e.alternate=null,dh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ct],delete t[So],delete t[ta],delete t[r0],delete t[o0])),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 fh(e){return e.tag===5||e.tag===3||e.tag===4}function fd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function va(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ui));else if(r!==4&&(e=e.child,e!==null))for(va(e,t,n),e=e.sibling;e!==null;)va(e,t,n),e=e.sibling}function ga(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ga(e,t,n),e=e.sibling;e!==null;)ga(e,t,n),e=e.sibling}var we=null,dt=!1;function Ft(e,t,n){for(n=n.child;n!==null;)ph(e,t,n),n=n.sibling}function ph(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(fs,n)}catch{}switch(n.tag){case 5:Ee||Yn(n,t);case 6:var r=we,o=dt;we=null,Ft(e,t,n),we=r,dt=o,we!==null&&(dt?(e=we,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):we.removeChild(n.stateNode));break;case 18:we!==null&&(dt?(e=we,n=n.stateNode,e.nodeType===8?ol(e.parentNode,n):e.nodeType===1&&ol(e,n),vo(e)):ol(we,n.stateNode));break;case 4:r=we,o=dt,we=n.stateNode.containerInfo,dt=!0,Ft(e,t,n),we=r,dt=o;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ha(n,t,s),o=o.next}while(o!==r)}Ft(e,t,n);break;case 1:if(!Ee&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ue(n,t,l)}Ft(e,t,n);break;case 21:Ft(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,Ft(e,t,n),Ee=r):Ft(e,t,n);break;default:Ft(e,t,n)}}function pd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new w0),t.forEach(function(r){var o=T0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:we=l.stateNode,dt=!1;break e;case 3:we=l.stateNode.containerInfo,dt=!0;break e;case 4:we=l.stateNode.containerInfo,dt=!0;break e}l=l.return}if(we===null)throw Error(T(160));ph(i,s,o),we=null,dt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){ue(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)hh(t,e),t=t.sibling}function hh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ut(t,e),xt(e),r&4){try{so(3,e,e.return),ws(3,e)}catch(x){ue(e,e.return,x)}try{so(5,e,e.return)}catch(x){ue(e,e.return,x)}}break;case 1:ut(t,e),xt(e),r&512&&n!==null&&Yn(n,n.return);break;case 5:if(ut(t,e),xt(e),r&512&&n!==null&&Yn(n,n.return),e.flags&32){var o=e.stateNode;try{fo(o,"")}catch(x){ue(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Of(o,i),Bl(l,s);var c=Bl(l,i);for(s=0;s<a.length;s+=2){var d=a[s],f=a[s+1];d==="style"?Bf(o,f):d==="dangerouslySetInnerHTML"?zf(o,f):d==="children"?fo(o,f):Za(o,d,f,c)}switch(l){case"input":Ol(o,i);break;case"textarea":Df(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?er(o,!!i.multiple,y,!1):h!==!!i.multiple&&(i.defaultValue!=null?er(o,!!i.multiple,i.defaultValue,!0):er(o,!!i.multiple,i.multiple?[]:"",!1))}o[So]=i}catch(x){ue(e,e.return,x)}}break;case 6:if(ut(t,e),xt(e),r&4){if(e.stateNode===null)throw Error(T(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(x){ue(e,e.return,x)}}break;case 3:if(ut(t,e),xt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{vo(t.containerInfo)}catch(x){ue(e,e.return,x)}break;case 4:ut(t,e),xt(e);break;case 13:ut(t,e),xt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(_u=ce())),r&4&&pd(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ee=(c=Ee)||d,ut(t,e),Ee=c):ut(t,e),xt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(_=e,d=e.child;d!==null;){for(f=_=d;_!==null;){switch(h=_,y=h.child,h.tag){case 0:case 11:case 14:case 15:so(4,h,h.return);break;case 1:Yn(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){ue(r,n,x)}}break;case 5:Yn(h,h.return);break;case 22:if(h.memoizedState!==null){md(f);continue}}y!==null?(y.return=h,_=y):md(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Ff("display",s))}catch(x){ue(e,e.return,x)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(x){ue(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ut(t,e),xt(e),r&4&&pd(e);break;case 21:break;default:ut(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(fh(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(fo(o,""),r.flags&=-33);var i=fd(e);ga(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=fd(e);va(e,l,s);break;default:throw Error(T(161))}}catch(a){ue(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function k0(e,t,n){_=e,mh(e)}function mh(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var o=_,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||ii;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Ee;l=ii;var c=Ee;if(ii=s,(Ee=a)&&!c)for(_=o;_!==null;)s=_,a=s.child,s.tag===22&&s.memoizedState!==null?vd(o):a!==null?(a.return=s,_=a):vd(o);for(;i!==null;)_=i,mh(i),i=i.sibling;_=o,ii=l,Ee=c}hd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,_=i):hd(e)}}function hd(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ee||ws(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ee)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ct(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Xc(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Xc(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&vo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Ee||t.flags&512&&ma(t)}catch(h){ue(t,t.return,h)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function md(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function vd(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ws(4,t)}catch(a){ue(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){ue(t,o,a)}}var i=t.return;try{ma(t)}catch(a){ue(t,i,a)}break;case 5:var s=t.return;try{ma(t)}catch(a){ue(t,s,a)}}}catch(a){ue(t,t.return,a)}if(t===e){_=null;break}var l=t.sibling;if(l!==null){l.return=t.return,_=l;break}_=t.return}}var C0=Math.ceil,Zi=Dt.ReactCurrentDispatcher,Tu=Dt.ReactCurrentOwner,nt=Dt.ReactCurrentBatchConfig,H=0,xe=null,pe=null,Se=0,Ve=0,Xn=un(0),me=0,No=null,Rn=0,Ss=0,Pu=0,lo=null,_e=null,_u=0,yr=1/0,Nt=null,es=!1,ya=null,en=null,si=!1,Gt=null,ts=0,ao=0,xa=null,ki=-1,Ci=0;function $e(){return H&6?ce():ki!==-1?ki:ki=ce()}function tn(e){return e.mode&1?H&2&&Se!==0?Se&-Se:s0.transition!==null?(Ci===0&&(Ci=Zf()),Ci):(e=K,e!==0||(e=window.event,e=e===void 0?16:sp(e.type)),e):1}function ht(e,t,n,r){if(50<ao)throw ao=0,xa=null,Error(T(185));Lo(e,n,r),(!(H&2)||e!==xe)&&(e===xe&&(!(H&2)&&(Ss|=n),me===4&&Jt(e,Se)),De(e,r),n===1&&H===0&&!(t.mode&1)&&(yr=ce()+500,gs&&cn()))}function De(e,t){var n=e.callbackNode;sy(e,t);var r=Mi(e,e===xe?Se:0);if(r===0)n!==null&&Ec(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ec(n),t===1)e.tag===0?i0(gd.bind(null,e)):Ep(gd.bind(null,e)),t0(function(){!(H&6)&&cn()}),n=null;else{switch(ep(r)){case 1:n=ou;break;case 4:n=Yf;break;case 16:n=Di;break;case 536870912:n=Xf;break;default:n=Di}n=Ch(n,vh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vh(e,t){if(ki=-1,Ci=0,H&6)throw Error(T(327));var n=e.callbackNode;if(ir()&&e.callbackNode!==n)return null;var r=Mi(e,e===xe?Se:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ns(e,r);else{t=r;var o=H;H|=2;var i=yh();(xe!==e||Se!==t)&&(Nt=null,yr=ce()+500,kn(e,t));do try{b0();break}catch(l){gh(e,l)}while(!0);gu(),Zi.current=i,H=o,pe!==null?t=0:(xe=null,Se=0,t=me)}if(t!==0){if(t===2&&(o=Jl(e),o!==0&&(r=o,t=wa(e,o))),t===1)throw n=No,kn(e,0),Jt(e,r),De(e,ce()),n;if(t===6)Jt(e,r);else{if(o=e.current.alternate,!(r&30)&&!j0(o)&&(t=ns(e,r),t===2&&(i=Jl(e),i!==0&&(r=i,t=wa(e,i))),t===1))throw n=No,kn(e,0),Jt(e,r),De(e,ce()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:vn(e,_e,Nt);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=_u+500-ce(),10<t)){if(Mi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){$e(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ea(vn.bind(null,e,_e,Nt),t);break}vn(e,_e,Nt);break;case 4:if(Jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-pt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*C0(r/1960))-r,10<r){e.timeoutHandle=ea(vn.bind(null,e,_e,Nt),r);break}vn(e,_e,Nt);break;case 5:vn(e,_e,Nt);break;default:throw Error(T(329))}}}return De(e,ce()),e.callbackNode===n?vh.bind(null,e):null}function wa(e,t){var n=lo;return e.current.memoizedState.isDehydrated&&(kn(e,t).flags|=256),e=ns(e,t),e!==2&&(t=_e,_e=n,t!==null&&Sa(t)),e}function Sa(e){_e===null?_e=e:_e.push.apply(_e,e)}function j0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!vt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jt(e,t){for(t&=~Pu,t&=~Ss,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pt(t),r=1<<n;e[n]=-1,t&=~r}}function gd(e){if(H&6)throw Error(T(327));ir();var t=Mi(e,0);if(!(t&1))return De(e,ce()),null;var n=ns(e,t);if(e.tag!==0&&n===2){var r=Jl(e);r!==0&&(t=r,n=wa(e,r))}if(n===1)throw n=No,kn(e,0),Jt(e,t),De(e,ce()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vn(e,_e,Nt),De(e,ce()),null}function Lu(e,t){var n=H;H|=1;try{return e(t)}finally{H=n,H===0&&(yr=ce()+500,gs&&cn())}}function Tn(e){Gt!==null&&Gt.tag===0&&!(H&6)&&ir();var t=H;H|=1;var n=nt.transition,r=K;try{if(nt.transition=null,K=1,e)return e()}finally{K=r,nt.transition=n,H=t,!(H&6)&&cn()}}function Iu(){Ve=Xn.current,re(Xn)}function kn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,e0(n)),pe!==null)for(n=pe.return;n!==null;){var r=n;switch(hu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vi();break;case 3:vr(),re(Ae),re(be),Cu();break;case 5:ku(r);break;case 4:vr();break;case 13:re(ie);break;case 19:re(ie);break;case 10:yu(r.type._context);break;case 22:case 23:Iu()}n=n.return}if(xe=e,pe=e=nn(e.current,null),Se=Ve=t,me=0,No=null,Pu=Ss=Rn=0,_e=lo=null,yn!==null){for(t=0;t<yn.length;t++)if(n=yn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}yn=null}return e}function gh(e,t){do{var n=pe;try{if(gu(),xi.current=Xi,Yi){for(var r=se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Yi=!1}if($n=0,ve=he=se=null,io=!1,jo=0,Tu.current=null,n===null||n.return===null){me=1,No=t,pe=null;break}e:{var i=e,s=n.return,l=n,a=t;if(t=Se,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=od(s);if(y!==null){y.flags&=-257,id(y,s,l,i,t),y.mode&1&&rd(i,c,t),t=y,a=c;var v=t.updateQueue;if(v===null){var x=new Set;x.add(a),t.updateQueue=x}else v.add(a);break e}else{if(!(t&1)){rd(i,c,t),Au();break e}a=Error(T(426))}}else if(oe&&l.mode&1){var k=od(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),id(k,s,l,i,t),mu(gr(a,l));break e}}i=a=gr(a,l),me!==4&&(me=2),lo===null?lo=[i]:lo.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=eh(i,a,t);Yc(i,m);break e;case 1:l=a;var p=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(en===null||!en.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=th(i,l,t);Yc(i,C);break e}}i=i.return}while(i!==null)}wh(n)}catch(j){t=j,pe===n&&n!==null&&(pe=n=n.return);continue}break}while(!0)}function yh(){var e=Zi.current;return Zi.current=Xi,e===null?Xi:e}function Au(){(me===0||me===3||me===2)&&(me=4),xe===null||!(Rn&268435455)&&!(Ss&268435455)||Jt(xe,Se)}function ns(e,t){var n=H;H|=2;var r=yh();(xe!==e||Se!==t)&&(Nt=null,kn(e,t));do try{E0();break}catch(o){gh(e,o)}while(!0);if(gu(),H=n,Zi.current=r,pe!==null)throw Error(T(261));return xe=null,Se=0,me}function E0(){for(;pe!==null;)xh(pe)}function b0(){for(;pe!==null&&!Yg();)xh(pe)}function xh(e){var t=kh(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?wh(e):pe=t,Tu.current=null}function wh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=x0(n,t),n!==null){n.flags&=32767,pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,pe=null;return}}else if(n=y0(n,t,Ve),n!==null){pe=n;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);me===0&&(me=5)}function vn(e,t,n){var r=K,o=nt.transition;try{nt.transition=null,K=1,N0(e,t,n,r)}finally{nt.transition=o,K=r}return null}function N0(e,t,n,r){do ir();while(Gt!==null);if(H&6)throw Error(T(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(ly(e,i),e===xe&&(pe=xe=null,Se=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||si||(si=!0,Ch(Di,function(){return ir(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=nt.transition,nt.transition=null;var s=K;K=1;var l=H;H|=4,Tu.current=null,S0(e,n),hh(n,e),Ky(Xl),zi=!!Yl,Xl=Yl=null,e.current=n,k0(n),Xg(),H=l,K=s,nt.transition=i}else e.current=n;if(si&&(si=!1,Gt=e,ts=o),i=e.pendingLanes,i===0&&(en=null),ty(n.stateNode),De(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(es)throw es=!1,e=ya,ya=null,e;return ts&1&&e.tag!==0&&ir(),i=e.pendingLanes,i&1?e===xa?ao++:(ao=0,xa=e):ao=0,cn(),null}function ir(){if(Gt!==null){var e=ep(ts),t=nt.transition,n=K;try{if(nt.transition=null,K=16>e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,ts=0,H&6)throw Error(T(331));var o=H;for(H|=4,_=e.current;_!==null;){var i=_,s=i.child;if(_.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var c=l[a];for(_=c;_!==null;){var d=_;switch(d.tag){case 0:case 11:case 15:so(8,d,i)}var f=d.child;if(f!==null)f.return=d,_=f;else for(;_!==null;){d=_;var h=d.sibling,y=d.return;if(dh(d),d===c){_=null;break}if(h!==null){h.return=y,_=h;break}_=y}}}var v=i.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var k=x.sibling;x.sibling=null,x=k}while(x!==null)}}_=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,_=s;else e:for(;_!==null;){if(i=_,i.flags&2048)switch(i.tag){case 0:case 11:case 15:so(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,_=m;break e}_=i.return}}var p=e.current;for(_=p;_!==null;){s=_;var g=s.child;if(s.subtreeFlags&2064&&g!==null)g.return=s,_=g;else e:for(s=p;_!==null;){if(l=_,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ws(9,l)}}catch(j){ue(l,l.return,j)}if(l===s){_=null;break e}var C=l.sibling;if(C!==null){C.return=l.return,_=C;break e}_=l.return}}if(H=o,cn(),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(fs,e)}catch{}r=!0}return r}finally{K=n,nt.transition=t}}return!1}function yd(e,t,n){t=gr(n,t),t=eh(e,t,1),e=Zt(e,t,1),t=$e(),e!==null&&(Lo(e,1,t),De(e,t))}function ue(e,t,n){if(e.tag===3)yd(e,e,n);else for(;t!==null;){if(t.tag===3){yd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(en===null||!en.has(r))){e=gr(n,e),e=th(t,e,1),t=Zt(t,e,1),e=$e(),t!==null&&(Lo(t,1,e),De(t,e));break}}t=t.return}}function $0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=$e(),e.pingedLanes|=e.suspendedLanes&n,xe===e&&(Se&n)===n&&(me===4||me===3&&(Se&130023424)===Se&&500>ce()-_u?kn(e,0):Pu|=n),De(e,t)}function Sh(e,t){t===0&&(e.mode&1?(t=qo,qo<<=1,!(qo&130023424)&&(qo=4194304)):t=1);var n=$e();e=At(e,t),e!==null&&(Lo(e,t,n),De(e,n))}function R0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sh(e,n)}function T0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Sh(e,n)}var kh;kh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)Ie=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ie=!1,g0(e,t,n);Ie=!!(e.flags&131072)}else Ie=!1,oe&&t.flags&1048576&&bp(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Si(e,t),e=t.pendingProps;var o=pr(t,be.current);or(t,n),o=Eu(null,t,r,e,o,n);var i=bu();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,Oe(r)?(i=!0,Hi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,wu(t),o.updater=xs,t.stateNode=o,o._reactInternals=t,la(t,r,e,n),t=ca(null,t,r,!0,i,n)):(t.tag=0,oe&&i&&pu(t),Ne(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Si(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=_0(r),e=ct(r,e),o){case 0:t=ua(null,t,r,e,n);break e;case 1:t=ad(null,t,r,e,n);break e;case 11:t=sd(null,t,r,e,n);break e;case 14:t=ld(null,t,r,ct(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),ua(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),ad(e,t,r,o,n);case 3:e:{if(ih(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,o=i.element,_p(e,t),Qi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=gr(Error(T(423)),t),t=ud(e,t,r,n,o);break e}else if(r!==o){o=gr(Error(T(424)),t),t=ud(e,t,r,n,o);break e}else for(He=Xt(t.stateNode.containerInfo.firstChild),We=t,oe=!0,ft=null,n=Tp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hr(),r===o){t=Ot(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return Lp(t),e===null&&oa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Zl(r,o)?s=null:i!==null&&Zl(r,i)&&(t.flags|=32),oh(e,t),Ne(e,t,s,n),t.child;case 6:return e===null&&oa(t),null;case 13:return sh(e,t,n);case 4:return Su(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mr(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),sd(e,t,r,o,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Z(Ki,r._currentValue),r._currentValue=s,i!==null)if(vt(i.value,s)){if(i.children===o.children&&!Ae.current){t=Ot(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=_t(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ia(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(T(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ia(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ne(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,or(t,n),o=rt(o),r=r(o),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,o=ct(r,t.pendingProps),o=ct(r.type,o),ld(e,t,r,o,n);case 15:return nh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),Si(e,t),t.tag=1,Oe(r)?(e=!0,Hi(t)):e=!1,or(t,n),Zp(t,r,o),la(t,r,o,n),ca(null,t,r,!0,e,n);case 19:return lh(e,t,n);case 22:return rh(e,t,n)}throw Error(T(156,t.tag))};function Ch(e,t){return qf(e,t)}function P0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tt(e,t,n,r){return new P0(e,t,n,r)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _0(e){if(typeof e=="function")return Ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tu)return 11;if(e===nu)return 14}return 2}function nn(e,t){var n=e.alternate;return n===null?(n=tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ji(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Ou(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Un:return Cn(n.children,o,i,t);case eu:s=8,o|=8;break;case Pl:return e=tt(12,n,t,o|2),e.elementType=Pl,e.lanes=i,e;case _l:return e=tt(13,n,t,o),e.elementType=_l,e.lanes=i,e;case Ll:return e=tt(19,n,t,o),e.elementType=Ll,e.lanes=i,e;case Lf:return ks(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pf:s=10;break e;case _f:s=9;break e;case tu:s=11;break e;case nu:s=14;break e;case Vt:s=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=tt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Cn(e,t,n,r){return e=tt(7,e,r,t),e.lanes=n,e}function ks(e,t,n,r){return e=tt(22,e,r,t),e.elementType=Lf,e.lanes=n,e.stateNode={isHidden:!1},e}function fl(e,t,n){return e=tt(6,e,null,t),e.lanes=n,e}function pl(e,t,n){return t=tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function L0(e,t,n,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=Ks(0),this.expirationTimes=Ks(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ks(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Du(e,t,n,r,o,i,s,l,a){return e=new L0(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=tt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wu(i),e}function I0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function jh(e){if(!e)return sn;e=e._reactInternals;e:{if(In(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Oe(n))return jp(e,n,t)}return t}function Eh(e,t,n,r,o,i,s,l,a){return e=Du(n,r,!0,e,o,i,s,l,a),e.context=jh(null),n=e.current,r=$e(),o=tn(n),i=_t(r,o),i.callback=t??null,Zt(n,i,o),e.current.lanes=o,Lo(e,o,r),De(e,r),e}function Cs(e,t,n,r){var o=t.current,i=$e(),s=tn(o);return n=jh(n),t.context===null?t.context=n:t.pendingContext=n,t=_t(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zt(o,t,s),e!==null&&(ht(e,o,s,i),yi(e,o,s)),s}function rs(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 xd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Mu(e,t){xd(e,t),(e=e.alternate)&&xd(e,t)}function A0(){return null}var bh=typeof reportError=="function"?reportError:function(e){console.error(e)};function zu(e){this._internalRoot=e}js.prototype.render=zu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Cs(e,t,null,null)};js.prototype.unmount=zu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tn(function(){Cs(null,e,null,null)}),t[It]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=rp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wt.length&&t!==0&&t<Wt[n].priority;n++);Wt.splice(n,0,e),n===0&&ip(e)}};function Fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Es(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wd(){}function O0(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=rs(s);i.call(c)}}var s=Eh(t,r,e,0,null,!1,!1,"",wd);return e._reactRootContainer=s,e[It]=s.current,xo(e.nodeType===8?e.parentNode:e),Tn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var c=rs(a);l.call(c)}}var a=Du(e,0,!1,null,null,!1,!1,"",wd);return e._reactRootContainer=a,e[It]=a.current,xo(e.nodeType===8?e.parentNode:e),Tn(function(){Cs(t,a,n,r)}),a}function bs(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=rs(s);l.call(a)}}Cs(t,s,e,o)}else s=O0(n,t,e,o,r);return rs(s)}tp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=qr(t.pendingLanes);n!==0&&(iu(t,n|1),De(t,ce()),!(H&6)&&(yr=ce()+500,cn()))}break;case 13:Tn(function(){var r=At(e,1);if(r!==null){var o=$e();ht(r,e,1,o)}}),Mu(e,1)}};su=function(e){if(e.tag===13){var t=At(e,134217728);if(t!==null){var n=$e();ht(t,e,134217728,n)}Mu(e,134217728)}};np=function(e){if(e.tag===13){var t=tn(e),n=At(e,t);if(n!==null){var r=$e();ht(n,e,t,r)}Mu(e,t)}};rp=function(){return K};op=function(e,t){var n=K;try{return K=e,t()}finally{K=n}};Vl=function(e,t,n){switch(t){case"input":if(Ol(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=vs(r);if(!o)throw Error(T(90));Af(r),Ol(r,o)}}}break;case"textarea":Df(e,n);break;case"select":t=n.value,t!=null&&er(e,!!n.multiple,t,!1)}};Hf=Lu;Wf=Tn;var D0={usingClientEntryPoint:!1,Events:[Ao,Jn,vs,Uf,Vf,Lu]},Br={findFiberByHostInstance:gn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},M0={bundleType:Br.bundleType,version:Br.version,rendererPackageName:Br.rendererPackageName,rendererConfig:Br.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Gf(e),e===null?null:e.stateNode},findFiberByHostInstance:Br.findFiberByHostInstance||A0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var li=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!li.isDisabled&&li.supportsFiber)try{fs=li.inject(M0),jt=li}catch{}}Ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D0;Ge.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fu(t))throw Error(T(200));return I0(e,t,null,n)};Ge.createRoot=function(e,t){if(!Fu(e))throw Error(T(299));var n=!1,r="",o=bh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Du(e,1,!1,null,null,n,!1,r,o),e[It]=t.current,xo(e.nodeType===8?e.parentNode:e),new zu(t)};Ge.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(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=Gf(t),e=e===null?null:e.stateNode,e};Ge.flushSync=function(e){return Tn(e)};Ge.hydrate=function(e,t,n){if(!Es(t))throw Error(T(200));return bs(null,e,t,!0,n)};Ge.hydrateRoot=function(e,t,n){if(!Fu(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=bh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Eh(t,null,e,1,n??null,o,!1,i,s),e[It]=t.current,xo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new js(t)};Ge.render=function(e,t,n){if(!Es(t))throw Error(T(200));return bs(null,e,t,!1,n)};Ge.unmountComponentAtNode=function(e){if(!Es(e))throw Error(T(40));return e._reactRootContainer?(Tn(function(){bs(null,null,e,!1,function(){e._reactRootContainer=null,e[It]=null})}),!0):!1};Ge.unstable_batchedUpdates=Lu;Ge.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Es(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return bs(e,t,n,!1,r)};Ge.version="18.3.1-next-f1338f8080-20240426";function Nh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nh)}catch(e){console.error(e)}}Nh(),Nf.exports=Ge;var z0=Nf.exports,$h,Sd=z0;$h=Sd.createRoot,Sd.hydrateRoot;var Rh={exports:{}},Ns={};/**
|
|
33
|
-
* @license React
|
|
34
|
-
* react-jsx-runtime.production.min.js
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the MIT license found in the
|
|
39
|
-
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/var F0=S,B0=Symbol.for("react.element"),U0=Symbol.for("react.fragment"),V0=Object.prototype.hasOwnProperty,H0=F0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W0={key:!0,ref:!0,__self:!0,__source:!0};function Th(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)V0.call(t,r)&&!W0.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:B0,type:e,key:i,ref:s,props:o,_owner:H0.current}}Ns.Fragment=U0;Ns.jsx=Th;Ns.jsxs=Th;Rh.exports=Ns;var u=Rh.exports,ye=function(){return ye=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ye.apply(this,arguments)};function xr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ne="-ms-",uo="-moz-",J="-webkit-",Ph="comm",$s="rule",Bu="decl",J0="@import",_h="@keyframes",K0="@layer",Lh=Math.abs,Uu=String.fromCharCode,ka=Object.assign;function G0(e,t){return ge(e,0)^45?(((t<<2^ge(e,0))<<2^ge(e,1))<<2^ge(e,2))<<2^ge(e,3):0}function Ih(e){return e.trim()}function $t(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,n){return e.replace(t,n)}function Ei(e,t,n){return e.indexOf(t,n)}function ge(e,t){return e.charCodeAt(t)|0}function wr(e,t,n){return e.slice(t,n)}function kt(e){return e.length}function Ah(e){return e.length}function Xr(e,t){return t.push(e),e}function Q0(e,t){return e.map(t).join("")}function kd(e,t){return e.filter(function(n){return!$t(n,t)})}var Rs=1,Sr=1,Oh=0,it=0,fe=0,$r="";function Ts(e,t,n,r,o,i,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Rs,column:Sr,length:s,return:"",siblings:l}}function Ut(e,t){return ka(Ts("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Dn(e){for(;e.root;)e=Ut(e.root,{children:[e]});Xr(e,e.siblings)}function q0(){return fe}function Y0(){return fe=it>0?ge($r,--it):0,Sr--,fe===10&&(Sr=1,Rs--),fe}function mt(){return fe=it<Oh?ge($r,it++):0,Sr++,fe===10&&(Sr=1,Rs++),fe}function jn(){return ge($r,it)}function bi(){return it}function Ps(e,t){return wr($r,e,t)}function Ca(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function X0(e){return Rs=Sr=1,Oh=kt($r=e),it=0,[]}function Z0(e){return $r="",e}function hl(e){return Ih(Ps(it-1,ja(e===91?e+2:e===40?e+1:e)))}function ex(e){for(;(fe=jn())&&fe<33;)mt();return Ca(e)>2||Ca(fe)>3?"":" "}function tx(e,t){for(;--t&&mt()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return Ps(e,bi()+(t<6&&jn()==32&&mt()==32))}function ja(e){for(;mt();)switch(fe){case e:return it;case 34:case 39:e!==34&&e!==39&&ja(fe);break;case 40:e===41&&ja(e);break;case 92:mt();break}return it}function nx(e,t){for(;mt()&&e+fe!==57;)if(e+fe===84&&jn()===47)break;return"/*"+Ps(t,it-1)+"*"+Uu(e===47?e:mt())}function rx(e){for(;!Ca(jn());)mt();return Ps(e,it)}function ox(e){return Z0(Ni("",null,null,null,[""],e=X0(e),0,[0],e))}function Ni(e,t,n,r,o,i,s,l,a){for(var c=0,d=0,f=s,h=0,y=0,v=0,x=1,k=1,m=1,p=0,g="",C=o,j=i,b=r,$=g;k;)switch(v=p,p=mt()){case 40:if(v!=108&&ge($,f-1)==58){Ei($+=z(hl(p),"&","&\f"),"&\f",Lh(c?l[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:$+=hl(p);break;case 9:case 10:case 13:case 32:$+=ex(v);break;case 92:$+=tx(bi()-1,7);continue;case 47:switch(jn()){case 42:case 47:Xr(ix(nx(mt(),bi()),t,n,a),a);break;default:$+="/"}break;case 123*x:l[c++]=kt($)*m;case 125*x:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+d:m==-1&&($=z($,/\f/g,"")),y>0&&kt($)-f&&Xr(y>32?jd($+";",r,n,f-1,a):jd(z($," ","")+";",r,n,f-2,a),a);break;case 59:$+=";";default:if(Xr(b=Cd($,t,n,c,d,o,l,g,C=[],j=[],f,i),i),p===123)if(d===0)Ni($,t,b,b,C,i,f,l,j);else switch(h===99&&ge($,3)===110?100:h){case 100:case 108:case 109:case 115:Ni(e,b,b,r&&Xr(Cd(e,b,b,0,0,o,l,g,o,C=[],f,j),j),o,j,f,l,r?C:j);break;default:Ni($,b,b,b,[""],j,0,l,j)}}c=d=y=0,x=m=1,g=$="",f=s;break;case 58:f=1+kt($),y=v;default:if(x<1){if(p==123)--x;else if(p==125&&x++==0&&Y0()==125)continue}switch($+=Uu(p),p*x){case 38:m=d>0?1:($+="\f",-1);break;case 44:l[c++]=(kt($)-1)*m,m=1;break;case 64:jn()===45&&($+=hl(mt())),h=jn(),d=f=kt(g=$+=rx(bi())),p++;break;case 45:v===45&&kt($)==2&&(x=0)}}return i}function Cd(e,t,n,r,o,i,s,l,a,c,d,f){for(var h=o-1,y=o===0?i:[""],v=Ah(y),x=0,k=0,m=0;x<r;++x)for(var p=0,g=wr(e,h+1,h=Lh(k=s[x])),C=e;p<v;++p)(C=Ih(k>0?y[p]+" "+g:z(g,/&\f/g,y[p])))&&(a[m++]=C);return Ts(e,t,n,o===0?$s:l,a,c,d,f)}function ix(e,t,n,r){return Ts(e,t,n,Ph,Uu(q0()),wr(e,2,-2),0,r)}function jd(e,t,n,r,o){return Ts(e,t,n,Bu,wr(e,0,r),wr(e,r+1,-1),r,o)}function Dh(e,t,n){switch(G0(e,t)){case 5103:return J+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return J+e+e;case 4789:return uo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+uo+e+ne+e+e;case 5936:switch(ge(e,t+11)){case 114:return J+e+ne+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+ne+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+ne+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return J+e+ne+e+e;case 6165:return J+e+ne+"flex-"+e+e;case 5187:return J+e+z(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+ne+"flex-$1$2")+e;case 5443:return J+e+ne+"flex-item-"+z(e,/flex-|-self/g,"")+($t(e,/flex-|baseline/)?"":ne+"grid-row-"+z(e,/flex-|-self/g,""))+e;case 4675:return J+e+ne+"flex-line-pack"+z(e,/align-content|flex-|-self/g,"")+e;case 5548:return J+e+ne+z(e,"shrink","negative")+e;case 5292:return J+e+ne+z(e,"basis","preferred-size")+e;case 6060:return J+"box-"+z(e,"-grow","")+J+e+ne+z(e,"grow","positive")+e;case 4554:return J+z(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4200:if(!$t(e,/flex-|baseline/))return ne+"grid-column-align"+wr(e,t)+e;break;case 2592:case 3360:return ne+z(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,$t(r.props,/grid-\w+-end/)})?~Ei(e+(n=n[t].value),"span",0)?e:ne+z(e,"-start","")+e+ne+"grid-row-span:"+(~Ei(n,"span",0)?$t(n,/\d+/):+$t(n,/\d+/)-+$t(e,/\d+/))+";":ne+z(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return $t(r.props,/grid-\w+-start/)})?e:ne+z(z(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,J+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kt(e)-1-t>6)switch(ge(e,t+1)){case 109:if(ge(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+uo+(ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ei(e,"stretch",0)?Dh(z(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return z(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,l,a,c){return ne+o+":"+i+c+(s?ne+o+"-span:"+(l?a:+a-+i)+c:"")+e});case 4949:if(ge(e,t+6)===121)return z(e,":",":"+J)+e;break;case 6444:switch(ge(e,ge(e,14)===45?18:11)){case 120:return z(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+J+(ge(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+ne+"$2box$3")+e;case 100:return z(e,":",":"+ne)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(e,"scroll-","scroll-snap-")+e}return e}function os(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function sx(e,t,n,r){switch(e.type){case K0:if(e.children.length)break;case J0:case Bu:return e.return=e.return||e.value;case Ph:return"";case _h:return e.return=e.value+"{"+os(e.children,r)+"}";case $s:if(!kt(e.value=e.props.join(",")))return""}return kt(n=os(e.children,r))?e.return=e.value+"{"+n+"}":""}function lx(e){var t=Ah(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function ax(e){return function(t){t.root||(t=t.return)&&e(t)}}function ux(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Bu:e.return=Dh(e.value,e.length,n);return;case _h:return os([Ut(e,{value:z(e.value,"@","@"+J)})],r);case $s:if(e.length)return Q0(n=e.props,function(o){switch($t(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Dn(Ut(e,{props:[z(o,/:(read-\w+)/,":"+uo+"$1")]})),Dn(Ut(e,{props:[o]})),ka(e,{props:kd(n,r)});break;case"::placeholder":Dn(Ut(e,{props:[z(o,/:(plac\w+)/,":"+J+"input-$1")]})),Dn(Ut(e,{props:[z(o,/:(plac\w+)/,":"+uo+"$1")]})),Dn(Ut(e,{props:[z(o,/:(plac\w+)/,ne+"input-$1")]})),Dn(Ut(e,{props:[o]})),ka(e,{props:kd(n,r)});break}return""})}}var cx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ue={},kr=typeof process<"u"&&Ue!==void 0&&(Ue.REACT_APP_SC_ATTR||Ue.SC_ATTR)||"data-styled",Mh="active",zh="data-styled-version",_s="6.1.13",Vu=`/*!sc*/
|
|
41
|
-
`,is=typeof window<"u"&&"HTMLElement"in window,dx=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ue!==void 0&&Ue.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ue.REACT_APP_SC_DISABLE_SPEEDY!==""?Ue.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ue.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ue!==void 0&&Ue.SC_DISABLE_SPEEDY!==void 0&&Ue.SC_DISABLE_SPEEDY!==""&&Ue.SC_DISABLE_SPEEDY!=="false"&&Ue.SC_DISABLE_SPEEDY),fx={},Ls=Object.freeze([]),Cr=Object.freeze({});function Fh(e,t,n){return n===void 0&&(n=Cr),e.theme!==n.theme&&e.theme||t||n.theme}var Bh=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),px=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hx=/(^-|-$)/g;function Ed(e){return e.replace(px,"-").replace(hx,"")}var mx=/(a)(d)/gi,ai=52,bd=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ea(e){var t,n="";for(t=Math.abs(e);t>ai;t=t/ai|0)n=bd(t%ai)+n;return(bd(t%ai)+n).replace(mx,"$1-$2")}var ml,Uh=5381,Zn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Vh=function(e){return Zn(Uh,e)};function Hu(e){return Ea(Vh(e)>>>0)}function vx(e){return e.displayName||e.name||"Component"}function vl(e){return typeof e=="string"&&!0}var Hh=typeof Symbol=="function"&&Symbol.for,Wh=Hh?Symbol.for("react.memo"):60115,gx=Hh?Symbol.for("react.forward_ref"):60112,yx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xx={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wx=((ml={})[gx]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ml[Wh]=Jh,ml);function Nd(e){return("type"in(t=e)&&t.type.$$typeof)===Wh?Jh:"$$typeof"in e?wx[e.$$typeof]:yx;var t}var Sx=Object.defineProperty,kx=Object.getOwnPropertyNames,$d=Object.getOwnPropertySymbols,Cx=Object.getOwnPropertyDescriptor,jx=Object.getPrototypeOf,Rd=Object.prototype;function Kh(e,t,n){if(typeof t!="string"){if(Rd){var r=jx(t);r&&r!==Rd&&Kh(e,r,n)}var o=kx(t);$d&&(o=o.concat($d(t)));for(var i=Nd(e),s=Nd(t),l=0;l<o.length;++l){var a=o[l];if(!(a in xx||n&&n[a]||s&&a in s||i&&a in i)){var c=Cx(t,a);try{Sx(e,a,c)}catch{}}}}return e}function Pn(e){return typeof e=="function"}function Wu(e){return typeof e=="object"&&"styledComponentId"in e}function wn(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ss(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function $o(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ba(e,t,n){if(n===void 0&&(n=!1),!n&&!$o(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ba(e[r],t[r]);else if($o(t))for(var r in t)e[r]=ba(e[r],t[r]);return e}function Ju(e,t){Object.defineProperty(e,"toString",{value:t})}function ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ex=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw ln(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var l=this.indexOfGroup(t+1),a=(s=0,n.length);s<a;s++)this.tag.insertRule(l,n[s])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(Vu);return n},e}(),$i=new Map,ls=new Map,Ri=1,ui=function(e){if($i.has(e))return $i.get(e);for(;ls.has(Ri);)Ri++;var t=Ri++;return $i.set(e,t),ls.set(t,e),t},bx=function(e,t){Ri=t+1,$i.set(e,t),ls.set(t,e)},Nx="style[".concat(kr,"][").concat(zh,'="').concat(_s,'"]'),$x=new RegExp("^".concat(kr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Rx=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},Tx=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Vu),o=[],i=0,s=r.length;i<s;i++){var l=r[i].trim();if(l){var a=l.match($x);if(a){var c=0|parseInt(a[1],10),d=a[2];c!==0&&(bx(d,c),Rx(e,d,a[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(l)}}},Td=function(e){for(var t=document.querySelectorAll(Nx),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(kr)!==Mh&&(Tx(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Px(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Gh=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(l){var a=Array.from(l.querySelectorAll("style[".concat(kr,"]")));return a[a.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(kr,Mh),r.setAttribute(zh,_s);var s=Px();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},_x=function(){function e(t){this.element=Gh(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var s=r[o];if(s.ownerNode===n)return s}throw ln(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),Lx=function(){function e(t){this.element=Gh(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Ix=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Pd=is,Ax={isServer:!is,useCSSOMInjection:!dx},as=function(){function e(t,n,r){t===void 0&&(t=Cr),n===void 0&&(n={});var o=this;this.options=ye(ye({},Ax),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&is&&Pd&&(Pd=!1,Td(this)),Ju(this,function(){return function(i){for(var s=i.getTag(),l=s.length,a="",c=function(f){var h=function(m){return ls.get(m)}(f);if(h===void 0)return"continue";var y=i.names.get(h),v=s.getGroup(f);if(y===void 0||!y.size||v.length===0)return"continue";var x="".concat(kr,".g").concat(f,'[id="').concat(h,'"]'),k="";y!==void 0&&y.forEach(function(m){m.length>0&&(k+="".concat(m,","))}),a+="".concat(v).concat(x,'{content:"').concat(k,'"}').concat(Vu)},d=0;d<l;d++)c(d);return a}(o)})}return e.registerId=function(t){return ui(t)},e.prototype.rehydrate=function(){!this.server&&is&&Td(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ye(ye({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Ix(o):r?new _x(o):new Lx(o)}(this.options),new Ex(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(ui(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(ui(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ui(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Ox=/&/g,Dx=/^\s*\/\/.*$/gm;function Qh(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Qh(n.children,t)),n})}function Mx(e){var t,n,r,o=Cr,i=o.options,s=i===void 0?Cr:i,l=o.plugins,a=l===void 0?Ls:l,c=function(h,y,v){return v.startsWith(n)&&v.endsWith(n)&&v.replaceAll(n,"").length>0?".".concat(t):h},d=a.slice();d.push(function(h){h.type===$s&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Ox,n).replace(r,c))}),s.prefix&&d.push(ux),d.push(sx);var f=function(h,y,v,x){y===void 0&&(y=""),v===void 0&&(v=""),x===void 0&&(x="&"),t=x,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var k=h.replace(Dx,""),m=ox(v||y?"".concat(v," ").concat(y," { ").concat(k," }"):k);s.namespace&&(m=Qh(m,s.namespace));var p=[];return os(m,lx(d.concat(ax(function(g){return p.push(g)})))),p};return f.hash=a.length?a.reduce(function(h,y){return y.name||ln(15),Zn(h,y.name)},Uh).toString():"",f}var zx=new as,Na=Mx(),qh=Le.createContext({shouldForwardProp:void 0,styleSheet:zx,stylis:Na});qh.Consumer;Le.createContext(void 0);function $a(){return S.useContext(qh)}var Yh=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Na);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Ju(this,function(){throw ln(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Na),this.name+t.hash},e}(),Fx=function(e){return e>="A"&&e<="Z"};function _d(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Fx(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Xh=function(e){return e==null||e===!1||e===""},Zh=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Xh(i)&&(Array.isArray(i)&&i.isCss||Pn(i)?r.push("".concat(_d(o),":"),i,";"):$o(i)?r.push.apply(r,xr(xr(["".concat(o," {")],Zh(i),!1),["}"],!1)):r.push("".concat(_d(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in cx||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function rn(e,t,n,r){if(Xh(e))return[];if(Wu(e))return[".".concat(e.styledComponentId)];if(Pn(e)){if(!Pn(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return rn(o,t,n,r)}var i;return e instanceof Yh?n?(e.inject(n,r),[e.getName(r)]):[e]:$o(e)?Zh(e):Array.isArray(e)?Array.prototype.concat.apply(Ls,e.map(function(s){return rn(s,t,n,r)})):[e.toString()]}function em(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Pn(n)&&!Wu(n))return!1}return!0}var Bx=Vh(_s),Ux=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&em(t),this.componentId=n,this.baseHash=Zn(Bx,n),this.baseStyle=r,as.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=wn(o,this.staticRulesId);else{var i=ss(rn(this.rules,t,n,r)),s=Ea(Zn(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}o=wn(o,s),this.staticRulesId=s}else{for(var a=Zn(this.baseHash,r.hash),c="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")c+=f;else if(f){var h=ss(rn(f,t,n,r));a=Zn(a,h+d),c+=h}}if(c){var y=Ea(a>>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(c,".".concat(y),void 0,this.componentId)),o=wn(o,y)}}return o},e}(),jr=Le.createContext(void 0);jr.Consumer;function Vx(){var e=S.useContext(jr);if(!e)throw ln(18);return e}function Ld(e){var t=Le.useContext(jr),n=S.useMemo(function(){return function(r,o){if(!r)throw ln(14);if(Pn(r)){var i=r(o);return i}if(Array.isArray(r)||typeof r!="object")throw ln(8);return o?ye(ye({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?Le.createElement(jr.Provider,{value:n},e.children):null}var gl={};function Hx(e,t,n){var r=Wu(e),o=e,i=!vl(e),s=t.attrs,l=s===void 0?Ls:s,a=t.componentId,c=a===void 0?function(C,j){var b=typeof C!="string"?"sc":Ed(C);gl[b]=(gl[b]||0)+1;var $="".concat(b,"-").concat(Hu(_s+b+gl[b]));return j?"".concat(j,"-").concat($):$}(t.displayName,t.parentComponentId):a,d=t.displayName,f=d===void 0?function(C){return vl(C)?"styled.".concat(C):"Styled(".concat(vx(C),")")}(e):d,h=t.displayName&&t.componentId?"".concat(Ed(t.displayName),"-").concat(t.componentId):t.componentId||c,y=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,v=t.shouldForwardProp;if(r&&o.shouldForwardProp){var x=o.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;v=function(C,j){return x(C,j)&&k(C,j)}}else v=x}var m=new Ux(n,h,r?o.componentStyle:void 0);function p(C,j){return function(b,$,R){var L=b.attrs,I=b.componentStyle,W=b.defaultProps,F=b.foldedComponentIds,Q=b.styledComponentId,lt=b.target,O=Le.useContext(jr),q=$a(),B=b.shouldForwardProp||q.shouldForwardProp,P=Fh($,O,W)||Cr,A=function(Mt,Be,bt){for(var _r,hn=ye(ye({},Be),{className:void 0,theme:bt}),Bs=0;Bs<Mt.length;Bs+=1){var Ho=Pn(_r=Mt[Bs])?_r(hn):_r;for(var zt in Ho)hn[zt]=zt==="className"?wn(hn[zt],Ho[zt]):zt==="style"?ye(ye({},hn[zt]),Ho[zt]):Ho[zt]}return Be.className&&(hn.className=wn(hn.className,Be.className)),hn}(L,$,P),D=A.as||lt,Y={};for(var X in A)A[X]===void 0||X[0]==="$"||X==="as"||X==="theme"&&A.theme===P||(X==="forwardedAs"?Y.as=A.forwardedAs:B&&!B(X,D)||(Y[X]=A[X]));var pn=function(Mt,Be){var bt=$a(),_r=Mt.generateAndInjectStyles(Be,bt.styleSheet,bt.stylis);return _r}(I,A),at=wn(F,Q);return pn&&(at+=" "+pn),A.className&&(at+=" "+A.className),Y[vl(D)&&!Bh.has(D)?"class":"className"]=at,Y.ref=R,S.createElement(D,Y)}(g,C,j)}p.displayName=f;var g=Le.forwardRef(p);return g.attrs=y,g.componentStyle=m,g.displayName=f,g.shouldForwardProp=v,g.foldedComponentIds=r?wn(o.foldedComponentIds,o.styledComponentId):"",g.styledComponentId=h,g.target=r?o.target:e,Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=r?function(j){for(var b=[],$=1;$<arguments.length;$++)b[$-1]=arguments[$];for(var R=0,L=b;R<L.length;R++)ba(j,L[R],!0);return j}({},o.defaultProps,C):C}}),Ju(g,function(){return".".concat(g.styledComponentId)}),i&&Kh(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}function Id(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Ad=function(e){return Object.assign(e,{isCss:!0})};function Pe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Pn(e)||$o(e))return Ad(rn(Id(Ls,xr([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?rn(r):Ad(rn(Id(r,t)))}function Ra(e,t,n){if(n===void 0&&(n=Cr),!t)throw ln(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,Pe.apply(void 0,xr([o],i,!1)))};return r.attrs=function(o){return Ra(e,t,ye(ye({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return Ra(e,t,ye(ye({},n),o))},r}var tm=function(e){return Ra(Hx,e)},w=tm;Bh.forEach(function(e){w[e]=tm(e)});var Wx=function(){function e(t,n){this.rules=t,this.componentId=n,this.isStatic=em(t),as.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,n,r,o){var i=o(ss(rn(this.rules,n,r,o)),""),s=this.componentId+t;r.insertRules(s,s,i)},e.prototype.removeStyles=function(t,n){n.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,n,r,o){t>2&&as.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,o)},e}();function Jx(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Pe.apply(void 0,xr([e],t,!1)),o="sc-global-".concat(Hu(JSON.stringify(r))),i=new Wx(r,o),s=function(a){var c=$a(),d=Le.useContext(jr),f=Le.useRef(c.styleSheet.allocateGSInstance(o)).current;return c.styleSheet.server&&l(f,a,c.styleSheet,d,c.stylis),Le.useLayoutEffect(function(){if(!c.styleSheet.server)return l(f,a,c.styleSheet,d,c.stylis),function(){return i.removeStyles(f,c.styleSheet)}},[f,a,c.styleSheet,d,c.stylis]),null};function l(a,c,d,f,h){if(i.isStatic)i.renderStyles(a,fx,d,h);else{var y=ye(ye({},c),{theme:Fh(c,f,s.defaultProps)});i.renderStyles(a,y,d,h)}}return Le.memo(s)}function Do(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ss(Pe.apply(void 0,xr([e],t,!1))),o=Hu(r);return new Yh(o,r)}const Kx="/assets/logo-BGHkG1-J.png",Gx="/assets/logo-dark-KAsU1C78.png",Od={name:"light",colors:{background:"#ffffffaa",pageBackground:"#ffffff",backgroundSecondary:"#f6f8fa",text:"#333333",textSecondary:"#6a737d",primary:"#0056b3",primaryHover:"#004494",error:"#d32f2f",errorHover:"#b71c1c",warning:"#f57c00",info:"#0288d1",secondary:"#616161",secondaryHover:"#424242",border:"#e1e4e8",buttonBg:"#e0e0e0",buttonText:"#333333",buttonHoverBg:"#bdbdbd",inputBg:"#ffffff",inputBorder:"#bdbdbd",inputText:"#333333",codeBackground:"#f5f5f5",codeText:"#24292e",systemMessageBackground:"#e3f2fd",systemMessageText:"#0d47a1",systemMessageBorder:"#bbdefb",systemMessageTimestamp:"#1565c0",disabled:"#9e9e9e",userMessageBackground:"#e8f5e9",userMessageText:"#1b5e20",userMessageTimestamp:"#2e7d32",menuBackdrop:"rgba(0, 0, 0, 0.5)",menuBackground:"#ffffff",menuHover:"#f6f8fa",menuBorder:"#e1e4e8",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",diffAddedText:"rgba(0, 128, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:Kx,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Dd={name:"dark",colors:{background:"#00000055",pageBackground:"#1e1e1e",backgroundSecondary:"#2d333b",text:"#d4d4d4",textSecondary:"#8b949e",primary:"#58a6ff",primaryHover:"#79b8ff",secondary:"#8b949e",error:"#f44336",errorHover:"#d32f2f",secondaryHover:"#9aa3ad",warning:"#ffa726",info:"#29b6f6",border:"#30363d",buttonBg:"#21262d",buttonText:"#c9d1d9",buttonHoverBg:"#30363d",inputBg:"#0d1117",inputBorder:"#30363d",inputText:"#c9d1d9",codeBackground:"#161b22",codeText:"#c9d1d9",systemMessageBackground:"#1c2128",systemMessageText:"#8b949e",systemMessageBorder:"#30363d",systemMessageTimestamp:"#6e7681",disabled:"#41464b",userMessageBackground:"#1c4a7d",userMessageText:"#e6f3ff",userMessageTimestamp:"#a8c7f0",menuBackdrop:"rgba(0, 0, 0, 0.7)",menuBackground:"#1e1e1e",menuHover:"#2d333b",menuBorder:"#30363d",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",diffAddedText:"rgba(0, 255, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:Gx,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Qx=({usage:e})=>{const[t,n]=S.useState("total"),r=f=>{n(f.target.value)},o=e.usageMetrics[t],i=e.usageMetrics[t].cost||0,s=Ur(i.toFixed(2)),l=Ur(o.rpm),a=Ur(o.rpd),c=Ur(Md(o.tpm)),d=Ur(Md(o.tpd));return u.jsx(Yx,{children:u.jsxs(Xx,{children:[u.jsx(Zx,{onChange:r,value:t,children:Object.keys(e.usageMetrics).map(f=>u.jsx("option",{value:f,children:f},f))}),u.jsxs(Vr,{children:[u.jsx(Hr,{children:"Cost:"}),u.jsxs(Wr,{children:["$",s]},s)]}),u.jsxs(Vr,{children:[u.jsx(Hr,{children:"RPM:"}),u.jsx(Wr,{children:l},l)]}),u.jsxs(Vr,{children:[u.jsx(Hr,{children:"RPD:"}),u.jsx(Wr,{children:a},a)]}),u.jsxs(Vr,{children:[u.jsx(Hr,{children:"TPM:"}),u.jsx(Wr,{children:c},c)]}),u.jsxs(Vr,{children:[u.jsx(Hr,{children:"TPD:"}),u.jsx(Wr,{children:d},d)]})]})})},Md=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),Ur=e=>{const[t,n]=S.useState(e),r=S.useRef(e);return S.useEffect(()=>{e!==r.current&&(n(e),r.current=e)},[e]),t},qx=Do`
|
|
42
|
-
0% {
|
|
43
|
-
transform: scale(1);
|
|
44
|
-
opacity: 1;
|
|
45
|
-
}
|
|
46
|
-
50% {
|
|
47
|
-
transform: scale(1.2);
|
|
48
|
-
opacity: 0.7;
|
|
49
|
-
}
|
|
50
|
-
100% {
|
|
51
|
-
transform: scale(1);
|
|
52
|
-
opacity: 1;
|
|
53
|
-
}
|
|
54
|
-
`,Yx=w.div`
|
|
55
|
-
background-color: ${({theme:e})=>e.colors.background};
|
|
56
|
-
border-radius: 4px;
|
|
57
|
-
padding: 4px 4px;
|
|
58
|
-
box-shadow:
|
|
59
|
-
0 1px 3px rgba(0, 0, 0, 0.12),
|
|
60
|
-
0 1px 2px rgba(0, 0, 0, 0.24);
|
|
61
|
-
`,Xx=w.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-wrap: wrap;
|
|
64
|
-
gap: 8px;
|
|
65
|
-
align-items: center;
|
|
66
|
-
`,Zx=w.select`
|
|
67
|
-
padding: 2px 4px;
|
|
68
|
-
border-radius: 4px;
|
|
69
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
70
|
-
background-color: ${({theme:e})=>e.colors.background};
|
|
71
|
-
color: ${({theme:e})=>e.colors.text};
|
|
72
|
-
font-size: 0.9em;
|
|
73
|
-
`,Vr=w.div`
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
align-items: center;
|
|
77
|
-
margin-left: 8px;
|
|
78
|
-
`,Hr=w.span`
|
|
79
|
-
font-size: 0.8em;
|
|
80
|
-
color: ${({theme:e})=>e.colors.textSecondary};
|
|
81
|
-
`,Wr=w.span`
|
|
82
|
-
font-size: 0.9em;
|
|
83
|
-
font-weight: bold;
|
|
84
|
-
color: ${({theme:e})=>e.colors.text};
|
|
85
|
-
animation: ${qx} 0.5s ease-in-out;
|
|
86
|
-
`;function nm(e,t){return function(){return e.apply(t,arguments)}}const{toString:e1}=Object.prototype,{getPrototypeOf:Ku}=Object,Is=(e=>t=>{const n=e1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Is(t)===e),As=e=>t=>typeof t===e,{isArray:Rr}=Array,Ro=As("undefined");function t1(e){return e!==null&&!Ro(e)&&e.constructor!==null&&!Ro(e.constructor)&&Je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rm=gt("ArrayBuffer");function n1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rm(e.buffer),t}const r1=As("string"),Je=As("function"),om=As("number"),Os=e=>e!==null&&typeof e=="object",o1=e=>e===!0||e===!1,Ti=e=>{if(Is(e)!=="object")return!1;const t=Ku(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},i1=gt("Date"),s1=gt("File"),l1=gt("Blob"),a1=gt("FileList"),u1=e=>Os(e)&&Je(e.pipe),c1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Je(e.append)&&((t=Is(e))==="formdata"||t==="object"&&Je(e.toString)&&e.toString()==="[object FormData]"))},d1=gt("URLSearchParams"),[f1,p1,h1,m1]=["ReadableStream","Request","Response","Headers"].map(gt),v1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Rr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(r=0;r<s;r++)l=i[r],t.call(null,e[l],l,e)}}function im(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Sn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sm=e=>!Ro(e)&&e!==Sn;function Ta(){const{caseless:e}=sm(this)&&this||{},t={},n=(r,o)=>{const i=e&&im(t,o)||o;Ti(t[i])&&Ti(r)?t[i]=Ta(t[i],r):Ti(r)?t[i]=Ta({},r):Rr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Mo(arguments[r],n);return t}const g1=(e,t,n,{allOwnKeys:r}={})=>(Mo(t,(o,i)=>{n&&Je(o)?e[i]=nm(o,n):e[i]=o},{allOwnKeys:r}),e),y1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),x1=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},w1=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Ku(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},S1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},k1=e=>{if(!e)return null;if(Rr(e))return e;let t=e.length;if(!om(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},C1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ku(Uint8Array)),j1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},E1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},b1=gt("HTMLFormElement"),N1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),zd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$1=gt("RegExp"),lm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Mo(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},R1=e=>{lm(e,(t,n)=>{if(Je(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Je(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},T1=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Rr(e)?r(e):r(String(e).split(t)),n},P1=()=>{},_1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,yl="abcdefghijklmnopqrstuvwxyz",Fd="0123456789",am={DIGIT:Fd,ALPHA:yl,ALPHA_DIGIT:yl+yl.toUpperCase()+Fd},L1=(e=16,t=am.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function I1(e){return!!(e&&Je(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const A1=e=>{const t=new Array(10),n=(r,o)=>{if(Os(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Rr(r)?[]:{};return Mo(r,(s,l)=>{const a=n(s,o+1);!Ro(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},O1=gt("AsyncFunction"),D1=e=>e&&(Os(e)||Je(e))&&Je(e.then)&&Je(e.catch),um=((e,t)=>e?setImmediate:t?((n,r)=>(Sn.addEventListener("message",({source:o,data:i})=>{o===Sn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Sn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Je(Sn.postMessage)),M1=typeof queueMicrotask<"u"?queueMicrotask.bind(Sn):typeof process<"u"&&process.nextTick||um,E={isArray:Rr,isArrayBuffer:rm,isBuffer:t1,isFormData:c1,isArrayBufferView:n1,isString:r1,isNumber:om,isBoolean:o1,isObject:Os,isPlainObject:Ti,isReadableStream:f1,isRequest:p1,isResponse:h1,isHeaders:m1,isUndefined:Ro,isDate:i1,isFile:s1,isBlob:l1,isRegExp:$1,isFunction:Je,isStream:u1,isURLSearchParams:d1,isTypedArray:C1,isFileList:a1,forEach:Mo,merge:Ta,extend:g1,trim:v1,stripBOM:y1,inherits:x1,toFlatObject:w1,kindOf:Is,kindOfTest:gt,endsWith:S1,toArray:k1,forEachEntry:j1,matchAll:E1,isHTMLForm:b1,hasOwnProperty:zd,hasOwnProp:zd,reduceDescriptors:lm,freezeMethods:R1,toObjectSet:T1,toCamelCase:N1,noop:P1,toFiniteNumber:_1,findKey:im,global:Sn,isContextDefined:sm,ALPHABET:am,generateString:L1,isSpecCompliantForm:I1,toJSONObject:A1,isAsyncFn:O1,isThenable:D1,setImmediate:um,asap:M1};function M(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}E.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}});const cm=M.prototype,dm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{dm[e]={value:e}});Object.defineProperties(M,dm);Object.defineProperty(cm,"isAxiosError",{value:!0});M.from=(e,t,n,r,o,i)=>{const s=Object.create(cm);return E.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),M.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const z1=null;function Pa(e){return E.isPlainObject(e)||E.isArray(e)}function fm(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function Bd(e,t,n){return e?e.concat(t).map(function(o,i){return o=fm(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function F1(e){return E.isArray(e)&&!e.some(Pa)}const B1=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function Ds(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,k){return!E.isUndefined(k[x])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(o))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(E.isDate(v))return v.toISOString();if(!a&&E.isBlob(v))throw new M("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(v)||E.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,x,k){let m=v;if(v&&!k&&typeof v=="object"){if(E.endsWith(x,"{}"))x=r?x:x.slice(0,-2),v=JSON.stringify(v);else if(E.isArray(v)&&F1(v)||(E.isFileList(v)||E.endsWith(x,"[]"))&&(m=E.toArray(v)))return x=fm(x),m.forEach(function(g,C){!(E.isUndefined(g)||g===null)&&t.append(s===!0?Bd([x],C,i):s===null?x:x+"[]",c(g))}),!1}return Pa(v)?!0:(t.append(Bd(k,x,i),c(v)),!1)}const f=[],h=Object.assign(B1,{defaultVisitor:d,convertValue:c,isVisitable:Pa});function y(v,x){if(!E.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(v),E.forEach(v,function(m,p){(!(E.isUndefined(m)||m===null)&&o.call(t,m,E.isString(p)?p.trim():p,x,h))===!0&&y(m,x?x.concat(p):[p])}),f.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ud(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Gu(e,t){this._pairs=[],e&&Ds(e,this,t)}const pm=Gu.prototype;pm.append=function(t,n){this._pairs.push([t,n])};pm.toString=function(t){const n=t?function(r){return t.call(this,r,Ud)}:Ud;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function U1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hm(e,t,n){if(!t)return e;const r=n&&n.encode||U1,o=n&&n.serialize;let i;if(o?i=o(t,n):i=E.isURLSearchParams(t)?t.toString():new Gu(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Vd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const mm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V1=typeof URLSearchParams<"u"?URLSearchParams:Gu,H1=typeof FormData<"u"?FormData:null,W1=typeof Blob<"u"?Blob:null,J1={isBrowser:!0,classes:{URLSearchParams:V1,FormData:H1,Blob:W1},protocols:["http","https","file","blob","url","data"]},Qu=typeof window<"u"&&typeof document<"u",_a=typeof navigator=="object"&&navigator||void 0,K1=Qu&&(!_a||["ReactNative","NativeScript","NS"].indexOf(_a.product)<0),G1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Q1=Qu&&window.location.href||"http://localhost",q1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qu,hasStandardBrowserEnv:K1,hasStandardBrowserWebWorkerEnv:G1,navigator:_a,origin:Q1},Symbol.toStringTag,{value:"Module"})),Me={...q1,...J1};function Y1(e,t){return Ds(e,new Me.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Me.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function X1(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Z1(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function vm(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),a=i>=n.length;return s=!s&&E.isArray(o)?o.length:s,a?(E.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!E.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&E.isArray(o[s])&&(o[s]=Z1(o[s])),!l)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,o)=>{t(X1(r),o,n,0)}),n}return null}function ew(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const zo={transitional:mm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=E.isObject(t);if(i&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return o?JSON.stringify(vm(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Y1(t,this.formSerializer).toString();if((l=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Ds(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),ew(t)):t}],transformResponse:[function(t){const n=this.transitional||zo.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?M.from(l,M.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{zo.headers[e]={}});const tw=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nw=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
87
|
-
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&tw[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Hd=Symbol("internals");function Jr(e){return e&&String(e).trim().toLowerCase()}function Pi(e){return e===!1||e==null?e:E.isArray(e)?e.map(Pi):String(e)}function rw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ow=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xl(e,t,n,r,o){if(E.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function iw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sw(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class ze{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,a,c){const d=Jr(a);if(!d)throw new Error("header name must be a non-empty string");const f=E.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||a]=Pi(l))}const s=(l,a)=>E.forEach(l,(c,d)=>i(c,d,a));if(E.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(E.isString(t)&&(t=t.trim())&&!ow(t))s(nw(t),n);else if(E.isHeaders(t))for(const[l,a]of t.entries())i(a,l,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Jr(t),t){const r=E.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return rw(o);if(E.isFunction(n))return n.call(this,o,r);if(E.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Jr(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Jr(s),s){const l=E.findKey(r,s);l&&(!n||xl(r,r[l],l,n))&&(delete r[l],o=!0)}}return E.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||xl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return E.forEach(this,(o,i)=>{const s=E.findKey(r,i);if(s){n[s]=Pi(o),delete n[i];return}const l=t?iw(i):String(i).trim();l!==i&&delete n[i],n[l]=Pi(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&E.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
88
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Hd]=this[Hd]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=Jr(s);r[l]||(sw(o,s),r[l]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}}ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(ze);function wl(e,t){const n=this||zo,r=t||n,o=ze.from(r.headers);let i=r.data;return E.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function gm(e){return!!(e&&e.__CANCEL__)}function Tr(e,t,n){M.call(this,e??"canceled",M.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(Tr,M,{__CANCEL__:!0});function ym(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function lw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function aw(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),d=r[i];s||(s=c),n[o]=a,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const y=d&&c-d;return y?Math.round(h*1e3/y):void 0}}function uw(e,t){let n=0,r=1e3/t,o,i;const s=(c,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?s(c,d):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-f)))},()=>o&&s(o)]}const us=(e,t,n=3)=>{let r=0;const o=aw(50,250);return uw(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,a=s-r,c=o(a),d=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:a,rate:c||void 0,estimated:c&&l&&d?(l-s)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Wd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Jd=e=>(...t)=>E.asap(()=>e(...t)),cw=Me.hasStandardBrowserEnv?function(){const t=Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const l=E.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),dw=Me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];E.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),E.isString(r)&&s.push("path="+r),E.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function xm(e,t){return e&&!fw(t)?pw(e,t):t}const Kd=e=>e instanceof ze?{...e}:e;function _n(e,t){t=t||{};const n={};function r(c,d,f){return E.isPlainObject(c)&&E.isPlainObject(d)?E.merge.call({caseless:f},c,d):E.isPlainObject(d)?E.merge({},d):E.isArray(d)?d.slice():d}function o(c,d,f){if(E.isUndefined(d)){if(!E.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function i(c,d){if(!E.isUndefined(d))return r(void 0,d)}function s(c,d){if(E.isUndefined(d)){if(!E.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,d)=>o(Kd(c),Kd(d),!0)};return E.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=a[d]||o,h=f(e[d],t[d],d);E.isUndefined(h)&&f!==l||(n[d]=h)}),n}const wm=e=>{const t=_n({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=ze.from(s),t.url=hm(xm(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let a;if(E.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((a=s.getContentType())!==!1){const[c,...d]=a?a.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Me.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(t)),r||r!==!1&&cw(t.url))){const c=o&&i&&dw.read(i);c&&s.set(o,c)}return t},hw=typeof XMLHttpRequest<"u",mw=hw&&function(e){return new Promise(function(n,r){const o=wm(e);let i=o.data;const s=ze.from(o.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:c}=o,d,f,h,y,v;function x(){y&&y(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function m(){if(!k)return;const g=ze.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:g,config:e,request:k};ym(function($){n($),x()},function($){r($),x()},j),k=null}"onloadend"in k?k.onloadend=m:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(m)},k.onabort=function(){k&&(r(new M("Request aborted",M.ECONNABORTED,e,k)),k=null)},k.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||mm;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new M(C,j.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,k)),k=null},i===void 0&&s.setContentType(null),"setRequestHeader"in k&&E.forEach(s.toJSON(),function(C,j){k.setRequestHeader(j,C)}),E.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),c&&([h,v]=us(c,!0),k.addEventListener("progress",h)),a&&k.upload&&([f,y]=us(a),k.upload.addEventListener("progress",f),k.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(d=g=>{k&&(r(!g||g.type?new Tr(null,e,k):g),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const p=lw(o.url);if(p&&Me.protocols.indexOf(p)===-1){r(new M("Unsupported protocol "+p+":",M.ERR_BAD_REQUEST,e));return}k.send(i||null)})},vw=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,l();const d=c instanceof Error?c:this.reason;r.abort(d instanceof M?d:new Tr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new M(`timeout ${t} of ms exceeded`,M.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:a}=r;return a.unsubscribe=()=>E.asap(l),a}},gw=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},yw=async function*(e,t){for await(const n of xw(e))yield*gw(n,t)},xw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Gd=(e,t,n,r)=>{const o=yw(e,t);let i=0,s,l=a=>{s||(s=!0,r&&r(a))};return new ReadableStream({async pull(a){try{const{done:c,value:d}=await o.next();if(c){l(),a.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}a.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(a){return l(a),o.return()}},{highWaterMark:2})},Ms=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sm=Ms&&typeof ReadableStream=="function",ww=Ms&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),km=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Sw=Sm&&km(()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Qd=64*1024,La=Sm&&km(()=>E.isReadableStream(new Response("").body)),cs={stream:La&&(e=>e.body)};Ms&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!cs[t]&&(cs[t]=E.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new M(`Response type '${t}' is not supported`,M.ERR_NOT_SUPPORT,r)})})})(new Response);const kw=async e=>{if(e==null)return 0;if(E.isBlob(e))return e.size;if(E.isSpecCompliantForm(e))return(await new Request(Me.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(E.isArrayBufferView(e)||E.isArrayBuffer(e))return e.byteLength;if(E.isURLSearchParams(e)&&(e=e+""),E.isString(e))return(await ww(e)).byteLength},Cw=async(e,t)=>{const n=E.toFiniteNumber(e.getContentLength());return n??kw(t)},jw=Ms&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:a,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:h}=wm(e);c=c?(c+"").toLowerCase():"text";let y=vw([o,i&&i.toAbortSignal()],s),v;const x=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let k;try{if(a&&Sw&&n!=="get"&&n!=="head"&&(k=await Cw(d,r))!==0){let j=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(E.isFormData(r)&&(b=j.headers.get("content-type"))&&d.setContentType(b),j.body){const[$,R]=Wd(k,us(Jd(a)));r=Gd(j.body,Qd,$,R)}}E.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;v=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0});let p=await fetch(v);const g=La&&(c==="stream"||c==="response");if(La&&(l||g&&x)){const j={};["status","statusText","headers"].forEach(L=>{j[L]=p[L]});const b=E.toFiniteNumber(p.headers.get("content-length")),[$,R]=l&&Wd(b,us(Jd(l),!0))||[];p=new Response(Gd(p.body,Qd,$,()=>{R&&R(),x&&x()}),j)}c=c||"text";let C=await cs[E.findKey(cs,c)||"text"](p,e);return!g&&x&&x(),await new Promise((j,b)=>{ym(j,b,{data:C,headers:ze.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:v})})}catch(m){throw x&&x(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,e,v),{cause:m.cause||m}):M.from(m,m&&m.code,e,v)}}),Ia={http:z1,xhr:mw,fetch:jw};E.forEach(Ia,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qd=e=>`- ${e}`,Ew=e=>E.isFunction(e)||e===null||e===!1,Cm={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!Ew(n)&&(r=Ia[(s=String(n)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
89
|
-
`+i.map(qd).join(`
|
|
90
|
-
`):" "+qd(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ia};function Sl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tr(null,e)}function Yd(e){return Sl(e),e.headers=ze.from(e.headers),e.data=wl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cm.getAdapter(e.adapter||zo.adapter)(e).then(function(r){return Sl(e),r.data=wl.call(e,e.transformResponse,r),r.headers=ze.from(r.headers),r},function(r){return gm(r)||(Sl(e),r&&r.response&&(r.response.data=wl.call(e,e.transformResponse,r.response),r.response.headers=ze.from(r.response.headers))),Promise.reject(r)})}const jm="1.7.7",qu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xd={};qu.transitional=function(t,n,r){function o(i,s){return"[Axios v"+jm+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new M(o(s," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Xd[s]&&(Xd[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function bw(e,t,n){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new M("option "+i+" must be "+a,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}const Aa={assertOptions:bw,validators:qu},Bt=Aa.validators;class En{constructor(t){this.defaults=t,this.interceptors={request:new Vd,response:new Vd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
91
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_n(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Aa.assertOptions(r,{silentJSONParsing:Bt.transitional(Bt.boolean),forcedJSONParsing:Bt.transitional(Bt.boolean),clarifyTimeoutError:Bt.transitional(Bt.boolean)},!1),o!=null&&(E.isFunction(o)?n.paramsSerializer={serialize:o}:Aa.assertOptions(o,{encode:Bt.function,serialize:Bt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=ze.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(a=a&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let d,f=0,h;if(!a){const v=[Yd.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,c),h=v.length,d=Promise.resolve(n);f<h;)d=d.then(v[f++],v[f++]);return d}h=l.length;let y=n;for(f=0;f<h;){const v=l[f++],x=l[f++];try{y=v(y)}catch(k){x.call(this,k);break}}try{d=Yd.call(this,y)}catch(v){return Promise.reject(v)}for(f=0,h=c.length;f<h;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=_n(this.defaults,t);const n=xm(t.baseURL,t.url);return hm(n,t.params,t.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(t){En.prototype[t]=function(n,r){return this.request(_n(r||{},{method:t,url:n,data:(r||{}).data}))}});E.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,l){return this.request(_n(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}En.prototype[t]=n(),En.prototype[t+"Form"]=n(!0)});class Yu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new Tr(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Yu(function(o){t=o}),cancel:t}}}function Nw(e){return function(n){return e.apply(null,n)}}function $w(e){return E.isObject(e)&&e.isAxiosError===!0}const Oa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Oa).forEach(([e,t])=>{Oa[t]=e});function Em(e){const t=new En(e),n=nm(En.prototype.request,t);return E.extend(n,En.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Em(_n(e,o))},n}const ae=Em(zo);ae.Axios=En;ae.CanceledError=Tr;ae.CancelToken=Yu;ae.isCancel=gm;ae.VERSION=jm;ae.toFormData=Ds;ae.AxiosError=M;ae.Cancel=ae.CanceledError;ae.all=function(t){return Promise.all(t)};ae.spread=Nw;ae.isAxiosError=$w;ae.mergeConfig=_n;ae.AxiosHeaders=ze;ae.formToJSON=e=>vm(E.isHTMLForm(e)?new FormData(e):e);ae.getAdapter=Cm.getAdapter;ae.HttpStatusCode=Oa;ae.default=ae;const Rw="/api",de=ae.create({baseURL:Rw,headers:{"Content-Type":"application/json"}}),Tw=async()=>{try{const t=await(await fetch("/")).text();return new DOMParser().parseFromString(t,"text/html").body.getAttribute("data-security-token")}catch(e){return console.error("Error fetching security token:",e),null}};de.interceptors.request.use(e=>{var n;const t=(n=document.querySelector("body[data-security-token]"))==null?void 0:n.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));de.interceptors.response.use(e=>e,async e=>{var n;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const r=await Tw();if(r)return t.headers.Authorization=`Bearer ${r}`,(n=document.querySelector("body[data-security-token]"))==null||n.setAttribute("data-security-token",r),de(t)}return Promise.reject(e)});const Pw=async(e,t)=>{try{if(!e||!t.trim())throw new Error("Invalid message ID or content");if((await de.post("/edit-message",{messageId:e,newContent:t})).status!==200)throw new Error("Failed to edit message")}catch(n){throw ae.isAxiosError(n)?n.response?new Error(n.response.data.error||"Failed to edit message"):n.request?new Error("No response received from server"):new Error(`Error setting up request: ${n.message}`):n instanceof Error?n:new Error("An unexpected error occurred while editing the message")}},Zd=async()=>(await de.get("/content")).data.content,_w=async(e,t,n)=>{const r=new FormData;r.append("prompt",e),r.append("options",JSON.stringify(t)),n&&n.length>0&&n.forEach(o=>{r.append("images",o)});try{await de.post("/execute-codegen",r,{headers:{"Content-Type":"multipart/form-data"}})}catch(o){throw ae.isAxiosError(o)?o.response?new Error(`Server error: ${o.response.data.message||"Unknown error"}`):o.request?new Error("No response received from server"):new Error(`Error setting up request: ${o.message}`):new Error("An unexpected error occurred")}},bm=async(e,t,n,r)=>{try{if(!e||typeof e!="string")throw new Error("Prompt must be a string");if(typeof t!="number"||t<0||t>2)throw new Error("Temperature must be a number between 0 and 2");if(!["default","cheap","reasoning"].includes(n))throw new Error("Model type must be one of: default, cheap, reasoning");return(await de.post("/generate-content",{prompt:e,temperature:t,modelType:n,options:r})).data.result}catch(o){if(ae.isAxiosError(o))if(o.response){const i=o.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${i}`)}else throw o.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${o.message}`);throw o instanceof Error?o:new Error("An unexpected error occurred during content generation")}},Da=async()=>(await de.get("/execution-status")).data.status,Lw=async()=>{await de.post("/interrupt-execution")},Nm=async()=>{await de.post("/pause-execution")},$m=async()=>{await de.post("/resume-execution")},Ma=async()=>(await de.get("/current-question")).data.question,Iw=async(e,t,n,r)=>{await de.post("/answer-question",{questionId:e,answer:t,confirmed:n,options:r})},ef=async()=>(await de.get("/usage")).data,Aw=async()=>(await de.get("/default-codegen-options")).data.options,Ow=async()=>(await de.get("/rcconfig")).data.rcConfig,Dw=async e=>{await de.delete(`/delete-iteration/${e}`)},Xu=async()=>(await de.get("/available-ai-services")).data.services,Rm=async()=>{try{return(await de.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},Mw=async e=>{await de.post("/service-configuration",e)};de.interceptors.response.use(e=>e,e=>(console.error("API request failed:",e),e.response?(console.error("Error data:",e.response.data),console.error("Error status:",e.response.status),console.error("Error headers:",e.response.headers)):e.request?console.error("No response received:",e.request):console.error("Error message:",e.message),Promise.reject(e)));function Fo(e,t){const n=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(n)}function Bo(e,t){S.useEffect(()=>{const n=r=>{t(r.detail)};return document.addEventListener(e,n,!1),()=>{document.removeEventListener(e,n,!1)}},[e,t])}function zw(e,t){if(!(t!=null&&t.modelOverrides))return e;const n=[];return t.modelOverrides.default&&n.push(t.modelOverrides.default),t.modelOverrides.cheap&&n.push(t.modelOverrides.cheap),n.length>0?`${e} (${n.join("/")})`:e}function Tm(){const[e,t]=S.useState([]),[n,r]=S.useState(null);return S.useEffect(()=>{(async()=>{try{const i=await Xu();t(i)}catch(i){console.error("Error fetching AI services:",i),r("Failed to fetch available AI services.")}})()},[]),[e,n]}function Pm(){const[e,t]=S.useState({services:[],isLoading:!0,error:null});return S.useEffect(()=>{(async()=>{try{const[r,o]=await Promise.all([Xu(),Rm()]),i=r.map(s=>({service:s,config:o[s],displayName:zw(s,o[s])}));t({services:i,isLoading:!1,error:null})}catch(r){console.error("Error fetching services with configurations:",r),t(o=>({...o,isLoading:!1,error:"Failed to fetch service configurations."}))}})()},[]),e}const Uo=w.button`
|
|
92
|
-
background-color: transparent;
|
|
93
|
-
color: ${({theme:e})=>e.colors.text};
|
|
94
|
-
border: none;
|
|
95
|
-
border-radius: 50%;
|
|
96
|
-
width: 40px;
|
|
97
|
-
height: 40px;
|
|
98
|
-
font-size: 20px;
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
display: flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
justify-content: center;
|
|
103
|
-
transition: background-color 0.3s;
|
|
104
|
-
|
|
105
|
-
&:hover {
|
|
106
|
-
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:focus {
|
|
110
|
-
outline: none;
|
|
111
|
-
box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.primary};
|
|
112
|
-
}
|
|
113
|
-
`;function _m(){Fo("openContentGenerationModel")}function Fw(){return u.jsx(Uo,{onClick:_m,"aria-label":"Content generation modal",children:"✨"})}const Bw=({currentService:e})=>{const[t,n]=S.useState(""),[r,o]=S.useState(e),[i,s]=S.useState(.7),[l,a]=S.useState("default"),[c,d]=S.useState(),[f,h]=S.useState(!1),[y,v]=S.useState(null),[x,k]=S.useState(null),[m,p]=S.useState(!1),g=()=>p(!1),[C]=Tm(),{services:j,isLoading:b}=Pm();if(Bo("openContentGenerationModel",()=>p(!0)),S.useEffect(()=>{var L;const R=(L=j.find(I=>I.service===r))==null?void 0:L.config;R!=null&&R.modelOverrides?d(R.modelOverrides[l]):d(void 0)},[r,l,j]),!m)return null;const $=async R=>{R.preventDefault(),h(!0),v(null),k(null);try{const L=await bm(t,i,l,{aiService:r,askQuestion:!1});k(L)}catch(L){v(L instanceof Error?L.message:"An unexpected error occurred")}finally{h(!1)}};return u.jsx(Uw,{onClick:R=>R.target===R.currentTarget&&g(),children:u.jsxs(Vw,{children:[u.jsx(Hw,{onClick:g,children:"×"}),u.jsx("h2",{children:"Generate Content"}),u.jsxs(Ww,{onSubmit:$,children:[u.jsxs(ci,{children:["Prompt",u.jsx(Jw,{value:t,onChange:R=>n(R.target.value),placeholder:"Enter your prompt here...",required:!0})]}),u.jsxs(ci,{children:["AI Service",u.jsx(tf,{value:r,onChange:R=>o(R.target.value),disabled:b,children:C.map(R=>u.jsx("option",{value:R,children:R},R))})]}),u.jsxs(ci,{children:["Temperature (",i,")",u.jsxs(Kw,{children:[u.jsx(Gw,{type:"range",min:"0",max:"2",step:"0.1",value:i,onChange:R=>s(Number(R.target.value))}),u.jsx(Qw,{children:i})]})]}),u.jsxs(ci,{children:["Model Type ",c?`(${c})`:"",u.jsxs(tf,{value:l,onChange:R=>a(R.target.value),children:[u.jsx("option",{value:"default",children:"Default"}),u.jsx("option",{value:"cheap",children:"Cheap"}),u.jsx("option",{value:"reasoning",children:"Reasoning"})]})]}),u.jsx(qw,{type:"submit",disabled:f||!t,children:f?"Generating...":"Generate"})]}),y&&u.jsx(Xw,{children:y}),x&&u.jsx(Yw,{children:x.map((R,L)=>u.jsxs("div",{children:[u.jsx("strong",{children:R.name}),u.jsx("pre",{children:JSON.stringify(R,null,2)})]},L))})]})})},Uw=w.div`
|
|
114
|
-
position: fixed;
|
|
115
|
-
top: 0;
|
|
116
|
-
left: 0;
|
|
117
|
-
right: 0;
|
|
118
|
-
bottom: 0;
|
|
119
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
120
|
-
display: flex;
|
|
121
|
-
justify-content: center;
|
|
122
|
-
align-items: center;
|
|
123
|
-
z-index: 1000;
|
|
124
|
-
`,Vw=w.div`
|
|
125
|
-
background: ${({theme:e})=>e.colors.background};
|
|
126
|
-
padding: 2rem;
|
|
127
|
-
border-radius: 8px;
|
|
128
|
-
width: 90%;
|
|
129
|
-
max-width: 800px;
|
|
130
|
-
max-height: 90vh;
|
|
131
|
-
overflow-y: auto;
|
|
132
|
-
position: relative;
|
|
133
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
134
|
-
`,Hw=w.button`
|
|
135
|
-
position: absolute;
|
|
136
|
-
top: 1rem;
|
|
137
|
-
right: 1rem;
|
|
138
|
-
background: none;
|
|
139
|
-
border: none;
|
|
140
|
-
font-size: 1.5rem;
|
|
141
|
-
cursor: pointer;
|
|
142
|
-
color: ${({theme:e})=>e.colors.text};
|
|
143
|
-
&:hover {
|
|
144
|
-
opacity: 0.8;
|
|
145
|
-
}
|
|
146
|
-
`,Ww=w.form`
|
|
147
|
-
display: flex;
|
|
148
|
-
flex-direction: column;
|
|
149
|
-
gap: 1rem;
|
|
150
|
-
`,ci=w.label`
|
|
151
|
-
display: flex;
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
gap: 0.5rem;
|
|
154
|
-
color: ${({theme:e})=>e.colors.text};
|
|
155
|
-
`,Jw=w.textarea`
|
|
156
|
-
padding: 0.5rem;
|
|
157
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
158
|
-
border-radius: 4px;
|
|
159
|
-
background: ${({theme:e})=>e.colors.background};
|
|
160
|
-
color: ${({theme:e})=>e.colors.text};
|
|
161
|
-
min-height: 100px;
|
|
162
|
-
resize: vertical;
|
|
163
|
-
`,tf=w.select`
|
|
164
|
-
padding: 0.5rem;
|
|
165
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
166
|
-
border-radius: 4px;
|
|
167
|
-
background: ${({theme:e})=>e.colors.background};
|
|
168
|
-
color: ${({theme:e})=>e.colors.text};
|
|
169
|
-
`,Kw=w.div`
|
|
170
|
-
display: flex;
|
|
171
|
-
align-items: center;
|
|
172
|
-
gap: 1rem;
|
|
173
|
-
`,Gw=w.input`
|
|
174
|
-
flex: 1;
|
|
175
|
-
`,Qw=w.span`
|
|
176
|
-
min-width: 3rem;
|
|
177
|
-
text-align: right;
|
|
178
|
-
`,qw=w.button`
|
|
179
|
-
padding: 0.5rem 1rem;
|
|
180
|
-
background: ${({theme:e})=>e.colors.primary};
|
|
181
|
-
color: white;
|
|
182
|
-
border: none;
|
|
183
|
-
border-radius: 4px;
|
|
184
|
-
cursor: pointer;
|
|
185
|
-
&:hover {
|
|
186
|
-
opacity: 0.9;
|
|
187
|
-
}
|
|
188
|
-
&:disabled {
|
|
189
|
-
opacity: 0.5;
|
|
190
|
-
cursor: not-allowed;
|
|
191
|
-
}
|
|
192
|
-
`,Yw=w.div`
|
|
193
|
-
margin-top: 1rem;
|
|
194
|
-
padding: 1rem;
|
|
195
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
196
|
-
border-radius: 4px;
|
|
197
|
-
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
198
|
-
white-space: pre-wrap;
|
|
199
|
-
|
|
200
|
-
pre {
|
|
201
|
-
white-space: pre-wrap;
|
|
202
|
-
}
|
|
203
|
-
`,Xw=w.div`
|
|
204
|
-
color: ${({theme:e})=>e.colors.error};
|
|
205
|
-
margin-top: 1rem;
|
|
206
|
-
padding: 0.5rem;
|
|
207
|
-
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
208
|
-
border-radius: 4px;
|
|
209
|
-
`;function Lm(){Fo("openHealthCheckModal")}function Zw(){return u.jsx(Uo,{onClick:Lm,"aria-label":"Health check modal",children:"🏥"})}async function eS(){const e=(await Xu()).map(t=>[t,{status:void 0,lastChecked:new Date().toISOString()}]);return{services:Object.fromEntries(e),timestamp:new Date().toISOString()}}async function tS(e){var t,n;try{const[r]=await bm("say: hello",.7,!0,{aiService:e,askQuestion:!1});return(n=(t=r==null?void 0:r.args)==null?void 0:t.message)!=null&&n.toLowerCase().includes("hello")?"success":void 0}catch{return"error"}}const nS=()=>{const[e,t]=S.useState(!1),[n,r]=S.useState(!1),[o,i]=S.useState(null),[s,l]=S.useState(null),[a,c]=S.useState(null);Bo("openHealthCheckModal",()=>t(!0));const d=()=>t(!1),f=async()=>{r(!0),i(null);try{const v=await eS();l(v),c(new Date);for(const[x,k]of Object.entries(v.services)){const m=Date.now(),p=await tS(x);k.status=p,k.responseTime=Date.now()-m,k.lastChecked=new Date().toISOString(),l(v),c(new Date)}}catch(v){i(v instanceof Error?v.message:"An unexpected error occurred")}finally{r(!1)}};if(S.useEffect(()=>{e&&f()},[e]),!e)return null;const h=v=>{switch(v){case"success":return"✅";case"error":return"❌";case"not_configured":return"⚠️";default:return"❓"}},y=v=>{switch(v){case"success":return"success";case"error":return"error";case"not_configured":return"warning";default:return"default"}};return u.jsx(rS,{onClick:v=>v.target===v.currentTarget&&d(),children:u.jsxs(oS,{children:[u.jsx(sS,{onClick:d,children:"×"}),u.jsxs(iS,{children:[u.jsx("h2",{children:"AI Services Health Check"}),u.jsx(lS,{onClick:f,disabled:n,children:n?"Checking...":"🔄 Refresh"})]}),o&&u.jsx(gS,{children:o}),u.jsx(aS,{children:s&&Object.entries(s.services).map(([v,x])=>u.jsxs(uS,{children:[u.jsxs(cS,{children:[u.jsx(dS,{children:v}),u.jsx(fS,{children:h(x.status)})]}),u.jsxs(pS,{color:y(x.status),children:[u.jsxs("div",{children:["Status: ",x.status]}),x.responseTime&&u.jsxs("div",{children:["Response time: ",x.responseTime,"ms"]}),x.error&&u.jsx(hS,{children:x.error}),u.jsxs(mS,{children:["Last checked: ",new Date(x.lastChecked).toLocaleTimeString()]})]})]},v))}),a&&u.jsxs(vS,{children:["Last updated: ",a.toLocaleTimeString()]}),n&&u.jsx(yS,{children:"Checking AI Services..."})]})})},rS=w.div`
|
|
210
|
-
position: fixed;
|
|
211
|
-
top: 0;
|
|
212
|
-
left: 0;
|
|
213
|
-
right: 0;
|
|
214
|
-
bottom: 0;
|
|
215
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
216
|
-
display: flex;
|
|
217
|
-
justify-content: center;
|
|
218
|
-
align-items: center;
|
|
219
|
-
z-index: 1000;
|
|
220
|
-
`,oS=w.div`
|
|
221
|
-
background: ${({theme:e})=>e.colors.background};
|
|
222
|
-
padding: 2rem;
|
|
223
|
-
border-radius: 8px;
|
|
224
|
-
width: 90%;
|
|
225
|
-
max-width: 800px;
|
|
226
|
-
max-height: 90vh;
|
|
227
|
-
overflow-y: auto;
|
|
228
|
-
position: relative;
|
|
229
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
230
|
-
`,iS=w.div`
|
|
231
|
-
display: flex;
|
|
232
|
-
justify-content: space-between;
|
|
233
|
-
align-items: center;
|
|
234
|
-
margin-bottom: 2rem;
|
|
235
|
-
|
|
236
|
-
h2 {
|
|
237
|
-
margin: 0;
|
|
238
|
-
}
|
|
239
|
-
`,sS=w.button`
|
|
240
|
-
position: absolute;
|
|
241
|
-
top: 1rem;
|
|
242
|
-
right: 1rem;
|
|
243
|
-
background: none;
|
|
244
|
-
border: none;
|
|
245
|
-
font-size: 1.5rem;
|
|
246
|
-
cursor: pointer;
|
|
247
|
-
color: ${({theme:e})=>e.colors.text};
|
|
248
|
-
&:hover {
|
|
249
|
-
opacity: 0.8;
|
|
250
|
-
}
|
|
251
|
-
`,lS=w.button`
|
|
252
|
-
padding: 0.5rem 1rem;
|
|
253
|
-
background: ${({theme:e})=>e.colors.primary};
|
|
254
|
-
color: white;
|
|
255
|
-
border: none;
|
|
256
|
-
border-radius: 4px;
|
|
257
|
-
cursor: pointer;
|
|
258
|
-
&:hover {
|
|
259
|
-
opacity: 0.9;
|
|
260
|
-
}
|
|
261
|
-
&:disabled {
|
|
262
|
-
opacity: 0.5;
|
|
263
|
-
cursor: not-allowed;
|
|
264
|
-
}
|
|
265
|
-
`,aS=w.div`
|
|
266
|
-
display: grid;
|
|
267
|
-
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
268
|
-
gap: 1rem;
|
|
269
|
-
margin-bottom: 1rem;
|
|
270
|
-
`,uS=w.div`
|
|
271
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
272
|
-
border-radius: 4px;
|
|
273
|
-
padding: 1rem;
|
|
274
|
-
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
275
|
-
`,cS=w.div`
|
|
276
|
-
display: flex;
|
|
277
|
-
justify-content: space-between;
|
|
278
|
-
align-items: center;
|
|
279
|
-
margin-bottom: 0.5rem;
|
|
280
|
-
`,dS=w.h3`
|
|
281
|
-
margin: 0;
|
|
282
|
-
font-size: 1.1rem;
|
|
283
|
-
`,fS=w.span`
|
|
284
|
-
font-size: 1.2rem;
|
|
285
|
-
`,pS=w.div`
|
|
286
|
-
color: ${({theme:e,color:t})=>{switch(t){case"success":return e.colors.success;case"error":return e.colors.error;case"warning":return e.colors.warning;default:return e.colors.text}}};
|
|
287
|
-
font-size: 0.9rem;
|
|
288
|
-
`,hS=w.div`
|
|
289
|
-
color: ${({theme:e})=>e.colors.error};
|
|
290
|
-
margin-top: 0.5rem;
|
|
291
|
-
`,mS=w.div`
|
|
292
|
-
color: ${({theme:e})=>e.colors.textSecondary};
|
|
293
|
-
font-size: 0.8rem;
|
|
294
|
-
margin-top: 0.5rem;
|
|
295
|
-
`,vS=w.div`
|
|
296
|
-
text-align: right;
|
|
297
|
-
color: ${({theme:e})=>e.colors.textSecondary};
|
|
298
|
-
font-size: 0.8rem;
|
|
299
|
-
margin-top: 1rem;
|
|
300
|
-
`,gS=w.div`
|
|
301
|
-
color: ${({theme:e})=>e.colors.error};
|
|
302
|
-
margin-bottom: 1rem;
|
|
303
|
-
padding: 0.5rem;
|
|
304
|
-
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
305
|
-
border-radius: 4px;
|
|
306
|
-
`,yS=w.div`
|
|
307
|
-
position: absolute;
|
|
308
|
-
top: 0;
|
|
309
|
-
left: 0;
|
|
310
|
-
right: 0;
|
|
311
|
-
bottom: 0;
|
|
312
|
-
background: rgba(0, 0, 0, 0.3);
|
|
313
|
-
display: flex;
|
|
314
|
-
justify-content: center;
|
|
315
|
-
align-items: center;
|
|
316
|
-
border-radius: 8px;
|
|
317
|
-
color: white;
|
|
318
|
-
font-size: 1.2rem;
|
|
319
|
-
`,Im=w.div`
|
|
320
|
-
position: fixed;
|
|
321
|
-
top: 0;
|
|
322
|
-
left: 0;
|
|
323
|
-
right: 0;
|
|
324
|
-
bottom: 0;
|
|
325
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
326
|
-
display: flex;
|
|
327
|
-
justify-content: center;
|
|
328
|
-
align-items: center;
|
|
329
|
-
z-index: 1000;
|
|
330
|
-
`,Am=w.div`
|
|
331
|
-
background: ${({theme:e})=>e.colors.background};
|
|
332
|
-
padding: 2rem;
|
|
333
|
-
border-radius: 8px;
|
|
334
|
-
width: 90%;
|
|
335
|
-
max-width: 800px;
|
|
336
|
-
max-height: 90vh;
|
|
337
|
-
overflow-y: auto;
|
|
338
|
-
position: relative;
|
|
339
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
340
|
-
`,Om=w.div`
|
|
341
|
-
display: flex;
|
|
342
|
-
justify-content: space-between;
|
|
343
|
-
align-items: center;
|
|
344
|
-
margin-bottom: 2rem;
|
|
345
|
-
|
|
346
|
-
h2 {
|
|
347
|
-
margin: 0;
|
|
348
|
-
}
|
|
349
|
-
`,Dm=w.button`
|
|
350
|
-
position: absolute;
|
|
351
|
-
top: 1rem;
|
|
352
|
-
right: 1rem;
|
|
353
|
-
background: none;
|
|
354
|
-
border: none;
|
|
355
|
-
font-size: 1.5rem;
|
|
356
|
-
cursor: pointer;
|
|
357
|
-
color: ${({theme:e})=>e.colors.text};
|
|
358
|
-
&:hover {
|
|
359
|
-
opacity: 0.8;
|
|
360
|
-
}
|
|
361
|
-
`,xS=w.div`
|
|
362
|
-
display: grid;
|
|
363
|
-
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
364
|
-
gap: 1rem;
|
|
365
|
-
margin-bottom: 1rem;
|
|
366
|
-
`,wS=w.div`
|
|
367
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
368
|
-
border-radius: 4px;
|
|
369
|
-
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
370
|
-
transition: box-shadow 0.2s ease;
|
|
371
|
-
|
|
372
|
-
&:hover {
|
|
373
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
374
|
-
}
|
|
375
|
-
`,SS=w.div`
|
|
376
|
-
cursor: pointer;
|
|
377
|
-
padding: 1rem;
|
|
378
|
-
user-select: none;
|
|
379
|
-
display: flex;
|
|
380
|
-
justify-content: space-between;
|
|
381
|
-
align-items: center;
|
|
382
|
-
width: 100%;
|
|
383
|
-
background: none;
|
|
384
|
-
border: none;
|
|
385
|
-
color: ${({theme:e})=>e.colors.text};
|
|
386
|
-
transition: background-color 0.2s ease;
|
|
387
|
-
|
|
388
|
-
&:hover {
|
|
389
|
-
background-color: ${({theme:e})=>`${e.colors.border}20`};
|
|
390
|
-
}
|
|
391
|
-
`,kS=w.div`
|
|
392
|
-
display: flex;
|
|
393
|
-
align-items: center;
|
|
394
|
-
gap: 0.5rem;
|
|
395
|
-
`,CS=w.h3`
|
|
396
|
-
margin: 0;
|
|
397
|
-
font-size: 1.1rem;
|
|
398
|
-
`,jS=w.span`
|
|
399
|
-
display: inline-block;
|
|
400
|
-
transition: transform 0.2s ease;
|
|
401
|
-
transform: rotate(${({$isCollapsed:e})=>e?"0deg":"180deg"});
|
|
402
|
-
font-size: 0.8rem;
|
|
403
|
-
`,ES=w.div`
|
|
404
|
-
overflow: hidden;
|
|
405
|
-
transition: height 0.3s ease;
|
|
406
|
-
height: ${({$isCollapsed:e})=>e?"0":"auto"};
|
|
407
|
-
padding: ${({$isCollapsed:e})=>e?"0 1rem":"0 1rem 1rem"};
|
|
408
|
-
opacity: ${({$isCollapsed:e})=>e?"0":"1"};
|
|
409
|
-
transition: all 0.3s ease;
|
|
410
|
-
`,bS=w.form`
|
|
411
|
-
display: flex;
|
|
412
|
-
flex-direction: column;
|
|
413
|
-
gap: 1rem;
|
|
414
|
-
`,Ze=w.div`
|
|
415
|
-
display: flex;
|
|
416
|
-
flex-direction: column;
|
|
417
|
-
gap: 0.5rem;
|
|
418
|
-
`,et=w.label`
|
|
419
|
-
font-size: 0.9rem;
|
|
420
|
-
color: ${({theme:e})=>e.colors.text};
|
|
421
|
-
`,Mn=w.input`
|
|
422
|
-
padding: 0.5rem;
|
|
423
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
424
|
-
border-radius: 4px;
|
|
425
|
-
background: ${({theme:e})=>e.colors.background};
|
|
426
|
-
color: ${({theme:e})=>e.colors.text};
|
|
427
|
-
font-size: 0.9rem;
|
|
428
|
-
|
|
429
|
-
&:focus {
|
|
430
|
-
outline: none;
|
|
431
|
-
border-color: ${({theme:e})=>e.colors.primary};
|
|
432
|
-
}
|
|
433
|
-
`,NS=w.button`
|
|
434
|
-
padding: 0.5rem 1rem;
|
|
435
|
-
background: ${({theme:e})=>e.colors.primary};
|
|
436
|
-
color: white;
|
|
437
|
-
border: none;
|
|
438
|
-
border-radius: 4px;
|
|
439
|
-
cursor: pointer;
|
|
440
|
-
font-size: 0.9rem;
|
|
441
|
-
|
|
442
|
-
&:hover {
|
|
443
|
-
opacity: 0.9;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
&:disabled {
|
|
447
|
-
opacity: 0.5;
|
|
448
|
-
cursor: not-allowed;
|
|
449
|
-
}
|
|
450
|
-
`,$S=w.div`
|
|
451
|
-
color: ${({theme:e})=>e.colors.error};
|
|
452
|
-
margin-bottom: 1rem;
|
|
453
|
-
padding: 0.5rem;
|
|
454
|
-
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
455
|
-
border-radius: 4px;
|
|
456
|
-
`,RS=w.div`
|
|
457
|
-
color: ${({theme:e})=>e.colors.success};
|
|
458
|
-
margin-bottom: 1rem;
|
|
459
|
-
padding: 0.5rem;
|
|
460
|
-
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
461
|
-
border-radius: 4px;
|
|
462
|
-
`,TS=w.div`
|
|
463
|
-
color: ${({theme:e})=>e.colors.error};
|
|
464
|
-
`,PS=w.div`
|
|
465
|
-
position: absolute;
|
|
466
|
-
top: 0;
|
|
467
|
-
left: 0;
|
|
468
|
-
right: 0;
|
|
469
|
-
bottom: 0;
|
|
470
|
-
background: rgba(0, 0, 0, 0.3);
|
|
471
|
-
display: flex;
|
|
472
|
-
justify-content: center;
|
|
473
|
-
align-items: center;
|
|
474
|
-
border-radius: 8px;
|
|
475
|
-
color: white;
|
|
476
|
-
font-size: 1.2rem;
|
|
477
|
-
`,zn=e=>e==="vertex-ai"||e==="vertex-ai-claude",kl=e=>e==="vertex-ai-claude",_S=e=>e==="openai",LS=({serviceType:e,config:t,onUpdate:n,isLoading:r,isExpanded:o,onCardClick:i})=>{var I,W;const[s,l]=S.useState(""),[a,c]=S.useState(!!(t!=null&&t.hasApiKey)),[d,f]=S.useState(((I=t==null?void 0:t.modelOverrides)==null?void 0:I.default)||""),[h,y]=S.useState(((W=t==null?void 0:t.modelOverrides)==null?void 0:W.cheap)||""),[v,x]=S.useState((t==null?void 0:t.googleCloudProjectId)||""),[k,m]=S.useState((t==null?void 0:t.googleCloudRegion)||""),[p,g]=S.useState((t==null?void 0:t.openaiBaseUrl)||""),[C,j]=S.useState(null);S.useEffect(()=>{var F,Q;c(!!(t!=null&&t.hasApiKey)),f(((F=t==null?void 0:t.modelOverrides)==null?void 0:F.default)||""),y(((Q=t==null?void 0:t.modelOverrides)==null?void 0:Q.cheap)||""),x((t==null?void 0:t.googleCloudProjectId)||""),m((t==null?void 0:t.googleCloudRegion)||""),g((t==null?void 0:t.openaiBaseUrl)||"")},[t]);const b=()=>{if(zn(e)){if(!v)return j("GCP Project ID is required for Vertex AI services"),!1;if(kl(e)&&!k)return j("GCP Region is required for Vertex AI Claude"),!1}else if(!a&&!s)return j("API Key is required"),!1;return j(null),!0},$=F=>{if(F.preventDefault(),!b())return;const Q={modelOverrides:{default:d||void 0,cheap:h||void 0}};zn(e)?(Q.googleCloudProjectId=v,kl(e)&&(Q.googleCloudRegion=k)):(Q.apiKey=s||void 0,Q.openaiBaseUrl=p||void 0),n(Q)},R=S.useCallback(()=>{i&&i(e)},[i,e]),L=F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),R())};return u.jsxs(wS,{children:[u.jsxs(SS,{onClick:R,onKeyDown:L,role:"button",tabIndex:0,"aria-expanded":!!o,"aria-controls":`config-content-${e}`,children:[u.jsxs(kS,{children:[u.jsx(CS,{children:e}),!zn(e)&&a&&u.jsx("span",{title:"API Key is set",children:"🔑"}),zn(e)&&v&&u.jsx("span",{title:"GCP Project ID is set",children:"🌐"})]}),u.jsx(jS,{$isCollapsed:!o,children:"▼"})]}),u.jsx(ES,{$isCollapsed:!o,id:`config-content-${e}`,"aria-hidden":!o,children:u.jsxs(bS,{onSubmit:$,children:[!zn(e)&&u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`apiKey-${e}`,children:"API Key"}),u.jsx(Mn,{id:`apiKey-${e}`,type:"password",value:s,onChange:F=>l(F.target.value),placeholder:a?"API key is set":"Enter API key","aria-label":`API Key for ${e}`})]}),_S(e)&&u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`baseUrl-${e}`,children:"Base URL"}),u.jsx(Mn,{id:`baseUrl-${e}`,type:"text",value:p,onChange:F=>g(F.target.value),placeholder:"Enter base URL","aria-label":`Base URL for ${e}`})]}),zn(e)&&u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`projectId-${e}`,children:"GCP Project ID"}),u.jsx(Mn,{id:`projectId-${e}`,type:"text",value:v,onChange:F=>x(F.target.value),placeholder:"Enter GCP Project ID","aria-label":`GCP Project ID for ${e}`,required:!0})]}),kl(e)&&u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`region-${e}`,children:"GCP Region"}),u.jsx(Mn,{id:`region-${e}`,type:"text",value:k,onChange:F=>m(F.target.value),placeholder:"Enter GCP Region","aria-label":`GCP Region for ${e}`,required:!0})]}),u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`defaultModel-${e}`,children:"Default Model"}),u.jsx(Mn,{id:`defaultModel-${e}`,type:"text",value:d,onChange:F=>f(F.target.value),placeholder:"Enter model name","aria-label":`Default Model for ${e}`})]}),u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`cheapModel-${e}`,children:"Cheap Model"}),u.jsx(Mn,{id:`cheapModel-${e}`,type:"text",value:h,onChange:F=>y(F.target.value),placeholder:"Enter model name","aria-label":`Cheap Model for ${e}`})]}),C&&u.jsx(TS,{role:"alert","aria-live":"polite",children:C}),u.jsx(NS,{type:"submit",disabled:r,"aria-busy":r,children:r?"Updating...":"Update Configuration"})]})})]})};function Mm(){Fo("openServiceConfigurationModal")}function IS(){return u.jsx(Uo,{onClick:Mm,"aria-label":"Open service configuration",children:"⚙️"})}const zm=e=>e==="vertex-ai"||e==="vertex-ai-claude",AS=e=>e==="openai",OS=(e,t)=>{var r,o;const n=["Configuration updated successfully for "+e];return zm(e)?(t.googleCloudProjectId&&n.push(`GCP Project ID: ${t.googleCloudProjectId}`),e==="vertex-ai-claude"&&t.googleCloudRegion&&n.push(`GCP Region: ${t.googleCloudRegion}`)):t.apiKey&&n.push("API key has been updated"),(r=t.modelOverrides)!=null&&r.default&&n.push(`Default model: ${t.modelOverrides.default}`),(o=t.modelOverrides)!=null&&o.cheap&&n.push(`Cheap model: ${t.modelOverrides.cheap}`),AS(e)&&"openaiBaseUrl"in t&&n.push(`OpenAI base URL: ${t.openaiBaseUrl}`),n.join(`
|
|
478
|
-
`)},DS=(e,t)=>{if(zm(e)){if(!t.googleCloudProjectId)return`GCP Project ID is required for ${e}`;if(e==="vertex-ai-claude"&&!t.googleCloudRegion)return"GCP Region is required for Vertex AI Claude"}return null},MS=()=>{const[e,t]=S.useState(!1),[n,r]=S.useState(!1),[o,i]=S.useState(null),[s,l]=S.useState(null),[a,c]=S.useState(),[d]=Tm();Bo("openServiceConfigurationModal",()=>t(!0));const f=()=>{t(!1),i(null),l(null)};S.useEffect(()=>{e&&h()},[e]);const h=async()=>{r(!0),i(null);try{const m=await Rm();c(m)}catch(m){i(m instanceof Error?m.message:"Failed to fetch configurations")}finally{r(!1)}},y=async(m,p)=>{r(!0),i(null),l(null);const g=DS(m,p);if(g){i(g),r(!1);return}try{await Mw({serviceType:m,config:p}),await h(),l(OS(m,p))}catch(C){let j="Failed to update configuration";C instanceof Error&&(j=C.message,C.message.includes("auth")?j=`Authentication error for ${m}: ${C.message}`:C.message.includes("permission")&&(j=`Permission error for ${m}: ${C.message}`)),i(j)}finally{r(!1)}},[v,x]=S.useState(null),k=S.useCallback(m=>{x(p=>p===m?null:m)},[x]);return e?u.jsx(Im,{onClick:m=>m.target===m.currentTarget&&f(),role:"dialog","aria-modal":"true","aria-labelledby":"service-config-title",children:u.jsxs(Am,{children:[u.jsx(Dm,{onClick:f,"aria-label":"Close configuration modal",children:"×"}),u.jsx(Om,{children:u.jsx("h2",{id:"service-config-title",children:"AI Services Configuration"})}),o&&u.jsx($S,{role:"alert","aria-live":"polite",children:o}),s&&u.jsx(RS,{role:"status","aria-live":"polite",children:s.split(`
|
|
479
|
-
`).map((m,p)=>u.jsx("div",{children:m},p))}),u.jsx(xS,{children:a?d.map(m=>u.jsx(LS,{serviceType:m,config:a[m],onUpdate:p=>y(m,p),isLoading:n,isExpanded:v===m,onCardClick:k},m)):u.jsx("div",{"aria-live":"polite",children:"Loading configurations..."})}),n&&u.jsx(PS,{role:"status","aria-live":"polite",children:"Updating configurations..."})]})}):null},Fm=Do`
|
|
480
|
-
from {
|
|
481
|
-
opacity: 0;
|
|
482
|
-
}
|
|
483
|
-
to {
|
|
484
|
-
opacity: 1;
|
|
485
|
-
}
|
|
486
|
-
`,zS=Do`
|
|
487
|
-
from {
|
|
488
|
-
transform: translateX(100%);
|
|
489
|
-
}
|
|
490
|
-
to {
|
|
491
|
-
transform: translateX(0);
|
|
492
|
-
}
|
|
493
|
-
`,FS=w.button`
|
|
494
|
-
background: none;
|
|
495
|
-
border: none;
|
|
496
|
-
font-size: 1.5rem;
|
|
497
|
-
cursor: pointer;
|
|
498
|
-
padding: 8px;
|
|
499
|
-
color: ${({theme:e})=>e.colors.text};
|
|
500
|
-
transition: color 0.2s ease;
|
|
501
|
-
display: flex;
|
|
502
|
-
align-items: center;
|
|
503
|
-
justify-content: center;
|
|
504
|
-
|
|
505
|
-
&:hover {
|
|
506
|
-
color: ${({theme:e})=>e.colors.primary};
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
&:focus {
|
|
510
|
-
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
511
|
-
outline-offset: 2px;
|
|
512
|
-
border-radius: 4px;
|
|
513
|
-
}
|
|
514
|
-
`,BS=w.div`
|
|
515
|
-
position: fixed;
|
|
516
|
-
top: 0;
|
|
517
|
-
left: 0;
|
|
518
|
-
right: 0;
|
|
519
|
-
bottom: 0;
|
|
520
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
521
|
-
z-index: 998;
|
|
522
|
-
display: ${({isOpen:e})=>e?"block":"none"};
|
|
523
|
-
animation: ${Fm} 0.2s ease;
|
|
524
|
-
`,US=w.div`
|
|
525
|
-
position: absolute;
|
|
526
|
-
${({position:e})=>e?Pe`
|
|
527
|
-
top: ${e.top??"auto"};
|
|
528
|
-
right: ${e.right??"auto"};
|
|
529
|
-
left: ${e.left??"auto"};
|
|
530
|
-
bottom: ${e.bottom??"auto"};
|
|
531
|
-
`:Pe`
|
|
532
|
-
top: 100%;
|
|
533
|
-
right: 0;
|
|
534
|
-
`}
|
|
535
|
-
background-color: ${({theme:e})=>e.colors.pageBackground};
|
|
536
|
-
border-radius: 8px;
|
|
537
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
538
|
-
padding: 8px 0;
|
|
539
|
-
min-width: 200px;
|
|
540
|
-
z-index: 999;
|
|
541
|
-
opacity: ${({isOpen:e})=>e?1:0};
|
|
542
|
-
visibility: ${({isOpen:e})=>e?"visible":"hidden"};
|
|
543
|
-
transform-origin: top right;
|
|
544
|
-
animation: ${({isOpen:e})=>e?Pe`
|
|
545
|
-
${zS} 0.2s ease,
|
|
546
|
-
${Fm} 0.2s ease
|
|
547
|
-
`:"none"};
|
|
548
|
-
|
|
549
|
-
@media (max-width: 576px) {
|
|
550
|
-
position: fixed;
|
|
551
|
-
top: 0;
|
|
552
|
-
right: 0;
|
|
553
|
-
bottom: 0;
|
|
554
|
-
min-width: 250px;
|
|
555
|
-
border-radius: 0;
|
|
556
|
-
border-top-left-radius: 8px;
|
|
557
|
-
border-bottom-left-radius: 8px;
|
|
558
|
-
transform-origin: center right;
|
|
559
|
-
}
|
|
560
|
-
`,Cl=w.div`
|
|
561
|
-
padding: 12px 16px;
|
|
562
|
-
cursor: pointer;
|
|
563
|
-
transition: background-color 0.2s ease;
|
|
564
|
-
display: flex;
|
|
565
|
-
align-items: center;
|
|
566
|
-
gap: 8px;
|
|
567
|
-
color: ${({theme:e})=>e.colors.text};
|
|
568
|
-
|
|
569
|
-
&:hover {
|
|
570
|
-
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
&:focus-within {
|
|
574
|
-
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
575
|
-
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
576
|
-
outline-offset: -2px;
|
|
577
|
-
}
|
|
578
|
-
`,VS=w.div`
|
|
579
|
-
position: relative;
|
|
580
|
-
display: inline-block;
|
|
581
|
-
`,HS=w.div`
|
|
582
|
-
position: fixed;
|
|
583
|
-
top: 0;
|
|
584
|
-
left: 0;
|
|
585
|
-
right: 0;
|
|
586
|
-
bottom: 0;
|
|
587
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
588
|
-
display: flex;
|
|
589
|
-
justify-content: center;
|
|
590
|
-
align-items: center;
|
|
591
|
-
z-index: 1000;
|
|
592
|
-
`,WS=w.div`
|
|
593
|
-
background: ${({theme:e})=>e.colors.background};
|
|
594
|
-
padding: 2rem;
|
|
595
|
-
border-radius: 8px;
|
|
596
|
-
width: 90%;
|
|
597
|
-
max-width: 800px;
|
|
598
|
-
max-height: 90vh;
|
|
599
|
-
overflow-y: auto;
|
|
600
|
-
position: relative;
|
|
601
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
602
|
-
`,JS=w.div`
|
|
603
|
-
display: flex;
|
|
604
|
-
justify-content: space-between;
|
|
605
|
-
align-items: center;
|
|
606
|
-
margin-bottom: 2rem;
|
|
607
|
-
|
|
608
|
-
h2 {
|
|
609
|
-
margin: 0;
|
|
610
|
-
}
|
|
611
|
-
`,KS=w.button`
|
|
612
|
-
position: absolute;
|
|
613
|
-
top: 1rem;
|
|
614
|
-
right: 1rem;
|
|
615
|
-
background: none;
|
|
616
|
-
border: none;
|
|
617
|
-
font-size: 1.5rem;
|
|
618
|
-
cursor: pointer;
|
|
619
|
-
color: ${({theme:e})=>e.colors.text};
|
|
620
|
-
&:hover {
|
|
621
|
-
opacity: 0.8;
|
|
622
|
-
}
|
|
623
|
-
`,GS=w.div`
|
|
624
|
-
display: flex;
|
|
625
|
-
flex-direction: column;
|
|
626
|
-
gap: 1rem;
|
|
627
|
-
margin-bottom: 1rem;
|
|
628
|
-
`,QS=w.div`
|
|
629
|
-
color: ${({theme:e})=>e.colors.error};
|
|
630
|
-
margin-bottom: 1rem;
|
|
631
|
-
padding: 0.5rem;
|
|
632
|
-
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
633
|
-
border-radius: 4px;
|
|
634
|
-
`,qS=w.div`
|
|
635
|
-
color: ${({theme:e})=>e.colors.success};
|
|
636
|
-
margin-bottom: 1rem;
|
|
637
|
-
padding: 0.5rem;
|
|
638
|
-
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
639
|
-
border-radius: 4px;
|
|
640
|
-
`,YS=w.div`
|
|
641
|
-
position: absolute;
|
|
642
|
-
top: 0;
|
|
643
|
-
left: 0;
|
|
644
|
-
right: 0;
|
|
645
|
-
bottom: 0;
|
|
646
|
-
background: rgba(0, 0, 0, 0.3);
|
|
647
|
-
display: flex;
|
|
648
|
-
justify-content: center;
|
|
649
|
-
align-items: center;
|
|
650
|
-
border-radius: 8px;
|
|
651
|
-
color: white;
|
|
652
|
-
font-size: 1.2rem;
|
|
653
|
-
`,ds=({value:e,onChange:t,disabled:n})=>{const{services:r,isLoading:o,error:i}=Pm(),s=l=>{t(l.target.value)};return u.jsxs(XS,{children:[u.jsxs(ZS,{id:"aiService",value:e,onChange:s,disabled:n||o||i!==null,children:[u.jsx("option",{value:"",children:"Select AI Service"}),r.map(({service:l,displayName:a})=>u.jsx("option",{value:l,children:a},l))]}),o&&u.jsx(ek,{children:"Loading services..."}),i&&u.jsx(tk,{children:i})]})},XS=w.div`
|
|
654
|
-
display: flex;
|
|
655
|
-
flex-direction: column;
|
|
656
|
-
gap: 4px;
|
|
657
|
-
`,ZS=w.select`
|
|
658
|
-
padding: 8px;
|
|
659
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
660
|
-
border-radius: 4px;
|
|
661
|
-
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
662
|
-
color: ${({theme:e})=>e.colors.inputText};
|
|
663
|
-
font-size: 14px;
|
|
664
|
-
max-width: 200px; /* Ensure enough space for longer options */
|
|
665
|
-
|
|
666
|
-
&:disabled {
|
|
667
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
668
|
-
cursor: not-allowed;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
option {
|
|
672
|
-
padding: 4px;
|
|
673
|
-
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
674
|
-
color: ${({theme:e})=>e.colors.inputText};
|
|
675
|
-
}
|
|
676
|
-
`,ek=w.div`
|
|
677
|
-
color: ${({theme:e})=>e.colors.text};
|
|
678
|
-
font-size: 14px;
|
|
679
|
-
font-style: italic;
|
|
680
|
-
`,tk=w.div`
|
|
681
|
-
color: ${({theme:e})=>e.colors.error};
|
|
682
|
-
font-size: 14px;
|
|
683
|
-
`;function Zu(){Fo("openGenaicodeConfigModal")}function Bm(){return u.jsx(Uo,{onClick:Zu,"aria-label":"Open Genaicode configuration",children:"🐺"})}const nk=({options:e,onOptionsChange:t})=>{const[n,r]=S.useState(!1),[o,i]=S.useState(!1),[s,l]=S.useState(null),[a,c]=S.useState(null);Bo("openGenaicodeConfigModal",()=>r(!0));const d=()=>{r(!1),l(null),c(null)},f=async x=>{i(!0),l(null),c(null);try{t(x),c("Configuration updated successfully")}catch{l("Failed to update configuration")}finally{i(!1)}},h=x=>{const{name:k,value:m,type:p}=x.target,g=p==="checkbox"?x.target.checked:m;f({...e,[k]:g})},y=x=>{f({...e,aiService:x})},v=x=>{const k=x.target.value.split(",").map(m=>m.trim());f({...e,ignorePatterns:k})};return n?u.jsx(HS,{onClick:x=>x.target===x.currentTarget&&d(),role:"dialog","aria-modal":"true","aria-labelledby":"genaicode-config-title",children:u.jsxs(WS,{children:[u.jsx(KS,{onClick:d,"aria-label":"Close configuration modal",children:"×"}),u.jsx(JS,{children:u.jsx("h2",{id:"genaicode-config-title",children:"Genaicode Configuration"})}),s&&u.jsx(QS,{role:"alert","aria-live":"polite",children:s}),a&&u.jsx(qS,{role:"status","aria-live":"polite",children:a}),u.jsxs(GS,{children:[u.jsxs(Kr,{children:[u.jsx(wt,{htmlFor:"aiService",children:"Default AI Service:"}),u.jsx(ds,{value:e.aiService,onChange:y,disabled:o})]}),u.jsxs(Kr,{children:[u.jsx(wt,{htmlFor:"contentMask",children:"Content Mask:"}),u.jsx(nf,{type:"text",id:"contentMask",name:"contentMask",value:e.contentMask||"",onChange:h,disabled:o})]}),u.jsxs(Kr,{children:[u.jsx(wt,{htmlFor:"ignorePatterns",children:"Ignore Patterns:"}),u.jsx(nf,{type:"text",id:"ignorePatterns",name:"ignorePatterns",value:e.ignorePatterns?e.ignorePatterns.join(", "):"",onChange:v,disabled:o}),u.jsx("small",{children:"Comma-separated list of patterns"})]}),u.jsxs(Kr,{children:[u.jsx(wt,{children:"File Operations:"}),u.jsxs(wt,{htmlFor:"allowFileCreate",children:[u.jsx("input",{type:"checkbox",id:"allowFileCreate",name:"allowFileCreate",checked:e.allowFileCreate!==!1,onChange:h,disabled:o}),"Allow File Create"]}),u.jsxs(wt,{htmlFor:"allowFileDelete",children:[u.jsx("input",{type:"checkbox",id:"allowFileDelete",name:"allowFileDelete",checked:e.allowFileDelete!==!1,onChange:h,disabled:o}),"Allow File Delete"]}),u.jsxs(wt,{htmlFor:"allowDirectoryCreate",children:[u.jsx("input",{type:"checkbox",id:"allowDirectoryCreate",name:"allowDirectoryCreate",checked:e.allowDirectoryCreate!==!1,onChange:h,disabled:o}),"Allow Directory Create"]}),u.jsxs(wt,{htmlFor:"allowFileMove",children:[u.jsx("input",{type:"checkbox",id:"allowFileMove",name:"allowFileMove",checked:e.allowFileMove!==!1,onChange:h,disabled:o}),"Allow File Move"]})]}),u.jsxs(Kr,{children:[u.jsx(wt,{children:"Notification Settings:"}),u.jsxs(wt,{htmlFor:"muteNotifications",children:[u.jsx("input",{type:"checkbox",id:"muteNotifications",name:"muteNotifications",checked:e.muteNotifications===!0,onChange:h,disabled:o}),"Mute Sound Notifications"]})]})]}),o&&u.jsx(YS,{role:"status","aria-live":"polite",children:"Updating configuration..."})]})}):null},Kr=w.div`
|
|
684
|
-
margin-bottom: 16px;
|
|
685
|
-
`,wt=w.label`
|
|
686
|
-
display: block;
|
|
687
|
-
margin-bottom: 4px;
|
|
688
|
-
color: ${e=>e.theme.colors.text};
|
|
689
|
-
`,nf=w.input`
|
|
690
|
-
width: 100%;
|
|
691
|
-
padding: 8px;
|
|
692
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
693
|
-
border-radius: 4px;
|
|
694
|
-
background-color: ${e=>e.theme.colors.inputBg};
|
|
695
|
-
color: ${e=>e.theme.colors.inputText};
|
|
696
|
-
|
|
697
|
-
&:disabled {
|
|
698
|
-
background-color: ${e=>e.theme.colors.disabled};
|
|
699
|
-
cursor: not-allowed;
|
|
700
|
-
}
|
|
701
|
-
`,rk="https://github.com/gtanczyk/genaicode/issues",ok=({menuItems:e,isOpen:t,onToggle:n,className:r,buttonAriaLabel:o="Toggle menu",menuAriaLabel:i="Navigation menu",position:s})=>{const l=S.useRef(null),a=S.useRef(null),c=S.useRef(null);S.useEffect(()=>{const y=x=>{var k;t&&l.current&&!l.current.contains(x.target)&&!((k=c.current)!=null&&k.contains(x.target))&&n()},v=x=>{var k;t&&x.key==="Escape"&&(n(),(k=c.current)==null||k.focus())};return document.addEventListener("mousedown",y),document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",v)}},[t,n]),S.useEffect(()=>{var y;t&&((y=a.current)==null||y.focus())},[t]);const d=y=>{var k,m;if(!t)return;const v=Array.from(((k=l.current)==null?void 0:k.querySelectorAll('[role="menuitem"]'))||[]),x=v.indexOf(document.activeElement);switch(y.key){case"ArrowDown":y.preventDefault(),x<v.length-1?v[x+1].focus():v[0].focus();break;case"ArrowUp":y.preventDefault(),x>0?v[x-1].focus():v[v.length-1].focus();break;case"Home":y.preventDefault(),v[0].focus();break;case"End":y.preventDefault(),v[v.length-1].focus();break;case"Enter":case" ":y.preventDefault(),x>=0&&(e[x].onClick(),n(),(m=c.current)==null||m.focus());break}},f=y=>{var v;y(),n(),(v=c.current)==null||v.focus()},h=()=>{var y;window.open(rk,"_blank","noopener,noreferrer"),n(),(y=c.current)==null||y.focus()};return u.jsxs(VS,{className:r,children:[u.jsx(FS,{onClick:n,"aria-expanded":t,"aria-haspopup":"true","aria-controls":"menu-items","aria-label":o,ref:c,children:"☰"}),u.jsx(BS,{isOpen:t,onClick:n}),u.jsxs(US,{isOpen:t,position:s,ref:l,role:"menu","aria-label":i,id:"menu-items",onKeyDown:d,children:[e.map((y,v)=>u.jsxs(Cl,{onClick:()=>f(y.onClick),role:"menuitem",tabIndex:t?0:-1,ref:v===0?a:null,"aria-label":y.ariaLabel,children:[y.content," ",y.ariaLabel]},y.key||v)),u.jsxs(Cl,{onClick:()=>f(()=>Zu()),role:"menuitem",tabIndex:t?0:-1,"aria-label":"Genaicode Config",children:[u.jsx(Bm,{})," Genaicode Config"]},"genaicode-config"),u.jsx(Cl,{onClick:h,role:"menuitem",tabIndex:t?0:-1,"aria-label":"Report Bug",children:"🐛 Report Bug"},"report-bug")]})]})};function Um(){Fo("openRcConfigModal")}const ik=({rcConfig:e})=>{const[t,n]=S.useState(!1);Bo("openRcConfigModal",()=>n(!0));const r=()=>{n(!1)};return!t||!e?null:u.jsx(Im,{onClick:o=>o.target===o.currentTarget&&r(),role:"dialog","aria-modal":"true","aria-labelledby":"rc-config-title",children:u.jsxs(Am,{children:[u.jsx(Dm,{onClick:r,"aria-label":"Close RC configuration modal",children:"×"}),u.jsx(Om,{children:u.jsx("h2",{id:"rc-config-title",children:"RC Configuration"})}),u.jsxs(sk,{children:[u.jsxs(Ze,{children:[u.jsx(et,{children:"Root Directory"}),u.jsx(Fn,{children:e.rootDir})]}),e.lintCommand&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Lint Command"}),u.jsx(Fn,{children:e.lintCommand})]}),e.extensions&&e.extensions.length>0&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Extensions"}),u.jsx(Fn,{children:e.extensions.join(", ")})]}),e.ignorePaths&&e.ignorePaths.length>0&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Ignore Paths"}),u.jsx(Fn,{children:e.ignorePaths.join(", ")})]}),e.importantContext&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Important Context"}),u.jsx(Fn,{children:e.importantContext.files?`Files: ${e.importantContext.files.join(", ")}`:"None"})]}),e.modelOverrides&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Model Overrides"}),u.jsx(Fn,{children:u.jsx("pre",{children:JSON.stringify(e.modelOverrides,null,2)})})]})]})]})})},sk=w.div`
|
|
702
|
-
display: flex;
|
|
703
|
-
flex-direction: column;
|
|
704
|
-
gap: 1rem;
|
|
705
|
-
margin-top: 1rem;
|
|
706
|
-
`,Fn=w.div`
|
|
707
|
-
color: ${({theme:e})=>e.colors.text};
|
|
708
|
-
font-family: monospace;
|
|
709
|
-
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
710
|
-
padding: 0.5rem;
|
|
711
|
-
border-radius: 4px;
|
|
712
|
-
overflow-x: auto;
|
|
713
|
-
|
|
714
|
-
pre {
|
|
715
|
-
margin: 0;
|
|
716
|
-
white-space: pre-wrap;
|
|
717
|
-
}
|
|
718
|
-
`,lk=()=>u.jsx(ak,{onClick:Um,children:u.jsx(uk,{"aria-label":"Show RC configuration",children:"ℹ️"})}),ak=w.div`
|
|
719
|
-
display: inline-block;
|
|
720
|
-
cursor: pointer;
|
|
721
|
-
`,uk=w.span`
|
|
722
|
-
font-size: 24px;
|
|
723
|
-
color: ${e=>e.theme.colors.primary};
|
|
724
|
-
`,ck="0.9.4",dk=({themeToggle:e,chatInterface:t,inputArea:n,usage:r,toggleTheme:o})=>{const[i,s]=S.useState(!1),l=[{content:u.jsx(IS,{}),ariaLabel:"Service Configuration",key:"service-config",onClick:Mm},{content:u.jsx(Zw,{}),ariaLabel:"Health Check",key:"health-check",onClick:Lm},{content:u.jsx(Fw,{}),ariaLabel:"Content Generation",key:"content-gen",onClick:_m},{content:u.jsx(Bm,{}),ariaLabel:"Genaicode Config",key:"genaicode-config",onClick:Zu},{content:e,ariaLabel:"Theme Toggle",key:"theme-toggle",onClick:o},{content:u.jsx(lk,{}),ariaLabel:"Information",key:"info",onClick:Um}];return u.jsxs(fk,{children:[u.jsxs(pk,{children:[u.jsx(hk,{children:u.jsxs(mk,{children:[u.jsx(vk,{children:"GenAIcode"}),u.jsxs(gk,{children:["v",ck]})]})}),u.jsxs(yk,{children:[u.jsx(xk,{children:u.jsx(Qx,{usage:r})}),u.jsx(wk,{children:u.jsx(ok,{menuItems:l,isOpen:i,onToggle:()=>s(!i),buttonAriaLabel:"Toggle navigation menu",menuAriaLabel:"Navigation menu",position:{top:"100%",right:0}})})]})]}),u.jsxs(Sk,{children:[u.jsx(kk,{children:t}),u.jsx(Ck,{children:n})]})]})},fk=w.div`
|
|
725
|
-
display: flex;
|
|
726
|
-
flex-direction: column;
|
|
727
|
-
height: 100vh;
|
|
728
|
-
max-width: 1200px;
|
|
729
|
-
margin: 0 auto;
|
|
730
|
-
padding: 0 10px;
|
|
731
|
-
`,pk=w.header`
|
|
732
|
-
position: relative;
|
|
733
|
-
display: flex;
|
|
734
|
-
justify-content: space-between;
|
|
735
|
-
align-items: center;
|
|
736
|
-
padding: 10px 0;
|
|
737
|
-
flex-wrap: nowrap;
|
|
738
|
-
gap: 10px;
|
|
739
|
-
`,hk=w.div`
|
|
740
|
-
display: flex;
|
|
741
|
-
align-items: center;
|
|
742
|
-
gap: 10px;
|
|
743
|
-
`,mk=w.div`
|
|
744
|
-
position: relative;
|
|
745
|
-
`,vk=w.h1`
|
|
746
|
-
text-transform: uppercase;
|
|
747
|
-
font-family: 'Press Start 2P', system-ui;
|
|
748
|
-
color: ${({theme:e})=>e.colors.primary};
|
|
749
|
-
margin: 0;
|
|
750
|
-
font-size: clamp(0.6rem, 2.5vw, 1.5rem);
|
|
751
|
-
white-space: nowrap;
|
|
752
|
-
overflow: hidden;
|
|
753
|
-
text-overflow: ellipsis;
|
|
754
|
-
`,gk=w.span`
|
|
755
|
-
position: absolute;
|
|
756
|
-
bottom: 0;
|
|
757
|
-
right: 0;
|
|
758
|
-
font-size: 0.6rem;
|
|
759
|
-
color: ${({theme:e})=>e.colors.text};
|
|
760
|
-
background-color: ${({theme:e})=>e.colors.backgroundAlt};
|
|
761
|
-
padding: 2px 4px;
|
|
762
|
-
border-radius: 3px;
|
|
763
|
-
transform: translateY(100%);
|
|
764
|
-
white-space: nowrap;
|
|
765
|
-
`,yk=w.div`
|
|
766
|
-
display: flex;
|
|
767
|
-
align-items: center;
|
|
768
|
-
gap: 16px;
|
|
769
|
-
flex-wrap: nowrap;
|
|
770
|
-
flex-shrink: 0;
|
|
771
|
-
|
|
772
|
-
@media (max-width: 576px) {
|
|
773
|
-
gap: 8px;
|
|
774
|
-
}
|
|
775
|
-
`,xk=w.div`
|
|
776
|
-
flex-shrink: 1;
|
|
777
|
-
min-width: 0;
|
|
778
|
-
`,wk=w.div`
|
|
779
|
-
display: flex;
|
|
780
|
-
align-items: center;
|
|
781
|
-
|
|
782
|
-
@media (max-width: 576px) {
|
|
783
|
-
position: relative;
|
|
784
|
-
}
|
|
785
|
-
`,Sk=w.main`
|
|
786
|
-
display: flex;
|
|
787
|
-
flex-direction: column;
|
|
788
|
-
flex-grow: 1;
|
|
789
|
-
min-height: 0;
|
|
790
|
-
position: relative;
|
|
791
|
-
z-index: 1;
|
|
792
|
-
`,kk=w.div`
|
|
793
|
-
flex-grow: 1;
|
|
794
|
-
overflow: hidden;
|
|
795
|
-
margin-bottom: 20px;
|
|
796
|
-
`,Ck=w.div`
|
|
797
|
-
flex-shrink: 0;
|
|
798
|
-
`,jk=500,Ek=()=>{const[e,t]=S.useState(""),[n,r]=S.useState(!1),[o,i]=S.useState("idle"),[s,l]=S.useState([]),[a,c]=S.useState(null),[d,f]=S.useState("dark"),[h,y]=S.useState(),[v,x]=S.useState({}),[k,m]=S.useState(null),[p,g]=S.useState(null),[C,j]=S.useState(!1),b=S.useRef(null),$=()=>{f(d==="light"?"dark":"light")};S.useEffect(()=>{(async()=>{try{const[Q,lt,O,q,B,P]=await Promise.all([Da(),Ma(),Zd(),ef(),Aw(),Ow()]);r(Q!=="idle"),i(Q),c(lt),l(O.filter(A=>!!A.message).map(A=>({...A.message,data:A.data}))),y(q),x(B),m(P)}catch(Q){console.error("Failed to fetch initial data:",Q)}})()},[]);const R=S.useCallback(()=>{if(!C){j(!0);const F=async()=>{try{const[Q,lt,O,q]=await Promise.all([Da(),Ma(),Zd(),ef()]);r(Q!=="idle"),i(Q),c(lt),l(O.filter(B=>!!B.message).map(B=>({...B.message,data:B.data}))),y(q)}catch(Q){console.error("Failed to poll data:",Q)}b.current=setTimeout(F,jk)};F()}},[C]),L=S.useCallback(()=>{C&&(j(!1),b.current&&(clearTimeout(b.current),b.current=null))},[C]),I=S.useCallback(async()=>{try{await Nm(),i("paused")}catch(F){console.error("Failed to pause execution:",F)}},[]),W=S.useCallback(async()=>{try{await $m(),i("executing")}catch(F){console.error("Failed to resume execution:",F)}},[]);return{currentPrompt:e,setCurrentPrompt:t,isExecuting:n,setIsExecuting:r,executionStatus:o,setExecutionStatus:i,chatMessages:s,setChatMessages:l,currentQuestion:a,theme:d,usage:h,codegenOptions:v,rcConfig:k,lastFinishedExecutionId:p,toggleTheme:$,setCodegenOptions:x,setCurrentQuestion:c,setLastFinishedExecutionId:g,startPolling:R,stopPolling:L,handlePauseExecution:I,handleResumeExecution:W}},bk=({setCurrentPrompt:e,setIsExecuting:t,setExecutionStatus:n,setCurrentQuestion:r,codegenOptions:o,setCodegenOptions:i})=>{const s=async(h,y)=>{e(h),t(!0);try{if(t(!0),n("executing"),await Da()==="executing"){console.warn("Execution is already executing");return}_w(h,o,y.length>0?y:void 0)}catch(v){console.error("Failed to execute codegen:",v)}finally{t(!1),n("idle")}},l=async(h,y,v)=>{const x=await Ma();if(x)try{r(null),i({...o,aiService:v??o.aiService}),await Iw(x.id,h,y,{...o,aiService:v??o.aiService})}catch(k){console.error("Failed to submit answer:",k)}},a=async()=>{try{r(null),await Lw()}catch(h){console.error("Failed to interrupt execution:",h)}},c=S.useCallback(h=>{i(h)},[i]),d=S.useCallback(async()=>{try{await Nm()}catch(h){console.error("Failed to pause execution:",h)}},[n]),f=S.useCallback(async()=>{try{await $m()}catch(h){console.error("Failed to resume execution:",h)}},[n]);return{handleExecute:s,handleQuestionSubmit:l,handleInterrupt:a,handleOptionsChange:c,handlePauseExecution:d,handleResumeExecution:f}};var sr=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(sr||{}),ec=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e.MESSAGE_EDITABLE="editable",e))(ec||{});function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}function V(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Vm={},Hm=S.createContext(Vm),Nk=(e,t)=>N({},e,t),$k=()=>S.useContext(Hm),tc=S.createContext(()=>{});tc.displayName="JVR.DispatchShowTools";function Rk(){return S.useReducer(Nk,Vm)}function Wm(){return S.useContext(tc)}var Jm=e=>{var{initial:t,dispatch:n,children:r}=e;return u.jsx(Hm.Provider,{value:t,children:u.jsx(tc.Provider,{value:n,children:r})})};Jm.displayName="JVR.ShowTools";var Km={},Gm=S.createContext(Km),Tk=(e,t)=>N({},e,t),zs=()=>S.useContext(Gm),nc=S.createContext(()=>{});nc.displayName="JVR.DispatchExpands";function Pk(){return S.useReducer(Tk,Km)}function _k(){return S.useContext(nc)}var Qm=e=>{var{initial:t,dispatch:n,children:r}=e;return u.jsx(Gm.Provider,{value:t,children:u.jsx(nc.Provider,{value:n,children:r})})};Qm.displayName="JVR.Expands";var qm={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Ym=S.createContext(qm),Lk=(e,t)=>N({},e,t),ee=()=>S.useContext(Ym),rc=S.createContext(()=>{});rc.displayName="JVR.DispatchTypes";function Ik(){return S.useReducer(Lk,qm)}function Ak(){return S.useContext(rc)}function Xm(e){var{initial:t,dispatch:n,children:r}=e;return u.jsx(Ym.Provider,{value:t,children:u.jsx(rc.Provider,{value:n,children:r})})}Xm.displayName="JVR.Types";var Ok=["style"];function Zm(e){var{style:t}=e,n=V(e,Ok),r=N({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return u.jsx("svg",N({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:r},n,{children:u.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Zm.displayName="JVR.TriangleArrow";var ev={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:u.jsx(Zm,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},tv=S.createContext(ev),Dk=(e,t)=>N({},e,t),Fe=()=>S.useContext(tv),oc=S.createContext(()=>{});oc.displayName="JVR.DispatchSymbols";function Mk(){return S.useReducer(Dk,ev)}function zk(){return S.useContext(oc)}var nv=e=>{var{initial:t,dispatch:n,children:r}=e;return u.jsx(tv.Provider,{value:t,children:u.jsx(oc.Provider,{value:n,children:r})})};nv.displayName="JVR.Symbols";var rv={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},ov=S.createContext(rv),Fk=(e,t)=>N({},e,t),st=()=>S.useContext(ov),ic=S.createContext(()=>{});ic.displayName="JVR.DispatchSection";function Bk(){return S.useReducer(Fk,rv)}function Uk(){return S.useContext(ic)}var iv=e=>{var{initial:t,dispatch:n,children:r}=e;return u.jsx(ov.Provider,{value:t,children:u.jsx(ic.Provider,{value:n,children:r})})};iv.displayName="JVR.Section";var sv={objectSortKeys:!1,indentWidth:15},sc=S.createContext(sv);sc.displayName="JVR.Context";var lv=S.createContext(()=>{});lv.displayName="JVR.DispatchContext";function Vk(e,t){return N({},e,t)}var An=()=>S.useContext(sc),av=e=>{var{children:t,initialState:n,initialTypes:r}=e,[o,i]=S.useReducer(Vk,Object.assign({},sv,n)),[s,l]=Rk(),[a,c]=Pk(),[d,f]=Ik(),[h,y]=Mk(),[v,x]=Bk();return S.useEffect(()=>i(N({},n)),[n]),u.jsx(sc.Provider,{value:o,children:u.jsx(lv.Provider,{value:i,children:u.jsx(Jm,{initial:s,dispatch:l,children:u.jsx(Qm,{initial:a,dispatch:c,children:u.jsx(Xm,{initial:N({},d,r),dispatch:f,children:u.jsx(nv,{initial:h,dispatch:y,children:u.jsx(iv,{initial:v,dispatch:x,children:t})})})})})})})};av.displayName="JVR.Provider";function Hk(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var Wk=["isNumber","value","parentValue","keyName","keys"],Jk=["as","render"],Kk=["as","render"],Gk=["as","render"],Qk=["as","style","render"],qk=["as","render"],Yk=["as","render"],Xk=["as","render"],Zk=["as","render"],za=e=>{var{Quote:t={}}=Fe(),{isNumber:n,value:r,parentValue:o,keyName:i,keys:s}=e,l=V(e,Wk);if(n)return null;var{as:a,render:c}=t,d=V(t,Jk),f=a||"span",h=N({},l,d),y={value:r,parentValue:o,keyName:i,keys:s||(i?[i]:[])},v=c&&typeof c=="function"&&c(h,y);return v||u.jsx(f,N({},h))};za.displayName="JVR.Quote";var To=e=>{var{ValueQuote:t={}}=Fe(),n=N({},(Hk(e),e)),{as:r,render:o}=t,i=V(t,Kk),s=r||"span",l=N({},n,i),a=o&&typeof o=="function"&&o(l,{});return a||u.jsx(s,N({},l))};To.displayName="JVR.ValueQuote";var uv=e=>{var{value:t,parentValue:n,keyName:r,keys:o}=e,{Colon:i={}}=Fe(),{as:s,render:l}=i,a=V(i,Gk),c=s||"span",d=l&&typeof l=="function"&&l(a,{value:t,parentValue:n,keyName:r,keys:o||(r?[r]:[])});return d||u.jsx(c,N({},a))};uv.displayName="JVR.Colon";var cv=e=>{var{Arrow:t={}}=Fe(),n=zs(),{expandKey:r,style:o,value:i,parentValue:s,keyName:l,keys:a}=e,c=!!n[r],{as:d,style:f,render:h}=t,y=V(t,Qk),v=d||"span",x=h&&typeof h=="function",k=N({},y,{"data-expanded":c,style:N({},f,o)}),m={value:i,parentValue:s,keyName:l,keys:a||(l?[l]:[])},p=x&&h(k,m);return p||u.jsx(v,N({},y,{style:N({},f,o)}))};cv.displayName="JVR.Arrow";var dv=e=>{var{isBrackets:t,value:n,parentValue:r,keyName:o,keys:i}=e,{BracketsLeft:s={},BraceLeft:l={}}=Fe(),a={value:n,parentValue:r,keyName:o,keys:i||(o?[o]:[])};if(t){var{as:c,render:d}=s,f=V(s,qk),h=c||"span",y=d&&typeof d=="function"&&d(f,a);return y||u.jsx(h,N({},f))}var{as:v,render:x}=l,k=V(l,Yk),m=v||"span",p=x&&typeof x=="function"&&x(k,a);return p||u.jsx(m,N({},k))};dv.displayName="JVR.BracketsOpen";var lc=e=>{var{isBrackets:t,isVisiable:n,value:r,parentValue:o,keyName:i,keys:s}=e,l={value:r,parentValue:o,keyName:i,keys:s||(i?[i]:[])};if(!n)return null;var{BracketsRight:a={},BraceRight:c={}}=Fe();if(t){var{as:d,render:f}=a,h=V(a,Xk),y=d||"span",v=f&&typeof f=="function"&&f(h,l);return v||u.jsx(y,N({},h))}var{as:x,render:k}=c,m=V(c,Zk),p=x||"span",g=k&&typeof k=="function"&&k(m,l);return g||u.jsx(p,N({},m))};lc.displayName="JVR.BracketsClose";var fv=e=>{var t,{value:n,expandKey:r,level:o,keys:i=[]}=e,s=zs(),l=Array.isArray(n),{collapsed:a,shouldExpandNodeInitially:c}=An(),d=n instanceof Set,f=typeof a=="boolean"?a:typeof a=="number"?o>a:!1,h=(t=s[r])!=null?t:f,y=Object.keys(n).length;if(s[r]===void 0&&c&&c(h,{value:n,keys:i,level:o})||h||y===0)return null;var v={paddingLeft:4};return u.jsx("div",{style:v,children:u.jsx(lc,{isBrackets:l||d,isVisiable:!0})})};fv.displayName="JVR.NestedClose";var eC=["as","render"],tC=["as","render"],nC=["as","render"],rC=["as","render"],oC=["as","render"],iC=["as","render"],sC=["as","render"],lC=["as","render"],aC=["as","render"],uC=["as","render"],cC=["as","render"],dC=["as","render"],fC=["as","render"],Fa=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},pv=e=>{var{value:t,keyName:n}=e,{Set:r={},displayDataTypes:o}=ee(),i=t instanceof Set;if(!i||!o)return null;var{as:s,render:l}=r,a=V(r,eC),c=l&&typeof l=="function",d=c&&l(a,{type:"type",value:t,keyName:n});if(d)return d;var f=s||"span";return u.jsx(f,N({},a))};pv.displayName="JVR.SetComp";var hv=e=>{var{value:t,keyName:n}=e,{Map:r={},displayDataTypes:o}=ee(),i=t instanceof Map;if(!i||!o)return null;var{as:s,render:l}=r,a=V(r,tC),c=l&&typeof l=="function",d=c&&l(a,{type:"type",value:t,keyName:n});if(d)return d;var f=s||"span";return u.jsx(f,N({},a))};hv.displayName="JVR.MapComp";var yt={opacity:.75,paddingRight:4},mv=e=>{var{children:t="",keyName:n}=e,{Str:r={},displayDataTypes:o}=ee(),{shortenTextAfterLength:i=30}=An(),{as:s,render:l}=r,a=V(r,nC),c=t,[d,f]=S.useState(i&&c.length>i);S.useEffect(()=>f(i&&c.length>i),[i]);var h=s||"span",y=N({},yt,r.style||{});i>0&&(a.style=N({},a.style,{cursor:c.length<=i?"initial":"pointer"}),c.length>i&&(a.onClick=()=>{f(!d)}));var v=d?c.slice(0,i)+"...":c,x=l&&typeof l=="function",k=x&&l(N({},a,{style:y}),{type:"type",value:t,keyName:n}),m=x&&l(N({},a,{children:v,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(k||u.jsx(h,N({},a,{style:y}))),m||u.jsxs(S.Fragment,{children:[u.jsx(To,{}),u.jsx(h,N({},a,{className:"w-rjv-value",children:v})),u.jsx(To,{})]})]})};mv.displayName="JVR.TypeString";var vv=e=>{var{children:t,keyName:n}=e,{True:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,rC),a=i||"span",c=N({},yt,r.style||{}),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=d&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),h||u.jsx(a,N({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};vv.displayName="JVR.TypeTrue";var gv=e=>{var{children:t,keyName:n}=e,{False:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,oC),a=i||"span",c=N({},yt,r.style||{}),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=d&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),h||u.jsx(a,N({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};gv.displayName="JVR.TypeFalse";var yv=e=>{var{children:t,keyName:n}=e,{Float:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,iC),a=i||"span",c=N({},yt,r.style||{}),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=d&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),h||u.jsx(a,N({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};yv.displayName="JVR.TypeFloat";var xv=e=>{var{children:t,keyName:n}=e,{Int:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,sC),a=i||"span",c=N({},yt,r.style||{}),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=d&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),h||u.jsx(a,N({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};xv.displayName="JVR.TypeInt";var wv=e=>{var{children:t,keyName:n}=e,{Bigint:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,lC),a=i||"span",c=N({},yt,r.style||{}),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=d&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),h||u.jsx(a,N({},l,{className:"w-rjv-value",children:Fa(t==null?void 0:t.toString())}))]})};wv.displayName="JVR.TypeFloat";var Sv=e=>{var{children:t,keyName:n}=e,{Url:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,aC),a=i||"span",c=N({},yt,r.style),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=d&&s(N({},l,{children:t==null?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),h||u.jsxs("a",N({href:t==null?void 0:t.href,target:"_blank"},l,{className:"w-rjv-value",children:[u.jsx(To,{}),t==null?void 0:t.href,u.jsx(To,{})]}))]})};Sv.displayName="JVR.TypeUrl";var kv=e=>{var{children:t,keyName:n}=e,{Date:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,uC),a=i||"span",c=N({},yt,r.style||{}),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=t instanceof Date?t.toLocaleString():t,y=d&&s(N({},l,{children:h,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),y||u.jsx(a,N({},l,{className:"w-rjv-value",children:h}))]})};kv.displayName="JVR.TypeDate";var Cv=e=>{var{children:t,keyName:n}=e,{Undefined:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,cC),a=i||"span",c=N({},yt,r.style||{}),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=d&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),h]})};Cv.displayName="JVR.TypeUndefined";var jv=e=>{var{children:t,keyName:n}=e,{Null:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,dC),a=i||"span",c=N({},yt,r.style||{}),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=d&&s(N({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),h]})};jv.displayName="JVR.TypeNull";var Ev=e=>{var{children:t,keyName:n}=e,{Nan:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,fC),a=i||"span",c=N({},yt,r.style||{}),d=s&&typeof s=="function",f=d&&s(N({},l,{style:c}),{type:"type",value:t,keyName:n}),h=d&&s(N({},l,{children:t==null?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(S.Fragment,{children:[o&&(f||u.jsx(a,N({},l,{style:c}))),h]})};Ev.displayName="JVR.TypeNan";var pC=e=>Number(e)===e&&e%1!==0||isNaN(e),bv=e=>{var{value:t,keyName:n}=e,r={keyName:n};return t instanceof URL?u.jsx(Sv,N({},r,{children:t})):typeof t=="string"?u.jsx(mv,N({},r,{children:t})):t===!0?u.jsx(vv,N({},r,{children:t})):t===!1?u.jsx(gv,N({},r,{children:t})):t===null?u.jsx(jv,N({},r,{children:t})):t===void 0?u.jsx(Cv,N({},r,{children:t})):t instanceof Date?u.jsx(kv,N({},r,{children:t})):typeof t=="number"&&isNaN(t)?u.jsx(Ev,N({},r,{children:t})):typeof t=="number"&&pC(t)?u.jsx(yv,N({},r,{children:t})):typeof t=="bigint"?u.jsx(wv,N({},r,{children:t})):typeof t=="number"?u.jsx(xv,N({},r,{children:t})):null};bv.displayName="JVR.Value";function dn(e,t,n){var r=zk(),o=[e.className,t.className].filter(Boolean).join(" "),i=N({},e,t,{className:o,style:N({},e.style,t.style),children:t.children||e.children});S.useEffect(()=>r({[n]:i}),[t])}function qe(e,t,n){var r=Ak(),o=[e.className,t.className].filter(Boolean).join(" "),i=N({},e,t,{className:o,style:N({},e.style,t.style),children:t.children||e.children});S.useEffect(()=>r({[n]:i}),[t])}function Pr(e,t,n){var r=Uk(),o=[e.className,t.className].filter(Boolean).join(" "),i=N({},e,t,{className:o,style:N({},e.style,t.style),children:t.children||e.children});S.useEffect(()=>r({[n]:i}),[t])}var hC=["as","render"],Nv=e=>{var{KeyName:t={}}=st();return Pr(t,e,"KeyName"),null};Nv.displayName="JVR.KeyName";var $v=e=>{var{children:t,value:n,parentValue:r,keyName:o,keys:i}=e,s=typeof t=="number",l={color:s?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:a={}}=st(),{as:c,render:d}=a,f=V(a,hC);f.style=N({},f.style,l);var h=c||"span",y=d&&typeof d=="function"&&d(N({},f,{children:t}),{value:n,parentValue:r,keyName:o,keys:i||(o?[o]:[])});return y||u.jsx(h,N({},f,{children:t}))};$v.displayName="JVR.KeyNameComp";var mC=["children","value","parentValue","keyName","keys"],vC=["as","render","children"],Rv=e=>{var{Row:t={}}=st();return Pr(t,e,"Row"),null};Rv.displayName="JVR.Row";var Tv=e=>{var{children:t,value:n,parentValue:r,keyName:o,keys:i}=e,s=V(e,mC),{Row:l={}}=st(),{as:a,render:c}=l,d=V(l,vC),f=a||"div",h=c&&typeof c=="function"&&c(N({},s,d,{children:t}),{value:n,keyName:o,parentValue:r,keys:i});return h||u.jsx(f,N({},s,d,{children:t}))};Tv.displayName="JVR.RowComp";function gC(e){var t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}function yC(e){var{value:t,highlightUpdates:n,highlightContainer:r}=e,o=gC(t),i=S.useMemo(()=>{if(!n||o===void 0)return!1;if(typeof t!=typeof o)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(o)?!1:t!==o;if(Array.isArray(t)!==Array.isArray(o))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==o)return!0},[n,t]);S.useEffect(()=>{r&&r.current&&i&&"animate"in r.current&&r.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[i,t,r])}var xC=["keyName","value","parentValue","expandKey","keys"],wC=["as","render"],ac=e=>{var{keyName:t,value:n,parentValue:r,expandKey:o,keys:i}=e,s=V(e,xC),{onCopied:l,enableClipboard:a}=An(),c=$k(),d=c[o],[f,h]=S.useState(!1),{Copied:y={}}=st();if(a===!1||!d)return null;var v=j=>{j.stopPropagation();var b="";typeof n=="number"&&n===1/0?b="Infinity":typeof n=="number"&&isNaN(n)?b="NaN":typeof n=="bigint"?b=Fa(n):n instanceof Date?b=n.toLocaleString():b=JSON.stringify(n,(R,L)=>typeof L=="bigint"?Fa(L):L,2),l&&l(b,n),h(!0);var $=navigator.clipboard||{writeText(R){return new Promise((L,I)=>{var W=document.createElement("textarea");W.style.position="absolute",W.style.opacity="0",W.style.left="-99999999px",W.value=R,document.body.appendChild(W),W.select(),document.execCommand("copy")?L():I(),W.remove()})}};$.writeText(b).then(()=>{var R=setTimeout(()=>{h(!1),clearTimeout(R)},3e3)}).catch(R=>{})},x={style:{display:"inline-flex"},fill:f?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:v},{render:k}=y,m=V(y,wC),p=N({},m,s,x,{style:N({},m.style,s.style,x.style)}),g=k&&typeof k=="function",C=g&&k(N({},p,{"data-copied":f}),{value:n,keyName:t,keys:i,parentValue:r});return C||(f?u.jsx("svg",N({viewBox:"0 0 32 36"},p,{children:u.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):u.jsx("svg",N({viewBox:"0 0 32 36"},p,{children:u.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};ac.displayName="JVR.Copied";function Pv(){var e=S.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var _v=e=>{var t,{value:n,expandKey:r="",level:o,keys:i=[]}=e,s=zs(),{objectSortKeys:l,indentWidth:a,collapsed:c,shouldExpandNodeInitially:d}=An(),f=Array.isArray(n),h=typeof c=="boolean"?c:typeof c=="number"?o>c:!1,y=(t=s[r])!=null?t:h;if(s[r]===void 0&&d&&d(y,{value:n,keys:i,level:o})||y)return null;var v=f?Object.entries(n).map(k=>[Number(k[0]),k[1]]):Object.entries(n);l&&(v=l===!0?v.sort((k,m)=>{var[p]=k,[g]=m;return typeof p=="string"&&typeof g=="string"?p.localeCompare(g):0}):v.sort((k,m)=>{var[p,g]=k,[C,j]=m;return typeof p=="string"&&typeof C=="string"?l(p,C,g,j):0}));var x={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:a,marginLeft:6};return u.jsx("div",{className:"w-rjv-wrap",style:x,children:v.map((k,m)=>{var[p,g]=k;return u.jsx(Lv,{parentValue:n,keyName:p,keys:[...i,p],value:g,level:o},m)})})};_v.displayName="JVR.KeyValues";var uc=e=>{var{keyName:t,parentValue:n,keys:r,value:o}=e,{highlightUpdates:i}=An(),s=typeof t=="number",l=S.useRef(null);yC({value:o,highlightUpdates:i,highlightContainer:l});var a={keyName:t,value:o,keys:r,parentValue:n};return u.jsxs(S.Fragment,{children:[u.jsxs("span",{ref:l,children:[u.jsx(za,N({isNumber:s,"data-placement":"left"},a)),u.jsx($v,N({},a,{children:t})),u.jsx(za,N({isNumber:s,"data-placement":"right"},a))]}),u.jsx(uv,N({},a))]})};uc.displayName="JVR.KayName";var Lv=e=>{var{keyName:t,value:n,parentValue:r,level:o=0,keys:i=[]}=e,s=Wm(),l=Pv(),a=Array.isArray(n),c=n instanceof Set,d=n instanceof Map,f=n instanceof Date,h=n instanceof URL,y=n&&typeof n=="object"&&!a&&!c&&!d&&!f&&!h,v=y||a||c||d;if(v){var x=c?Array.from(n):d?Object.fromEntries(n):n;return u.jsx(cc,{keyName:t,value:x,parentValue:r,initialValue:n,keys:i,level:o+1})}var k={onMouseEnter:()=>s({[l]:!0}),onMouseLeave:()=>s({[l]:!1})};return u.jsxs(Tv,N({className:"w-rjv-line",value:n,keyName:t,keys:i,parentValue:r},k,{children:[u.jsx(uc,{keyName:t,value:n,keys:i,parentValue:r}),u.jsx(bv,{keyName:t,value:n}),u.jsx(ac,{keyName:t,value:n,keys:i,parentValue:r,expandKey:l})]}))};Lv.displayName="JVR.KeyValuesItem";var SC=["value","keyName"],kC=["as","render"],Iv=e=>{var{CountInfoExtra:t={}}=st();return Pr(t,e,"CountInfoExtra"),null};Iv.displayName="JVR.CountInfoExtra";var Av=e=>{var{value:t={},keyName:n}=e,r=V(e,SC),{CountInfoExtra:o={}}=st(),{as:i,render:s}=o,l=V(o,kC);if(!s&&!l.children)return null;var a=i||"span",c=s&&typeof s=="function",d=N({},l,r),f=c&&s(d,{value:t,keyName:n});return f||u.jsx(a,N({},d))};Av.displayName="JVR.CountInfoExtraComps";var CC=["value","keyName"],jC=["as","render"],Ov=e=>{var{CountInfo:t={}}=st();return Pr(t,e,"CountInfo"),null};Ov.displayName="JVR.CountInfo";var Dv=e=>{var{value:t={},keyName:n}=e,r=V(e,CC),{displayObjectSize:o}=An(),{CountInfo:i={}}=st();if(!o)return null;var{as:s,render:l}=i,a=V(i,jC),c=s||"span";a.style=N({},a.style,e.style);var d=Object.keys(t).length;a.children||(a.children=d+" item"+(d===1?"":"s"));var f=N({},a,r),h=l&&typeof l=="function",y=h&&l(N({},f,{"data-length":d}),{value:t,keyName:n});return y||u.jsx(c,N({},f))};Dv.displayName="JVR.CountInfoComp";var EC=["as","render"],Mv=e=>{var{Ellipsis:t={}}=st();return Pr(t,e,"Ellipsis"),null};Mv.displayName="JVR.Ellipsis";var zv=e=>{var{isExpanded:t,value:n,keyName:r}=e,{Ellipsis:o={}}=st(),{as:i,render:s}=o,l=V(o,EC),a=i||"span",c=s&&typeof s=="function"&&s(N({},l,{"data-expanded":t}),{value:n,keyName:r});return c||(!t||typeof n=="object"&&Object.keys(n).length==0?null:u.jsx(a,N({},l)))};zv.displayName="JVR.EllipsisComp";var Fv=e=>{var t,{keyName:n,expandKey:r,keys:o=[],initialValue:i,value:s,parentValue:l,level:a}=e,c=zs(),d=_k(),{onExpand:f,collapsed:h,shouldExpandNodeInitially:y}=An(),v=Array.isArray(s),x=s instanceof Set,k=typeof h=="boolean"?h:typeof h=="number"?a>h:!1,m=typeof s=="object",p=(t=c[r])!=null?t:k,g=y&&y(p,{value:s,keys:o,level:a});c[r]===void 0&&g!==void 0&&(p=g);var C=()=>{var W={expand:!p,value:s,keyid:r,keyName:n};f&&f(W),d({[r]:W.expand})},j={display:"inline-flex",alignItems:"center"},b={transform:"rotate("+(p?"-90":"0")+"deg)",transition:"all 0.3s"},$=Object.keys(s).length,R=$!==0&&(v||x||m),L={style:j};R&&(L.onClick=C);var I={keyName:n,value:s,keys:o,parentValue:l};return u.jsxs("span",N({},L,{children:[R&&u.jsx(cv,N({style:b,expandKey:r},I)),(n||typeof n=="number")&&u.jsx(uc,N({},I)),u.jsx(pv,{value:i,keyName:n}),u.jsx(hv,{value:i,keyName:n}),u.jsx(dv,N({isBrackets:v||x},I)),u.jsx(zv,{keyName:n,value:s,isExpanded:p}),u.jsx(lc,N({isVisiable:p||!R,isBrackets:v||x},I)),u.jsx(Dv,{value:s,keyName:n}),u.jsx(Av,{value:s,keyName:n}),u.jsx(ac,{keyName:n,value:s,expandKey:r,parentValue:l,keys:o})]}))};Fv.displayName="JVR.NestedOpen";var bC=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],cc=S.forwardRef((e,t)=>{var{className:n="",parentValue:r,level:o=1,value:i,initialValue:s,keys:l,keyName:a}=e,c=V(e,bC),d=Wm(),f=Pv(),h=[n,"w-rjv-inner"].filter(Boolean).join(" "),y={onMouseEnter:()=>d({[f]:!0}),onMouseLeave:()=>d({[f]:!1})};return u.jsxs("div",N({className:h,ref:t},c,y,{children:[u.jsx(Fv,{expandKey:f,value:i,level:o,keys:l,parentValue:r,keyName:a,initialValue:s}),u.jsx(_v,{expandKey:f,value:i,level:o,keys:l,parentValue:r,keyName:a}),u.jsx(fv,{expandKey:f,value:i,level:o,keys:l})]}))});cc.displayName="JVR.Container";var Bv=e=>{var{BraceLeft:t={}}=Fe();return dn(t,e,"BraceLeft"),null};Bv.displayName="JVR.BraceLeft";var Uv=e=>{var{BraceRight:t={}}=Fe();return dn(t,e,"BraceRight"),null};Uv.displayName="JVR.BraceRight";var Vv=e=>{var{BracketsLeft:t={}}=Fe();return dn(t,e,"BracketsLeft"),null};Vv.displayName="JVR.BracketsLeft";var Hv=e=>{var{BracketsRight:t={}}=Fe();return dn(t,e,"BracketsRight"),null};Hv.displayName="JVR.BracketsRight";var Wv=e=>{var{Arrow:t={}}=Fe();return dn(t,e,"Arrow"),null};Wv.displayName="JVR.Arrow";var Jv=e=>{var{Colon:t={}}=Fe();return dn(t,e,"Colon"),null};Jv.displayName="JVR.Colon";var Kv=e=>{var{Quote:t={}}=Fe();return dn(t,e,"Quote"),null};Kv.displayName="JVR.Quote";var Gv=e=>{var{ValueQuote:t={}}=Fe();return dn(t,e,"ValueQuote"),null};Gv.displayName="JVR.ValueQuote";var Qv=e=>{var{Bigint:t={}}=ee();return qe(t,e,"Bigint"),null};Qv.displayName="JVR.Bigint";var qv=e=>{var{Date:t={}}=ee();return qe(t,e,"Date"),null};qv.displayName="JVR.Date";var Yv=e=>{var{False:t={}}=ee();return qe(t,e,"False"),null};Yv.displayName="JVR.False";var Xv=e=>{var{Float:t={}}=ee();return qe(t,e,"Float"),null};Xv.displayName="JVR.Float";var Zv=e=>{var{Int:t={}}=ee();return qe(t,e,"Int"),null};Zv.displayName="JVR.Int";var eg=e=>{var{Map:t={}}=ee();return qe(t,e,"Map"),null};eg.displayName="JVR.Map";var tg=e=>{var{Nan:t={}}=ee();return qe(t,e,"Nan"),null};tg.displayName="JVR.Nan";var ng=e=>{var{Null:t={}}=ee();return qe(t,e,"Null"),null};ng.displayName="JVR.Null";var rg=e=>{var{Set:t={}}=ee();return qe(t,e,"Set"),null};rg.displayName="JVR.Set";var og=e=>{var{Str:t={}}=ee();return qe(t,e,"Str"),null};og.displayName="JVR.StringText";var ig=e=>{var{True:t={}}=ee();return qe(t,e,"True"),null};ig.displayName="JVR.True";var sg=e=>{var{Undefined:t={}}=ee();return qe(t,e,"Undefined"),null};sg.displayName="JVR.Undefined";var lg=e=>{var{Url:t={}}=ee();return qe(t,e,"Url"),null};lg.displayName="JVR.Url";var ag=e=>{var{Copied:t={}}=st();return Pr(t,e,"Copied"),null};ag.displayName="JVR.Copied";var NC=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],G=S.forwardRef((e,t)=>{var{className:n="",style:r,value:o,children:i,collapsed:s,shouldExpandNodeInitially:l,indentWidth:a=15,displayObjectSize:c=!0,shortenTextAfterLength:d=30,highlightUpdates:f=!0,enableClipboard:h=!0,displayDataTypes:y=!0,objectSortKeys:v=!1,onExpand:x,onCopied:k}=e,m=V(e,NC),p=N({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},r),g=["w-json-view-container","w-rjv",n].filter(Boolean).join(" ");return u.jsxs(av,{initialState:{value:o,objectSortKeys:v,indentWidth:a,shouldExpandNodeInitially:l,displayObjectSize:c,collapsed:s,enableClipboard:h,shortenTextAfterLength:d,highlightUpdates:f,onCopied:k,onExpand:x},initialTypes:{displayDataTypes:y},children:[u.jsx(cc,N({value:o},m,{ref:t,className:g,style:p})),i]})});G.Bigint=Qv;G.Date=qv;G.False=Yv;G.Float=Xv;G.Int=Zv;G.Map=eg;G.Nan=tg;G.Null=ng;G.Set=rg;G.String=og;G.True=ig;G.Undefined=sg;G.Url=lg;G.ValueQuote=Gv;G.Arrow=Wv;G.Colon=Jv;G.Quote=Kv;G.Ellipsis=Mv;G.BraceLeft=Bv;G.BraceRight=Uv;G.BracketsLeft=Vv;G.BracketsRight=Hv;G.Copied=ag;G.CountInfo=Ov;G.CountInfoExtra=Iv;G.KeyName=Nv;G.Row=Rv;G.displayName="JVR.JsonView";var $C={"--w-rjv-font-family":"monospace","--w-rjv-color":"#0184a6","--w-rjv-key-string":"#0184a6","--w-rjv-background-color":"#202020","--w-rjv-line-color":"#323232","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#656565","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#0184a6","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#1896b6","--w-rjv-brackets-color":"#1896b6","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#649bd8","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#076678","--w-rjv-type-undefined-color":"#586e75"},RC={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};const TC=w.pre`
|
|
799
|
-
margin-top: 8px;
|
|
800
|
-
padding: 8px;
|
|
801
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
802
|
-
border-radius: 4px;
|
|
803
|
-
font-size: 0.9em;
|
|
804
|
-
overflow-x: auto;
|
|
805
|
-
white-space: pre-wrap;
|
|
806
|
-
word-wrap: break-word;
|
|
807
|
-
|
|
808
|
-
.w-json-view-container {
|
|
809
|
-
background: none !important;
|
|
810
|
-
}
|
|
811
|
-
`,ug=({data:e})=>{const t=Vx();return u.jsx(TC,{children:typeof e=="object"?u.jsx(G,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?$C:RC}):JSON.stringify(e,null,2)})},Vo=w.div`
|
|
812
|
-
display: flex;
|
|
813
|
-
&[data-type='user'] {
|
|
814
|
-
justify-content: flex-end;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
&[data-type='assistant'] {
|
|
818
|
-
justify-content: flex-start;
|
|
819
|
-
}
|
|
820
|
-
`,PC=w.div`
|
|
821
|
-
color: ${e=>e.theme.colors.text};
|
|
822
|
-
border-radius: 12px;
|
|
823
|
-
padding: 8px 12px;
|
|
824
|
-
max-width: 70%;
|
|
825
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
826
|
-
|
|
827
|
-
${Vo}[data-type='user'] & {
|
|
828
|
-
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
829
|
-
color: ${e=>e.theme.colors.userMessageText};
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
/* Add subtle transition for edit mode */
|
|
833
|
-
transition: box-shadow 0.2s ease-in-out;
|
|
834
|
-
|
|
835
|
-
&[data-edit-mode='true'] {
|
|
836
|
-
box-shadow: 0 0 0 2px ${e=>e.theme.colors.primary};
|
|
837
|
-
}
|
|
838
|
-
`,_C=w.div`
|
|
839
|
-
font-weight: bold;
|
|
840
|
-
margin-bottom: 4px;
|
|
841
|
-
display: flex;
|
|
842
|
-
justify-content: space-between;
|
|
843
|
-
align-items: center;
|
|
844
|
-
`,LC=w.pre`
|
|
845
|
-
white-space: pre-wrap;
|
|
846
|
-
word-wrap: break-word;
|
|
847
|
-
font-family: inherit;
|
|
848
|
-
margin: 0;
|
|
849
|
-
`,IC=w.textarea`
|
|
850
|
-
width: 100%;
|
|
851
|
-
min-height: 100px;
|
|
852
|
-
padding: 8px;
|
|
853
|
-
border: none;
|
|
854
|
-
border-radius: 4px;
|
|
855
|
-
background-color: ${e=>e.theme.colors.background};
|
|
856
|
-
color: ${e=>e.theme.colors.text};
|
|
857
|
-
font-family: inherit;
|
|
858
|
-
font-size: inherit;
|
|
859
|
-
resize: vertical;
|
|
860
|
-
margin: 4px 0;
|
|
861
|
-
field-sizing: content;
|
|
862
|
-
box-sizing: border-box;
|
|
863
|
-
|
|
864
|
-
&:focus {
|
|
865
|
-
outline: none;
|
|
866
|
-
box-shadow: 0 0 0 1px ${e=>e.theme.colors.primary};
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
${Vo}[data-type='user'] & {
|
|
870
|
-
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
871
|
-
color: ${e=>e.theme.colors.userMessageText};
|
|
872
|
-
}
|
|
873
|
-
`,AC=w.div`
|
|
874
|
-
display: flex;
|
|
875
|
-
justify-content: space-between;
|
|
876
|
-
align-items: center;
|
|
877
|
-
margin-top: 4px;
|
|
878
|
-
gap: 8px;
|
|
879
|
-
|
|
880
|
-
> div {
|
|
881
|
-
display: flex;
|
|
882
|
-
align-items: center;
|
|
883
|
-
gap: 8px;
|
|
884
|
-
}
|
|
885
|
-
`,OC=w.div`
|
|
886
|
-
font-size: 0.8em;
|
|
887
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
888
|
-
|
|
889
|
-
${Vo}[data-type='user'] & {
|
|
890
|
-
color: ${e=>e.theme.colors.userMessageTimestamp};
|
|
891
|
-
}
|
|
892
|
-
`,DC=w.span`
|
|
893
|
-
font-size: 0.8em;
|
|
894
|
-
color: ${e=>e.theme.colors.primary};
|
|
895
|
-
cursor: pointer;
|
|
896
|
-
text-decoration: underline;
|
|
897
|
-
|
|
898
|
-
&:hover {
|
|
899
|
-
color: ${e=>e.theme.colors.primaryHover};
|
|
900
|
-
}
|
|
901
|
-
`,MC=w.div`
|
|
902
|
-
display: flex;
|
|
903
|
-
gap: 8px;
|
|
904
|
-
margin-top: 8px;
|
|
905
|
-
`,dc=w.button`
|
|
906
|
-
padding: 4px 8px;
|
|
907
|
-
border: none;
|
|
908
|
-
border-radius: 4px;
|
|
909
|
-
cursor: pointer;
|
|
910
|
-
font-size: 0.8em;
|
|
911
|
-
transition: background-color 0.2s ease-in-out;
|
|
912
|
-
|
|
913
|
-
&:disabled {
|
|
914
|
-
opacity: 0.5;
|
|
915
|
-
cursor: not-allowed;
|
|
916
|
-
}
|
|
917
|
-
`,zC=w(dc)`
|
|
918
|
-
background-color: transparent;
|
|
919
|
-
color: ${e=>e.theme.colors.primary};
|
|
920
|
-
|
|
921
|
-
&:hover:not(:disabled) {
|
|
922
|
-
background-color: ${e=>e.theme.colors.primaryHover}20;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
${Vo}[data-type='user'] & {
|
|
926
|
-
color: ${e=>e.theme.colors.userMessageText};
|
|
927
|
-
&:hover:not(:disabled) {
|
|
928
|
-
background-color: ${e=>e.theme.colors.userMessageText}20;
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
`,FC=w(dc)`
|
|
932
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
933
|
-
color: ${e=>e.theme.colors.buttonText};
|
|
934
|
-
|
|
935
|
-
&:hover:not(:disabled) {
|
|
936
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
937
|
-
}
|
|
938
|
-
`,BC=w(dc)`
|
|
939
|
-
background-color: transparent;
|
|
940
|
-
color: ${e=>e.theme.colors.error};
|
|
941
|
-
|
|
942
|
-
&:hover:not(:disabled) {
|
|
943
|
-
background-color: ${e=>e.theme.colors.error}20;
|
|
944
|
-
}
|
|
945
|
-
`,UC=w.div`
|
|
946
|
-
width: 16px;
|
|
947
|
-
height: 16px;
|
|
948
|
-
border: 2px solid ${e=>e.theme.colors.primary};
|
|
949
|
-
border-top-color: transparent;
|
|
950
|
-
border-radius: 50%;
|
|
951
|
-
animation: spin 1s linear infinite;
|
|
952
|
-
margin: 0 8px;
|
|
953
|
-
|
|
954
|
-
@keyframes spin {
|
|
955
|
-
to {
|
|
956
|
-
transform: rotate(360deg);
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
`;w.span`
|
|
960
|
-
font-size: 0.7em;
|
|
961
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
962
|
-
margin-left: 8px;
|
|
963
|
-
font-style: italic;
|
|
964
|
-
`;const VC=e=>e>=1e3?`Context size: ${(e/1e3).toFixed(1)}K tokens`:`Context size: ${e} tokens`,HC=e=>{var n;const t=e.filter(r=>{var o;return r.type===sr.ASSISTANT&&typeof((o=r.data)==null?void 0:o.contextSize)=="number"});if(t.length!==0)return(n=t[t.length-1].data)==null?void 0:n.contextSize},WC=e=>{const t=HC(e),n=t!==void 0?VC(t):"Context size N/A";return{contextSize:t,formattedSize:n}},JC=w.span`
|
|
965
|
-
font-size: 12px;
|
|
966
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
967
|
-
white-space: nowrap;
|
|
968
|
-
`,cg=({messages:e,className:t})=>{if(!e||e.length===0)return null;const{formattedSize:n}=WC(e);return u.jsx(JC,{className:t,children:n})},KC=w.div`
|
|
969
|
-
font-weight: bold;
|
|
970
|
-
font-size: 0.9em;
|
|
971
|
-
color: ${e=>e.theme.colors.text};
|
|
972
|
-
`;w.div`
|
|
973
|
-
font-size: 0.8em;
|
|
974
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
975
|
-
margin: 4px 0;
|
|
976
|
-
`;w.div`
|
|
977
|
-
font-size: 0.8em;
|
|
978
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
979
|
-
margin: 4px 0;
|
|
980
|
-
`;w.div`
|
|
981
|
-
display: inline-block;
|
|
982
|
-
padding: 2px 4px;
|
|
983
|
-
border-radius: 4px;
|
|
984
|
-
font-size: 0.8em;
|
|
985
|
-
font-weight: bold;
|
|
986
|
-
color: ${e=>e.theme.colors.text};
|
|
987
|
-
background-color: ${e=>e.variant==="updateFile"?e.theme.colors.primary:e.variant==="createFile"?e.theme.colors.success:(e.variant==="patchFile",e.theme.colors.warning)};
|
|
988
|
-
`;w.div`
|
|
989
|
-
display: flex;
|
|
990
|
-
gap: 8px;
|
|
991
|
-
`;w.button`
|
|
992
|
-
padding: 4px 8px;
|
|
993
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
994
|
-
border-radius: 4px;
|
|
995
|
-
background-color: ${e=>e.theme.colors.background};
|
|
996
|
-
cursor: pointer;
|
|
997
|
-
font-size: 0.8em;
|
|
998
|
-
color: ${e=>e.theme.colors.text};
|
|
999
|
-
|
|
1000
|
-
&:hover {
|
|
1001
|
-
background-color: ${e=>e.theme.colors.backgroundHover};
|
|
1002
|
-
}
|
|
1003
|
-
`;w.div`
|
|
1004
|
-
margin: 16px 0;
|
|
1005
|
-
`;w.div`
|
|
1006
|
-
padding: 8px;
|
|
1007
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1008
|
-
border-radius: 4px;
|
|
1009
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1010
|
-
font-size: 0.9em;
|
|
1011
|
-
line-height: 1.5;
|
|
1012
|
-
`;w.div`
|
|
1013
|
-
margin: 16px 0;
|
|
1014
|
-
`;function fn(){}fn.prototype={diff:function(t,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.callback;typeof o=="function"&&(i=o,o={}),this.options=o;var s=this;function l(C){return i?(setTimeout(function(){i(void 0,C)},0),!0):C}t=this.castInput(t),n=this.castInput(n),t=this.removeEmpty(this.tokenize(t)),n=this.removeEmpty(this.tokenize(n));var a=n.length,c=t.length,d=1,f=a+c;o.maxEditLength&&(f=Math.min(f,o.maxEditLength));var h=(r=o.timeout)!==null&&r!==void 0?r:1/0,y=Date.now()+h,v=[{oldPos:-1,lastComponent:void 0}],x=this.extractCommon(v[0],n,t,0);if(v[0].oldPos+1>=c&&x+1>=a)return l([{value:this.join(n),count:n.length}]);var k=-1/0,m=1/0;function p(){for(var C=Math.max(k,-d);C<=Math.min(m,d);C+=2){var j=void 0,b=v[C-1],$=v[C+1];b&&(v[C-1]=void 0);var R=!1;if($){var L=$.oldPos-C;R=$&&0<=L&&L<a}var I=b&&b.oldPos+1<c;if(!R&&!I){v[C]=void 0;continue}if(!I||R&&b.oldPos+1<$.oldPos?j=s.addToPath($,!0,void 0,0):j=s.addToPath(b,void 0,!0,1),x=s.extractCommon(j,n,t,C),j.oldPos+1>=c&&x+1>=a)return l(GC(s,j.lastComponent,n,t,s.useLongestToken));v[C]=j,j.oldPos+1>=c&&(m=Math.min(m,C-1)),x+1>=a&&(k=Math.max(k,C+1))}d++}if(i)(function C(){setTimeout(function(){if(d>f||Date.now()>y)return i();p()||C()},0)})();else for(;d<=f&&Date.now()<=y;){var g=p();if(g)return g}},addToPath:function(t,n,r,o){var i=t.lastComponent;return i&&i.added===n&&i.removed===r?{oldPos:t.oldPos+o,lastComponent:{count:i.count+1,added:n,removed:r,previousComponent:i.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:n,removed:r,previousComponent:i}}},extractCommon:function(t,n,r,o){for(var i=n.length,s=r.length,l=t.oldPos,a=l-o,c=0;a+1<i&&l+1<s&&this.equals(n[a+1],r[l+1]);)a++,l++,c++;return c&&(t.lastComponent={count:c,previousComponent:t.lastComponent}),t.oldPos=l,a},equals:function(t,n){return this.options.comparator?this.options.comparator(t,n):t===n||this.options.ignoreCase&&t.toLowerCase()===n.toLowerCase()},removeEmpty:function(t){for(var n=[],r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function GC(e,t,n,r,o){for(var i=[],s;t;)i.push(t),s=t.previousComponent,delete t.previousComponent,t=s;i.reverse();for(var l=0,a=i.length,c=0,d=0;l<a;l++){var f=i[l];if(f.removed){if(f.value=e.join(r.slice(d,d+f.count)),d+=f.count,l&&i[l-1].added){var y=i[l-1];i[l-1]=i[l],i[l]=y}}else{if(!f.added&&o){var h=n.slice(c,c+f.count);h=h.map(function(x,k){var m=r[d+k];return m.length>x.length?m:x}),f.value=e.join(h)}else f.value=e.join(n.slice(c,c+f.count));c+=f.count,f.added||(d+=f.count)}}var v=i[a-1];return a>1&&typeof v.value=="string"&&(v.added||v.removed)&&e.equals("",v.value)&&(i[a-2].value+=v.value,i.pop()),i}var rf=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,of=/\S/,dg=new fn;dg.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!of.test(e)&&!of.test(t)};dg.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&rf.test(t[n])&&rf.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var fc=new fn;fc.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
1015
|
-
`));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var o=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),t.push(o))}return t};function QC(e,t,n){return fc.diff(e,t,n)}var qC=new fn;qC.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var YC=new fn;YC.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function _i(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_i=function(t){return typeof t}:_i=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_i(e)}var XC=Object.prototype.toString,Po=new fn;Po.useLongestToken=!0;Po.tokenize=fc.tokenize;Po.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,o=r===void 0?function(i,s){return typeof s>"u"?n:s}:r;return typeof e=="string"?e:JSON.stringify(Ba(e,null,null,o),o," ")};Po.equals=function(e,t){return fn.prototype.equals.call(Po,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Ba(e,t,n,r,o){t=t||[],n=n||[],r&&(e=r(o,e));var i;for(i=0;i<t.length;i+=1)if(t[i]===e)return n[i];var s;if(XC.call(e)==="[object Array]"){for(t.push(e),s=new Array(e.length),n.push(s),i=0;i<e.length;i+=1)s[i]=Ba(e[i],t,n,r,o);return t.pop(),n.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),_i(e)==="object"&&e!==null){t.push(e),s={},n.push(s);var l=[],a;for(a in e)e.hasOwnProperty(a)&&l.push(a);for(l.sort(),i=0;i<l.length;i+=1)a=l[i],s[a]=Ba(e[a],t,n,r,a);t.pop(),n.pop()}else s=e;return s}var Ua=new fn;Ua.tokenize=function(e){return e.slice()};Ua.join=Ua.removeEmpty=function(e){return e};const ZC=({oldContent:e,newContent:t})=>{const[n,r]=S.useState("unified"),o=QC(e??"",t),i=()=>u.jsx(nj,{children:o.map((c,d)=>u.jsx(jl,{added:c.added,removed:c.removed,children:c.value},d))}),s=()=>u.jsxs(rj,{children:[u.jsxs(sf,{children:[u.jsx(fi,{children:"Old Content"}),o.filter(c=>!c.added).map((c,d)=>u.jsx(jl,{removed:c.removed,children:c.value},d))]}),u.jsxs(sf,{children:[u.jsx(fi,{children:"New Content"}),o.filter(c=>!c.removed).map((c,d)=>u.jsx(jl,{added:c.added,children:c.value},d))]})]}),l=()=>u.jsxs(lf,{children:[u.jsx(fi,{children:"Old Content"}),u.jsx(af,{children:e})]}),a=()=>u.jsxs(lf,{children:[u.jsx(fi,{children:"New Content"}),u.jsx(af,{children:t})]});return u.jsxs(ej,{children:[u.jsxs(tj,{children:[u.jsx(di,{active:n==="unified",onClick:()=>r("unified"),children:"Unified"}),u.jsx(di,{active:n==="sideBySide",onClick:()=>r("sideBySide"),children:"Side by Side"}),u.jsx(di,{active:n==="old",onClick:()=>r("old"),children:"Old Content"}),u.jsx(di,{active:n==="new",onClick:()=>r("new"),children:"New Content"})]}),n==="unified"&&i(),n==="sideBySide"&&s(),n==="old"&&l(),n==="new"&&a()]})},ej=w.div`
|
|
1016
|
-
margin: 16px 0;
|
|
1017
|
-
`,tj=w.div`
|
|
1018
|
-
display: flex;
|
|
1019
|
-
gap: 8px;
|
|
1020
|
-
margin-bottom: 16px;
|
|
1021
|
-
`,di=w.button`
|
|
1022
|
-
padding: 4px 8px;
|
|
1023
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1024
|
-
border-radius: 4px;
|
|
1025
|
-
background-color: ${e=>e.active?e.theme.colors.primary:e.theme.colors.background};
|
|
1026
|
-
color: ${e=>e.active?e.theme.colors.textOnPrimary:e.theme.colors.text};
|
|
1027
|
-
cursor: pointer;
|
|
1028
|
-
font-size: 0.8em;
|
|
1029
|
-
|
|
1030
|
-
&:hover {
|
|
1031
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1032
|
-
}
|
|
1033
|
-
`,nj=w.div`
|
|
1034
|
-
margin: 16px 0;
|
|
1035
|
-
padding: 8px;
|
|
1036
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1037
|
-
border-radius: 4px;
|
|
1038
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1039
|
-
max-height: 400px;
|
|
1040
|
-
overflow-y: auto;
|
|
1041
|
-
`,rj=w.div`
|
|
1042
|
-
display: grid;
|
|
1043
|
-
grid-template-columns: 1fr 1fr;
|
|
1044
|
-
gap: 16px;
|
|
1045
|
-
margin: 16px 0;
|
|
1046
|
-
`,sf=w.div`
|
|
1047
|
-
padding: 8px;
|
|
1048
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1049
|
-
border-radius: 4px;
|
|
1050
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1051
|
-
max-height: 400px;
|
|
1052
|
-
overflow-y: auto;
|
|
1053
|
-
`,lf=w.div`
|
|
1054
|
-
margin: 16px 0;
|
|
1055
|
-
padding: 8px;
|
|
1056
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1057
|
-
border-radius: 4px;
|
|
1058
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1059
|
-
max-height: 400px;
|
|
1060
|
-
overflow-y: auto;
|
|
1061
|
-
`,fi=w.div`
|
|
1062
|
-
font-weight: bold;
|
|
1063
|
-
margin-bottom: 8px;
|
|
1064
|
-
`,af=w.div`
|
|
1065
|
-
white-space: pre-wrap;
|
|
1066
|
-
font-family: monospace;
|
|
1067
|
-
font-size: 0.9em;
|
|
1068
|
-
line-height: 1.5;
|
|
1069
|
-
`,jl=w.div`
|
|
1070
|
-
white-space: pre-wrap;
|
|
1071
|
-
font-family: monospace;
|
|
1072
|
-
font-size: 0.9em;
|
|
1073
|
-
line-height: 1.5;
|
|
1074
|
-
padding: 2px 4px;
|
|
1075
|
-
margin: 2px 0;
|
|
1076
|
-
background-color: ${e=>e.added?e.theme.colors.diffAdded:e.removed?e.theme.colors.diffRemoved:"transparent"};
|
|
1077
|
-
color: ${e=>e.added?e.theme.colors.diffAddedText:e.removed?e.theme.colors.diffRemovedText:e.theme.colors.text};
|
|
1078
|
-
`,fg=w.div`
|
|
1079
|
-
display: flex;
|
|
1080
|
-
flex-direction: column;
|
|
1081
|
-
gap: 12px;
|
|
1082
|
-
width: 100%;
|
|
1083
|
-
margin-top: 8px;
|
|
1084
|
-
font-size: 0.95em;
|
|
1085
|
-
`,lr=w.div`
|
|
1086
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1087
|
-
border-radius: 6px;
|
|
1088
|
-
overflow: hidden;
|
|
1089
|
-
background: ${e=>e.theme.colors.backgroundSecondary}11;
|
|
1090
|
-
transition: all 0.2s ease;
|
|
1091
|
-
|
|
1092
|
-
&:hover {
|
|
1093
|
-
border-color: ${e=>e.theme.colors.primary}66;
|
|
1094
|
-
}
|
|
1095
|
-
`,ar=w.div`
|
|
1096
|
-
padding: 10px 12px;
|
|
1097
|
-
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1098
|
-
cursor: pointer;
|
|
1099
|
-
user-select: none;
|
|
1100
|
-
transition: background-color 0.2s ease;
|
|
1101
|
-
|
|
1102
|
-
&:hover {
|
|
1103
|
-
background: ${e=>e.theme.colors.backgroundSecondary}44;
|
|
1104
|
-
}
|
|
1105
|
-
`,ur=w.div`
|
|
1106
|
-
padding: 12px;
|
|
1107
|
-
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
1108
|
-
animation: slideDown 0.2s ease;
|
|
1109
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1110
|
-
font-size: 0.95em;
|
|
1111
|
-
white-space: pre-wrap;
|
|
1112
|
-
|
|
1113
|
-
@keyframes slideDown {
|
|
1114
|
-
from {
|
|
1115
|
-
opacity: 0;
|
|
1116
|
-
transform: translateY(-10px);
|
|
1117
|
-
}
|
|
1118
|
-
to {
|
|
1119
|
-
opacity: 1;
|
|
1120
|
-
transform: translateY(0);
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
`,cr=w.div`
|
|
1124
|
-
display: flex;
|
|
1125
|
-
align-items: center;
|
|
1126
|
-
gap: 8px;
|
|
1127
|
-
color: ${e=>e.theme.colors.primary};
|
|
1128
|
-
font-weight: 500;
|
|
1129
|
-
|
|
1130
|
-
${e=>e.expanded&&Pe`
|
|
1131
|
-
margin-bottom: -1px;
|
|
1132
|
-
`}
|
|
1133
|
-
`,dr=w.span`
|
|
1134
|
-
display: inline-block;
|
|
1135
|
-
width: 16px;
|
|
1136
|
-
height: 16px;
|
|
1137
|
-
line-height: 16px;
|
|
1138
|
-
text-align: center;
|
|
1139
|
-
font-size: 0.8em;
|
|
1140
|
-
transition: transform 0.2s ease;
|
|
1141
|
-
`,Va=w.div`
|
|
1142
|
-
display: flex;
|
|
1143
|
-
flex-direction: column;
|
|
1144
|
-
gap: 12px;
|
|
1145
|
-
`,Ha=w.div`
|
|
1146
|
-
padding: 10px;
|
|
1147
|
-
border-radius: 4px;
|
|
1148
|
-
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1149
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1150
|
-
|
|
1151
|
-
&:hover {
|
|
1152
|
-
border-color: ${e=>e.theme.colors.primary}66;
|
|
1153
|
-
}
|
|
1154
|
-
`,oj=w.div`
|
|
1155
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1156
|
-
font-size: 0.95em;
|
|
1157
|
-
font-weight: 500;
|
|
1158
|
-
margin-bottom: 6px;
|
|
1159
|
-
margin-top: 8px;
|
|
1160
|
-
`,Wa=w.div`
|
|
1161
|
-
font-family: monospace;
|
|
1162
|
-
padding: 4px 8px;
|
|
1163
|
-
padding-left: 0px;
|
|
1164
|
-
background: ${e=>e.theme.colors.codeBackground};
|
|
1165
|
-
border-radius: 3px;
|
|
1166
|
-
color: ${e=>e.theme.colors.codeText};
|
|
1167
|
-
word-break: break-all;
|
|
1168
|
-
`,ij=w.div`
|
|
1169
|
-
margin-top: 8px;
|
|
1170
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1171
|
-
font-size: 0.95em;
|
|
1172
|
-
line-height: 1.4;
|
|
1173
|
-
white-space: pre-wrap;
|
|
1174
|
-
`,sj=w.div`
|
|
1175
|
-
font-size: 0.9em;
|
|
1176
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1177
|
-
`,lj=w.div`
|
|
1178
|
-
margin-top: 4px;
|
|
1179
|
-
font-family: monospace;
|
|
1180
|
-
color: ${e=>e.theme.colors.info};
|
|
1181
|
-
`,aj=w.div`
|
|
1182
|
-
display: inline-block;
|
|
1183
|
-
margin-left: 8px;
|
|
1184
|
-
padding: 2px 6px;
|
|
1185
|
-
border-radius: 3px;
|
|
1186
|
-
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1187
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1188
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1189
|
-
font-size: 0.85em;
|
|
1190
|
-
cursor: pointer;
|
|
1191
|
-
transition: all 0.2s ease;
|
|
1192
|
-
|
|
1193
|
-
&:hover {
|
|
1194
|
-
background: ${e=>e.theme.colors.backgroundSecondary}44;
|
|
1195
|
-
border-color: ${e=>e.theme.colors.primary}66;
|
|
1196
|
-
}
|
|
1197
|
-
`,uj=w.div`
|
|
1198
|
-
margin-top: 8px;
|
|
1199
|
-
padding: 8px;
|
|
1200
|
-
border-radius: 4px;
|
|
1201
|
-
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1202
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1203
|
-
animation: slideDown 0.2s ease;
|
|
1204
|
-
`;w.pre`
|
|
1205
|
-
margin: 0;
|
|
1206
|
-
padding: 12px;
|
|
1207
|
-
background: ${e=>e.theme.colors.codeBackground};
|
|
1208
|
-
border-radius: 4px;
|
|
1209
|
-
color: ${e=>e.theme.colors.codeText};
|
|
1210
|
-
font-family: monospace;
|
|
1211
|
-
font-size: 0.9em;
|
|
1212
|
-
line-height: 1.4;
|
|
1213
|
-
overflow-x: auto;
|
|
1214
|
-
white-space: pre-wrap;
|
|
1215
|
-
word-wrap: break-word;
|
|
1216
|
-
`;const cj=(e,t)=>{switch(e){case"createFile":return Pe`
|
|
1217
|
-
background: ${t.colors.info}22;
|
|
1218
|
-
color: ${t.colors.info};
|
|
1219
|
-
border-color: ${t.colors.info}44;
|
|
1220
|
-
`;case"updateFile":return Pe`
|
|
1221
|
-
background: ${t.colors.primary}22;
|
|
1222
|
-
color: ${t.colors.primary};
|
|
1223
|
-
border-color: ${t.colors.primary}44;
|
|
1224
|
-
`;case"deleteFile":return Pe`
|
|
1225
|
-
background: ${t.colors.error}22;
|
|
1226
|
-
color: ${t.colors.error};
|
|
1227
|
-
border-color: ${t.colors.error}44;
|
|
1228
|
-
`;case"moveFile":return Pe`
|
|
1229
|
-
background: ${t.colors.warning}22;
|
|
1230
|
-
color: ${t.colors.warning};
|
|
1231
|
-
border-color: ${t.colors.warning}44;
|
|
1232
|
-
`;case"temperature":return Pe`
|
|
1233
|
-
background: ${t.colors.success}22;
|
|
1234
|
-
color: ${t.colors.success};
|
|
1235
|
-
border-color: ${t.colors.success}44;
|
|
1236
|
-
margin-left: auto;
|
|
1237
|
-
`;case"cheap":return Pe`
|
|
1238
|
-
background: ${t.colors.secondary}22;
|
|
1239
|
-
color: ${t.colors.secondary};
|
|
1240
|
-
border-color: ${t.colors.secondary}44;
|
|
1241
|
-
`;default:return Pe`
|
|
1242
|
-
background: ${t.colors.secondary}22;
|
|
1243
|
-
color: ${t.colors.secondary};
|
|
1244
|
-
border-color: ${t.colors.secondary}44;
|
|
1245
|
-
`}},Li=w.div`
|
|
1246
|
-
display: inline-block;
|
|
1247
|
-
padding: 2px 8px;
|
|
1248
|
-
border-radius: 3px;
|
|
1249
|
-
font-size: 0.85em;
|
|
1250
|
-
font-weight: 500;
|
|
1251
|
-
margin-bottom: 6px;
|
|
1252
|
-
border: 1px solid;
|
|
1253
|
-
${e=>cj(e.variant,e.theme)}
|
|
1254
|
-
`;w.div`
|
|
1255
|
-
margin-top: 8px;
|
|
1256
|
-
font-size: 0.9em;
|
|
1257
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1258
|
-
`;const dj=w.div`
|
|
1259
|
-
display: flex;
|
|
1260
|
-
gap: 8px;
|
|
1261
|
-
align-items: center;
|
|
1262
|
-
flex-wrap: wrap;
|
|
1263
|
-
`,pg=({data:{name:e,args:{filePath:t,explanation:n,oldContent:r,newContent:o}}})=>{const[i,s]=S.useState(!0),[l,a]=S.useState(!1);return u.jsxs(fj,{children:[u.jsxs(pj,{children:[u.jsx(Li,{variant:e,children:e}),u.jsx(KC,{children:t}),u.jsxs(hj,{children:[u.jsx(uf,{onClick:()=>s(!i),children:i?"Hide Explanation":"Explanation"}),u.jsx(uf,{onClick:()=>a(!l),children:l?"Hide Diff":"Show Diff"})]})]}),i&&n&&u.jsx(mj,{children:n}),l&&u.jsx(vj,{children:u.jsx(ZC,{oldContent:r,newContent:o})})]})};function Ja(e){if(typeof e!="object"||e===null)return!1;const t=e;if(t.name!=="updateFile"&&t.name!=="createFile"&&t.name!=="patchFile")return!1;const n=t.args;return typeof n.filePath=="string"&&typeof n.newContent=="string"}const fj=w.div`
|
|
1264
|
-
margin: 16px 0;
|
|
1265
|
-
padding: 16px;
|
|
1266
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1267
|
-
border-radius: 8px;
|
|
1268
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1269
|
-
`,pj=w.div`
|
|
1270
|
-
display: flex;
|
|
1271
|
-
gap: 8px;
|
|
1272
|
-
align-items: center;
|
|
1273
|
-
`,hj=w.div`
|
|
1274
|
-
display: flex;
|
|
1275
|
-
gap: 8px;
|
|
1276
|
-
margin-left: auto;
|
|
1277
|
-
`,uf=w.button`
|
|
1278
|
-
padding: 4px 8px;
|
|
1279
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1280
|
-
border-radius: 4px;
|
|
1281
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1282
|
-
cursor: pointer;
|
|
1283
|
-
font-size: 0.8em;
|
|
1284
|
-
color: ${e=>e.theme.colors.text};
|
|
1285
|
-
|
|
1286
|
-
&:hover {
|
|
1287
|
-
background-color: ${e=>e.theme.colors.backgroundHover};
|
|
1288
|
-
}
|
|
1289
|
-
`,mj=w.div`
|
|
1290
|
-
margin-top: 8px;
|
|
1291
|
-
padding: 8px;
|
|
1292
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1293
|
-
border-radius: 4px;
|
|
1294
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1295
|
-
font-size: 0.9em;
|
|
1296
|
-
line-height: 1.5;
|
|
1297
|
-
`,vj=w.div`
|
|
1298
|
-
margin: 16px 0;
|
|
1299
|
-
`,gj=w.div`
|
|
1300
|
-
display: grid;
|
|
1301
|
-
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
1302
|
-
gap: 8px;
|
|
1303
|
-
max-width: 800px;
|
|
1304
|
-
margin: 8px 0;
|
|
1305
|
-
`,yj=w.div`
|
|
1306
|
-
position: relative;
|
|
1307
|
-
width: 100%;
|
|
1308
|
-
padding-bottom: 100%; /* Creates a square aspect ratio */
|
|
1309
|
-
`,xj=w.img`
|
|
1310
|
-
position: absolute;
|
|
1311
|
-
top: 0;
|
|
1312
|
-
left: 0;
|
|
1313
|
-
width: 100%;
|
|
1314
|
-
height: 100%;
|
|
1315
|
-
object-fit: contain;
|
|
1316
|
-
border-radius: 4px;
|
|
1317
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
1318
|
-
`,wj=({message:e,visibleDataIds:t,toggleDataVisibility:n})=>{var p;const[r,o]=S.useState(!1),[i,s]=S.useState(e.content),[l,a]=S.useState(!1),[c,d]=S.useState(null),f=S.useRef(null);S.useEffect(()=>{r&&f.current&&(f.current.focus(),f.current.selectionStart=f.current.value.length,f.current.selectionEnd=f.current.value.length)},[r]);const h=()=>{s(e.content),o(!0),d(null)},y=()=>{o(!1),s(e.content),d(null)},v=g=>g.trim()?g===e.content?(d("No changes made to the message"),!1):!0:(d("Message content cannot be empty"),!1),x=async()=>{if(v(i)){a(!0),d(null);try{await Pw(e.id,i),o(!1)}catch(g){d(g instanceof Error?g.message:"Failed to save changes")}finally{a(!1)}}},k=g=>{g.key==="Enter"&&g.ctrlKey?x():g.key==="Escape"&&y()},m=e.type!=="system"&&((p=e.flags)==null?void 0:p.includes(ec.MESSAGE_EDITABLE));return u.jsx(Vo,{"data-type":e.type,children:u.jsxs(PC,{"data-edit-mode":r,children:[u.jsxs(_C,{children:[u.jsx("div",{children:e.type==="user"?"You":"Assistant"}),m&&!r&&u.jsx(zC,{onClick:h,title:"Edit message",children:"✎"})]}),r?u.jsxs(u.Fragment,{children:[u.jsx(IC,{ref:f,value:i,onChange:g=>s(g.target.value),onKeyDown:k,placeholder:"Enter your message..."}),c&&u.jsx("div",{style:{color:"red",fontSize:"0.8em",marginTop:"4px"},children:c}),u.jsxs(MC,{children:[u.jsx(FC,{onClick:x,disabled:l,children:l?u.jsx(UC,{}):"Save"}),u.jsx(BC,{onClick:y,disabled:l,children:"Cancel"})]})]}):u.jsx(LC,{children:e.content}),e.images&&e.images.length>0&&u.jsx(gj,{children:e.images.map((g,C)=>u.jsx(yj,{children:u.jsx(xj,{src:`data:${g.mediaType};base64,${g.base64url}`,alt:g.originalName||`Image ${C+1}`,title:g.originalName||`Image ${C+1}`})},C))}),u.jsxs(AC,{children:[u.jsx("div",{children:e.data?u.jsx(DC,{onClick:()=>n(e.id),children:t.has(e.id)?"Hide data":"Show data"}):null}),u.jsxs("div",{children:[e.timestamp&&e.type==="assistant"&&e.data&&"contextSize"in e.data&&u.jsx(cg,{messages:[e]}),u.jsx(OC,{children:e.timestamp.toLocaleString()})]})]}),t.has(e.id)&&e.data?u.jsx(u.Fragment,{children:Ja(e.data)?u.jsx(pg,{data:e.data}):u.jsx(ug,{data:e.data})}):null]})})},cf=w.div`
|
|
1319
|
-
background-color: ${e=>e.theme.colors.systemMessageBackground};
|
|
1320
|
-
color: ${e=>e.theme.colors.systemMessageText};
|
|
1321
|
-
border: 1px solid ${e=>e.theme.colors.systemMessageBorder};
|
|
1322
|
-
border-radius: 8px;
|
|
1323
|
-
padding: 8px 12px;
|
|
1324
|
-
margin: 8px 0;
|
|
1325
|
-
font-style: italic;
|
|
1326
|
-
font-size: 0.9em;
|
|
1327
|
-
opacity: 0.8;
|
|
1328
|
-
transition: margin 0.2s ease-in-out;
|
|
1329
|
-
|
|
1330
|
-
/* Increase bottom margin when followed by a codegen view */
|
|
1331
|
-
& + div {\n margin-top: 16px;
|
|
1332
|
-
}\n
|
|
1333
|
-
${e=>e.isExecutionEnd&&`
|
|
1334
|
-
border-bottom: 3px solid ${e.theme.colors.primary};
|
|
1335
|
-
`}\n`,df=w.div`
|
|
1336
|
-
cursor: pointer;
|
|
1337
|
-
font-weight: bold;
|
|
1338
|
-
margin-bottom: 8px;
|
|
1339
|
-
display: flex;
|
|
1340
|
-
align-items: center;
|
|
1341
|
-
gap: 4px;
|
|
1342
|
-
|
|
1343
|
-
&:hover {\n opacity: 0.8;
|
|
1344
|
-
}\n`,Sj=w.div`
|
|
1345
|
-
white-space: pre-wrap;
|
|
1346
|
-
word-wrap: break-word;
|
|
1347
|
-
font-family: inherit;
|
|
1348
|
-
margin: 0;
|
|
1349
|
-
|
|
1350
|
-
/* Add spacing between content sections */
|
|
1351
|
-
& > *:not(:last-child) {\n margin-bottom: 12px;
|
|
1352
|
-
}\n`,kj=w.div`
|
|
1353
|
-
margin-bottom: 8px;
|
|
1354
|
-
position: relative;
|
|
1355
|
-
padding-right: 150px; /* Space for timestamp and data link */
|
|
1356
|
-
|
|
1357
|
-
&:last-child {\n margin-bottom: 0;
|
|
1358
|
-
}\n`,Cj=w.div`
|
|
1359
|
-
font-size: 0.8em;
|
|
1360
|
-
color: ${e=>e.theme.colors.systemMessageTimestamp};
|
|
1361
|
-
position: absolute;
|
|
1362
|
-
right: 60px;
|
|
1363
|
-
top: 0;
|
|
1364
|
-
`,jj=w.span`
|
|
1365
|
-
font-size: 0.8em;
|
|
1366
|
-
color: ${e=>e.theme.colors.primary};
|
|
1367
|
-
cursor: pointer;
|
|
1368
|
-
text-decoration: underline;
|
|
1369
|
-
position: absolute;
|
|
1370
|
-
right: 0;
|
|
1371
|
-
top: 0;
|
|
1372
|
-
|
|
1373
|
-
&:hover {\n color: ${e=>e.theme.colors.primaryHover};\n }\n`,Ej=({data:e})=>{const[t,n]=S.useState({analysis:!0,changes:!0,files:!0}),[r,o]=S.useState({}),i=l=>{n(a=>({...a,[l]:!a[l]}))},s=l=>{o(a=>({...a,[l]:!a[l]}))};return u.jsxs(fg,{children:[u.jsxs(lr,{children:[u.jsx(ar,{onClick:()=>i("analysis"),children:u.jsxs(cr,{expanded:t.analysis,children:[u.jsx(dr,{children:t.analysis?"▼":"▶"}),"Problem Analysis"]})}),t.analysis&&u.jsx(ur,{children:e.args.problemAnalysis})]}),u.jsxs(lr,{children:[u.jsx(ar,{onClick:()=>i("changes"),children:u.jsxs(cr,{expanded:t.changes,children:[u.jsx(dr,{children:t.changes?"▼":"▶"}),"Implementation Plan"]})}),t.changes&&u.jsx(ur,{children:e.args.codeChanges})]}),u.jsxs(lr,{children:[u.jsx(ar,{onClick:()=>i("files"),children:u.jsxs(cr,{expanded:t.files,children:[u.jsx(dr,{children:t.files?"▼":"▶"}),"Affected Files"]})}),t.files&&u.jsx(ur,{children:u.jsx(Va,{children:e.args.affectedFiles.map((l,a)=>u.jsxs(Ha,{children:[u.jsxs(Wa,{children:[l.filePath,l.dependencies&&l.dependencies.length>0&&u.jsxs(aj,{onClick:()=>s(l.filePath),title:"Dependencies",children:["(",l.dependencies.length,")"]})]}),l.dependencies&&l.dependencies.length>0&&r[l.filePath]&&u.jsx(uj,{children:u.jsxs(sj,{children:["Dependencies:",l.dependencies.map((c,d)=>u.jsx(lj,{children:c},d))]})}),u.jsx(oj,{children:l.reason})]},a))})})]})]})};function ff(e){if(typeof e!="object"||e===null)return!1;const t=e;if(!t.args||typeof t.args!="object"||t.args===null)return!1;const n=t.args;return typeof n.problemAnalysis=="string"&&typeof n.codeChanges=="string"&&Array.isArray(n.affectedFiles)&&n.affectedFiles.every(r=>typeof r=="object"&&r!==null&&typeof r.reason=="string"&&typeof r.filePath=="string")}const bj=({data:e})=>{const[t,n]=S.useState({explanation:!0,updates:!0,context:!1}),r=o=>{n(i=>({...i,[o]:!i[o]}))};return u.jsxs(fg,{children:[u.jsxs(lr,{children:[u.jsx(ar,{onClick:()=>r("explanation"),children:u.jsxs(cr,{expanded:t.explanation,children:[u.jsx(dr,{children:t.explanation?"▼":"▶"}),"Explanation"]})}),t.explanation&&u.jsx(ur,{children:e.args.explanation})]}),u.jsxs(lr,{children:[u.jsx(ar,{onClick:()=>r("updates"),children:u.jsxs(cr,{expanded:t.updates,children:[u.jsx(dr,{children:t.updates?"▼":"▶"}),"File Updates (",e.args.fileUpdates.length,")"]})}),t.updates&&u.jsx(ur,{children:u.jsx(Va,{children:e.args.fileUpdates.map((o,i)=>u.jsxs(Ha,{children:[u.jsxs(dj,{children:[u.jsx(Li,{variant:o.updateToolName,children:o.updateToolName}),u.jsx(Wa,{children:o.filePath}),o.temperature&&u.jsx(Li,{variant:"temperature",title:"Temperature",children:o.temperature}),o.cheap&&u.jsx(Li,{variant:"cheap",title:"Use cheaper model",children:"Cheap"})]}),u.jsx(ij,{title:"Prompt",children:o.prompt})]},i))})})]}),u.jsxs(lr,{children:[u.jsx(ar,{onClick:()=>r("context"),children:u.jsxs(cr,{expanded:t.context,children:[u.jsx(dr,{children:t.context?"▼":"▶"}),"Context Paths (",e.args.contextPaths.length,")"]})}),t.context&&u.jsx(ur,{children:u.jsx(Va,{children:e.args.contextPaths.map((o,i)=>u.jsx(Ha,{children:u.jsx(Wa,{children:o})},i))})})]})]})};function pf(e){if(typeof e!="object"||e===null)return!1;const t=e;if(!t.args||typeof t.args!="object"||t.args===null)return!1;const n=t.args;return typeof n.explanation=="string"&&Array.isArray(n.fileUpdates)&&Array.isArray(n.contextPaths)&&n.fileUpdates.every(r=>typeof r=="object"&&r!==null&&typeof r.prompt=="string"&&typeof r.filePath=="string"&&typeof r.updateToolName=="string")}const Nj=({message:e,collapsedExecutions:t,toggleExecutionCollapse:n,visibleDataIds:r,toggleDataVisibility:o})=>t.has(e.id)?u.jsx(cf,{isExecutionEnd:e.isExecutionEnd,children:u.jsxs(df,{onClick:()=>n(e.id),children:["▶ Execution ",e.id.split("_")[1]]})}):$j(e.parts).map((s,l)=>s.parts.length>0?u.jsxs(cf,{isExecutionEnd:e.isExecutionEnd,children:[u.jsxs(df,{onClick:()=>n(e.id),children:["▼ Execution ",e.id.split("_")[1]]}),u.jsx(Sj,{children:s.parts.map(a=>u.jsxs(kj,{children:[a.content,u.jsx(Cj,{children:a.timestamp.toLocaleString()}),a.data?u.jsx(jj,{onClick:()=>o(a.id),children:r.has(a.id)?"Hide data":"Show data"}):null,r.has(a.id)&&a.data?u.jsx(ug,{data:a.data}):null]},a.id))})]},`section-${l}`):s.codegenView?u.jsx(Le.Fragment,{children:s.codegenView},`view-${l}`):null);function $j(e){const t=[];let n=[];return t.push({parts:n}),e.forEach(r=>{if(n.push(r),ff(r.data)||pf(r.data)||Ja(r.data)){const o=ff(r.data)?u.jsx(Ej,{data:r.data},`planning-${r.id}`):pf(r.data)?u.jsx(bj,{data:r.data},`summary-${r.id}`):Ja(r.data)?u.jsx(pg,{data:r.data},`file-update-${r.id}`):null;t.push({parts:[],codegenView:o}),n=[],t.push({parts:n})}}),t}const Rj=w.div`
|
|
1374
|
-
display: flex;
|
|
1375
|
-
flex-direction: column;
|
|
1376
|
-
height: 100%;
|
|
1377
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1378
|
-
position: relative;
|
|
1379
|
-
overflow: hidden;
|
|
1380
|
-
`,Tj=w.div`
|
|
1381
|
-
display: flex;
|
|
1382
|
-
flex-direction: column;
|
|
1383
|
-
gap: 16px;
|
|
1384
|
-
padding: 16px;
|
|
1385
|
-
overflow-y: auto;
|
|
1386
|
-
flex-grow: 1;
|
|
1387
|
-
max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
|
|
1388
|
-
margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
|
|
1389
|
-
`,Pj=w.div`
|
|
1390
|
-
display: flex;
|
|
1391
|
-
flex-direction: column;
|
|
1392
|
-
gap: 8px;
|
|
1393
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1394
|
-
border-radius: 8px;
|
|
1395
|
-
margin-bottom: 24px;
|
|
1396
|
-
`,_j=w.div`
|
|
1397
|
-
font-size: 16px;
|
|
1398
|
-
font-weight: bold;
|
|
1399
|
-
color: ${e=>e.theme.colors.text};
|
|
1400
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1401
|
-
padding: 12px 16px;
|
|
1402
|
-
border-bottom: 1px solid ${e=>e.theme.colors.border};
|
|
1403
|
-
border-top-left-radius: 8px;
|
|
1404
|
-
border-top-right-radius: 8px;
|
|
1405
|
-
display: flex;
|
|
1406
|
-
justify-content: space-between;
|
|
1407
|
-
align-items: center;
|
|
1408
|
-
cursor: pointer;
|
|
1409
|
-
position: sticky;
|
|
1410
|
-
top: -22px;
|
|
1411
|
-
z-index: 10;
|
|
1412
|
-
|
|
1413
|
-
/* Wrap title in a div to control its layout */
|
|
1414
|
-
> .title-wrapper {
|
|
1415
|
-
display: flex;
|
|
1416
|
-
align-items: start;
|
|
1417
|
-
flex-grow: 1;
|
|
1418
|
-
overflow: hidden; /* Ensure long text doesn't overflow */
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
> .title {
|
|
1422
|
-
display: flex;
|
|
1423
|
-
align-items: start;
|
|
1424
|
-
white-space: nowrap; /* Prevent text wrapping */
|
|
1425
|
-
overflow: hidden; /* Hide overflowing text */
|
|
1426
|
-
text-overflow: ellipsis; /* Add ellipsis for overflow */
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
/* Wrap meta in a div for consistent layout */
|
|
1430
|
-
> .meta-wrapper {
|
|
1431
|
-
display: flex;
|
|
1432
|
-
align-items: center; /* Align meta content vertically */
|
|
1433
|
-
flex-shrink: 0; /* Prevent meta from shrinking */
|
|
1434
|
-
margin-left: auto; /* Push meta to the right */
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
> .meta {
|
|
1438
|
-
font-size: 12px;
|
|
1439
|
-
font-weight: normal;
|
|
1440
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1441
|
-
display: flex;
|
|
1442
|
-
flex-direction: row;
|
|
1443
|
-
align-items: center;
|
|
1444
|
-
gap: 10px;
|
|
1445
|
-
white-space: nowrap;
|
|
1446
|
-
overflow: visible;
|
|
1447
|
-
text-overflow: ellipsis;
|
|
1448
|
-
}
|
|
1449
|
-
`,Lj=w.button`
|
|
1450
|
-
display: flex;
|
|
1451
|
-
justify-content: center;
|
|
1452
|
-
align-items: center;
|
|
1453
|
-
background-color: transparent;
|
|
1454
|
-
border: none;
|
|
1455
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1456
|
-
cursor: pointer;
|
|
1457
|
-
font-size: 16px;
|
|
1458
|
-
padding: 4px 8px;
|
|
1459
|
-
border-radius: 4px;
|
|
1460
|
-
margin-left: 8px;
|
|
1461
|
-
z-index: 11;
|
|
1462
|
-
position: relative;
|
|
1463
|
-
min-width: 24px;
|
|
1464
|
-
flex-shrink: 0; /* Prevent the button from shrinking */
|
|
1465
|
-
|
|
1466
|
-
&:hover {
|
|
1467
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1468
|
-
color: ${e=>e.theme.colors.error};
|
|
1469
|
-
}
|
|
1470
|
-
`,Ij=w.div`
|
|
1471
|
-
display: ${e=>e.isCollapsed?"none":"flex"};
|
|
1472
|
-
flex-direction: column;
|
|
1473
|
-
gap: 8px;
|
|
1474
|
-
padding: 16px;
|
|
1475
|
-
`,Aj=w.p`
|
|
1476
|
-
font-size: 14px;
|
|
1477
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1478
|
-
background-color: ${e=>e.theme.colors.backgroundTertiary};
|
|
1479
|
-
padding: 8px;
|
|
1480
|
-
border-radius: 4px;
|
|
1481
|
-
margin: 0 0 16px 0;
|
|
1482
|
-
`;w.div`
|
|
1483
|
-
margin-bottom: 16px;
|
|
1484
|
-
|
|
1485
|
-
&:last-child {
|
|
1486
|
-
margin-bottom: 0;
|
|
1487
|
-
}
|
|
1488
|
-
`;const Oj=w.span`
|
|
1489
|
-
&:before {
|
|
1490
|
-
content: '▼';
|
|
1491
|
-
margin-right: 8px;
|
|
1492
|
-
}
|
|
1493
|
-
`,Dj=w.span`
|
|
1494
|
-
&:before {
|
|
1495
|
-
content: '▶';
|
|
1496
|
-
margin-right: 8px;
|
|
1497
|
-
}
|
|
1498
|
-
`;w.span`
|
|
1499
|
-
color: ${e=>e.theme.colors.primary};
|
|
1500
|
-
cursor: pointer;
|
|
1501
|
-
margin-right: 8px;
|
|
1502
|
-
|
|
1503
|
-
&:hover {
|
|
1504
|
-
text-decoration: underline;
|
|
1505
|
-
}
|
|
1506
|
-
`;function Mj(e){return S.useMemo(()=>{const t=[];let n=null,r=null,o=0;return e.sort((i,s)=>i.iterationId<s.iterationId?-1:1).forEach((i,s)=>{var l;(!n||i.iterationId!==n.iterationId)&&(n&&(n.timestampEnd=new Date(i.timestamp),t.push(n)),n={iterationId:i.iterationId,timestampStart:new Date(i.timestamp),timestampEnd:new Date(i.timestamp),conversationSummaries:[],messages:[]}),(l=i.flags)!=null&&l.includes(ec.CONVERSATION_SUMMARY)&&i.data&&(n.conversationSummaries.push(i.data),n.iterationTitle||(n.iterationTitle=i.data)),i.type===sr.SYSTEM?r?r.parts.push(i):(o++,r={...i,type:sr.SYSTEM,parts:[i],id:`execution_${o}`,isExecutionEnd:s===e.length-1||e[s+1].type!==sr.SYSTEM},n.messages.push(r)):(r&&(r.isExecutionEnd=!0),r=null,n.messages.push(i)),n.timestampEnd=new Date(i.timestamp)}),n&&t.push(n),t.sort((i,s)=>i.timestampStart.getTime()-s.timestampStart.getTime())},[e])}const zj=({onClick:e})=>u.jsxs(Bj,{onClick:e,children:[u.jsx(Uj,{children:"New messages"}),u.jsx(El,{}),u.jsx(El,{}),u.jsx(El,{})]}),Fj=Do`
|
|
1507
|
-
0%, 80%, 100% {
|
|
1508
|
-
transform: scale(0.8);
|
|
1509
|
-
}
|
|
1510
|
-
40% {
|
|
1511
|
-
transform: scale(1.2);
|
|
1512
|
-
}
|
|
1513
|
-
`,Bj=w.div`
|
|
1514
|
-
display: flex;
|
|
1515
|
-
justify-content: center;
|
|
1516
|
-
align-items: center;
|
|
1517
|
-
padding: 10px;
|
|
1518
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
1519
|
-
color: ${e=>e.theme.colors.text};
|
|
1520
|
-
border-radius: 20px;
|
|
1521
|
-
position: absolute;
|
|
1522
|
-
bottom: 20px;
|
|
1523
|
-
left: 50%;
|
|
1524
|
-
transform: translateX(-50%);
|
|
1525
|
-
cursor: pointer;
|
|
1526
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
1527
|
-
transition: all 0.3s ease;
|
|
1528
|
-
z-index: 10;
|
|
1529
|
-
|
|
1530
|
-
&:hover {
|
|
1531
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1532
|
-
}
|
|
1533
|
-
`,Uj=w.span`
|
|
1534
|
-
margin-right: 10px;
|
|
1535
|
-
font-weight: bold;
|
|
1536
|
-
`,El=w.div`
|
|
1537
|
-
width: 8px;
|
|
1538
|
-
height: 8px;
|
|
1539
|
-
background-color: ${e=>e.theme.colors.text};
|
|
1540
|
-
border-radius: 50%;
|
|
1541
|
-
margin: 0 2px;
|
|
1542
|
-
animation: ${Fj} 1.4s infinite ease-in-out both;
|
|
1543
|
-
|
|
1544
|
-
&:nth-child(2) {
|
|
1545
|
-
animation-delay: -0.32s;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
&:nth-child(3) {
|
|
1549
|
-
animation-delay: -0.16s;
|
|
1550
|
-
}
|
|
1551
|
-
`,Vj=w.div`
|
|
1552
|
-
position: relative;
|
|
1553
|
-
width: 100%;
|
|
1554
|
-
`,Hj=w.textarea`
|
|
1555
|
-
width: 100%;
|
|
1556
|
-
min-height: 60px;
|
|
1557
|
-
resize: none;
|
|
1558
|
-
padding: 8px;
|
|
1559
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1560
|
-
border-radius: 4px;
|
|
1561
|
-
font-family: inherit;
|
|
1562
|
-
font-size: 14px;
|
|
1563
|
-
background-color: ${e=>e.theme.colors.inputBg};
|
|
1564
|
-
color: ${e=>e.theme.colors.inputText};
|
|
1565
|
-
box-sizing: border-box;
|
|
1566
|
-
overflow: hidden;
|
|
1567
|
-
|
|
1568
|
-
&:focus {
|
|
1569
|
-
outline: none;
|
|
1570
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
1571
|
-
}
|
|
1572
|
-
`,hg=({value:e,onChange:t,onKeyDown:n,onPaste:r,onImagePaste:o,maxViewportHeight:i=.5,...s})=>{const l=S.useRef(null);S.useEffect(()=>{if(l.current){l.current.style.height="auto";const d=l.current.scrollHeight,f=i*window.innerHeight,h=Math.min(d,f);l.current.style.height=`${h}px`}},[e,i]);const a=d=>{t(d.target.value)},c=d=>{var h;const f=(h=d.clipboardData)==null?void 0:h.items;if(f){for(let y=0;y<f.length;y++)if(f[y].type.indexOf("image")!==-1){d.preventDefault();const v=f[y].getAsFile();if(v){const x=new File([v],`pasted-image-${Date.now()}.png`,{type:"image/png"});o==null||o(x)}break}}r==null||r(d)};return u.jsx(Vj,{children:u.jsx(Hj,{ref:l,value:e,onChange:a,onKeyDown:n,onPaste:c,...s})})},Wj=({onSubmit:e,onInterrupt:t,onPauseResume:n,question:r,codegenOptions:o,executionStatus:i})=>{var x;const[s,l]=S.useState(""),[a,c]=S.useState(null),[d,f]=S.useState(o.aiService);S.useEffect(()=>{f(o.aiService)},[o.aiService]);const h=async k=>{if(k.preventDefault(),s.trim()&&r)try{await e(s,void 0,d),l(""),c(null)}catch(m){console.error("Error submitting answer:",m),c("Failed to submit the answer. Please try again.")}},y=async k=>{try{await e(s,k,d),c(null)}catch(m){console.error("Error submitting confirmation:",m),c("Failed to submit the confirmation. Please try again.")}},v=i==="paused";return u.jsxs(Jj,{children:[r?u.jsxs(Kj,{onSubmit:h,children:[r.confirmation&&u.jsx("p",{children:r.text}),((x=r.confirmation)==null?void 0:x.includeAnswer)!==!1&&u.jsx(hg,{value:s,onChange:l,placeholder:"Enter your answer here",maxViewportHeight:.3}),!r.confirmation&&u.jsxs(bl,{children:[u.jsx(Gj,{type:"submit",children:"Submit Answer"}),u.jsx(ds,{value:d,onChange:f,disabled:!1}),u.jsx(Nl,{onClick:t,children:"Interrupt"})]}),r.confirmation&&u.jsxs(bl,{children:[u.jsx(hf,{onClick:()=>y(!0),children:r.confirmation.confirmLabel}),u.jsx(hf,{onClick:()=>y(!1),"data-secondary":"true",children:r.confirmation.declineLabel}),u.jsx(ds,{value:d,onChange:f,disabled:!1}),u.jsx(Nl,{onClick:t,children:"Interrupt"})]})]}):u.jsxs(bl,{children:[u.jsx(Qj,{onClick:n,isPaused:v,children:v?"Resume":"Pause"}),u.jsx(Nl,{onClick:t,children:"Interrupt"})]}),a&&u.jsx(qj,{children:a})]})},Jj=w.div`
|
|
1573
|
-
background-color: ${({theme:e})=>e.colors.background};
|
|
1574
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1575
|
-
border-radius: 8px;
|
|
1576
|
-
padding: 15px;
|
|
1577
|
-
margin-top: 10px;
|
|
1578
|
-
margin-bottom: 10px;
|
|
1579
|
-
max-width: 70%;
|
|
1580
|
-
width: 100%;
|
|
1581
|
-
box-sizing: border-box;
|
|
1582
|
-
`,Kj=w.form`
|
|
1583
|
-
display: flex;
|
|
1584
|
-
flex-direction: column;
|
|
1585
|
-
|
|
1586
|
-
> p {
|
|
1587
|
-
margin-top: 0;
|
|
1588
|
-
}
|
|
1589
|
-
`,bl=w.div`
|
|
1590
|
-
display: flex;
|
|
1591
|
-
justify-content: flex-start;
|
|
1592
|
-
gap: 10px;
|
|
1593
|
-
margin-top: 10px;
|
|
1594
|
-
`,Fs=w.button`
|
|
1595
|
-
color: #ffffff;
|
|
1596
|
-
border: none;
|
|
1597
|
-
border-radius: 4px;
|
|
1598
|
-
padding: 8px 12px;
|
|
1599
|
-
font-size: 14px;
|
|
1600
|
-
cursor: pointer;
|
|
1601
|
-
transition: background-color 0.3s ease;
|
|
1602
|
-
`,Gj=w(Fs)`
|
|
1603
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
1604
|
-
|
|
1605
|
-
&:hover {
|
|
1606
|
-
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
1607
|
-
}
|
|
1608
|
-
`,hf=w(Fs)`
|
|
1609
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
1610
|
-
&:hover {
|
|
1611
|
-
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
&[data-secondary='true'] {
|
|
1615
|
-
background-color: ${({theme:e})=>e.colors.secondary};
|
|
1616
|
-
&:hover {
|
|
1617
|
-
background-color: ${({theme:e})=>e.colors.secondary}dd;
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
`,Nl=w(Fs)`
|
|
1621
|
-
background-color: ${({theme:e})=>e.colors.error};
|
|
1622
|
-
margin-left: auto;
|
|
1623
|
-
|
|
1624
|
-
&:hover {
|
|
1625
|
-
background-color: ${({theme:e})=>e.colors.error}dd;
|
|
1626
|
-
}
|
|
1627
|
-
`,Qj=w(Fs)`
|
|
1628
|
-
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info};
|
|
1629
|
-
|
|
1630
|
-
&:hover {
|
|
1631
|
-
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info}dd;
|
|
1632
|
-
}
|
|
1633
|
-
`,qj=w.p`
|
|
1634
|
-
color: ${({theme:e})=>e.colors.error};
|
|
1635
|
-
font-weight: bold;
|
|
1636
|
-
margin-top: 10px;
|
|
1637
|
-
margin-bottom: 0;
|
|
1638
|
-
`,Yj=({isVisible:e,onInterrupt:t,onPauseResume:n,executionStatus:r})=>e?u.jsxs(Zj,{children:[u.jsx(tE,{onClick:t,children:"Interrupt"}),u.jsxs(eE,{"data-execution-status":r,children:[u.jsx($l,{}),u.jsx($l,{}),u.jsx($l,{})]}),u.jsx(mg,{onClick:n,children:r==="paused"?"Resume":"Pause"})]}):null,Xj=Do`
|
|
1639
|
-
0%, 80%, 100% {
|
|
1640
|
-
transform: scale(0);
|
|
1641
|
-
}
|
|
1642
|
-
40% {
|
|
1643
|
-
transform: scale(1.0);
|
|
1644
|
-
}
|
|
1645
|
-
`,Zj=w.div`
|
|
1646
|
-
display: flex;
|
|
1647
|
-
flex-direction: row;
|
|
1648
|
-
align-items: center;
|
|
1649
|
-
justify-content: center;
|
|
1650
|
-
gap: 50px;
|
|
1651
|
-
padding: 10px;
|
|
1652
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1653
|
-
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
1654
|
-
`,eE=w.div`
|
|
1655
|
-
display: flex;
|
|
1656
|
-
align-items: center;
|
|
1657
|
-
justify-content: center;
|
|
1658
|
-
align-items: center;
|
|
1659
|
-
margin-bottom: 10px;
|
|
1660
|
-
`,$l=w.div`
|
|
1661
|
-
width: 10px;
|
|
1662
|
-
height: 10px;
|
|
1663
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
1664
|
-
border-radius: 50%;
|
|
1665
|
-
margin: 0 5px;
|
|
1666
|
-
|
|
1667
|
-
[data-execution-status='executing'] & {
|
|
1668
|
-
animation: ${Xj} 1.4s infinite ease-in-out both;
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
&:nth-child(1) {
|
|
1672
|
-
animation-delay: -0.32s;
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
&:nth-child(2) {
|
|
1676
|
-
animation-delay: -0.16s;
|
|
1677
|
-
}
|
|
1678
|
-
`,mg=w.button`
|
|
1679
|
-
padding: 8px 16px;
|
|
1680
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
1681
|
-
color: #ffffff;
|
|
1682
|
-
border: none;
|
|
1683
|
-
border-radius: 4px;
|
|
1684
|
-
cursor: pointer;
|
|
1685
|
-
font-size: 14px;
|
|
1686
|
-
font-weight: 600;
|
|
1687
|
-
transition: background-color 0.3s, transform 0.1s;
|
|
1688
|
-
|
|
1689
|
-
&:hover {
|
|
1690
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1691
|
-
transform: translateY(-1px);
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
&:active {
|
|
1695
|
-
transform: translateY(0);
|
|
1696
|
-
}
|
|
1697
|
-
`,tE=w(mg)`
|
|
1698
|
-
background-color: ${({theme:e})=>e.colors.error};
|
|
1699
|
-
|
|
1700
|
-
&:hover {
|
|
1701
|
-
background-color: ${({theme:e})=>e.colors.errorHover};
|
|
1702
|
-
}
|
|
1703
|
-
`,nE=({messages:e,currentQuestion:t,codegenOptions:n,onQuestionSubmit:r,onInterrupt:o,onPauseResume:i,executionStatus:s})=>{var lt;const[l,a]=S.useState(()=>new Set),[c,d]=S.useState(()=>new Set),[f,h]=S.useState(()=>new Set),[y]=S.useState(null),v=S.useRef(null),x=S.useRef(null),[k,m]=S.useState(!1),[p,g]=S.useState(!0),[C,j]=S.useState(null),b=Mj(e),$=s!=="idle"?(lt=b[b.length-1])==null?void 0:lt.iterationId:null,R=S.useCallback(()=>{if(!x.current)return!0;const{scrollTop:O,scrollHeight:q,clientHeight:B}=x.current;return Math.abs(q-B-O)<1||q<=B},[]);S.useEffect(()=>{const O=x.current;if(!O)return;const q=()=>{const B=R();g(B),B&&m(!1)};return O.addEventListener("scroll",q),()=>O.removeEventListener("scroll",q)},[R]),S.useEffect(()=>{p?F():m(!0)},[b,p]),S.useEffect(()=>{const O=new Set(b.slice(0,-1).map(q=>q.iterationId));h(O)},[]);const L=O=>{a(q=>{const B=new Set(q);return B.has(O)?B.delete(O):B.add(O),B})},I=O=>{d(q=>{const B=new Set(q);return B.has(O)?B.delete(O):B.add(O),B})},W=O=>{var q;y&&((q=e.find(B=>B.id===y))==null?void 0:q.iterationId)===O||h(B=>{const P=new Set(B);return P.has(O)?P.delete(O):P.add(O),P})},F=()=>{var O;(O=x.current)==null||O.scrollTo({top:x.current.scrollHeight,behavior:"smooth"}),m(!1)},Q=async O=>{if(C===O)try{await Dw(O),j(null)}catch(q){console.error("Failed to delete iteration:",q)}else j(O)};return u.jsxs(Rj,{children:[u.jsxs(Tj,{ref:x,children:[b.map((O,q)=>u.jsxs(Pj,{children:[u.jsxs(_j,{children:[u.jsxs("div",{className:"title",onClick:()=>W(O.iterationId),children:[f.has(O.iterationId)?u.jsx(Dj,{}):u.jsx(Oj,{}),u.jsx("span",{children:O.iterationTitle??`Iteration ${O.iterationId}`})]}),u.jsxs("span",{className:"meta",children:[O.timestampStart.toLocaleString()," - ",O.timestampEnd.toLocaleString(),u.jsx(cg,{messages:O.messages}),O.iterationId!==$&&u.jsx(Lj,{onClick:()=>Q(O.iterationId),title:C===O.iterationId?"Confirm deletion":"Delete iteration",children:C===O.iterationId?"🗑️ Confirm":"🗑️"})]})]}),u.jsxs(Ij,{isCollapsed:f.has(O.iterationId),children:[O.conversationSummaries.length>0&&u.jsx(Aj,{children:O.conversationSummaries.join(" ")}),O.messages.map((B,P)=>u.jsxs(Le.Fragment,{children:[B.type===sr.SYSTEM?u.jsx(Nj,{message:B,collapsedExecutions:c,toggleExecutionCollapse:I,visibleDataIds:l,toggleDataVisibility:L}):u.jsx(wj,{message:B,visibleDataIds:l,toggleDataVisibility:L}),s!=="idle"&&t&&q===b.length-1&&P===O.messages.length-1&&u.jsx(Wj,{onSubmit:r,onInterrupt:o,onPauseResume:i,question:t,codegenOptions:n,executionStatus:s})]},B.id))]})]},O.iterationId)),u.jsx("div",{ref:v})]}),k&&!p&&u.jsx(zj,{onClick:F}),u.jsx(Yj,{isVisible:s!=="idle"&&!t,onInterrupt:o,onPauseResume:i,executionStatus:s})]})},rE=5*1024*1024,mf=["image/jpeg","image/png","image/gif","image/webp"],vf=5,oE=({images:e,onImagesChange:t,error:n,setError:r,fileInputRef:o})=>{const i=l=>{const c=Array.from(l.target.files||[]).filter(d=>mf.includes(d.type)?d.size>rE?(r(`File too large: ${d.name}. Maximum size is 5MB.`),!1):!0:(r(`Invalid file type: ${d.name}. Allowed types are JPEG, PNG, GIF, and WebP.`),!1));if(c.length+e.length>vf){r(`Too many images. Maximum ${vf} images allowed.`);return}t([...e,...c]),r(null)},s=l=>{const a=e.filter((c,d)=>d!==l);t(a)};return u.jsxs(iE,{children:[n&&u.jsx(sE,{children:n}),u.jsx(lE,{children:e.map((l,a)=>u.jsxs(aE,{children:[u.jsx("img",{src:URL.createObjectURL(l),alt:`Uploaded ${a+1}`}),u.jsx(uE,{onClick:()=>s(a),children:"×"})]},a))}),u.jsx("input",{type:"file",ref:o,style:{display:"none"},onChange:i,accept:mf.join(","),multiple:!0})]})},iE=w.div`
|
|
1704
|
-
margin-bottom: 8px;
|
|
1705
|
-
`,sE=w.div`
|
|
1706
|
-
color: ${e=>e.theme.colors.error};
|
|
1707
|
-
font-size: 14px;
|
|
1708
|
-
margin-bottom: 8px;
|
|
1709
|
-
`,lE=w.div`
|
|
1710
|
-
display: flex;
|
|
1711
|
-
flex-wrap: wrap;
|
|
1712
|
-
gap: 8px;
|
|
1713
|
-
`,aE=w.div`
|
|
1714
|
-
position: relative;
|
|
1715
|
-
width: 60px;
|
|
1716
|
-
height: 60px;
|
|
1717
|
-
|
|
1718
|
-
img {
|
|
1719
|
-
width: 100%;
|
|
1720
|
-
height: 100%;
|
|
1721
|
-
object-fit: cover;
|
|
1722
|
-
border-radius: 4px;
|
|
1723
|
-
}
|
|
1724
|
-
`,uE=w.button`
|
|
1725
|
-
position: absolute;
|
|
1726
|
-
top: -8px;
|
|
1727
|
-
right: -8px;
|
|
1728
|
-
background-color: ${e=>e.theme.colors.error};
|
|
1729
|
-
color: white;
|
|
1730
|
-
border: none;
|
|
1731
|
-
border-radius: 50%;
|
|
1732
|
-
width: 20px;
|
|
1733
|
-
height: 20px;
|
|
1734
|
-
font-size: 14px;
|
|
1735
|
-
line-height: 1;
|
|
1736
|
-
cursor: pointer;
|
|
1737
|
-
display: flex;
|
|
1738
|
-
align-items: center;
|
|
1739
|
-
justify-content: center;
|
|
1740
|
-
|
|
1741
|
-
&:hover {
|
|
1742
|
-
background-color: ${e=>e.theme.colors.errorHover};
|
|
1743
|
-
}
|
|
1744
|
-
`,cE=({onSubmit:e,onUploadClick:t,onAiServiceChange:n,options:r,disabled:o})=>u.jsxs(fE,{children:[u.jsx(dE,{onClick:e,disabled:o,children:"Submit"}),u.jsx(vg,{onClick:t,children:"Upload Images"}),u.jsx(ds,{value:r.aiService,onChange:n})]}),vg=w.button`
|
|
1745
|
-
color: ${({theme:e})=>e.colors.buttonText};
|
|
1746
|
-
background-color: ${({theme:e})=>e.colors.buttonBg};
|
|
1747
|
-
border: none;
|
|
1748
|
-
border-radius: 4px;
|
|
1749
|
-
padding: 10px 15px;
|
|
1750
|
-
font-size: 14px;
|
|
1751
|
-
cursor: pointer;
|
|
1752
|
-
transition: background-color 0.3s ease;
|
|
1753
|
-
margin-right: 10px;
|
|
1754
|
-
|
|
1755
|
-
&:hover {
|
|
1756
|
-
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
&:disabled {
|
|
1760
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
1761
|
-
cursor: not-allowed;
|
|
1762
|
-
}
|
|
1763
|
-
`,dE=w(vg)`
|
|
1764
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
1765
|
-
color: #ffffff;
|
|
1766
|
-
|
|
1767
|
-
&:hover {
|
|
1768
|
-
background-color: ${({theme:e})=>e.colors.primaryHover};
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
&:disabled {
|
|
1772
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
1773
|
-
}
|
|
1774
|
-
`,fE=w.div`
|
|
1775
|
-
display: flex;
|
|
1776
|
-
justify-content: flex-start;
|
|
1777
|
-
margin-top: 10px;
|
|
1778
|
-
`,pE=({onSubmit:e,isExecuting:t,codegenOptions:n,onOptionsChange:r})=>{const[o,i]=S.useState(""),[s,l]=S.useState([]),[a,c]=S.useState(null),d=S.useRef(null);if(t)return null;const f=()=>{(o.trim()||s.length>0)&&(e(o.trim(),s),i(""),l([]))},h=k=>{l(k)},y=()=>{var k;(k=d.current)==null||k.click()},v=k=>{const m=[...s,k];h(m)},x=k=>{r({...n,aiService:k})};return u.jsxs(hE,{children:[u.jsx(mE,{children:u.jsx(hg,{value:o,onChange:i,placeholder:"Enter your input here",onImagePaste:v})}),u.jsx(oE,{images:s,onImagesChange:h,error:a,setError:c,fileInputRef:d}),u.jsx(cE,{onSubmit:f,onUploadClick:y,onAiServiceChange:x,options:n,disabled:!o.trim()&&s.length===0})]})},hE=w.div`
|
|
1779
|
-
display: flex;
|
|
1780
|
-
flex-direction: column;
|
|
1781
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1782
|
-
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
1783
|
-
padding: 16px;
|
|
1784
|
-
width: 100%;
|
|
1785
|
-
box-sizing: border-box;
|
|
1786
|
-
`,mE=w.div`
|
|
1787
|
-
margin-bottom: 16px;
|
|
1788
|
-
width: 100%;
|
|
1789
|
-
`,vE=({theme:e,toggleTheme:t})=>u.jsx(Uo,{onClick:t,"aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:e==="light"?"🌙":"☀️"}),gf=Jx`
|
|
1790
|
-
body {
|
|
1791
|
-
color: ${({theme:e})=>e.colors.text};
|
|
1792
|
-
font-family: Arial, sans-serif;
|
|
1793
|
-
margin: 0;
|
|
1794
|
-
padding: 0;
|
|
1795
|
-
background-color: ${({theme:e})=>e.colors.pageBackground};
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
body::before {
|
|
1799
|
-
content: '';
|
|
1800
|
-
position: fixed;
|
|
1801
|
-
top: 0;
|
|
1802
|
-
left: 0;
|
|
1803
|
-
right: 0;
|
|
1804
|
-
bottom: 0;
|
|
1805
|
-
transition: all 0.3s ease;
|
|
1806
|
-
opacity: 0.1;
|
|
1807
|
-
background-image: url(${e=>e.theme.backgroundImage});
|
|
1808
|
-
background-size: cover;
|
|
1809
|
-
background-position: center;
|
|
1810
|
-
background-repeat: no-repeat;
|
|
1811
|
-
background-attachment: fixed;
|
|
1812
|
-
z-index: -1;
|
|
1813
|
-
}
|
|
1814
|
-
`;var Zr=(e=>(e.FOCUS="GENAICODE_FOCUS",e.BLUR="GENAICODE_BLUR",e.NEW_MESSAGES="GENAICODE_NEW_MESSAGES",e.RESET_NOTIFICATIONS="GENAICODE_RESET_NOTIFICATIONS",e))(Zr||{});const gE=new URL("/assets/wolf-bark-Bl17CX4O.mp3",import.meta.url);class yE{constructor(){Lr(this,"context");Lr(this,"bufferCache",new Map);Lr(this,"initialized",!1);Lr(this,"currentSources",[]);const t=window.AudioContext||window.webkitAudioContext;this.context=new t,this.initSounds()}async initSounds(){if(!this.initialized)try{const t=await this.loadAudioBuffer(gE.href);this.bufferCache.set("bark",t),this.initialized=!0}catch(t){console.error("Failed to initialize sounds:",t)}}async loadAudioBuffer(t){const r=await(await fetch(t)).arrayBuffer();return await this.context.decodeAudioData(r)}async play(t,n=.5){this.initialized||await this.initSounds();const r=this.bufferCache.get(t);if(!r){console.warn(`Sound "${t}" not found in cache`);return}try{this.context.state==="suspended"&&await this.context.resume();const o=this.context.createBufferSource();o.buffer=r;const i=this.context.createGain();i.gain.value=Math.max(0,Math.min(1,n)),o.connect(i),i.connect(this.context.destination),o.start(0),this.currentSources.push(o)}catch(o){console.error(`Failed to play sound "${t}":`,o)}}async playBark(t=.5){return this.play("bark",t)}stop(){this.currentSources.forEach(t=>t.stop())}dispose(){this.context.close(),this.bufferCache.clear(),this.initialized=!1}}const Rl=new yE,xE=({messages:e,muteNotifications:t=!1})=>{const n=S.useRef(e.length),r=S.useRef(document.hasFocus()),o=S.useRef(document.title),[i,s]=S.useState(0),l=window!==window.parent;S.useEffect(()=>(o.current=document.title,()=>{document.title=o.current}),[]);const a=c=>{if(l&&window.parent){const d={...c,source:"genaicode",origin:window.location.origin};window.parent.postMessage(d,"*")}};return S.useEffect(()=>{const c=()=>{const d=document.hasFocus()&&document.visibilityState==="visible";r.current=d,l?a({type:d?Zr.FOCUS:Zr.BLUR,payload:{isFocused:d,timestamp:Date.now()}}):d&&(document.title=o.current),d&&(s(0),document.title=o.current,Rl.stop())};return window.addEventListener("focus",c),window.addEventListener("blur",c),document.addEventListener("visibilitychange",c,!1),l&&c(),()=>{window.removeEventListener("focus",c),window.removeEventListener("blur",c),document.removeEventListener("visibilitychange",c,!1)}},[]),S.useEffect(()=>{if(!l)return;const c=d=>{if(d.source===window.parent)try{const{type:f,source:h}=d.data;if(h!=="genaicode")return;switch(f){case Zr.RESET_NOTIFICATIONS:s(0),Rl.stop();break}}catch(f){console.warn("Error handling notification message:",f)}};return window.addEventListener("message",c),()=>window.removeEventListener("message",c)},[]),S.useEffect(()=>{if(e.length>n.current){const c=e.length-n.current;if(l)a({type:Zr.NEW_MESSAGES,payload:{count:c,timestamp:Date.now()}});else if(!r.current){const d=i+c;s(d),document.title=`(${d}) ${o.current}`}!r.current&&!t&&Rl.playBark(.5)}n.current=e.length},[e,i,t]),null},wE=()=>{const{currentPrompt:e,setCurrentPrompt:t,isExecuting:n,setIsExecuting:r,executionStatus:o,setExecutionStatus:i,chatMessages:s,setChatMessages:l,currentQuestion:a,setCurrentQuestion:c,theme:d,usage:f,codegenOptions:h,rcConfig:y,toggleTheme:v,startPolling:x,stopPolling:k,handlePauseExecution:m,handleResumeExecution:p,setCodegenOptions:g}=Ek(),{handleExecute:C,handleQuestionSubmit:j,handleInterrupt:b,handleOptionsChange:$}=bk({currentPrompt:e,setCurrentPrompt:t,isExecuting:n,setIsExecuting:r,setExecutionStatus:i,chatMessages:s,setChatMessages:l,setCurrentQuestion:c,codegenOptions:h,setCodegenOptions:g});S.useEffect(()=>(x(),()=>{k()}),[x,k]);const R=()=>{o==="paused"?p():m()};return f?u.jsxs(Ld,{theme:d==="light"?Od:Dd,children:[u.jsx(gf,{}),u.jsx(dk,{themeToggle:u.jsx(vE,{theme:d,toggleTheme:v}),toggleTheme:v,chatInterface:u.jsx(nE,{messages:s,currentQuestion:a,codegenOptions:h,onQuestionSubmit:j,onInterrupt:b,onPauseResume:R,executionStatus:o}),inputArea:!n&&u.jsx(pE,{onSubmit:C,isExecuting:n,onInterrupt:b,codegenOptions:h,onOptionsChange:$}),usage:f}),u.jsx(Bw,{currentService:h.aiService}),u.jsx(nS,{}),u.jsx(MS,{}),u.jsx(ik,{rcConfig:y}),u.jsx(nk,{options:h,onOptionsChange:$}),u.jsx(xE,{messages:s,muteNotifications:h.muteNotifications})]}):u.jsx(Ld,{theme:d==="light"?Od:Dd,children:u.jsx(gf,{})})};function SE(){return u.jsx(wE,{})}const kE=document.getElementById("root"),CE=$h(kE);CE.render(Le.createElement(SE,null));
|