genaicode 0.11.1 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -9
- package/dist/ai-service/ai-studio.d.ts +18 -1
- package/dist/ai-service/ai-studio.js +92 -21
- package/dist/ai-service/ai-studio.js.map +1 -1
- package/dist/ai-service/anthropic.js +59 -25
- package/dist/ai-service/anthropic.js.map +1 -1
- package/dist/ai-service/common-types.d.ts +8 -3
- package/dist/ai-service/common.d.ts +5 -1
- package/dist/ai-service/common.js +9 -0
- package/dist/ai-service/common.js.map +1 -1
- package/dist/ai-service/dall-e.js +1 -0
- package/dist/ai-service/dall-e.js.map +1 -1
- package/dist/ai-service/github-models.d.ts +13 -0
- package/dist/ai-service/github-models.js +51 -0
- package/dist/ai-service/github-models.js.map +1 -0
- package/dist/ai-service/local-llm.js +2 -1
- package/dist/ai-service/local-llm.js.map +1 -1
- package/dist/ai-service/openai-responses.d.ts +9 -0
- package/dist/ai-service/openai-responses.js +286 -0
- package/dist/ai-service/openai-responses.js.map +1 -0
- package/dist/ai-service/openai.js +22 -10
- package/dist/ai-service/openai.js.map +1 -1
- package/dist/ai-service/service-configurations-types.d.ts +7 -7
- package/dist/ai-service/service-configurations.d.ts +1 -0
- package/dist/ai-service/service-configurations.js +41 -36
- package/dist/ai-service/service-configurations.js.map +1 -1
- package/dist/ai-service/vertex-ai-claude.js +2 -2
- package/dist/ai-service/vertex-ai-claude.js.map +1 -1
- package/dist/ai-service/vertex-ai.d.ts +1 -0
- package/dist/ai-service/vertex-ai.js +4 -332
- package/dist/ai-service/vertex-ai.js.map +1 -1
- package/dist/cli/cli-options.js +1 -1
- package/dist/cli/cli-options.js.map +1 -1
- package/dist/cli/validate-cli-params.js +1 -1
- package/dist/cli/validate-cli-params.js.map +1 -1
- package/dist/files/cache-file.d.ts +4 -0
- package/dist/files/cache-file.js +21 -0
- package/dist/files/cache-file.js.map +1 -1
- package/dist/files/find-files.d.ts +1 -0
- package/dist/files/find-files.js +4 -1
- package/dist/files/find-files.js.map +1 -1
- package/dist/files/source-code-utils.js +1 -1
- package/dist/files/summary-cache.d.ts +1 -1
- package/dist/files/summary-cache.js +1 -1
- package/dist/files/summary-cache.js.map +1 -1
- package/dist/main/codegen-utils.d.ts +6 -1
- package/dist/main/codegen-utils.js +21 -2
- package/dist/main/codegen-utils.js.map +1 -1
- package/dist/main/codegen.js +2 -2
- package/dist/main/codegen.js.map +1 -1
- package/dist/main/common/content-bus-types.d.ts +17 -1
- package/dist/main/common/content-bus.d.ts +3 -1
- package/dist/main/common/content-bus.js +23 -1
- package/dist/main/common/content-bus.js.map +1 -1
- package/dist/main/common/user-actions.d.ts +3 -0
- package/dist/main/common/user-actions.js +10 -0
- package/dist/main/common/user-actions.js.map +1 -1
- package/dist/main/config-lib.js +3 -2
- package/dist/main/config-lib.js.map +1 -1
- package/dist/main/config-types.d.ts +4 -0
- package/dist/main/config.js +4 -0
- package/dist/main/config.js.map +1 -1
- package/dist/main/interactive/select-ai-service.js +0 -1
- package/dist/main/interactive/select-ai-service.js.map +1 -1
- package/dist/main/interactive/user-action-handlers.js +7 -2
- package/dist/main/interactive/user-action-handlers.js.map +1 -1
- package/dist/main/knowledge/knowledge-store.d.ts +6 -0
- package/dist/main/knowledge/knowledge-store.js +128 -0
- package/dist/main/knowledge/knowledge-store.js.map +1 -0
- package/dist/main/knowledge/types.d.ts +20 -0
- package/dist/main/knowledge/types.js +2 -0
- package/dist/main/knowledge/types.js.map +1 -0
- package/dist/main/ui/backend/endpoints/interrupt-execution-endpoint.js +17 -3
- package/dist/main/ui/backend/endpoints/interrupt-execution-endpoint.js.map +1 -1
- package/dist/main/ui/common/api-types.d.ts +67 -4
- package/dist/main/ui/common/api-types.js +12 -1
- package/dist/main/ui/common/api-types.js.map +1 -1
- package/dist/main/ui/frontend/assets/index-j9Oi9iiP.js +2635 -0
- package/dist/main/ui/frontend/index.html +1 -1
- package/dist/main/ui/user-action-handlers.js +7 -1
- package/dist/main/ui/user-action-handlers.js.map +1 -1
- package/dist/project-profiles/types.d.ts +4 -4
- package/dist/project-profiles/types.js +4 -4
- package/dist/project-profiles/types.js.map +1 -1
- package/dist/prompt/function-calling-validate.js +2 -1
- package/dist/prompt/function-calling-validate.js.map +1 -1
- package/dist/prompt/function-calling.js +4 -0
- package/dist/prompt/function-calling.js.map +1 -1
- package/dist/prompt/function-defs/ask-question.js +4 -0
- package/dist/prompt/function-defs/ask-question.js.map +1 -1
- package/dist/prompt/function-defs/container-task-commands.d.ts +10 -0
- package/dist/prompt/function-defs/container-task-commands.js +185 -0
- package/dist/prompt/function-defs/container-task-commands.js.map +1 -0
- package/dist/prompt/function-defs/run-container-task.d.ts +11 -0
- package/dist/prompt/function-defs/run-container-task.js +41 -0
- package/dist/prompt/function-defs/run-container-task.js.map +1 -0
- package/dist/prompt/function-defs/web-search.d.ts +9 -0
- package/dist/prompt/function-defs/web-search.js +16 -0
- package/dist/prompt/function-defs/web-search.js.map +1 -0
- package/dist/prompt/limits.js +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/command-execution-loop.d.ts +7 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/command-execution-loop.js +301 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/command-execution-loop.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/check-context.d.ts +12 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/check-context.js +41 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/check-context.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/complete-task.d.ts +4 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/complete-task.js +49 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/complete-task.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-from-container.d.ts +4 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-from-container.js +190 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-from-container.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-to-container.d.ts +4 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-to-container.js +139 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-to-container.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/edit-file.d.ts +10 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/edit-file.js +93 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/edit-file.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/fail-task.d.ts +4 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/fail-task.js +72 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/fail-task.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/gain-knowledge.d.ts +10 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/gain-knowledge.js +125 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/gain-knowledge.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/interrupt-controller.d.ts +19 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/interrupt-controller.js +33 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/interrupt-controller.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/query-knowledge.d.ts +8 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/query-knowledge.js +85 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/query-knowledge.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/request-secret.d.ts +6 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/request-secret.js +122 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/request-secret.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/run-command.d.ts +7 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/run-command.js +146 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/run-command.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.d.ts +4 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.js +56 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/set-execution-plan.d.ts +4 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/set-execution-plan.js +56 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/set-execution-plan.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/update-execution-plan.d.ts +4 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/update-execution-plan.js +39 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/update-execution-plan.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/view-file.d.ts +10 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/view-file.js +95 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/view-file.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/web-search.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/web-search.js +96 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/web-search.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/wrap-context.d.ts +4 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/wrap-context.js +123 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/wrap-context.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-command-handlers.d.ts +34 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-command-handlers.js +332 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-command-handlers.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-registry.d.ts +11 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-registry.js +50 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-registry.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-types.d.ts +28 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-types.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-types.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-orchestrator.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-orchestrator.js +202 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-orchestrator.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-types.d.ts +52 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-types.js +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-types.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-check.d.ts +4 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-check.js +15 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-check.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-utils.d.ts +50 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-utils.js +358 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-utils.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js +2 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.js +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js +1 -1
- 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 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-container-task.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-container-task.js +7 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-container-task.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-web-search.d.ts +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-web-search.js +85 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-web-search.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question.js +11 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
- package/dist/prompt/steps/step-codegen-planning.js +1 -1
- package/dist/prompt/steps/step-codegen-planning.js.map +1 -1
- package/dist/prompt/steps/step-summarization.js +17 -10
- package/dist/prompt/steps/step-summarization.js.map +1 -1
- package/dist/prompt/systemprompt.js +3 -0
- package/dist/prompt/systemprompt.js.map +1 -1
- package/dist/utils/docker-utils.d.ts +37 -0
- package/dist/utils/docker-utils.js +258 -0
- package/dist/utils/docker-utils.js.map +1 -0
- package/dist/vite-genaicode/vite-genaicode-plugin.js +8 -1
- package/dist/vite-genaicode/vite-genaicode-plugin.js.map +1 -1
- package/package.json +13 -5
- package/dist/main/ui/frontend/assets/index-DylPpHEw.js +0 -2256
|
@@ -1,2256 +0,0 @@
|
|
|
1
|
-
var Aw=Object.defineProperty;var Lw=(e,t,r)=>t in e?Aw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var $o=(e,t,r)=>Lw(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();function Ed(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sc={exports:{}},Pe={};/**
|
|
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 Zh;function _w(){if(Zh)return Pe;Zh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,b={};function R(D,G,j){this.props=D,this.context=G,this.refs=b,this.updater=j||w}R.prototype.isReactComponent={},R.prototype.setState=function(D,G){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,G,"setState")},R.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=R.prototype;function I(D,G,j){this.props=D,this.context=G,this.refs=b,this.updater=j||w}var _=I.prototype=new C;_.constructor=I,S(_,R.prototype),_.isPureReactComponent=!0;var B=Array.isArray,q=Object.prototype.hasOwnProperty,A={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function K(D,G,j){var ye,be={},fe=null,ge=null;if(G!=null)for(ye in G.ref!==void 0&&(ge=G.ref),G.key!==void 0&&(fe=""+G.key),G)q.call(G,ye)&&!W.hasOwnProperty(ye)&&(be[ye]=G[ye]);var ve=arguments.length-2;if(ve===1)be.children=j;else if(1<ve){for(var Ce=Array(ve),Je=0;Je<ve;Je++)Ce[Je]=arguments[Je+2];be.children=Ce}if(D&&D.defaultProps)for(ye in ve=D.defaultProps,ve)be[ye]===void 0&&(be[ye]=ve[ye]);return{$$typeof:e,type:D,key:fe,ref:ge,props:be,_owner:A.current}}function le(D,G){return{$$typeof:e,type:D.type,key:G,ref:D.ref,props:D.props,_owner:D._owner}}function z(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function re(D){var G={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(j){return G[j]})}var se=/\/+/g;function oe(D,G){return typeof D=="object"&&D!==null&&D.key!=null?re(""+D.key):G.toString(36)}function X(D,G,j,ye,be){var fe=typeof D;(fe==="undefined"||fe==="boolean")&&(D=null);var ge=!1;if(D===null)ge=!0;else switch(fe){case"string":case"number":ge=!0;break;case"object":switch(D.$$typeof){case e:case t:ge=!0}}if(ge)return ge=D,be=be(ge),D=ye===""?"."+oe(ge,0):ye,B(be)?(j="",D!=null&&(j=D.replace(se,"$&/")+"/"),X(be,G,j,"",function(Je){return Je})):be!=null&&(z(be)&&(be=le(be,j+(!be.key||ge&&ge.key===be.key?"":(""+be.key).replace(se,"$&/")+"/")+D)),G.push(be)),1;if(ge=0,ye=ye===""?".":ye+":",B(D))for(var ve=0;ve<D.length;ve++){fe=D[ve];var Ce=ye+oe(fe,ve);ge+=X(fe,G,j,Ce,be)}else if(Ce=v(D),typeof Ce=="function")for(D=Ce.call(D),ve=0;!(fe=D.next()).done;)fe=fe.value,Ce=ye+oe(fe,ve++),ge+=X(fe,G,j,Ce,be);else if(fe==="object")throw G=String(D),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return ge}function U(D,G,j){if(D==null)return D;var ye=[],be=0;return X(D,ye,"","",function(fe){return G.call(j,fe,be++)}),ye}function de(D){if(D._status===-1){var G=D._result;G=G(),G.then(function(j){(D._status===0||D._status===-1)&&(D._status=1,D._result=j)},function(j){(D._status===0||D._status===-1)&&(D._status=2,D._result=j)}),D._status===-1&&(D._status=0,D._result=G)}if(D._status===1)return D._result.default;throw D._result}var ae={current:null},Z={transition:null},ue={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:Z,ReactCurrentOwner:A};function E(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:U,forEach:function(D,G,j){U(D,function(){G.apply(this,arguments)},j)},count:function(D){var G=0;return U(D,function(){G++}),G},toArray:function(D){return U(D,function(G){return G})||[]},only:function(D){if(!z(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Pe.Component=R,Pe.Fragment=r,Pe.Profiler=s,Pe.PureComponent=I,Pe.StrictMode=o,Pe.Suspense=f,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,Pe.act=E,Pe.cloneElement=function(D,G,j){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ye=S({},D.props),be=D.key,fe=D.ref,ge=D._owner;if(G!=null){if(G.ref!==void 0&&(fe=G.ref,ge=A.current),G.key!==void 0&&(be=""+G.key),D.type&&D.type.defaultProps)var ve=D.type.defaultProps;for(Ce in G)q.call(G,Ce)&&!W.hasOwnProperty(Ce)&&(ye[Ce]=G[Ce]===void 0&&ve!==void 0?ve[Ce]:G[Ce])}var Ce=arguments.length-2;if(Ce===1)ye.children=j;else if(1<Ce){ve=Array(Ce);for(var Je=0;Je<Ce;Je++)ve[Je]=arguments[Je+2];ye.children=ve}return{$$typeof:e,type:D.type,key:be,ref:fe,props:ye,_owner:ge}},Pe.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},Pe.createElement=K,Pe.createFactory=function(D){var G=K.bind(null,D);return G.type=D,G},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(D){return{$$typeof:d,render:D}},Pe.isValidElement=z,Pe.lazy=function(D){return{$$typeof:m,_payload:{_status:-1,_result:D},_init:de}},Pe.memo=function(D,G){return{$$typeof:p,type:D,compare:G===void 0?null:G}},Pe.startTransition=function(D){var G=Z.transition;Z.transition={};try{D()}finally{Z.transition=G}},Pe.unstable_act=E,Pe.useCallback=function(D,G){return ae.current.useCallback(D,G)},Pe.useContext=function(D){return ae.current.useContext(D)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(D){return ae.current.useDeferredValue(D)},Pe.useEffect=function(D,G){return ae.current.useEffect(D,G)},Pe.useId=function(){return ae.current.useId()},Pe.useImperativeHandle=function(D,G,j){return ae.current.useImperativeHandle(D,G,j)},Pe.useInsertionEffect=function(D,G){return ae.current.useInsertionEffect(D,G)},Pe.useLayoutEffect=function(D,G){return ae.current.useLayoutEffect(D,G)},Pe.useMemo=function(D,G){return ae.current.useMemo(D,G)},Pe.useReducer=function(D,G,j){return ae.current.useReducer(D,G,j)},Pe.useRef=function(D){return ae.current.useRef(D)},Pe.useState=function(D){return ae.current.useState(D)},Pe.useSyncExternalStore=function(D,G,j){return ae.current.useSyncExternalStore(D,G,j)},Pe.useTransition=function(){return ae.current.useTransition()},Pe.version="18.3.1",Pe}var em;function jd(){return em||(em=1,sc.exports=_w()),sc.exports}var L=jd();const Nt=Ed(L);var Es={},ac={exports:{}},$t={},uc={exports:{}},cc={};/**
|
|
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
|
-
*/var tm;function $w(){return tm||(tm=1,function(e){function t(Z,ue){var E=Z.length;Z.push(ue);e:for(;0<E;){var D=E-1>>>1,G=Z[D];if(0<s(G,ue))Z[D]=ue,Z[E]=G,E=D;else break e}}function r(Z){return Z.length===0?null:Z[0]}function o(Z){if(Z.length===0)return null;var ue=Z[0],E=Z.pop();if(E!==ue){Z[0]=E;e:for(var D=0,G=Z.length,j=G>>>1;D<j;){var ye=2*(D+1)-1,be=Z[ye],fe=ye+1,ge=Z[fe];if(0>s(be,E))fe<G&&0>s(ge,be)?(Z[D]=ge,Z[fe]=E,D=fe):(Z[D]=be,Z[ye]=E,D=ye);else if(fe<G&&0>s(ge,E))Z[D]=ge,Z[fe]=E,D=fe;else break e}}return ue}function s(Z,ue){var E=Z.sortIndex-ue.sortIndex;return E!==0?E:Z.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],p=[],m=1,g=null,v=3,w=!1,S=!1,b=!1,R=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(Z){for(var ue=r(p);ue!==null;){if(ue.callback===null)o(p);else if(ue.startTime<=Z)o(p),ue.sortIndex=ue.expirationTime,t(f,ue);else break;ue=r(p)}}function B(Z){if(b=!1,_(Z),!S)if(r(f)!==null)S=!0,de(q);else{var ue=r(p);ue!==null&&ae(B,ue.startTime-Z)}}function q(Z,ue){S=!1,b&&(b=!1,C(K),K=-1),w=!0;var E=v;try{for(_(ue),g=r(f);g!==null&&(!(g.expirationTime>ue)||Z&&!re());){var D=g.callback;if(typeof D=="function"){g.callback=null,v=g.priorityLevel;var G=D(g.expirationTime<=ue);ue=e.unstable_now(),typeof G=="function"?g.callback=G:g===r(f)&&o(f),_(ue)}else o(f);g=r(f)}if(g!==null)var j=!0;else{var ye=r(p);ye!==null&&ae(B,ye.startTime-ue),j=!1}return j}finally{g=null,v=E,w=!1}}var A=!1,W=null,K=-1,le=5,z=-1;function re(){return!(e.unstable_now()-z<le)}function se(){if(W!==null){var Z=e.unstable_now();z=Z;var ue=!0;try{ue=W(!0,Z)}finally{ue?oe():(A=!1,W=null)}}else A=!1}var oe;if(typeof I=="function")oe=function(){I(se)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,U=X.port2;X.port1.onmessage=se,oe=function(){U.postMessage(null)}}else oe=function(){R(se,0)};function de(Z){W=Z,A||(A=!0,oe())}function ae(Z,ue){K=R(function(){Z(e.unstable_now())},ue)}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(Z){Z.callback=null},e.unstable_continueExecution=function(){S||w||(S=!0,de(q))},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(Z){switch(v){case 1:case 2:case 3:var ue=3;break;default:ue=v}var E=v;v=ue;try{return Z()}finally{v=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,ue){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var E=v;v=Z;try{return ue()}finally{v=E}},e.unstable_scheduleCallback=function(Z,ue,E){var D=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?D+E:D):E=D,Z){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=E+G,Z={id:m++,callback:ue,priorityLevel:Z,startTime:E,expirationTime:G,sortIndex:-1},E>D?(Z.sortIndex=E,t(p,Z),r(f)===null&&Z===r(p)&&(b?(C(K),K=-1):b=!0,ae(B,E-D))):(Z.sortIndex=G,t(f,Z),S||w||(S=!0,de(q))),Z},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(Z){var ue=v;return function(){var E=v;v=ue;try{return Z.apply(this,arguments)}finally{v=E}}}}(cc)),cc}var nm;function Dw(){return nm||(nm=1,uc.exports=$w()),uc.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 rm;function zw(){if(rm)return $t;rm=1;var e=jd(),t=Dw();function r(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function a(n,i){u(n,i),u(n+"Capture",i)}function u(n,i){for(s[n]=i,n=0;n<i.length;n++)o.add(i[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,m={},g={};function v(n){return f.call(g,n)?!0:f.call(m,n)?!1:p.test(n)?g[n]=!0:(m[n]=!0,!1)}function w(n,i,l,c){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function S(n,i,l,c){if(i===null||typeof i>"u"||w(n,i,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function b(n,i,l,c,h,y,k){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=l,this.propertyName=n,this.type=i,this.sanitizeURL=y,this.removeEmptyString=k}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){R[n]=new b(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];R[i]=new b(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){R[n]=new b(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){R[n]=new b(n,2,!1,n,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(n){R[n]=new b(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){R[n]=new b(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){R[n]=new b(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){R[n]=new b(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){R[n]=new b(n,5,!1,n.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function I(n){return n[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(n){var i=n.replace(C,I);R[i]=new b(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(C,I);R[i]=new b(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(C,I);R[i]=new b(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){R[n]=new b(n,1,!1,n.toLowerCase(),null,!1,!1)}),R.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){R[n]=new b(n,1,!1,n.toLowerCase(),null,!0,!0)});function _(n,i,l,c){var h=R.hasOwnProperty(i)?R[i]:null;(h!==null?h.type!==0:c||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(S(i,l,h,c)&&(l=null),c||h===null?v(i)&&(l===null?n.removeAttribute(i):n.setAttribute(i,""+l)):h.mustUseProperty?n[h.propertyName]=l===null?h.type===3?!1:"":l:(i=h.attributeName,c=h.attributeNamespace,l===null?n.removeAttribute(i):(h=h.type,l=h===3||h===4&&l===!0?"":""+l,c?n.setAttributeNS(c,i,l):n.setAttribute(i,l))))}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,q=Symbol.for("react.element"),A=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),re=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),Z=Symbol.iterator;function ue(n){return n===null||typeof n!="object"?null:(n=Z&&n[Z]||n["@@iterator"],typeof n=="function"?n:null)}var E=Object.assign,D;function G(n){if(D===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);D=i&&i[1]||""}return`
|
|
26
|
-
`+D+n}var j=!1;function ye(n,i){if(!n||j)return"";j=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(F){var c=F}Reflect.construct(n,[],i)}else{try{i.call()}catch(F){c=F}n.call(i.prototype)}else{try{throw Error()}catch(F){c=F}n()}}catch(F){if(F&&c&&typeof F.stack=="string"){for(var h=F.stack.split(`
|
|
27
|
-
`),y=c.stack.split(`
|
|
28
|
-
`),k=h.length-1,N=y.length-1;1<=k&&0<=N&&h[k]!==y[N];)N--;for(;1<=k&&0<=N;k--,N--)if(h[k]!==y[N]){if(k!==1||N!==1)do if(k--,N--,0>N||h[k]!==y[N]){var P=`
|
|
29
|
-
`+h[k].replace(" at new "," at ");return n.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",n.displayName)),P}while(1<=k&&0<=N);break}}}finally{j=!1,Error.prepareStackTrace=l}return(n=n?n.displayName||n.name:"")?G(n):""}function be(n){switch(n.tag){case 5:return G(n.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return n=ye(n.type,!1),n;case 11:return n=ye(n.type.render,!1),n;case 1:return n=ye(n.type,!0),n;default:return""}}function fe(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case W:return"Fragment";case A:return"Portal";case le:return"Profiler";case K:return"StrictMode";case oe:return"Suspense";case X:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case re:return(n.displayName||"Context")+".Consumer";case z:return(n._context.displayName||"Context")+".Provider";case se:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case U:return i=n.displayName||null,i!==null?i:fe(n.type)||"Memo";case de:i=n._payload,n=n._init;try{return fe(n(i))}catch{}}return null}function ge(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(i);case 8:return i===K?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ve(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Ce(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Je(n){var i=Ce(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,y=l.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(k){c=""+k,y.call(this,k)}}),Object.defineProperty(n,i,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(k){c=""+k},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Tt(n){n._valueTracker||(n._valueTracker=Je(n))}function Ft(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),c="";return n&&(c=Ce(n)?n.checked?"true":"false":n.value),n=c,n!==l?(i.setValue(n),!0):!1}function qr(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Ji(n,i){var l=i.checked;return E({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??n._wrapperState.initialChecked})}function Ki(n,i){var l=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;l=ve(i.value!=null?i.value:l),n._wrapperState={initialChecked:c,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Qi(n,i){i=i.checked,i!=null&&_(n,"checked",i,!1)}function Wr(n,i){Qi(n,i);var l=ve(i.value),c=i.type;if(l!=null)c==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+l):n.value!==""+l&&(n.value=""+l);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?Gr(n,i.type,l):i.hasOwnProperty("defaultValue")&&Gr(n,i.type,ve(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function hl(n,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,l||i===n.value||(n.value=i),n.defaultValue=i}l=n.name,l!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,l!==""&&(n.name=l)}function Gr(n,i,l){(i!=="number"||qr(n.ownerDocument)!==n)&&(l==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+l&&(n.defaultValue=""+l))}var Vn=Array.isArray;function Hn(n,i,l,c){if(n=n.options,i){i={};for(var h=0;h<l.length;h++)i["$"+l[h]]=!0;for(l=0;l<n.length;l++)h=i.hasOwnProperty("$"+n[l].value),n[l].selected!==h&&(n[l].selected=h),h&&c&&(n[l].defaultSelected=!0)}else{for(l=""+ve(l),i=null,h=0;h<n.length;h++){if(n[h].value===l){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function Yi(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return E({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function ml(n,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(r(92));if(Vn(l)){if(1<l.length)throw Error(r(93));l=l[0]}i=l}i==null&&(i=""),l=i}n._wrapperState={initialValue:ve(l)}}function gl(n,i){var l=ve(i.value),c=ve(i.defaultValue);l!=null&&(l=""+l,l!==n.value&&(n.value=l),i.defaultValue==null&&n.defaultValue!==l&&(n.defaultValue=l)),c!=null&&(n.defaultValue=""+c)}function yl(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function J(n){switch(n){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 ie(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?J(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Ee,Ie=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,c,h){MSApp.execUnsafeLocalFunction(function(){return n(i,l,c,h)})}:n}(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(Ee=Ee||document.createElement("div"),Ee.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Ee.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function $e(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var pt={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},An=["Webkit","ms","Moz","O"];Object.keys(pt).forEach(function(n){An.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),pt[i]=pt[n]})});function Zt(n,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||pt.hasOwnProperty(n)&&pt[n]?(""+i).trim():i+"px"}function qn(n,i){n=n.style;for(var l in i)if(i.hasOwnProperty(l)){var c=l.indexOf("--")===0,h=Zt(l,i[l],c);l==="float"&&(l="cssFloat"),c?n.setProperty(l,h):n[l]=h}}var wr=E({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 ht(n,i){if(i){if(wr[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function kn(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 Bt=null;function Sa(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ba=null,Jr=null,Kr=null;function gf(n){if(n=wo(n)){if(typeof ba!="function")throw Error(r(280));var i=n.stateNode;i&&(i=Fl(i),ba(n.stateNode,n.type,i))}}function yf(n){Jr?Kr?Kr.push(n):Kr=[n]:Jr=n}function xf(){if(Jr){var n=Jr,i=Kr;if(Kr=Jr=null,gf(n),i)for(n=0;n<i.length;n++)gf(i[n])}}function vf(n,i){return n(i)}function wf(){}var Ca=!1;function kf(n,i,l){if(Ca)return n(i,l);Ca=!0;try{return vf(n,i,l)}finally{Ca=!1,(Jr!==null||Kr!==null)&&(wf(),xf())}}function Xi(n,i){var l=n.stateNode;if(l===null)return null;var c=Fl(l);if(c===null)return null;l=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(r(231,i,typeof l));return l}var Ea=!1;if(d)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){Ea=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Ea=!1}function O0(n,i,l,c,h,y,k,N,P){var F=Array.prototype.slice.call(arguments,3);try{i.apply(l,F)}catch(Y){this.onError(Y)}}var eo=!1,xl=null,vl=!1,ja=null,M0={onError:function(n){eo=!0,xl=n}};function F0(n,i,l,c,h,y,k,N,P){eo=!1,xl=null,O0.apply(M0,arguments)}function B0(n,i,l,c,h,y,k,N,P){if(F0.apply(this,arguments),eo){if(eo){var F=xl;eo=!1,xl=null}else throw Error(r(198));vl||(vl=!0,ja=F)}}function kr(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function Sf(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function bf(n){if(kr(n)!==n)throw Error(r(188))}function U0(n){var i=n.alternate;if(!i){if(i=kr(n),i===null)throw Error(r(188));return i!==n?null:n}for(var l=n,c=i;;){var h=l.return;if(h===null)break;var y=h.alternate;if(y===null){if(c=h.return,c!==null){l=c;continue}break}if(h.child===y.child){for(y=h.child;y;){if(y===l)return bf(h),n;if(y===c)return bf(h),i;y=y.sibling}throw Error(r(188))}if(l.return!==c.return)l=h,c=y;else{for(var k=!1,N=h.child;N;){if(N===l){k=!0,l=h,c=y;break}if(N===c){k=!0,c=h,l=y;break}N=N.sibling}if(!k){for(N=y.child;N;){if(N===l){k=!0,l=y,c=h;break}if(N===c){k=!0,c=y,l=h;break}N=N.sibling}if(!k)throw Error(r(189))}}if(l.alternate!==c)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?n:i}function Cf(n){return n=U0(n),n!==null?Ef(n):null}function Ef(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Ef(n);if(i!==null)return i;n=n.sibling}return null}var jf=t.unstable_scheduleCallback,Rf=t.unstable_cancelCallback,V0=t.unstable_shouldYield,H0=t.unstable_requestPaint,et=t.unstable_now,q0=t.unstable_getCurrentPriorityLevel,Ra=t.unstable_ImmediatePriority,Nf=t.unstable_UserBlockingPriority,wl=t.unstable_NormalPriority,W0=t.unstable_LowPriority,Tf=t.unstable_IdlePriority,kl=null,Sn=null;function G0(n){if(Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(kl,n,void 0,(n.current.flags&128)===128)}catch{}}var cn=Math.clz32?Math.clz32:Q0,J0=Math.log,K0=Math.LN2;function Q0(n){return n>>>=0,n===0?32:31-(J0(n)/K0|0)|0}var Sl=64,bl=4194304;function to(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Cl(n,i){var l=n.pendingLanes;if(l===0)return 0;var c=0,h=n.suspendedLanes,y=n.pingedLanes,k=l&268435455;if(k!==0){var N=k&~h;N!==0?c=to(N):(y&=k,y!==0&&(c=to(y)))}else k=l&~h,k!==0?c=to(k):y!==0&&(c=to(y));if(c===0)return 0;if(i!==0&&i!==c&&(i&h)===0&&(h=c&-c,y=i&-i,h>=y||h===16&&(y&4194240)!==0))return i;if((c&4)!==0&&(c|=l&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0<i;)l=31-cn(i),h=1<<l,c|=n[l],i&=~h;return c}function Y0(n,i){switch(n){case 1:case 2:case 4:return i+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 i+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 X0(n,i){for(var l=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,y=n.pendingLanes;0<y;){var k=31-cn(y),N=1<<k,P=h[k];P===-1?((N&l)===0||(N&c)!==0)&&(h[k]=Y0(N,i)):P<=i&&(n.expiredLanes|=N),y&=~N}}function Na(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function If(){var n=Sl;return Sl<<=1,(Sl&4194240)===0&&(Sl=64),n}function Ta(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function no(n,i,l){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-cn(i),n[i]=l}function Z0(n,i){var l=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<l;){var h=31-cn(l),y=1<<h;i[h]=0,c[h]=-1,n[h]=-1,l&=~y}}function Ia(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var c=31-cn(l),h=1<<c;h&i|n[c]&i&&(n[c]|=i),l&=~h}}var Me=0;function Pf(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Af,Pa,Lf,_f,$f,Aa=!1,El=[],Wn=null,Gn=null,Jn=null,ro=new Map,io=new Map,Kn=[],e1="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 Df(n,i){switch(n){case"focusin":case"focusout":Wn=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":ro.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":io.delete(i.pointerId)}}function oo(n,i,l,c,h,y){return n===null||n.nativeEvent!==y?(n={blockedOn:i,domEventName:l,eventSystemFlags:c,nativeEvent:y,targetContainers:[h]},i!==null&&(i=wo(i),i!==null&&Pa(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function t1(n,i,l,c,h){switch(i){case"focusin":return Wn=oo(Wn,n,i,l,c,h),!0;case"dragenter":return Gn=oo(Gn,n,i,l,c,h),!0;case"mouseover":return Jn=oo(Jn,n,i,l,c,h),!0;case"pointerover":var y=h.pointerId;return ro.set(y,oo(ro.get(y)||null,n,i,l,c,h)),!0;case"gotpointercapture":return y=h.pointerId,io.set(y,oo(io.get(y)||null,n,i,l,c,h)),!0}return!1}function zf(n){var i=Sr(n.target);if(i!==null){var l=kr(i);if(l!==null){if(i=l.tag,i===13){if(i=Sf(l),i!==null){n.blockedOn=i,$f(n.priority,function(){Lf(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function jl(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=_a(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(l===null){l=n.nativeEvent;var c=new l.constructor(l.type,l);Bt=c,l.target.dispatchEvent(c),Bt=null}else return i=wo(l),i!==null&&Pa(i),n.blockedOn=l,!1;i.shift()}return!0}function Of(n,i,l){jl(n)&&l.delete(i)}function n1(){Aa=!1,Wn!==null&&jl(Wn)&&(Wn=null),Gn!==null&&jl(Gn)&&(Gn=null),Jn!==null&&jl(Jn)&&(Jn=null),ro.forEach(Of),io.forEach(Of)}function lo(n,i){n.blockedOn===i&&(n.blockedOn=null,Aa||(Aa=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,n1)))}function so(n){function i(h){return lo(h,n)}if(0<El.length){lo(El[0],n);for(var l=1;l<El.length;l++){var c=El[l];c.blockedOn===n&&(c.blockedOn=null)}}for(Wn!==null&&lo(Wn,n),Gn!==null&&lo(Gn,n),Jn!==null&&lo(Jn,n),ro.forEach(i),io.forEach(i),l=0;l<Kn.length;l++)c=Kn[l],c.blockedOn===n&&(c.blockedOn=null);for(;0<Kn.length&&(l=Kn[0],l.blockedOn===null);)zf(l),l.blockedOn===null&&Kn.shift()}var Qr=B.ReactCurrentBatchConfig,Rl=!0;function r1(n,i,l,c){var h=Me,y=Qr.transition;Qr.transition=null;try{Me=1,La(n,i,l,c)}finally{Me=h,Qr.transition=y}}function i1(n,i,l,c){var h=Me,y=Qr.transition;Qr.transition=null;try{Me=4,La(n,i,l,c)}finally{Me=h,Qr.transition=y}}function La(n,i,l,c){if(Rl){var h=_a(n,i,l,c);if(h===null)Ya(n,i,c,Nl,l),Df(n,c);else if(t1(h,n,i,l,c))c.stopPropagation();else if(Df(n,c),i&4&&-1<e1.indexOf(n)){for(;h!==null;){var y=wo(h);if(y!==null&&Af(y),y=_a(n,i,l,c),y===null&&Ya(n,i,c,Nl,l),y===h)break;h=y}h!==null&&c.stopPropagation()}else Ya(n,i,c,null,l)}}var Nl=null;function _a(n,i,l,c){if(Nl=null,n=Sa(c),n=Sr(n),n!==null)if(i=kr(n),i===null)n=null;else if(l=i.tag,l===13){if(n=Sf(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return Nl=n,null}function Mf(n){switch(n){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(q0()){case Ra:return 1;case Nf:return 4;case wl:case W0:return 16;case Tf:return 536870912;default:return 16}default:return 16}}var Qn=null,$a=null,Tl=null;function Ff(){if(Tl)return Tl;var n,i=$a,l=i.length,c,h="value"in Qn?Qn.value:Qn.textContent,y=h.length;for(n=0;n<l&&i[n]===h[n];n++);var k=l-n;for(c=1;c<=k&&i[l-c]===h[y-c];c++);return Tl=h.slice(n,1<c?1-c:void 0)}function Il(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Pl(){return!0}function Bf(){return!1}function Ut(n){function i(l,c,h,y,k){this._reactName=l,this._targetInst=h,this.type=c,this.nativeEvent=y,this.target=k,this.currentTarget=null;for(var N in n)n.hasOwnProperty(N)&&(l=n[N],this[N]=l?l(y):y[N]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Pl:Bf,this.isPropagationStopped=Bf,this}return E(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Pl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Pl)},persist:function(){},isPersistent:Pl}),i}var Yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Da=Ut(Yr),ao=E({},Yr,{view:0,detail:0}),o1=Ut(ao),za,Oa,uo,Al=E({},ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fa,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==uo&&(uo&&n.type==="mousemove"?(za=n.screenX-uo.screenX,Oa=n.screenY-uo.screenY):Oa=za=0,uo=n),za)},movementY:function(n){return"movementY"in n?n.movementY:Oa}}),Uf=Ut(Al),l1=E({},Al,{dataTransfer:0}),s1=Ut(l1),a1=E({},ao,{relatedTarget:0}),Ma=Ut(a1),u1=E({},Yr,{animationName:0,elapsedTime:0,pseudoElement:0}),c1=Ut(u1),d1=E({},Yr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),f1=Ut(d1),p1=E({},Yr,{data:0}),Vf=Ut(p1),h1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},m1={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"},g1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y1(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=g1[n])?!!i[n]:!1}function Fa(){return y1}var x1=E({},ao,{key:function(n){if(n.key){var i=h1[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Il(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?m1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fa,charCode:function(n){return n.type==="keypress"?Il(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Il(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),v1=Ut(x1),w1=E({},Al,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hf=Ut(w1),k1=E({},ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fa}),S1=Ut(k1),b1=E({},Yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),C1=Ut(b1),E1=E({},Al,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),j1=Ut(E1),R1=[9,13,27,32],Ba=d&&"CompositionEvent"in window,co=null;d&&"documentMode"in document&&(co=document.documentMode);var N1=d&&"TextEvent"in window&&!co,qf=d&&(!Ba||co&&8<co&&11>=co),Wf=" ",Gf=!1;function Jf(n,i){switch(n){case"keyup":return R1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kf(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Xr=!1;function T1(n,i){switch(n){case"compositionend":return Kf(i);case"keypress":return i.which!==32?null:(Gf=!0,Wf);case"textInput":return n=i.data,n===Wf&&Gf?null:n;default:return null}}function I1(n,i){if(Xr)return n==="compositionend"||!Ba&&Jf(n,i)?(n=Ff(),Tl=$a=Qn=null,Xr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return qf&&i.locale!=="ko"?null:i.data;default:return null}}var P1={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 Qf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!P1[n.type]:i==="textarea"}function Yf(n,i,l,c){yf(c),i=zl(i,"onChange"),0<i.length&&(l=new Da("onChange","change",null,l,c),n.push({event:l,listeners:i}))}var fo=null,po=null;function A1(n){mp(n,0)}function Ll(n){var i=ri(n);if(Ft(i))return n}function L1(n,i){if(n==="change")return i}var Xf=!1;if(d){var Ua;if(d){var Va="oninput"in document;if(!Va){var Zf=document.createElement("div");Zf.setAttribute("oninput","return;"),Va=typeof Zf.oninput=="function"}Ua=Va}else Ua=!1;Xf=Ua&&(!document.documentMode||9<document.documentMode)}function ep(){fo&&(fo.detachEvent("onpropertychange",tp),po=fo=null)}function tp(n){if(n.propertyName==="value"&&Ll(po)){var i=[];Yf(i,po,n,Sa(n)),kf(A1,i)}}function _1(n,i,l){n==="focusin"?(ep(),fo=i,po=l,fo.attachEvent("onpropertychange",tp)):n==="focusout"&&ep()}function $1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ll(po)}function D1(n,i){if(n==="click")return Ll(i)}function z1(n,i){if(n==="input"||n==="change")return Ll(i)}function O1(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var dn=typeof Object.is=="function"?Object.is:O1;function ho(n,i){if(dn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),c=Object.keys(i);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var h=l[c];if(!f.call(i,h)||!dn(n[h],i[h]))return!1}return!0}function np(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function rp(n,i){var l=np(n);n=0;for(var c;l;){if(l.nodeType===3){if(c=n+l.textContent.length,n<=i&&c>=i)return{node:l,offset:i-n};n=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=np(l)}}function ip(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?ip(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function op(){for(var n=window,i=qr();i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=qr(n.document)}return i}function Ha(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function M1(n){var i=op(),l=n.focusedElem,c=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&ip(l.ownerDocument.documentElement,l)){if(c!==null&&Ha(l)){if(i=c.start,n=c.end,n===void 0&&(n=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(n,l.value.length);else if(n=(i=l.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var h=l.textContent.length,y=Math.min(c.start,h);c=c.end===void 0?y:Math.min(c.end,h),!n.extend&&y>c&&(h=c,c=y,y=h),h=rp(l,y);var k=rp(l,c);h&&k&&(n.rangeCount!==1||n.anchorNode!==h.node||n.anchorOffset!==h.offset||n.focusNode!==k.node||n.focusOffset!==k.offset)&&(i=i.createRange(),i.setStart(h.node,h.offset),n.removeAllRanges(),y>c?(n.addRange(i),n.extend(k.node,k.offset)):(i.setEnd(k.node,k.offset),n.addRange(i)))}}for(i=[],n=l;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)n=i[l],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var F1=d&&"documentMode"in document&&11>=document.documentMode,Zr=null,qa=null,mo=null,Wa=!1;function lp(n,i,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wa||Zr==null||Zr!==qr(c)||(c=Zr,"selectionStart"in c&&Ha(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),mo&&ho(mo,c)||(mo=c,c=zl(qa,"onSelect"),0<c.length&&(i=new Da("onSelect","select",null,i,l),n.push({event:i,listeners:c}),i.target=Zr)))}function _l(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var ei={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionend:_l("Transition","TransitionEnd")},Ga={},sp={};d&&(sp=document.createElement("div").style,"AnimationEvent"in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),"TransitionEvent"in window||delete ei.transitionend.transition);function $l(n){if(Ga[n])return Ga[n];if(!ei[n])return n;var i=ei[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in sp)return Ga[n]=i[l];return n}var ap=$l("animationend"),up=$l("animationiteration"),cp=$l("animationstart"),dp=$l("transitionend"),fp=new Map,pp="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 Yn(n,i){fp.set(n,i),a(i,[n])}for(var Ja=0;Ja<pp.length;Ja++){var Ka=pp[Ja],B1=Ka.toLowerCase(),U1=Ka[0].toUpperCase()+Ka.slice(1);Yn(B1,"on"+U1)}Yn(ap,"onAnimationEnd"),Yn(up,"onAnimationIteration"),Yn(cp,"onAnimationStart"),Yn("dblclick","onDoubleClick"),Yn("focusin","onFocus"),Yn("focusout","onBlur"),Yn(dp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var go="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(" "),V1=new Set("cancel close invalid load scroll toggle".split(" ").concat(go));function hp(n,i,l){var c=n.type||"unknown-event";n.currentTarget=l,B0(c,i,void 0,n),n.currentTarget=null}function mp(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var c=n[l],h=c.event;c=c.listeners;e:{var y=void 0;if(i)for(var k=c.length-1;0<=k;k--){var N=c[k],P=N.instance,F=N.currentTarget;if(N=N.listener,P!==y&&h.isPropagationStopped())break e;hp(h,N,F),y=P}else for(k=0;k<c.length;k++){if(N=c[k],P=N.instance,F=N.currentTarget,N=N.listener,P!==y&&h.isPropagationStopped())break e;hp(h,N,F),y=P}}}if(vl)throw n=ja,vl=!1,ja=null,n}function qe(n,i){var l=i[ru];l===void 0&&(l=i[ru]=new Set);var c=n+"__bubble";l.has(c)||(gp(i,n,2,!1),l.add(c))}function Qa(n,i,l){var c=0;i&&(c|=4),gp(l,n,c,i)}var Dl="_reactListening"+Math.random().toString(36).slice(2);function yo(n){if(!n[Dl]){n[Dl]=!0,o.forEach(function(l){l!=="selectionchange"&&(V1.has(l)||Qa(l,!1,n),Qa(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Dl]||(i[Dl]=!0,Qa("selectionchange",!1,i))}}function gp(n,i,l,c){switch(Mf(i)){case 1:var h=r1;break;case 4:h=i1;break;default:h=La}l=h.bind(null,i,l,n),h=void 0,!Ea||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(i,l,{capture:!0,passive:h}):n.addEventListener(i,l,!0):h!==void 0?n.addEventListener(i,l,{passive:h}):n.addEventListener(i,l,!1)}function Ya(n,i,l,c,h){var y=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var N=c.stateNode.containerInfo;if(N===h||N.nodeType===8&&N.parentNode===h)break;if(k===4)for(k=c.return;k!==null;){var P=k.tag;if((P===3||P===4)&&(P=k.stateNode.containerInfo,P===h||P.nodeType===8&&P.parentNode===h))return;k=k.return}for(;N!==null;){if(k=Sr(N),k===null)return;if(P=k.tag,P===5||P===6){c=y=k;continue e}N=N.parentNode}}c=c.return}kf(function(){var F=y,Y=Sa(l),ee=[];e:{var Q=fp.get(n);if(Q!==void 0){var ce=Da,he=n;switch(n){case"keypress":if(Il(l)===0)break e;case"keydown":case"keyup":ce=v1;break;case"focusin":he="focus",ce=Ma;break;case"focusout":he="blur",ce=Ma;break;case"beforeblur":case"afterblur":ce=Ma;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ce=Uf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=s1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=S1;break;case ap:case up:case cp:ce=c1;break;case dp:ce=C1;break;case"scroll":ce=o1;break;case"wheel":ce=j1;break;case"copy":case"cut":case"paste":ce=f1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=Hf}var me=(i&4)!==0,tt=!me&&n==="scroll",O=me?Q!==null?Q+"Capture":null:Q;me=[];for(var $=F,M;$!==null;){M=$;var ne=M.stateNode;if(M.tag===5&&ne!==null&&(M=ne,O!==null&&(ne=Xi($,O),ne!=null&&me.push(xo($,ne,M)))),tt)break;$=$.return}0<me.length&&(Q=new ce(Q,he,null,l,Y),ee.push({event:Q,listeners:me}))}}if((i&7)===0){e:{if(Q=n==="mouseover"||n==="pointerover",ce=n==="mouseout"||n==="pointerout",Q&&l!==Bt&&(he=l.relatedTarget||l.fromElement)&&(Sr(he)||he[Ln]))break e;if((ce||Q)&&(Q=Y.window===Y?Y:(Q=Y.ownerDocument)?Q.defaultView||Q.parentWindow:window,ce?(he=l.relatedTarget||l.toElement,ce=F,he=he?Sr(he):null,he!==null&&(tt=kr(he),he!==tt||he.tag!==5&&he.tag!==6)&&(he=null)):(ce=null,he=F),ce!==he)){if(me=Uf,ne="onMouseLeave",O="onMouseEnter",$="mouse",(n==="pointerout"||n==="pointerover")&&(me=Hf,ne="onPointerLeave",O="onPointerEnter",$="pointer"),tt=ce==null?Q:ri(ce),M=he==null?Q:ri(he),Q=new me(ne,$+"leave",ce,l,Y),Q.target=tt,Q.relatedTarget=M,ne=null,Sr(Y)===F&&(me=new me(O,$+"enter",he,l,Y),me.target=M,me.relatedTarget=tt,ne=me),tt=ne,ce&&he)t:{for(me=ce,O=he,$=0,M=me;M;M=ti(M))$++;for(M=0,ne=O;ne;ne=ti(ne))M++;for(;0<$-M;)me=ti(me),$--;for(;0<M-$;)O=ti(O),M--;for(;$--;){if(me===O||O!==null&&me===O.alternate)break t;me=ti(me),O=ti(O)}me=null}else me=null;ce!==null&&yp(ee,Q,ce,me,!1),he!==null&&tt!==null&&yp(ee,tt,he,me,!0)}}e:{if(Q=F?ri(F):window,ce=Q.nodeName&&Q.nodeName.toLowerCase(),ce==="select"||ce==="input"&&Q.type==="file")var xe=L1;else if(Qf(Q))if(Xf)xe=z1;else{xe=$1;var we=_1}else(ce=Q.nodeName)&&ce.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(xe=D1);if(xe&&(xe=xe(n,F))){Yf(ee,xe,l,Y);break e}we&&we(n,Q,F),n==="focusout"&&(we=Q._wrapperState)&&we.controlled&&Q.type==="number"&&Gr(Q,"number",Q.value)}switch(we=F?ri(F):window,n){case"focusin":(Qf(we)||we.contentEditable==="true")&&(Zr=we,qa=F,mo=null);break;case"focusout":mo=qa=Zr=null;break;case"mousedown":Wa=!0;break;case"contextmenu":case"mouseup":case"dragend":Wa=!1,lp(ee,l,Y);break;case"selectionchange":if(F1)break;case"keydown":case"keyup":lp(ee,l,Y)}var ke;if(Ba)e:{switch(n){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Xr?Jf(n,l)&&(je="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(je="onCompositionStart");je&&(qf&&l.locale!=="ko"&&(Xr||je!=="onCompositionStart"?je==="onCompositionEnd"&&Xr&&(ke=Ff()):(Qn=Y,$a="value"in Qn?Qn.value:Qn.textContent,Xr=!0)),we=zl(F,je),0<we.length&&(je=new Vf(je,n,null,l,Y),ee.push({event:je,listeners:we}),ke?je.data=ke:(ke=Kf(l),ke!==null&&(je.data=ke)))),(ke=N1?T1(n,l):I1(n,l))&&(F=zl(F,"onBeforeInput"),0<F.length&&(Y=new Vf("onBeforeInput","beforeinput",null,l,Y),ee.push({event:Y,listeners:F}),Y.data=ke))}mp(ee,i)})}function xo(n,i,l){return{instance:n,listener:i,currentTarget:l}}function zl(n,i){for(var l=i+"Capture",c=[];n!==null;){var h=n,y=h.stateNode;h.tag===5&&y!==null&&(h=y,y=Xi(n,l),y!=null&&c.unshift(xo(n,y,h)),y=Xi(n,i),y!=null&&c.push(xo(n,y,h))),n=n.return}return c}function ti(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function yp(n,i,l,c,h){for(var y=i._reactName,k=[];l!==null&&l!==c;){var N=l,P=N.alternate,F=N.stateNode;if(P!==null&&P===c)break;N.tag===5&&F!==null&&(N=F,h?(P=Xi(l,y),P!=null&&k.unshift(xo(l,P,N))):h||(P=Xi(l,y),P!=null&&k.push(xo(l,P,N)))),l=l.return}k.length!==0&&n.push({event:i,listeners:k})}var H1=/\r\n?/g,q1=/\u0000|\uFFFD/g;function xp(n){return(typeof n=="string"?n:""+n).replace(H1,`
|
|
30
|
-
`).replace(q1,"")}function Ol(n,i,l){if(i=xp(i),xp(n)!==i&&l)throw Error(r(425))}function Ml(){}var Xa=null,Za=null;function eu(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var tu=typeof setTimeout=="function"?setTimeout:void 0,W1=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,G1=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(n){return vp.resolve(null).then(n).catch(J1)}:tu;function J1(n){setTimeout(function(){throw n})}function nu(n,i){var l=i,c=0;do{var h=l.nextSibling;if(n.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(c===0){n.removeChild(h),so(i);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=h}while(l);so(i)}function Xn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function wp(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return n;i--}else l==="/$"&&i++}n=n.previousSibling}return null}var ni=Math.random().toString(36).slice(2),bn="__reactFiber$"+ni,vo="__reactProps$"+ni,Ln="__reactContainer$"+ni,ru="__reactEvents$"+ni,K1="__reactListeners$"+ni,Q1="__reactHandles$"+ni;function Sr(n){var i=n[bn];if(i)return i;for(var l=n.parentNode;l;){if(i=l[Ln]||l[bn]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=wp(n);n!==null;){if(l=n[bn])return l;n=wp(n)}return i}n=l,l=n.parentNode}return null}function wo(n){return n=n[bn]||n[Ln],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function ri(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Fl(n){return n[vo]||null}var iu=[],ii=-1;function Zn(n){return{current:n}}function We(n){0>ii||(n.current=iu[ii],iu[ii]=null,ii--)}function Ue(n,i){ii++,iu[ii]=n.current,n.current=i}var er={},yt=Zn(er),It=Zn(!1),br=er;function oi(n,i){var l=n.type.contextTypes;if(!l)return er;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var h={},y;for(y in l)h[y]=i[y];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=h),h}function Pt(n){return n=n.childContextTypes,n!=null}function Bl(){We(It),We(yt)}function kp(n,i,l){if(yt.current!==er)throw Error(r(168));Ue(yt,i),Ue(It,l)}function Sp(n,i,l){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return l;c=c.getChildContext();for(var h in c)if(!(h in i))throw Error(r(108,ge(n)||"Unknown",h));return E({},l,c)}function Ul(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||er,br=yt.current,Ue(yt,n),Ue(It,It.current),!0}function bp(n,i,l){var c=n.stateNode;if(!c)throw Error(r(169));l?(n=Sp(n,i,br),c.__reactInternalMemoizedMergedChildContext=n,We(It),We(yt),Ue(yt,n)):We(It),Ue(It,l)}var _n=null,Vl=!1,ou=!1;function Cp(n){_n===null?_n=[n]:_n.push(n)}function Y1(n){Vl=!0,Cp(n)}function tr(){if(!ou&&_n!==null){ou=!0;var n=0,i=Me;try{var l=_n;for(Me=1;n<l.length;n++){var c=l[n];do c=c(!0);while(c!==null)}_n=null,Vl=!1}catch(h){throw _n!==null&&(_n=_n.slice(n+1)),jf(Ra,tr),h}finally{Me=i,ou=!1}}return null}var li=[],si=0,Hl=null,ql=0,en=[],tn=0,Cr=null,$n=1,Dn="";function Er(n,i){li[si++]=ql,li[si++]=Hl,Hl=n,ql=i}function Ep(n,i,l){en[tn++]=$n,en[tn++]=Dn,en[tn++]=Cr,Cr=n;var c=$n;n=Dn;var h=32-cn(c)-1;c&=~(1<<h),l+=1;var y=32-cn(i)+h;if(30<y){var k=h-h%5;y=(c&(1<<k)-1).toString(32),c>>=k,h-=k,$n=1<<32-cn(i)+h|l<<h|c,Dn=y+n}else $n=1<<y|l<<h|c,Dn=n}function lu(n){n.return!==null&&(Er(n,1),Ep(n,1,0))}function su(n){for(;n===Hl;)Hl=li[--si],li[si]=null,ql=li[--si],li[si]=null;for(;n===Cr;)Cr=en[--tn],en[tn]=null,Dn=en[--tn],en[tn]=null,$n=en[--tn],en[tn]=null}var Vt=null,Ht=null,Ke=!1,fn=null;function jp(n,i){var l=ln(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=n,i=n.deletions,i===null?(n.deletions=[l],n.flags|=16):i.push(l)}function Rp(n,i){switch(n.tag){case 5:var l=n.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,Vt=n,Ht=Xn(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,Vt=n,Ht=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=Cr!==null?{id:$n,overflow:Dn}:null,n.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=ln(18,null,null,0),l.stateNode=i,l.return=n,n.child=l,Vt=n,Ht=null,!0):!1;default:return!1}}function au(n){return(n.mode&1)!==0&&(n.flags&128)===0}function uu(n){if(Ke){var i=Ht;if(i){var l=i;if(!Rp(n,i)){if(au(n))throw Error(r(418));i=Xn(l.nextSibling);var c=Vt;i&&Rp(n,i)?jp(c,l):(n.flags=n.flags&-4097|2,Ke=!1,Vt=n)}}else{if(au(n))throw Error(r(418));n.flags=n.flags&-4097|2,Ke=!1,Vt=n}}}function Np(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Vt=n}function Wl(n){if(n!==Vt)return!1;if(!Ke)return Np(n),Ke=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!eu(n.type,n.memoizedProps)),i&&(i=Ht)){if(au(n))throw Tp(),Error(r(418));for(;i;)jp(n,i),i=Xn(i.nextSibling)}if(Np(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"){if(i===0){Ht=Xn(n.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}n=n.nextSibling}Ht=null}}else Ht=Vt?Xn(n.stateNode.nextSibling):null;return!0}function Tp(){for(var n=Ht;n;)n=Xn(n.nextSibling)}function ai(){Ht=Vt=null,Ke=!1}function cu(n){fn===null?fn=[n]:fn.push(n)}var X1=B.ReactCurrentBatchConfig;function ko(n,i,l){if(n=l.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var c=l.stateNode}if(!c)throw Error(r(147,n));var h=c,y=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===y?i.ref:(i=function(k){var N=h.refs;k===null?delete N[y]:N[y]=k},i._stringRef=y,i)}if(typeof n!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,n))}return n}function Gl(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function Ip(n){var i=n._init;return i(n._payload)}function Pp(n){function i(O,$){if(n){var M=O.deletions;M===null?(O.deletions=[$],O.flags|=16):M.push($)}}function l(O,$){if(!n)return null;for(;$!==null;)i(O,$),$=$.sibling;return null}function c(O,$){for(O=new Map;$!==null;)$.key!==null?O.set($.key,$):O.set($.index,$),$=$.sibling;return O}function h(O,$){return O=ur(O,$),O.index=0,O.sibling=null,O}function y(O,$,M){return O.index=M,n?(M=O.alternate,M!==null?(M=M.index,M<$?(O.flags|=2,$):M):(O.flags|=2,$)):(O.flags|=1048576,$)}function k(O){return n&&O.alternate===null&&(O.flags|=2),O}function N(O,$,M,ne){return $===null||$.tag!==6?($=tc(M,O.mode,ne),$.return=O,$):($=h($,M),$.return=O,$)}function P(O,$,M,ne){var xe=M.type;return xe===W?Y(O,$,M.props.children,ne,M.key):$!==null&&($.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===de&&Ip(xe)===$.type)?(ne=h($,M.props),ne.ref=ko(O,$,M),ne.return=O,ne):(ne=ys(M.type,M.key,M.props,null,O.mode,ne),ne.ref=ko(O,$,M),ne.return=O,ne)}function F(O,$,M,ne){return $===null||$.tag!==4||$.stateNode.containerInfo!==M.containerInfo||$.stateNode.implementation!==M.implementation?($=nc(M,O.mode,ne),$.return=O,$):($=h($,M.children||[]),$.return=O,$)}function Y(O,$,M,ne,xe){return $===null||$.tag!==7?($=Lr(M,O.mode,ne,xe),$.return=O,$):($=h($,M),$.return=O,$)}function ee(O,$,M){if(typeof $=="string"&&$!==""||typeof $=="number")return $=tc(""+$,O.mode,M),$.return=O,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case q:return M=ys($.type,$.key,$.props,null,O.mode,M),M.ref=ko(O,null,$),M.return=O,M;case A:return $=nc($,O.mode,M),$.return=O,$;case de:var ne=$._init;return ee(O,ne($._payload),M)}if(Vn($)||ue($))return $=Lr($,O.mode,M,null),$.return=O,$;Gl(O,$)}return null}function Q(O,$,M,ne){var xe=$!==null?$.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return xe!==null?null:N(O,$,""+M,ne);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case q:return M.key===xe?P(O,$,M,ne):null;case A:return M.key===xe?F(O,$,M,ne):null;case de:return xe=M._init,Q(O,$,xe(M._payload),ne)}if(Vn(M)||ue(M))return xe!==null?null:Y(O,$,M,ne,null);Gl(O,M)}return null}function ce(O,$,M,ne,xe){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return O=O.get(M)||null,N($,O,""+ne,xe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case q:return O=O.get(ne.key===null?M:ne.key)||null,P($,O,ne,xe);case A:return O=O.get(ne.key===null?M:ne.key)||null,F($,O,ne,xe);case de:var we=ne._init;return ce(O,$,M,we(ne._payload),xe)}if(Vn(ne)||ue(ne))return O=O.get(M)||null,Y($,O,ne,xe,null);Gl($,ne)}return null}function he(O,$,M,ne){for(var xe=null,we=null,ke=$,je=$=0,ct=null;ke!==null&&je<M.length;je++){ke.index>je?(ct=ke,ke=null):ct=ke.sibling;var ze=Q(O,ke,M[je],ne);if(ze===null){ke===null&&(ke=ct);break}n&&ke&&ze.alternate===null&&i(O,ke),$=y(ze,$,je),we===null?xe=ze:we.sibling=ze,we=ze,ke=ct}if(je===M.length)return l(O,ke),Ke&&Er(O,je),xe;if(ke===null){for(;je<M.length;je++)ke=ee(O,M[je],ne),ke!==null&&($=y(ke,$,je),we===null?xe=ke:we.sibling=ke,we=ke);return Ke&&Er(O,je),xe}for(ke=c(O,ke);je<M.length;je++)ct=ce(ke,O,je,M[je],ne),ct!==null&&(n&&ct.alternate!==null&&ke.delete(ct.key===null?je:ct.key),$=y(ct,$,je),we===null?xe=ct:we.sibling=ct,we=ct);return n&&ke.forEach(function(cr){return i(O,cr)}),Ke&&Er(O,je),xe}function me(O,$,M,ne){var xe=ue(M);if(typeof xe!="function")throw Error(r(150));if(M=xe.call(M),M==null)throw Error(r(151));for(var we=xe=null,ke=$,je=$=0,ct=null,ze=M.next();ke!==null&&!ze.done;je++,ze=M.next()){ke.index>je?(ct=ke,ke=null):ct=ke.sibling;var cr=Q(O,ke,ze.value,ne);if(cr===null){ke===null&&(ke=ct);break}n&&ke&&cr.alternate===null&&i(O,ke),$=y(cr,$,je),we===null?xe=cr:we.sibling=cr,we=cr,ke=ct}if(ze.done)return l(O,ke),Ke&&Er(O,je),xe;if(ke===null){for(;!ze.done;je++,ze=M.next())ze=ee(O,ze.value,ne),ze!==null&&($=y(ze,$,je),we===null?xe=ze:we.sibling=ze,we=ze);return Ke&&Er(O,je),xe}for(ke=c(O,ke);!ze.done;je++,ze=M.next())ze=ce(ke,O,je,ze.value,ne),ze!==null&&(n&&ze.alternate!==null&&ke.delete(ze.key===null?je:ze.key),$=y(ze,$,je),we===null?xe=ze:we.sibling=ze,we=ze);return n&&ke.forEach(function(Pw){return i(O,Pw)}),Ke&&Er(O,je),xe}function tt(O,$,M,ne){if(typeof M=="object"&&M!==null&&M.type===W&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case q:e:{for(var xe=M.key,we=$;we!==null;){if(we.key===xe){if(xe=M.type,xe===W){if(we.tag===7){l(O,we.sibling),$=h(we,M.props.children),$.return=O,O=$;break e}}else if(we.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===de&&Ip(xe)===we.type){l(O,we.sibling),$=h(we,M.props),$.ref=ko(O,we,M),$.return=O,O=$;break e}l(O,we);break}else i(O,we);we=we.sibling}M.type===W?($=Lr(M.props.children,O.mode,ne,M.key),$.return=O,O=$):(ne=ys(M.type,M.key,M.props,null,O.mode,ne),ne.ref=ko(O,$,M),ne.return=O,O=ne)}return k(O);case A:e:{for(we=M.key;$!==null;){if($.key===we)if($.tag===4&&$.stateNode.containerInfo===M.containerInfo&&$.stateNode.implementation===M.implementation){l(O,$.sibling),$=h($,M.children||[]),$.return=O,O=$;break e}else{l(O,$);break}else i(O,$);$=$.sibling}$=nc(M,O.mode,ne),$.return=O,O=$}return k(O);case de:return we=M._init,tt(O,$,we(M._payload),ne)}if(Vn(M))return he(O,$,M,ne);if(ue(M))return me(O,$,M,ne);Gl(O,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,$!==null&&$.tag===6?(l(O,$.sibling),$=h($,M),$.return=O,O=$):(l(O,$),$=tc(M,O.mode,ne),$.return=O,O=$),k(O)):l(O,$)}return tt}var ui=Pp(!0),Ap=Pp(!1),Jl=Zn(null),Kl=null,ci=null,du=null;function fu(){du=ci=Kl=null}function pu(n){var i=Jl.current;We(Jl),n._currentValue=i}function hu(n,i,l){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===l)break;n=n.return}}function di(n,i){Kl=n,du=ci=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(At=!0),n.firstContext=null)}function nn(n){var i=n._currentValue;if(du!==n)if(n={context:n,memoizedValue:i,next:null},ci===null){if(Kl===null)throw Error(r(308));ci=n,Kl.dependencies={lanes:0,firstContext:n}}else ci=ci.next=n;return i}var jr=null;function mu(n){jr===null?jr=[n]:jr.push(n)}function Lp(n,i,l,c){var h=i.interleaved;return h===null?(l.next=l,mu(i)):(l.next=h.next,h.next=l),i.interleaved=l,zn(n,c)}function zn(n,i){n.lanes|=i;var l=n.alternate;for(l!==null&&(l.lanes|=i),l=n,n=n.return;n!==null;)n.childLanes|=i,l=n.alternate,l!==null&&(l.childLanes|=i),l=n,n=n.return;return l.tag===3?l.stateNode:null}var nr=!1;function gu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _p(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function On(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function rr(n,i,l){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(De&2)!==0){var h=c.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),c.pending=i,zn(n,l)}return h=c.interleaved,h===null?(i.next=i,mu(c)):(i.next=h.next,h.next=i),c.interleaved=i,zn(n,l)}function Ql(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,l|=c,i.lanes=l,Ia(n,l)}}function $p(n,i){var l=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var h=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var k={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?h=y=k:y=y.next=k,l=l.next}while(l!==null);y===null?h=y=i:y=y.next=i}else h=y=i;l={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:c.shared,effects:c.effects},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}function Yl(n,i,l,c){var h=n.updateQueue;nr=!1;var y=h.firstBaseUpdate,k=h.lastBaseUpdate,N=h.shared.pending;if(N!==null){h.shared.pending=null;var P=N,F=P.next;P.next=null,k===null?y=F:k.next=F,k=P;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,N=Y.lastBaseUpdate,N!==k&&(N===null?Y.firstBaseUpdate=F:N.next=F,Y.lastBaseUpdate=P))}if(y!==null){var ee=h.baseState;k=0,Y=F=P=null,N=y;do{var Q=N.lane,ce=N.eventTime;if((c&Q)===Q){Y!==null&&(Y=Y.next={eventTime:ce,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var he=n,me=N;switch(Q=i,ce=l,me.tag){case 1:if(he=me.payload,typeof he=="function"){ee=he.call(ce,ee,Q);break e}ee=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=me.payload,Q=typeof he=="function"?he.call(ce,ee,Q):he,Q==null)break e;ee=E({},ee,Q);break e;case 2:nr=!0}}N.callback!==null&&N.lane!==0&&(n.flags|=64,Q=h.effects,Q===null?h.effects=[N]:Q.push(N))}else ce={eventTime:ce,lane:Q,tag:N.tag,payload:N.payload,callback:N.callback,next:null},Y===null?(F=Y=ce,P=ee):Y=Y.next=ce,k|=Q;if(N=N.next,N===null){if(N=h.shared.pending,N===null)break;Q=N,N=Q.next,Q.next=null,h.lastBaseUpdate=Q,h.shared.pending=null}}while(!0);if(Y===null&&(P=ee),h.baseState=P,h.firstBaseUpdate=F,h.lastBaseUpdate=Y,i=h.shared.interleaved,i!==null){h=i;do k|=h.lane,h=h.next;while(h!==i)}else y===null&&(h.shared.lanes=0);Tr|=k,n.lanes=k,n.memoizedState=ee}}function Dp(n,i,l){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var c=n[i],h=c.callback;if(h!==null){if(c.callback=null,c=l,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var So={},Cn=Zn(So),bo=Zn(So),Co=Zn(So);function Rr(n){if(n===So)throw Error(r(174));return n}function yu(n,i){switch(Ue(Co,i),Ue(bo,n),Ue(Cn,So),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:ie(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=ie(i,n)}We(Cn),Ue(Cn,i)}function fi(){We(Cn),We(bo),We(Co)}function zp(n){Rr(Co.current);var i=Rr(Cn.current),l=ie(i,n.type);i!==l&&(Ue(bo,n),Ue(Cn,l))}function xu(n){bo.current===n&&(We(Cn),We(bo))}var Ye=Zn(0);function Xl(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var vu=[];function wu(){for(var n=0;n<vu.length;n++)vu[n]._workInProgressVersionPrimary=null;vu.length=0}var Zl=B.ReactCurrentDispatcher,ku=B.ReactCurrentBatchConfig,Nr=0,Xe=null,lt=null,at=null,es=!1,Eo=!1,jo=0,Z1=0;function xt(){throw Error(r(321))}function Su(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!dn(n[l],i[l]))return!1;return!0}function bu(n,i,l,c,h,y){if(Nr=y,Xe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Zl.current=n===null||n.memoizedState===null?rw:iw,n=l(c,h),Eo){y=0;do{if(Eo=!1,jo=0,25<=y)throw Error(r(301));y+=1,at=lt=null,i.updateQueue=null,Zl.current=ow,n=l(c,h)}while(Eo)}if(Zl.current=rs,i=lt!==null&<.next!==null,Nr=0,at=lt=Xe=null,es=!1,i)throw Error(r(300));return n}function Cu(){var n=jo!==0;return jo=0,n}function En(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?Xe.memoizedState=at=n:at=at.next=n,at}function rn(){if(lt===null){var n=Xe.alternate;n=n!==null?n.memoizedState:null}else n=lt.next;var i=at===null?Xe.memoizedState:at.next;if(i!==null)at=i,lt=n;else{if(n===null)throw Error(r(310));lt=n,n={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},at===null?Xe.memoizedState=at=n:at=at.next=n}return at}function Ro(n,i){return typeof i=="function"?i(n):i}function Eu(n){var i=rn(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=lt,h=c.baseQueue,y=l.pending;if(y!==null){if(h!==null){var k=h.next;h.next=y.next,y.next=k}c.baseQueue=h=y,l.pending=null}if(h!==null){y=h.next,c=c.baseState;var N=k=null,P=null,F=y;do{var Y=F.lane;if((Nr&Y)===Y)P!==null&&(P=P.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),c=F.hasEagerState?F.eagerState:n(c,F.action);else{var ee={lane:Y,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};P===null?(N=P=ee,k=c):P=P.next=ee,Xe.lanes|=Y,Tr|=Y}F=F.next}while(F!==null&&F!==y);P===null?k=c:P.next=N,dn(c,i.memoizedState)||(At=!0),i.memoizedState=c,i.baseState=k,i.baseQueue=P,l.lastRenderedState=c}if(n=l.interleaved,n!==null){h=n;do y=h.lane,Xe.lanes|=y,Tr|=y,h=h.next;while(h!==n)}else h===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function ju(n){var i=rn(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=l.dispatch,h=l.pending,y=i.memoizedState;if(h!==null){l.pending=null;var k=h=h.next;do y=n(y,k.action),k=k.next;while(k!==h);dn(y,i.memoizedState)||(At=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),l.lastRenderedState=y}return[y,c]}function Op(){}function Mp(n,i){var l=Xe,c=rn(),h=i(),y=!dn(c.memoizedState,h);if(y&&(c.memoizedState=h,At=!0),c=c.queue,Ru(Up.bind(null,l,c,n),[n]),c.getSnapshot!==i||y||at!==null&&at.memoizedState.tag&1){if(l.flags|=2048,No(9,Bp.bind(null,l,c,h,i),void 0,null),ut===null)throw Error(r(349));(Nr&30)!==0||Fp(l,i,h)}return h}function Fp(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=Xe.updateQueue,i===null?(i={lastEffect:null,stores:null},Xe.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function Bp(n,i,l,c){i.value=l,i.getSnapshot=c,Vp(i)&&Hp(n)}function Up(n,i,l){return l(function(){Vp(i)&&Hp(n)})}function Vp(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!dn(n,l)}catch{return!0}}function Hp(n){var i=zn(n,1);i!==null&&gn(i,n,1,-1)}function qp(n){var i=En();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},i.queue=n,n=n.dispatch=nw.bind(null,Xe,n),[i.memoizedState,n]}function No(n,i,l,c){return n={tag:n,create:i,destroy:l,deps:c,next:null},i=Xe.updateQueue,i===null?(i={lastEffect:null,stores:null},Xe.updateQueue=i,i.lastEffect=n.next=n):(l=i.lastEffect,l===null?i.lastEffect=n.next=n:(c=l.next,l.next=n,n.next=c,i.lastEffect=n)),n}function Wp(){return rn().memoizedState}function ts(n,i,l,c){var h=En();Xe.flags|=n,h.memoizedState=No(1|i,l,void 0,c===void 0?null:c)}function ns(n,i,l,c){var h=rn();c=c===void 0?null:c;var y=void 0;if(lt!==null){var k=lt.memoizedState;if(y=k.destroy,c!==null&&Su(c,k.deps)){h.memoizedState=No(i,l,y,c);return}}Xe.flags|=n,h.memoizedState=No(1|i,l,y,c)}function Gp(n,i){return ts(8390656,8,n,i)}function Ru(n,i){return ns(2048,8,n,i)}function Jp(n,i){return ns(4,2,n,i)}function Kp(n,i){return ns(4,4,n,i)}function Qp(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Yp(n,i,l){return l=l!=null?l.concat([n]):null,ns(4,4,Qp.bind(null,i,n),l)}function Nu(){}function Xp(n,i){var l=rn();i=i===void 0?null:i;var c=l.memoizedState;return c!==null&&i!==null&&Su(i,c[1])?c[0]:(l.memoizedState=[n,i],n)}function Zp(n,i){var l=rn();i=i===void 0?null:i;var c=l.memoizedState;return c!==null&&i!==null&&Su(i,c[1])?c[0]:(n=n(),l.memoizedState=[n,i],n)}function eh(n,i,l){return(Nr&21)===0?(n.baseState&&(n.baseState=!1,At=!0),n.memoizedState=l):(dn(l,i)||(l=If(),Xe.lanes|=l,Tr|=l,n.baseState=!0),i)}function ew(n,i){var l=Me;Me=l!==0&&4>l?l:4,n(!0);var c=ku.transition;ku.transition={};try{n(!1),i()}finally{Me=l,ku.transition=c}}function th(){return rn().memoizedState}function tw(n,i,l){var c=sr(n);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},nh(n))rh(i,l);else if(l=Lp(n,i,l,c),l!==null){var h=jt();gn(l,n,c,h),ih(l,i,c)}}function nw(n,i,l){var c=sr(n),h={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(nh(n))rh(i,h);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var k=i.lastRenderedState,N=y(k,l);if(h.hasEagerState=!0,h.eagerState=N,dn(N,k)){var P=i.interleaved;P===null?(h.next=h,mu(i)):(h.next=P.next,P.next=h),i.interleaved=h;return}}catch{}finally{}l=Lp(n,i,h,c),l!==null&&(h=jt(),gn(l,n,c,h),ih(l,i,c))}}function nh(n){var i=n.alternate;return n===Xe||i!==null&&i===Xe}function rh(n,i){Eo=es=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function ih(n,i,l){if((l&4194240)!==0){var c=i.lanes;c&=n.pendingLanes,l|=c,i.lanes=l,Ia(n,l)}}var rs={readContext:nn,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},rw={readContext:nn,useCallback:function(n,i){return En().memoizedState=[n,i===void 0?null:i],n},useContext:nn,useEffect:Gp,useImperativeHandle:function(n,i,l){return l=l!=null?l.concat([n]):null,ts(4194308,4,Qp.bind(null,i,n),l)},useLayoutEffect:function(n,i){return ts(4194308,4,n,i)},useInsertionEffect:function(n,i){return ts(4,2,n,i)},useMemo:function(n,i){var l=En();return i=i===void 0?null:i,n=n(),l.memoizedState=[n,i],n},useReducer:function(n,i,l){var c=En();return i=l!==void 0?l(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=tw.bind(null,Xe,n),[c.memoizedState,n]},useRef:function(n){var i=En();return n={current:n},i.memoizedState=n},useState:qp,useDebugValue:Nu,useDeferredValue:function(n){return En().memoizedState=n},useTransition:function(){var n=qp(!1),i=n[0];return n=ew.bind(null,n[1]),En().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,l){var c=Xe,h=En();if(Ke){if(l===void 0)throw Error(r(407));l=l()}else{if(l=i(),ut===null)throw Error(r(349));(Nr&30)!==0||Fp(c,i,l)}h.memoizedState=l;var y={value:l,getSnapshot:i};return h.queue=y,Gp(Up.bind(null,c,y,n),[n]),c.flags|=2048,No(9,Bp.bind(null,c,y,l,i),void 0,null),l},useId:function(){var n=En(),i=ut.identifierPrefix;if(Ke){var l=Dn,c=$n;l=(c&~(1<<32-cn(c)-1)).toString(32)+l,i=":"+i+"R"+l,l=jo++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=Z1++,i=":"+i+"r"+l.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},iw={readContext:nn,useCallback:Xp,useContext:nn,useEffect:Ru,useImperativeHandle:Yp,useInsertionEffect:Jp,useLayoutEffect:Kp,useMemo:Zp,useReducer:Eu,useRef:Wp,useState:function(){return Eu(Ro)},useDebugValue:Nu,useDeferredValue:function(n){var i=rn();return eh(i,lt.memoizedState,n)},useTransition:function(){var n=Eu(Ro)[0],i=rn().memoizedState;return[n,i]},useMutableSource:Op,useSyncExternalStore:Mp,useId:th,unstable_isNewReconciler:!1},ow={readContext:nn,useCallback:Xp,useContext:nn,useEffect:Ru,useImperativeHandle:Yp,useInsertionEffect:Jp,useLayoutEffect:Kp,useMemo:Zp,useReducer:ju,useRef:Wp,useState:function(){return ju(Ro)},useDebugValue:Nu,useDeferredValue:function(n){var i=rn();return lt===null?i.memoizedState=n:eh(i,lt.memoizedState,n)},useTransition:function(){var n=ju(Ro)[0],i=rn().memoizedState;return[n,i]},useMutableSource:Op,useSyncExternalStore:Mp,useId:th,unstable_isNewReconciler:!1};function pn(n,i){if(n&&n.defaultProps){i=E({},i),n=n.defaultProps;for(var l in n)i[l]===void 0&&(i[l]=n[l]);return i}return i}function Tu(n,i,l,c){i=n.memoizedState,l=l(c,i),l=l==null?i:E({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var is={isMounted:function(n){return(n=n._reactInternals)?kr(n)===n:!1},enqueueSetState:function(n,i,l){n=n._reactInternals;var c=jt(),h=sr(n),y=On(c,h);y.payload=i,l!=null&&(y.callback=l),i=rr(n,y,h),i!==null&&(gn(i,n,h,c),Ql(i,n,h))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var c=jt(),h=sr(n),y=On(c,h);y.tag=1,y.payload=i,l!=null&&(y.callback=l),i=rr(n,y,h),i!==null&&(gn(i,n,h,c),Ql(i,n,h))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=jt(),c=sr(n),h=On(l,c);h.tag=2,i!=null&&(h.callback=i),i=rr(n,h,c),i!==null&&(gn(i,n,c,l),Ql(i,n,c))}};function oh(n,i,l,c,h,y,k){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,y,k):i.prototype&&i.prototype.isPureReactComponent?!ho(l,c)||!ho(h,y):!0}function lh(n,i,l){var c=!1,h=er,y=i.contextType;return typeof y=="object"&&y!==null?y=nn(y):(h=Pt(i)?br:yt.current,c=i.contextTypes,y=(c=c!=null)?oi(n,h):er),i=new i(l,y),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=is,n.stateNode=i,i._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=y),i}function sh(n,i,l,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,c),i.state!==n&&is.enqueueReplaceState(i,i.state,null)}function Iu(n,i,l,c){var h=n.stateNode;h.props=l,h.state=n.memoizedState,h.refs={},gu(n);var y=i.contextType;typeof y=="object"&&y!==null?h.context=nn(y):(y=Pt(i)?br:yt.current,h.context=oi(n,y)),h.state=n.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(Tu(n,i,y,l),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(i=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),i!==h.state&&is.enqueueReplaceState(h,h.state,null),Yl(n,l,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function pi(n,i){try{var l="",c=i;do l+=be(c),c=c.return;while(c);var h=l}catch(y){h=`
|
|
31
|
-
Error generating stack: `+y.message+`
|
|
32
|
-
`+y.stack}return{value:n,source:i,stack:h,digest:null}}function Pu(n,i,l){return{value:n,source:null,stack:l??null,digest:i??null}}function Au(n,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var lw=typeof WeakMap=="function"?WeakMap:Map;function ah(n,i,l){l=On(-1,l),l.tag=3,l.payload={element:null};var c=i.value;return l.callback=function(){ds||(ds=!0,Gu=c),Au(n,i)},l}function uh(n,i,l){l=On(-1,l),l.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var h=i.value;l.payload=function(){return c(h)},l.callback=function(){Au(n,i)}}var y=n.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){Au(n,i),typeof c!="function"&&(or===null?or=new Set([this]):or.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),l}function ch(n,i,l){var c=n.pingCache;if(c===null){c=n.pingCache=new lw;var h=new Set;c.set(i,h)}else h=c.get(i),h===void 0&&(h=new Set,c.set(i,h));h.has(l)||(h.add(l),n=ww.bind(null,n,i,l),i.then(n,n))}function dh(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function fh(n,i,l,c,h){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=On(-1,1),i.tag=2,rr(l,i,1))),l.lanes|=1),n):(n.flags|=65536,n.lanes=h,n)}var sw=B.ReactCurrentOwner,At=!1;function Et(n,i,l,c){i.child=n===null?Ap(i,null,l,c):ui(i,n.child,l,c)}function ph(n,i,l,c,h){l=l.render;var y=i.ref;return di(i,h),c=bu(n,i,l,c,y,h),l=Cu(),n!==null&&!At?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Mn(n,i,h)):(Ke&&l&&lu(i),i.flags|=1,Et(n,i,c,h),i.child)}function hh(n,i,l,c,h){if(n===null){var y=l.type;return typeof y=="function"&&!ec(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=y,mh(n,i,y,c,h)):(n=ys(l.type,null,c,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(y=n.child,(n.lanes&h)===0){var k=y.memoizedProps;if(l=l.compare,l=l!==null?l:ho,l(k,c)&&n.ref===i.ref)return Mn(n,i,h)}return i.flags|=1,n=ur(y,c),n.ref=i.ref,n.return=i,i.child=n}function mh(n,i,l,c,h){if(n!==null){var y=n.memoizedProps;if(ho(y,c)&&n.ref===i.ref)if(At=!1,i.pendingProps=c=y,(n.lanes&h)!==0)(n.flags&131072)!==0&&(At=!0);else return i.lanes=n.lanes,Mn(n,i,h)}return Lu(n,i,l,c,h)}function gh(n,i,l){var c=i.pendingProps,h=c.children,y=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ue(mi,qt),qt|=l;else{if((l&1073741824)===0)return n=y!==null?y.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,Ue(mi,qt),qt|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=y!==null?y.baseLanes:l,Ue(mi,qt),qt|=c}else y!==null?(c=y.baseLanes|l,i.memoizedState=null):c=l,Ue(mi,qt),qt|=c;return Et(n,i,h,l),i.child}function yh(n,i){var l=i.ref;(n===null&&l!==null||n!==null&&n.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function Lu(n,i,l,c,h){var y=Pt(l)?br:yt.current;return y=oi(i,y),di(i,h),l=bu(n,i,l,c,y,h),c=Cu(),n!==null&&!At?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Mn(n,i,h)):(Ke&&c&&lu(i),i.flags|=1,Et(n,i,l,h),i.child)}function xh(n,i,l,c,h){if(Pt(l)){var y=!0;Ul(i)}else y=!1;if(di(i,h),i.stateNode===null)ls(n,i),lh(i,l,c),Iu(i,l,c,h),c=!0;else if(n===null){var k=i.stateNode,N=i.memoizedProps;k.props=N;var P=k.context,F=l.contextType;typeof F=="object"&&F!==null?F=nn(F):(F=Pt(l)?br:yt.current,F=oi(i,F));var Y=l.getDerivedStateFromProps,ee=typeof Y=="function"||typeof k.getSnapshotBeforeUpdate=="function";ee||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(N!==c||P!==F)&&sh(i,k,c,F),nr=!1;var Q=i.memoizedState;k.state=Q,Yl(i,c,k,h),P=i.memoizedState,N!==c||Q!==P||It.current||nr?(typeof Y=="function"&&(Tu(i,l,Y,c),P=i.memoizedState),(N=nr||oh(i,l,N,c,Q,P,F))?(ee||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=P),k.props=c,k.state=P,k.context=F,c=N):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{k=i.stateNode,_p(n,i),N=i.memoizedProps,F=i.type===i.elementType?N:pn(i.type,N),k.props=F,ee=i.pendingProps,Q=k.context,P=l.contextType,typeof P=="object"&&P!==null?P=nn(P):(P=Pt(l)?br:yt.current,P=oi(i,P));var ce=l.getDerivedStateFromProps;(Y=typeof ce=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(N!==ee||Q!==P)&&sh(i,k,c,P),nr=!1,Q=i.memoizedState,k.state=Q,Yl(i,c,k,h);var he=i.memoizedState;N!==ee||Q!==he||It.current||nr?(typeof ce=="function"&&(Tu(i,l,ce,c),he=i.memoizedState),(F=nr||oh(i,l,F,c,Q,he,P)||!1)?(Y||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(c,he,P),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(c,he,P)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||N===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||N===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=he),k.props=c,k.state=he,k.context=P,c=F):(typeof k.componentDidUpdate!="function"||N===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||N===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),c=!1)}return _u(n,i,l,c,y,h)}function _u(n,i,l,c,h,y){yh(n,i);var k=(i.flags&128)!==0;if(!c&&!k)return h&&bp(i,l,!1),Mn(n,i,y);c=i.stateNode,sw.current=i;var N=k&&typeof l.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,n!==null&&k?(i.child=ui(i,n.child,null,y),i.child=ui(i,null,N,y)):Et(n,i,N,y),i.memoizedState=c.state,h&&bp(i,l,!0),i.child}function vh(n){var i=n.stateNode;i.pendingContext?kp(n,i.pendingContext,i.pendingContext!==i.context):i.context&&kp(n,i.context,!1),yu(n,i.containerInfo)}function wh(n,i,l,c,h){return ai(),cu(h),i.flags|=256,Et(n,i,l,c),i.child}var $u={dehydrated:null,treeContext:null,retryLane:0};function Du(n){return{baseLanes:n,cachePool:null,transitions:null}}function kh(n,i,l){var c=i.pendingProps,h=Ye.current,y=!1,k=(i.flags&128)!==0,N;if((N=k)||(N=n!==null&&n.memoizedState===null?!1:(h&2)!==0),N?(y=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(h|=1),Ue(Ye,h&1),n===null)return uu(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(k=c.children,n=c.fallback,y?(c=i.mode,y=i.child,k={mode:"hidden",children:k},(c&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=k):y=xs(k,c,0,null),n=Lr(n,c,l,null),y.return=i,n.return=i,y.sibling=n,i.child=y,i.child.memoizedState=Du(l),i.memoizedState=$u,n):zu(i,k));if(h=n.memoizedState,h!==null&&(N=h.dehydrated,N!==null))return aw(n,i,k,c,N,h,l);if(y){y=c.fallback,k=i.mode,h=n.child,N=h.sibling;var P={mode:"hidden",children:c.children};return(k&1)===0&&i.child!==h?(c=i.child,c.childLanes=0,c.pendingProps=P,i.deletions=null):(c=ur(h,P),c.subtreeFlags=h.subtreeFlags&14680064),N!==null?y=ur(N,y):(y=Lr(y,k,l,null),y.flags|=2),y.return=i,c.return=i,c.sibling=y,i.child=c,c=y,y=i.child,k=n.child.memoizedState,k=k===null?Du(l):{baseLanes:k.baseLanes|l,cachePool:null,transitions:k.transitions},y.memoizedState=k,y.childLanes=n.childLanes&~l,i.memoizedState=$u,c}return y=n.child,n=y.sibling,c=ur(y,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=l),c.return=i,c.sibling=null,n!==null&&(l=i.deletions,l===null?(i.deletions=[n],i.flags|=16):l.push(n)),i.child=c,i.memoizedState=null,c}function zu(n,i){return i=xs({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function os(n,i,l,c){return c!==null&&cu(c),ui(i,n.child,null,l),n=zu(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function aw(n,i,l,c,h,y,k){if(l)return i.flags&256?(i.flags&=-257,c=Pu(Error(r(422))),os(n,i,k,c)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(y=c.fallback,h=i.mode,c=xs({mode:"visible",children:c.children},h,0,null),y=Lr(y,h,k,null),y.flags|=2,c.return=i,y.return=i,c.sibling=y,i.child=c,(i.mode&1)!==0&&ui(i,n.child,null,k),i.child.memoizedState=Du(k),i.memoizedState=$u,y);if((i.mode&1)===0)return os(n,i,k,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var N=c.dgst;return c=N,y=Error(r(419)),c=Pu(y,c,void 0),os(n,i,k,c)}if(N=(k&n.childLanes)!==0,At||N){if(c=ut,c!==null){switch(k&-k){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|k))!==0?0:h,h!==0&&h!==y.retryLane&&(y.retryLane=h,zn(n,h),gn(c,n,h,-1))}return Zu(),c=Pu(Error(r(421))),os(n,i,k,c)}return h.data==="$?"?(i.flags|=128,i.child=n.child,i=kw.bind(null,n),h._reactRetry=i,null):(n=y.treeContext,Ht=Xn(h.nextSibling),Vt=i,Ke=!0,fn=null,n!==null&&(en[tn++]=$n,en[tn++]=Dn,en[tn++]=Cr,$n=n.id,Dn=n.overflow,Cr=i),i=zu(i,c.children),i.flags|=4096,i)}function Sh(n,i,l){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),hu(n.return,i,l)}function Ou(n,i,l,c,h){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:h}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=l,y.tailMode=h)}function bh(n,i,l){var c=i.pendingProps,h=c.revealOrder,y=c.tail;if(Et(n,i,c.children,l),c=Ye.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Sh(n,l,i);else if(n.tag===19)Sh(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(Ue(Ye,c),(i.mode&1)===0)i.memoizedState=null;else switch(h){case"forwards":for(l=i.child,h=null;l!==null;)n=l.alternate,n!==null&&Xl(n)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),Ou(i,!1,h,l,y);break;case"backwards":for(l=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&Xl(n)===null){i.child=h;break}n=h.sibling,h.sibling=l,l=h,h=n}Ou(i,!0,l,null,y);break;case"together":Ou(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ls(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function Mn(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),Tr|=i.lanes,(l&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,l=ur(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=ur(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function uw(n,i,l){switch(i.tag){case 3:vh(i),ai();break;case 5:zp(i);break;case 1:Pt(i.type)&&Ul(i);break;case 4:yu(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,h=i.memoizedProps.value;Ue(Jl,c._currentValue),c._currentValue=h;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(Ue(Ye,Ye.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?kh(n,i,l):(Ue(Ye,Ye.current&1),n=Mn(n,i,l),n!==null?n.sibling:null);Ue(Ye,Ye.current&1);break;case 19:if(c=(l&i.childLanes)!==0,(n.flags&128)!==0){if(c)return bh(n,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Ue(Ye,Ye.current),c)break;return null;case 22:case 23:return i.lanes=0,gh(n,i,l)}return Mn(n,i,l)}var Ch,Mu,Eh,jh;Ch=function(n,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)n.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Mu=function(){},Eh=function(n,i,l,c){var h=n.memoizedProps;if(h!==c){n=i.stateNode,Rr(Cn.current);var y=null;switch(l){case"input":h=Ji(n,h),c=Ji(n,c),y=[];break;case"select":h=E({},h,{value:void 0}),c=E({},c,{value:void 0}),y=[];break;case"textarea":h=Yi(n,h),c=Yi(n,c),y=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Ml)}ht(l,c);var k;l=null;for(F in h)if(!c.hasOwnProperty(F)&&h.hasOwnProperty(F)&&h[F]!=null)if(F==="style"){var N=h[F];for(k in N)N.hasOwnProperty(k)&&(l||(l={}),l[k]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(s.hasOwnProperty(F)?y||(y=[]):(y=y||[]).push(F,null));for(F in c){var P=c[F];if(N=h!=null?h[F]:void 0,c.hasOwnProperty(F)&&P!==N&&(P!=null||N!=null))if(F==="style")if(N){for(k in N)!N.hasOwnProperty(k)||P&&P.hasOwnProperty(k)||(l||(l={}),l[k]="");for(k in P)P.hasOwnProperty(k)&&N[k]!==P[k]&&(l||(l={}),l[k]=P[k])}else l||(y||(y=[]),y.push(F,l)),l=P;else F==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,N=N?N.__html:void 0,P!=null&&N!==P&&(y=y||[]).push(F,P)):F==="children"?typeof P!="string"&&typeof P!="number"||(y=y||[]).push(F,""+P):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(s.hasOwnProperty(F)?(P!=null&&F==="onScroll"&&qe("scroll",n),y||N===P||(y=[])):(y=y||[]).push(F,P))}l&&(y=y||[]).push("style",l);var F=y;(i.updateQueue=F)&&(i.flags|=4)}},jh=function(n,i,l,c){l!==c&&(i.flags|=4)};function To(n,i){if(!Ke)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function vt(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,c=0;if(i)for(var h=n.child;h!==null;)l|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)l|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=l,i}function cw(n,i,l){var c=i.pendingProps;switch(su(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(i),null;case 1:return Pt(i.type)&&Bl(),vt(i),null;case 3:return c=i.stateNode,fi(),We(It),We(yt),wu(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(Wl(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,fn!==null&&(Qu(fn),fn=null))),Mu(n,i),vt(i),null;case 5:xu(i);var h=Rr(Co.current);if(l=i.type,n!==null&&i.stateNode!=null)Eh(n,i,l,c,h),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(r(166));return vt(i),null}if(n=Rr(Cn.current),Wl(i)){c=i.stateNode,l=i.type;var y=i.memoizedProps;switch(c[bn]=i,c[vo]=y,n=(i.mode&1)!==0,l){case"dialog":qe("cancel",c),qe("close",c);break;case"iframe":case"object":case"embed":qe("load",c);break;case"video":case"audio":for(h=0;h<go.length;h++)qe(go[h],c);break;case"source":qe("error",c);break;case"img":case"image":case"link":qe("error",c),qe("load",c);break;case"details":qe("toggle",c);break;case"input":Ki(c,y),qe("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!y.multiple},qe("invalid",c);break;case"textarea":ml(c,y),qe("invalid",c)}ht(l,y),h=null;for(var k in y)if(y.hasOwnProperty(k)){var N=y[k];k==="children"?typeof N=="string"?c.textContent!==N&&(y.suppressHydrationWarning!==!0&&Ol(c.textContent,N,n),h=["children",N]):typeof N=="number"&&c.textContent!==""+N&&(y.suppressHydrationWarning!==!0&&Ol(c.textContent,N,n),h=["children",""+N]):s.hasOwnProperty(k)&&N!=null&&k==="onScroll"&&qe("scroll",c)}switch(l){case"input":Tt(c),hl(c,y,!0);break;case"textarea":Tt(c),yl(c);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(c.onclick=Ml)}c=h,i.updateQueue=c,c!==null&&(i.flags|=4)}else{k=h.nodeType===9?h:h.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=J(l)),n==="http://www.w3.org/1999/xhtml"?l==="script"?(n=k.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=k.createElement(l,{is:c.is}):(n=k.createElement(l),l==="select"&&(k=n,c.multiple?k.multiple=!0:c.size&&(k.size=c.size))):n=k.createElementNS(n,l),n[bn]=i,n[vo]=c,Ch(n,i,!1,!1),i.stateNode=n;e:{switch(k=kn(l,c),l){case"dialog":qe("cancel",n),qe("close",n),h=c;break;case"iframe":case"object":case"embed":qe("load",n),h=c;break;case"video":case"audio":for(h=0;h<go.length;h++)qe(go[h],n);h=c;break;case"source":qe("error",n),h=c;break;case"img":case"image":case"link":qe("error",n),qe("load",n),h=c;break;case"details":qe("toggle",n),h=c;break;case"input":Ki(n,c),h=Ji(n,c),qe("invalid",n);break;case"option":h=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},h=E({},c,{value:void 0}),qe("invalid",n);break;case"textarea":ml(n,c),h=Yi(n,c),qe("invalid",n);break;default:h=c}ht(l,h),N=h;for(y in N)if(N.hasOwnProperty(y)){var P=N[y];y==="style"?qn(n,P):y==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Ie(n,P)):y==="children"?typeof P=="string"?(l!=="textarea"||P!=="")&&$e(n,P):typeof P=="number"&&$e(n,""+P):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(s.hasOwnProperty(y)?P!=null&&y==="onScroll"&&qe("scroll",n):P!=null&&_(n,y,P,k))}switch(l){case"input":Tt(n),hl(n,c,!1);break;case"textarea":Tt(n),yl(n);break;case"option":c.value!=null&&n.setAttribute("value",""+ve(c.value));break;case"select":n.multiple=!!c.multiple,y=c.value,y!=null?Hn(n,!!c.multiple,y,!1):c.defaultValue!=null&&Hn(n,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(n.onclick=Ml)}switch(l){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return vt(i),null;case 6:if(n&&i.stateNode!=null)jh(n,i,n.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(l=Rr(Co.current),Rr(Cn.current),Wl(i)){if(c=i.stateNode,l=i.memoizedProps,c[bn]=i,(y=c.nodeValue!==l)&&(n=Vt,n!==null))switch(n.tag){case 3:Ol(c.nodeValue,l,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Ol(c.nodeValue,l,(n.mode&1)!==0)}y&&(i.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[bn]=i,i.stateNode=c}return vt(i),null;case 13:if(We(Ye),c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Ke&&Ht!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Tp(),ai(),i.flags|=98560,y=!1;else if(y=Wl(i),c!==null&&c.dehydrated!==null){if(n===null){if(!y)throw Error(r(318));if(y=i.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[bn]=i}else ai(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;vt(i),y=!1}else fn!==null&&(Qu(fn),fn=null),y=!0;if(!y)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=l,i):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(Ye.current&1)!==0?st===0&&(st=3):Zu())),i.updateQueue!==null&&(i.flags|=4),vt(i),null);case 4:return fi(),Mu(n,i),n===null&&yo(i.stateNode.containerInfo),vt(i),null;case 10:return pu(i.type._context),vt(i),null;case 17:return Pt(i.type)&&Bl(),vt(i),null;case 19:if(We(Ye),y=i.memoizedState,y===null)return vt(i),null;if(c=(i.flags&128)!==0,k=y.rendering,k===null)if(c)To(y,!1);else{if(st!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(k=Xl(n),k!==null){for(i.flags|=128,To(y,!1),c=k.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=l,l=i.child;l!==null;)y=l,n=c,y.flags&=14680066,k=y.alternate,k===null?(y.childLanes=0,y.lanes=n,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=k.childLanes,y.lanes=k.lanes,y.child=k.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=k.memoizedProps,y.memoizedState=k.memoizedState,y.updateQueue=k.updateQueue,y.type=k.type,n=k.dependencies,y.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),l=l.sibling;return Ue(Ye,Ye.current&1|2),i.child}n=n.sibling}y.tail!==null&&et()>gi&&(i.flags|=128,c=!0,To(y,!1),i.lanes=4194304)}else{if(!c)if(n=Xl(k),n!==null){if(i.flags|=128,c=!0,l=n.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),To(y,!0),y.tail===null&&y.tailMode==="hidden"&&!k.alternate&&!Ke)return vt(i),null}else 2*et()-y.renderingStartTime>gi&&l!==1073741824&&(i.flags|=128,c=!0,To(y,!1),i.lanes=4194304);y.isBackwards?(k.sibling=i.child,i.child=k):(l=y.last,l!==null?l.sibling=k:i.child=k,y.last=k)}return y.tail!==null?(i=y.tail,y.rendering=i,y.tail=i.sibling,y.renderingStartTime=et(),i.sibling=null,l=Ye.current,Ue(Ye,c?l&1|2:l&1),i):(vt(i),null);case 22:case 23:return Xu(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(qt&1073741824)!==0&&(vt(i),i.subtreeFlags&6&&(i.flags|=8192)):vt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function dw(n,i){switch(su(i),i.tag){case 1:return Pt(i.type)&&Bl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return fi(),We(It),We(yt),wu(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return xu(i),null;case 13:if(We(Ye),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));ai()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return We(Ye),null;case 4:return fi(),null;case 10:return pu(i.type._context),null;case 22:case 23:return Xu(),null;case 24:return null;default:return null}}var ss=!1,wt=!1,fw=typeof WeakSet=="function"?WeakSet:Set,pe=null;function hi(n,i){var l=n.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){Ze(n,i,c)}else l.current=null}function Fu(n,i,l){try{l()}catch(c){Ze(n,i,c)}}var Rh=!1;function pw(n,i){if(Xa=Rl,n=op(),Ha(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var h=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var k=0,N=-1,P=-1,F=0,Y=0,ee=n,Q=null;t:for(;;){for(var ce;ee!==l||h!==0&&ee.nodeType!==3||(N=k+h),ee!==y||c!==0&&ee.nodeType!==3||(P=k+c),ee.nodeType===3&&(k+=ee.nodeValue.length),(ce=ee.firstChild)!==null;)Q=ee,ee=ce;for(;;){if(ee===n)break t;if(Q===l&&++F===h&&(N=k),Q===y&&++Y===c&&(P=k),(ce=ee.nextSibling)!==null)break;ee=Q,Q=ee.parentNode}ee=ce}l=N===-1||P===-1?null:{start:N,end:P}}else l=null}l=l||{start:0,end:0}}else l=null;for(Za={focusedElem:n,selectionRange:l},Rl=!1,pe=i;pe!==null;)if(i=pe,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,pe=n;else for(;pe!==null;){i=pe;try{var he=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var me=he.memoizedProps,tt=he.memoizedState,O=i.stateNode,$=O.getSnapshotBeforeUpdate(i.elementType===i.type?me:pn(i.type,me),tt);O.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var M=i.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ne){Ze(i,i.return,ne)}if(n=i.sibling,n!==null){n.return=i.return,pe=n;break}pe=i.return}return he=Rh,Rh=!1,he}function Io(n,i,l){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&n)===n){var y=h.destroy;h.destroy=void 0,y!==void 0&&Fu(i,l,y)}h=h.next}while(h!==c)}}function as(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&n)===n){var c=l.create;l.destroy=c()}l=l.next}while(l!==i)}}function Bu(n){var i=n.ref;if(i!==null){var l=n.stateNode;switch(n.tag){case 5:n=l;break;default:n=l}typeof i=="function"?i(n):i.current=n}}function Nh(n){var i=n.alternate;i!==null&&(n.alternate=null,Nh(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[bn],delete i[vo],delete i[ru],delete i[K1],delete i[Q1])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Th(n){return n.tag===5||n.tag===3||n.tag===4}function Ih(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Th(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Uu(n,i,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(n,i):l.insertBefore(n,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(n,l)):(i=l,i.appendChild(n)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Ml));else if(c!==4&&(n=n.child,n!==null))for(Uu(n,i,l),n=n.sibling;n!==null;)Uu(n,i,l),n=n.sibling}function Vu(n,i,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Vu(n,i,l),n=n.sibling;n!==null;)Vu(n,i,l),n=n.sibling}var mt=null,hn=!1;function ir(n,i,l){for(l=l.child;l!==null;)Ph(n,i,l),l=l.sibling}function Ph(n,i,l){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(kl,l)}catch{}switch(l.tag){case 5:wt||hi(l,i);case 6:var c=mt,h=hn;mt=null,ir(n,i,l),mt=c,hn=h,mt!==null&&(hn?(n=mt,l=l.stateNode,n.nodeType===8?n.parentNode.removeChild(l):n.removeChild(l)):mt.removeChild(l.stateNode));break;case 18:mt!==null&&(hn?(n=mt,l=l.stateNode,n.nodeType===8?nu(n.parentNode,l):n.nodeType===1&&nu(n,l),so(n)):nu(mt,l.stateNode));break;case 4:c=mt,h=hn,mt=l.stateNode.containerInfo,hn=!0,ir(n,i,l),mt=c,hn=h;break;case 0:case 11:case 14:case 15:if(!wt&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var y=h,k=y.destroy;y=y.tag,k!==void 0&&((y&2)!==0||(y&4)!==0)&&Fu(l,i,k),h=h.next}while(h!==c)}ir(n,i,l);break;case 1:if(!wt&&(hi(l,i),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(N){Ze(l,i,N)}ir(n,i,l);break;case 21:ir(n,i,l);break;case 22:l.mode&1?(wt=(c=wt)||l.memoizedState!==null,ir(n,i,l),wt=c):ir(n,i,l);break;default:ir(n,i,l)}}function Ah(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var l=n.stateNode;l===null&&(l=n.stateNode=new fw),i.forEach(function(c){var h=Sw.bind(null,n,c);l.has(c)||(l.add(c),c.then(h,h))})}}function mn(n,i){var l=i.deletions;if(l!==null)for(var c=0;c<l.length;c++){var h=l[c];try{var y=n,k=i,N=k;e:for(;N!==null;){switch(N.tag){case 5:mt=N.stateNode,hn=!1;break e;case 3:mt=N.stateNode.containerInfo,hn=!0;break e;case 4:mt=N.stateNode.containerInfo,hn=!0;break e}N=N.return}if(mt===null)throw Error(r(160));Ph(y,k,h),mt=null,hn=!1;var P=h.alternate;P!==null&&(P.return=null),h.return=null}catch(F){Ze(h,i,F)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Lh(i,n),i=i.sibling}function Lh(n,i){var l=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(mn(i,n),jn(n),c&4){try{Io(3,n,n.return),as(3,n)}catch(me){Ze(n,n.return,me)}try{Io(5,n,n.return)}catch(me){Ze(n,n.return,me)}}break;case 1:mn(i,n),jn(n),c&512&&l!==null&&hi(l,l.return);break;case 5:if(mn(i,n),jn(n),c&512&&l!==null&&hi(l,l.return),n.flags&32){var h=n.stateNode;try{$e(h,"")}catch(me){Ze(n,n.return,me)}}if(c&4&&(h=n.stateNode,h!=null)){var y=n.memoizedProps,k=l!==null?l.memoizedProps:y,N=n.type,P=n.updateQueue;if(n.updateQueue=null,P!==null)try{N==="input"&&y.type==="radio"&&y.name!=null&&Qi(h,y),kn(N,k);var F=kn(N,y);for(k=0;k<P.length;k+=2){var Y=P[k],ee=P[k+1];Y==="style"?qn(h,ee):Y==="dangerouslySetInnerHTML"?Ie(h,ee):Y==="children"?$e(h,ee):_(h,Y,ee,F)}switch(N){case"input":Wr(h,y);break;case"textarea":gl(h,y);break;case"select":var Q=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!y.multiple;var ce=y.value;ce!=null?Hn(h,!!y.multiple,ce,!1):Q!==!!y.multiple&&(y.defaultValue!=null?Hn(h,!!y.multiple,y.defaultValue,!0):Hn(h,!!y.multiple,y.multiple?[]:"",!1))}h[vo]=y}catch(me){Ze(n,n.return,me)}}break;case 6:if(mn(i,n),jn(n),c&4){if(n.stateNode===null)throw Error(r(162));h=n.stateNode,y=n.memoizedProps;try{h.nodeValue=y}catch(me){Ze(n,n.return,me)}}break;case 3:if(mn(i,n),jn(n),c&4&&l!==null&&l.memoizedState.isDehydrated)try{so(i.containerInfo)}catch(me){Ze(n,n.return,me)}break;case 4:mn(i,n),jn(n);break;case 13:mn(i,n),jn(n),h=n.child,h.flags&8192&&(y=h.memoizedState!==null,h.stateNode.isHidden=y,!y||h.alternate!==null&&h.alternate.memoizedState!==null||(Wu=et())),c&4&&Ah(n);break;case 22:if(Y=l!==null&&l.memoizedState!==null,n.mode&1?(wt=(F=wt)||Y,mn(i,n),wt=F):mn(i,n),jn(n),c&8192){if(F=n.memoizedState!==null,(n.stateNode.isHidden=F)&&!Y&&(n.mode&1)!==0)for(pe=n,Y=n.child;Y!==null;){for(ee=pe=Y;pe!==null;){switch(Q=pe,ce=Q.child,Q.tag){case 0:case 11:case 14:case 15:Io(4,Q,Q.return);break;case 1:hi(Q,Q.return);var he=Q.stateNode;if(typeof he.componentWillUnmount=="function"){c=Q,l=Q.return;try{i=c,he.props=i.memoizedProps,he.state=i.memoizedState,he.componentWillUnmount()}catch(me){Ze(c,l,me)}}break;case 5:hi(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Dh(ee);continue}}ce!==null?(ce.return=Q,pe=ce):Dh(ee)}Y=Y.sibling}e:for(Y=null,ee=n;;){if(ee.tag===5){if(Y===null){Y=ee;try{h=ee.stateNode,F?(y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(N=ee.stateNode,P=ee.memoizedProps.style,k=P!=null&&P.hasOwnProperty("display")?P.display:null,N.style.display=Zt("display",k))}catch(me){Ze(n,n.return,me)}}}else if(ee.tag===6){if(Y===null)try{ee.stateNode.nodeValue=F?"":ee.memoizedProps}catch(me){Ze(n,n.return,me)}}else if((ee.tag!==22&&ee.tag!==23||ee.memoizedState===null||ee===n)&&ee.child!==null){ee.child.return=ee,ee=ee.child;continue}if(ee===n)break e;for(;ee.sibling===null;){if(ee.return===null||ee.return===n)break e;Y===ee&&(Y=null),ee=ee.return}Y===ee&&(Y=null),ee.sibling.return=ee.return,ee=ee.sibling}}break;case 19:mn(i,n),jn(n),c&4&&Ah(n);break;case 21:break;default:mn(i,n),jn(n)}}function jn(n){var i=n.flags;if(i&2){try{e:{for(var l=n.return;l!==null;){if(Th(l)){var c=l;break e}l=l.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&($e(h,""),c.flags&=-33);var y=Ih(n);Vu(n,y,h);break;case 3:case 4:var k=c.stateNode.containerInfo,N=Ih(n);Uu(n,N,k);break;default:throw Error(r(161))}}catch(P){Ze(n,n.return,P)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function hw(n,i,l){pe=n,_h(n)}function _h(n,i,l){for(var c=(n.mode&1)!==0;pe!==null;){var h=pe,y=h.child;if(h.tag===22&&c){var k=h.memoizedState!==null||ss;if(!k){var N=h.alternate,P=N!==null&&N.memoizedState!==null||wt;N=ss;var F=wt;if(ss=k,(wt=P)&&!F)for(pe=h;pe!==null;)k=pe,P=k.child,k.tag===22&&k.memoizedState!==null?zh(h):P!==null?(P.return=k,pe=P):zh(h);for(;y!==null;)pe=y,_h(y),y=y.sibling;pe=h,ss=N,wt=F}$h(n)}else(h.subtreeFlags&8772)!==0&&y!==null?(y.return=h,pe=y):$h(n)}}function $h(n){for(;pe!==null;){var i=pe;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:wt||as(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!wt)if(l===null)c.componentDidMount();else{var h=i.elementType===i.type?l.memoizedProps:pn(i.type,l.memoizedProps);c.componentDidUpdate(h,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var y=i.updateQueue;y!==null&&Dp(i,y,c);break;case 3:var k=i.updateQueue;if(k!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}Dp(i,k,l)}break;case 5:var N=i.stateNode;if(l===null&&i.flags&4){l=N;var P=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&l.focus();break;case"img":P.src&&(l.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var F=i.alternate;if(F!==null){var Y=F.memoizedState;if(Y!==null){var ee=Y.dehydrated;ee!==null&&so(ee)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}wt||i.flags&512&&Bu(i)}catch(Q){Ze(i,i.return,Q)}}if(i===n){pe=null;break}if(l=i.sibling,l!==null){l.return=i.return,pe=l;break}pe=i.return}}function Dh(n){for(;pe!==null;){var i=pe;if(i===n){pe=null;break}var l=i.sibling;if(l!==null){l.return=i.return,pe=l;break}pe=i.return}}function zh(n){for(;pe!==null;){var i=pe;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{as(4,i)}catch(P){Ze(i,l,P)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var h=i.return;try{c.componentDidMount()}catch(P){Ze(i,h,P)}}var y=i.return;try{Bu(i)}catch(P){Ze(i,y,P)}break;case 5:var k=i.return;try{Bu(i)}catch(P){Ze(i,k,P)}}}catch(P){Ze(i,i.return,P)}if(i===n){pe=null;break}var N=i.sibling;if(N!==null){N.return=i.return,pe=N;break}pe=i.return}}var mw=Math.ceil,us=B.ReactCurrentDispatcher,Hu=B.ReactCurrentOwner,on=B.ReactCurrentBatchConfig,De=0,ut=null,rt=null,gt=0,qt=0,mi=Zn(0),st=0,Po=null,Tr=0,cs=0,qu=0,Ao=null,Lt=null,Wu=0,gi=1/0,Fn=null,ds=!1,Gu=null,or=null,fs=!1,lr=null,ps=0,Lo=0,Ju=null,hs=-1,ms=0;function jt(){return(De&6)!==0?et():hs!==-1?hs:hs=et()}function sr(n){return(n.mode&1)===0?1:(De&2)!==0&>!==0?gt&-gt:X1.transition!==null?(ms===0&&(ms=If()),ms):(n=Me,n!==0||(n=window.event,n=n===void 0?16:Mf(n.type)),n)}function gn(n,i,l,c){if(50<Lo)throw Lo=0,Ju=null,Error(r(185));no(n,l,c),((De&2)===0||n!==ut)&&(n===ut&&((De&2)===0&&(cs|=l),st===4&&ar(n,gt)),_t(n,c),l===1&&De===0&&(i.mode&1)===0&&(gi=et()+500,Vl&&tr()))}function _t(n,i){var l=n.callbackNode;X0(n,i);var c=Cl(n,n===ut?gt:0);if(c===0)l!==null&&Rf(l),n.callbackNode=null,n.callbackPriority=0;else if(i=c&-c,n.callbackPriority!==i){if(l!=null&&Rf(l),i===1)n.tag===0?Y1(Mh.bind(null,n)):Cp(Mh.bind(null,n)),G1(function(){(De&6)===0&&tr()}),l=null;else{switch(Pf(c)){case 1:l=Ra;break;case 4:l=Nf;break;case 16:l=wl;break;case 536870912:l=Tf;break;default:l=wl}l=Gh(l,Oh.bind(null,n))}n.callbackPriority=i,n.callbackNode=l}}function Oh(n,i){if(hs=-1,ms=0,(De&6)!==0)throw Error(r(327));var l=n.callbackNode;if(yi()&&n.callbackNode!==l)return null;var c=Cl(n,n===ut?gt:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||i)i=gs(n,c);else{i=c;var h=De;De|=2;var y=Bh();(ut!==n||gt!==i)&&(Fn=null,gi=et()+500,Pr(n,i));do try{xw();break}catch(N){Fh(n,N)}while(!0);fu(),us.current=y,De=h,rt!==null?i=0:(ut=null,gt=0,i=st)}if(i!==0){if(i===2&&(h=Na(n),h!==0&&(c=h,i=Ku(n,h))),i===1)throw l=Po,Pr(n,0),ar(n,c),_t(n,et()),l;if(i===6)ar(n,c);else{if(h=n.current.alternate,(c&30)===0&&!gw(h)&&(i=gs(n,c),i===2&&(y=Na(n),y!==0&&(c=y,i=Ku(n,y))),i===1))throw l=Po,Pr(n,0),ar(n,c),_t(n,et()),l;switch(n.finishedWork=h,n.finishedLanes=c,i){case 0:case 1:throw Error(r(345));case 2:Ar(n,Lt,Fn);break;case 3:if(ar(n,c),(c&130023424)===c&&(i=Wu+500-et(),10<i)){if(Cl(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){jt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=tu(Ar.bind(null,n,Lt,Fn),i);break}Ar(n,Lt,Fn);break;case 4:if(ar(n,c),(c&4194240)===c)break;for(i=n.eventTimes,h=-1;0<c;){var k=31-cn(c);y=1<<k,k=i[k],k>h&&(h=k),c&=~y}if(c=h,c=et()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*mw(c/1960))-c,10<c){n.timeoutHandle=tu(Ar.bind(null,n,Lt,Fn),c);break}Ar(n,Lt,Fn);break;case 5:Ar(n,Lt,Fn);break;default:throw Error(r(329))}}}return _t(n,et()),n.callbackNode===l?Oh.bind(null,n):null}function Ku(n,i){var l=Ao;return n.current.memoizedState.isDehydrated&&(Pr(n,i).flags|=256),n=gs(n,i),n!==2&&(i=Lt,Lt=l,i!==null&&Qu(i)),n}function Qu(n){Lt===null?Lt=n:Lt.push.apply(Lt,n)}function gw(n){for(var i=n;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var c=0;c<l.length;c++){var h=l[c],y=h.getSnapshot;h=h.value;try{if(!dn(y(),h))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function ar(n,i){for(i&=~qu,i&=~cs,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var l=31-cn(i),c=1<<l;n[l]=-1,i&=~c}}function Mh(n){if((De&6)!==0)throw Error(r(327));yi();var i=Cl(n,0);if((i&1)===0)return _t(n,et()),null;var l=gs(n,i);if(n.tag!==0&&l===2){var c=Na(n);c!==0&&(i=c,l=Ku(n,c))}if(l===1)throw l=Po,Pr(n,0),ar(n,i),_t(n,et()),l;if(l===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,Ar(n,Lt,Fn),_t(n,et()),null}function Yu(n,i){var l=De;De|=1;try{return n(i)}finally{De=l,De===0&&(gi=et()+500,Vl&&tr())}}function Ir(n){lr!==null&&lr.tag===0&&(De&6)===0&&yi();var i=De;De|=1;var l=on.transition,c=Me;try{if(on.transition=null,Me=1,n)return n()}finally{Me=c,on.transition=l,De=i,(De&6)===0&&tr()}}function Xu(){qt=mi.current,We(mi)}function Pr(n,i){n.finishedWork=null,n.finishedLanes=0;var l=n.timeoutHandle;if(l!==-1&&(n.timeoutHandle=-1,W1(l)),rt!==null)for(l=rt.return;l!==null;){var c=l;switch(su(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Bl();break;case 3:fi(),We(It),We(yt),wu();break;case 5:xu(c);break;case 4:fi();break;case 13:We(Ye);break;case 19:We(Ye);break;case 10:pu(c.type._context);break;case 22:case 23:Xu()}l=l.return}if(ut=n,rt=n=ur(n.current,null),gt=qt=i,st=0,Po=null,qu=cs=Tr=0,Lt=Ao=null,jr!==null){for(i=0;i<jr.length;i++)if(l=jr[i],c=l.interleaved,c!==null){l.interleaved=null;var h=c.next,y=l.pending;if(y!==null){var k=y.next;y.next=h,c.next=k}l.pending=c}jr=null}return n}function Fh(n,i){do{var l=rt;try{if(fu(),Zl.current=rs,es){for(var c=Xe.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}es=!1}if(Nr=0,at=lt=Xe=null,Eo=!1,jo=0,Hu.current=null,l===null||l.return===null){st=1,Po=i,rt=null;break}e:{var y=n,k=l.return,N=l,P=i;if(i=gt,N.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var F=P,Y=N,ee=Y.tag;if((Y.mode&1)===0&&(ee===0||ee===11||ee===15)){var Q=Y.alternate;Q?(Y.updateQueue=Q.updateQueue,Y.memoizedState=Q.memoizedState,Y.lanes=Q.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var ce=dh(k);if(ce!==null){ce.flags&=-257,fh(ce,k,N,y,i),ce.mode&1&&ch(y,F,i),i=ce,P=F;var he=i.updateQueue;if(he===null){var me=new Set;me.add(P),i.updateQueue=me}else he.add(P);break e}else{if((i&1)===0){ch(y,F,i),Zu();break e}P=Error(r(426))}}else if(Ke&&N.mode&1){var tt=dh(k);if(tt!==null){(tt.flags&65536)===0&&(tt.flags|=256),fh(tt,k,N,y,i),cu(pi(P,N));break e}}y=P=pi(P,N),st!==4&&(st=2),Ao===null?Ao=[y]:Ao.push(y),y=k;do{switch(y.tag){case 3:y.flags|=65536,i&=-i,y.lanes|=i;var O=ah(y,P,i);$p(y,O);break e;case 1:N=P;var $=y.type,M=y.stateNode;if((y.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(or===null||!or.has(M)))){y.flags|=65536,i&=-i,y.lanes|=i;var ne=uh(y,N,i);$p(y,ne);break e}}y=y.return}while(y!==null)}Vh(l)}catch(xe){i=xe,rt===l&&l!==null&&(rt=l=l.return);continue}break}while(!0)}function Bh(){var n=us.current;return us.current=rs,n===null?rs:n}function Zu(){(st===0||st===3||st===2)&&(st=4),ut===null||(Tr&268435455)===0&&(cs&268435455)===0||ar(ut,gt)}function gs(n,i){var l=De;De|=2;var c=Bh();(ut!==n||gt!==i)&&(Fn=null,Pr(n,i));do try{yw();break}catch(h){Fh(n,h)}while(!0);if(fu(),De=l,us.current=c,rt!==null)throw Error(r(261));return ut=null,gt=0,st}function yw(){for(;rt!==null;)Uh(rt)}function xw(){for(;rt!==null&&!V0();)Uh(rt)}function Uh(n){var i=Wh(n.alternate,n,qt);n.memoizedProps=n.pendingProps,i===null?Vh(n):rt=i,Hu.current=null}function Vh(n){var i=n;do{var l=i.alternate;if(n=i.return,(i.flags&32768)===0){if(l=cw(l,i,qt),l!==null){rt=l;return}}else{if(l=dw(l,i),l!==null){l.flags&=32767,rt=l;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{st=6,rt=null;return}}if(i=i.sibling,i!==null){rt=i;return}rt=i=n}while(i!==null);st===0&&(st=5)}function Ar(n,i,l){var c=Me,h=on.transition;try{on.transition=null,Me=1,vw(n,i,l,c)}finally{on.transition=h,Me=c}return null}function vw(n,i,l,c){do yi();while(lr!==null);if((De&6)!==0)throw Error(r(327));l=n.finishedWork;var h=n.finishedLanes;if(l===null)return null;if(n.finishedWork=null,n.finishedLanes=0,l===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var y=l.lanes|l.childLanes;if(Z0(n,y),n===ut&&(rt=ut=null,gt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||fs||(fs=!0,Gh(wl,function(){return yi(),null})),y=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||y){y=on.transition,on.transition=null;var k=Me;Me=1;var N=De;De|=4,Hu.current=null,pw(n,l),Lh(l,n),M1(Za),Rl=!!Xa,Za=Xa=null,n.current=l,hw(l),H0(),De=N,Me=k,on.transition=y}else n.current=l;if(fs&&(fs=!1,lr=n,ps=h),y=n.pendingLanes,y===0&&(or=null),G0(l.stateNode),_t(n,et()),i!==null)for(c=n.onRecoverableError,l=0;l<i.length;l++)h=i[l],c(h.value,{componentStack:h.stack,digest:h.digest});if(ds)throw ds=!1,n=Gu,Gu=null,n;return(ps&1)!==0&&n.tag!==0&&yi(),y=n.pendingLanes,(y&1)!==0?n===Ju?Lo++:(Lo=0,Ju=n):Lo=0,tr(),null}function yi(){if(lr!==null){var n=Pf(ps),i=on.transition,l=Me;try{if(on.transition=null,Me=16>n?16:n,lr===null)var c=!1;else{if(n=lr,lr=null,ps=0,(De&6)!==0)throw Error(r(331));var h=De;for(De|=4,pe=n.current;pe!==null;){var y=pe,k=y.child;if((pe.flags&16)!==0){var N=y.deletions;if(N!==null){for(var P=0;P<N.length;P++){var F=N[P];for(pe=F;pe!==null;){var Y=pe;switch(Y.tag){case 0:case 11:case 15:Io(8,Y,y)}var ee=Y.child;if(ee!==null)ee.return=Y,pe=ee;else for(;pe!==null;){Y=pe;var Q=Y.sibling,ce=Y.return;if(Nh(Y),Y===F){pe=null;break}if(Q!==null){Q.return=ce,pe=Q;break}pe=ce}}}var he=y.alternate;if(he!==null){var me=he.child;if(me!==null){he.child=null;do{var tt=me.sibling;me.sibling=null,me=tt}while(me!==null)}}pe=y}}if((y.subtreeFlags&2064)!==0&&k!==null)k.return=y,pe=k;else e:for(;pe!==null;){if(y=pe,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Io(9,y,y.return)}var O=y.sibling;if(O!==null){O.return=y.return,pe=O;break e}pe=y.return}}var $=n.current;for(pe=$;pe!==null;){k=pe;var M=k.child;if((k.subtreeFlags&2064)!==0&&M!==null)M.return=k,pe=M;else e:for(k=$;pe!==null;){if(N=pe,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:as(9,N)}}catch(xe){Ze(N,N.return,xe)}if(N===k){pe=null;break e}var ne=N.sibling;if(ne!==null){ne.return=N.return,pe=ne;break e}pe=N.return}}if(De=h,tr(),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(kl,n)}catch{}c=!0}return c}finally{Me=l,on.transition=i}}return!1}function Hh(n,i,l){i=pi(l,i),i=ah(n,i,1),n=rr(n,i,1),i=jt(),n!==null&&(no(n,1,i),_t(n,i))}function Ze(n,i,l){if(n.tag===3)Hh(n,n,l);else for(;i!==null;){if(i.tag===3){Hh(i,n,l);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(or===null||!or.has(c))){n=pi(l,n),n=uh(i,n,1),i=rr(i,n,1),n=jt(),i!==null&&(no(i,1,n),_t(i,n));break}}i=i.return}}function ww(n,i,l){var c=n.pingCache;c!==null&&c.delete(i),i=jt(),n.pingedLanes|=n.suspendedLanes&l,ut===n&&(gt&l)===l&&(st===4||st===3&&(gt&130023424)===gt&&500>et()-Wu?Pr(n,0):qu|=l),_t(n,i)}function qh(n,i){i===0&&((n.mode&1)===0?i=1:(i=bl,bl<<=1,(bl&130023424)===0&&(bl=4194304)));var l=jt();n=zn(n,i),n!==null&&(no(n,i,l),_t(n,l))}function kw(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),qh(n,l)}function Sw(n,i){var l=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(l=h.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(i),qh(n,l)}var Wh;Wh=function(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps||It.current)At=!0;else{if((n.lanes&l)===0&&(i.flags&128)===0)return At=!1,uw(n,i,l);At=(n.flags&131072)!==0}else At=!1,Ke&&(i.flags&1048576)!==0&&Ep(i,ql,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;ls(n,i),n=i.pendingProps;var h=oi(i,yt.current);di(i,l),h=bu(null,i,c,n,h,l);var y=Cu();return i.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Pt(c)?(y=!0,Ul(i)):y=!1,i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,gu(i),h.updater=is,i.stateNode=h,h._reactInternals=i,Iu(i,c,n,l),i=_u(null,i,c,!0,y,l)):(i.tag=0,Ke&&y&&lu(i),Et(null,i,h,l),i=i.child),i;case 16:c=i.elementType;e:{switch(ls(n,i),n=i.pendingProps,h=c._init,c=h(c._payload),i.type=c,h=i.tag=Cw(c),n=pn(c,n),h){case 0:i=Lu(null,i,c,n,l);break e;case 1:i=xh(null,i,c,n,l);break e;case 11:i=ph(null,i,c,n,l);break e;case 14:i=hh(null,i,c,pn(c.type,n),l);break e}throw Error(r(306,c,""))}return i;case 0:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:pn(c,h),Lu(n,i,c,h,l);case 1:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:pn(c,h),xh(n,i,c,h,l);case 3:e:{if(vh(i),n===null)throw Error(r(387));c=i.pendingProps,y=i.memoizedState,h=y.element,_p(n,i),Yl(i,c,null,l);var k=i.memoizedState;if(c=k.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){h=pi(Error(r(423)),i),i=wh(n,i,c,l,h);break e}else if(c!==h){h=pi(Error(r(424)),i),i=wh(n,i,c,l,h);break e}else for(Ht=Xn(i.stateNode.containerInfo.firstChild),Vt=i,Ke=!0,fn=null,l=Ap(i,null,c,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ai(),c===h){i=Mn(n,i,l);break e}Et(n,i,c,l)}i=i.child}return i;case 5:return zp(i),n===null&&uu(i),c=i.type,h=i.pendingProps,y=n!==null?n.memoizedProps:null,k=h.children,eu(c,h)?k=null:y!==null&&eu(c,y)&&(i.flags|=32),yh(n,i),Et(n,i,k,l),i.child;case 6:return n===null&&uu(i),null;case 13:return kh(n,i,l);case 4:return yu(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=ui(i,null,c,l):Et(n,i,c,l),i.child;case 11:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:pn(c,h),ph(n,i,c,h,l);case 7:return Et(n,i,i.pendingProps,l),i.child;case 8:return Et(n,i,i.pendingProps.children,l),i.child;case 12:return Et(n,i,i.pendingProps.children,l),i.child;case 10:e:{if(c=i.type._context,h=i.pendingProps,y=i.memoizedProps,k=h.value,Ue(Jl,c._currentValue),c._currentValue=k,y!==null)if(dn(y.value,k)){if(y.children===h.children&&!It.current){i=Mn(n,i,l);break e}}else for(y=i.child,y!==null&&(y.return=i);y!==null;){var N=y.dependencies;if(N!==null){k=y.child;for(var P=N.firstContext;P!==null;){if(P.context===c){if(y.tag===1){P=On(-1,l&-l),P.tag=2;var F=y.updateQueue;if(F!==null){F=F.shared;var Y=F.pending;Y===null?P.next=P:(P.next=Y.next,Y.next=P),F.pending=P}}y.lanes|=l,P=y.alternate,P!==null&&(P.lanes|=l),hu(y.return,l,i),N.lanes|=l;break}P=P.next}}else if(y.tag===10)k=y.type===i.type?null:y.child;else if(y.tag===18){if(k=y.return,k===null)throw Error(r(341));k.lanes|=l,N=k.alternate,N!==null&&(N.lanes|=l),hu(k,l,i),k=y.sibling}else k=y.child;if(k!==null)k.return=y;else for(k=y;k!==null;){if(k===i){k=null;break}if(y=k.sibling,y!==null){y.return=k.return,k=y;break}k=k.return}y=k}Et(n,i,h.children,l),i=i.child}return i;case 9:return h=i.type,c=i.pendingProps.children,di(i,l),h=nn(h),c=c(h),i.flags|=1,Et(n,i,c,l),i.child;case 14:return c=i.type,h=pn(c,i.pendingProps),h=pn(c.type,h),hh(n,i,c,h,l);case 15:return mh(n,i,i.type,i.pendingProps,l);case 17:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:pn(c,h),ls(n,i),i.tag=1,Pt(c)?(n=!0,Ul(i)):n=!1,di(i,l),lh(i,c,h),Iu(i,c,h,l),_u(null,i,c,!0,n,l);case 19:return bh(n,i,l);case 22:return gh(n,i,l)}throw Error(r(156,i.tag))};function Gh(n,i){return jf(n,i)}function bw(n,i,l,c){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(n,i,l,c){return new bw(n,i,l,c)}function ec(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Cw(n){if(typeof n=="function")return ec(n)?1:0;if(n!=null){if(n=n.$$typeof,n===se)return 11;if(n===U)return 14}return 2}function ur(n,i){var l=n.alternate;return l===null?(l=ln(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&14680064,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l}function ys(n,i,l,c,h,y){var k=2;if(c=n,typeof n=="function")ec(n)&&(k=1);else if(typeof n=="string")k=5;else e:switch(n){case W:return Lr(l.children,h,y,i);case K:k=8,h|=8;break;case le:return n=ln(12,l,i,h|2),n.elementType=le,n.lanes=y,n;case oe:return n=ln(13,l,i,h),n.elementType=oe,n.lanes=y,n;case X:return n=ln(19,l,i,h),n.elementType=X,n.lanes=y,n;case ae:return xs(l,h,y,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case z:k=10;break e;case re:k=9;break e;case se:k=11;break e;case U:k=14;break e;case de:k=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=ln(k,l,i,h),i.elementType=n,i.type=c,i.lanes=y,i}function Lr(n,i,l,c){return n=ln(7,n,c,i),n.lanes=l,n}function xs(n,i,l,c){return n=ln(22,n,c,i),n.elementType=ae,n.lanes=l,n.stateNode={isHidden:!1},n}function tc(n,i,l){return n=ln(6,n,null,i),n.lanes=l,n}function nc(n,i,l){return i=ln(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function Ew(n,i,l,c,h){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ta(0),this.expirationTimes=Ta(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ta(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function rc(n,i,l,c,h,y,k,N,P){return n=new Ew(n,i,l,N,P),i===1?(i=1,y===!0&&(i|=8)):i=0,y=ln(3,null,null,i),n.current=y,y.stateNode=n,y.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},gu(y),n}function jw(n,i,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:c==null?null:""+c,children:n,containerInfo:i,implementation:l}}function Jh(n){if(!n)return er;n=n._reactInternals;e:{if(kr(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Pt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var l=n.type;if(Pt(l))return Sp(n,l,i)}return i}function Kh(n,i,l,c,h,y,k,N,P){return n=rc(l,c,!0,n,h,y,k,N,P),n.context=Jh(null),l=n.current,c=jt(),h=sr(l),y=On(c,h),y.callback=i??null,rr(l,y,h),n.current.lanes=h,no(n,h,c),_t(n,c),n}function vs(n,i,l,c){var h=i.current,y=jt(),k=sr(h);return l=Jh(l),i.context===null?i.context=l:i.pendingContext=l,i=On(y,k),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=rr(h,i,k),n!==null&&(gn(n,h,k,y),Ql(n,h,k)),k}function ws(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Qh(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function ic(n,i){Qh(n,i),(n=n.alternate)&&Qh(n,i)}function Rw(){return null}var Yh=typeof reportError=="function"?reportError:function(n){console.error(n)};function oc(n){this._internalRoot=n}ks.prototype.render=oc.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));vs(n,i,null,null)},ks.prototype.unmount=oc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Ir(function(){vs(null,n,null,null)}),i[Ln]=null}};function ks(n){this._internalRoot=n}ks.prototype.unstable_scheduleHydration=function(n){if(n){var i=_f();n={blockedOn:null,target:n,priority:i};for(var l=0;l<Kn.length&&i!==0&&i<Kn[l].priority;l++);Kn.splice(l,0,n),l===0&&zf(n)}};function lc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Ss(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Xh(){}function Nw(n,i,l,c,h){if(h){if(typeof c=="function"){var y=c;c=function(){var F=ws(k);y.call(F)}}var k=Kh(i,c,n,0,null,!1,!1,"",Xh);return n._reactRootContainer=k,n[Ln]=k.current,yo(n.nodeType===8?n.parentNode:n),Ir(),k}for(;h=n.lastChild;)n.removeChild(h);if(typeof c=="function"){var N=c;c=function(){var F=ws(P);N.call(F)}}var P=rc(n,0,!1,null,null,!1,!1,"",Xh);return n._reactRootContainer=P,n[Ln]=P.current,yo(n.nodeType===8?n.parentNode:n),Ir(function(){vs(i,P,l,c)}),P}function bs(n,i,l,c,h){var y=l._reactRootContainer;if(y){var k=y;if(typeof h=="function"){var N=h;h=function(){var P=ws(k);N.call(P)}}vs(i,k,n,h)}else k=Nw(l,i,n,h,c);return ws(k)}Af=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var l=to(i.pendingLanes);l!==0&&(Ia(i,l|1),_t(i,et()),(De&6)===0&&(gi=et()+500,tr()))}break;case 13:Ir(function(){var c=zn(n,1);if(c!==null){var h=jt();gn(c,n,1,h)}}),ic(n,1)}},Pa=function(n){if(n.tag===13){var i=zn(n,134217728);if(i!==null){var l=jt();gn(i,n,134217728,l)}ic(n,134217728)}},Lf=function(n){if(n.tag===13){var i=sr(n),l=zn(n,i);if(l!==null){var c=jt();gn(l,n,i,c)}ic(n,i)}},_f=function(){return Me},$f=function(n,i){var l=Me;try{return Me=n,i()}finally{Me=l}},ba=function(n,i,l){switch(i){case"input":if(Wr(n,l),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var c=l[i];if(c!==n&&c.form===n.form){var h=Fl(c);if(!h)throw Error(r(90));Ft(c),Wr(c,h)}}}break;case"textarea":gl(n,l);break;case"select":i=l.value,i!=null&&Hn(n,!!l.multiple,i,!1)}},vf=Yu,wf=Ir;var Tw={usingClientEntryPoint:!1,Events:[wo,ri,Fl,yf,xf,Yu]},_o={findFiberByHostInstance:Sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Iw={bundleType:_o.bundleType,version:_o.version,rendererPackageName:_o.rendererPackageName,rendererConfig:_o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:B.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Cf(n),n===null?null:n.stateNode},findFiberByHostInstance:_o.findFiberByHostInstance||Rw,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 Cs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cs.isDisabled&&Cs.supportsFiber)try{kl=Cs.inject(Iw),Sn=Cs}catch{}}return $t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tw,$t.createPortal=function(n,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lc(i))throw Error(r(200));return jw(n,i,null,l)},$t.createRoot=function(n,i){if(!lc(n))throw Error(r(299));var l=!1,c="",h=Yh;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),i=rc(n,1,!1,null,null,l,!1,c,h),n[Ln]=i.current,yo(n.nodeType===8?n.parentNode:n),new oc(i)},$t.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=Cf(i),n=n===null?null:n.stateNode,n},$t.flushSync=function(n){return Ir(n)},$t.hydrate=function(n,i,l){if(!Ss(i))throw Error(r(200));return bs(null,n,i,!0,l)},$t.hydrateRoot=function(n,i,l){if(!lc(n))throw Error(r(405));var c=l!=null&&l.hydratedSources||null,h=!1,y="",k=Yh;if(l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(k=l.onRecoverableError)),i=Kh(i,null,n,1,l??null,h,!1,y,k),n[Ln]=i.current,yo(n),c)for(n=0;n<c.length;n++)l=c[n],h=l._getVersion,h=h(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,h]:i.mutableSourceEagerHydrationData.push(l,h);return new ks(i)},$t.render=function(n,i,l){if(!Ss(i))throw Error(r(200));return bs(null,n,i,!1,l)},$t.unmountComponentAtNode=function(n){if(!Ss(n))throw Error(r(40));return n._reactRootContainer?(Ir(function(){bs(null,null,n,!1,function(){n._reactRootContainer=null,n[Ln]=null})}),!0):!1},$t.unstable_batchedUpdates=Yu,$t.unstable_renderSubtreeIntoContainer=function(n,i,l,c){if(!Ss(l))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return bs(n,i,l,!1,c)},$t.version="18.3.1-next-f1338f8080-20240426",$t}var im;function Ow(){if(im)return ac.exports;im=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ac.exports=zw(),ac.exports}var om;function Mw(){if(om)return Es;om=1;var e=Ow();return Es.createRoot=e.createRoot,Es.hydrateRoot=e.hydrateRoot,Es}var Fw=Mw(),dc={exports:{}},Do={};/**
|
|
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 lm;function Bw(){if(lm)return Do;lm=1;var e=jd(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var m,g={},v=null,w=null;p!==void 0&&(v=""+p),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(w=f.ref);for(m in f)o.call(f,m)&&!a.hasOwnProperty(m)&&(g[m]=f[m]);if(d&&d.defaultProps)for(m in f=d.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:d,key:v,ref:w,props:g,_owner:s.current}}return Do.Fragment=r,Do.jsx=u,Do.jsxs=u,Do}var sm;function Uw(){return sm||(sm=1,dc.exports=Bw()),dc.exports}var x=Uw(),ft=function(){return ft=Object.assign||function(t){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ft.apply(this,arguments)};function Pi(e,t,r){if(r||arguments.length===2)for(var o=0,s=t.length,a;o<s;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var Ge="-ms-",Qo="-moz-",Oe="-webkit-",Wg="comm",ia="rule",Rd="decl",Vw="@import",Gg="@keyframes",Hw="@layer",Jg=Math.abs,Nd=String.fromCharCode,Vc=Object.assign;function qw(e,t){return dt(e,0)^45?(((t<<2^dt(e,0))<<2^dt(e,1))<<2^dt(e,2))<<2^dt(e,3):0}function Kg(e){return e.trim()}function Bn(e,t){return(e=t.exec(e))?e[0]:e}function Te(e,t,r){return e.replace(t,r)}function _s(e,t,r){return e.indexOf(t,r)}function dt(e,t){return e.charCodeAt(t)|0}function Ai(e,t,r){return e.slice(t,r)}function In(e){return e.length}function Qg(e){return e.length}function Jo(e,t){return t.push(e),e}function Ww(e,t){return e.map(t).join("")}function am(e,t){return e.filter(function(r){return!Bn(r,t)})}var oa=1,Li=1,Yg=0,an=0,ot=0,Fi="";function la(e,t,r,o,s,a,u,d){return{value:e,root:t,parent:r,type:o,props:s,children:a,line:oa,column:Li,length:u,return:"",siblings:d}}function fr(e,t){return Vc(la("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xi(e){for(;e.root;)e=fr(e.root,{children:[e]});Jo(e,e.siblings)}function Gw(){return ot}function Jw(){return ot=an>0?dt(Fi,--an):0,Li--,ot===10&&(Li=1,oa--),ot}function yn(){return ot=an<Yg?dt(Fi,an++):0,Li++,ot===10&&(Li=1,oa++),ot}function Or(){return dt(Fi,an)}function $s(){return an}function sa(e,t){return Ai(Fi,e,t)}function Hc(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 Kw(e){return oa=Li=1,Yg=In(Fi=e),an=0,[]}function Qw(e){return Fi="",e}function fc(e){return Kg(sa(an-1,qc(e===91?e+2:e===40?e+1:e)))}function Yw(e){for(;(ot=Or())&&ot<33;)yn();return Hc(e)>2||Hc(ot)>3?"":" "}function Xw(e,t){for(;--t&&yn()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return sa(e,$s()+(t<6&&Or()==32&&yn()==32))}function qc(e){for(;yn();)switch(ot){case e:return an;case 34:case 39:e!==34&&e!==39&&qc(ot);break;case 40:e===41&&qc(e);break;case 92:yn();break}return an}function Zw(e,t){for(;yn()&&e+ot!==57;)if(e+ot===84&&Or()===47)break;return"/*"+sa(t,an-1)+"*"+Nd(e===47?e:yn())}function ek(e){for(;!Hc(Or());)yn();return sa(e,an)}function tk(e){return Qw(Ds("",null,null,null,[""],e=Kw(e),0,[0],e))}function Ds(e,t,r,o,s,a,u,d,f){for(var p=0,m=0,g=u,v=0,w=0,S=0,b=1,R=1,C=1,I=0,_="",B=s,q=a,A=o,W=_;R;)switch(S=I,I=yn()){case 40:if(S!=108&&dt(W,g-1)==58){_s(W+=Te(fc(I),"&","&\f"),"&\f",Jg(p?d[p-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:W+=fc(I);break;case 9:case 10:case 13:case 32:W+=Yw(S);break;case 92:W+=Xw($s()-1,7);continue;case 47:switch(Or()){case 42:case 47:Jo(nk(Zw(yn(),$s()),t,r,f),f);break;default:W+="/"}break;case 123*b:d[p++]=In(W)*C;case 125*b:case 59:case 0:switch(I){case 0:case 125:R=0;case 59+m:C==-1&&(W=Te(W,/\f/g,"")),w>0&&In(W)-g&&Jo(w>32?cm(W+";",o,r,g-1,f):cm(Te(W," ","")+";",o,r,g-2,f),f);break;case 59:W+=";";default:if(Jo(A=um(W,t,r,p,m,s,d,_,B=[],q=[],g,a),a),I===123)if(m===0)Ds(W,t,A,A,B,a,g,d,q);else switch(v===99&&dt(W,3)===110?100:v){case 100:case 108:case 109:case 115:Ds(e,A,A,o&&Jo(um(e,A,A,0,0,s,d,_,s,B=[],g,q),q),s,q,g,d,o?B:q);break;default:Ds(W,A,A,A,[""],q,0,d,q)}}p=m=w=0,b=C=1,_=W="",g=u;break;case 58:g=1+In(W),w=S;default:if(b<1){if(I==123)--b;else if(I==125&&b++==0&&Jw()==125)continue}switch(W+=Nd(I),I*b){case 38:C=m>0?1:(W+="\f",-1);break;case 44:d[p++]=(In(W)-1)*C,C=1;break;case 64:Or()===45&&(W+=fc(yn())),v=Or(),m=g=In(_=W+=ek($s())),I++;break;case 45:S===45&&In(W)==2&&(b=0)}}return a}function um(e,t,r,o,s,a,u,d,f,p,m,g){for(var v=s-1,w=s===0?a:[""],S=Qg(w),b=0,R=0,C=0;b<o;++b)for(var I=0,_=Ai(e,v+1,v=Jg(R=u[b])),B=e;I<S;++I)(B=Kg(R>0?w[I]+" "+_:Te(_,/&\f/g,w[I])))&&(f[C++]=B);return la(e,t,r,s===0?ia:d,f,p,m,g)}function nk(e,t,r,o){return la(e,t,r,Wg,Nd(Gw()),Ai(e,2,-2),0,o)}function cm(e,t,r,o,s){return la(e,t,r,Rd,Ai(e,0,o),Ai(e,o+1,-1),o,s)}function Xg(e,t,r){switch(qw(e,t)){case 5103:return Oe+"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 Oe+e+e;case 4789:return Qo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Oe+e+Qo+e+Ge+e+e;case 5936:switch(dt(e,t+11)){case 114:return Oe+e+Ge+Te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Oe+e+Ge+Te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Oe+e+Ge+Te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Oe+e+Ge+e+e;case 6165:return Oe+e+Ge+"flex-"+e+e;case 5187:return Oe+e+Te(e,/(\w+).+(:[^]+)/,Oe+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return Oe+e+Ge+"flex-item-"+Te(e,/flex-|-self/g,"")+(Bn(e,/flex-|baseline/)?"":Ge+"grid-row-"+Te(e,/flex-|-self/g,""))+e;case 4675:return Oe+e+Ge+"flex-line-pack"+Te(e,/align-content|flex-|-self/g,"")+e;case 5548:return Oe+e+Ge+Te(e,"shrink","negative")+e;case 5292:return Oe+e+Ge+Te(e,"basis","preferred-size")+e;case 6060:return Oe+"box-"+Te(e,"-grow","")+Oe+e+Ge+Te(e,"grow","positive")+e;case 4554:return Oe+Te(e,/([^-])(transform)/g,"$1"+Oe+"$2")+e;case 6187:return Te(Te(Te(e,/(zoom-|grab)/,Oe+"$1"),/(image-set)/,Oe+"$1"),e,"")+e;case 5495:case 3959:return Te(e,/(image-set\([^]*)/,Oe+"$1$`$1");case 4968:return Te(Te(e,/(.+:)(flex-)?(.*)/,Oe+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Oe+e+e;case 4200:if(!Bn(e,/flex-|baseline/))return Ge+"grid-column-align"+Ai(e,t)+e;break;case 2592:case 3360:return Ge+Te(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,s){return t=s,Bn(o.props,/grid-\w+-end/)})?~_s(e+(r=r[t].value),"span",0)?e:Ge+Te(e,"-start","")+e+Ge+"grid-row-span:"+(~_s(r,"span",0)?Bn(r,/\d+/):+Bn(r,/\d+/)-+Bn(e,/\d+/))+";":Ge+Te(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return Bn(o.props,/grid-\w+-start/)})?e:Ge+Te(Te(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Te(e,/(.+)-inline(.+)/,Oe+"$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(In(e)-1-t>6)switch(dt(e,t+1)){case 109:if(dt(e,t+4)!==45)break;case 102:return Te(e,/(.+:)(.+)-([^]+)/,"$1"+Oe+"$2-$3$1"+Qo+(dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_s(e,"stretch",0)?Xg(Te(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Te(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,s,a,u,d,f,p){return Ge+s+":"+a+p+(u?Ge+s+"-span:"+(d?f:+f-+a)+p:"")+e});case 4949:if(dt(e,t+6)===121)return Te(e,":",":"+Oe)+e;break;case 6444:switch(dt(e,dt(e,14)===45?18:11)){case 120:return Te(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Oe+(dt(e,14)===45?"inline-":"")+"box$3$1"+Oe+"$2$3$1"+Ge+"$2box$3")+e;case 100:return Te(e,":",":"+Ge)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Te(e,"scroll-","scroll-snap-")+e}return e}function qs(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function rk(e,t,r,o){switch(e.type){case Hw:if(e.children.length)break;case Vw:case Rd:return e.return=e.return||e.value;case Wg:return"";case Gg:return e.return=e.value+"{"+qs(e.children,o)+"}";case ia:if(!In(e.value=e.props.join(",")))return""}return In(r=qs(e.children,o))?e.return=e.value+"{"+r+"}":""}function ik(e){var t=Qg(e);return function(r,o,s,a){for(var u="",d=0;d<t;d++)u+=e[d](r,o,s,a)||"";return u}}function ok(e){return function(t){t.root||(t=t.return)&&e(t)}}function lk(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Rd:e.return=Xg(e.value,e.length,r);return;case Gg:return qs([fr(e,{value:Te(e.value,"@","@"+Oe)})],o);case ia:if(e.length)return Ww(r=e.props,function(s){switch(Bn(s,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xi(fr(e,{props:[Te(s,/:(read-\w+)/,":"+Qo+"$1")]})),xi(fr(e,{props:[s]})),Vc(e,{props:am(r,o)});break;case"::placeholder":xi(fr(e,{props:[Te(s,/:(plac\w+)/,":"+Oe+"input-$1")]})),xi(fr(e,{props:[Te(s,/:(plac\w+)/,":"+Qo+"$1")]})),xi(fr(e,{props:[Te(s,/:(plac\w+)/,Ge+"input-$1")]})),xi(fr(e,{props:[s]})),Vc(e,{props:am(r,o)});break}return""})}}var sk={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},Gt={},_i=typeof process<"u"&&Gt!==void 0&&(Gt.REACT_APP_SC_ATTR||Gt.SC_ATTR)||"data-styled",Zg="active",ey="data-styled-version",aa="6.1.13",Td=`/*!sc*/
|
|
41
|
-
`,Ws=typeof window<"u"&&"HTMLElement"in window,ak=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Gt!==void 0&&Gt.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Gt.REACT_APP_SC_DISABLE_SPEEDY!==""?Gt.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Gt.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Gt!==void 0&&Gt.SC_DISABLE_SPEEDY!==void 0&&Gt.SC_DISABLE_SPEEDY!==""&&Gt.SC_DISABLE_SPEEDY!=="false"&&Gt.SC_DISABLE_SPEEDY),uk={},ua=Object.freeze([]),$i=Object.freeze({});function ty(e,t,r){return r===void 0&&(r=$i),e.theme!==r.theme&&e.theme||t||r.theme}var ny=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"]),ck=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,dk=/(^-|-$)/g;function dm(e){return e.replace(ck,"-").replace(dk,"")}var fk=/(a)(d)/gi,js=52,fm=function(e){return String.fromCharCode(e+(e>25?39:97))};function Wc(e){var t,r="";for(t=Math.abs(e);t>js;t=t/js|0)r=fm(t%js)+r;return(fm(t%js)+r).replace(fk,"$1-$2")}var pc,ry=5381,Ci=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},iy=function(e){return Ci(ry,e)};function Id(e){return Wc(iy(e)>>>0)}function pk(e){return e.displayName||e.name||"Component"}function hc(e){return typeof e=="string"&&!0}var oy=typeof Symbol=="function"&&Symbol.for,ly=oy?Symbol.for("react.memo"):60115,hk=oy?Symbol.for("react.forward_ref"):60112,mk={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},gk={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},sy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yk=((pc={})[hk]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pc[ly]=sy,pc);function pm(e){return("type"in(t=e)&&t.type.$$typeof)===ly?sy:"$$typeof"in e?yk[e.$$typeof]:mk;var t}var xk=Object.defineProperty,vk=Object.getOwnPropertyNames,hm=Object.getOwnPropertySymbols,wk=Object.getOwnPropertyDescriptor,kk=Object.getPrototypeOf,mm=Object.prototype;function ay(e,t,r){if(typeof t!="string"){if(mm){var o=kk(t);o&&o!==mm&&ay(e,o,r)}var s=vk(t);hm&&(s=s.concat(hm(t)));for(var a=pm(e),u=pm(t),d=0;d<s.length;++d){var f=s[d];if(!(f in gk||r&&r[f]||u&&f in u||a&&f in a)){var p=wk(t,f);try{xk(e,f,p)}catch{}}}}return e}function Fr(e){return typeof e=="function"}function Pd(e){return typeof e=="object"&&"styledComponentId"in e}function Dr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Gs(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function Zo(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Gc(e,t,r){if(r===void 0&&(r=!1),!r&&!Zo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=Gc(e[o],t[o]);else if(Zo(t))for(var o in t)e[o]=Gc(e[o],t[o]);return e}function Ad(e,t){Object.defineProperty(e,"toString",{value:t})}function mr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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 Sk=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,o=0;o<t;o++)r+=this.groupSizes[o];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var o=this.groupSizes,s=o.length,a=s;t>=a;)if((a<<=1)<0)throw mr(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var u=s;u<a;u++)this.groupSizes[u]=0}for(var d=this.indexOfGroup(t+1),f=(u=0,r.length);u<f;u++)this.tag.insertRule(d,r[u])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r;this.groupSizes[t]=0;for(var a=o;a<s;a++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var o=this.groupSizes[t],s=this.indexOfGroup(t),a=s+o,u=s;u<a;u++)r+="".concat(this.tag.getRule(u)).concat(Td);return r},e}(),zs=new Map,Js=new Map,Os=1,Rs=function(e){if(zs.has(e))return zs.get(e);for(;Js.has(Os);)Os++;var t=Os++;return zs.set(e,t),Js.set(t,e),t},bk=function(e,t){Os=t+1,zs.set(e,t),Js.set(t,e)},Ck="style[".concat(_i,"][").concat(ey,'="').concat(aa,'"]'),Ek=new RegExp("^".concat(_i,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),jk=function(e,t,r){for(var o,s=r.split(","),a=0,u=s.length;a<u;a++)(o=s[a])&&e.registerName(t,o)},Rk=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split(Td),s=[],a=0,u=o.length;a<u;a++){var d=o[a].trim();if(d){var f=d.match(Ek);if(f){var p=0|parseInt(f[1],10),m=f[2];p!==0&&(bk(m,p),jk(e,m,f[3]),e.getTag().insertRules(p,s)),s.length=0}else s.push(d)}}},gm=function(e){for(var t=document.querySelectorAll(Ck),r=0,o=t.length;r<o;r++){var s=t[r];s&&s.getAttribute(_i)!==Zg&&(Rk(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function Nk(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var uy=function(e){var t=document.head,r=e||t,o=document.createElement("style"),s=function(d){var f=Array.from(d.querySelectorAll("style[".concat(_i,"]")));return f[f.length-1]}(r),a=s!==void 0?s.nextSibling:null;o.setAttribute(_i,Zg),o.setAttribute(ey,aa);var u=Nk();return u&&o.setAttribute("nonce",u),r.insertBefore(o,a),o},Tk=function(){function e(t){this.element=uy(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,s=0,a=o.length;s<a;s++){var u=o[s];if(u.ownerNode===r)return u}throw mr(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),Ik=function(){function e(t){this.element=uy(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var o=document.createTextNode(r);return this.element.insertBefore(o,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}(),Pk=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),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}(),ym=Ws,Ak={isServer:!Ws,useCSSOMInjection:!ak},Ks=function(){function e(t,r,o){t===void 0&&(t=$i),r===void 0&&(r={});var s=this;this.options=ft(ft({},Ak),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&Ws&&ym&&(ym=!1,gm(this)),Ad(this,function(){return function(a){for(var u=a.getTag(),d=u.length,f="",p=function(g){var v=function(C){return Js.get(C)}(g);if(v===void 0)return"continue";var w=a.names.get(v),S=u.getGroup(g);if(w===void 0||!w.size||S.length===0)return"continue";var b="".concat(_i,".g").concat(g,'[id="').concat(v,'"]'),R="";w!==void 0&&w.forEach(function(C){C.length>0&&(R+="".concat(C,","))}),f+="".concat(S).concat(b,'{content:"').concat(R,'"}').concat(Td)},m=0;m<d;m++)p(m);return f}(s)})}return e.registerId=function(t){return Rs(t)},e.prototype.rehydrate=function(){!this.server&&Ws&&gm(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(ft(ft({},this.options),t),this.gs,r&&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(r){var o=r.useCSSOMInjection,s=r.target;return r.isServer?new Pk(s):o?new Tk(s):new Ik(s)}(this.options),new Sk(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Rs(t),this.names.has(t))this.names.get(t).add(r);else{var o=new Set;o.add(r),this.names.set(t,o)}},e.prototype.insertRules=function(t,r,o){this.registerName(t,r),this.getTag().insertRules(Rs(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Rs(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Lk=/&/g,_k=/^\s*\/\/.*$/gm;function cy(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=cy(r.children,t)),r})}function $k(e){var t,r,o,s=$i,a=s.options,u=a===void 0?$i:a,d=s.plugins,f=d===void 0?ua:d,p=function(v,w,S){return S.startsWith(r)&&S.endsWith(r)&&S.replaceAll(r,"").length>0?".".concat(t):v},m=f.slice();m.push(function(v){v.type===ia&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Lk,r).replace(o,p))}),u.prefix&&m.push(lk),m.push(rk);var g=function(v,w,S,b){w===void 0&&(w=""),S===void 0&&(S=""),b===void 0&&(b="&"),t=b,r=w,o=new RegExp("\\".concat(r,"\\b"),"g");var R=v.replace(_k,""),C=tk(S||w?"".concat(S," ").concat(w," { ").concat(R," }"):R);u.namespace&&(C=cy(C,u.namespace));var I=[];return qs(C,ik(m.concat(ok(function(_){return I.push(_)})))),I};return g.hash=f.length?f.reduce(function(v,w){return w.name||mr(15),Ci(v,w.name)},ry).toString():"",g}var Dk=new Ks,Jc=$k(),dy=Nt.createContext({shouldForwardProp:void 0,styleSheet:Dk,stylis:Jc});dy.Consumer;Nt.createContext(void 0);function Kc(){return L.useContext(dy)}var fy=function(){function e(t,r){var o=this;this.inject=function(s,a){a===void 0&&(a=Jc);var u=o.name+a.hash;s.hasNameForId(o.id,u)||s.insertRules(o.id,u,a(o.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Ad(this,function(){throw mr(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Jc),this.name+t.hash},e}(),zk=function(e){return e>="A"&&e<="Z"};function xm(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;zk(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var py=function(e){return e==null||e===!1||e===""},hy=function(e){var t,r,o=[];for(var s in e){var a=e[s];e.hasOwnProperty(s)&&!py(a)&&(Array.isArray(a)&&a.isCss||Fr(a)?o.push("".concat(xm(s),":"),a,";"):Zo(a)?o.push.apply(o,Pi(Pi(["".concat(s," {")],hy(a),!1),["}"],!1)):o.push("".concat(xm(s),": ").concat((t=s,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in sk||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function pr(e,t,r,o){if(py(e))return[];if(Pd(e))return[".".concat(e.styledComponentId)];if(Fr(e)){if(!Fr(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var s=e(t);return pr(s,t,r,o)}var a;return e instanceof fy?r?(e.inject(r,o),[e.getName(o)]):[e]:Zo(e)?hy(e):Array.isArray(e)?Array.prototype.concat.apply(ua,e.map(function(u){return pr(u,t,r,o)})):[e.toString()]}function my(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Fr(r)&&!Pd(r))return!1}return!0}var Ok=iy(aa),Mk=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&my(t),this.componentId=r,this.baseHash=Ci(Ok,r),this.baseStyle=o,Ks.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))s=Dr(s,this.staticRulesId);else{var a=Gs(pr(this.rules,t,r,o)),u=Wc(Ci(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,u)){var d=o(a,".".concat(u),void 0,this.componentId);r.insertRules(this.componentId,u,d)}s=Dr(s,u),this.staticRulesId=u}else{for(var f=Ci(this.baseHash,o.hash),p="",m=0;m<this.rules.length;m++){var g=this.rules[m];if(typeof g=="string")p+=g;else if(g){var v=Gs(pr(g,t,r,o));f=Ci(f,v+m),p+=v}}if(p){var w=Wc(f>>>0);r.hasNameForId(this.componentId,w)||r.insertRules(this.componentId,w,o(p,".".concat(w),void 0,this.componentId)),s=Dr(s,w)}}return s},e}(),Di=Nt.createContext(void 0);Di.Consumer;function Fk(){var e=L.useContext(Di);if(!e)throw mr(18);return e}function vm(e){var t=Nt.useContext(Di),r=L.useMemo(function(){return function(o,s){if(!o)throw mr(14);if(Fr(o)){var a=o(s);return a}if(Array.isArray(o)||typeof o!="object")throw mr(8);return s?ft(ft({},s),o):o}(e.theme,t)},[e.theme,t]);return e.children?Nt.createElement(Di.Provider,{value:r},e.children):null}var mc={};function Bk(e,t,r){var o=Pd(e),s=e,a=!hc(e),u=t.attrs,d=u===void 0?ua:u,f=t.componentId,p=f===void 0?function(B,q){var A=typeof B!="string"?"sc":dm(B);mc[A]=(mc[A]||0)+1;var W="".concat(A,"-").concat(Id(aa+A+mc[A]));return q?"".concat(q,"-").concat(W):W}(t.displayName,t.parentComponentId):f,m=t.displayName,g=m===void 0?function(B){return hc(B)?"styled.".concat(B):"Styled(".concat(pk(B),")")}(e):m,v=t.displayName&&t.componentId?"".concat(dm(t.displayName),"-").concat(t.componentId):t.componentId||p,w=o&&s.attrs?s.attrs.concat(d).filter(Boolean):d,S=t.shouldForwardProp;if(o&&s.shouldForwardProp){var b=s.shouldForwardProp;if(t.shouldForwardProp){var R=t.shouldForwardProp;S=function(B,q){return b(B,q)&&R(B,q)}}else S=b}var C=new Mk(r,v,o?s.componentStyle:void 0);function I(B,q){return function(A,W,K){var le=A.attrs,z=A.componentStyle,re=A.defaultProps,se=A.foldedComponentIds,oe=A.styledComponentId,X=A.target,U=Nt.useContext(Di),de=Kc(),ae=A.shouldForwardProp||de.shouldForwardProp,Z=ty(W,U,re)||$i,ue=function(be,fe,ge){for(var ve,Ce=ft(ft({},fe),{className:void 0,theme:ge}),Je=0;Je<be.length;Je+=1){var Tt=Fr(ve=be[Je])?ve(Ce):ve;for(var Ft in Tt)Ce[Ft]=Ft==="className"?Dr(Ce[Ft],Tt[Ft]):Ft==="style"?ft(ft({},Ce[Ft]),Tt[Ft]):Tt[Ft]}return fe.className&&(Ce.className=Dr(Ce.className,fe.className)),Ce}(le,W,Z),E=ue.as||X,D={};for(var G in ue)ue[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&ue.theme===Z||(G==="forwardedAs"?D.as=ue.forwardedAs:ae&&!ae(G,E)||(D[G]=ue[G]));var j=function(be,fe){var ge=Kc(),ve=be.generateAndInjectStyles(fe,ge.styleSheet,ge.stylis);return ve}(z,ue),ye=Dr(se,oe);return j&&(ye+=" "+j),ue.className&&(ye+=" "+ue.className),D[hc(E)&&!ny.has(E)?"class":"className"]=ye,D.ref=K,L.createElement(E,D)}(_,B,q)}I.displayName=g;var _=Nt.forwardRef(I);return _.attrs=w,_.componentStyle=C,_.displayName=g,_.shouldForwardProp=S,_.foldedComponentIds=o?Dr(s.foldedComponentIds,s.styledComponentId):"",_.styledComponentId=v,_.target=o?s.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(B){this._foldedDefaultProps=o?function(q){for(var A=[],W=1;W<arguments.length;W++)A[W-1]=arguments[W];for(var K=0,le=A;K<le.length;K++)Gc(q,le[K],!0);return q}({},s.defaultProps,B):B}}),Ad(_,function(){return".".concat(_.styledComponentId)}),a&&ay(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function wm(e,t){for(var r=[e[0]],o=0,s=t.length;o<s;o+=1)r.push(t[o],e[o+1]);return r}var km=function(e){return Object.assign(e,{isCss:!0})};function kt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Fr(e)||Zo(e))return km(pr(wm(ua,Pi([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?pr(o):km(pr(wm(o,t)))}function Qc(e,t,r){if(r===void 0&&(r=$i),!t)throw mr(1,t);var o=function(s){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,r,kt.apply(void 0,Pi([s],a,!1)))};return o.attrs=function(s){return Qc(e,t,ft(ft({},r),{attrs:Array.prototype.concat(r.attrs,s).filter(Boolean)}))},o.withConfig=function(s){return Qc(e,t,ft(ft({},r),s))},o}var gy=function(e){return Qc(Bk,e)},T=gy;ny.forEach(function(e){T[e]=gy(e)});var Uk=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=my(t),Ks.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,o,s){var a=s(Gs(pr(this.rules,r,o,s)),""),u=this.componentId+t;o.insertRules(u,u,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,o,s){t>2&&Ks.registerId(this.componentId+t),this.removeStyles(t,o),this.createStyles(t,r,o,s)},e}();function Vk(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=kt.apply(void 0,Pi([e],t,!1)),s="sc-global-".concat(Id(JSON.stringify(o))),a=new Uk(o,s),u=function(f){var p=Kc(),m=Nt.useContext(Di),g=Nt.useRef(p.styleSheet.allocateGSInstance(s)).current;return p.styleSheet.server&&d(g,f,p.styleSheet,m,p.stylis),Nt.useLayoutEffect(function(){if(!p.styleSheet.server)return d(g,f,p.styleSheet,m,p.stylis),function(){return a.removeStyles(g,p.styleSheet)}},[g,f,p.styleSheet,m,p.stylis]),null};function d(f,p,m,g,v){if(a.isStatic)a.renderStyles(f,uk,m,v);else{var w=ft(ft({},p),{theme:ty(p,g,u.defaultProps)});a.renderStyles(f,w,m,v)}}return Nt.memo(u)}function Bi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Gs(kt.apply(void 0,Pi([e],t,!1))),s=Id(o);return new fy(s,o)}const Hk="/assets/logo-BGHkG1-J.png",qk="/assets/logo-dark-KAsU1C78.png",Sm={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:Hk,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},bm={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:qk,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Wk=({usage:e})=>{const[t,r]=L.useState("total"),o=g=>{r(g.target.value)},s=e.usageMetrics[t],a=e.usageMetrics[t].cost||0,u=zo(a.toFixed(2)),d=zo(s.rpm),f=zo(s.rpd),p=zo(Cm(s.tpm)),m=zo(Cm(s.tpd));return x.jsx(Jk,{children:x.jsxs(Kk,{children:[x.jsx(Qk,{onChange:o,value:t,children:Object.keys(e.usageMetrics).map(g=>x.jsx("option",{value:g,children:g},g))}),x.jsxs(Oo,{children:[x.jsx(Mo,{children:"Cost:"}),x.jsxs(Fo,{children:["$",u]},u)]}),x.jsxs(Oo,{children:[x.jsx(Mo,{children:"RPM:"}),x.jsx(Fo,{children:d},d)]}),x.jsxs(Oo,{children:[x.jsx(Mo,{children:"RPD:"}),x.jsx(Fo,{children:f},f)]}),x.jsxs(Oo,{children:[x.jsx(Mo,{children:"TPM:"}),x.jsx(Fo,{children:p},p)]}),x.jsxs(Oo,{children:[x.jsx(Mo,{children:"TPD:"}),x.jsx(Fo,{children:m},m)]})]})})},Cm=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),zo=e=>{const[t,r]=L.useState(e),o=L.useRef(e);return L.useEffect(()=>{e!==o.current&&(r(e),o.current=e)},[e]),t},Gk=Bi`
|
|
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
|
-
`,Jk=T.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
|
-
`,Kk=T.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-wrap: wrap;
|
|
64
|
-
gap: 8px;
|
|
65
|
-
align-items: center;
|
|
66
|
-
`,Qk=T.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
|
-
`,Oo=T.div`
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
align-items: center;
|
|
77
|
-
margin-left: 8px;
|
|
78
|
-
`,Mo=T.span`
|
|
79
|
-
font-size: 0.8em;
|
|
80
|
-
color: ${({theme:e})=>e.colors.textSecondary};
|
|
81
|
-
`,Fo=T.span`
|
|
82
|
-
font-size: 0.9em;
|
|
83
|
-
font-weight: bold;
|
|
84
|
-
color: ${({theme:e})=>e.colors.text};
|
|
85
|
-
animation: ${Gk} 0.5s ease-in-out;
|
|
86
|
-
`;function yy(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yk}=Object.prototype,{getPrototypeOf:Ld}=Object,ca=(e=>t=>{const r=Yk.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),vn=e=>(e=e.toLowerCase(),t=>ca(t)===e),da=e=>t=>typeof t===e,{isArray:Ui}=Array,el=da("undefined");function Xk(e){return e!==null&&!el(e)&&e.constructor!==null&&!el(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xy=vn("ArrayBuffer");function Zk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xy(e.buffer),t}const eS=da("string"),Qt=da("function"),vy=da("number"),fa=e=>e!==null&&typeof e=="object",tS=e=>e===!0||e===!1,Ms=e=>{if(ca(e)!=="object")return!1;const t=Ld(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nS=vn("Date"),rS=vn("File"),iS=vn("Blob"),oS=vn("FileList"),lS=e=>fa(e)&&Qt(e.pipe),sS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qt(e.append)&&((t=ca(e))==="formdata"||t==="object"&&Qt(e.toString)&&e.toString()==="[object FormData]"))},aS=vn("URLSearchParams"),[uS,cS,dS,fS]=["ReadableStream","Request","Response","Headers"].map(vn),pS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ol(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),Ui(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let d;for(o=0;o<u;o++)d=a[o],t.call(null,e[d],d,e)}}function wy(e,t){t=t.toLowerCase();const r=Object.keys(e);let o=r.length,s;for(;o-- >0;)if(s=r[o],t===s.toLowerCase())return s;return null}const zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ky=e=>!el(e)&&e!==zr;function Yc(){const{caseless:e}=ky(this)&&this||{},t={},r=(o,s)=>{const a=e&&wy(t,s)||s;Ms(t[a])&&Ms(o)?t[a]=Yc(t[a],o):Ms(o)?t[a]=Yc({},o):Ui(o)?t[a]=o.slice():t[a]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ol(arguments[o],r);return t}const hS=(e,t,r,{allOwnKeys:o}={})=>(ol(t,(s,a)=>{r&&Qt(s)?e[a]=yy(s,r):e[a]=s},{allOwnKeys:o}),e),mS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gS=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},yS=(e,t,r,o)=>{let s,a,u;const d={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)u=s[a],(!o||o(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=r!==!1&&Ld(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},xS=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},vS=e=>{if(!e)return null;if(Ui(e))return e;let t=e.length;if(!vy(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},wS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ld(Uint8Array)),kS=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},SS=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},bS=vn("HTMLFormElement"),CS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,s){return o.toUpperCase()+s}),Em=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ES=vn("RegExp"),Sy=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};ol(r,(s,a)=>{let u;(u=t(s,a,e))!==!1&&(o[a]=u||s)}),Object.defineProperties(e,o)},jS=e=>{Sy(e,(t,r)=>{if(Qt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(Qt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},RS=(e,t)=>{const r={},o=s=>{s.forEach(a=>{r[a]=!0})};return Ui(e)?o(e):o(String(e).split(t)),r},NS=()=>{},TS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function IS(e){return!!(e&&Qt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const PS=e=>{const t=new Array(10),r=(o,s)=>{if(fa(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const a=Ui(o)?[]:{};return ol(o,(u,d)=>{const f=r(u,s+1);!el(f)&&(a[d]=f)}),t[s]=void 0,a}}return o};return r(e,0)},AS=vn("AsyncFunction"),LS=e=>e&&(fa(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),by=((e,t)=>e?setImmediate:t?((r,o)=>(zr.addEventListener("message",({source:s,data:a})=>{s===zr&&a===r&&o.length&&o.shift()()},!1),s=>{o.push(s),zr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Qt(zr.postMessage)),_S=typeof queueMicrotask<"u"?queueMicrotask.bind(zr):typeof process<"u"&&process.nextTick||by,V={isArray:Ui,isArrayBuffer:xy,isBuffer:Xk,isFormData:sS,isArrayBufferView:Zk,isString:eS,isNumber:vy,isBoolean:tS,isObject:fa,isPlainObject:Ms,isReadableStream:uS,isRequest:cS,isResponse:dS,isHeaders:fS,isUndefined:el,isDate:nS,isFile:rS,isBlob:iS,isRegExp:ES,isFunction:Qt,isStream:lS,isURLSearchParams:aS,isTypedArray:wS,isFileList:oS,forEach:ol,merge:Yc,extend:hS,trim:pS,stripBOM:mS,inherits:gS,toFlatObject:yS,kindOf:ca,kindOfTest:vn,endsWith:xS,toArray:vS,forEachEntry:kS,matchAll:SS,isHTMLForm:bS,hasOwnProperty:Em,hasOwnProp:Em,reduceDescriptors:Sy,freezeMethods:jS,toObjectSet:RS,toCamelCase:CS,noop:NS,toFiniteNumber:TS,findKey:wy,global:zr,isContextDefined:ky,isSpecCompliantForm:IS,toJSONObject:PS,isAsyncFn:AS,isThenable:LS,setImmediate:by,asap:_S};function Re(e,t,r,o,s){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),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status?s.status:null)}V.inherits(Re,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:V.toJSONObject(this.config),code:this.code,status:this.status}}});const Cy=Re.prototype,Ey={};["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=>{Ey[e]={value:e}});Object.defineProperties(Re,Ey);Object.defineProperty(Cy,"isAxiosError",{value:!0});Re.from=(e,t,r,o,s,a)=>{const u=Object.create(Cy);return V.toFlatObject(e,u,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),Re.call(u,e.message,t,r,o,s),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const $S=null;function Xc(e){return V.isPlainObject(e)||V.isArray(e)}function jy(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function jm(e,t,r){return e?e.concat(t).map(function(s,a){return s=jy(s),!r&&a?"["+s+"]":s}).join(r?".":""):t}function DS(e){return V.isArray(e)&&!e.some(Xc)}const zS=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function pa(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,R){return!V.isUndefined(R[b])});const o=r.metaTokens,s=r.visitor||m,a=r.dots,u=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(s))throw new TypeError("visitor must be a function");function p(S){if(S===null)return"";if(V.isDate(S))return S.toISOString();if(!f&&V.isBlob(S))throw new Re("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(S)||V.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function m(S,b,R){let C=S;if(S&&!R&&typeof S=="object"){if(V.endsWith(b,"{}"))b=o?b:b.slice(0,-2),S=JSON.stringify(S);else if(V.isArray(S)&&DS(S)||(V.isFileList(S)||V.endsWith(b,"[]"))&&(C=V.toArray(S)))return b=jy(b),C.forEach(function(_,B){!(V.isUndefined(_)||_===null)&&t.append(u===!0?jm([b],B,a):u===null?b:b+"[]",p(_))}),!1}return Xc(S)?!0:(t.append(jm(R,b,a),p(S)),!1)}const g=[],v=Object.assign(zS,{defaultVisitor:m,convertValue:p,isVisitable:Xc});function w(S,b){if(!V.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(S),V.forEach(S,function(C,I){(!(V.isUndefined(C)||C===null)&&s.call(t,C,V.isString(I)?I.trim():I,b,v))===!0&&w(C,b?b.concat(I):[I])}),g.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Rm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function _d(e,t){this._pairs=[],e&&pa(e,this,t)}const Ry=_d.prototype;Ry.append=function(t,r){this._pairs.push([t,r])};Ry.toString=function(t){const r=t?function(o){return t.call(this,o,Rm)}:Rm;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function OS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ny(e,t,r){if(!t)return e;const o=r&&r.encode||OS;V.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let a;if(s?a=s(t,r):a=V.isURLSearchParams(t)?t.toString():new _d(t,r).toString(o),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Nm{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Ty={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},MS=typeof URLSearchParams<"u"?URLSearchParams:_d,FS=typeof FormData<"u"?FormData:null,BS=typeof Blob<"u"?Blob:null,US={isBrowser:!0,classes:{URLSearchParams:MS,FormData:FS,Blob:BS},protocols:["http","https","file","blob","url","data"]},$d=typeof window<"u"&&typeof document<"u",Zc=typeof navigator=="object"&&navigator||void 0,VS=$d&&(!Zc||["ReactNative","NativeScript","NS"].indexOf(Zc.product)<0),HS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qS=$d&&window.location.href||"http://localhost",WS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$d,hasStandardBrowserEnv:VS,hasStandardBrowserWebWorkerEnv:HS,navigator:Zc,origin:qS},Symbol.toStringTag,{value:"Module"})),St={...WS,...US};function GS(e,t){return pa(e,new St.classes.URLSearchParams,Object.assign({visitor:function(r,o,s,a){return St.isNode&&V.isBuffer(r)?(this.append(o,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function JS(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function KS(e){const t={},r=Object.keys(e);let o;const s=r.length;let a;for(o=0;o<s;o++)a=r[o],t[a]=e[a];return t}function Iy(e){function t(r,o,s,a){let u=r[a++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),f=a>=r.length;return u=!u&&V.isArray(s)?s.length:u,f?(V.hasOwnProp(s,u)?s[u]=[s[u],o]:s[u]=o,!d):((!s[u]||!V.isObject(s[u]))&&(s[u]=[]),t(r,o,s[u],a)&&V.isArray(s[u])&&(s[u]=KS(s[u])),!d)}if(V.isFormData(e)&&V.isFunction(e.entries)){const r={};return V.forEachEntry(e,(o,s)=>{t(JS(o),s,r,0)}),r}return null}function QS(e,t,r){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const ll={transitional:Ty,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",s=o.indexOf("application/json")>-1,a=V.isObject(t);if(a&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return s?JSON.stringify(Iy(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return GS(t,this.formSerializer).toString();if((d=V.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return pa(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||s?(r.setContentType("application/json",!1),QS(t)):t}],transformResponse:[function(t){const r=this.transitional||ll.transitional,o=r&&r.forcedJSONParsing,s=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(o&&!this.responseType||s)){const u=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(d){if(u)throw d.name==="SyntaxError"?Re.from(d,Re.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:St.classes.FormData,Blob:St.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{ll.headers[e]={}});const YS=V.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"]),XS=e=>{const t={};let r,o,s;return e&&e.split(`
|
|
87
|
-
`).forEach(function(u){s=u.indexOf(":"),r=u.substring(0,s).trim().toLowerCase(),o=u.substring(s+1).trim(),!(!r||t[r]&&YS[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},Tm=Symbol("internals");function Bo(e){return e&&String(e).trim().toLowerCase()}function Fs(e){return e===!1||e==null?e:V.isArray(e)?e.map(Fs):String(e)}function ZS(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const eb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gc(e,t,r,o,s){if(V.isFunction(o))return o.call(this,t,r);if(s&&(t=r),!!V.isString(t)){if(V.isString(o))return t.indexOf(o)!==-1;if(V.isRegExp(o))return o.test(t)}}function tb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function nb(e,t){const r=V.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(s,a,u){return this[o].call(this,t,s,a,u)},configurable:!0})})}let zt=class{constructor(t){t&&this.set(t)}set(t,r,o){const s=this;function a(d,f,p){const m=Bo(f);if(!m)throw new Error("header name must be a non-empty string");const g=V.findKey(s,m);(!g||s[g]===void 0||p===!0||p===void 0&&s[g]!==!1)&&(s[g||f]=Fs(d))}const u=(d,f)=>V.forEach(d,(p,m)=>a(p,m,f));if(V.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(V.isString(t)&&(t=t.trim())&&!eb(t))u(XS(t),r);else if(V.isHeaders(t))for(const[d,f]of t.entries())a(f,d,o);else t!=null&&a(r,t,o);return this}get(t,r){if(t=Bo(t),t){const o=V.findKey(this,t);if(o){const s=this[o];if(!r)return s;if(r===!0)return ZS(s);if(V.isFunction(r))return r.call(this,s,o);if(V.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Bo(t),t){const o=V.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||gc(this,this[o],o,r)))}return!1}delete(t,r){const o=this;let s=!1;function a(u){if(u=Bo(u),u){const d=V.findKey(o,u);d&&(!r||gc(o,o[d],d,r))&&(delete o[d],s=!0)}}return V.isArray(t)?t.forEach(a):a(t),s}clear(t){const r=Object.keys(this);let o=r.length,s=!1;for(;o--;){const a=r[o];(!t||gc(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const r=this,o={};return V.forEach(this,(s,a)=>{const u=V.findKey(o,a);if(u){r[u]=Fs(s),delete r[a];return}const d=t?tb(a):String(a).trim();d!==a&&delete r[a],r[d]=Fs(s),o[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return V.forEach(this,(o,s)=>{o!=null&&o!==!1&&(r[s]=t&&V.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
88
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[Tm]=this[Tm]={accessors:{}}).accessors,s=this.prototype;function a(u){const d=Bo(u);o[d]||(nb(s,u),o[d]=!0)}return V.isArray(t)?t.forEach(a):a(t),this}};zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(zt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});V.freezeMethods(zt);function yc(e,t){const r=this||ll,o=t||r,s=zt.from(o.headers);let a=o.data;return V.forEach(e,function(d){a=d.call(r,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function Py(e){return!!(e&&e.__CANCEL__)}function Vi(e,t,r){Re.call(this,e??"canceled",Re.ERR_CANCELED,t,r),this.name="CanceledError"}V.inherits(Vi,Re,{__CANCEL__:!0});function Ay(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new Re("Request failed with status code "+r.status,[Re.ERR_BAD_REQUEST,Re.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function rb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ib(e,t){e=e||10;const r=new Array(e),o=new Array(e);let s=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),m=o[a];u||(u=p),r[s]=f,o[s]=p;let g=a,v=0;for(;g!==s;)v+=r[g++],g=g%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),p-u<t)return;const w=m&&p-m;return w?Math.round(v*1e3/w):void 0}}function ob(e,t){let r=0,o=1e3/t,s,a;const u=(p,m=Date.now())=>{r=m,s=null,a&&(clearTimeout(a),a=null),e.apply(null,p)};return[(...p)=>{const m=Date.now(),g=m-r;g>=o?u(p,m):(s=p,a||(a=setTimeout(()=>{a=null,u(s)},o-g)))},()=>s&&u(s)]}const Qs=(e,t,r=3)=>{let o=0;const s=ib(50,250);return ob(a=>{const u=a.loaded,d=a.lengthComputable?a.total:void 0,f=u-o,p=s(f),m=u<=d;o=u;const g={loaded:u,total:d,progress:d?u/d:void 0,bytes:f,rate:p||void 0,estimated:p&&d&&m?(d-u)/p:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},r)},Im=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},Pm=e=>(...t)=>V.asap(()=>e(...t)),lb=St.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,St.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(St.origin),St.navigator&&/(msie|trident)/i.test(St.navigator.userAgent)):()=>!0,sb=St.hasStandardBrowserEnv?{write(e,t,r,o,s,a){const u=[e+"="+encodeURIComponent(t)];V.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),V.isString(o)&&u.push("path="+o),V.isString(s)&&u.push("domain="+s),a===!0&&u.push("secure"),document.cookie=u.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 ab(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ub(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ly(e,t,r){let o=!ab(t);return e&&o||r==!1?ub(e,t):t}const Am=e=>e instanceof zt?{...e}:e;function Br(e,t){t=t||{};const r={};function o(p,m,g,v){return V.isPlainObject(p)&&V.isPlainObject(m)?V.merge.call({caseless:v},p,m):V.isPlainObject(m)?V.merge({},m):V.isArray(m)?m.slice():m}function s(p,m,g,v){if(V.isUndefined(m)){if(!V.isUndefined(p))return o(void 0,p,g,v)}else return o(p,m,g,v)}function a(p,m){if(!V.isUndefined(m))return o(void 0,m)}function u(p,m){if(V.isUndefined(m)){if(!V.isUndefined(p))return o(void 0,p)}else return o(void 0,m)}function d(p,m,g){if(g in t)return o(p,m);if(g in e)return o(void 0,p)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(p,m,g)=>s(Am(p),Am(m),g,!0)};return V.forEach(Object.keys(Object.assign({},e,t)),function(m){const g=f[m]||s,v=g(e[m],t[m],m);V.isUndefined(v)&&g!==d||(r[m]=v)}),r}const _y=e=>{const t=Br({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:a,headers:u,auth:d}=t;t.headers=u=zt.from(u),t.url=Ny(Ly(t.baseURL,t.url),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(V.isFormData(r)){if(St.hasStandardBrowserEnv||St.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[p,...m]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...m].join("; "))}}if(St.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||o!==!1&&lb(t.url))){const p=s&&a&&sb.read(a);p&&u.set(s,p)}return t},cb=typeof XMLHttpRequest<"u",db=cb&&function(e){return new Promise(function(r,o){const s=_y(e);let a=s.data;const u=zt.from(s.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:p}=s,m,g,v,w,S;function b(){w&&w(),S&&S(),s.cancelToken&&s.cancelToken.unsubscribe(m),s.signal&&s.signal.removeEventListener("abort",m)}let R=new XMLHttpRequest;R.open(s.method.toUpperCase(),s.url,!0),R.timeout=s.timeout;function C(){if(!R)return;const _=zt.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),q={data:!d||d==="text"||d==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:_,config:e,request:R};Ay(function(W){r(W),b()},function(W){o(W),b()},q),R=null}"onloadend"in R?R.onloadend=C:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(C)},R.onabort=function(){R&&(o(new Re("Request aborted",Re.ECONNABORTED,e,R)),R=null)},R.onerror=function(){o(new Re("Network Error",Re.ERR_NETWORK,e,R)),R=null},R.ontimeout=function(){let B=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const q=s.transitional||Ty;s.timeoutErrorMessage&&(B=s.timeoutErrorMessage),o(new Re(B,q.clarifyTimeoutError?Re.ETIMEDOUT:Re.ECONNABORTED,e,R)),R=null},a===void 0&&u.setContentType(null),"setRequestHeader"in R&&V.forEach(u.toJSON(),function(B,q){R.setRequestHeader(q,B)}),V.isUndefined(s.withCredentials)||(R.withCredentials=!!s.withCredentials),d&&d!=="json"&&(R.responseType=s.responseType),p&&([v,S]=Qs(p,!0),R.addEventListener("progress",v)),f&&R.upload&&([g,w]=Qs(f),R.upload.addEventListener("progress",g),R.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(m=_=>{R&&(o(!_||_.type?new Vi(null,e,R):_),R.abort(),R=null)},s.cancelToken&&s.cancelToken.subscribe(m),s.signal&&(s.signal.aborted?m():s.signal.addEventListener("abort",m)));const I=rb(s.url);if(I&&St.protocols.indexOf(I)===-1){o(new Re("Unsupported protocol "+I+":",Re.ERR_BAD_REQUEST,e));return}R.send(a||null)})},fb=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,s;const a=function(p){if(!s){s=!0,d();const m=p instanceof Error?p:this.reason;o.abort(m instanceof Re?m:new Vi(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,a(new Re(`timeout ${t} of ms exceeded`,Re.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:f}=o;return f.unsubscribe=()=>V.asap(d),f}},pb=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let o=0,s;for(;o<r;)s=o+t,yield e.slice(o,s),o=s},hb=async function*(e,t){for await(const r of mb(e))yield*pb(r,t)},mb=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},Lm=(e,t,r,o)=>{const s=hb(e,t);let a=0,u,d=f=>{u||(u=!0,o&&o(f))};return new ReadableStream({async pull(f){try{const{done:p,value:m}=await s.next();if(p){d(),f.close();return}let g=m.byteLength;if(r){let v=a+=g;r(v)}f.enqueue(new Uint8Array(m))}catch(p){throw d(p),p}},cancel(f){return d(f),s.return()}},{highWaterMark:2})},ha=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$y=ha&&typeof ReadableStream=="function",gb=ha&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Dy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yb=$y&&Dy(()=>{let e=!1;const t=new Request(St.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),_m=64*1024,ed=$y&&Dy(()=>V.isReadableStream(new Response("").body)),Ys={stream:ed&&(e=>e.body)};ha&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ys[t]&&(Ys[t]=V.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new Re(`Response type '${t}' is not supported`,Re.ERR_NOT_SUPPORT,o)})})})(new Response);const xb=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new Request(St.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e=e+""),V.isString(e))return(await gb(e)).byteLength},vb=async(e,t)=>{const r=V.toFiniteNumber(e.getContentLength());return r??xb(t)},wb=ha&&(async e=>{let{url:t,method:r,data:o,signal:s,cancelToken:a,timeout:u,onDownloadProgress:d,onUploadProgress:f,responseType:p,headers:m,withCredentials:g="same-origin",fetchOptions:v}=_y(e);p=p?(p+"").toLowerCase():"text";let w=fb([s,a&&a.toAbortSignal()],u),S;const b=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let R;try{if(f&&yb&&r!=="get"&&r!=="head"&&(R=await vb(m,o))!==0){let q=new Request(t,{method:"POST",body:o,duplex:"half"}),A;if(V.isFormData(o)&&(A=q.headers.get("content-type"))&&m.setContentType(A),q.body){const[W,K]=Im(R,Qs(Pm(f)));o=Lm(q.body,_m,W,K)}}V.isString(g)||(g=g?"include":"omit");const C="credentials"in Request.prototype;S=new Request(t,{...v,signal:w,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:o,duplex:"half",credentials:C?g:void 0});let I=await fetch(S);const _=ed&&(p==="stream"||p==="response");if(ed&&(d||_&&b)){const q={};["status","statusText","headers"].forEach(le=>{q[le]=I[le]});const A=V.toFiniteNumber(I.headers.get("content-length")),[W,K]=d&&Im(A,Qs(Pm(d),!0))||[];I=new Response(Lm(I.body,_m,W,()=>{K&&K(),b&&b()}),q)}p=p||"text";let B=await Ys[V.findKey(Ys,p)||"text"](I,e);return!_&&b&&b(),await new Promise((q,A)=>{Ay(q,A,{data:B,headers:zt.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:S})})}catch(C){throw b&&b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Re("Network Error",Re.ERR_NETWORK,e,S),{cause:C.cause||C}):Re.from(C,C&&C.code,e,S)}}),td={http:$S,xhr:db,fetch:wb};V.forEach(td,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $m=e=>`- ${e}`,kb=e=>V.isFunction(e)||e===null||e===!1,zy={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let r,o;const s={};for(let a=0;a<t;a++){r=e[a];let u;if(o=r,!kb(r)&&(o=td[(u=String(r)).toLowerCase()],o===void 0))throw new Re(`Unknown adapter '${u}'`);if(o)break;s[u||"#"+a]=o}if(!o){const a=Object.entries(s).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?a.length>1?`since :
|
|
89
|
-
`+a.map($m).join(`
|
|
90
|
-
`):" "+$m(a[0]):"as no adapter specified";throw new Re("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o},adapters:td};function xc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vi(null,e)}function Dm(e){return xc(e),e.headers=zt.from(e.headers),e.data=yc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zy.getAdapter(e.adapter||ll.adapter)(e).then(function(o){return xc(e),o.data=yc.call(e,e.transformResponse,o),o.headers=zt.from(o.headers),o},function(o){return Py(o)||(xc(e),o&&o.response&&(o.response.data=yc.call(e,e.transformResponse,o.response),o.response.headers=zt.from(o.response.headers))),Promise.reject(o)})}const Oy="1.8.2",ma={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ma[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const zm={};ma.transitional=function(t,r,o){function s(a,u){return"[Axios v"+Oy+"] Transitional option '"+a+"'"+u+(o?". "+o:"")}return(a,u,d)=>{if(t===!1)throw new Re(s(u," has been removed"+(r?" in "+r:"")),Re.ERR_DEPRECATED);return r&&!zm[u]&&(zm[u]=!0,console.warn(s(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,u,d):!0}};ma.spelling=function(t){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function Sb(e,t,r){if(typeof e!="object")throw new Re("options must be an object",Re.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const a=o[s],u=t[a];if(u){const d=e[a],f=d===void 0||u(d,a,e);if(f!==!0)throw new Re("option "+a+" must be "+f,Re.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Re("Unknown option "+a,Re.ERR_BAD_OPTION)}}const Bs={assertOptions:Sb,validators:ma},Rn=Bs.validators;let Mr=class{constructor(t){this.defaults=t,this.interceptors={request:new Nm,response:new Nm}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{o.stack?a&&!String(o.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
91
|
-
`+a):o.stack=a}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Br(this.defaults,r);const{transitional:o,paramsSerializer:s,headers:a}=r;o!==void 0&&Bs.assertOptions(o,{silentJSONParsing:Rn.transitional(Rn.boolean),forcedJSONParsing:Rn.transitional(Rn.boolean),clarifyTimeoutError:Rn.transitional(Rn.boolean)},!1),s!=null&&(V.isFunction(s)?r.paramsSerializer={serialize:s}:Bs.assertOptions(s,{encode:Rn.function,serialize:Rn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Bs.assertOptions(r,{baseUrl:Rn.spelling("baseURL"),withXsrfToken:Rn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=a&&V.merge(a.common,a[r.method]);a&&V.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),r.headers=zt.concat(u,a);const d=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(f=f&&b.synchronous,d.unshift(b.fulfilled,b.rejected))});const p=[];this.interceptors.response.forEach(function(b){p.push(b.fulfilled,b.rejected)});let m,g=0,v;if(!f){const S=[Dm.bind(this),void 0];for(S.unshift.apply(S,d),S.push.apply(S,p),v=S.length,m=Promise.resolve(r);g<v;)m=m.then(S[g++],S[g++]);return m}v=d.length;let w=r;for(g=0;g<v;){const S=d[g++],b=d[g++];try{w=S(w)}catch(R){b.call(this,R);break}}try{m=Dm.call(this,w)}catch(S){return Promise.reject(S)}for(g=0,v=p.length;g<v;)m=m.then(p[g++],p[g++]);return m}getUri(t){t=Br(this.defaults,t);const r=Ly(t.baseURL,t.url,t.allowAbsoluteUrls);return Ny(r,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){Mr.prototype[t]=function(r,o){return this.request(Br(o||{},{method:t,url:r,data:(o||{}).data}))}});V.forEach(["post","put","patch"],function(t){function r(o){return function(a,u,d){return this.request(Br(d||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Mr.prototype[t]=r(),Mr.prototype[t+"Form"]=r(!0)});let bb=class My{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const o=this;this.promise.then(s=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](s);o._listeners=null}),this.promise.then=s=>{let a;const u=new Promise(d=>{o.subscribe(d),a=d}).then(s);return u.cancel=function(){o.unsubscribe(a)},u},t(function(a,u,d){o.reason||(o.reason=new Vi(a,u,d),r(o.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new My(function(s){t=s}),cancel:t}}};function Cb(e){return function(r){return e.apply(null,r)}}function Eb(e){return V.isObject(e)&&e.isAxiosError===!0}const nd={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(nd).forEach(([e,t])=>{nd[t]=e});function Fy(e){const t=new Mr(e),r=yy(Mr.prototype.request,t);return V.extend(r,Mr.prototype,t,{allOwnKeys:!0}),V.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Fy(Br(e,s))},r}const Qe=Fy(ll);Qe.Axios=Mr;Qe.CanceledError=Vi;Qe.CancelToken=bb;Qe.isCancel=Py;Qe.VERSION=Oy;Qe.toFormData=pa;Qe.AxiosError=Re;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=Cb;Qe.isAxiosError=Eb;Qe.mergeConfig=Br;Qe.AxiosHeaders=zt;Qe.formToJSON=e=>Iy(V.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=zy.getAdapter;Qe.HttpStatusCode=nd;Qe.default=Qe;const{Axios:pL,AxiosError:hL,CanceledError:mL,isCancel:gL,CancelToken:yL,VERSION:xL,all:vL,Cancel:wL,isAxiosError:kL,spread:SL,toFormData:bL,AxiosHeaders:CL,HttpStatusCode:EL,formToJSON:jL,getAdapter:RL,mergeConfig:NL}=Qe,jb="/api",nt=Qe.create({baseURL:jb,headers:{"Content-Type":"application/json"}}),Rb=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}};nt.interceptors.request.use(e=>{var r;const t=(r=document.querySelector("body[data-security-token]"))==null?void 0:r.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));nt.interceptors.response.use(e=>e,async e=>{var r;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const o=await Rb();if(o)return t.headers.Authorization=`Bearer ${o}`,(r=document.querySelector("body[data-security-token]"))==null||r.setAttribute("data-security-token",o),nt(t)}return Promise.reject(e)});const Nb=async(e,t)=>{try{if(!e||!t.trim())throw new Error("Invalid message ID or content");if((await nt.post("/edit-message",{messageId:e,newContent:t})).status!==200)throw new Error("Failed to edit message")}catch(r){throw Qe.isAxiosError(r)?r.response?new Error(r.response.data.error||"Failed to edit message"):r.request?new Error("No response received from server"):new Error(`Error setting up request: ${r.message}`):r instanceof Error?r:new Error("An unexpected error occurred while editing the message")}},Om=async()=>(await nt.get("/content")).data.content,Tb=async(e,t,r)=>{const o=new FormData;o.append("prompt",e),o.append("options",JSON.stringify(t)),r&&r.length>0&&r.forEach(s=>{o.append("images",s)});try{await nt.post("/execute-codegen",o,{headers:{"Content-Type":"multipart/form-data"}})}catch(s){throw Qe.isAxiosError(s)?s.response?new Error(`Server error: ${s.response.data.message||"Unknown error"}`):s.request?new Error("No response received from server"):new Error(`Error setting up request: ${s.message}`):new Error("An unexpected error occurred")}},By=async(e,t,r,o)=>{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","lite"].includes(r))throw new Error("Model type must be one of: default, cheap, reasoning");return(await nt.post("/generate-content",{prompt:e,temperature:t,modelType:r,options:o})).data.result}catch(s){if(Qe.isAxiosError(s))if(s.response){const a=s.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${a}`)}else throw s.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${s.message}`);throw s instanceof Error?s:new Error("An unexpected error occurred during content generation")}},rd=async()=>(await nt.get("/execution-status")).data.status,Ib=async()=>{await nt.post("/interrupt-execution")},Pb=async()=>{await nt.post("/pause-execution")},Ab=async()=>{await nt.post("/resume-execution")},id=async()=>(await nt.get("/current-question")).data.question,Lb=async(e,t,r,o,s)=>{const a=new FormData;a.append("questionId",e),a.append("answer",t),r!==void 0&&a.append("confirmed",String(r)),o&&a.append("options",JSON.stringify(o)),s&&s.length>0&&s.forEach(u=>{a.append("images",u)}),await nt.post("/answer-question",a,{headers:{"Content-Type":"multipart/form-data"}})},Mm=async()=>(await nt.get("/usage")).data,_b=async()=>(await nt.get("/default-codegen-options")).data.options,$b=async()=>(await nt.get("/rcconfig")).data.rcConfig,Db=async e=>{await nt.delete(`/delete-iteration/${e}`)},Dd=async()=>(await nt.get("/available-ai-services")).data.services,Uy=async()=>{try{return(await nt.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},zb=async e=>{await nt.post("/service-configuration",e)};nt.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 sl(e,t){const r=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(r)}function al(e,t){L.useEffect(()=>{const r=o=>{t(o.detail)};return document.addEventListener(e,r,!1),()=>{document.removeEventListener(e,r,!1)}},[e,t])}function Ob(e,t){if(!(t!=null&&t.modelOverrides))return e;const r=[];return t.modelOverrides.default&&r.push(t.modelOverrides.default),t.modelOverrides.cheap&&r.push(t.modelOverrides.cheap),r.length>0?`${e} (${r.join("/")})`:e}function Vy(){const[e,t]=L.useState([]),[r,o]=L.useState(null);return L.useEffect(()=>{(async()=>{try{const a=await Dd();t(a)}catch(a){console.error("Error fetching AI services:",a),o("Failed to fetch available AI services.")}})()},[]),[e,r]}function Hy(){const[e,t]=L.useState({services:[],isLoading:!0,error:null});return L.useEffect(()=>{(async()=>{try{const[o,s]=await Promise.all([Dd(),Uy()]),a=o.map(u=>({service:u,config:s[u],displayName:Ob(u,s[u])}));t({services:a,isLoading:!1,error:null})}catch(o){console.error("Error fetching services with configurations:",o),t(s=>({...s,isLoading:!1,error:"Failed to fetch service configurations."}))}})()},[]),e}const gr=T.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 qy(){sl("openContentGenerationModel")}function Mb(){return x.jsx(gr,{onClick:qy,"aria-label":"Content generation modal",children:"✨"})}const Fb=({currentService:e})=>{const[t,r]=L.useState(""),[o,s]=L.useState(e),[a,u]=L.useState(.7),[d,f]=L.useState("default"),[p,m]=L.useState(),[g,v]=L.useState(!1),[w,S]=L.useState(null),[b,R]=L.useState(null),[C,I]=L.useState(!1),_=()=>I(!1),[B]=Vy(),{services:q,isLoading:A}=Hy();if(al("openContentGenerationModel",()=>I(!0)),L.useEffect(()=>{var le;const K=(le=q.find(z=>z.service===o))==null?void 0:le.config;K!=null&&K.modelOverrides?m(K.modelOverrides[d]):m(void 0)},[o,d,q]),!C)return null;const W=async K=>{K.preventDefault(),v(!0),S(null),R(null);try{const le=await By(t,a,d,{aiService:o,askQuestion:!1});R(le)}catch(le){S(le instanceof Error?le.message:"An unexpected error occurred")}finally{v(!1)}};return x.jsx(Bb,{onClick:K=>K.target===K.currentTarget&&_(),children:x.jsxs(Ub,{children:[x.jsx(Vb,{onClick:_,children:"×"}),x.jsx("h2",{children:"Generate Content"}),x.jsxs(Hb,{onSubmit:W,children:[x.jsxs(Ns,{children:["Prompt",x.jsx(qb,{value:t,onChange:K=>r(K.target.value),placeholder:"Enter your prompt here...",required:!0})]}),x.jsxs(Ns,{children:["AI Service",x.jsx(Fm,{value:o,onChange:K=>s(K.target.value),disabled:A,children:B.map(K=>x.jsx("option",{value:K,children:K},K))})]}),x.jsxs(Ns,{children:["Temperature (",a,")",x.jsxs(Wb,{children:[x.jsx(Gb,{type:"range",min:"0",max:"2",step:"0.1",value:a,onChange:K=>u(Number(K.target.value))}),x.jsx(Jb,{children:a})]})]}),x.jsxs(Ns,{children:["Model Type ",p?`(${p})`:"",x.jsxs(Fm,{value:d,onChange:K=>f(K.target.value),children:[x.jsx("option",{value:"default",children:"Default"}),x.jsx("option",{value:"cheap",children:"Cheap"}),x.jsx("option",{value:"lite",children:"Lite"}),x.jsx("option",{value:"reasoning",children:"Reasoning"})]})]}),x.jsx(Kb,{type:"submit",disabled:g||!t,children:g?"Generating...":"Generate"})]}),w&&x.jsx(Yb,{children:w}),b&&x.jsx(Qb,{children:b.map((K,le)=>x.jsxs("div",{children:[x.jsx("strong",{children:K.name}),x.jsx("pre",{children:JSON.stringify(K,null,2)})]},le))})]})})},Bb=T.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
|
-
`,Ub=T.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
|
-
`,Vb=T.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
|
-
`,Hb=T.form`
|
|
147
|
-
display: flex;
|
|
148
|
-
flex-direction: column;
|
|
149
|
-
gap: 1rem;
|
|
150
|
-
`,Ns=T.label`
|
|
151
|
-
display: flex;
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
gap: 0.5rem;
|
|
154
|
-
color: ${({theme:e})=>e.colors.text};
|
|
155
|
-
`,qb=T.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
|
-
`,Fm=T.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
|
-
`,Wb=T.div`
|
|
170
|
-
display: flex;
|
|
171
|
-
align-items: center;
|
|
172
|
-
gap: 1rem;
|
|
173
|
-
`,Gb=T.input`
|
|
174
|
-
flex: 1;
|
|
175
|
-
`,Jb=T.span`
|
|
176
|
-
min-width: 3rem;
|
|
177
|
-
text-align: right;
|
|
178
|
-
`,Kb=T.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
|
-
`,Qb=T.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
|
-
`,Yb=T.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 Wy(){sl("openHealthCheckModal")}function Xb(){return x.jsx(gr,{onClick:Wy,"aria-label":"Health check modal",children:"🏥"})}async function Zb(){const e=(await Dd()).map(t=>[t,{status:void 0,lastChecked:new Date().toISOString()}]);return{services:Object.fromEntries(e),timestamp:new Date().toISOString()}}async function eC(e){var t,r;try{const[o]=await By("say: hello",.7,!0,{aiService:e,askQuestion:!1});return(r=(t=o==null?void 0:o.args)==null?void 0:t.message)!=null&&r.toLowerCase().includes("hello")?"success":void 0}catch{return"error"}}const tC=()=>{const[e,t]=L.useState(!1),[r,o]=L.useState(!1),[s,a]=L.useState(null),[u,d]=L.useState(null),[f,p]=L.useState(null);al("openHealthCheckModal",()=>t(!0));const m=()=>t(!1),g=async()=>{o(!0),a(null);try{const S=await Zb();d(S),p(new Date);for(const[b,R]of Object.entries(S.services)){const C=Date.now(),I=await eC(b);R.status=I,R.responseTime=Date.now()-C,R.lastChecked=new Date().toISOString(),d(S),p(new Date)}}catch(S){a(S instanceof Error?S.message:"An unexpected error occurred")}finally{o(!1)}};if(L.useEffect(()=>{e&&g()},[e]),!e)return null;const v=S=>{switch(S){case"success":return"✅";case"error":return"❌";case"not_configured":return"⚠️";default:return"❓"}},w=S=>{switch(S){case"success":return"success";case"error":return"error";case"not_configured":return"warning";default:return"default"}};return x.jsx(nC,{onClick:S=>S.target===S.currentTarget&&m(),children:x.jsxs(rC,{children:[x.jsx(oC,{onClick:m,children:"×"}),x.jsxs(iC,{children:[x.jsx("h2",{children:"AI Services Health Check"}),x.jsx(lC,{onClick:g,disabled:r,children:r?"Checking...":"🔄 Refresh"})]}),s&&x.jsx(gC,{children:s}),x.jsx(sC,{children:u&&Object.entries(u.services).map(([S,b])=>x.jsxs(aC,{children:[x.jsxs(uC,{children:[x.jsx(cC,{children:S}),x.jsx(dC,{children:v(b.status)})]}),x.jsxs(fC,{color:w(b.status),children:[x.jsxs("div",{children:["Status: ",b.status]}),b.responseTime&&x.jsxs("div",{children:["Response time: ",b.responseTime,"ms"]}),b.error&&x.jsx(pC,{children:b.error}),x.jsxs(hC,{children:["Last checked: ",new Date(b.lastChecked).toLocaleTimeString()]})]})]},S))}),f&&x.jsxs(mC,{children:["Last updated: ",f.toLocaleTimeString()]}),r&&x.jsx(yC,{children:"Checking AI Services..."})]})})},nC=T.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
|
-
`,rC=T.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
|
-
`,iC=T.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
|
-
`,oC=T.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
|
-
`,lC=T.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
|
-
`,sC=T.div`
|
|
266
|
-
display: grid;
|
|
267
|
-
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
268
|
-
gap: 1rem;
|
|
269
|
-
margin-bottom: 1rem;
|
|
270
|
-
`,aC=T.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
|
-
`,uC=T.div`
|
|
276
|
-
display: flex;
|
|
277
|
-
justify-content: space-between;
|
|
278
|
-
align-items: center;
|
|
279
|
-
margin-bottom: 0.5rem;
|
|
280
|
-
`,cC=T.h3`
|
|
281
|
-
margin: 0;
|
|
282
|
-
font-size: 1.1rem;
|
|
283
|
-
`,dC=T.span`
|
|
284
|
-
font-size: 1.2rem;
|
|
285
|
-
`,fC=T.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
|
-
`,pC=T.div`
|
|
289
|
-
color: ${({theme:e})=>e.colors.error};
|
|
290
|
-
margin-top: 0.5rem;
|
|
291
|
-
`,hC=T.div`
|
|
292
|
-
color: ${({theme:e})=>e.colors.textSecondary};
|
|
293
|
-
font-size: 0.8rem;
|
|
294
|
-
margin-top: 0.5rem;
|
|
295
|
-
`,mC=T.div`
|
|
296
|
-
text-align: right;
|
|
297
|
-
color: ${({theme:e})=>e.colors.textSecondary};
|
|
298
|
-
font-size: 0.8rem;
|
|
299
|
-
margin-top: 1rem;
|
|
300
|
-
`,gC=T.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
|
-
`,yC=T.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
|
-
`,Gy=T.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
|
-
`,Jy=T.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
|
-
`,Ky=T.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
|
-
`,Qy=T.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
|
-
`,xC=T.div`
|
|
362
|
-
display: grid;
|
|
363
|
-
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
364
|
-
gap: 1rem;
|
|
365
|
-
margin-bottom: 1rem;
|
|
366
|
-
`,vC=T.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
|
-
`,wC=T.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
|
-
`,kC=T.div`
|
|
392
|
-
display: flex;
|
|
393
|
-
align-items: center;
|
|
394
|
-
gap: 0.5rem;
|
|
395
|
-
`,SC=T.h3`
|
|
396
|
-
margin: 0;
|
|
397
|
-
font-size: 1.1rem;
|
|
398
|
-
`,bC=T.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
|
-
`,CC=T.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
|
-
`,EC=T.form`
|
|
411
|
-
display: flex;
|
|
412
|
-
flex-direction: column;
|
|
413
|
-
gap: 1rem;
|
|
414
|
-
`,Jt=T.div`
|
|
415
|
-
display: flex;
|
|
416
|
-
flex-direction: column;
|
|
417
|
-
gap: 0.5rem;
|
|
418
|
-
`,Kt=T.label`
|
|
419
|
-
font-size: 0.9rem;
|
|
420
|
-
color: ${({theme:e})=>e.colors.text};
|
|
421
|
-
`,_r=T.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
|
-
`,jC=T.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
|
-
`,RC=T.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
|
-
`,NC=T.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
|
-
`,TC=T.div`
|
|
463
|
-
color: ${({theme:e})=>e.colors.error};
|
|
464
|
-
`,IC=T.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
|
-
`,vi=e=>e==="vertex-ai"||e==="vertex-ai-claude",vc=e=>e==="vertex-ai-claude",PC=e=>e==="openai"||e==="local-llm",AC=({serviceType:e,config:t,onUpdate:r,isLoading:o,isExpanded:s,onCardClick:a})=>{var se,oe,X;const[u,d]=L.useState(""),[f,p]=L.useState(!!(t!=null&&t.hasApiKey)),[m,g]=L.useState(((se=t==null?void 0:t.modelOverrides)==null?void 0:se.default)||""),[v,w]=L.useState(((oe=t==null?void 0:t.modelOverrides)==null?void 0:oe.cheap)||""),[S,b]=L.useState(((X=t==null?void 0:t.modelOverrides)==null?void 0:X.lite)||""),[R,C]=L.useState((t==null?void 0:t.googleCloudProjectId)||""),[I,_]=L.useState((t==null?void 0:t.googleCloudRegion)||""),[B,q]=L.useState((t==null?void 0:t.openaiBaseUrl)||""),[A,W]=L.useState(null);L.useEffect(()=>{var U,de,ae;p(!!(t!=null&&t.hasApiKey)),g(((U=t==null?void 0:t.modelOverrides)==null?void 0:U.default)||""),w(((de=t==null?void 0:t.modelOverrides)==null?void 0:de.cheap)||""),b(((ae=t==null?void 0:t.modelOverrides)==null?void 0:ae.lite)||""),C((t==null?void 0:t.googleCloudProjectId)||""),_((t==null?void 0:t.googleCloudRegion)||""),q((t==null?void 0:t.openaiBaseUrl)||"")},[t]);const K=()=>{if(vi(e)){if(!R)return W("GCP Project ID is required for Vertex AI services"),!1;if(vc(e)&&!I)return W("GCP Region is required for Vertex AI Claude"),!1}else if(!f&&!u)return W("API Key is required"),!1;return W(null),!0},le=U=>{if(U.preventDefault(),!K())return;const de={modelOverrides:{default:m||void 0,cheap:v||void 0,lite:S||void 0}};vi(e)?(de.googleCloudProjectId=R,vc(e)&&(de.googleCloudRegion=I)):(de.apiKey=u||void 0,de.openaiBaseUrl=B||void 0),r(de)},z=L.useCallback(()=>{a&&a(e)},[a,e]),re=U=>{(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),z())};return x.jsxs(vC,{children:[x.jsxs(wC,{onClick:z,onKeyDown:re,role:"button",tabIndex:0,"aria-expanded":!!s,"aria-controls":`config-content-${e}`,children:[x.jsxs(kC,{children:[x.jsx(SC,{children:e}),!vi(e)&&f&&x.jsx("span",{title:"API Key is set",children:"🔑"}),vi(e)&&R&&x.jsx("span",{title:"GCP Project ID is set",children:"🌐"})]}),x.jsx(bC,{$isCollapsed:!s,children:"▼"})]}),x.jsx(CC,{$isCollapsed:!s,id:`config-content-${e}`,"aria-hidden":!s,children:x.jsxs(EC,{onSubmit:le,children:[!vi(e)&&x.jsxs(Jt,{children:[x.jsx(Kt,{htmlFor:`apiKey-${e}`,children:"API Key"}),x.jsx(_r,{id:`apiKey-${e}`,type:"password",value:u,onChange:U=>d(U.target.value),placeholder:f?"API key is set":"Enter API key","aria-label":`API Key for ${e}`})]}),PC(e)&&x.jsxs(Jt,{children:[x.jsx(Kt,{htmlFor:`baseUrl-${e}`,children:"Base URL"}),x.jsx(_r,{id:`baseUrl-${e}`,type:"text",value:B,onChange:U=>q(U.target.value),placeholder:"Enter base URL","aria-label":`Base URL for ${e}`})]}),vi(e)&&x.jsxs(Jt,{children:[x.jsx(Kt,{htmlFor:`projectId-${e}`,children:"GCP Project ID"}),x.jsx(_r,{id:`projectId-${e}`,type:"text",value:R,onChange:U=>C(U.target.value),placeholder:"Enter GCP Project ID","aria-label":`GCP Project ID for ${e}`,required:!0})]}),vc(e)&&x.jsxs(Jt,{children:[x.jsx(Kt,{htmlFor:`region-${e}`,children:"GCP Region"}),x.jsx(_r,{id:`region-${e}`,type:"text",value:I,onChange:U=>_(U.target.value),placeholder:"Enter GCP Region","aria-label":`GCP Region for ${e}`,required:!0})]}),x.jsxs(Jt,{children:[x.jsx(Kt,{htmlFor:`defaultModel-${e}`,children:"Default Model"}),x.jsx(_r,{id:`defaultModel-${e}`,type:"text",value:m,onChange:U=>g(U.target.value),placeholder:"Enter model name","aria-label":`Default Model for ${e}`})]}),x.jsxs(Jt,{children:[x.jsx(Kt,{htmlFor:`cheapModel-${e}`,children:"Cheap Model"}),x.jsx(_r,{id:`cheapModel-${e}`,type:"text",value:v,onChange:U=>w(U.target.value),placeholder:"Enter model name","aria-label":`Cheap Model for ${e}`})]}),x.jsxs(Jt,{children:[x.jsx(Kt,{htmlFor:`liteModel-${e}`,children:"Lite Model"}),x.jsx(_r,{id:`liteModel-${e}`,type:"text",value:S,onChange:U=>b(U.target.value),placeholder:"Enter model name","aria-label":`Lite Model for ${e}`})]}),A&&x.jsx(TC,{role:"alert","aria-live":"polite",children:A}),x.jsx(jC,{type:"submit",disabled:o,"aria-busy":o,children:o?"Updating...":"Update Configuration"})]})})]})};function Yy(){sl("openServiceConfigurationModal")}function LC(){return x.jsx(gr,{onClick:Yy,"aria-label":"Open service configuration",children:"⚙️"})}const Xy=e=>e==="vertex-ai"||e==="vertex-ai-claude",_C=e=>e==="openai"||e==="local-llm",$C=(e,t)=>{var o,s,a;const r=["Configuration updated successfully for "+e];return Xy(e)?(t.googleCloudProjectId&&r.push(`GCP Project ID: ${t.googleCloudProjectId}`),e==="vertex-ai-claude"&&t.googleCloudRegion&&r.push(`GCP Region: ${t.googleCloudRegion}`)):t.apiKey&&r.push("API key has been updated"),(o=t.modelOverrides)!=null&&o.default&&r.push(`Default model: ${t.modelOverrides.default}`),(s=t.modelOverrides)!=null&&s.cheap&&r.push(`Cheap model: ${t.modelOverrides.cheap}`),(a=t.modelOverrides)!=null&&a.lite&&r.push(`Lite model: ${t.modelOverrides.lite}`),_C(e)&&"openaiBaseUrl"in t&&r.push(`OpenAI base URL: ${t.openaiBaseUrl}`),r.join(`
|
|
478
|
-
`)},DC=(e,t)=>{if(Xy(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},zC=()=>{const[e,t]=L.useState(!1),[r,o]=L.useState(!1),[s,a]=L.useState(null),[u,d]=L.useState(null),[f,p]=L.useState(),[m]=Vy();al("openServiceConfigurationModal",()=>t(!0));const g=()=>{t(!1),a(null),d(null)};L.useEffect(()=>{e&&v()},[e]);const v=async()=>{o(!0),a(null);try{const C=await Uy();p(C)}catch(C){a(C instanceof Error?C.message:"Failed to fetch configurations")}finally{o(!1)}},w=async(C,I)=>{o(!0),a(null),d(null);const _=DC(C,I);if(_){a(_),o(!1);return}try{await zb({serviceType:C,config:I}),await v(),d($C(C,I))}catch(B){let q="Failed to update configuration";B instanceof Error&&(q=B.message,B.message.includes("auth")?q=`Authentication error for ${C}: ${B.message}`:B.message.includes("permission")&&(q=`Permission error for ${C}: ${B.message}`)),a(q)}finally{o(!1)}},[S,b]=L.useState(null),R=L.useCallback(C=>{b(I=>I===C?null:C)},[b]);return e?x.jsx(Gy,{onClick:C=>C.target===C.currentTarget&&g(),role:"dialog","aria-modal":"true","aria-labelledby":"service-config-title",children:x.jsxs(Jy,{children:[x.jsx(Qy,{onClick:g,"aria-label":"Close configuration modal",children:"×"}),x.jsx(Ky,{children:x.jsx("h2",{id:"service-config-title",children:"AI Services Configuration"})}),s&&x.jsx(RC,{role:"alert","aria-live":"polite",children:s}),u&&x.jsx(NC,{role:"status","aria-live":"polite",children:u.split(`
|
|
479
|
-
`).map((C,I)=>x.jsx("div",{children:C},I))}),x.jsx(xC,{children:f?m.map(C=>x.jsx(AC,{serviceType:C,config:f[C],onUpdate:I=>w(C,I),isLoading:r,isExpanded:S===C,onCardClick:R},C)):x.jsx("div",{"aria-live":"polite",children:"Loading configurations..."})}),r&&x.jsx(IC,{role:"status","aria-live":"polite",children:"Updating configurations..."})]})}):null},Zy=Bi`
|
|
480
|
-
from {
|
|
481
|
-
opacity: 0;
|
|
482
|
-
}
|
|
483
|
-
to {
|
|
484
|
-
opacity: 1;
|
|
485
|
-
}
|
|
486
|
-
`,OC=Bi`
|
|
487
|
-
from {
|
|
488
|
-
transform: translateX(100%);
|
|
489
|
-
}
|
|
490
|
-
to {
|
|
491
|
-
transform: translateX(0);
|
|
492
|
-
}
|
|
493
|
-
`,MC=T.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
|
-
`,FC=T.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: ${Zy} 0.2s ease;
|
|
524
|
-
`,BC=T.div`
|
|
525
|
-
position: absolute;
|
|
526
|
-
${({position:e})=>e?kt`
|
|
527
|
-
top: ${e.top??"auto"};
|
|
528
|
-
right: ${e.right??"auto"};
|
|
529
|
-
left: ${e.left??"auto"};
|
|
530
|
-
bottom: ${e.bottom??"auto"};
|
|
531
|
-
`:kt`
|
|
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?kt`
|
|
545
|
-
${OC} 0.2s ease,
|
|
546
|
-
${Zy} 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
|
-
`,UC=T.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
|
-
`,VC=T.div`
|
|
579
|
-
position: relative;
|
|
580
|
-
display: inline-block;
|
|
581
|
-
`,HC=({menuItems:e,isOpen:t,onToggle:r,className:o,buttonAriaLabel:s="Toggle menu",menuAriaLabel:a="Navigation menu",position:u})=>{const d=L.useRef(null),f=L.useRef(null),p=L.useRef(null);L.useEffect(()=>{const v=S=>{var b;t&&d.current&&!d.current.contains(S.target)&&!((b=p.current)!=null&&b.contains(S.target))&&r()},w=S=>{var b;t&&S.key==="Escape"&&(r(),(b=p.current)==null||b.focus())};return document.addEventListener("mousedown",v),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",w)}},[t,r]),L.useEffect(()=>{var v;t&&((v=f.current)==null||v.focus())},[t]);const m=v=>{var b,R;if(!t)return;const w=Array.from(((b=d.current)==null?void 0:b.querySelectorAll('[role="menuitem"]'))||[]),S=w.indexOf(document.activeElement);switch(v.key){case"ArrowDown":v.preventDefault(),S<w.length-1?w[S+1].focus():w[0].focus();break;case"ArrowUp":v.preventDefault(),S>0?w[S-1].focus():w[w.length-1].focus();break;case"Home":v.preventDefault(),w[0].focus();break;case"End":v.preventDefault(),w[w.length-1].focus();break;case"Enter":case" ":v.preventDefault(),S>=0&&(e[S].onClick(),r(),(R=p.current)==null||R.focus());break}},g=v=>{var w;v(),r(),(w=p.current)==null||w.focus()};return x.jsxs(VC,{className:o,children:[x.jsx(MC,{onClick:r,"aria-expanded":t,"aria-haspopup":"true","aria-controls":"menu-items","aria-label":s,ref:p,children:"☰"}),x.jsx(FC,{isOpen:t,onClick:r}),x.jsx(BC,{isOpen:t,position:u,ref:d,role:"menu","aria-label":a,id:"menu-items",onKeyDown:m,children:e.map((v,w)=>x.jsxs(UC,{onClick:()=>g(v.onClick),role:"menuitem",tabIndex:t?0:-1,ref:w===0?f:null,"aria-label":v.ariaLabel,children:[v.content," ",v.ariaLabel]},v.key||w))})]})};function ex(){sl("openRcConfigModal")}const qC=({rcConfig:e})=>{const[t,r]=L.useState(!1);al("openRcConfigModal",()=>r(!0));const o=()=>{r(!1)};return!t||!e?null:x.jsx(Gy,{onClick:s=>s.target===s.currentTarget&&o(),role:"dialog","aria-modal":"true","aria-labelledby":"rc-config-title",children:x.jsxs(Jy,{children:[x.jsx(Qy,{onClick:o,"aria-label":"Close RC configuration modal",children:"×"}),x.jsx(Ky,{children:x.jsx("h2",{id:"rc-config-title",children:"RC Configuration"})}),x.jsxs(WC,{children:[x.jsxs(Jt,{children:[x.jsx(Kt,{children:"Root Directory"}),x.jsx(wi,{children:e.rootDir})]}),e.lintCommand&&x.jsxs(Jt,{children:[x.jsx(Kt,{children:"Lint Command"}),x.jsx(wi,{children:e.lintCommand})]}),e.extensions&&e.extensions.length>0&&x.jsxs(Jt,{children:[x.jsx(Kt,{children:"Extensions"}),x.jsx(wi,{children:e.extensions.join(", ")})]}),e.ignorePaths&&e.ignorePaths.length>0&&x.jsxs(Jt,{children:[x.jsx(Kt,{children:"Ignore Paths"}),x.jsx(wi,{children:e.ignorePaths.join(", ")})]}),e.importantContext&&x.jsxs(Jt,{children:[x.jsx(Kt,{children:"Important Context"}),x.jsx(wi,{children:e.importantContext.files?`Files: ${e.importantContext.files.join(", ")}`:"None"})]}),e.modelOverrides&&x.jsxs(Jt,{children:[x.jsx(Kt,{children:"Model Overrides"}),x.jsx(wi,{children:x.jsx("pre",{children:JSON.stringify(e.modelOverrides,null,2)})})]})]})]})})},WC=T.div`
|
|
582
|
-
display: flex;
|
|
583
|
-
flex-direction: column;
|
|
584
|
-
gap: 1rem;
|
|
585
|
-
margin-top: 1rem;
|
|
586
|
-
`,wi=T.div`
|
|
587
|
-
color: ${({theme:e})=>e.colors.text};
|
|
588
|
-
font-family: monospace;
|
|
589
|
-
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
590
|
-
padding: 0.5rem;
|
|
591
|
-
border-radius: 4px;
|
|
592
|
-
overflow-x: auto;
|
|
593
|
-
|
|
594
|
-
pre {
|
|
595
|
-
margin: 0;
|
|
596
|
-
white-space: pre-wrap;
|
|
597
|
-
}
|
|
598
|
-
`,GC=()=>x.jsx(gr,{onClick:ex,children:"ℹ️"}),JC=T.div`
|
|
599
|
-
position: fixed;
|
|
600
|
-
top: 0;
|
|
601
|
-
left: 0;
|
|
602
|
-
right: 0;
|
|
603
|
-
bottom: 0;
|
|
604
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
605
|
-
display: flex;
|
|
606
|
-
justify-content: center;
|
|
607
|
-
align-items: center;
|
|
608
|
-
z-index: 1000;
|
|
609
|
-
`,KC=T.div`
|
|
610
|
-
background: ${({theme:e})=>e.colors.background};
|
|
611
|
-
padding: 2rem;
|
|
612
|
-
border-radius: 8px;
|
|
613
|
-
width: 90%;
|
|
614
|
-
max-width: 800px;
|
|
615
|
-
max-height: 90vh;
|
|
616
|
-
overflow-y: auto;
|
|
617
|
-
position: relative;
|
|
618
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
619
|
-
`,QC=T.div`
|
|
620
|
-
display: flex;
|
|
621
|
-
justify-content: space-between;
|
|
622
|
-
align-items: center;
|
|
623
|
-
margin-bottom: 2rem;
|
|
624
|
-
|
|
625
|
-
h2 {
|
|
626
|
-
margin: 0;
|
|
627
|
-
}
|
|
628
|
-
`,YC=T.button`
|
|
629
|
-
position: absolute;
|
|
630
|
-
top: 1rem;
|
|
631
|
-
right: 1rem;
|
|
632
|
-
background: none;
|
|
633
|
-
border: none;
|
|
634
|
-
font-size: 1.5rem;
|
|
635
|
-
cursor: pointer;
|
|
636
|
-
color: ${({theme:e})=>e.colors.text};
|
|
637
|
-
&:hover {
|
|
638
|
-
opacity: 0.8;
|
|
639
|
-
}
|
|
640
|
-
`,XC=T.div`
|
|
641
|
-
display: flex;
|
|
642
|
-
flex-direction: column;
|
|
643
|
-
gap: 1rem;
|
|
644
|
-
margin-bottom: 1rem;
|
|
645
|
-
`,ZC=T.div`
|
|
646
|
-
color: ${({theme:e})=>e.colors.error};
|
|
647
|
-
margin-bottom: 1rem;
|
|
648
|
-
padding: 0.5rem;
|
|
649
|
-
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
650
|
-
border-radius: 4px;
|
|
651
|
-
`,eE=T.div`
|
|
652
|
-
color: ${({theme:e})=>e.colors.success};
|
|
653
|
-
margin-bottom: 1rem;
|
|
654
|
-
padding: 0.5rem;
|
|
655
|
-
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
656
|
-
border-radius: 4px;
|
|
657
|
-
`,tE=T.div`
|
|
658
|
-
position: absolute;
|
|
659
|
-
top: 0;
|
|
660
|
-
left: 0;
|
|
661
|
-
right: 0;
|
|
662
|
-
bottom: 0;
|
|
663
|
-
background: rgba(0, 0, 0, 0.3);
|
|
664
|
-
display: flex;
|
|
665
|
-
justify-content: center;
|
|
666
|
-
align-items: center;
|
|
667
|
-
border-radius: 8px;
|
|
668
|
-
color: white;
|
|
669
|
-
font-size: 1.2rem;
|
|
670
|
-
`,Xs=({value:e,onChange:t,disabled:r})=>{const{services:o,isLoading:s,error:a}=Hy(),u=d=>{t(d.target.value)};return x.jsxs(nE,{children:[x.jsxs(rE,{id:"aiService",value:e,onChange:u,disabled:r||s||a!==null,children:[x.jsx("option",{value:"",children:"Select AI Service"}),o.map(({service:d,displayName:f})=>x.jsx("option",{value:d,children:f},d))]}),s&&x.jsx(iE,{children:"Loading services..."}),a&&x.jsx(oE,{children:a})]})},nE=T.div`
|
|
671
|
-
display: flex;
|
|
672
|
-
flex-direction: column;
|
|
673
|
-
gap: 4px;
|
|
674
|
-
`,rE=T.select`
|
|
675
|
-
padding: 8px;
|
|
676
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
677
|
-
border-radius: 4px;
|
|
678
|
-
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
679
|
-
color: ${({theme:e})=>e.colors.inputText};
|
|
680
|
-
font-size: 14px;
|
|
681
|
-
max-width: 200px; /* Ensure enough space for longer options */
|
|
682
|
-
|
|
683
|
-
&:disabled {
|
|
684
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
685
|
-
cursor: not-allowed;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
option {
|
|
689
|
-
padding: 4px;
|
|
690
|
-
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
691
|
-
color: ${({theme:e})=>e.colors.inputText};
|
|
692
|
-
}
|
|
693
|
-
`,iE=T.div`
|
|
694
|
-
color: ${({theme:e})=>e.colors.text};
|
|
695
|
-
font-size: 14px;
|
|
696
|
-
font-style: italic;
|
|
697
|
-
`,oE=T.div`
|
|
698
|
-
color: ${({theme:e})=>e.colors.error};
|
|
699
|
-
font-size: 14px;
|
|
700
|
-
`;function tx(){sl("openGenaicodeConfigModal")}function lE(){return x.jsx(gr,{onClick:tx,"aria-label":"Open Genaicode configuration",children:"🐺"})}const sE=({options:e,onOptionsChange:t})=>{const[r,o]=L.useState(!1),[s,a]=L.useState(!1),[u,d]=L.useState(null),[f,p]=L.useState(null);al("openGenaicodeConfigModal",()=>o(!0));const m=()=>{o(!1),d(null),p(null)},g=async b=>{a(!0),d(null),p(null);try{t(b),p("Configuration updated successfully")}catch{d("Failed to update configuration")}finally{a(!1)}},v=b=>{const{name:R,value:C,type:I}=b.target,_=I==="checkbox"?b.target.checked:C;g({...e,[R]:_})},w=b=>{g({...e,aiService:b})},S=b=>{const R=b.target.value.split(",").map(C=>C.trim());g({...e,ignorePatterns:R})};return r?x.jsx(JC,{onClick:b=>b.target===b.currentTarget&&m(),role:"dialog","aria-modal":"true","aria-labelledby":"genaicode-config-title",children:x.jsxs(KC,{children:[x.jsx(YC,{onClick:m,"aria-label":"Close configuration modal",children:"×"}),x.jsx(QC,{children:x.jsx("h2",{id:"genaicode-config-title",children:"Genaicode Configuration"})}),u&&x.jsx(ZC,{role:"alert","aria-live":"polite",children:u}),f&&x.jsx(eE,{role:"status","aria-live":"polite",children:f}),x.jsxs(XC,{children:[x.jsxs(Uo,{children:[x.jsx(Nn,{htmlFor:"aiService",children:"Default AI Service:"}),x.jsx(Xs,{value:e.aiService,onChange:w,disabled:s})]}),x.jsxs(Uo,{children:[x.jsx(Nn,{htmlFor:"contentMask",children:"Content Mask:"}),x.jsx(Bm,{type:"text",id:"contentMask",name:"contentMask",value:e.contentMask||"",onChange:v,disabled:s})]}),x.jsxs(Uo,{children:[x.jsx(Nn,{htmlFor:"ignorePatterns",children:"Ignore Patterns:"}),x.jsx(Bm,{type:"text",id:"ignorePatterns",name:"ignorePatterns",value:e.ignorePatterns?e.ignorePatterns.join(", "):"",onChange:S,disabled:s}),x.jsx("small",{children:"Comma-separated list of patterns"})]}),x.jsxs(Uo,{children:[x.jsx(Nn,{children:"File Operations:"}),x.jsxs(Nn,{htmlFor:"allowFileCreate",children:[x.jsx("input",{type:"checkbox",id:"allowFileCreate",name:"allowFileCreate",checked:e.allowFileCreate!==!1,onChange:v,disabled:s}),"Allow File Create"]}),x.jsxs(Nn,{htmlFor:"allowFileDelete",children:[x.jsx("input",{type:"checkbox",id:"allowFileDelete",name:"allowFileDelete",checked:e.allowFileDelete!==!1,onChange:v,disabled:s}),"Allow File Delete"]}),x.jsxs(Nn,{htmlFor:"allowDirectoryCreate",children:[x.jsx("input",{type:"checkbox",id:"allowDirectoryCreate",name:"allowDirectoryCreate",checked:e.allowDirectoryCreate!==!1,onChange:v,disabled:s}),"Allow Directory Create"]}),x.jsxs(Nn,{htmlFor:"allowFileMove",children:[x.jsx("input",{type:"checkbox",id:"allowFileMove",name:"allowFileMove",checked:e.allowFileMove!==!1,onChange:v,disabled:s}),"Allow File Move"]})]}),x.jsxs(Uo,{children:[x.jsx(Nn,{children:"Notification Settings:"}),x.jsxs(Nn,{htmlFor:"muteNotifications",children:[x.jsx("input",{type:"checkbox",id:"muteNotifications",name:"muteNotifications",checked:e.muteNotifications===!0,onChange:v,disabled:s}),"Mute Sound Notifications"]})]})]}),s&&x.jsx(tE,{role:"status","aria-live":"polite",children:"Updating configuration..."})]})}):null},Uo=T.div`
|
|
701
|
-
margin-bottom: 16px;
|
|
702
|
-
`,Nn=T.label`
|
|
703
|
-
display: block;
|
|
704
|
-
margin-bottom: 4px;
|
|
705
|
-
color: ${e=>e.theme.colors.text};
|
|
706
|
-
`,Bm=T.input`
|
|
707
|
-
width: 100%;
|
|
708
|
-
padding: 8px;
|
|
709
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
710
|
-
border-radius: 4px;
|
|
711
|
-
background-color: ${e=>e.theme.colors.inputBg};
|
|
712
|
-
color: ${e=>e.theme.colors.inputText};
|
|
713
|
-
|
|
714
|
-
&:disabled {
|
|
715
|
-
background-color: ${e=>e.theme.colors.disabled};
|
|
716
|
-
cursor: not-allowed;
|
|
717
|
-
}
|
|
718
|
-
`,aE="0.11.1",nx=()=>x.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM13.96 12.29L11.21 15.83L9.25 13.47L6.5 17H17.5L13.96 12.29Z",fill:"currentColor"})}),uE=()=>x.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("path",{d:"M10 3H8C6.89543 3 6 3.89543 6 5V7M10 21H8C6.89543 21 6 20.1046 6 19V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),x.jsx("path",{d:"M14 3H16C17.1046 3 18 3.89543 18 5V7M14 21H16C17.1046 21 18 20.1046 18 19V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),x.jsx("rect",{x:"6",y:"10",width:"12",height:"4",rx:"1",stroke:"currentColor",strokeWidth:"2"}),x.jsx("path",{d:"M12 7V10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),x.jsx("path",{d:"M12 14V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),cE=500,Hi=L.createContext({messages:[],executionStatus:"idle",currentQuestion:null,suggestions:[],currentPrompt:"",theme:"dark",usage:void 0,codegenOptions:void 0,rcConfig:null,lastFinishedExecutionId:null,initialDataLoaded:!1,conversationGraphState:null,isGraphVisualiserOpen:!1,setMessages:()=>{},setExecutionStatus:()=>{},setCurrentQuestion:()=>{},setSuggestions:()=>{},setCurrentPrompt:()=>{},toggleTheme:()=>{},setCodegenOptions:()=>{},setLastFinishedExecutionId:()=>{},startPolling:()=>{},stopPolling:()=>{},handlePauseExecution:async()=>{},handleResumeExecution:async()=>{},setConversationGraphState:()=>{},toggleGraphVisualiser:()=>{}}),dE=({children:e})=>{const[t,r]=L.useState([]),[o,s]=L.useState("idle"),[a,u]=L.useState(null),[d,f]=L.useState([]),[p,m]=L.useState(""),[g,v]=L.useState("dark"),[w,S]=L.useState(),[b,R]=L.useState(void 0),[C,I]=L.useState(null),[_,B]=L.useState(null),q=L.useRef(!1),[A,W]=L.useState(!1),K=L.useRef(null),[le,z]=L.useState(null),[re,se]=L.useState(!1),oe=L.useCallback(()=>{v(j=>j==="light"?"dark":"light")},[]),X=L.useCallback(j=>{R(j)},[]),U=L.useCallback(()=>{se(j=>!j)},[]),de=L.useCallback(async()=>{try{const[j,ye,be,fe,ge,ve]=await Promise.all([rd(),id(),Om(),Mm(),_b(),$b()]);s(j),u(ye),r(be.filter(Ce=>!!Ce.message).map(Ce=>({...Ce.message,data:Ce.data}))),S(fe),R(ge),I(ve),W(!0)}catch(j){console.error("Failed to fetch initial data:",j),W(!1)}},[]);L.useEffect(()=>{de()},[de]);const ae=L.useCallback(async()=>{try{const[j,ye,be,fe]=await Promise.all([rd(),id(),Om(),Mm()]);s(ge=>ge!==j?j:ge),u(ge=>(ge==null?void 0:ge.id)!==(ye==null?void 0:ye.id)?ye:ge),r(ge=>{const ve=be.filter(Ce=>!!Ce.message).map(Ce=>({...Ce.message,data:Ce.data}));return ge.length!==ve.length||ge.length>0&&ve.length>0&&ge[ge.length-1].id!==ve[ve.length-1].id?ve:ge}),S(ge=>(ge==null?void 0:ge.usageMetrics.total.cost)!==(fe==null?void 0:fe.usageMetrics.total.cost)||(ge==null?void 0:ge.usageMetrics.total.tpd)!==(fe==null?void 0:fe.usageMetrics.total.tpd)?fe:ge)}catch(j){console.error("Failed to poll data:",j)}K.current&&clearTimeout(K.current),q.current&&(K.current=setTimeout(ae,cE))},[]),Z=L.useCallback(()=>{q.current||(console.log("Starting polling..."),q.current=!0,K.current&&clearTimeout(K.current),requestAnimationFrame(()=>{ae()}))},[ae]),ue=L.useCallback(()=>{q.current&&(console.log("Stopping polling..."),q.current=!1,K.current&&(clearTimeout(K.current),K.current=null))},[]);L.useEffect(()=>(A&&Z(),()=>{ue()}),[A,Z,ue]);const E=L.useCallback(async()=>{try{await Pb(),s("paused")}catch(j){console.error("Failed to pause execution:",j)}},[]),D=L.useCallback(async()=>{try{await Ab(),s("executing")}catch(j){console.error("Failed to resume execution:",j)}},[]),G=L.useMemo(()=>({messages:t,executionStatus:o,currentQuestion:a,suggestions:d,currentPrompt:p,theme:g,usage:w,codegenOptions:b,rcConfig:C,lastFinishedExecutionId:_,initialDataLoaded:A,conversationGraphState:le,isGraphVisualiserOpen:re,setMessages:r,setExecutionStatus:s,setCurrentQuestion:u,setSuggestions:f,setCurrentPrompt:m,toggleTheme:oe,setCodegenOptions:X,setLastFinishedExecutionId:B,startPolling:Z,stopPolling:ue,handlePauseExecution:E,handleResumeExecution:D,setConversationGraphState:z,toggleGraphVisualiser:U}),[t,o,a,d,p,g,w,b,C,_,A,le,re,oe,X,Z,ue,E,D,U]);return x.jsx(Hi.Provider,{value:G,children:e})},zd=()=>{const e=Nt.useContext(Hi);if(!e)throw new Error("useChatState must be used within a ChatStateProvider");return e},fE=Bi`
|
|
719
|
-
0% {
|
|
720
|
-
transform: scale(1);
|
|
721
|
-
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); // Use theme primary color ideally
|
|
722
|
-
}
|
|
723
|
-
70% {
|
|
724
|
-
transform: scale(1.05);
|
|
725
|
-
box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
|
|
726
|
-
}
|
|
727
|
-
100% {
|
|
728
|
-
transform: scale(1);
|
|
729
|
-
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
|
|
730
|
-
}
|
|
731
|
-
`,pE=T.div`
|
|
732
|
-
position: absolute; // Positioned relative to MainContent
|
|
733
|
-
bottom: 40px;
|
|
734
|
-
right: 30px;
|
|
735
|
-
z-index: 1000; // Ensure it's above other content like scrollbars
|
|
736
|
-
`,hE=T(gr)`
|
|
737
|
-
width: 50px; // Increased size
|
|
738
|
-
height: 50px; // Increased size
|
|
739
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
740
|
-
color: ${({theme:e})=>e.colors.buttonText||"#ffffff"}; // Ensure icon is visible
|
|
741
|
-
border: none;
|
|
742
|
-
animation: ${fE} 2s infinite;
|
|
743
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
744
|
-
|
|
745
|
-
&:hover {
|
|
746
|
-
background-color: ${({theme:e})=>e.colors.primaryHover};
|
|
747
|
-
animation-play-state: paused; // Pause animation on hover
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
// Style when the visualiser panel is open (isActive prop)
|
|
751
|
-
${({isActive:e,theme:t})=>e&&kt`
|
|
752
|
-
background-color: ${t.colors.buttonHoverBg}; // Existing active style
|
|
753
|
-
border: 1px solid ${t.colors.primary};
|
|
754
|
-
animation: none; // Turn off animation when visualiser is open
|
|
755
|
-
`}
|
|
756
|
-
`,mE=()=>{const{toggleGraphVisualiser:e,isGraphVisualiserOpen:t,conversationGraphState:r}=zd();return r!=null&&r.isActive?x.jsx(pE,{children:x.jsx(hE,{onClick:e,"aria-label":"Toggle Conversation Graph",title:"Toggle Conversation Graph",isActive:t,children:x.jsx(uE,{})})}):null},gE="https://github.com/gtanczyk/genaicode/issues",yE=({themeToggle:e,chatInterface:t,inputArea:r,usage:o,toggleTheme:s})=>{const[a,u]=L.useState(!1),d=[{content:x.jsx(LC,{}),ariaLabel:"Service Configuration",key:"service-config",onClick:Yy},{content:x.jsx(Xb,{}),ariaLabel:"Health Check",key:"health-check",onClick:Wy},{content:x.jsx(Mb,{}),ariaLabel:"Content Generation",key:"content-gen",onClick:qy},{content:x.jsx(lE,{}),ariaLabel:"Genaicode Config",key:"genaicode-config",onClick:tx},{content:e,ariaLabel:"Theme Toggle",key:"theme-toggle",onClick:s},{content:x.jsx(GC,{}),ariaLabel:"Information",key:"info",onClick:ex},{content:x.jsx(gr,{children:"🐛"}),ariaLabel:"Report Bug",key:"report-bug",onClick:()=>window.open(gE,"_blank","noopener,noreferrer")}];return x.jsxs(xE,{children:[x.jsxs(vE,{children:[x.jsx(wE,{children:x.jsxs(kE,{children:[x.jsx(SE,{children:"GenAIcode"}),x.jsxs(bE,{children:["v",aE]})]})}),x.jsxs(CE,{children:[x.jsx(EE,{children:x.jsx(Wk,{usage:o})}),x.jsx(jE,{children:x.jsx(HC,{menuItems:d,isOpen:a,onToggle:()=>u(!a),buttonAriaLabel:"Toggle navigation menu",menuAriaLabel:"Navigation menu",position:{top:"100%",right:0}})})]})]}),x.jsxs(RE,{children:[x.jsx(NE,{children:t}),x.jsx(TE,{children:r}),x.jsx(mE,{})]})]})},xE=T.div`
|
|
757
|
-
display: flex;
|
|
758
|
-
flex-direction: column;
|
|
759
|
-
height: 100vh;
|
|
760
|
-
max-width: 1200px;
|
|
761
|
-
margin: 0 auto;
|
|
762
|
-
padding: 0 10px;
|
|
763
|
-
`,vE=T.header`
|
|
764
|
-
position: relative;
|
|
765
|
-
display: flex;
|
|
766
|
-
justify-content: space-between;
|
|
767
|
-
align-items: center;
|
|
768
|
-
padding: 10px 0;
|
|
769
|
-
flex-wrap: nowrap;
|
|
770
|
-
gap: 10px;
|
|
771
|
-
`,wE=T.div`
|
|
772
|
-
display: flex;
|
|
773
|
-
align-items: center;
|
|
774
|
-
gap: 10px;
|
|
775
|
-
`,kE=T.div`
|
|
776
|
-
position: relative;
|
|
777
|
-
`,SE=T.h1`
|
|
778
|
-
text-transform: uppercase;
|
|
779
|
-
font-family: 'Press Start 2P', system-ui;
|
|
780
|
-
color: ${({theme:e})=>e.colors.primary};
|
|
781
|
-
margin: 0;
|
|
782
|
-
font-size: clamp(0.6rem, 2.5vw, 1.5rem);
|
|
783
|
-
white-space: nowrap;
|
|
784
|
-
overflow: hidden;
|
|
785
|
-
text-overflow: ellipsis;
|
|
786
|
-
`,bE=T.span`
|
|
787
|
-
position: absolute;
|
|
788
|
-
bottom: 0;
|
|
789
|
-
right: 0;
|
|
790
|
-
font-size: 0.6rem;
|
|
791
|
-
color: ${({theme:e})=>e.colors.text};
|
|
792
|
-
background-color: ${({theme:e})=>e.colors.backgroundAlt};
|
|
793
|
-
padding: 2px 4px;
|
|
794
|
-
border-radius: 3px;
|
|
795
|
-
transform: translateY(100%);
|
|
796
|
-
white-space: nowrap;
|
|
797
|
-
`,CE=T.div`
|
|
798
|
-
display: flex;
|
|
799
|
-
align-items: center;
|
|
800
|
-
gap: 16px;
|
|
801
|
-
flex-wrap: nowrap;
|
|
802
|
-
flex-shrink: 0;
|
|
803
|
-
|
|
804
|
-
@media (max-width: 576px) {
|
|
805
|
-
gap: 8px;
|
|
806
|
-
}
|
|
807
|
-
`,EE=T.div`
|
|
808
|
-
flex-shrink: 1;
|
|
809
|
-
min-width: 0;
|
|
810
|
-
`,jE=T.div`
|
|
811
|
-
display: flex;
|
|
812
|
-
align-items: center;
|
|
813
|
-
|
|
814
|
-
@media (max-width: 576px) {
|
|
815
|
-
position: relative;
|
|
816
|
-
}
|
|
817
|
-
`,RE=T.main`
|
|
818
|
-
display: flex;
|
|
819
|
-
flex-direction: column;
|
|
820
|
-
flex-grow: 1;
|
|
821
|
-
min-height: 0;
|
|
822
|
-
position: relative;
|
|
823
|
-
z-index: 1;
|
|
824
|
-
`,NE=T.div`
|
|
825
|
-
flex-grow: 1;
|
|
826
|
-
overflow: hidden;
|
|
827
|
-
margin-bottom: 20px;
|
|
828
|
-
`,TE=T.div`
|
|
829
|
-
flex-shrink: 0;
|
|
830
|
-
`,IE=({codegenOptions:e})=>{const{setCurrentPrompt:t,setExecutionStatus:r,setCurrentQuestion:o,setCodegenOptions:s,handlePauseExecution:a,handleResumeExecution:u}=L.useContext(Hi),d=async(w,S)=>{t(w),r("executing");try{if(await rd()==="executing"){console.warn("Execution is already executing"),r("executing");return}if(!e){console.error("Codegen options not available"),r("idle");return}await Tb(w,e,S.length>0?S:void 0),r("executing")}catch(b){console.error("Failed to execute codegen:",b),r("idle")}},f=async(w,S,b,R)=>{const C=await id();if(C)try{if(o(null),e){const I={...e,aiService:R??e.aiService};s(I),await Lb(C.id,w,b,I,S)}else console.error("Codegen options not available for submitting answer")}catch(I){console.error("Failed to submit answer:",I),o(C)}},p=async()=>{try{o(null),await Ib()}catch(w){console.error("Failed to interrupt execution:",w)}},m=L.useCallback(w=>{s(w)},[s]);return{handleExecute:d,handleQuestionSubmit:f,handleInterrupt:p,handleOptionsChange:m,handlePauseExecution:a,handleResumeExecution:u}};var hr=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(hr||{}),Od=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e.MESSAGE_EDITABLE="editable",e))(Od||{});function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},H.apply(null,arguments)}function Le(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}var rx={},ix=L.createContext(rx),PE=(e,t)=>H({},e,t),AE=()=>L.useContext(ix),Md=L.createContext(()=>{});Md.displayName="JVR.DispatchShowTools";function LE(){return L.useReducer(PE,rx)}function ox(){return L.useContext(Md)}var lx=e=>{var{initial:t,dispatch:r,children:o}=e;return x.jsx(ix.Provider,{value:t,children:x.jsx(Md.Provider,{value:r,children:o})})};lx.displayName="JVR.ShowTools";var sx={},ax=L.createContext(sx),_E=(e,t)=>H({},e,t),ga=()=>L.useContext(ax),Fd=L.createContext(()=>{});Fd.displayName="JVR.DispatchExpands";function $E(){return L.useReducer(_E,sx)}function DE(){return L.useContext(Fd)}var ux=e=>{var{initial:t,dispatch:r,children:o}=e;return x.jsx(ax.Provider,{value:t,children:x.jsx(Fd.Provider,{value:r,children:o})})};ux.displayName="JVR.Expands";var cx={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"}},dx=L.createContext(cx),zE=(e,t)=>H({},e,t),He=()=>L.useContext(dx),Bd=L.createContext(()=>{});Bd.displayName="JVR.DispatchTypes";function OE(){return L.useReducer(zE,cx)}function ME(){return L.useContext(Bd)}function fx(e){var{initial:t,dispatch:r,children:o}=e;return x.jsx(dx.Provider,{value:t,children:x.jsx(Bd.Provider,{value:r,children:o})})}fx.displayName="JVR.Types";var FE=["style"];function px(e){var{style:t}=e,r=Le(e,FE),o=H({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return x.jsx("svg",H({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:o},r,{children:x.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}px.displayName="JVR.TriangleArrow";var hx={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:x.jsx(px,{})},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:"}"}},mx=L.createContext(hx),BE=(e,t)=>H({},e,t),Ot=()=>L.useContext(mx),Ud=L.createContext(()=>{});Ud.displayName="JVR.DispatchSymbols";function UE(){return L.useReducer(BE,hx)}function VE(){return L.useContext(Ud)}var gx=e=>{var{initial:t,dispatch:r,children:o}=e;return x.jsx(mx.Provider,{value:t,children:x.jsx(Ud.Provider,{value:r,children:o})})};gx.displayName="JVR.Symbols";var yx={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"}},xx=L.createContext(yx),HE=(e,t)=>H({},e,t),un=()=>L.useContext(xx),Vd=L.createContext(()=>{});Vd.displayName="JVR.DispatchSection";function qE(){return L.useReducer(HE,yx)}function WE(){return L.useContext(Vd)}var vx=e=>{var{initial:t,dispatch:r,children:o}=e;return x.jsx(xx.Provider,{value:t,children:x.jsx(Vd.Provider,{value:r,children:o})})};vx.displayName="JVR.Section";var wx={objectSortKeys:!1,indentWidth:15},Hd=L.createContext(wx);Hd.displayName="JVR.Context";var kx=L.createContext(()=>{});kx.displayName="JVR.DispatchContext";function GE(e,t){return H({},e,t)}var Vr=()=>L.useContext(Hd),Sx=e=>{var{children:t,initialState:r,initialTypes:o}=e,[s,a]=L.useReducer(GE,Object.assign({},wx,r)),[u,d]=LE(),[f,p]=$E(),[m,g]=OE(),[v,w]=UE(),[S,b]=qE();return L.useEffect(()=>a(H({},r)),[r]),x.jsx(Hd.Provider,{value:s,children:x.jsx(kx.Provider,{value:a,children:x.jsx(lx,{initial:u,dispatch:d,children:x.jsx(ux,{initial:f,dispatch:p,children:x.jsx(fx,{initial:H({},m,o),dispatch:g,children:x.jsx(gx,{initial:v,dispatch:w,children:x.jsx(vx,{initial:S,dispatch:b,children:t})})})})})})})};Sx.displayName="JVR.Provider";function JE(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var KE=["isNumber","value","parentValue","keyName","keys"],QE=["as","render"],YE=["as","render"],XE=["as","render"],ZE=["as","style","render"],ej=["as","render"],tj=["as","render"],nj=["as","render"],rj=["as","render"],od=e=>{var{Quote:t={}}=Ot(),{isNumber:r,value:o,parentValue:s,keyName:a,keys:u}=e,d=Le(e,KE);if(r)return null;var{as:f,render:p}=t,m=Le(t,QE),g=f||"span",v=H({},d,m),w={value:o,parentValue:s,keyName:a,keys:u||(a?[a]:[])},S=p&&typeof p=="function"&&p(v,w);return S||x.jsx(g,H({},v))};od.displayName="JVR.Quote";var tl=e=>{var{ValueQuote:t={}}=Ot(),r=H({},(JE(e),e)),{as:o,render:s}=t,a=Le(t,YE),u=o||"span",d=H({},r,a),f=s&&typeof s=="function"&&s(d,{});return f||x.jsx(u,H({},d))};tl.displayName="JVR.ValueQuote";var bx=e=>{var{value:t,parentValue:r,keyName:o,keys:s}=e,{Colon:a={}}=Ot(),{as:u,render:d}=a,f=Le(a,XE),p=u||"span",m=d&&typeof d=="function"&&d(f,{value:t,parentValue:r,keyName:o,keys:s||(o?[o]:[])});return m||x.jsx(p,H({},f))};bx.displayName="JVR.Colon";var Cx=e=>{var{Arrow:t={}}=Ot(),r=ga(),{expandKey:o,style:s,value:a,parentValue:u,keyName:d,keys:f}=e,p=!!r[o],{as:m,style:g,render:v}=t,w=Le(t,ZE),S=m||"span",b=v&&typeof v=="function",R=H({},w,{"data-expanded":p,style:H({},g,s)}),C={value:a,parentValue:u,keyName:d,keys:f||(d?[d]:[])},I=b&&v(R,C);return I||x.jsx(S,H({},w,{style:H({},g,s)}))};Cx.displayName="JVR.Arrow";var Ex=e=>{var{isBrackets:t,value:r,parentValue:o,keyName:s,keys:a}=e,{BracketsLeft:u={},BraceLeft:d={}}=Ot(),f={value:r,parentValue:o,keyName:s,keys:a||(s?[s]:[])};if(t){var{as:p,render:m}=u,g=Le(u,ej),v=p||"span",w=m&&typeof m=="function"&&m(g,f);return w||x.jsx(v,H({},g))}var{as:S,render:b}=d,R=Le(d,tj),C=S||"span",I=b&&typeof b=="function"&&b(R,f);return I||x.jsx(C,H({},R))};Ex.displayName="JVR.BracketsOpen";var qd=e=>{var{isBrackets:t,isVisiable:r,value:o,parentValue:s,keyName:a,keys:u}=e,d={value:o,parentValue:s,keyName:a,keys:u||(a?[a]:[])};if(!r)return null;var{BracketsRight:f={},BraceRight:p={}}=Ot();if(t){var{as:m,render:g}=f,v=Le(f,nj),w=m||"span",S=g&&typeof g=="function"&&g(v,d);return S||x.jsx(w,H({},v))}var{as:b,render:R}=p,C=Le(p,rj),I=b||"span",_=R&&typeof R=="function"&&R(C,d);return _||x.jsx(I,H({},C))};qd.displayName="JVR.BracketsClose";var jx=e=>{var t,{value:r,expandKey:o,level:s,keys:a=[]}=e,u=ga(),d=Array.isArray(r),{collapsed:f,shouldExpandNodeInitially:p}=Vr(),m=r instanceof Set,g=typeof f=="boolean"?f:typeof f=="number"?s>f:!1,v=(t=u[o])!=null?t:g,w=Object.keys(r).length;if(u[o]===void 0&&p&&p(v,{value:r,keys:a,level:s})||v||w===0)return null;var S={paddingLeft:4};return x.jsx("div",{style:S,children:x.jsx(qd,{isBrackets:d||m,isVisiable:!0})})};jx.displayName="JVR.NestedClose";var ij=["as","render"],oj=["as","render"],lj=["as","render"],sj=["as","render"],aj=["as","render"],uj=["as","render"],cj=["as","render"],dj=["as","render"],fj=["as","render"],pj=["as","render"],hj=["as","render"],mj=["as","render"],gj=["as","render"],ld=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},Rx=e=>{var{value:t,keyName:r}=e,{Set:o={},displayDataTypes:s}=He(),a=t instanceof Set;if(!a||!s)return null;var{as:u,render:d}=o,f=Le(o,ij),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return x.jsx(g,H({},f))};Rx.displayName="JVR.SetComp";var Nx=e=>{var{value:t,keyName:r}=e,{Map:o={},displayDataTypes:s}=He(),a=t instanceof Map;if(!a||!s)return null;var{as:u,render:d}=o,f=Le(o,oj),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return x.jsx(g,H({},f))};Nx.displayName="JVR.MapComp";var wn={opacity:.75,paddingRight:4},Tx=e=>{var{children:t="",keyName:r}=e,{Str:o={},displayDataTypes:s}=He(),{shortenTextAfterLength:a=30}=Vr(),{as:u,render:d}=o,f=Le(o,lj),p=t,[m,g]=L.useState(a&&p.length>a);L.useEffect(()=>g(a&&p.length>a),[a]);var v=u||"span",w=H({},wn,o.style||{});a>0&&(f.style=H({},f.style,{cursor:p.length<=a?"initial":"pointer"}),p.length>a&&(f.onClick=()=>{g(!m)}));var S=m?p.slice(0,a)+"...":p,b=d&&typeof d=="function",R=b&&d(H({},f,{style:w}),{type:"type",value:t,keyName:r}),C=b&&d(H({},f,{children:S,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(R||x.jsx(v,H({},f,{style:w}))),C||x.jsxs(L.Fragment,{children:[x.jsx(tl,{}),x.jsx(v,H({},f,{className:"w-rjv-value",children:S})),x.jsx(tl,{})]})]})};Tx.displayName="JVR.TypeString";var Ix=e=>{var{children:t,keyName:r}=e,{True:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,sj),f=a||"span",p=H({},wn,o.style||{}),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(H({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),v||x.jsx(f,H({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Ix.displayName="JVR.TypeTrue";var Px=e=>{var{children:t,keyName:r}=e,{False:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,aj),f=a||"span",p=H({},wn,o.style||{}),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(H({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),v||x.jsx(f,H({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Px.displayName="JVR.TypeFalse";var Ax=e=>{var{children:t,keyName:r}=e,{Float:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,uj),f=a||"span",p=H({},wn,o.style||{}),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(H({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),v||x.jsx(f,H({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Ax.displayName="JVR.TypeFloat";var Lx=e=>{var{children:t,keyName:r}=e,{Int:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,cj),f=a||"span",p=H({},wn,o.style||{}),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(H({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),v||x.jsx(f,H({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Lx.displayName="JVR.TypeInt";var _x=e=>{var{children:t,keyName:r}=e,{Bigint:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,dj),f=a||"span",p=H({},wn,o.style||{}),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(H({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),v||x.jsx(f,H({},d,{className:"w-rjv-value",children:ld(t==null?void 0:t.toString())}))]})};_x.displayName="JVR.TypeFloat";var $x=e=>{var{children:t,keyName:r}=e,{Url:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,fj),f=a||"span",p=H({},wn,o.style),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(H({},d,{children:t==null?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),v||x.jsxs("a",H({href:t==null?void 0:t.href,target:"_blank"},d,{className:"w-rjv-value",children:[x.jsx(tl,{}),t==null?void 0:t.href,x.jsx(tl,{})]}))]})};$x.displayName="JVR.TypeUrl";var Dx=e=>{var{children:t,keyName:r}=e,{Date:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,pj),f=a||"span",p=H({},wn,o.style||{}),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=t instanceof Date?t.toLocaleString():t,w=m&&u(H({},d,{children:v,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),w||x.jsx(f,H({},d,{className:"w-rjv-value",children:v}))]})};Dx.displayName="JVR.TypeDate";var zx=e=>{var{children:t,keyName:r}=e,{Undefined:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,hj),f=a||"span",p=H({},wn,o.style||{}),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(H({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),v]})};zx.displayName="JVR.TypeUndefined";var Ox=e=>{var{children:t,keyName:r}=e,{Null:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,mj),f=a||"span",p=H({},wn,o.style||{}),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(H({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),v]})};Ox.displayName="JVR.TypeNull";var Mx=e=>{var{children:t,keyName:r}=e,{Nan:o={},displayDataTypes:s}=He(),{as:a,render:u}=o,d=Le(o,gj),f=a||"span",p=H({},wn,o.style||{}),m=u&&typeof u=="function",g=m&&u(H({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(H({},d,{children:t==null?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return x.jsxs(L.Fragment,{children:[s&&(g||x.jsx(f,H({},d,{style:p}))),v]})};Mx.displayName="JVR.TypeNan";var yj=e=>Number(e)===e&&e%1!==0||isNaN(e),Fx=e=>{var{value:t,keyName:r}=e,o={keyName:r};return t instanceof URL?x.jsx($x,H({},o,{children:t})):typeof t=="string"?x.jsx(Tx,H({},o,{children:t})):t===!0?x.jsx(Ix,H({},o,{children:t})):t===!1?x.jsx(Px,H({},o,{children:t})):t===null?x.jsx(Ox,H({},o,{children:t})):t===void 0?x.jsx(zx,H({},o,{children:t})):t instanceof Date?x.jsx(Dx,H({},o,{children:t})):typeof t=="number"&&isNaN(t)?x.jsx(Mx,H({},o,{children:t})):typeof t=="number"&&yj(t)?x.jsx(Ax,H({},o,{children:t})):typeof t=="bigint"?x.jsx(_x,H({},o,{children:t})):typeof t=="number"?x.jsx(Lx,H({},o,{children:t})):null};Fx.displayName="JVR.Value";function yr(e,t,r){var o=VE(),s=[e.className,t.className].filter(Boolean).join(" "),a=H({},e,t,{className:s,style:H({},e.style,t.style),children:t.children||e.children});L.useEffect(()=>o({[r]:a}),[t])}function Xt(e,t,r){var o=ME(),s=[e.className,t.className].filter(Boolean).join(" "),a=H({},e,t,{className:s,style:H({},e.style,t.style),children:t.children||e.children});L.useEffect(()=>o({[r]:a}),[t])}function qi(e,t,r){var o=WE(),s=[e.className,t.className].filter(Boolean).join(" "),a=H({},e,t,{className:s,style:H({},e.style,t.style),children:t.children||e.children});L.useEffect(()=>o({[r]:a}),[t])}var xj=["as","render"],Bx=e=>{var{KeyName:t={}}=un();return qi(t,e,"KeyName"),null};Bx.displayName="JVR.KeyName";var Ux=e=>{var{children:t,value:r,parentValue:o,keyName:s,keys:a}=e,u=typeof t=="number",d={color:u?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:f={}}=un(),{as:p,render:m}=f,g=Le(f,xj);g.style=H({},g.style,d);var v=p||"span",w=m&&typeof m=="function"&&m(H({},g,{children:t}),{value:r,parentValue:o,keyName:s,keys:a||(s?[s]:[])});return w||x.jsx(v,H({},g,{children:t}))};Ux.displayName="JVR.KeyNameComp";var vj=["children","value","parentValue","keyName","keys"],wj=["as","render","children"],Vx=e=>{var{Row:t={}}=un();return qi(t,e,"Row"),null};Vx.displayName="JVR.Row";var Hx=e=>{var{children:t,value:r,parentValue:o,keyName:s,keys:a}=e,u=Le(e,vj),{Row:d={}}=un(),{as:f,render:p}=d,m=Le(d,wj),g=f||"div",v=p&&typeof p=="function"&&p(H({},u,m,{children:t}),{value:r,keyName:s,parentValue:o,keys:a});return v||x.jsx(g,H({},u,m,{children:t}))};Hx.displayName="JVR.RowComp";function kj(e){var t=L.useRef();return L.useEffect(()=>{t.current=e}),t.current}function Sj(e){var{value:t,highlightUpdates:r,highlightContainer:o}=e,s=kj(t),a=L.useMemo(()=>{if(!r||s===void 0)return!1;if(typeof t!=typeof s)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(s)?!1:t!==s;if(Array.isArray(t)!==Array.isArray(s))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==s)return!0},[r,t]);L.useEffect(()=>{o&&o.current&&a&&"animate"in o.current&&o.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[a,t,o])}var bj=["keyName","value","parentValue","expandKey","keys"],Cj=["as","render"],Wd=e=>{var{keyName:t,value:r,parentValue:o,expandKey:s,keys:a}=e,u=Le(e,bj),{onCopied:d,enableClipboard:f}=Vr(),p=AE(),m=p[s],[g,v]=L.useState(!1),{Copied:w={}}=un();if(f===!1||!m)return null;var S=q=>{q.stopPropagation();var A="";typeof r=="number"&&r===1/0?A="Infinity":typeof r=="number"&&isNaN(r)?A="NaN":typeof r=="bigint"?A=ld(r):r instanceof Date?A=r.toLocaleString():A=JSON.stringify(r,(K,le)=>typeof le=="bigint"?ld(le):le,2),d&&d(A,r),v(!0);var W=navigator.clipboard||{writeText(K){return new Promise((le,z)=>{var re=document.createElement("textarea");re.style.position="absolute",re.style.opacity="0",re.style.left="-99999999px",re.value=K,document.body.appendChild(re),re.select(),document.execCommand("copy")?le():z(),re.remove()})}};W.writeText(A).then(()=>{var K=setTimeout(()=>{v(!1),clearTimeout(K)},3e3)}).catch(K=>{})},b={style:{display:"inline-flex"},fill:g?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:S},{render:R}=w,C=Le(w,Cj),I=H({},C,u,b,{style:H({},C.style,u.style,b.style)}),_=R&&typeof R=="function",B=_&&R(H({},I,{"data-copied":g}),{value:r,keyName:t,keys:a,parentValue:o});return B||(g?x.jsx("svg",H({viewBox:"0 0 32 36"},I,{children:x.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"})})):x.jsx("svg",H({viewBox:"0 0 32 36"},I,{children:x.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"})})))};Wd.displayName="JVR.Copied";function qx(){var e=L.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var Wx=e=>{var t,{value:r,expandKey:o="",level:s,keys:a=[]}=e,u=ga(),{objectSortKeys:d,indentWidth:f,collapsed:p,shouldExpandNodeInitially:m}=Vr(),g=Array.isArray(r),v=typeof p=="boolean"?p:typeof p=="number"?s>p:!1,w=(t=u[o])!=null?t:v;if(u[o]===void 0&&m&&m(w,{value:r,keys:a,level:s})||w)return null;var S=g?Object.entries(r).map(R=>[Number(R[0]),R[1]]):Object.entries(r);d&&(S=d===!0?S.sort((R,C)=>{var[I]=R,[_]=C;return typeof I=="string"&&typeof _=="string"?I.localeCompare(_):0}):S.sort((R,C)=>{var[I,_]=R,[B,q]=C;return typeof I=="string"&&typeof B=="string"?d(I,B,_,q):0}));var b={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:f,marginLeft:6};return x.jsx("div",{className:"w-rjv-wrap",style:b,children:S.map((R,C)=>{var[I,_]=R;return x.jsx(Gx,{parentValue:r,keyName:I,keys:[...a,I],value:_,level:s},C)})})};Wx.displayName="JVR.KeyValues";var Gd=e=>{var{keyName:t,parentValue:r,keys:o,value:s}=e,{highlightUpdates:a}=Vr(),u=typeof t=="number",d=L.useRef(null);Sj({value:s,highlightUpdates:a,highlightContainer:d});var f={keyName:t,value:s,keys:o,parentValue:r};return x.jsxs(L.Fragment,{children:[x.jsxs("span",{ref:d,children:[x.jsx(od,H({isNumber:u,"data-placement":"left"},f)),x.jsx(Ux,H({},f,{children:t})),x.jsx(od,H({isNumber:u,"data-placement":"right"},f))]}),x.jsx(bx,H({},f))]})};Gd.displayName="JVR.KayName";var Gx=e=>{var{keyName:t,value:r,parentValue:o,level:s=0,keys:a=[]}=e,u=ox(),d=qx(),f=Array.isArray(r),p=r instanceof Set,m=r instanceof Map,g=r instanceof Date,v=r instanceof URL,w=r&&typeof r=="object"&&!f&&!p&&!m&&!g&&!v,S=w||f||p||m;if(S){var b=p?Array.from(r):m?Object.fromEntries(r):r;return x.jsx(Jd,{keyName:t,value:b,parentValue:o,initialValue:r,keys:a,level:s+1})}var R={onMouseEnter:()=>u({[d]:!0}),onMouseLeave:()=>u({[d]:!1})};return x.jsxs(Hx,H({className:"w-rjv-line",value:r,keyName:t,keys:a,parentValue:o},R,{children:[x.jsx(Gd,{keyName:t,value:r,keys:a,parentValue:o}),x.jsx(Fx,{keyName:t,value:r}),x.jsx(Wd,{keyName:t,value:r,keys:a,parentValue:o,expandKey:d})]}))};Gx.displayName="JVR.KeyValuesItem";var Ej=["value","keyName"],jj=["as","render"],Jx=e=>{var{CountInfoExtra:t={}}=un();return qi(t,e,"CountInfoExtra"),null};Jx.displayName="JVR.CountInfoExtra";var Kx=e=>{var{value:t={},keyName:r}=e,o=Le(e,Ej),{CountInfoExtra:s={}}=un(),{as:a,render:u}=s,d=Le(s,jj);if(!u&&!d.children)return null;var f=a||"span",p=u&&typeof u=="function",m=H({},d,o),g=p&&u(m,{value:t,keyName:r});return g||x.jsx(f,H({},m))};Kx.displayName="JVR.CountInfoExtraComps";var Rj=["value","keyName"],Nj=["as","render"],Qx=e=>{var{CountInfo:t={}}=un();return qi(t,e,"CountInfo"),null};Qx.displayName="JVR.CountInfo";var Yx=e=>{var{value:t={},keyName:r}=e,o=Le(e,Rj),{displayObjectSize:s}=Vr(),{CountInfo:a={}}=un();if(!s)return null;var{as:u,render:d}=a,f=Le(a,Nj),p=u||"span";f.style=H({},f.style,e.style);var m=Object.keys(t).length;f.children||(f.children=m+" item"+(m===1?"":"s"));var g=H({},f,o),v=d&&typeof d=="function",w=v&&d(H({},g,{"data-length":m}),{value:t,keyName:r});return w||x.jsx(p,H({},g))};Yx.displayName="JVR.CountInfoComp";var Tj=["as","render"],Xx=e=>{var{Ellipsis:t={}}=un();return qi(t,e,"Ellipsis"),null};Xx.displayName="JVR.Ellipsis";var Zx=e=>{var{isExpanded:t,value:r,keyName:o}=e,{Ellipsis:s={}}=un(),{as:a,render:u}=s,d=Le(s,Tj),f=a||"span",p=u&&typeof u=="function"&&u(H({},d,{"data-expanded":t}),{value:r,keyName:o});return p||(!t||typeof r=="object"&&Object.keys(r).length==0?null:x.jsx(f,H({},d)))};Zx.displayName="JVR.EllipsisComp";var ev=e=>{var t,{keyName:r,expandKey:o,keys:s=[],initialValue:a,value:u,parentValue:d,level:f}=e,p=ga(),m=DE(),{onExpand:g,collapsed:v,shouldExpandNodeInitially:w}=Vr(),S=Array.isArray(u),b=u instanceof Set,R=typeof v=="boolean"?v:typeof v=="number"?f>v:!1,C=typeof u=="object",I=(t=p[o])!=null?t:R,_=w&&w(I,{value:u,keys:s,level:f});p[o]===void 0&&_!==void 0&&(I=_);var B=()=>{var re={expand:!I,value:u,keyid:o,keyName:r};g&&g(re),m({[o]:re.expand})},q={display:"inline-flex",alignItems:"center"},A={transform:"rotate("+(I?"-90":"0")+"deg)",transition:"all 0.3s"},W=Object.keys(u).length,K=W!==0&&(S||b||C),le={style:q};K&&(le.onClick=B);var z={keyName:r,value:u,keys:s,parentValue:d};return x.jsxs("span",H({},le,{children:[K&&x.jsx(Cx,H({style:A,expandKey:o},z)),(r||typeof r=="number")&&x.jsx(Gd,H({},z)),x.jsx(Rx,{value:a,keyName:r}),x.jsx(Nx,{value:a,keyName:r}),x.jsx(Ex,H({isBrackets:S||b},z)),x.jsx(Zx,{keyName:r,value:u,isExpanded:I}),x.jsx(qd,H({isVisiable:I||!K,isBrackets:S||b},z)),x.jsx(Yx,{value:u,keyName:r}),x.jsx(Kx,{value:u,keyName:r}),x.jsx(Wd,{keyName:r,value:u,expandKey:o,parentValue:d,keys:s})]}))};ev.displayName="JVR.NestedOpen";var Ij=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Jd=L.forwardRef((e,t)=>{var{className:r="",parentValue:o,level:s=1,value:a,initialValue:u,keys:d,keyName:f}=e,p=Le(e,Ij),m=ox(),g=qx(),v=[r,"w-rjv-inner"].filter(Boolean).join(" "),w={onMouseEnter:()=>m({[g]:!0}),onMouseLeave:()=>m({[g]:!1})};return x.jsxs("div",H({className:v,ref:t},p,w,{children:[x.jsx(ev,{expandKey:g,value:a,level:s,keys:d,parentValue:o,keyName:f,initialValue:u}),x.jsx(Wx,{expandKey:g,value:a,level:s,keys:d,parentValue:o,keyName:f}),x.jsx(jx,{expandKey:g,value:a,level:s,keys:d})]}))});Jd.displayName="JVR.Container";var tv=e=>{var{BraceLeft:t={}}=Ot();return yr(t,e,"BraceLeft"),null};tv.displayName="JVR.BraceLeft";var nv=e=>{var{BraceRight:t={}}=Ot();return yr(t,e,"BraceRight"),null};nv.displayName="JVR.BraceRight";var rv=e=>{var{BracketsLeft:t={}}=Ot();return yr(t,e,"BracketsLeft"),null};rv.displayName="JVR.BracketsLeft";var iv=e=>{var{BracketsRight:t={}}=Ot();return yr(t,e,"BracketsRight"),null};iv.displayName="JVR.BracketsRight";var ov=e=>{var{Arrow:t={}}=Ot();return yr(t,e,"Arrow"),null};ov.displayName="JVR.Arrow";var lv=e=>{var{Colon:t={}}=Ot();return yr(t,e,"Colon"),null};lv.displayName="JVR.Colon";var sv=e=>{var{Quote:t={}}=Ot();return yr(t,e,"Quote"),null};sv.displayName="JVR.Quote";var av=e=>{var{ValueQuote:t={}}=Ot();return yr(t,e,"ValueQuote"),null};av.displayName="JVR.ValueQuote";var uv=e=>{var{Bigint:t={}}=He();return Xt(t,e,"Bigint"),null};uv.displayName="JVR.Bigint";var cv=e=>{var{Date:t={}}=He();return Xt(t,e,"Date"),null};cv.displayName="JVR.Date";var dv=e=>{var{False:t={}}=He();return Xt(t,e,"False"),null};dv.displayName="JVR.False";var fv=e=>{var{Float:t={}}=He();return Xt(t,e,"Float"),null};fv.displayName="JVR.Float";var pv=e=>{var{Int:t={}}=He();return Xt(t,e,"Int"),null};pv.displayName="JVR.Int";var hv=e=>{var{Map:t={}}=He();return Xt(t,e,"Map"),null};hv.displayName="JVR.Map";var mv=e=>{var{Nan:t={}}=He();return Xt(t,e,"Nan"),null};mv.displayName="JVR.Nan";var gv=e=>{var{Null:t={}}=He();return Xt(t,e,"Null"),null};gv.displayName="JVR.Null";var yv=e=>{var{Set:t={}}=He();return Xt(t,e,"Set"),null};yv.displayName="JVR.Set";var xv=e=>{var{Str:t={}}=He();return Xt(t,e,"Str"),null};xv.displayName="JVR.StringText";var vv=e=>{var{True:t={}}=He();return Xt(t,e,"True"),null};vv.displayName="JVR.True";var wv=e=>{var{Undefined:t={}}=He();return Xt(t,e,"Undefined"),null};wv.displayName="JVR.Undefined";var kv=e=>{var{Url:t={}}=He();return Xt(t,e,"Url"),null};kv.displayName="JVR.Url";var Sv=e=>{var{Copied:t={}}=un();return qi(t,e,"Copied"),null};Sv.displayName="JVR.Copied";var Pj=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Fe=L.forwardRef((e,t)=>{var{className:r="",style:o,value:s,children:a,collapsed:u,shouldExpandNodeInitially:d,indentWidth:f=15,displayObjectSize:p=!0,shortenTextAfterLength:m=30,highlightUpdates:g=!0,enableClipboard:v=!0,displayDataTypes:w=!0,objectSortKeys:S=!1,onExpand:b,onCopied:R}=e,C=Le(e,Pj),I=H({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},o),_=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return x.jsxs(Sx,{initialState:{value:s,objectSortKeys:S,indentWidth:f,shouldExpandNodeInitially:d,displayObjectSize:p,collapsed:u,enableClipboard:v,shortenTextAfterLength:m,highlightUpdates:g,onCopied:R,onExpand:b},initialTypes:{displayDataTypes:w},children:[x.jsx(Jd,H({value:s},C,{ref:t,className:_,style:I})),a]})});Fe.Bigint=uv;Fe.Date=cv;Fe.False=dv;Fe.Float=fv;Fe.Int=pv;Fe.Map=hv;Fe.Nan=mv;Fe.Null=gv;Fe.Set=yv;Fe.String=xv;Fe.True=vv;Fe.Undefined=wv;Fe.Url=kv;Fe.ValueQuote=av;Fe.Arrow=ov;Fe.Colon=lv;Fe.Quote=sv;Fe.Ellipsis=Xx;Fe.BraceLeft=tv;Fe.BraceRight=nv;Fe.BracketsLeft=rv;Fe.BracketsRight=iv;Fe.Copied=Sv;Fe.CountInfo=Qx;Fe.CountInfoExtra=Jx;Fe.KeyName=Bx;Fe.Row=Vx;Fe.displayName="JVR.JsonView";var Aj={"--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"},Lj={"--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 _j=T.pre`
|
|
831
|
-
margin-top: 8px;
|
|
832
|
-
padding: 8px;
|
|
833
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
834
|
-
border-radius: 4px;
|
|
835
|
-
font-size: 0.9em;
|
|
836
|
-
overflow-x: auto;
|
|
837
|
-
white-space: pre-wrap;
|
|
838
|
-
word-wrap: break-word;
|
|
839
|
-
|
|
840
|
-
.w-json-view-container {
|
|
841
|
-
background: none !important;
|
|
842
|
-
}
|
|
843
|
-
`,bv=({data:e})=>{const t=Fk();return x.jsx(_j,{children:typeof e=="object"?x.jsx(Fe,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?Aj:Lj}):JSON.stringify(e,null,2)})};function $j(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Dj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Oj={};function Um(e,t){return(Oj.jsx?zj:Dj).test(e)}const Mj=/[ \t\n\f\r]/g;function Fj(e){return typeof e=="object"?e.type==="text"?Vm(e.value):!1:Vm(e)}function Vm(e){return e.replace(Mj,"")===""}class ul{constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}ul.prototype.normal={};ul.prototype.property={};ul.prototype.space=void 0;function Cv(e,t){const r={},o={};for(const s of e)Object.assign(r,s.property),Object.assign(o,s.normal);return new ul(r,o,t)}function sd(e){return e.toLowerCase()}class Mt{constructor(t,r){this.attribute=r,this.property=t}}Mt.prototype.attribute="";Mt.prototype.booleanish=!1;Mt.prototype.boolean=!1;Mt.prototype.commaOrSpaceSeparated=!1;Mt.prototype.commaSeparated=!1;Mt.prototype.defined=!1;Mt.prototype.mustUseProperty=!1;Mt.prototype.number=!1;Mt.prototype.overloadedBoolean=!1;Mt.prototype.property="";Mt.prototype.spaceSeparated=!1;Mt.prototype.space=void 0;let Bj=0;const Ne=Hr(),it=Hr(),ad=Hr(),te=Hr(),Ve=Hr(),Ei=Hr(),Wt=Hr();function Hr(){return 2**++Bj}const ud=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ne,booleanish:it,commaOrSpaceSeparated:Wt,commaSeparated:Ei,number:te,overloadedBoolean:ad,spaceSeparated:Ve},Symbol.toStringTag,{value:"Module"})),wc=Object.keys(ud);class Kd extends Mt{constructor(t,r,o,s){let a=-1;if(super(t,r),Hm(this,"space",s),typeof o=="number")for(;++a<wc.length;){const u=wc[a];Hm(this,wc[a],(o&ud[u])===ud[u])}}}Kd.prototype.defined=!0;function Hm(e,t,r){r&&(e[t]=r)}function Wi(e){const t={},r={};for(const[o,s]of Object.entries(e.properties)){const a=new Kd(o,e.transform(e.attributes||{},o),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),t[o]=a,r[sd(o)]=o,r[sd(a.attribute)]=o}return new ul(t,r,e.space)}const Ev=Wi({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:Ve,ariaCurrent:null,ariaDescribedBy:Ve,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Ve,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Ve,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ve,ariaLevel:te,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Ve,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Ve,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:it,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function jv(e,t){return t in e?e[t]:t}function Rv(e,t){return jv(e,t.toLowerCase())}const Uj=Wi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ei,acceptCharset:Ve,accessKey:Ve,action:null,allow:null,allowFullScreen:Ne,allowPaymentRequest:Ne,allowUserMedia:Ne,alt:null,as:null,async:Ne,autoCapitalize:null,autoComplete:Ve,autoFocus:Ne,autoPlay:Ne,blocking:Ve,capture:null,charSet:null,checked:Ne,cite:null,className:Ve,cols:te,colSpan:null,content:null,contentEditable:it,controls:Ne,controlsList:Ve,coords:te|Ei,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ne,defer:Ne,dir:null,dirName:null,disabled:Ne,download:ad,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ne,formTarget:null,headers:Ve,height:te,hidden:ad,high:te,href:null,hrefLang:null,htmlFor:Ve,httpEquiv:Ve,id:null,imageSizes:null,imageSrcSet:null,inert:Ne,inputMode:null,integrity:null,is:null,isMap:Ne,itemId:null,itemProp:Ve,itemRef:Ve,itemScope:Ne,itemType:Ve,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ne,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:Ne,muted:Ne,name:null,nonce:null,noModule:Ne,noValidate:Ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ne,optimum:te,pattern:null,ping:Ve,placeholder:null,playsInline:Ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ne,referrerPolicy:null,rel:Ve,required:Ne,reversed:Ne,rows:te,rowSpan:te,sandbox:Ve,scope:null,scoped:Ne,seamless:Ne,selected:Ne,shadowRootClonable:Ne,shadowRootDelegatesFocus:Ne,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:Ne,useMap:null,value:it,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ve,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ne,declare:Ne,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:Ne,noHref:Ne,noShade:Ne,noWrap:Ne,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ne,disableRemotePlayback:Ne,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:Rv}),Vj=Wi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Wt,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:Ve,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:Ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ei,g2:Ei,glyphName:Ei,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ve,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wt,rev:Wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wt,requiredFeatures:Wt,requiredFonts:Wt,requiredFormats:Wt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wt,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:jv}),Nv=Wi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Tv=Wi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Rv}),Iv=Wi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Hj={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},qj=/[A-Z]/g,qm=/-[a-z]/g,Wj=/^data[-\w.:]+$/i;function Gj(e,t){const r=sd(t);let o=t,s=Mt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Wj.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(qm,Kj);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!qm.test(a)){let u=a.replace(qj,Jj);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=Kd}return new s(o,t)}function Jj(e){return"-"+e.toLowerCase()}function Kj(e){return e.charAt(1).toUpperCase()}const Qj=Cv([Ev,Uj,Nv,Tv,Iv],"html"),Qd=Cv([Ev,Vj,Nv,Tv,Iv],"svg");function Yj(e){return e.join(" ").trim()}var ki={},kc,Wm;function Xj(){if(Wm)return kc;Wm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
|
|
844
|
-
`,p="/",m="*",g="",v="comment",w="declaration";kc=function(b,R){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];R=R||{};var C=1,I=1;function _(oe){var X=oe.match(t);X&&(C+=X.length);var U=oe.lastIndexOf(f);I=~U?oe.length-U:I+oe.length}function B(){var oe={line:C,column:I};return function(X){return X.position=new q(oe),K(),X}}function q(oe){this.start=oe,this.end={line:C,column:I},this.source=R.source}q.prototype.content=b;function A(oe){var X=new Error(R.source+":"+C+":"+I+": "+oe);if(X.reason=oe,X.filename=R.source,X.line=C,X.column=I,X.source=b,!R.silent)throw X}function W(oe){var X=oe.exec(b);if(X){var U=X[0];return _(U),b=b.slice(U.length),X}}function K(){W(r)}function le(oe){var X;for(oe=oe||[];X=z();)X!==!1&&oe.push(X);return oe}function z(){var oe=B();if(!(p!=b.charAt(0)||m!=b.charAt(1))){for(var X=2;g!=b.charAt(X)&&(m!=b.charAt(X)||p!=b.charAt(X+1));)++X;if(X+=2,g===b.charAt(X-1))return A("End of comment missing");var U=b.slice(2,X-2);return I+=2,_(U),b=b.slice(X),I+=2,oe({type:v,comment:U})}}function re(){var oe=B(),X=W(o);if(X){if(z(),!W(s))return A("property missing ':'");var U=W(a),de=oe({type:w,property:S(X[0].replace(e,g)),value:U?S(U[0].replace(e,g)):g});return W(u),de}}function se(){var oe=[];le(oe);for(var X;X=re();)X!==!1&&(oe.push(X),le(oe));return oe}return K(),se()};function S(b){return b?b.replace(d,g):g}return kc}var Gm;function Zj(){if(Gm)return ki;Gm=1;var e=ki&&ki.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=r;var t=e(Xj());function r(o,s){var a=null;if(!o||typeof o!="string")return a;var u=(0,t.default)(o),d=typeof s=="function";return u.forEach(function(f){if(f.type==="declaration"){var p=f.property,m=f.value;d?s(p,m,f):m&&(a=a||{},a[p]=m)}}),a}return ki}var Vo={},Jm;function e2(){if(Jm)return Vo;Jm=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(p){return!p||r.test(p)||e.test(p)},u=function(p,m){return m.toUpperCase()},d=function(p,m){return"".concat(m,"-")},f=function(p,m){return m===void 0&&(m={}),a(p)?p:(p=p.toLowerCase(),m.reactCompat?p=p.replace(s,d):p=p.replace(o,d),p.replace(t,u))};return Vo.camelCase=f,Vo}var Ho,Km;function t2(){if(Km)return Ho;Km=1;var e=Ho&&Ho.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(Zj()),r=e2();function o(s,a){var u={};return!s||typeof s!="string"||(0,t.default)(s,function(d,f){d&&f&&(u[(0,r.camelCase)(d,a)]=f)}),u}return o.default=o,Ho=o,Ho}var n2=t2();const r2=Ed(n2),Pv=Av("end"),Yd=Av("start");function Av(e){return t;function t(r){const o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function i2(e){const t=Yd(e),r=Pv(e);if(t&&r)return{start:t,end:r}}function Yo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qm(e.position):"start"in e||"end"in e?Qm(e):"line"in e||"column"in e?cd(e):""}function cd(e){return Ym(e&&e.line)+":"+Ym(e&&e.column)}function Qm(e){return cd(e&&e.start)+"-"+cd(e&&e.end)}function Ym(e){return e&&typeof e=="number"?e:1}class Ct extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let s="",a={},u=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?s=t:!a.cause&&t&&(u=!0,s=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof o=="string"){const f=o.indexOf(":");f===-1?a.ruleId=o:(a.source=o.slice(0,f),a.ruleId=o.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const d=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=d?d.line:void 0,this.name=Yo(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ct.prototype.file="";Ct.prototype.name="";Ct.prototype.reason="";Ct.prototype.message="";Ct.prototype.stack="";Ct.prototype.column=void 0;Ct.prototype.line=void 0;Ct.prototype.ancestors=void 0;Ct.prototype.cause=void 0;Ct.prototype.fatal=void 0;Ct.prototype.place=void 0;Ct.prototype.ruleId=void 0;Ct.prototype.source=void 0;const Xd={}.hasOwnProperty,o2=new Map,l2=/[A-Z]/g,s2=new Set(["table","tbody","thead","tfoot","tr"]),a2=new Set(["td","th"]),Lv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function u2(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=y2(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=g2(r,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qd:Qj,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=_v(s,e,void 0);return a&&typeof a!="string"?a:s.create(e,s.Fragment,{children:a||void 0},void 0)}function _v(e,t,r){if(t.type==="element")return c2(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return d2(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return p2(e,t,r);if(t.type==="mdxjsEsm")return f2(e,t);if(t.type==="root")return h2(e,t,r);if(t.type==="text")return m2(e,t)}function c2(e,t,r){const o=e.schema;let s=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=Qd,e.schema=s),e.ancestors.push(t);const a=Dv(e,t.tagName,!1),u=x2(e,t);let d=ef(e,t);return s2.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!Fj(f):!0})),$v(e,u,a,t),Zd(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function d2(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}nl(e,t.position)}function f2(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);nl(e,t.position)}function p2(e,t,r){const o=e.schema;let s=o;t.name==="svg"&&o.space==="html"&&(s=Qd,e.schema=s),e.ancestors.push(t);const a=t.name===null?e.Fragment:Dv(e,t.name,!0),u=v2(e,t),d=ef(e,t);return $v(e,u,a,t),Zd(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function h2(e,t,r){const o={};return Zd(o,ef(e,t)),e.create(t,e.Fragment,o,r)}function m2(e,t){return t.value}function $v(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function Zd(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function g2(e,t,r){return o;function o(s,a,u,d){const p=Array.isArray(u.children)?r:t;return d?p(a,u,d):p(a,u)}}function y2(e,t){return r;function r(o,s,a,u){const d=Array.isArray(a.children),f=Yd(o);return t(s,a,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function x2(e,t){const r={};let o,s;for(s in t.properties)if(s!=="children"&&Xd.call(t.properties,s)){const a=w2(e,s,t.properties[s]);if(a){const[u,d]=a;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&a2.has(t.tagName)?o=d:r[u]=d}}if(o){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function v2(e,t){const r={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const a=o.data.estree.body[0];a.type;const u=a.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else nl(e,t.position);else{const s=o.name;let a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const d=o.value.data.estree.body[0];d.type,a=e.evaluater.evaluateExpression(d.expression)}else nl(e,t.position);else a=o.value===null?!0:o.value;r[s]=a}return r}function ef(e,t){const r=[];let o=-1;const s=e.passKeys?new Map:o2;for(;++o<t.children.length;){const a=t.children[o];let u;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const p=s.get(f)||0;u=f+"-"+p,s.set(f,p+1)}}const d=_v(e,a,u);d!==void 0&&r.push(d)}return r}function w2(e,t,r){const o=Gj(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?$j(r):Yj(r)),o.property==="style"){let s=typeof r=="object"?r:k2(e,String(r));return e.stylePropertyNameCase==="css"&&(s=S2(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&o.space?Hj[o.property]||o.property:o.attribute,r]}}function k2(e,t){try{return r2(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,s=new Ct("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Lv+"#cannot-parse-style-attribute",s}}function Dv(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let a=-1,u;for(;++a<s.length;){const d=Um(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(a&&d.type==="Literal"),optional:!1}:d}o=u}else o=Um(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const s=o.value;return Xd.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(o);nl(e)}function nl(e,t){const r=new Ct("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Lv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function S2(e){const t={};let r;for(r in e)Xd.call(e,r)&&(t[b2(r)]=e[r]);return t}function b2(e){let t=e.replace(l2,C2);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function C2(e){return"-"+e.toLowerCase()}const Sc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},E2={};function tf(e,t){const r=E2,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return zv(e,o,s)}function zv(e,t,r){if(j2(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Xm(e.children,t,r)}return Array.isArray(e)?Xm(e,t,r):""}function Xm(e,t,r){const o=[];let s=-1;for(;++s<e.length;)o[s]=zv(e[s],t,r);return o.join("")}function j2(e){return!!(e&&typeof e=="object")}const Zm=document.createElement("i");function nf(e){const t="&"+e+";";Zm.innerHTML=t;const r=Zm.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Yt(e,t,r,o){const s=e.length;let a=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);a<o.length;)u=o.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function sn(e,t){return e.length>0?(Yt(e,e.length,0,t),e):t}const eg={}.hasOwnProperty;function Ov(e){const t={};let r=-1;for(;++r<e.length;)R2(t,e[r]);return t}function R2(e,t){let r;for(r in t){const s=(eg.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let u;if(a)for(u in a){eg.call(s,u)||(s[u]=[]);const d=a[u];N2(s[u],Array.isArray(d)?d:d?[d]:[])}}}function N2(e,t){let r=-1;const o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);Yt(e,0,0,o)}function Mv(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function xn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rt=xr(/[A-Za-z]/),bt=xr(/[\dA-Za-z]/),T2=xr(/[#-'*+\--9=?A-Z^-~]/);function Zs(e){return e!==null&&(e<32||e===127)}const dd=xr(/\d/),I2=xr(/[\dA-Fa-f]/),P2=xr(/[!-/:-@[-`{-~]/);function Se(e){return e!==null&&e<-2}function Be(e){return e!==null&&(e<0||e===32)}function Ae(e){return e===-2||e===-1||e===32}const ya=xr(new RegExp("\\p{P}|\\p{S}","u")),Ur=xr(/\s/);function xr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Gi(e){const t=[];let r=-1,o=0,s=0;for(;++r<e.length;){const a=e.charCodeAt(r);let u="";if(a===37&&bt(e.charCodeAt(r+1))&&bt(e.charCodeAt(r+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const d=e.charCodeAt(r+1);a<56320&&d>56319&&d<57344?(u=String.fromCharCode(a,d),s=1):u="�"}else u=String.fromCharCode(a);u&&(t.push(e.slice(o,r),encodeURIComponent(u)),o=r+s+1,u=""),s&&(r+=s,s=0)}return t.join("")+e.slice(o)}function _e(e,t,r,o){const s=o?o-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(f){return Ae(f)?(e.enter(r),d(f)):t(f)}function d(f){return Ae(f)&&a++<s?(e.consume(f),d):(e.exit(r),t(f))}}const A2={tokenize:L2};function L2(e){const t=e.attempt(this.parser.constructs.contentInitial,o,s);let r;return t;function o(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),_e(e,t,"linePrefix")}function s(d){return e.enter("paragraph"),a(d)}function a(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Se(d)?(e.consume(d),e.exit("chunkText"),a):(e.consume(d),u)}}const _2={tokenize:$2},tg={tokenize:D2};function $2(e){const t=this,r=[];let o=0,s,a,u;return d;function d(_){if(o<r.length){const B=r[o];return t.containerState=B[1],e.attempt(B[0].continuation,f,p)(_)}return p(_)}function f(_){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&I();const B=t.events.length;let q=B,A;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){A=t.events[q][1].end;break}C(o);let W=B;for(;W<t.events.length;)t.events[W][1].end={...A},W++;return Yt(t.events,q+1,0,t.events.slice(B)),t.events.length=W,p(_)}return d(_)}function p(_){if(o===r.length){if(!s)return v(_);if(s.currentConstruct&&s.currentConstruct.concrete)return S(_);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(tg,m,g)(_)}function m(_){return s&&I(),C(o),v(_)}function g(_){return t.parser.lazy[t.now().line]=o!==r.length,u=t.now().offset,S(_)}function v(_){return t.containerState={},e.attempt(tg,w,S)(_)}function w(_){return o++,r.push([t.currentConstruct,t.containerState]),v(_)}function S(_){if(_===null){s&&I(),C(0),e.consume(_);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),b(_)}function b(_){if(_===null){R(e.exit("chunkFlow"),!0),C(0),e.consume(_);return}return Se(_)?(e.consume(_),R(e.exit("chunkFlow")),o=0,t.interrupt=void 0,d):(e.consume(_),b)}function R(_,B){const q=t.sliceStream(_);if(B&&q.push(null),_.previous=a,a&&(a.next=_),a=_,s.defineSkip(_.start),s.write(q),t.parser.lazy[_.start.line]){let A=s.events.length;for(;A--;)if(s.events[A][1].start.offset<u&&(!s.events[A][1].end||s.events[A][1].end.offset>u))return;const W=t.events.length;let K=W,le,z;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(le){z=t.events[K][1].end;break}le=!0}for(C(o),A=W;A<t.events.length;)t.events[A][1].end={...z},A++;Yt(t.events,K+1,0,t.events.slice(W)),t.events.length=A}}function C(_){let B=r.length;for(;B-- >_;){const q=r[B];t.containerState=q[1],q[0].exit.call(t,e)}r.length=_}function I(){s.write([null]),a=void 0,s=void 0,t.containerState._closeFlow=void 0}}function D2(e,t,r){return _e(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function zi(e){if(e===null||Be(e)||Ur(e))return 1;if(ya(e))return 2}function xa(e,t,r){const o=[];let s=-1;for(;++s<e.length;){const a=e[s].resolveAll;a&&!o.includes(a)&&(t=a(t,r),o.push(a))}return t}const fd={name:"attention",resolveAll:z2,tokenize:O2};function z2(e,t){let r=-1,o,s,a,u,d,f,p,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[o][1].end},v={...e[r][1].start};ng(g,-f),ng(v,f),u={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[o][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},a={type:f>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},s={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[o][1].end={...u.start},e[r][1].start={...d.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=sn(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=sn(p,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",a,t]]),p=sn(p,xa(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=sn(p,[["exit",a,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=sn(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,Yt(e,o-1,r-o+3,p),r=o+p.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function O2(e,t){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,s=zi(o);let a;return u;function u(f){return a=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===a)return e.consume(f),d;const p=e.exit("attentionSequence"),m=zi(f),g=!m||m===2&&s||r.includes(f),v=!s||s===2&&m||r.includes(o);return p._open=!!(a===42?g:g&&(s||!v)),p._close=!!(a===42?v:v&&(m||!g)),t(f)}}function ng(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const M2={name:"autolink",tokenize:F2};function F2(e,t,r){let o=0;return s;function s(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(w){return Rt(w)?(e.consume(w),u):w===64?r(w):p(w)}function u(w){return w===43||w===45||w===46||bt(w)?(o=1,d(w)):p(w)}function d(w){return w===58?(e.consume(w),o=0,f):(w===43||w===45||w===46||bt(w))&&o++<32?(e.consume(w),d):(o=0,p(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||Zs(w)?r(w):(e.consume(w),f)}function p(w){return w===64?(e.consume(w),m):T2(w)?(e.consume(w),p):r(w)}function m(w){return bt(w)?g(w):r(w)}function g(w){return w===46?(e.consume(w),o=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):v(w)}function v(w){if((w===45||bt(w))&&o++<63){const S=w===45?v:g;return e.consume(w),S}return r(w)}}const cl={partial:!0,tokenize:B2};function B2(e,t,r){return o;function o(a){return Ae(a)?_e(e,s,"linePrefix")(a):s(a)}function s(a){return a===null||Se(a)?t(a):r(a)}}const Fv={continuation:{tokenize:V2},exit:H2,name:"blockQuote",tokenize:U2};function U2(e,t,r){const o=this;return s;function s(u){if(u===62){const d=o.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return r(u)}function a(u){return Ae(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function V2(e,t,r){const o=this;return s;function s(u){return Ae(u)?_e(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(Fv,t,r)(u)}}function H2(e){e.exit("blockQuote")}const Bv={name:"characterEscape",tokenize:q2};function q2(e,t,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),s}function s(a){return P2(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Uv={name:"characterReference",tokenize:W2};function W2(e,t,r){const o=this;let s=0,a,u;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,u=bt,m(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=I2,m):(e.enter("characterReferenceValue"),a=7,u=dd,m(g))}function m(g){if(g===59&&s){const v=e.exit("characterReferenceValue");return u===bt&&!nf(o.sliceSerialize(v))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&s++<a?(e.consume(g),m):r(g)}}const rg={partial:!0,tokenize:J2},ig={concrete:!0,name:"codeFenced",tokenize:G2};function G2(e,t,r){const o=this,s={partial:!0,tokenize:q};let a=0,u=0,d;return f;function f(A){return p(A)}function p(A){const W=o.events[o.events.length-1];return a=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,d=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(A)}function m(A){return A===d?(u++,e.consume(A),m):u<3?r(A):(e.exit("codeFencedFenceSequence"),Ae(A)?_e(e,g,"whitespace")(A):g(A))}function g(A){return A===null||Se(A)?(e.exit("codeFencedFence"),o.interrupt?t(A):e.check(rg,b,B)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===null||Se(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(A)):Ae(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_e(e,w,"whitespace")(A)):A===96&&A===d?r(A):(e.consume(A),v)}function w(A){return A===null||Se(A)?g(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(A))}function S(A){return A===null||Se(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(A)):A===96&&A===d?r(A):(e.consume(A),S)}function b(A){return e.attempt(s,B,R)(A)}function R(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),C}function C(A){return a>0&&Ae(A)?_e(e,I,"linePrefix",a+1)(A):I(A)}function I(A){return A===null||Se(A)?e.check(rg,b,B)(A):(e.enter("codeFlowValue"),_(A))}function _(A){return A===null||Se(A)?(e.exit("codeFlowValue"),I(A)):(e.consume(A),_)}function B(A){return e.exit("codeFenced"),t(A)}function q(A,W,K){let le=0;return z;function z(U){return A.enter("lineEnding"),A.consume(U),A.exit("lineEnding"),re}function re(U){return A.enter("codeFencedFence"),Ae(U)?_e(A,se,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):se(U)}function se(U){return U===d?(A.enter("codeFencedFenceSequence"),oe(U)):K(U)}function oe(U){return U===d?(le++,A.consume(U),oe):le>=u?(A.exit("codeFencedFenceSequence"),Ae(U)?_e(A,X,"whitespace")(U):X(U)):K(U)}function X(U){return U===null||Se(U)?(A.exit("codeFencedFence"),W(U)):K(U)}}}function J2(e,t,r){const o=this;return s;function s(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}const bc={name:"codeIndented",tokenize:Q2},K2={partial:!0,tokenize:Y2};function Q2(e,t,r){const o=this;return s;function s(p){return e.enter("codeIndented"),_e(e,a,"linePrefix",5)(p)}function a(p){const m=o.events[o.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?f(p):Se(p)?e.attempt(K2,u,f)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||Se(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),d)}function f(p){return e.exit("codeIndented"),t(p)}}function Y2(e,t,r){const o=this;return s;function s(u){return o.parser.lazy[o.now().line]?r(u):Se(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):_e(e,a,"linePrefix",5)(u)}function a(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):Se(u)?s(u):r(u)}}const X2={name:"codeText",previous:eR,resolve:Z2,tokenize:tR};function Z2(e){let t=e.length-4,r=3,o,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)s===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(s=o):(o===t||e[o][1].type==="lineEnding")&&(e[s][1].type="codeTextData",o!==s+2&&(e[s][1].end=e[o-1][1].end,e.splice(s+2,o-s-2),t-=o-s-2,o=s+2),s=void 0);return e}function eR(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tR(e,t,r){let o=0,s,a;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),o++,d):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(a=e.enter("codeTextSequence"),s=0,m(g)):Se(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||Se(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),p)}function m(g){return g===96?(e.consume(g),s++,m):s===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",p(g))}}class nR{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){const s=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&qo(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),qo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),qo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);qo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);qo(this.left,r.reverse())}}}function qo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Vv(e){const t={};let r=-1,o,s,a,u,d,f,p;const m=new nR(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(o=m.get(r),r&&o[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=o[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,rR(m,r)),r=t[r],p=!0);else if(o[1]._container){for(a=r,s=void 0;a--;)if(u=m.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(o[1].end={...m.get(s)[1].start},d=m.slice(s,r),d.unshift(o),m.splice(s,r-s+1,d))}}return Yt(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}function rR(e,t){const r=e.get(t)[1],o=e.get(t)[2];let s=t-1;const a=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],p={};let m,g,v=-1,w=r,S=0,b=0;const R=[b];for(;w;){for(;e.get(++s)[1]!==w;);a.push(s),w._tokenizer||(m=o.sliceStream(w),w.next||m.push(null),g&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=w,w=w.next}for(w=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(b=v+1,R.push(b),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):R.pop(),v=R.length;v--;){const C=d.slice(R[v],R[v+1]),I=a.pop();f.push([I,I+C.length-1]),e.splice(I,2,C)}for(f.reverse(),v=-1;++v<f.length;)p[S+f[v][0]]=S+f[v][1],S+=f[v][1]-f[v][0]-1;return p}const iR={resolve:lR,tokenize:sR},oR={partial:!0,tokenize:aR};function lR(e){return Vv(e),e}function sR(e,t){let r;return o;function o(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?a(d):Se(d)?e.check(oR,u,a)(d):(e.consume(d),s)}function a(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function u(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function aR(e,t,r){const o=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),_e(e,a,"linePrefix")}function a(u){if(u===null||Se(u))return r(u);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(o.parser.constructs.flow,r,t)(u)}}function Hv(e,t,r,o,s,a,u,d,f){const p=f||Number.POSITIVE_INFINITY;let m=0;return g;function g(C){return C===60?(e.enter(o),e.enter(s),e.enter(a),e.consume(C),e.exit(a),v):C===null||C===32||C===41||Zs(C)?r(C):(e.enter(o),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),b(C))}function v(C){return C===62?(e.enter(a),e.consume(C),e.exit(a),e.exit(s),e.exit(o),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),w(C))}function w(C){return C===62?(e.exit("chunkString"),e.exit(d),v(C)):C===null||C===60||Se(C)?r(C):(e.consume(C),C===92?S:w)}function S(C){return C===60||C===62||C===92?(e.consume(C),w):w(C)}function b(C){return!m&&(C===null||C===41||Be(C))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(o),t(C)):m<p&&C===40?(e.consume(C),m++,b):C===41?(e.consume(C),m--,b):C===null||C===32||C===40||Zs(C)?r(C):(e.consume(C),C===92?R:b)}function R(C){return C===40||C===41||C===92?(e.consume(C),b):b(C)}}function qv(e,t,r,o,s,a){const u=this;let d=0,f;return p;function p(w){return e.enter(o),e.enter(s),e.consume(w),e.exit(s),e.enter(a),m}function m(w){return d>999||w===null||w===91||w===93&&!f||w===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(w):w===93?(e.exit(a),e.enter(s),e.consume(w),e.exit(s),e.exit(o),t):Se(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||w===91||w===93||Se(w)||d++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!Ae(w)),w===92?v:g)}function v(w){return w===91||w===92||w===93?(e.consume(w),d++,g):g(w)}}function Wv(e,t,r,o,s,a){let u;return d;function d(v){return v===34||v===39||v===40?(e.enter(o),e.enter(s),e.consume(v),e.exit(s),u=v===40?41:v,f):r(v)}function f(v){return v===u?(e.enter(s),e.consume(v),e.exit(s),e.exit(o),t):(e.enter(a),p(v))}function p(v){return v===u?(e.exit(a),f(u)):v===null?r(v):Se(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),_e(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===u||v===null||Se(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:m)}function g(v){return v===u||v===92?(e.consume(v),m):m(v)}}function Xo(e,t){let r;return o;function o(s){return Se(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,o):Ae(s)?_e(e,o,r?"linePrefix":"lineSuffix")(s):t(s)}}const uR={name:"definition",tokenize:dR},cR={partial:!0,tokenize:fR};function dR(e,t,r){const o=this;let s;return a;function a(w){return e.enter("definition"),u(w)}function u(w){return qv.call(o,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function d(w){return s=xn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return Be(w)?Xo(e,p)(w):p(w)}function p(w){return Hv(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(cR,g,g)(w)}function g(w){return Ae(w)?_e(e,v,"whitespace")(w):v(w)}function v(w){return w===null||Se(w)?(e.exit("definition"),o.parser.defined.push(s),t(w)):r(w)}}function fR(e,t,r){return o;function o(d){return Be(d)?Xo(e,s)(d):r(d)}function s(d){return Wv(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function a(d){return Ae(d)?_e(e,u,"whitespace")(d):u(d)}function u(d){return d===null||Se(d)?t(d):r(d)}}const pR={name:"hardBreakEscape",tokenize:hR};function hR(e,t,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),s}function s(a){return Se(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const mR={name:"headingAtx",resolve:gR,tokenize:yR};function gR(e,t){let r=e.length-2,o=3,s,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(s={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},Yt(e,o,r-o+1,[["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t]])),e}function yR(e,t,r){let o=0;return s;function s(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&o++<6?(e.consume(m),u):m===null||Be(m)?(e.exit("atxHeadingSequence"),d(m)):r(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Se(m)?(e.exit("atxHeading"),t(m)):Ae(m)?_e(e,d,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),d(m))}function p(m){return m===null||m===35||Be(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),p)}}const xR=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],og=["pre","script","style","textarea"],vR={concrete:!0,name:"htmlFlow",resolveTo:SR,tokenize:bR},wR={partial:!0,tokenize:ER},kR={partial:!0,tokenize:CR};function SR(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function bR(e,t,r){const o=this;let s,a,u,d,f;return p;function p(j){return m(j)}function m(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),g}function g(j){return j===33?(e.consume(j),v):j===47?(e.consume(j),a=!0,b):j===63?(e.consume(j),s=3,o.interrupt?t:E):Rt(j)?(e.consume(j),u=String.fromCharCode(j),R):r(j)}function v(j){return j===45?(e.consume(j),s=2,w):j===91?(e.consume(j),s=5,d=0,S):Rt(j)?(e.consume(j),s=4,o.interrupt?t:E):r(j)}function w(j){return j===45?(e.consume(j),o.interrupt?t:E):r(j)}function S(j){const ye="CDATA[";return j===ye.charCodeAt(d++)?(e.consume(j),d===ye.length?o.interrupt?t:se:S):r(j)}function b(j){return Rt(j)?(e.consume(j),u=String.fromCharCode(j),R):r(j)}function R(j){if(j===null||j===47||j===62||Be(j)){const ye=j===47,be=u.toLowerCase();return!ye&&!a&&og.includes(be)?(s=1,o.interrupt?t(j):se(j)):xR.includes(u.toLowerCase())?(s=6,ye?(e.consume(j),C):o.interrupt?t(j):se(j)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(j):a?I(j):_(j))}return j===45||bt(j)?(e.consume(j),u+=String.fromCharCode(j),R):r(j)}function C(j){return j===62?(e.consume(j),o.interrupt?t:se):r(j)}function I(j){return Ae(j)?(e.consume(j),I):z(j)}function _(j){return j===47?(e.consume(j),z):j===58||j===95||Rt(j)?(e.consume(j),B):Ae(j)?(e.consume(j),_):z(j)}function B(j){return j===45||j===46||j===58||j===95||bt(j)?(e.consume(j),B):q(j)}function q(j){return j===61?(e.consume(j),A):Ae(j)?(e.consume(j),q):_(j)}function A(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(e.consume(j),f=j,W):Ae(j)?(e.consume(j),A):K(j)}function W(j){return j===f?(e.consume(j),f=null,le):j===null||Se(j)?r(j):(e.consume(j),W)}function K(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Be(j)?q(j):(e.consume(j),K)}function le(j){return j===47||j===62||Ae(j)?_(j):r(j)}function z(j){return j===62?(e.consume(j),re):r(j)}function re(j){return j===null||Se(j)?se(j):Ae(j)?(e.consume(j),re):r(j)}function se(j){return j===45&&s===2?(e.consume(j),de):j===60&&s===1?(e.consume(j),ae):j===62&&s===4?(e.consume(j),D):j===63&&s===3?(e.consume(j),E):j===93&&s===5?(e.consume(j),ue):Se(j)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(wR,G,oe)(j)):j===null||Se(j)?(e.exit("htmlFlowData"),oe(j)):(e.consume(j),se)}function oe(j){return e.check(kR,X,G)(j)}function X(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),U}function U(j){return j===null||Se(j)?oe(j):(e.enter("htmlFlowData"),se(j))}function de(j){return j===45?(e.consume(j),E):se(j)}function ae(j){return j===47?(e.consume(j),u="",Z):se(j)}function Z(j){if(j===62){const ye=u.toLowerCase();return og.includes(ye)?(e.consume(j),D):se(j)}return Rt(j)&&u.length<8?(e.consume(j),u+=String.fromCharCode(j),Z):se(j)}function ue(j){return j===93?(e.consume(j),E):se(j)}function E(j){return j===62?(e.consume(j),D):j===45&&s===2?(e.consume(j),E):se(j)}function D(j){return j===null||Se(j)?(e.exit("htmlFlowData"),G(j)):(e.consume(j),D)}function G(j){return e.exit("htmlFlow"),t(j)}}function CR(e,t,r){const o=this;return s;function s(u){return Se(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):r(u)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}function ER(e,t,r){return o;function o(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(cl,t,r)}}const jR={name:"htmlText",tokenize:RR};function RR(e,t,r){const o=this;let s,a,u;return d;function d(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),p):E===47?(e.consume(E),q):E===63?(e.consume(E),_):Rt(E)?(e.consume(E),K):r(E)}function p(E){return E===45?(e.consume(E),m):E===91?(e.consume(E),a=0,S):Rt(E)?(e.consume(E),I):r(E)}function m(E){return E===45?(e.consume(E),w):r(E)}function g(E){return E===null?r(E):E===45?(e.consume(E),v):Se(E)?(u=g,ae(E)):(e.consume(E),g)}function v(E){return E===45?(e.consume(E),w):g(E)}function w(E){return E===62?de(E):E===45?v(E):g(E)}function S(E){const D="CDATA[";return E===D.charCodeAt(a++)?(e.consume(E),a===D.length?b:S):r(E)}function b(E){return E===null?r(E):E===93?(e.consume(E),R):Se(E)?(u=b,ae(E)):(e.consume(E),b)}function R(E){return E===93?(e.consume(E),C):b(E)}function C(E){return E===62?de(E):E===93?(e.consume(E),C):b(E)}function I(E){return E===null||E===62?de(E):Se(E)?(u=I,ae(E)):(e.consume(E),I)}function _(E){return E===null?r(E):E===63?(e.consume(E),B):Se(E)?(u=_,ae(E)):(e.consume(E),_)}function B(E){return E===62?de(E):_(E)}function q(E){return Rt(E)?(e.consume(E),A):r(E)}function A(E){return E===45||bt(E)?(e.consume(E),A):W(E)}function W(E){return Se(E)?(u=W,ae(E)):Ae(E)?(e.consume(E),W):de(E)}function K(E){return E===45||bt(E)?(e.consume(E),K):E===47||E===62||Be(E)?le(E):r(E)}function le(E){return E===47?(e.consume(E),de):E===58||E===95||Rt(E)?(e.consume(E),z):Se(E)?(u=le,ae(E)):Ae(E)?(e.consume(E),le):de(E)}function z(E){return E===45||E===46||E===58||E===95||bt(E)?(e.consume(E),z):re(E)}function re(E){return E===61?(e.consume(E),se):Se(E)?(u=re,ae(E)):Ae(E)?(e.consume(E),re):le(E)}function se(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),s=E,oe):Se(E)?(u=se,ae(E)):Ae(E)?(e.consume(E),se):(e.consume(E),X)}function oe(E){return E===s?(e.consume(E),s=void 0,U):E===null?r(E):Se(E)?(u=oe,ae(E)):(e.consume(E),oe)}function X(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||Be(E)?le(E):(e.consume(E),X)}function U(E){return E===47||E===62||Be(E)?le(E):r(E)}function de(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function ae(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Z}function Z(E){return Ae(E)?_e(e,ue,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ue(E)}function ue(E){return e.enter("htmlTextData"),u(E)}}const rf={name:"labelEnd",resolveAll:PR,resolveTo:AR,tokenize:LR},NR={tokenize:_R},TR={tokenize:$R},IR={tokenize:DR};function PR(e){let t=-1;const r=[];for(;++t<e.length;){const o=e[t][1];if(r.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",t+=s}}return e.length!==r.length&&Yt(e,0,e.length,r),e}function AR(e,t){let r=e.length,o=0,s,a,u,d;for(;r--;)if(s=e[r][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=r,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(u=r);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[a+o+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,t],["enter",p,t]],d=sn(d,e.slice(a+1,a+o+3)),d=sn(d,[["enter",m,t]]),d=sn(d,xa(t.parser.constructs.insideSpan.null,e.slice(a+o+4,u-3),t)),d=sn(d,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),d=sn(d,e.slice(u+1)),d=sn(d,[["exit",f,t]]),Yt(e,a,e.length,d),e}function LR(e,t,r){const o=this;let s=o.events.length,a,u;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){a=o.events[s][1];break}return d;function d(v){return a?a._inactive?g(v):(u=o.parser.defined.includes(xn(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),f):r(v)}function f(v){return v===40?e.attempt(NR,m,u?m:g)(v):v===91?e.attempt(TR,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(IR,m,g)(v)}function m(v){return t(v)}function g(v){return a._balanced=!0,r(v)}}function _R(e,t,r){return o;function o(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return Be(g)?Xo(e,a)(g):a(g)}function a(g){return g===41?m(g):Hv(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return Be(g)?Xo(e,f)(g):m(g)}function d(g){return r(g)}function f(g){return g===34||g===39||g===40?Wv(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function p(g){return Be(g)?Xo(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function $R(e,t,r){const o=this;return s;function s(d){return qv.call(o,e,a,u,"reference","referenceMarker","referenceString")(d)}function a(d){return o.parser.defined.includes(xn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function u(d){return r(d)}}function DR(e,t,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),s}function s(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const zR={name:"labelStartImage",resolveAll:rf.resolveAll,tokenize:OR};function OR(e,t,r){const o=this;return s;function s(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),a}function a(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):t(d)}}const MR={name:"labelStartLink",resolveAll:rf.resolveAll,tokenize:FR};function FR(e,t,r){const o=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):t(u)}}const Cc={name:"lineEnding",tokenize:BR};function BR(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),_e(e,t,"linePrefix")}}const Us={name:"thematicBreak",tokenize:UR};function UR(e,t,r){let o=0,s;return a;function a(p){return e.enter("thematicBreak"),u(p)}function u(p){return s=p,d(p)}function d(p){return p===s?(e.enter("thematicBreakSequence"),f(p)):o>=3&&(p===null||Se(p))?(e.exit("thematicBreak"),t(p)):r(p)}function f(p){return p===s?(e.consume(p),o++,f):(e.exit("thematicBreakSequence"),Ae(p)?_e(e,d,"whitespace")(p):d(p))}}const Dt={continuation:{tokenize:WR},exit:JR,name:"list",tokenize:qR},VR={partial:!0,tokenize:KR},HR={partial:!0,tokenize:GR};function qR(e,t,r){const o=this,s=o.events[o.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return d;function d(w){const S=o.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!o.containerState.marker||w===o.containerState.marker:dd(w)){if(o.containerState.type||(o.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Us,r,p)(w):p(w);if(!o.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return dd(w)&&++u<10?(e.consume(w),f):(!o.interrupt||u<2)&&(o.containerState.marker?w===o.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),p(w)):r(w)}function p(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||w,e.check(cl,o.interrupt?r:m,e.attempt(VR,v,g))}function m(w){return o.containerState.initialBlankLine=!0,a++,v(w)}function g(w){return Ae(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),v):r(w)}function v(w){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function WR(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(cl,s,a);function s(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,_e(e,t,"listItemIndent",o.containerState.size+1)(d)}function a(d){return o.containerState.furtherBlankLines||!Ae(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(HR,t,u)(d))}function u(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,_e(e,e.attempt(Dt,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function GR(e,t,r){const o=this;return _e(e,s,"listItemIndent",o.containerState.size+1);function s(a){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?t(a):r(a)}}function JR(e){e.exit(this.containerState.type)}function KR(e,t,r){const o=this;return _e(e,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const u=o.events[o.events.length-1];return!Ae(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const lg={name:"setextUnderline",resolveTo:QR,tokenize:YR};function QR(e,t){let r=e.length,o,s,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",a?(e.splice(s,0,["enter",u,t]),e.splice(a+1,0,["exit",e[o][1],t]),e[o][1].end={...e[a][1].end}):e[o][1]=u,e.push(["exit",u,t]),e}function YR(e,t,r){const o=this;let s;return a;function a(p){let m=o.events.length,g;for(;m--;)if(o.events[m][1].type!=="lineEnding"&&o.events[m][1].type!=="linePrefix"&&o.events[m][1].type!=="content"){g=o.events[m][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(e.enter("setextHeadingLine"),s=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===s?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),Ae(p)?_e(e,f,"lineSuffix")(p):f(p))}function f(p){return p===null||Se(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const XR={tokenize:ZR};function ZR(e){const t=this,r=e.attempt(cl,o,e.attempt(this.parser.constructs.flowInitial,s,_e(e,e.attempt(this.parser.constructs.flow,s,e.attempt(iR,s)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const eN={resolveAll:Jv()},tN=Gv("string"),nN=Gv("text");function Gv(e){return{resolveAll:Jv(e==="text"?rN:void 0),tokenize:t};function t(r){const o=this,s=this.parser.constructs[e],a=r.attempt(s,u,d);return u;function u(m){return p(m)?a(m):d(m)}function d(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return p(m)?(r.exit("data"),a(m)):(r.consume(m),f)}function p(m){if(m===null)return!0;const g=s[m];let v=-1;if(g)for(;++v<g.length;){const w=g[v];if(!w.previous||w.previous.call(o,o.previous))return!0}return!1}}}function Jv(e){return t;function t(r,o){let s=-1,a;for(;++s<=r.length;)a===void 0?r[s]&&r[s][1].type==="data"&&(a=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==a+2&&(r[a][1].end=r[s-1][1].end,r.splice(a+2,s-a-2),s=a+2),a=void 0);return e?e(r,o):r}}function rN(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],s=t.sliceStream(o);let a=s.length,u=-1,d=0,f;for(;a--;){const p=s[a];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(p===-2)f=!0,d++;else if(p!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:o.start._bufferIndex+u,_index:o.start._index+a,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const iN={42:Dt,43:Dt,45:Dt,48:Dt,49:Dt,50:Dt,51:Dt,52:Dt,53:Dt,54:Dt,55:Dt,56:Dt,57:Dt,62:Fv},oN={91:uR},lN={[-2]:bc,[-1]:bc,32:bc},sN={35:mR,42:Us,45:[lg,Us],60:vR,61:lg,95:Us,96:ig,126:ig},aN={38:Uv,92:Bv},uN={[-5]:Cc,[-4]:Cc,[-3]:Cc,33:zR,38:Uv,42:fd,60:[M2,jR],91:MR,92:[pR,Bv],93:rf,95:fd,96:X2},cN={null:[fd,eN]},dN={null:[42,95]},fN={null:[]},pN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:dN,contentInitial:oN,disable:fN,document:iN,flow:sN,flowInitial:lN,insideSpan:cN,string:aN,text:uN},Symbol.toStringTag,{value:"Module"}));function hN(e,t,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},a=[];let u=[],d=[];const f={attempt:W(q),check:W(A),consume:I,enter:_,exit:B,interrupt:W(A,{interrupt:!0})},p={code:null,containerState:{},defineSkip:b,events:[],now:S,parser:e,previous:null,sliceSerialize:v,sliceStream:w,write:g};let m=t.tokenize.call(p,f);return t.resolveAll&&a.push(t),p;function g(re){return u=sn(u,re),R(),u[u.length-1]!==null?[]:(K(t,0),p.events=xa(a,p.events,p),p.events)}function v(re,se){return gN(w(re),se)}function w(re){return mN(u,re)}function S(){const{_bufferIndex:re,_index:se,line:oe,column:X,offset:U}=o;return{_bufferIndex:re,_index:se,line:oe,column:X,offset:U}}function b(re){s[re.line]=re.column,z()}function R(){let re;for(;o._index<u.length;){const se=u[o._index];if(typeof se=="string")for(re=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===re&&o._bufferIndex<se.length;)C(se.charCodeAt(o._bufferIndex));else C(se)}}function C(re){m=m(re)}function I(re){Se(re)?(o.line++,o.column=1,o.offset+=re===-3?2:1,z()):re!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=re}function _(re,se){const oe=se||{};return oe.type=re,oe.start=S(),p.events.push(["enter",oe,p]),d.push(oe),oe}function B(re){const se=d.pop();return se.end=S(),p.events.push(["exit",se,p]),se}function q(re,se){K(re,se.from)}function A(re,se){se.restore()}function W(re,se){return oe;function oe(X,U,de){let ae,Z,ue,E;return Array.isArray(X)?G(X):"tokenize"in X?G([X]):D(X);function D(fe){return ge;function ge(ve){const Ce=ve!==null&&fe[ve],Je=ve!==null&&fe.null,Tt=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(Je)?Je:Je?[Je]:[]];return G(Tt)(ve)}}function G(fe){return ae=fe,Z=0,fe.length===0?de:j(fe[Z])}function j(fe){return ge;function ge(ve){return E=le(),ue=fe,fe.partial||(p.currentConstruct=fe),fe.name&&p.parser.constructs.disable.null.includes(fe.name)?be():fe.tokenize.call(se?Object.assign(Object.create(p),se):p,f,ye,be)(ve)}}function ye(fe){return re(ue,E),U}function be(fe){return E.restore(),++Z<ae.length?j(ae[Z]):de}}}function K(re,se){re.resolveAll&&!a.includes(re)&&a.push(re),re.resolve&&Yt(p.events,se,p.events.length-se,re.resolve(p.events.slice(se),p)),re.resolveTo&&(p.events=re.resolveTo(p.events,p))}function le(){const re=S(),se=p.previous,oe=p.currentConstruct,X=p.events.length,U=Array.from(d);return{from:X,restore:de};function de(){o=re,p.previous=se,p.currentConstruct=oe,p.events.length=X,d=U,z()}}function z(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function mN(e,t){const r=t.start._index,o=t.start._bufferIndex,s=t.end._index,a=t.end._bufferIndex;let u;if(r===s)u=[e[r].slice(o,a)];else{if(u=e.slice(r,s),o>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(o):u.shift()}a>0&&u.push(e[s].slice(0,a))}return u}function gN(e,t){let r=-1;const o=[];let s;for(;++r<e.length;){const a=e[r];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
|
|
845
|
-
`;break}case-3:{u=`\r
|
|
846
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(a)}s=a===-2,o.push(u)}return o.join("")}function yN(e){const o={constructs:Ov([pN,...(e||{}).extensions||[]]),content:s(A2),defined:[],document:s(_2),flow:s(XR),lazy:{},string:s(tN),text:s(nN)};return o;function s(a){return u;function u(d){return hN(o,a,d)}}}function xN(e){for(;!Vv(e););return e}const sg=/[\0\t\n\r]/g;function vN(){let e=1,t="",r=!0,o;return s;function s(a,u,d){const f=[];let p,m,g,v,w;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),g=0,t="",r&&(a.charCodeAt(0)===65279&&g++,r=void 0);g<a.length;){if(sg.lastIndex=g,p=sg.exec(a),v=p&&p.index!==void 0?p.index:a.length,w=a.charCodeAt(v),!p){t=a.slice(g);break}if(w===10&&g===v&&o)f.push(-3),o=void 0;else switch(o&&(f.push(-5),o=void 0),g<v&&(f.push(a.slice(g,v)),e+=v-g),w){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:o=!0,e=1}g=v+1}return d&&(o&&f.push(-5),t&&f.push(t),f.push(null)),f}}const wN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kN(e){return e.replace(wN,SN)}function SN(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),a=s===120||s===88;return Mv(r.slice(a?2:1),a?16:10)}return nf(r)||e}const Kv={}.hasOwnProperty;function bN(e,t,r){return typeof t!="string"&&(r=t,t=void 0),CN(r)(xN(yN(r).document().write(vN()(e,t,!0))))}function CN(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Gr),autolinkProtocol:le,autolinkEmail:le,atxHeading:a(Ki),blockQuote:a(Je),characterEscape:le,characterReference:le,codeFenced:a(Tt),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(Tt,u),codeText:a(Ft,u),codeTextData:le,data:le,codeFlowValue:le,definition:a(qr),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Ji),hardBreakEscape:a(Qi),hardBreakTrailing:a(Qi),htmlFlow:a(Wr,u),htmlFlowData:le,htmlText:a(Wr,u),htmlTextData:le,image:a(hl),label:u,link:a(Gr),listItem:a(Hn),listItemValue:v,listOrdered:a(Vn,g),listUnordered:a(Vn),paragraph:a(Yi),reference:j,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(Ki),strong:a(ml),thematicBreak:a(yl)},exit:{atxHeading:f(),atxHeadingSequence:q,autolink:f(),autolinkEmail:Ce,autolinkProtocol:ve,blockQuote:f(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:fe,characterReference:ge,codeFenced:f(R),codeFencedFence:b,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:z,codeIndented:f(C),codeText:f(U),codeTextData:z,data:z,definition:f(),definitionDestinationString:B,definitionLabelString:I,definitionTitleString:_,emphasis:f(),hardBreakEscape:f(se),hardBreakTrailing:f(se),htmlFlow:f(oe),htmlFlowData:z,htmlText:f(X),htmlTextData:z,image:f(ae),label:ue,labelText:Z,lineEnding:re,link:f(de),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ye,resourceDestinationString:E,resourceTitleString:D,resource:G,setextHeading:f(K),setextHeadingLineSequence:W,setextHeadingText:A,strong:f(),thematicBreak:f()}};Qv(t,(e||{}).mdastExtensions||[]);const r={};return o;function o(J){let ie={type:"root",children:[]};const Ee={stack:[ie],tokenStack:[],config:t,enter:d,exit:p,buffer:u,resume:m,data:r},Ie=[];let $e=-1;for(;++$e<J.length;)if(J[$e][1].type==="listOrdered"||J[$e][1].type==="listUnordered")if(J[$e][0]==="enter")Ie.push($e);else{const pt=Ie.pop();$e=s(J,pt,$e)}for($e=-1;++$e<J.length;){const pt=t[J[$e][0]];Kv.call(pt,J[$e][1].type)&&pt[J[$e][1].type].call(Object.assign({sliceSerialize:J[$e][2].sliceSerialize},Ee),J[$e][1])}if(Ee.tokenStack.length>0){const pt=Ee.tokenStack[Ee.tokenStack.length-1];(pt[1]||ag).call(Ee,void 0,pt[0])}for(ie.position={start:dr(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:dr(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e<t.transforms.length;)ie=t.transforms[$e](ie)||ie;return ie}function s(J,ie,Ee){let Ie=ie-1,$e=-1,pt=!1,An,Zt,qn,wr;for(;++Ie<=Ee;){const ht=J[Ie];switch(ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ht[0]==="enter"?$e++:$e--,wr=void 0;break}case"lineEndingBlank":{ht[0]==="enter"&&(An&&!wr&&!$e&&!qn&&(qn=Ie),wr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wr=void 0}if(!$e&&ht[0]==="enter"&&ht[1].type==="listItemPrefix"||$e===-1&&ht[0]==="exit"&&(ht[1].type==="listUnordered"||ht[1].type==="listOrdered")){if(An){let kn=Ie;for(Zt=void 0;kn--;){const Bt=J[kn];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;Zt&&(J[Zt][1].type="lineEndingBlank",pt=!0),Bt[1].type="lineEnding",Zt=kn}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}qn&&(!Zt||qn<Zt)&&(An._spread=!0),An.end=Object.assign({},Zt?J[Zt][1].start:ht[1].end),J.splice(Zt||Ie,0,["exit",An,ht[2]]),Ie++,Ee++}if(ht[1].type==="listItemPrefix"){const kn={type:"listItem",_spread:!1,start:Object.assign({},ht[1].start),end:void 0};An=kn,J.splice(Ie,0,["enter",kn,ht[2]]),Ie++,Ee++,qn=void 0,wr=!0}}}return J[ie][1]._spread=pt,Ee}function a(J,ie){return Ee;function Ee(Ie){d.call(this,J(Ie),Ie),ie&&ie.call(this,Ie)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(J,ie,Ee){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([ie,Ee||void 0]),J.position={start:dr(ie.start),end:void 0}}function f(J){return ie;function ie(Ee){J&&J.call(this,Ee),p.call(this,Ee)}}function p(J,ie){const Ee=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie)Ie[0].type!==J.type&&(ie?ie.call(this,J,Ie[0]):(Ie[1]||ag).call(this,J,Ie[0]));else throw new Error("Cannot close `"+J.type+"` ("+Yo({start:J.start,end:J.end})+"): it’s not open");Ee.position.end=dr(J.end)}function m(){return tf(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(J){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function w(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=J}function S(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=J}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J.replace(/(\r?\n|\r)$/g,"")}function I(J){const ie=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=ie,Ee.identifier=xn(this.sliceSerialize(J)).toLowerCase()}function _(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.title=J}function B(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.url=J}function q(J){const ie=this.stack[this.stack.length-1];if(!ie.depth){const Ee=this.sliceSerialize(J).length;ie.depth=Ee}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function W(J){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function le(J){const Ee=this.stack[this.stack.length-1].children;let Ie=Ee[Ee.length-1];(!Ie||Ie.type!=="text")&&(Ie=gl(),Ie.position={start:dr(J.start),end:void 0},Ee.push(Ie)),this.stack.push(Ie)}function z(J){const ie=this.stack.pop();ie.value+=this.sliceSerialize(J),ie.position.end=dr(J.end)}function re(J){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ee=ie.children[ie.children.length-1];Ee.position.end=dr(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(le.call(this,J),z.call(this,J))}function se(){this.data.atHardBreak=!0}function oe(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function X(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function U(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function de(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ie,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function ae(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ie,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function Z(J){const ie=this.sliceSerialize(J),Ee=this.stack[this.stack.length-2];Ee.label=kN(ie),Ee.identifier=xn(ie).toLowerCase()}function ue(){const J=this.stack[this.stack.length-1],ie=this.resume(),Ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ee.type==="link"){const Ie=J.children;Ee.children=Ie}else Ee.alt=ie}function E(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.url=J}function D(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.title=J}function G(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function ye(J){const ie=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=ie,Ee.identifier=xn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function be(J){this.data.characterReferenceType=J.type}function fe(J){const ie=this.sliceSerialize(J),Ee=this.data.characterReferenceType;let Ie;Ee?(Ie=Mv(ie,Ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ie=nf(ie);const $e=this.stack[this.stack.length-1];$e.value+=Ie}function ge(J){const ie=this.stack.pop();ie.position.end=dr(J.end)}function ve(J){z.call(this,J);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(J)}function Ce(J){z.call(this,J);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(J)}function Je(){return{type:"blockquote",children:[]}}function Tt(){return{type:"code",lang:null,meta:null,value:""}}function Ft(){return{type:"inlineCode",value:""}}function qr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ji(){return{type:"emphasis",children:[]}}function Ki(){return{type:"heading",depth:0,children:[]}}function Qi(){return{type:"break"}}function Wr(){return{type:"html",value:""}}function hl(){return{type:"image",title:null,url:"",alt:null}}function Gr(){return{type:"link",title:null,url:"",children:[]}}function Vn(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function Hn(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Yi(){return{type:"paragraph",children:[]}}function ml(){return{type:"strong",children:[]}}function gl(){return{type:"text",value:""}}function yl(){return{type:"thematicBreak"}}}function dr(e){return{line:e.line,column:e.column,offset:e.offset}}function Qv(e,t){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?Qv(e,o):EN(e,o)}}function EN(e,t){let r;for(r in t)if(Kv.call(t,r))switch(r){case"canContainEols":{const o=t[r];o&&e[r].push(...o);break}case"transforms":{const o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{const o=t[r];o&&Object.assign(e[r],o);break}}}function ag(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yo({start:t.start,end:t.end})+") is still open")}function jN(e){const t=this;t.parser=r;function r(o){return bN(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function RN(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function NN(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
847
|
-
`}]}function TN(e,t){const r=t.value?t.value+`
|
|
848
|
-
`:"",o={};t.lang&&(o.className=["language-"+t.lang]);let s={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function IN(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function PN(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function AN(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(t.identifier).toUpperCase(),s=Gi(o.toLowerCase()),a=e.footnoteOrder.indexOf(o);let u,d=e.footnoteCounts.get(o);d===void 0?(d=0,e.footnoteOrder.push(o),u=e.footnoteOrder.length):u=a+1,d+=1,e.footnoteCounts.set(o,d);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const p={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,p),e.applyData(t,p)}function LN(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _N(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Yv(e,t){const r=t.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+o}];const s=e.all(t),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=o:s.push({type:"text",value:o}),s}function $N(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return Yv(e,t);const s={src:Gi(o.url||""),alt:t.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const a={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,a),e.applyData(t,a)}function DN(e,t){const r={src:Gi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function zN(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,o),e.applyData(t,o)}function ON(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return Yv(e,t);const s={href:Gi(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const a={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function MN(e,t){const r={href:Gi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function FN(e,t,r){const o=e.all(t),s=r?BN(r):Xv(t),a={},u=[];if(typeof t.checked=="boolean"){const m=o[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},o.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let d=-1;for(;++d<o.length;){const m=o[d];(s||d!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
849
|
-
`}),m.type==="element"&&m.tagName==="p"&&!s?u.push(...m.children):u.push(m)}const f=o[o.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
|
|
850
|
-
`});const p={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,p),e.applyData(t,p)}function BN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let o=-1;for(;!t&&++o<r.length;)t=Xv(r[o])}return t}function Xv(e){const t=e.spread;return t??e.children.length>1}function UN(e,t){const r={},o=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++s<o.length;){const u=o[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)}function VN(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function HN(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function qN(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function WN(e,t){const r=e.all(t),o=r.shift(),s=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(t.children[0],u),s.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Yd(t.children[1]),f=Pv(t.children[t.children.length-1]);d&&f&&(u.position={start:d,end:f}),s.push(u)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,a),e.applyData(t,a)}function GN(e,t,r){const o=r?r.children:void 0,a=(o?o.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:t.children.length;let f=-1;const p=[];for(;++f<d;){const g=t.children[f],v={},w=u?u[f]:void 0;w&&(v.align=w);let S={type:"element",tagName:a,properties:v,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),p.push(S)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,m),e.applyData(t,m)}function JN(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const ug=9,cg=32;function KN(e){const t=String(e),r=/\r?\n|\r/g;let o=r.exec(t),s=0;const a=[];for(;o;)a.push(dg(t.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=r.exec(t);return a.push(dg(t.slice(s),s>0,!1)),a.join("")}function dg(e,t,r){let o=0,s=e.length;if(t){let a=e.codePointAt(o);for(;a===ug||a===cg;)o++,a=e.codePointAt(o)}if(r){let a=e.codePointAt(s-1);for(;a===ug||a===cg;)s--,a=e.codePointAt(s-1)}return s>o?e.slice(o,s):""}function QN(e,t){const r={type:"text",value:KN(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function YN(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const XN={blockquote:RN,break:NN,code:TN,delete:IN,emphasis:PN,footnoteReference:AN,heading:LN,html:_N,imageReference:$N,image:DN,inlineCode:zN,linkReference:ON,link:MN,listItem:FN,list:UN,paragraph:VN,root:HN,strong:qN,table:WN,tableCell:JN,tableRow:GN,text:QN,thematicBreak:YN,toml:Ts,yaml:Ts,definition:Ts,footnoteDefinition:Ts};function Ts(){}const Zv=-1,va=0,ea=1,ta=2,of=3,lf=4,sf=5,af=6,e0=7,t0=8,fg=typeof self=="object"?self:globalThis,ZN=(e,t)=>{const r=(s,a)=>(e.set(a,s),s),o=s=>{if(e.has(s))return e.get(s);const[a,u]=t[s];switch(a){case va:case Zv:return r(u,s);case ea:{const d=r([],s);for(const f of u)d.push(o(f));return d}case ta:{const d=r({},s);for(const[f,p]of u)d[o(f)]=o(p);return d}case of:return r(new Date(u),s);case lf:{const{source:d,flags:f}=u;return r(new RegExp(d,f),s)}case sf:{const d=r(new Map,s);for(const[f,p]of u)d.set(o(f),o(p));return d}case af:{const d=r(new Set,s);for(const f of u)d.add(o(f));return d}case e0:{const{name:d,message:f}=u;return r(new fg[d](f),s)}case t0:return r(BigInt(u),s);case"BigInt":return r(Object(BigInt(u)),s)}return r(new fg[a](u),s)};return o},pg=e=>ZN(new Map,e)(0),Si="",{toString:eT}={},{keys:tT}=Object,Wo=e=>{const t=typeof e;if(t!=="object"||!e)return[va,t];const r=eT.call(e).slice(8,-1);switch(r){case"Array":return[ea,Si];case"Object":return[ta,Si];case"Date":return[of,Si];case"RegExp":return[lf,Si];case"Map":return[sf,Si];case"Set":return[af,Si]}return r.includes("Array")?[ea,r]:r.includes("Error")?[e0,r]:[ta,r]},Is=([e,t])=>e===va&&(t==="function"||t==="symbol"),nT=(e,t,r,o)=>{const s=(u,d)=>{const f=o.push(u)-1;return r.set(d,f),f},a=u=>{if(r.has(u))return r.get(u);let[d,f]=Wo(u);switch(d){case va:{let m=u;switch(f){case"bigint":d=t0,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return s([Zv],u)}return s([d,m],u)}case ea:{if(f)return s([f,[...u]],u);const m=[],g=s([d,m],u);for(const v of u)m.push(a(v));return g}case ta:{if(f)switch(f){case"BigInt":return s([f,u.toString()],u);case"Boolean":case"Number":case"String":return s([f,u.valueOf()],u)}if(t&&"toJSON"in u)return a(u.toJSON());const m=[],g=s([d,m],u);for(const v of tT(u))(e||!Is(Wo(u[v])))&&m.push([a(v),a(u[v])]);return g}case of:return s([d,u.toISOString()],u);case lf:{const{source:m,flags:g}=u;return s([d,{source:m,flags:g}],u)}case sf:{const m=[],g=s([d,m],u);for(const[v,w]of u)(e||!(Is(Wo(v))||Is(Wo(w))))&&m.push([a(v),a(w)]);return g}case af:{const m=[],g=s([d,m],u);for(const v of u)(e||!Is(Wo(v)))&&m.push(a(v));return g}}const{message:p}=u;return s([d,{name:f,message:p}],u)};return a},hg=(e,{json:t,lossy:r}={})=>{const o=[];return nT(!(t||r),!!t,new Map,o)(e),o},na=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?pg(hg(e,t)):structuredClone(e):(e,t)=>pg(hg(e,t));function rT(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function iT(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function oT(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||rT,o=e.options.footnoteBackLabel||iT,s=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[f]);if(!p)continue;const m=e.all(p),g=String(p.identifier).toUpperCase(),v=Gi(g.toLowerCase());let w=0;const S=[],b=e.footnoteCounts.get(g);for(;b!==void 0&&++w<=b;){S.length>0&&S.push({type:"text",value:" "});let I=typeof r=="string"?r:r(f,w);typeof I=="string"&&(I={type:"text",value:I}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(f,w),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const R=m[m.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const I=R.children[R.children.length-1];I&&I.type==="text"?I.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...S)}else m.push(...S);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(p,C),d.push(C)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...na(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
851
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
852
|
-
`}]}}const wa=function(e){if(e==null)return uT;if(typeof e=="function")return ka(e);if(typeof e=="object")return Array.isArray(e)?lT(e):sT(e);if(typeof e=="string")return aT(e);throw new Error("Expected function, string, or object as test")};function lT(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=wa(e[r]);return ka(o);function o(...s){let a=-1;for(;++a<t.length;)if(t[a].apply(this,s))return!0;return!1}}function sT(e){const t=e;return ka(r);function r(o){const s=o;let a;for(a in e)if(s[a]!==t[a])return!1;return!0}}function aT(e){return ka(t);function t(r){return r&&r.type===e}}function ka(e){return t;function t(r,o,s){return!!(cT(r)&&e.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function uT(){return!0}function cT(e){return e!==null&&typeof e=="object"&&"type"in e}const n0=[],dT=!0,pd=!1,fT="skip";function r0(e,t,r,o){let s;typeof t=="function"&&typeof r!="function"?(o=r,r=t):s=t;const a=wa(s),u=o?-1:1;d(e,void 0,[])();function d(f,p,m){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const w=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(f.type+(w?"<"+w+">":""))+")"})}return v;function v(){let w=n0,S,b,R;if((!t||a(f,p,m[m.length-1]||void 0))&&(w=pT(r(f,m)),w[0]===pd))return w;if("children"in f&&f.children){const C=f;if(C.children&&w[0]!==fT)for(b=(o?C.children.length:-1)+u,R=m.concat(C);b>-1&&b<C.children.length;){const I=C.children[b];if(S=d(I,b,R)(),S[0]===pd)return S;b=typeof S[1]=="number"?S[1]:b+u}}return w}}}function pT(e){return Array.isArray(e)?e:typeof e=="number"?[dT,e]:e==null?n0:[e]}function uf(e,t,r,o){let s,a,u;typeof t=="function"?(a=void 0,u=t,s=r):(a=t,u=r,s=o),r0(e,a,d,s);function d(f,p){const m=p[p.length-1],g=m?m.children.indexOf(f):void 0;return u(f,g,m)}}const hd={}.hasOwnProperty,hT={};function mT(e,t){const r=t||hT,o=new Map,s=new Map,a=new Map,u={...XN,...r.handlers},d={all:p,applyData:yT,definitionById:o,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:u,one:f,options:r,patch:gT,wrap:vT};return uf(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?o:s,v=String(m.identifier).toUpperCase();g.has(v)||g.set(v,m)}}),d;function f(m,g){const v=m.type,w=d.handlers[v];if(hd.call(d.handlers,v)&&w)return w(d,m,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in m){const{children:b,...R}=m,C=na(R);return C.children=d.all(m),C}return na(m)}return(d.options.unknownHandler||xT)(d,m,g)}function p(m){const g=[];if("children"in m){const v=m.children;let w=-1;for(;++w<v.length;){const S=d.one(v[w],m);if(S){if(w&&v[w-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=mg(S.value)),!Array.isArray(S)&&S.type==="element")){const b=S.children[0];b&&b.type==="text"&&(b.value=mg(b.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function gT(e,t){e.position&&(t.position=i2(e))}function yT(e,t){let r=t;if(e&&e.data){const o=e.data.hName,s=e.data.hChildren,a=e.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const u="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:u}}r.type==="element"&&a&&Object.assign(r.properties,na(a)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function xT(e,t){const r=t.data||{},o="value"in t&&!(hd.call(r,"hProperties")||hd.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function vT(e,t){const r=[];let o=-1;for(t&&r.push({type:"text",value:`
|
|
853
|
-
`});++o<e.length;)o&&r.push({type:"text",value:`
|
|
854
|
-
`}),r.push(e[o]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
855
|
-
`}),r}function mg(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function gg(e,t){const r=mT(e,t),o=r.one(e,void 0),s=oT(r),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
|
|
856
|
-
`},s),a}function wT(e,t){return e&&"run"in e?async function(r,o){const s=gg(r,{file:o,...t});await e.run(s,o)}:function(r,o){return gg(r,{file:o,...e||t})}}function yg(e){if(e)throw e}var Ec,xg;function kT(){if(xg)return Ec;xg=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},a=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,m){r&&m.name==="__proto__"?r(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},d=function(p,m){if(m==="__proto__")if(e.call(p,m)){if(o)return o(p,m).value}else return;return p[m]};return Ec=function f(){var p,m,g,v,w,S,b=arguments[0],R=1,C=arguments.length,I=!1;for(typeof b=="boolean"&&(I=b,b=arguments[1]||{},R=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});R<C;++R)if(p=arguments[R],p!=null)for(m in p)g=d(b,m),v=d(p,m),b!==v&&(I&&v&&(a(v)||(w=s(v)))?(w?(w=!1,S=g&&s(g)?g:[]):S=g&&a(g)?g:{},u(b,{name:m,newValue:f(I,S,v)})):typeof v<"u"&&u(b,{name:m,newValue:v}));return b},Ec}var ST=kT();const jc=Ed(ST);function md(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bT(){const e=[],t={run:r,use:o};return t;function r(...s){let a=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...s);function d(f,...p){const m=e[++a];let g=-1;if(f){u(f);return}for(;++g<s.length;)(p[g]===null||p[g]===void 0)&&(p[g]=s[g]);s=p,m?CT(m,d)(...p):u(null,...p)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function CT(e,t){let r;return o;function o(...u){const d=e.length>u.length;let f;d&&u.push(s);try{f=e.apply(this,u)}catch(p){const m=p;if(d&&r)throw m;return s(m)}d||(f&&f.then&&typeof f.then=="function"?f.then(a,s):f instanceof Error?s(f):a(f))}function s(u,...d){r||(r=!0,t(u,...d))}function a(u){s(null,u)}}const Tn={basename:ET,dirname:jT,extname:RT,join:NT,sep:"/"};function ET(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dl(e);let r=0,o=-1,s=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(a){r=s+1;break}}else o<0&&(a=!0,o=s+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let u=-1,d=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(a){r=s+1;break}}else u<0&&(a=!0,u=s+1),d>-1&&(e.codePointAt(s)===t.codePointAt(d--)?d<0&&(o=s):(d=-1,o=u));return r===o?o=u:o<0&&(o=e.length),e.slice(r,o)}function jT(e){if(dl(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function RT(e){dl(e);let t=e.length,r=-1,o=0,s=-1,a=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){o=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?s<0?s=t:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||r<0||a===0||a===1&&s===r-1&&s===o+1?"":e.slice(s,r)}function NT(...e){let t=-1,r;for(;++t<e.length;)dl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":TT(r)}function TT(e){dl(e);const t=e.codePointAt(0)===47;let r=IT(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function IT(e,t){let r="",o=0,s=-1,a=0,u=-1,d,f;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(s===u-1||a===1))if(s!==u-1&&a===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",o=0):(r=r.slice(0,f),o=r.length-1-r.lastIndexOf("/")),s=u,a=0;continue}}else if(r.length>0){r="",o=0,s=u,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(s+1,u):r=e.slice(s+1,u),o=u-s-1;s=u,a=0}else d===46&&a>-1?a++:a=-1}return r}function dl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const PT={cwd:AT};function AT(){return"/"}function gd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function LT(e){if(typeof e=="string")e=new URL(e);else if(!gd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return _T(e)}function _T(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const Rc=["history","path","basename","stem","extname","dirname"];class i0{constructor(t){let r;t?gd(t)?r={path:t}:typeof t=="string"||$T(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":PT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Rc.length;){const a=Rc[o];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let s;for(s in r)Rc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Tn.basename(this.path):void 0}set basename(t){Tc(t,"basename"),Nc(t,"basename"),this.path=Tn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Tn.dirname(this.path):void 0}set dirname(t){vg(this.basename,"dirname"),this.path=Tn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Tn.extname(this.path):void 0}set extname(t){if(Nc(t,"extname"),vg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){gd(t)&&(t=LT(t)),Tc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Tn.basename(this.path,this.extname):void 0}set stem(t){Tc(t,"stem"),Nc(t,"stem"),this.path=Tn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const s=this.message(t,r,o);throw s.fatal=!0,s}info(t,r,o){const s=this.message(t,r,o);return s.fatal=void 0,s}message(t,r,o){const s=new Ct(t,r,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Nc(e,t){if(e&&e.includes(Tn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Tn.sep+"`")}function Tc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function vg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function $T(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const DT=function(e){const o=this.constructor.prototype,s=o[e],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,o),a},zT={}.hasOwnProperty;class cf extends DT{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=bT()}copy(){const t=new cf;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(jc(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Ac("data",this.frozen),this.namespace[t]=r,this):zT.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ac("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=r.call(t,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ps(t),o=this.parser||this.Parser;return Ic("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),Ic("process",this.parser||this.Parser),Pc("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(a,u){const d=Ps(t),f=o.parse(d);o.run(f,d,function(m,g,v){if(m||!g||!v)return p(m);const w=g,S=o.stringify(w,v);FT(S)?v.value=S:v.result=S,p(m,v)});function p(m,g){m||!g?u(m):a?a(g):r(void 0,g)}}}processSync(t){let r=!1,o;return this.freeze(),Ic("processSync",this.parser||this.Parser),Pc("processSync",this.compiler||this.Compiler),this.process(t,s),kg("processSync","process",r),o;function s(a,u){r=!0,yg(a),o=u}}run(t,r,o){wg(t),this.freeze();const s=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?a(void 0,o):new Promise(a);function a(u,d){const f=Ps(r);s.run(t,f,p);function p(m,g,v){const w=g||t;m?d(m):u?u(w):o(void 0,w,v)}}}runSync(t,r){let o=!1,s;return this.run(t,r,a),kg("runSync","run",o),s;function a(u,d){yg(u),s=d,o=!0}}stringify(t,r){this.freeze();const o=Ps(r),s=this.compiler||this.Compiler;return Pc("stringify",s),wg(t),s(t,o)}use(t,...r){const o=this.attachers,s=this.namespace;if(Ac("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(p){if(typeof p=="function")f(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...g]=p;f(m,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(s.settings=jc(!0,s.settings,p.settings))}function d(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const g=p[m];a(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function f(p,m){let g=-1,v=-1;for(;++g<o.length;)if(o[g][0]===p){v=g;break}if(v===-1)o.push([p,...m]);else if(m.length>0){let[w,...S]=m;const b=o[v][1];md(b)&&md(w)&&(w=jc(!0,b,w)),o[v]=[p,w,...S]}}}}const OT=new cf().freeze();function Ic(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Pc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ac(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function wg(e){if(!md(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ps(e){return MT(e)?e:new i0(e)}function MT(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function FT(e){return typeof e=="string"||BT(e)}function BT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const UT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Sg=[],bg={allowDangerousHtml:!0},VT=/^(https?|ircs?|mailto|xmpp)$/i,HT=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Oi(e){const t=qT(e),r=WT(e);return GT(t.runSync(t.parse(r),r),e)}function qT(e){const t=e.rehypePlugins||Sg,r=e.remarkPlugins||Sg,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...bg}:bg;return OT().use(jN).use(r).use(wT,o).use(t)}function WT(e){const t=e.children||"",r=new i0;return typeof t=="string"&&(r.value=t),r}function GT(e,t){const r=t.allowedElements,o=t.allowElement,s=t.components,a=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||JT;for(const m of HT)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+UT+m.id,void 0);return uf(e,p),u2(e,{Fragment:x.Fragment,components:s,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function p(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let w;for(w in Sc)if(Object.hasOwn(Sc,w)&&Object.hasOwn(m.properties,w)){const S=m.properties[w],b=Sc[w];(b===null||b.includes(m.tagName))&&(m.properties[w]=f(String(S||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):a?a.includes(m.tagName):!1;if(!w&&o&&typeof g=="number"&&(w=!o(m,g,v)),w&&v&&typeof g=="number")return d&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function JT(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||r!==-1&&t>r||o!==-1&&t>o||VT.test(e.slice(0,t))?e:""}function Cg(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(t);for(;s!==-1;)o++,s=r.indexOf(t,s+t.length);return o}function KT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function QT(e,t,r){const s=wa((r||{}).ignore||[]),a=YT(t);let u=-1;for(;++u<a.length;)r0(e,"text",d);function d(p,m){let g=-1,v;for(;++g<m.length;){const w=m[g],S=v?v.children:void 0;if(s(w,S?S.indexOf(w):void 0,v))return;v=w}if(v)return f(p,m)}function f(p,m){const g=m[m.length-1],v=a[u][0],w=a[u][1];let S=0;const R=g.children.indexOf(p);let C=!1,I=[];v.lastIndex=0;let _=v.exec(p.value);for(;_;){const B=_.index,q={index:_.index,input:_.input,stack:[...m,p]};let A=w(..._,q);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?v.lastIndex=B+1:(S!==B&&I.push({type:"text",value:p.value.slice(S,B)}),Array.isArray(A)?I.push(...A):A&&I.push(A),S=B+_[0].length,C=!0),!v.global)break;_=v.exec(p.value)}return C?(S<p.value.length&&I.push({type:"text",value:p.value.slice(S)}),g.children.splice(R,1,...I)):I=[p],R+I.length}}function YT(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<r.length;){const s=r[o];t.push([XT(s[0]),ZT(s[1])])}return t}function XT(e){return typeof e=="string"?new RegExp(KT(e),"g"):e}function ZT(e){return typeof e=="function"?e:function(){return e}}const Lc="phrasing",_c=["autolink","link","image","label"];function eI(){return{transforms:[sI],enter:{literalAutolink:nI,literalAutolinkEmail:$c,literalAutolinkHttp:$c,literalAutolinkWww:$c},exit:{literalAutolink:lI,literalAutolinkEmail:oI,literalAutolinkHttp:rI,literalAutolinkWww:iI}}}function tI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lc,notInConstruct:_c},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lc,notInConstruct:_c},{character:":",before:"[ps]",after:"\\/",inConstruct:Lc,notInConstruct:_c}]}}function nI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $c(e){this.config.enter.autolinkProtocol.call(this,e)}function rI(e){this.config.exit.autolinkProtocol.call(this,e)}function iI(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function oI(e){this.config.exit.autolinkEmail.call(this,e)}function lI(e){this.exit(e)}function sI(e){QT(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,aI],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),uI]],{ignore:["link","linkReference"]})}function aI(e,t,r,o,s){let a="";if(!o0(s)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!cI(r)))return!1;const u=dI(r+o);if(!u[0])return!1;const d={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function uI(e,t,r,o){return!o0(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function cI(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function dI(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],o=r.indexOf(")");const s=Cg(e,"(");let a=Cg(e,")");for(;o!==-1&&s>a;)e+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),a++;return[e,r]}function o0(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Ur(r)||ya(r))&&(!t||r!==47)}l0.peek=wI;function fI(){this.buffer()}function pI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hI(){this.buffer()}function mI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function gI(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=xn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function yI(e){this.exit(e)}function xI(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=xn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function vI(e){this.exit(e)}function wI(){return"["}function l0(e,t,r,o){const s=r.createTracker(o);let a=s.move("[^");const u=r.enter("footnoteReference"),d=r.enter("reference");return a+=s.move(r.safe(r.associationId(e),{after:"]",before:a})),d(),u(),a+=s.move("]"),a}function kI(){return{enter:{gfmFootnoteCallString:fI,gfmFootnoteCall:pI,gfmFootnoteDefinitionLabelString:hI,gfmFootnoteDefinition:mI},exit:{gfmFootnoteCallString:gI,gfmFootnoteCall:yI,gfmFootnoteDefinitionLabelString:xI,gfmFootnoteDefinition:vI}}}function SI(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:l0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,s,a,u){const d=a.createTracker(u);let f=d.move("[^");const p=a.enter("footnoteDefinition"),m=a.enter("label");return f+=d.move(a.safe(a.associationId(o),{before:f,after:"]"})),m(),f+=d.move("]:"),o.children&&o.children.length>0&&(d.shift(4),f+=d.move((t?`
|
|
857
|
-
`:" ")+a.indentLines(a.containerFlow(o,d.current()),t?s0:bI))),p(),f}}function bI(e,t,r){return t===0?e:s0(e,t,r)}function s0(e,t,r){return(r?"":" ")+e}const CI=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];a0.peek=TI;function EI(){return{canContainEols:["delete"],enter:{strikethrough:RI},exit:{strikethrough:NI}}}function jI(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CI}],handlers:{delete:a0}}}function RI(e){this.enter({type:"delete",children:[]},e)}function NI(e){this.exit(e)}function a0(e,t,r,o){const s=r.createTracker(o),a=r.enter("strikethrough");let u=s.move("~~");return u+=r.containerPhrasing(e,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),a(),u}function TI(){return"~"}function II(e){return e.length}function PI(e,t){const r=t||{},o=(r.align||[]).concat(),s=r.stringLength||II,a=[],u=[],d=[],f=[];let p=0,m=-1;for(;++m<e.length;){const b=[],R=[];let C=-1;for(e[m].length>p&&(p=e[m].length);++C<e[m].length;){const I=AI(e[m][C]);if(r.alignDelimiters!==!1){const _=s(I);R[C]=_,(f[C]===void 0||_>f[C])&&(f[C]=_)}b.push(I)}u[m]=b,d[m]=R}let g=-1;if(typeof o=="object"&&"length"in o)for(;++g<p;)a[g]=Eg(o[g]);else{const b=Eg(o);for(;++g<p;)a[g]=b}g=-1;const v=[],w=[];for(;++g<p;){const b=a[g];let R="",C="";b===99?(R=":",C=":"):b===108?R=":":b===114&&(C=":");let I=r.alignDelimiters===!1?1:Math.max(1,f[g]-R.length-C.length);const _=R+"-".repeat(I)+C;r.alignDelimiters!==!1&&(I=R.length+I+C.length,I>f[g]&&(f[g]=I),w[g]=I),v[g]=_}u.splice(1,0,v),d.splice(1,0,w),m=-1;const S=[];for(;++m<u.length;){const b=u[m],R=d[m];g=-1;const C=[];for(;++g<p;){const I=b[g]||"";let _="",B="";if(r.alignDelimiters!==!1){const q=f[g]-(R[g]||0),A=a[g];A===114?_=" ".repeat(q):A===99?q%2?(_=" ".repeat(q/2+.5),B=" ".repeat(q/2-.5)):(_=" ".repeat(q/2),B=_):B=" ".repeat(q)}r.delimiterStart!==!1&&!g&&C.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&I==="")&&(r.delimiterStart!==!1||g)&&C.push(" "),r.alignDelimiters!==!1&&C.push(_),C.push(I),r.alignDelimiters!==!1&&C.push(B),r.padding!==!1&&C.push(" "),(r.delimiterEnd!==!1||g!==p-1)&&C.push("|")}S.push(r.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return S.join(`
|
|
858
|
-
`)}function AI(e){return e==null?"":String(e)}function Eg(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function LI(e,t,r,o){const s=r.enter("blockquote"),a=r.createTracker(o);a.move("> "),a.shift(2);const u=r.indentLines(r.containerFlow(e,a.current()),_I);return s(),u}function _I(e,t,r){return">"+(r?"":" ")+e}function $I(e,t){return jg(e,t.inConstruct,!0)&&!jg(e,t.notInConstruct,!1)}function jg(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let o=-1;for(;++o<t.length;)if(e.includes(t[o]))return!0;return!1}function Rg(e,t,r,o){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
|
|
859
|
-
`&&$I(r.stack,r.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
|
|
860
|
-
`}function DI(e,t){const r=String(e);let o=r.indexOf(t),s=o,a=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++a>u&&(u=a):a=1,s=o+t.length,o=r.indexOf(t,s);return u}function zI(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function OI(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function MI(e,t,r,o){const s=OI(r),a=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(zI(e,r)){const g=r.enter("codeIndented"),v=r.indentLines(a,FI);return g(),v}const d=r.createTracker(o),f=s.repeat(Math.max(DI(a,s)+1,3)),p=r.enter("codeFenced");let m=d.move(f);if(e.lang){const g=r.enter(`codeFencedLang${u}`);m+=d.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...d.current()})),g()}if(e.lang&&e.meta){const g=r.enter(`codeFencedMeta${u}`);m+=d.move(" "),m+=d.move(r.safe(e.meta,{before:m,after:`
|
|
861
|
-
`,encode:["`"],...d.current()})),g()}return m+=d.move(`
|
|
862
|
-
`),a&&(m+=d.move(a+`
|
|
863
|
-
`)),m+=d.move(f),p(),m}function FI(e,t,r){return(r?"":" ")+e}function df(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function BI(e,t,r,o){const s=df(r),a=s==='"'?"Quote":"Apostrophe",u=r.enter("definition");let d=r.enter("label");const f=r.createTracker(o);let p=f.move("[");return p+=f.move(r.safe(r.associationId(e),{before:p,after:"]",...f.current()})),p+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(r.safe(e.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(d=r.enter("destinationRaw"),p+=f.move(r.safe(e.url,{before:p,after:e.title?" ":`
|
|
864
|
-
`,...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+s),p+=f.move(r.safe(e.title,{before:p,after:s,...f.current()})),p+=f.move(s),d()),u(),p}function UI(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function rl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ra(e,t,r){const o=zi(e),s=zi(t);return o===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}u0.peek=VI;function u0(e,t,r,o){const s=UI(r),a=r.enter("emphasis"),u=r.createTracker(o),d=u.move(s);let f=u.move(r.containerPhrasing(e,{after:s,before:d,...u.current()}));const p=f.charCodeAt(0),m=ra(o.before.charCodeAt(o.before.length-1),p,s);m.inside&&(f=rl(p)+f.slice(1));const g=f.charCodeAt(f.length-1),v=ra(o.after.charCodeAt(0),g,s);v.inside&&(f=f.slice(0,-1)+rl(g));const w=u.move(s);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},d+f+w}function VI(e,t,r){return r.options.emphasis||"*"}function HI(e,t){let r=!1;return uf(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,pd}),!!((!e.depth||e.depth<3)&&tf(e)&&(t.options.setext||r))}function qI(e,t,r,o){const s=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(o);if(HI(e,r)){const m=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(e,{...a.current(),before:`
|
|
865
|
-
`,after:`
|
|
866
|
-
`});return g(),m(),v+`
|
|
867
|
-
`+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
868
|
-
`))+1))}const u="#".repeat(s),d=r.enter("headingAtx"),f=r.enter("phrasing");a.move(u+" ");let p=r.containerPhrasing(e,{before:"# ",after:`
|
|
869
|
-
`,...a.current()});return/^[\t ]/.test(p)&&(p=rl(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),f(),d(),p}c0.peek=WI;function c0(e){return e.value||""}function WI(){return"<"}d0.peek=GI;function d0(e,t,r,o){const s=df(r),a=s==='"'?"Quote":"Apostrophe",u=r.enter("image");let d=r.enter("label");const f=r.createTracker(o);let p=f.move("![");return p+=f.move(r.safe(e.alt,{before:p,after:"]",...f.current()})),p+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(r.safe(e.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(d=r.enter("destinationRaw"),p+=f.move(r.safe(e.url,{before:p,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+s),p+=f.move(r.safe(e.title,{before:p,after:s,...f.current()})),p+=f.move(s),d()),p+=f.move(")"),u(),p}function GI(){return"!"}f0.peek=JI;function f0(e,t,r,o){const s=e.referenceType,a=r.enter("imageReference");let u=r.enter("label");const d=r.createTracker(o);let f=d.move("![");const p=r.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(p+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=m,a(),s==="full"||!p||p!==g?f+=d.move(g+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function JI(){return"!"}p0.peek=KI;function p0(e,t,r){let o=e.value||"",s="`",a=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++a<r.unsafe.length;){const u=r.unsafe[a],d=r.compilePattern(u);let f;if(u.atBreak)for(;f=d.exec(o);){let p=f.index;o.charCodeAt(p)===10&&o.charCodeAt(p-1)===13&&p--,o=o.slice(0,p)+" "+o.slice(f.index+1)}}return s+o+s}function KI(){return"`"}function h0(e,t){const r=tf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}m0.peek=QI;function m0(e,t,r,o){const s=df(r),a=s==='"'?"Quote":"Apostrophe",u=r.createTracker(o);let d,f;if(h0(e,r)){const m=r.stack;r.stack=[],d=r.enter("autolink");let g=u.move("<");return g+=u.move(r.containerPhrasing(e,{before:g,after:">",...u.current()})),g+=u.move(">"),d(),r.stack=m,g}d=r.enter("link"),f=r.enter("label");let p=u.move("[");return p+=u.move(r.containerPhrasing(e,{before:p,after:"](",...u.current()})),p+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(r.safe(e.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(f=r.enter("destinationRaw"),p+=u.move(r.safe(e.url,{before:p,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=r.enter(`title${a}`),p+=u.move(" "+s),p+=u.move(r.safe(e.title,{before:p,after:s,...u.current()})),p+=u.move(s),f()),p+=u.move(")"),d(),p}function QI(e,t,r){return h0(e,r)?"<":"["}g0.peek=YI;function g0(e,t,r,o){const s=e.referenceType,a=r.enter("linkReference");let u=r.enter("label");const d=r.createTracker(o);let f=d.move("[");const p=r.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(p+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=m,a(),s==="full"||!p||p!==g?f+=d.move(g+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function YI(){return"["}function ff(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function XI(e){const t=ff(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function ZI(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function y0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function eP(e,t,r,o){const s=r.enter("list"),a=r.bulletCurrent;let u=e.ordered?ZI(r):ff(r);const d=e.ordered?u==="."?")":".":XI(r);let f=t&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(f=!0),y0(r)===u&&m){let g=-1;for(;++g<e.children.length;){const v=e.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(u=d),r.bulletCurrent=u;const p=r.containerFlow(e,o);return r.bulletLastUsed=u,r.bulletCurrent=a,s(),p}function tP(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function nP(e,t,r,o){const s=tP(r);let a=r.bulletCurrent||ff(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let u=a.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=r.createTracker(o);d.move(a+" ".repeat(u-a.length)),d.shift(u);const f=r.enter("listItem"),p=r.indentLines(r.containerFlow(e,d.current()),m);return f(),p;function m(g,v,w){return v?(w?"":" ".repeat(u))+g:(w?a:a+" ".repeat(u-a.length))+g}}function rP(e,t,r,o){const s=r.enter("paragraph"),a=r.enter("phrasing"),u=r.containerPhrasing(e,o);return a(),s(),u}const iP=wa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function oP(e,t,r,o){return(e.children.some(function(u){return iP(u)})?r.containerPhrasing:r.containerFlow).call(r,e,o)}function lP(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}x0.peek=sP;function x0(e,t,r,o){const s=lP(r),a=r.enter("strong"),u=r.createTracker(o),d=u.move(s+s);let f=u.move(r.containerPhrasing(e,{after:s,before:d,...u.current()}));const p=f.charCodeAt(0),m=ra(o.before.charCodeAt(o.before.length-1),p,s);m.inside&&(f=rl(p)+f.slice(1));const g=f.charCodeAt(f.length-1),v=ra(o.after.charCodeAt(0),g,s);v.inside&&(f=f.slice(0,-1)+rl(g));const w=u.move(s+s);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},d+f+w}function sP(e,t,r){return r.options.strong||"*"}function aP(e,t,r,o){return r.safe(e.value,o)}function uP(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function cP(e,t,r){const o=(y0(r)+(r.options.ruleSpaces?" ":"")).repeat(uP(r));return r.options.ruleSpaces?o.slice(0,-1):o}const v0={blockquote:LI,break:Rg,code:MI,definition:BI,emphasis:u0,hardBreak:Rg,heading:qI,html:c0,image:d0,imageReference:f0,inlineCode:p0,link:m0,linkReference:g0,list:eP,listItem:nP,paragraph:rP,root:oP,strong:x0,text:aP,thematicBreak:cP};function dP(){return{enter:{table:fP,tableData:Ng,tableHeader:Ng,tableRow:hP},exit:{codeText:mP,table:pP,tableData:Dc,tableHeader:Dc,tableRow:Dc}}}function fP(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function pP(e){this.exit(e),this.data.inTable=void 0}function hP(e){this.enter({type:"tableRow",children:[]},e)}function Dc(e){this.exit(e)}function Ng(e){this.enter({type:"tableCell",children:[]},e)}function mP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gP));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function gP(e,t){return t==="|"?t:e}function yP(e){const t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,s=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
870
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:f,tableRow:d}};function u(w,S,b,R){return p(m(w,b,R),w.align)}function d(w,S,b,R){const C=g(w,b,R),I=p([C]);return I.slice(0,I.indexOf(`
|
|
871
|
-
`))}function f(w,S,b,R){const C=b.enter("tableCell"),I=b.enter("phrasing"),_=b.containerPhrasing(w,{...R,before:a,after:a});return I(),C(),_}function p(w,S){return PI(w,{align:S,alignDelimiters:o,padding:r,stringLength:s})}function m(w,S,b){const R=w.children;let C=-1;const I=[],_=S.enter("table");for(;++C<R.length;)I[C]=g(R[C],S,b);return _(),I}function g(w,S,b){const R=w.children;let C=-1;const I=[],_=S.enter("tableRow");for(;++C<R.length;)I[C]=f(R[C],w,S,b);return _(),I}function v(w,S,b){let R=v0.inlineCode(w,S,b);return b.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function xP(){return{exit:{taskListCheckValueChecked:Tg,taskListCheckValueUnchecked:Tg,paragraph:wP}}}function vP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:kP}}}function Tg(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wP(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const s=t.children;let a=-1,u;for(;++a<s.length;){const d=s[a];if(d.type==="paragraph"){u=d;break}}u===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function kP(e,t,r,o){const s=e.children[0],a=typeof e.checked=="boolean"&&s&&s.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(o);a&&d.move(u);let f=v0.listItem(e,t,r,{...o,...d.current()});return a&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),f;function p(m){return m+u}}function SP(){return[eI(),kI(),EI(),dP(),xP()]}function bP(e){return{extensions:[tI(),SI(e),jI(),yP(e),vP()]}}const CP={tokenize:IP,partial:!0},w0={tokenize:PP,partial:!0},k0={tokenize:AP,partial:!0},S0={tokenize:LP,partial:!0},EP={tokenize:_P,partial:!0},b0={name:"wwwAutolink",tokenize:NP,previous:E0},C0={name:"protocolAutolink",tokenize:TP,previous:j0},Un={name:"emailAutolink",tokenize:RP,previous:R0},Pn={};function jP(){return{text:Pn}}let $r=48;for(;$r<123;)Pn[$r]=Un,$r++,$r===58?$r=65:$r===91&&($r=97);Pn[43]=Un;Pn[45]=Un;Pn[46]=Un;Pn[95]=Un;Pn[72]=[Un,C0];Pn[104]=[Un,C0];Pn[87]=[Un,b0];Pn[119]=[Un,b0];function RP(e,t,r){const o=this;let s,a;return u;function u(g){return!yd(g)||!R0.call(o,o.previous)||pf(o.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return yd(g)?(e.consume(g),d):g===64?(e.consume(g),f):r(g)}function f(g){return g===46?e.check(EP,m,p)(g):g===45||g===95||bt(g)?(a=!0,e.consume(g),f):m(g)}function p(g){return e.consume(g),s=!0,f}function m(g){return a&&s&&Rt(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):r(g)}}function NP(e,t,r){const o=this;return s;function s(u){return u!==87&&u!==119||!E0.call(o,o.previous)||pf(o.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(CP,e.attempt(w0,e.attempt(k0,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function TP(e,t,r){const o=this;let s="",a=!1;return u;function u(g){return(g===72||g===104)&&j0.call(o,o.previous)&&!pf(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),d):r(g)}function d(g){if(Rt(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(g),f}return r(g)}function f(g){return g===47?(e.consume(g),a?p:(a=!0,f)):r(g)}function p(g){return g===null||Zs(g)||Be(g)||Ur(g)||ya(g)?r(g):e.attempt(w0,e.attempt(k0,m),r)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function IP(e,t,r){let o=0;return s;function s(u){return(u===87||u===119)&&o<3?(o++,e.consume(u),s):u===46&&o===3?(e.consume(u),a):r(u)}function a(u){return u===null?r(u):t(u)}}function PP(e,t,r){let o,s,a;return u;function u(p){return p===46||p===95?e.check(S0,f,d)(p):p===null||Be(p)||Ur(p)||p!==45&&ya(p)?f(p):(a=!0,e.consume(p),u)}function d(p){return p===95?o=!0:(s=o,o=void 0),e.consume(p),u}function f(p){return s||o||!a?r(p):t(p)}}function AP(e,t){let r=0,o=0;return s;function s(u){return u===40?(r++,e.consume(u),s):u===41&&o<r?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(S0,t,a)(u):u===null||Be(u)||Ur(u)?t(u):(e.consume(u),s)}function a(u){return u===41&&o++,e.consume(u),s}}function LP(e,t,r){return o;function o(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),o):d===38?(e.consume(d),a):d===93?(e.consume(d),s):d===60||d===null||Be(d)||Ur(d)?t(d):r(d)}function s(d){return d===null||d===40||d===91||Be(d)||Ur(d)?t(d):o(d)}function a(d){return Rt(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),o):Rt(d)?(e.consume(d),u):r(d)}}function _P(e,t,r){return o;function o(a){return e.consume(a),s}function s(a){return bt(a)?r(a):t(a)}}function E0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Be(e)}function j0(e){return!Rt(e)}function R0(e){return!(e===47||yd(e))}function yd(e){return e===43||e===45||e===46||e===95||bt(e)}function pf(e){let t=e.length,r=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const $P={tokenize:VP,partial:!0};function DP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FP,continuation:{tokenize:BP},exit:UP}},text:{91:{name:"gfmFootnoteCall",tokenize:MP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:zP,resolveTo:OP}}}}function zP(e,t,r){const o=this;let s=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;s--;){const f=o.events[s][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!u||!u._balanced)return r(f);const p=xn(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!a.includes(p.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function OP(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},d=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",s,t],["exit",s,t],["enter",a,t],["enter",u,t],["exit",u,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...d),e}function MP(e,t,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,u;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),f}function f(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(a>999||g===93&&!u||g===null||g===91||Be(g))return r(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(xn(o.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(g)}return Be(g)||(u=!0),a++,e.consume(g),g===92?m:p}function m(g){return g===91||g===92||g===93?(e.consume(g),a++,p):p(g)}}function FP(e,t,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,u=0,d;return f;function f(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(S)}function m(S){if(u>999||S===93&&!d||S===null||S===91||Be(S))return r(S);if(S===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=xn(o.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return Be(S)||(d=!0),u++,e.consume(S),S===92?g:m}function g(S){return S===91||S===92||S===93?(e.consume(S),u++,m):m(S)}function v(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),s.includes(a)||s.push(a),_e(e,w,"gfmFootnoteDefinitionWhitespace")):r(S)}function w(S){return t(S)}}function BP(e,t,r){return e.check(cl,t,e.attempt($P,t,r))}function UP(e){e.exit("gfmFootnoteDefinition")}function VP(e,t,r){const o=this;return _e(e,s,"gfmFootnoteDefinitionIndent",5);function s(a){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(a):r(a)}}function HP(e){let r=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:s};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(u,d){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let p=f;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[f][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[f][1].end)},g={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[f][1].start)},v=[["enter",m,d],["enter",u[p][1],d],["exit",u[p][1],d],["enter",g,d]],w=d.parser.constructs.insideSpan.null;w&&Yt(v,v.length,0,xa(w,u.slice(p+1,f),d)),Yt(v,v.length,0,[["exit",g,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",m,d]]),Yt(u,p-1,f-p+3,v),f=p+v.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function a(u,d,f){const p=this.previous,m=this.events;let g=0;return v;function v(S){return p===126&&m[m.length-1][1].type!=="characterEscape"?f(S):(u.enter("strikethroughSequenceTemporary"),w(S))}function w(S){const b=zi(p);if(S===126)return g>1?f(S):(u.consume(S),g++,w);if(g<2&&!r)return f(S);const R=u.exit("strikethroughSequenceTemporary"),C=zi(S);return R._open=!C||C===2&&!!b,R._close=!b||b===2&&!!C,d(S)}}}class qP{constructor(){this.map=[]}add(t,r,o){WP(this,t,r,o)}consume(t){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];o.push(t.slice()),t.length=0;let s=o.pop();for(;s;){for(const a of s)t.push(a);s=o.pop()}this.map.length=0}}function WP(e,t,r,o){let s=0;if(!(r===0&&o.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=r,e.map[s][2].push(...o);return}s+=1}e.map.push([t,r,o])}}function GP(e,t){let r=!1;const o=[];for(;t<e.length;){const s=e[t];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return o}function JP(){return{flow:{null:{name:"table",tokenize:KP,resolveAll:QP}}}}function KP(e,t,r){const o=this;let s=0,a=0,u;return d;function d(z){let re=o.events.length-1;for(;re>-1;){const X=o.events[re][1].type;if(X==="lineEnding"||X==="linePrefix")re--;else break}const se=re>-1?o.events[re][1].type:null,oe=se==="tableHead"||se==="tableRow"?A:f;return oe===A&&o.parser.lazy[o.now().line]?r(z):oe(z)}function f(z){return e.enter("tableHead"),e.enter("tableRow"),p(z)}function p(z){return z===124||(u=!0,a+=1),m(z)}function m(z){return z===null?r(z):Se(z)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),w):r(z):Ae(z)?_e(e,m,"whitespace")(z):(a+=1,u&&(u=!1,s+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),g(z)))}function g(z){return z===null||z===124||Be(z)?(e.exit("data"),m(z)):(e.consume(z),z===92?v:g)}function v(z){return z===92||z===124?(e.consume(z),g):g(z)}function w(z){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(z):(e.enter("tableDelimiterRow"),u=!1,Ae(z)?_e(e,S,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):S(z))}function S(z){return z===45||z===58?R(z):z===124?(u=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),b):q(z)}function b(z){return Ae(z)?_e(e,R,"whitespace")(z):R(z)}function R(z){return z===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),C):z===45?(a+=1,C(z)):z===null||Se(z)?B(z):q(z)}function C(z){return z===45?(e.enter("tableDelimiterFiller"),I(z)):q(z)}function I(z){return z===45?(e.consume(z),I):z===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(z))}function _(z){return Ae(z)?_e(e,B,"whitespace")(z):B(z)}function B(z){return z===124?S(z):z===null||Se(z)?!u||s!==a?q(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(z)):q(z)}function q(z){return r(z)}function A(z){return e.enter("tableRow"),W(z)}function W(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),W):z===null||Se(z)?(e.exit("tableRow"),t(z)):Ae(z)?_e(e,W,"whitespace")(z):(e.enter("data"),K(z))}function K(z){return z===null||z===124||Be(z)?(e.exit("data"),W(z)):(e.consume(z),z===92?le:K)}function le(z){return z===92||z===124?(e.consume(z),K):K(z)}}function QP(e,t){let r=-1,o=!0,s=0,a=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,p,m,g;const v=new qP;for(;++r<e.length;){const w=e[r],S=w[1];w[0]==="enter"?S.type==="tableHead"?(d=!1,f!==0&&(Ig(v,t,f,p,m),m=void 0,f=0),p={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",p,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(o=!0,g=void 0,a=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,m={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",m,t]])),s=S.type==="tableDelimiterRow"?2:m?3:1):s&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],g=As(v,t,a,s,void 0,g),a=[0,0,0,0]),u[2]=r)):S.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(u[0]=u[1],g=As(v,t,a,s,void 0,g)),a=u,u=[a[1],r,0,0])):S.type==="tableHead"?(d=!0,f=r):S.type==="tableRow"||S.type==="tableDelimiterRow"?(f=r,a[1]!==0?(u[0]=u[1],g=As(v,t,a,s,r,g)):u[1]!==0&&(g=As(v,t,u,s,r,g)),s=0):s&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&Ig(v,t,f,p,m),v.consume(t.events),r=-1;++r<t.events.length;){const w=t.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=GP(t.events,r))}return e}function As(e,t,r,o,s,a){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(a.end=Object.assign({},bi(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const f=bi(t.events,r[1]);if(a={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const p=bi(t.events,r[2]),m=bi(t.events,r[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",g,t]]),o!==2){const v=t.events[r[2]],w=t.events[r[3]];if(v[1].end=Object.assign({},w[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const S=r[2]+1,b=r[3]-r[2]-1;e.add(S,b,[])}}e.add(r[3]+1,0,[["exit",g,t]])}return s!==void 0&&(a.end=Object.assign({},bi(t.events,s)),e.add(s,0,[["exit",a,t]]),a=void 0),a}function Ig(e,t,r,o,s){const a=[],u=bi(t.events,r);s&&(s.end=Object.assign({},u),a.push(["exit",s,t])),o.end=Object.assign({},u),a.push(["exit",o,t]),e.add(r+1,0,a)}function bi(e,t){const r=e[t],o=r[0]==="enter"?"start":"end";return r[1][o]}const YP={name:"tasklistCheck",tokenize:ZP};function XP(){return{text:{91:YP}}}function ZP(e,t,r){const o=this;return s;function s(f){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return Be(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):r(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return Se(f)?t(f):Ae(f)?e.check({tokenize:e4},t,r)(f):r(f)}}function e4(e,t,r){return _e(e,o,"whitespace");function o(s){return s===null?r(s):t(s)}}function t4(e){return Ov([jP(),DP(),HP(e),JP(),XP()])}const n4={};function Mi(e){const t=this,r=e||n4,o=t.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(t4(r)),a.push(SP()),u.push(bP(r))}const fl=T.div`
|
|
872
|
-
display: flex;
|
|
873
|
-
&[data-type='user'] {
|
|
874
|
-
justify-content: flex-end;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
&[data-type='assistant'] {
|
|
878
|
-
justify-content: flex-start;
|
|
879
|
-
}
|
|
880
|
-
`,r4=T.div`
|
|
881
|
-
color: ${e=>e.theme.colors.text};
|
|
882
|
-
border-radius: 12px;
|
|
883
|
-
padding: 8px 12px;
|
|
884
|
-
max-width: 70%;
|
|
885
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
886
|
-
|
|
887
|
-
${fl}[data-type='user'] & {
|
|
888
|
-
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
889
|
-
color: ${e=>e.theme.colors.userMessageText};
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
/* Add subtle transition for edit mode */
|
|
893
|
-
transition: box-shadow 0.2s ease-in-out;
|
|
894
|
-
|
|
895
|
-
&[data-edit-mode='true'] {
|
|
896
|
-
box-shadow: 0 0 0 2px ${e=>e.theme.colors.primary};
|
|
897
|
-
}
|
|
898
|
-
`,i4=T.div`
|
|
899
|
-
font-weight: bold;
|
|
900
|
-
margin-bottom: 4px;
|
|
901
|
-
display: flex;
|
|
902
|
-
justify-content: space-between;
|
|
903
|
-
align-items: center;
|
|
904
|
-
`,o4=T.div`
|
|
905
|
-
word-wrap: break-word;
|
|
906
|
-
font-family: inherit;
|
|
907
|
-
margin: 0;
|
|
908
|
-
|
|
909
|
-
> *:first-child {
|
|
910
|
-
margin-top: 0;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
> *:last-child {
|
|
914
|
-
margin-bottom: 0;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
p {
|
|
918
|
-
margin: 8px 0;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
ul,
|
|
922
|
-
ol {
|
|
923
|
-
padding-left: 20px;
|
|
924
|
-
margin: 8px 0;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
li {
|
|
928
|
-
margin-bottom: 4px;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
pre {
|
|
932
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
933
|
-
padding: 10px;
|
|
934
|
-
border-radius: 4px;
|
|
935
|
-
font-family: 'Courier New', Courier, monospace;
|
|
936
|
-
white-space: pre-wrap;
|
|
937
|
-
word-wrap: break-word;
|
|
938
|
-
margin: 8px 0;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
code {
|
|
942
|
-
font-family: 'Courier New', Courier, monospace;
|
|
943
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
944
|
-
padding: 2px 4px;
|
|
945
|
-
border-radius: 3px;
|
|
946
|
-
font-size: 0.9em;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
pre > code {
|
|
950
|
-
background-color: transparent;
|
|
951
|
-
padding: 0;
|
|
952
|
-
border-radius: 0;
|
|
953
|
-
font-size: inherit;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
blockquote {
|
|
957
|
-
border-left: 4px solid ${e=>e.theme.colors.border};
|
|
958
|
-
padding-left: 10px;
|
|
959
|
-
margin: 8px 0;
|
|
960
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
961
|
-
}
|
|
962
|
-
`,l4=T.textarea`
|
|
963
|
-
width: 100%;
|
|
964
|
-
min-height: 100px;
|
|
965
|
-
padding: 8px;
|
|
966
|
-
border: none;
|
|
967
|
-
border-radius: 4px;
|
|
968
|
-
background-color: ${e=>e.theme.colors.background};
|
|
969
|
-
color: ${e=>e.theme.colors.text};
|
|
970
|
-
font-family: inherit;
|
|
971
|
-
font-size: inherit;
|
|
972
|
-
resize: vertical;
|
|
973
|
-
margin: 4px 0;
|
|
974
|
-
field-sizing: content;
|
|
975
|
-
box-sizing: border-box;
|
|
976
|
-
|
|
977
|
-
&:focus {
|
|
978
|
-
outline: none;
|
|
979
|
-
box-shadow: 0 0 0 1px ${e=>e.theme.colors.primary};
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
${fl}[data-type='user'] & {
|
|
983
|
-
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
984
|
-
color: ${e=>e.theme.colors.userMessageText};
|
|
985
|
-
}
|
|
986
|
-
`,s4=T.div`
|
|
987
|
-
display: flex;
|
|
988
|
-
justify-content: space-between;
|
|
989
|
-
align-items: center;
|
|
990
|
-
margin-top: 4px;
|
|
991
|
-
gap: 8px;
|
|
992
|
-
|
|
993
|
-
> div {
|
|
994
|
-
display: flex;
|
|
995
|
-
align-items: center;
|
|
996
|
-
gap: 8px;
|
|
997
|
-
}
|
|
998
|
-
`,a4=T.div`
|
|
999
|
-
font-size: 0.8em;
|
|
1000
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1001
|
-
|
|
1002
|
-
${fl}[data-type='user'] & {
|
|
1003
|
-
color: ${e=>e.theme.colors.userMessageTimestamp};
|
|
1004
|
-
}
|
|
1005
|
-
`,u4=T.span`
|
|
1006
|
-
font-size: 0.8em;
|
|
1007
|
-
color: ${e=>e.theme.colors.primary};
|
|
1008
|
-
cursor: pointer;
|
|
1009
|
-
text-decoration: underline;
|
|
1010
|
-
|
|
1011
|
-
&:hover {
|
|
1012
|
-
color: ${e=>e.theme.colors.primaryHover};
|
|
1013
|
-
}
|
|
1014
|
-
`,c4=T.div`
|
|
1015
|
-
display: flex;
|
|
1016
|
-
gap: 8px;
|
|
1017
|
-
margin-top: 8px;
|
|
1018
|
-
`,hf=T.button`
|
|
1019
|
-
padding: 4px 8px;
|
|
1020
|
-
border: none;
|
|
1021
|
-
border-radius: 4px;
|
|
1022
|
-
cursor: pointer;
|
|
1023
|
-
font-size: 0.8em;
|
|
1024
|
-
transition: background-color 0.2s ease-in-out;
|
|
1025
|
-
|
|
1026
|
-
&:disabled {
|
|
1027
|
-
opacity: 0.5;
|
|
1028
|
-
cursor: not-allowed;
|
|
1029
|
-
}
|
|
1030
|
-
`,d4=T(hf)`
|
|
1031
|
-
background-color: transparent;
|
|
1032
|
-
color: ${e=>e.theme.colors.primary};
|
|
1033
|
-
|
|
1034
|
-
&:hover:not(:disabled) {
|
|
1035
|
-
background-color: ${e=>e.theme.colors.primaryHover}20;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
${fl}[data-type='user'] & {
|
|
1039
|
-
color: ${e=>e.theme.colors.userMessageText};
|
|
1040
|
-
&:hover:not(:disabled) {
|
|
1041
|
-
background-color: ${e=>e.theme.colors.userMessageText}20;
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
`,f4=T(hf)`
|
|
1045
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
1046
|
-
color: ${e=>e.theme.colors.buttonText};
|
|
1047
|
-
|
|
1048
|
-
&:hover:not(:disabled) {
|
|
1049
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1050
|
-
}
|
|
1051
|
-
`,p4=T(hf)`
|
|
1052
|
-
background-color: transparent;
|
|
1053
|
-
color: ${e=>e.theme.colors.error};
|
|
1054
|
-
|
|
1055
|
-
&:hover:not(:disabled) {
|
|
1056
|
-
background-color: ${e=>e.theme.colors.error}20;
|
|
1057
|
-
}
|
|
1058
|
-
`,h4=T.div`
|
|
1059
|
-
width: 16px;
|
|
1060
|
-
height: 16px;
|
|
1061
|
-
border: 2px solid ${e=>e.theme.colors.primary};
|
|
1062
|
-
border-top-color: transparent;
|
|
1063
|
-
border-radius: 50%;
|
|
1064
|
-
animation: spin 1s linear infinite;
|
|
1065
|
-
margin: 0 8px;
|
|
1066
|
-
|
|
1067
|
-
@keyframes spin {
|
|
1068
|
-
to {
|
|
1069
|
-
transform: rotate(360deg);
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
`;T.span`
|
|
1073
|
-
font-size: 0.7em;
|
|
1074
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1075
|
-
margin-left: 8px;
|
|
1076
|
-
font-style: italic;
|
|
1077
|
-
`;const m4=e=>e>=1e3?`Context size: ${(e/1e3).toFixed(1)}K tokens`:`Context size: ${e} tokens`,g4=e=>{var r;const t=e.filter(o=>{var s;return o.type===hr.ASSISTANT&&typeof((s=o.data)==null?void 0:s.contextSize)=="number"});if(t.length!==0)return(r=t[t.length-1].data)==null?void 0:r.contextSize},y4=e=>{const t=g4(e),r=t!==void 0?m4(t):"Context size N/A";return{contextSize:t,formattedSize:r}},x4=T.span`
|
|
1078
|
-
font-size: 12px;
|
|
1079
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1080
|
-
white-space: nowrap;
|
|
1081
|
-
`,N0=({messages:e,className:t})=>{if(!e||e.length===0)return null;const{formattedSize:r}=y4(e);return x.jsx(x4,{className:t,children:r})},v4=T.div`
|
|
1082
|
-
font-weight: bold;
|
|
1083
|
-
font-size: 0.9em;
|
|
1084
|
-
color: ${e=>e.theme.colors.text};
|
|
1085
|
-
`;T.div`
|
|
1086
|
-
font-size: 0.8em;
|
|
1087
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1088
|
-
margin: 4px 0;
|
|
1089
|
-
`;T.div`
|
|
1090
|
-
font-size: 0.8em;
|
|
1091
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1092
|
-
margin: 4px 0;
|
|
1093
|
-
`;T.div`
|
|
1094
|
-
display: inline-block;
|
|
1095
|
-
padding: 2px 4px;
|
|
1096
|
-
border-radius: 4px;
|
|
1097
|
-
font-size: 0.8em;
|
|
1098
|
-
font-weight: bold;
|
|
1099
|
-
color: ${e=>e.theme.colors.text};
|
|
1100
|
-
background-color: ${e=>e.variant==="updateFile"?e.theme.colors.primary:e.variant==="createFile"?e.theme.colors.success:(e.variant==="patchFile",e.theme.colors.warning)};
|
|
1101
|
-
`;T.div`
|
|
1102
|
-
display: flex;
|
|
1103
|
-
gap: 8px;
|
|
1104
|
-
`;T.button`
|
|
1105
|
-
padding: 4px 8px;
|
|
1106
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1107
|
-
border-radius: 4px;
|
|
1108
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1109
|
-
cursor: pointer;
|
|
1110
|
-
font-size: 0.8em;
|
|
1111
|
-
color: ${e=>e.theme.colors.text};
|
|
1112
|
-
|
|
1113
|
-
&:hover {
|
|
1114
|
-
background-color: ${e=>e.theme.colors.backgroundHover};
|
|
1115
|
-
}
|
|
1116
|
-
`;T.div`
|
|
1117
|
-
margin: 16px 0;
|
|
1118
|
-
`;T.div`
|
|
1119
|
-
padding: 8px;
|
|
1120
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1121
|
-
border-radius: 4px;
|
|
1122
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1123
|
-
font-size: 0.9em;
|
|
1124
|
-
line-height: 1.5;
|
|
1125
|
-
|
|
1126
|
-
> *:first-child {
|
|
1127
|
-
margin-top: 0;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
> *:last-child {
|
|
1131
|
-
margin-bottom: 0;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
p {
|
|
1135
|
-
margin: 8px 0;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
ul,
|
|
1139
|
-
ol {
|
|
1140
|
-
padding-left: 20px;
|
|
1141
|
-
margin: 8px 0;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
li {
|
|
1145
|
-
margin-bottom: 4px;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
pre {
|
|
1149
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
1150
|
-
padding: 10px;
|
|
1151
|
-
border-radius: 4px;
|
|
1152
|
-
font-family: 'Courier New', Courier, monospace;
|
|
1153
|
-
white-space: pre-wrap;
|
|
1154
|
-
word-wrap: break-word;
|
|
1155
|
-
margin: 8px 0;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
code {
|
|
1159
|
-
font-family: 'Courier New', Courier, monospace;
|
|
1160
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
1161
|
-
padding: 2px 4px;
|
|
1162
|
-
border-radius: 3px;
|
|
1163
|
-
font-size: 0.9em;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
pre > code {
|
|
1167
|
-
background-color: transparent;
|
|
1168
|
-
padding: 0;
|
|
1169
|
-
border-radius: 0;
|
|
1170
|
-
font-size: inherit;
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
blockquote {
|
|
1174
|
-
border-left: 4px solid ${e=>e.theme.colors.border};
|
|
1175
|
-
padding-left: 10px;
|
|
1176
|
-
margin: 8px 0;
|
|
1177
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1178
|
-
}
|
|
1179
|
-
`;T.div`
|
|
1180
|
-
margin: 16px 0;
|
|
1181
|
-
`;function vr(){}vr.prototype={diff:function(t,r){var o,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=s.callback;typeof s=="function"&&(a=s,s={}),this.options=s;var u=this;function d(B){return a?(setTimeout(function(){a(void 0,B)},0),!0):B}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var f=r.length,p=t.length,m=1,g=f+p;s.maxEditLength&&(g=Math.min(g,s.maxEditLength));var v=(o=s.timeout)!==null&&o!==void 0?o:1/0,w=Date.now()+v,S=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(S[0],r,t,0);if(S[0].oldPos+1>=p&&b+1>=f)return d([{value:this.join(r),count:r.length}]);var R=-1/0,C=1/0;function I(){for(var B=Math.max(R,-m);B<=Math.min(C,m);B+=2){var q=void 0,A=S[B-1],W=S[B+1];A&&(S[B-1]=void 0);var K=!1;if(W){var le=W.oldPos-B;K=W&&0<=le&&le<f}var z=A&&A.oldPos+1<p;if(!K&&!z){S[B]=void 0;continue}if(!z||K&&A.oldPos+1<W.oldPos?q=u.addToPath(W,!0,void 0,0):q=u.addToPath(A,void 0,!0,1),b=u.extractCommon(q,r,t,B),q.oldPos+1>=p&&b+1>=f)return d(w4(u,q.lastComponent,r,t,u.useLongestToken));S[B]=q,q.oldPos+1>=p&&(C=Math.min(C,B-1)),b+1>=f&&(R=Math.max(R,B+1))}m++}if(a)(function B(){setTimeout(function(){if(m>g||Date.now()>w)return a();I()||B()},0)})();else for(;m<=g&&Date.now()<=w;){var _=I();if(_)return _}},addToPath:function(t,r,o,s){var a=t.lastComponent;return a&&a.added===r&&a.removed===o?{oldPos:t.oldPos+s,lastComponent:{count:a.count+1,added:r,removed:o,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+s,lastComponent:{count:1,added:r,removed:o,previousComponent:a}}},extractCommon:function(t,r,o,s){for(var a=r.length,u=o.length,d=t.oldPos,f=d-s,p=0;f+1<a&&d+1<u&&this.equals(r[f+1],o[d+1]);)f++,d++,p++;return p&&(t.lastComponent={count:p,previousComponent:t.lastComponent}),t.oldPos=d,f},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],o=0;o<t.length;o++)t[o]&&r.push(t[o]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function w4(e,t,r,o,s){for(var a=[],u;t;)a.push(t),u=t.previousComponent,delete t.previousComponent,t=u;a.reverse();for(var d=0,f=a.length,p=0,m=0;d<f;d++){var g=a[d];if(g.removed){if(g.value=e.join(o.slice(m,m+g.count)),m+=g.count,d&&a[d-1].added){var w=a[d-1];a[d-1]=a[d],a[d]=w}}else{if(!g.added&&s){var v=r.slice(p,p+g.count);v=v.map(function(b,R){var C=o[m+R];return C.length>b.length?C:b}),g.value=e.join(v)}else g.value=e.join(r.slice(p,p+g.count));p+=g.count,g.added||(m+=g.count)}}var S=a[f-1];return f>1&&typeof S.value=="string"&&(S.added||S.removed)&&e.equals("",S.value)&&(a[f-2].value+=S.value,a.pop()),a}var Pg=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Ag=/\S/,T0=new vr;T0.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Ag.test(e)&&!Ag.test(t)};T0.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&Pg.test(t[r])&&Pg.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var mf=new vr;mf.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
1182
|
-
`));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var o=0;o<r.length;o++){var s=r[o];o%2&&!this.options.newlineIsToken?t[t.length-1]+=s:(this.options.ignoreWhitespace&&(s=s.trim()),t.push(s))}return t};function k4(e,t,r){return mf.diff(e,t,r)}var S4=new vr;S4.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var b4=new vr;b4.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Vs(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vs=function(t){return typeof t}:Vs=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}var C4=Object.prototype.toString,il=new vr;il.useLongestToken=!0;il.tokenize=mf.tokenize;il.castInput=function(e){var t=this.options,r=t.undefinedReplacement,o=t.stringifyReplacer,s=o===void 0?function(a,u){return typeof u>"u"?r:u}:o;return typeof e=="string"?e:JSON.stringify(xd(e,null,null,s),s," ")};il.equals=function(e,t){return vr.prototype.equals.call(il,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function xd(e,t,r,o,s){t=t||[],r=r||[],o&&(e=o(s,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return r[a];var u;if(C4.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),r.push(u),a=0;a<e.length;a+=1)u[a]=xd(e[a],t,r,o,s);return t.pop(),r.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Vs(e)==="object"&&e!==null){t.push(e),u={},r.push(u);var d=[],f;for(f in e)e.hasOwnProperty(f)&&d.push(f);for(d.sort(),a=0;a<d.length;a+=1)f=d[a],u[f]=xd(e[f],t,r,o,f);t.pop(),r.pop()}else u=e;return u}var vd=new vr;vd.tokenize=function(e){return e.slice()};vd.join=vd.removeEmpty=function(e){return e};const Go=({content:e})=>{const[t,r]=L.useState(null),o=async()=>{try{await navigator.clipboard.writeText(e),r("success"),setTimeout(()=>r(null),2e3)}catch{r("error"),setTimeout(()=>r(null),2e3)}};return x.jsxs(I0,{onClick:o,status:t,children:[t===null&&x.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[x.jsx("path",{d:"M4 4v8h8V4H4zm1 1h6v6H5V5z"}),x.jsx("path",{d:"M3 3v9h9V3H3zm1 1h7v7H4V4z"})]}),t==="success"&&x.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:x.jsx("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z"})}),t==="error"&&x.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:x.jsx("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM6.5 11a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0zm.75-6.5h1.5v4.5h-1.5V4.5z"})})]})},I0=T.button`
|
|
1183
|
-
padding: 4px;
|
|
1184
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1185
|
-
border-radius: 4px;
|
|
1186
|
-
background-color: ${e=>{switch(e.status){case"success":return e.theme.colors.diffAdded;case"error":return e.theme.colors.diffRemoved;default:return e.theme.colors.background}}};
|
|
1187
|
-
color: ${e=>{switch(e.status){case"success":return e.theme.colors.diffAddedText;case"error":return e.theme.colors.diffRemovedText;default:return e.theme.colors.text}}};
|
|
1188
|
-
cursor: pointer;
|
|
1189
|
-
transition: background-color 0.2s ease-in-out;
|
|
1190
|
-
display: flex;
|
|
1191
|
-
align-items: center;
|
|
1192
|
-
justify-content: center;
|
|
1193
|
-
width: 24px;
|
|
1194
|
-
height: 24px;
|
|
1195
|
-
|
|
1196
|
-
&:hover {
|
|
1197
|
-
background-color: ${e=>e.theme.colors.backgroundHover};
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
svg {
|
|
1201
|
-
width: 16px;
|
|
1202
|
-
height: 16px;
|
|
1203
|
-
}
|
|
1204
|
-
`,E4=({oldContent:e,newContent:t})=>{const[r,o]=L.useState("unified"),s=k4(e??"",t),a=()=>x.jsxs(N4,{children:[x.jsx(Go,{content:t}),s.map((p,m)=>x.jsx(zc,{added:p.added,removed:p.removed,children:p.value},m))]}),u=()=>x.jsxs(T4,{children:[x.jsxs(Lg,{children:[e&&x.jsx(Go,{content:e}),s.filter(p=>!p.added).map((p,m)=>x.jsx(zc,{removed:p.removed,children:p.value},m))]}),x.jsxs(Lg,{children:[x.jsx(Go,{content:t}),s.filter(p=>!p.removed).map((p,m)=>x.jsx(zc,{added:p.added,children:p.value},m))]})]}),d=()=>x.jsxs(_g,{children:[e&&x.jsx(Go,{content:e}),x.jsx($g,{children:e})]}),f=()=>x.jsxs(_g,{children:[x.jsx(Go,{content:t}),x.jsx($g,{children:t})]});return x.jsxs(j4,{children:[x.jsxs(R4,{children:[x.jsx(Ls,{active:r==="unified",onClick:()=>o("unified"),children:"Unified"}),x.jsx(Ls,{active:r==="sideBySide",onClick:()=>o("sideBySide"),children:"Side by Side"}),x.jsx(Ls,{active:r==="old",onClick:()=>o("old"),children:"Old Content"}),x.jsx(Ls,{active:r==="new",onClick:()=>o("new"),children:"New Content"})]}),r==="unified"&&a(),r==="sideBySide"&&u(),r==="old"&&d(),r==="new"&&f()]})},j4=T.div`
|
|
1205
|
-
margin: 16px 0;
|
|
1206
|
-
position: relative;
|
|
1207
|
-
|
|
1208
|
-
${I0} {
|
|
1209
|
-
position: absolute;
|
|
1210
|
-
right: 20px;
|
|
1211
|
-
}
|
|
1212
|
-
`,R4=T.div`
|
|
1213
|
-
display: flex;
|
|
1214
|
-
gap: 8px;
|
|
1215
|
-
margin-bottom: 16px;
|
|
1216
|
-
`,Ls=T.button`
|
|
1217
|
-
padding: 4px 8px;
|
|
1218
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1219
|
-
border-radius: 4px;
|
|
1220
|
-
background-color: ${e=>e.active?e.theme.colors.primary:e.theme.colors.background};
|
|
1221
|
-
color: ${e=>e.active?e.theme.colors.textOnPrimary:e.theme.colors.text};
|
|
1222
|
-
cursor: pointer;
|
|
1223
|
-
font-size: 0.8em;
|
|
1224
|
-
|
|
1225
|
-
&:hover {
|
|
1226
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1227
|
-
}
|
|
1228
|
-
`,N4=T.div`
|
|
1229
|
-
margin: 16px 0;
|
|
1230
|
-
padding: 8px;
|
|
1231
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1232
|
-
border-radius: 4px;
|
|
1233
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1234
|
-
max-height: 400px;
|
|
1235
|
-
overflow-y: auto;
|
|
1236
|
-
`,T4=T.div`
|
|
1237
|
-
display: grid;
|
|
1238
|
-
grid-template-columns: 1fr 1fr;
|
|
1239
|
-
gap: 16px;
|
|
1240
|
-
margin: 16px 0;
|
|
1241
|
-
`,Lg=T.div`
|
|
1242
|
-
position: relative;
|
|
1243
|
-
padding: 8px;
|
|
1244
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1245
|
-
border-radius: 4px;
|
|
1246
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1247
|
-
max-height: 400px;
|
|
1248
|
-
overflow-y: auto;
|
|
1249
|
-
`,_g=T.div`
|
|
1250
|
-
margin: 16px 0;
|
|
1251
|
-
padding: 8px;
|
|
1252
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1253
|
-
border-radius: 4px;
|
|
1254
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1255
|
-
max-height: 400px;
|
|
1256
|
-
overflow-y: auto;
|
|
1257
|
-
`,$g=T.div`
|
|
1258
|
-
white-space: pre-wrap;
|
|
1259
|
-
font-family: monospace;
|
|
1260
|
-
font-size: 0.9em;
|
|
1261
|
-
line-height: 1.5;
|
|
1262
|
-
`,zc=T.div`
|
|
1263
|
-
white-space: pre-wrap;
|
|
1264
|
-
font-family: monospace;
|
|
1265
|
-
font-size: 0.9em;
|
|
1266
|
-
line-height: 1.5;
|
|
1267
|
-
padding: 2px 4px;
|
|
1268
|
-
margin: 2px 0;
|
|
1269
|
-
background-color: ${e=>e.added?e.theme.colors.diffAdded:e.removed?e.theme.colors.diffRemoved:"transparent"};
|
|
1270
|
-
color: ${e=>e.added?e.theme.colors.diffAddedText:e.removed?e.theme.colors.diffRemovedText:e.theme.colors.text};
|
|
1271
|
-
`,P0=T.div`
|
|
1272
|
-
display: flex;
|
|
1273
|
-
flex-direction: column;
|
|
1274
|
-
gap: 12px;
|
|
1275
|
-
width: 100%;
|
|
1276
|
-
margin-top: 8px;
|
|
1277
|
-
font-size: 0.95em;
|
|
1278
|
-
`,ji=T.div`
|
|
1279
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1280
|
-
border-radius: 6px;
|
|
1281
|
-
overflow: hidden;
|
|
1282
|
-
background: ${e=>e.theme.colors.backgroundSecondary}11;
|
|
1283
|
-
transition: all 0.2s ease;
|
|
1284
|
-
|
|
1285
|
-
&:hover {
|
|
1286
|
-
border-color: ${e=>e.theme.colors.primary}66;
|
|
1287
|
-
}
|
|
1288
|
-
`,Ri=T.div`
|
|
1289
|
-
padding: 10px 12px;
|
|
1290
|
-
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1291
|
-
cursor: pointer;
|
|
1292
|
-
user-select: none;
|
|
1293
|
-
transition: background-color 0.2s ease;
|
|
1294
|
-
|
|
1295
|
-
&:hover {
|
|
1296
|
-
background: ${e=>e.theme.colors.backgroundSecondary}44;
|
|
1297
|
-
}
|
|
1298
|
-
`,Ni=T.div`
|
|
1299
|
-
padding: 12px;
|
|
1300
|
-
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
1301
|
-
animation: slideDown 0.2s ease;
|
|
1302
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1303
|
-
font-size: 0.95em;
|
|
1304
|
-
|
|
1305
|
-
> *:first-child {
|
|
1306
|
-
margin-top: 0;
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
> *:last-child {
|
|
1310
|
-
margin-bottom: 0;
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
p {
|
|
1314
|
-
margin: 8px 0;
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
ul,
|
|
1318
|
-
ol {
|
|
1319
|
-
padding-left: 20px;
|
|
1320
|
-
margin: 8px 0;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
li {
|
|
1324
|
-
margin-bottom: 4px;
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
pre {
|
|
1328
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
1329
|
-
padding: 10px;
|
|
1330
|
-
border-radius: 4px;
|
|
1331
|
-
font-family: 'Courier New', Courier, monospace;
|
|
1332
|
-
white-space: pre-wrap;
|
|
1333
|
-
word-wrap: break-word;
|
|
1334
|
-
margin: 8px 0;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
code {
|
|
1338
|
-
font-family: 'Courier New', Courier, monospace;
|
|
1339
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
1340
|
-
padding: 2px 4px;
|
|
1341
|
-
border-radius: 3px;
|
|
1342
|
-
font-size: 0.9em;
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
pre > code {
|
|
1346
|
-
background-color: transparent;
|
|
1347
|
-
padding: 0;
|
|
1348
|
-
border-radius: 0;
|
|
1349
|
-
font-size: inherit;
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
blockquote {
|
|
1353
|
-
border-left: 4px solid ${e=>e.theme.colors.border};
|
|
1354
|
-
padding-left: 10px;
|
|
1355
|
-
margin: 8px 0;
|
|
1356
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
@keyframes slideDown {
|
|
1360
|
-
from {
|
|
1361
|
-
opacity: 0;
|
|
1362
|
-
transform: translateY(-10px);
|
|
1363
|
-
}
|
|
1364
|
-
to {
|
|
1365
|
-
opacity: 1;
|
|
1366
|
-
transform: translateY(0);
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
`,Ti=T.div`
|
|
1370
|
-
display: flex;
|
|
1371
|
-
align-items: center;
|
|
1372
|
-
gap: 8px;
|
|
1373
|
-
color: ${e=>e.theme.colors.primary};
|
|
1374
|
-
font-weight: 500;
|
|
1375
|
-
|
|
1376
|
-
${e=>e.expanded&&kt`
|
|
1377
|
-
margin-bottom: -1px;
|
|
1378
|
-
`}
|
|
1379
|
-
`,Ii=T.span`
|
|
1380
|
-
display: inline-block;
|
|
1381
|
-
width: 16px;
|
|
1382
|
-
height: 16px;
|
|
1383
|
-
line-height: 16px;
|
|
1384
|
-
text-align: center;
|
|
1385
|
-
font-size: 0.8em;
|
|
1386
|
-
transition: transform 0.2s ease;
|
|
1387
|
-
`,wd=T.div`
|
|
1388
|
-
display: flex;
|
|
1389
|
-
flex-direction: column;
|
|
1390
|
-
gap: 12px;
|
|
1391
|
-
`,kd=T.div`
|
|
1392
|
-
padding: 10px;
|
|
1393
|
-
border-radius: 4px;
|
|
1394
|
-
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1395
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1396
|
-
|
|
1397
|
-
&:hover {
|
|
1398
|
-
border-color: ${e=>e.theme.colors.primary}66;
|
|
1399
|
-
}
|
|
1400
|
-
`,I4=T.div`
|
|
1401
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1402
|
-
font-size: 0.95em;
|
|
1403
|
-
font-weight: 500;
|
|
1404
|
-
margin-bottom: 6px;
|
|
1405
|
-
margin-top: 8px;
|
|
1406
|
-
`,Sd=T.div`
|
|
1407
|
-
font-family: monospace;
|
|
1408
|
-
padding: 4px 8px;
|
|
1409
|
-
padding-left: 0px;
|
|
1410
|
-
background: ${e=>e.theme.colors.codeBackground};
|
|
1411
|
-
border-radius: 3px;
|
|
1412
|
-
color: ${e=>e.theme.colors.codeText};
|
|
1413
|
-
word-break: break-all;
|
|
1414
|
-
`,P4=T.div`
|
|
1415
|
-
margin-top: 8px;
|
|
1416
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1417
|
-
font-size: 0.95em;
|
|
1418
|
-
line-height: 1.4;
|
|
1419
|
-
|
|
1420
|
-
> *:first-child {
|
|
1421
|
-
margin-top: 0;
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
> *:last-child {
|
|
1425
|
-
margin-bottom: 0;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
p {
|
|
1429
|
-
margin: 8px 0;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
ul,
|
|
1433
|
-
ol {
|
|
1434
|
-
padding-left: 20px;
|
|
1435
|
-
margin: 8px 0;
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
li {
|
|
1439
|
-
margin-bottom: 4px;
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
pre {
|
|
1443
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
1444
|
-
padding: 10px;
|
|
1445
|
-
border-radius: 4px;
|
|
1446
|
-
font-family: 'Courier New', Courier, monospace;
|
|
1447
|
-
white-space: pre-wrap;
|
|
1448
|
-
word-wrap: break-word;
|
|
1449
|
-
margin: 8px 0;
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
code {
|
|
1453
|
-
font-family: 'Courier New', Courier, monospace;
|
|
1454
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
1455
|
-
padding: 2px 4px;
|
|
1456
|
-
border-radius: 3px;
|
|
1457
|
-
font-size: 0.9em;
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
pre > code {
|
|
1461
|
-
background-color: transparent;
|
|
1462
|
-
padding: 0;
|
|
1463
|
-
border-radius: 0;
|
|
1464
|
-
font-size: inherit;
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
blockquote {
|
|
1468
|
-
border-left: 4px solid ${e=>e.theme.colors.border};
|
|
1469
|
-
padding-left: 10px;
|
|
1470
|
-
margin: 8px 0;
|
|
1471
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1472
|
-
}
|
|
1473
|
-
`,A4=T.div`
|
|
1474
|
-
font-size: 0.9em;
|
|
1475
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1476
|
-
`,L4=T.div`
|
|
1477
|
-
margin-top: 4px;
|
|
1478
|
-
font-family: monospace;
|
|
1479
|
-
color: ${e=>e.theme.colors.info};
|
|
1480
|
-
`,bd=T.div`
|
|
1481
|
-
display: inline-block;
|
|
1482
|
-
margin-left: 8px;
|
|
1483
|
-
padding: 2px 6px;
|
|
1484
|
-
border-radius: 3px;
|
|
1485
|
-
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1486
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1487
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1488
|
-
font-size: 0.85em;
|
|
1489
|
-
cursor: pointer;
|
|
1490
|
-
transition: all 0.2s ease;
|
|
1491
|
-
|
|
1492
|
-
&:hover {
|
|
1493
|
-
background: ${e=>e.theme.colors.backgroundSecondary}44;
|
|
1494
|
-
border-color: ${e=>e.theme.colors.primary}66;
|
|
1495
|
-
}
|
|
1496
|
-
`,A0=T.div`
|
|
1497
|
-
margin-top: 8px;
|
|
1498
|
-
padding: 8px;
|
|
1499
|
-
border-radius: 4px;
|
|
1500
|
-
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1501
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1502
|
-
animation: slideDown 0.2s ease;
|
|
1503
|
-
`;T.pre`
|
|
1504
|
-
margin: 0;
|
|
1505
|
-
padding: 12px;
|
|
1506
|
-
background: ${e=>e.theme.colors.codeBackground};
|
|
1507
|
-
border-radius: 4px;
|
|
1508
|
-
color: ${e=>e.theme.colors.codeText};
|
|
1509
|
-
font-family: monospace;
|
|
1510
|
-
font-size: 0.9em;
|
|
1511
|
-
line-height: 1.4;
|
|
1512
|
-
overflow-x: auto;
|
|
1513
|
-
white-space: pre-wrap;
|
|
1514
|
-
word-wrap: break-word;
|
|
1515
|
-
`;const _4=(e,t)=>{switch(e){case"createFile":return kt`
|
|
1516
|
-
background: ${t.colors.info}22;
|
|
1517
|
-
color: ${t.colors.info};
|
|
1518
|
-
border-color: ${t.colors.info}44;
|
|
1519
|
-
`;case"updateFile":return kt`
|
|
1520
|
-
background: ${t.colors.primary}22;
|
|
1521
|
-
color: ${t.colors.primary};
|
|
1522
|
-
border-color: ${t.colors.primary}44;
|
|
1523
|
-
`;case"deleteFile":return kt`
|
|
1524
|
-
background: ${t.colors.error}22;
|
|
1525
|
-
color: ${t.colors.error};
|
|
1526
|
-
border-color: ${t.colors.error}44;
|
|
1527
|
-
`;case"moveFile":return kt`
|
|
1528
|
-
background: ${t.colors.warning}22;
|
|
1529
|
-
color: ${t.colors.warning};
|
|
1530
|
-
border-color: ${t.colors.warning}44;
|
|
1531
|
-
`;case"temperature":return kt`
|
|
1532
|
-
background: ${t.colors.success}22;
|
|
1533
|
-
color: ${t.colors.success};
|
|
1534
|
-
border-color: ${t.colors.success}44;
|
|
1535
|
-
margin-left: auto;
|
|
1536
|
-
`;case"cheap":return kt`
|
|
1537
|
-
background: ${t.colors.secondary}22;
|
|
1538
|
-
color: ${t.colors.secondary};
|
|
1539
|
-
border-color: ${t.colors.secondary}44;
|
|
1540
|
-
`;default:return kt`
|
|
1541
|
-
background: ${t.colors.secondary}22;
|
|
1542
|
-
color: ${t.colors.secondary};
|
|
1543
|
-
border-color: ${t.colors.secondary}44;
|
|
1544
|
-
`}},Hs=T.div`
|
|
1545
|
-
display: inline-block;
|
|
1546
|
-
padding: 2px 8px;
|
|
1547
|
-
border-radius: 3px;
|
|
1548
|
-
font-size: 0.85em;
|
|
1549
|
-
font-weight: 500;
|
|
1550
|
-
margin-bottom: 6px;
|
|
1551
|
-
border: 1px solid;
|
|
1552
|
-
${e=>_4(e.variant,e.theme)}
|
|
1553
|
-
`;T.div`
|
|
1554
|
-
margin-top: 8px;
|
|
1555
|
-
font-size: 0.9em;
|
|
1556
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1557
|
-
`;const $4=T.div`
|
|
1558
|
-
display: flex;
|
|
1559
|
-
gap: 8px;
|
|
1560
|
-
align-items: center;
|
|
1561
|
-
flex-wrap: wrap;
|
|
1562
|
-
`,L0=({data:{name:e,args:{filePath:t,explanation:r,oldContent:o,newContent:s}}})=>{const[a,u]=L.useState(!0),[d,f]=L.useState(!1);return x.jsxs(z4,{children:[x.jsxs(O4,{children:[x.jsx(Hs,{variant:e,children:e}),x.jsx(v4,{children:t}),x.jsxs(M4,{children:[x.jsx(Dg,{onClick:()=>u(!a),children:a?"Hide Explanation":"Explanation"}),(o||s)&&x.jsx(Dg,{onClick:()=>f(!d),children:d?"Hide Diff":"Show Diff"})]})]}),a&&r&&x.jsx(F4,{children:x.jsx(Oi,{remarkPlugins:[Mi],children:r})}),d&&x.jsx(B4,{children:x.jsx(E4,{oldContent:o,newContent:s})})]})},D4=["updateFile","createFile","patchFile","createDirectory","deleteFile","moveFile","downloadFile","splitImage","resizeImage","imglyRemoveBackground"];function Cd(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.name!="string"||!D4.includes(t.name)?!1:typeof t.args.filePath=="string"}const z4=T.div`
|
|
1563
|
-
margin: 16px 0;
|
|
1564
|
-
padding: 16px;
|
|
1565
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1566
|
-
border-radius: 8px;
|
|
1567
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1568
|
-
`,O4=T.div`
|
|
1569
|
-
display: flex;
|
|
1570
|
-
gap: 8px;
|
|
1571
|
-
align-items: center;
|
|
1572
|
-
`,M4=T.div`
|
|
1573
|
-
display: flex;
|
|
1574
|
-
gap: 8px;
|
|
1575
|
-
margin-left: auto;
|
|
1576
|
-
`,Dg=T.button`
|
|
1577
|
-
padding: 4px 8px;
|
|
1578
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1579
|
-
border-radius: 4px;
|
|
1580
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1581
|
-
cursor: pointer;
|
|
1582
|
-
font-size: 0.8em;
|
|
1583
|
-
color: ${e=>e.theme.colors.text};
|
|
1584
|
-
|
|
1585
|
-
&:hover {
|
|
1586
|
-
background-color: ${e=>e.theme.colors.backgroundHover};
|
|
1587
|
-
}
|
|
1588
|
-
`,F4=T.div`
|
|
1589
|
-
margin-top: 8px;
|
|
1590
|
-
padding: 8px;
|
|
1591
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1592
|
-
border-radius: 4px;
|
|
1593
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1594
|
-
font-size: 0.9em;
|
|
1595
|
-
line-height: 1.5;
|
|
1596
|
-
`,B4=T.div`
|
|
1597
|
-
margin: 16px 0;
|
|
1598
|
-
`,U4=T.div`
|
|
1599
|
-
display: grid;
|
|
1600
|
-
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
1601
|
-
gap: 8px;
|
|
1602
|
-
max-width: 800px;
|
|
1603
|
-
margin: 8px 0;
|
|
1604
|
-
`,V4=T.div`
|
|
1605
|
-
position: relative;
|
|
1606
|
-
width: 100%;
|
|
1607
|
-
padding-bottom: 100%; /* Creates a square aspect ratio */
|
|
1608
|
-
`,H4=T.img`
|
|
1609
|
-
position: absolute;
|
|
1610
|
-
top: 0;
|
|
1611
|
-
left: 0;
|
|
1612
|
-
width: 100%;
|
|
1613
|
-
height: 100%;
|
|
1614
|
-
object-fit: contain;
|
|
1615
|
-
border-radius: 4px;
|
|
1616
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
1617
|
-
`,q4=({message:e,visibleDataIds:t,toggleDataVisibility:r})=>{var I;const[o,s]=L.useState(!1),[a,u]=L.useState(e.content),[d,f]=L.useState(!1),[p,m]=L.useState(null),g=L.useRef(null);L.useEffect(()=>{o&&g.current&&(g.current.focus(),g.current.selectionStart=g.current.value.length,g.current.selectionEnd=g.current.value.length)},[o]);const v=()=>{u(e.content),s(!0),m(null)},w=()=>{s(!1),u(e.content),m(null)},S=_=>_.trim()?_===e.content?(m("No changes made to the message"),!1):!0:(m("Message content cannot be empty"),!1),b=async()=>{if(S(a)){f(!0),m(null);try{await Nb(e.id,a),s(!1)}catch(_){m(_ instanceof Error?_.message:"Failed to save changes")}finally{f(!1)}}},R=_=>{_.key==="Enter"&&_.ctrlKey?b():_.key==="Escape"&&w()},C=e.type!=="system"&&((I=e.flags)==null?void 0:I.includes(Od.MESSAGE_EDITABLE));return x.jsx(fl,{"data-type":e.type,children:x.jsxs(r4,{"data-edit-mode":o,children:[x.jsxs(i4,{children:[x.jsx("div",{children:e.type==="user"?"You":"Assistant"}),C&&!o&&x.jsx(d4,{onClick:v,title:"Edit message",children:"✎"})]}),o?x.jsxs(x.Fragment,{children:[x.jsx(l4,{ref:g,value:a,onChange:_=>u(_.target.value),onKeyDown:R,placeholder:"Enter your message..."}),p&&x.jsx("div",{style:{color:"red",fontSize:"0.8em",marginTop:"4px"},children:p}),x.jsxs(c4,{children:[x.jsx(f4,{onClick:b,disabled:d,children:d?x.jsx(h4,{}):"Save"}),x.jsx(p4,{onClick:w,disabled:d,children:"Cancel"})]})]}):x.jsx(o4,{children:x.jsx(Oi,{remarkPlugins:[Mi],children:e.content})}),e.images&&e.images.length>0&&x.jsx(U4,{children:e.images.map((_,B)=>x.jsx(V4,{children:x.jsx(H4,{src:`data:${_.mediaType};base64,${_.base64url}`,alt:_.originalName||`Image ${B+1}`,title:_.originalName||`Image ${B+1}`})},B))}),x.jsxs(s4,{children:[x.jsx("div",{children:e.data?x.jsx(u4,{onClick:()=>r(e.id),children:t.has(e.id)?"Hide data":"Show data"}):null}),x.jsxs("div",{children:[e.timestamp&&e.type==="assistant"&&e.data&&"contextSize"in e.data&&x.jsx(N0,{messages:[e]}),x.jsx(a4,{children:e.timestamp.toLocaleString()})]})]}),t.has(e.id)&&e.data?x.jsx(x.Fragment,{children:Cd(e.data)?x.jsx(L0,{data:e.data}):x.jsx(bv,{data:e.data})}):null]})})},zg=T.div`
|
|
1618
|
-
background-color: ${e=>e.theme.colors.systemMessageBackground};
|
|
1619
|
-
color: ${e=>e.theme.colors.systemMessageText};
|
|
1620
|
-
border: 1px solid ${e=>e.theme.colors.systemMessageBorder};
|
|
1621
|
-
border-radius: 8px;
|
|
1622
|
-
padding: 8px 12px;
|
|
1623
|
-
margin: 8px 0;
|
|
1624
|
-
font-style: italic;
|
|
1625
|
-
font-size: 0.9em;
|
|
1626
|
-
opacity: 0.8;
|
|
1627
|
-
transition: margin 0.2s ease-in-out;
|
|
1628
|
-
|
|
1629
|
-
/* Increase bottom margin when followed by a codegen view */
|
|
1630
|
-
& + div {\n margin-top: 16px;
|
|
1631
|
-
}\n
|
|
1632
|
-
${e=>e.isExecutionEnd&&`
|
|
1633
|
-
border-bottom: 3px solid ${e.theme.colors.primary};
|
|
1634
|
-
`}\n`,Og=T.div`
|
|
1635
|
-
cursor: pointer;
|
|
1636
|
-
font-weight: bold;
|
|
1637
|
-
margin-bottom: 8px;
|
|
1638
|
-
display: flex;
|
|
1639
|
-
align-items: center;
|
|
1640
|
-
gap: 4px;
|
|
1641
|
-
|
|
1642
|
-
&:hover {\n opacity: 0.8;
|
|
1643
|
-
}\n`,W4=T.div`
|
|
1644
|
-
white-space: pre-wrap;
|
|
1645
|
-
word-wrap: break-word;
|
|
1646
|
-
font-family: inherit;
|
|
1647
|
-
margin: 0;
|
|
1648
|
-
|
|
1649
|
-
/* Add spacing between content sections */
|
|
1650
|
-
& > *:not(:last-child) {\n margin-bottom: 12px;
|
|
1651
|
-
}\n`,G4=T.div`
|
|
1652
|
-
margin-bottom: 8px;
|
|
1653
|
-
position: relative;
|
|
1654
|
-
padding-right: 150px; /* Space for timestamp and data link */
|
|
1655
|
-
|
|
1656
|
-
&:last-child {\n margin-bottom: 0;
|
|
1657
|
-
}\n`,J4=T.div`
|
|
1658
|
-
font-size: 0.8em;
|
|
1659
|
-
color: ${e=>e.theme.colors.systemMessageTimestamp};
|
|
1660
|
-
position: absolute;
|
|
1661
|
-
right: 60px;
|
|
1662
|
-
top: 0;
|
|
1663
|
-
`,K4=T.span`
|
|
1664
|
-
font-size: 0.8em;
|
|
1665
|
-
color: ${e=>e.theme.colors.primary};
|
|
1666
|
-
cursor: pointer;
|
|
1667
|
-
text-decoration: underline;
|
|
1668
|
-
position: absolute;
|
|
1669
|
-
right: 0;
|
|
1670
|
-
top: 0;
|
|
1671
|
-
|
|
1672
|
-
&:hover {\n color: ${e=>e.theme.colors.primaryHover};\n }\n`,Q4=({data:e})=>{const[t,r]=L.useState({analysis:!0,changes:!0,files:!0}),[o,s]=L.useState({}),a=d=>{r(f=>({...f,[d]:!f[d]}))},u=d=>{s(f=>({...f,[d]:!f[d]}))};return x.jsxs(P0,{children:[x.jsxs(ji,{children:[x.jsx(Ri,{onClick:()=>a("analysis"),children:x.jsxs(Ti,{expanded:t.analysis,children:[x.jsx(Ii,{children:t.analysis?"▼":"▶"}),"Problem Analysis"]})}),t.analysis&&x.jsx(Ni,{children:x.jsx(Oi,{remarkPlugins:[Mi],children:e.args.problemAnalysis})})]}),x.jsxs(ji,{children:[x.jsx(Ri,{onClick:()=>a("changes"),children:x.jsxs(Ti,{expanded:t.changes,children:[x.jsx(Ii,{children:t.changes?"▼":"▶"}),"Implementation Plan"]})}),t.changes&&x.jsx(Ni,{children:x.jsx(Oi,{remarkPlugins:[Mi],children:e.args.codeChanges})})]}),x.jsxs(ji,{children:[x.jsx(Ri,{onClick:()=>a("files"),children:x.jsxs(Ti,{expanded:t.files,children:[x.jsx(Ii,{children:t.files?"▼":"▶"}),"Affected Files"]})}),t.files&&x.jsx(Ni,{children:x.jsx(wd,{children:e.args.affectedFiles.map((d,f)=>x.jsxs(kd,{children:[x.jsxs(Sd,{children:[d.filePath,d.dependencies&&d.dependencies.length>0&&x.jsxs(bd,{onClick:()=>u(d.filePath),title:"Dependencies",children:["(",d.dependencies.length,")"]})]}),d.dependencies&&d.dependencies.length>0&&o[d.filePath]&&x.jsx(A0,{children:x.jsxs(A4,{children:["Dependencies:",d.dependencies.map((p,m)=>x.jsx(L4,{children:p},m))]})}),x.jsx(I4,{children:d.reason})]},f))})})]})]})};function Mg(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 r=t.args;return typeof r.problemAnalysis=="string"&&typeof r.codeChanges=="string"&&Array.isArray(r.affectedFiles)&&r.affectedFiles.every(o=>typeof o=="object"&&o!==null&&typeof o.reason=="string"&&typeof o.filePath=="string")}const Y4=({data:e})=>{const[t,r]=L.useState({explanation:!0,updates:!0,context:!1}),o=s=>{r(a=>({...a,[s]:!a[s]}))};return x.jsxs(P0,{children:[x.jsxs(ji,{children:[x.jsx(Ri,{onClick:()=>o("explanation"),children:x.jsxs(Ti,{expanded:t.explanation,children:[x.jsx(Ii,{children:t.explanation?"▼":"▶"}),"Explanation"]})}),t.explanation&&x.jsx(Ni,{children:x.jsx(Oi,{remarkPlugins:[Mi],children:e.args.explanation})})]}),x.jsxs(ji,{children:[x.jsx(Ri,{onClick:()=>o("updates"),children:x.jsxs(Ti,{expanded:t.updates,children:[x.jsx(Ii,{children:t.updates?"▼":"▶"}),"File Updates (",e.args.fileUpdates.length,")"]})}),t.updates&&x.jsx(Ni,{children:x.jsx(wd,{children:e.args.fileUpdates.map((s,a)=>{var u;return x.jsxs(kd,{id:"file-update-"+s.id,children:[x.jsxs($4,{children:[x.jsx(Hs,{variant:s.updateToolName,children:s.updateToolName}),x.jsx(Sd,{children:s.filePath}),x.jsx(bd,{onClick:()=>o(s.id),children:s.id}),s.temperature&&x.jsx(Hs,{variant:"temperature",title:"Temperature",children:s.temperature}),s.cheap&&x.jsx(Hs,{variant:"cheap",title:"Use cheaper model",children:"Cheap"})]}),s.dependsOn&&t[s.id]&&x.jsxs(A0,{children:["Depends on:"," ",(u=s.dependsOn)==null?void 0:u.map(d=>x.jsx(bd,{onClick:()=>{var f;return(f=document.getElementById("file-update-"+d))==null?void 0:f.scrollIntoView()},children:d},d))]}),x.jsx(P4,{title:"Prompt",children:x.jsx(Oi,{remarkPlugins:[Mi],children:s.prompt})})]},a)})})})]}),x.jsxs(ji,{children:[x.jsx(Ri,{onClick:()=>o("context"),children:x.jsxs(Ti,{expanded:t.context,children:[x.jsx(Ii,{children:t.context?"▼":"▶"}),"Context Paths (",e.args.contextPaths.length,")"]})}),t.context&&x.jsx(Ni,{children:x.jsx(wd,{children:e.args.contextPaths.map((s,a)=>x.jsx(kd,{children:x.jsx(Sd,{children:s})},a))})})]})]})};function Fg(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 r=t.args;return typeof r.explanation=="string"&&Array.isArray(r.fileUpdates)&&Array.isArray(r.contextPaths)&&r.fileUpdates.every(o=>typeof o=="object"&&o!==null&&typeof o.prompt=="string"&&typeof o.filePath=="string"&&typeof o.updateToolName=="string")}const X4=({message:e,collapsedExecutions:t,toggleExecutionCollapse:r,visibleDataIds:o,toggleDataVisibility:s})=>t.has(e.id)?x.jsx(zg,{isExecutionEnd:e.isExecutionEnd,children:x.jsxs(Og,{onClick:()=>r(e.id),children:["▶ Execution ",e.id.split("_")[1]]})}):Z4(e.parts).map((u,d)=>u.parts.length>0?x.jsxs(zg,{isExecutionEnd:e.isExecutionEnd,children:[x.jsxs(Og,{onClick:()=>r(e.id),children:["▼ Execution ",e.id.split("_")[1]]}),x.jsx(W4,{children:u.parts.map(f=>x.jsxs(G4,{children:[f.content,x.jsx(J4,{children:f.timestamp.toLocaleString()}),f.data?x.jsx(K4,{onClick:()=>s(f.id),children:o.has(f.id)?"Hide data":"Show data"}):null,o.has(f.id)&&f.data?x.jsx(bv,{data:f.data}):null]},f.id))})]},`section-${d}`):u.codegenView?x.jsx(Nt.Fragment,{children:u.codegenView},`view-${d}`):null);function Z4(e){const t=[];let r=[];return t.push({parts:r}),e.forEach(o=>{if(r.push(o),Mg(o.data)||Fg(o.data)||Cd(o.data)){const s=Mg(o.data)?x.jsx(Q4,{data:o.data},`planning-${o.id}`):Fg(o.data)?x.jsx(Y4,{data:o.data},`summary-${o.id}`):Cd(o.data)?x.jsx(L0,{data:o.data},`file-update-${o.id}`):null;t.push({parts:[],codegenView:s}),r=[],t.push({parts:r})}}),t}const eA=T.div`
|
|
1673
|
-
display: flex;
|
|
1674
|
-
flex-direction: column;
|
|
1675
|
-
height: 100%;
|
|
1676
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1677
|
-
position: relative;
|
|
1678
|
-
overflow: hidden;
|
|
1679
|
-
`,tA=T.div`
|
|
1680
|
-
display: flex;
|
|
1681
|
-
flex-direction: column;
|
|
1682
|
-
gap: 16px;
|
|
1683
|
-
padding: 16px;
|
|
1684
|
-
overflow-y: auto;
|
|
1685
|
-
flex-grow: 1;
|
|
1686
|
-
max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
|
|
1687
|
-
margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
|
|
1688
|
-
`,nA=T.div`
|
|
1689
|
-
display: flex;
|
|
1690
|
-
flex-direction: column;
|
|
1691
|
-
gap: 8px;
|
|
1692
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1693
|
-
border-radius: 8px;
|
|
1694
|
-
margin-bottom: 24px;
|
|
1695
|
-
`,rA=T.div`
|
|
1696
|
-
font-size: 16px;
|
|
1697
|
-
font-weight: bold;
|
|
1698
|
-
color: ${e=>e.theme.colors.text};
|
|
1699
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1700
|
-
padding: 12px 16px;
|
|
1701
|
-
border-bottom: 1px solid ${e=>e.theme.colors.border};
|
|
1702
|
-
border-top-left-radius: 8px;
|
|
1703
|
-
border-top-right-radius: 8px;
|
|
1704
|
-
display: flex;
|
|
1705
|
-
justify-content: space-between;
|
|
1706
|
-
align-items: center;
|
|
1707
|
-
cursor: pointer;
|
|
1708
|
-
position: sticky;
|
|
1709
|
-
top: -22px;
|
|
1710
|
-
z-index: 10;
|
|
1711
|
-
|
|
1712
|
-
/* Wrap title in a div to control its layout */
|
|
1713
|
-
> .title-wrapper {
|
|
1714
|
-
display: flex;
|
|
1715
|
-
align-items: start;
|
|
1716
|
-
flex-grow: 1;
|
|
1717
|
-
overflow: hidden; /* Ensure long text doesn't overflow */
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
> .title {
|
|
1721
|
-
display: flex;
|
|
1722
|
-
align-items: start;
|
|
1723
|
-
white-space: nowrap; /* Prevent text wrapping */
|
|
1724
|
-
overflow: hidden; /* Hide overflowing text */
|
|
1725
|
-
text-overflow: ellipsis; /* Add ellipsis for overflow */
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
|
-
/* Wrap meta in a div for consistent layout */
|
|
1729
|
-
> .meta-wrapper {
|
|
1730
|
-
display: flex;
|
|
1731
|
-
align-items: center; /* Align meta content vertically */
|
|
1732
|
-
flex-shrink: 0; /* Prevent meta from shrinking */
|
|
1733
|
-
margin-left: auto; /* Push meta to the right */
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
> .meta {
|
|
1737
|
-
font-size: 12px;
|
|
1738
|
-
font-weight: normal;
|
|
1739
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1740
|
-
display: flex;
|
|
1741
|
-
flex-direction: row;
|
|
1742
|
-
align-items: center;
|
|
1743
|
-
gap: 10px;
|
|
1744
|
-
white-space: nowrap;
|
|
1745
|
-
overflow: visible;
|
|
1746
|
-
text-overflow: ellipsis;
|
|
1747
|
-
}
|
|
1748
|
-
`,iA=T.button`
|
|
1749
|
-
display: flex;
|
|
1750
|
-
justify-content: center;
|
|
1751
|
-
align-items: center;
|
|
1752
|
-
background-color: transparent;
|
|
1753
|
-
border: none;
|
|
1754
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1755
|
-
cursor: pointer;
|
|
1756
|
-
font-size: 16px;
|
|
1757
|
-
padding: 4px 8px;
|
|
1758
|
-
border-radius: 4px;
|
|
1759
|
-
margin-left: 8px;
|
|
1760
|
-
z-index: 11;
|
|
1761
|
-
position: relative;
|
|
1762
|
-
min-width: 24px;
|
|
1763
|
-
flex-shrink: 0; /* Prevent the button from shrinking */
|
|
1764
|
-
|
|
1765
|
-
&:hover {
|
|
1766
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1767
|
-
color: ${e=>e.theme.colors.error};
|
|
1768
|
-
}
|
|
1769
|
-
`,oA=T.div`
|
|
1770
|
-
display: ${e=>e.isCollapsed?"none":"flex"};
|
|
1771
|
-
flex-direction: column;
|
|
1772
|
-
gap: 8px;
|
|
1773
|
-
padding: 16px;
|
|
1774
|
-
`,lA=T.p`
|
|
1775
|
-
font-size: 14px;
|
|
1776
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
1777
|
-
background-color: ${e=>e.theme.colors.backgroundTertiary};
|
|
1778
|
-
padding: 8px;
|
|
1779
|
-
border-radius: 4px;
|
|
1780
|
-
margin: 0 0 16px 0;
|
|
1781
|
-
`;T.div`
|
|
1782
|
-
margin-bottom: 16px;
|
|
1783
|
-
|
|
1784
|
-
&:last-child {
|
|
1785
|
-
margin-bottom: 0;
|
|
1786
|
-
}
|
|
1787
|
-
`;const sA=T.span`
|
|
1788
|
-
&:before {
|
|
1789
|
-
content: '▼';
|
|
1790
|
-
margin-right: 8px;
|
|
1791
|
-
}
|
|
1792
|
-
`,aA=T.span`
|
|
1793
|
-
&:before {
|
|
1794
|
-
content: '▶';
|
|
1795
|
-
margin-right: 8px;
|
|
1796
|
-
}
|
|
1797
|
-
`;T.span`
|
|
1798
|
-
color: ${e=>e.theme.colors.primary};
|
|
1799
|
-
cursor: pointer;
|
|
1800
|
-
margin-right: 8px;
|
|
1801
|
-
|
|
1802
|
-
&:hover {
|
|
1803
|
-
text-decoration: underline;
|
|
1804
|
-
}
|
|
1805
|
-
`;function uA(e){return L.useMemo(()=>{const t=[];let r=null,o=null,s=0;return e.sort((a,u)=>a.iterationId<u.iterationId?-1:1).forEach((a,u)=>{var d;(!r||a.iterationId!==r.iterationId)&&(r&&(r.timestampEnd=new Date(a.timestamp),t.push(r)),r={iterationId:a.iterationId,timestampStart:new Date(a.timestamp),timestampEnd:new Date(a.timestamp),conversationSummaries:[],messages:[]}),(d=a.flags)!=null&&d.includes(Od.CONVERSATION_SUMMARY)&&a.data&&(r.conversationSummaries.push(a.data),r.iterationTitle=a.data),a.type===hr.SYSTEM?o?o.parts.push(a):(s++,o={...a,type:hr.SYSTEM,parts:[a],id:`execution_${s}`,isExecutionEnd:u===e.length-1||e[u+1].type!==hr.SYSTEM},r.messages.push(o)):(o&&(o.isExecutionEnd=!0),o=null,r.messages.push(a)),r.timestampEnd=new Date(a.timestamp)}),r&&t.push(r),t.sort((a,u)=>a.timestampStart.getTime()-u.timestampStart.getTime())},[e])}const cA=({onClick:e})=>x.jsxs(fA,{onClick:e,children:[x.jsx(pA,{children:"New messages"}),x.jsx(Oc,{}),x.jsx(Oc,{}),x.jsx(Oc,{})]}),dA=Bi`
|
|
1806
|
-
0%, 80%, 100% {
|
|
1807
|
-
transform: scale(0.8);
|
|
1808
|
-
}
|
|
1809
|
-
40% {
|
|
1810
|
-
transform: scale(1.2);
|
|
1811
|
-
}
|
|
1812
|
-
`,fA=T.div`
|
|
1813
|
-
display: flex;
|
|
1814
|
-
justify-content: center;
|
|
1815
|
-
align-items: center;
|
|
1816
|
-
padding: 10px;
|
|
1817
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
1818
|
-
color: ${e=>e.theme.colors.text};
|
|
1819
|
-
border-radius: 20px;
|
|
1820
|
-
position: absolute;
|
|
1821
|
-
bottom: 20px;
|
|
1822
|
-
left: 50%;
|
|
1823
|
-
transform: translateX(-50%);
|
|
1824
|
-
cursor: pointer;
|
|
1825
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
1826
|
-
transition: all 0.3s ease;
|
|
1827
|
-
z-index: 10;
|
|
1828
|
-
|
|
1829
|
-
&:hover {
|
|
1830
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1831
|
-
}
|
|
1832
|
-
`,pA=T.span`
|
|
1833
|
-
margin-right: 10px;
|
|
1834
|
-
font-weight: bold;
|
|
1835
|
-
`,Oc=T.div`
|
|
1836
|
-
width: 8px;
|
|
1837
|
-
height: 8px;
|
|
1838
|
-
background-color: ${e=>e.theme.colors.text};
|
|
1839
|
-
border-radius: 50%;
|
|
1840
|
-
margin: 0 2px;
|
|
1841
|
-
animation: ${dA} 1.4s infinite ease-in-out both;
|
|
1842
|
-
|
|
1843
|
-
&:nth-child(2) {
|
|
1844
|
-
animation-delay: -0.32s;
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
&:nth-child(3) {
|
|
1848
|
-
animation-delay: -0.16s;
|
|
1849
|
-
}
|
|
1850
|
-
`,hA=T.div`
|
|
1851
|
-
position: relative;
|
|
1852
|
-
width: 100%;
|
|
1853
|
-
`,mA=T.textarea`
|
|
1854
|
-
width: 100%;
|
|
1855
|
-
min-height: 60px;
|
|
1856
|
-
resize: none;
|
|
1857
|
-
padding: 8px;
|
|
1858
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1859
|
-
border-radius: 4px;
|
|
1860
|
-
font-family: inherit;
|
|
1861
|
-
font-size: 14px;
|
|
1862
|
-
background-color: ${e=>e.theme.colors.inputBg};
|
|
1863
|
-
color: ${e=>e.theme.colors.inputText};
|
|
1864
|
-
box-sizing: border-box;
|
|
1865
|
-
overflow: hidden;
|
|
1866
|
-
|
|
1867
|
-
&:focus {
|
|
1868
|
-
outline: none;
|
|
1869
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
1870
|
-
}
|
|
1871
|
-
`,_0=({value:e,onChange:t,onKeyDown:r,onPaste:o,onImagePaste:s,maxViewportHeight:a=.5,...u})=>{const d=L.useRef(null);L.useEffect(()=>{if(d.current){d.current.style.height="auto";const m=d.current.scrollHeight,g=a*window.innerHeight,v=Math.min(m,g);d.current.style.height=`${v}px`}},[e,a]);const f=m=>{t(m.target.value)},p=m=>{var v;const g=(v=m.clipboardData)==null?void 0:v.items;if(g){for(let w=0;w<g.length;w++)if(g[w].type.indexOf("image")!==-1){m.preventDefault();const S=g[w].getAsFile();if(S){const b=new File([S],`pasted-image-${Date.now()}.png`,{type:"image/png"});s==null||s(b)}break}}o==null||o(m)};return x.jsx(hA,{children:x.jsx(mA,{ref:d,value:e,onChange:f,onKeyDown:r,onPaste:p,...u})})},gA=5*1024*1024,Bg=["image/jpeg","image/png","image/gif","image/webp"],Ug=5,$0=({images:e,onImagesChange:t,error:r,setError:o,fileInputRef:s})=>{const a=d=>{const p=Array.from(d.target.files||[]).filter(m=>Bg.includes(m.type)?m.size>gA?(o(`File too large: ${m.name}. Maximum size is 5MB.`),!1):!0:(o(`Invalid file type: ${m.name}. Allowed types are JPEG, PNG, GIF, and WebP.`),!1));if(p.length+e.length>Ug){o(`Too many images. Maximum ${Ug} images allowed.`);return}t([...e,...p]),o(null)},u=d=>{const f=e.filter((p,m)=>m!==d);t(f)};return x.jsxs(yA,{children:[r&&x.jsx(xA,{children:r}),x.jsx(vA,{children:e.map((d,f)=>x.jsxs(wA,{children:[x.jsx("img",{src:URL.createObjectURL(d),alt:`Uploaded ${f+1}`}),x.jsx(kA,{onClick:()=>u(f),children:"×"})]},f))}),x.jsx("input",{type:"file",ref:s,style:{display:"none"},onChange:a,accept:Bg.join(","),multiple:!0})]})},yA=T.div`
|
|
1872
|
-
margin-bottom: 8px;
|
|
1873
|
-
`,xA=T.div`
|
|
1874
|
-
color: ${e=>e.theme.colors.error};
|
|
1875
|
-
font-size: 14px;
|
|
1876
|
-
margin-bottom: 8px;
|
|
1877
|
-
`,vA=T.div`
|
|
1878
|
-
display: flex;
|
|
1879
|
-
flex-wrap: wrap;
|
|
1880
|
-
gap: 8px;
|
|
1881
|
-
`,wA=T.div`
|
|
1882
|
-
position: relative;
|
|
1883
|
-
width: 60px;
|
|
1884
|
-
height: 60px;
|
|
1885
|
-
|
|
1886
|
-
img {
|
|
1887
|
-
width: 100%;
|
|
1888
|
-
height: 100%;
|
|
1889
|
-
object-fit: cover;
|
|
1890
|
-
border-radius: 4px;
|
|
1891
|
-
}
|
|
1892
|
-
`,kA=T.button`
|
|
1893
|
-
position: absolute;
|
|
1894
|
-
top: -8px;
|
|
1895
|
-
right: -8px;
|
|
1896
|
-
background-color: ${e=>e.theme.colors.error};
|
|
1897
|
-
color: white;
|
|
1898
|
-
border: none;
|
|
1899
|
-
border-radius: 50%;
|
|
1900
|
-
width: 20px;
|
|
1901
|
-
height: 20px;
|
|
1902
|
-
font-size: 14px;
|
|
1903
|
-
line-height: 1;
|
|
1904
|
-
cursor: pointer;
|
|
1905
|
-
display: flex;
|
|
1906
|
-
align-items: center;
|
|
1907
|
-
justify-content: center;
|
|
1908
|
-
|
|
1909
|
-
&:hover {
|
|
1910
|
-
background-color: ${e=>e.theme.colors.errorHover};
|
|
1911
|
-
}
|
|
1912
|
-
`,Vg=({onSubmit:e,onInterrupt:t,onPauseResume:r,question:o,codegenOptions:s,executionStatus:a})=>{var se,oe;const[u,d]=L.useState(""),[f,p]=L.useState([]),[m,g]=L.useState(null),{suggestions:v}=L.useContext(Hi)??{suggestions:[]},[w,S]=L.useState(null),[b,R]=L.useState(s.aiService),[C,I]=L.useState(!1),_=L.useRef(null),B=L.useRef(null);L.useEffect(()=>{R(s.aiService)},[s.aiService]),L.useEffect(()=>{const X=U=>{_.current&&!_.current.contains(U.target)&&I(!1)};return document.addEventListener("mousedown",X),()=>{document.removeEventListener("mousedown",X)}},[_]);const q=X=>{p(U=>[...U,X]),g(null)},A=async X=>{if(X.preventDefault(),(u.trim()||f.length>0)&&o)try{await e(u,f,void 0,b),d(""),p([]),S(null),g(null)}catch(U){console.error("Error submitting answer:",U),S("Failed to submit the answer. Please try again.")}},W=async X=>{try{await e(u,f,X,b),d(""),p([]),S(null),g(null)}catch(U){console.error("Error submitting confirmation:",U),S("Failed to submit the confirmation. Please try again.")}},K=X=>{d(X),I(!1)},le=()=>{I(!C)},z=()=>{var X;(X=B.current)==null||X.click()},re=a==="paused";return x.jsxs(SA,{children:[o?x.jsxs(bA,{onSubmit:A,children:[o.confirmation&&x.jsx("p",{children:o.text}),((se=o.confirmation)==null?void 0:se.includeAnswer)!==!1&&x.jsx(_0,{value:u,onChange:d,placeholder:"Enter your answer here or select a suggestion",maxViewportHeight:.3,onImagePaste:q}),((oe=o.confirmation)==null?void 0:oe.includeAnswer)!==!1&&x.jsx($0,{images:f,onImagesChange:p,error:m,setError:g,fileInputRef:B}),!o.confirmation&&x.jsxs(Mc,{children:[x.jsx(TA,{type:"submit",disabled:!u.trim()&&f.length===0,children:"Submit Answer"}),x.jsx(IA,{type:"button",onClick:z,title:"Upload Images",children:x.jsx(nx,{})}),x.jsx(Xs,{value:b,onChange:R,disabled:!1}),v&&v.length>0&&x.jsxs(CA,{ref:_,children:[x.jsxs(EA,{type:"button",onClick:le,children:[v[0],v.length>1&&x.jsx(jA,{children:" ▼"})]}),C&&x.jsx(RA,{children:v.map((X,U)=>x.jsx(NA,{onClick:()=>K(X),children:X},U))})]}),x.jsx(Fc,{onClick:t,children:"Interrupt"})]}),o.confirmation&&x.jsxs(Mc,{children:[x.jsx(Hg,{onClick:()=>W(!0),children:o.confirmation.confirmLabel}),x.jsx(Hg,{onClick:()=>W(!1),"data-secondary":"true",children:o.confirmation.declineLabel}),x.jsx(Xs,{value:b,onChange:R,disabled:!1}),x.jsx(Fc,{onClick:t,children:"Interrupt"})]})]}):x.jsxs(Mc,{children:[x.jsx(PA,{onClick:r,isPaused:re,children:re?"Resume":"Pause"}),x.jsx(Fc,{onClick:t,children:"Interrupt"})]}),w&&x.jsx(AA,{children:w})]})},SA=T.div`
|
|
1913
|
-
background-color: ${({theme:e})=>e.colors.background};
|
|
1914
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1915
|
-
border-radius: 8px;
|
|
1916
|
-
padding: 15px;
|
|
1917
|
-
margin-top: 10px;
|
|
1918
|
-
margin-bottom: 10px;
|
|
1919
|
-
max-width: 70%;
|
|
1920
|
-
width: 100%;
|
|
1921
|
-
box-sizing: border-box;
|
|
1922
|
-
`,bA=T.form`
|
|
1923
|
-
display: flex;
|
|
1924
|
-
flex-direction: column;
|
|
1925
|
-
|
|
1926
|
-
> p {
|
|
1927
|
-
margin-top: 0;
|
|
1928
|
-
}
|
|
1929
|
-
`,CA=T.div`
|
|
1930
|
-
position: relative;
|
|
1931
|
-
display: inline-block;
|
|
1932
|
-
`,EA=T.button`
|
|
1933
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1934
|
-
color: ${e=>e.theme.colors.text};
|
|
1935
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
1936
|
-
border-radius: 4px;
|
|
1937
|
-
padding: 8px 12px;
|
|
1938
|
-
font-size: 14px;
|
|
1939
|
-
cursor: pointer;
|
|
1940
|
-
transition: background-color 0.3s ease;
|
|
1941
|
-
display: flex;
|
|
1942
|
-
align-items: center;
|
|
1943
|
-
white-space: nowrap;
|
|
1944
|
-
overflow: hidden;
|
|
1945
|
-
text-overflow: ellipsis;
|
|
1946
|
-
max-width: 200px;
|
|
1947
|
-
|
|
1948
|
-
&:hover {
|
|
1949
|
-
background-color: ${e=>e.theme.colors.primary+"22"};
|
|
1950
|
-
}
|
|
1951
|
-
`,jA=T.span`
|
|
1952
|
-
margin-left: 5px;
|
|
1953
|
-
font-size: 0.8em;
|
|
1954
|
-
`,RA=T.div`
|
|
1955
|
-
position: absolute;
|
|
1956
|
-
bottom: 100%;
|
|
1957
|
-
left: 0;
|
|
1958
|
-
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
1959
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1960
|
-
border-radius: 4px;
|
|
1961
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
1962
|
-
z-index: 1000;
|
|
1963
|
-
max-width: 300px;
|
|
1964
|
-
max-height: 200px;
|
|
1965
|
-
overflow-y: auto;
|
|
1966
|
-
margin-bottom: 5px;
|
|
1967
|
-
`,NA=T.div`
|
|
1968
|
-
padding: 8px 12px;
|
|
1969
|
-
color: ${({theme:e})=>e.colors.inputText};
|
|
1970
|
-
cursor: pointer;
|
|
1971
|
-
white-space: nowrap;
|
|
1972
|
-
overflow: hidden;
|
|
1973
|
-
text-overflow: ellipsis;
|
|
1974
|
-
|
|
1975
|
-
&:hover {
|
|
1976
|
-
background-color: ${({theme:e})=>e.colors.primary+"22"};
|
|
1977
|
-
}
|
|
1978
|
-
`,Mc=T.div`
|
|
1979
|
-
display: flex;
|
|
1980
|
-
align-items: center;
|
|
1981
|
-
justify-content: flex-start;
|
|
1982
|
-
gap: 10px;
|
|
1983
|
-
margin-top: 10px;
|
|
1984
|
-
flex-wrap: wrap;
|
|
1985
|
-
`,pl=T.button`
|
|
1986
|
-
color: #ffffff;
|
|
1987
|
-
border: none;
|
|
1988
|
-
border-radius: 4px;
|
|
1989
|
-
padding: 8px 12px;
|
|
1990
|
-
font-size: 14px;
|
|
1991
|
-
cursor: pointer;
|
|
1992
|
-
transition: background-color 0.3s ease;
|
|
1993
|
-
|
|
1994
|
-
&:disabled {
|
|
1995
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
1996
|
-
cursor: not-allowed;
|
|
1997
|
-
}
|
|
1998
|
-
`,TA=T(pl)`
|
|
1999
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
2000
|
-
|
|
2001
|
-
&:hover:not(:disabled) {
|
|
2002
|
-
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
2003
|
-
}
|
|
2004
|
-
`,IA=T(pl)`
|
|
2005
|
-
background-color: ${({theme:e})=>e.colors.buttonBg}; /* Or choose another appropriate color */
|
|
2006
|
-
|
|
2007
|
-
&:hover {
|
|
2008
|
-
background-color: ${({theme:e})=>e.colors.buttonHoverBg}dd;
|
|
2009
|
-
}
|
|
2010
|
-
`,Hg=T(pl)`
|
|
2011
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
2012
|
-
&:hover {
|
|
2013
|
-
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
&[data-secondary='true'] {
|
|
2017
|
-
background-color: ${({theme:e})=>e.colors.secondary};
|
|
2018
|
-
&:hover {
|
|
2019
|
-
background-color: ${({theme:e})=>e.colors.secondary}dd;
|
|
2020
|
-
}
|
|
2021
|
-
}
|
|
2022
|
-
`,Fc=T(pl)`
|
|
2023
|
-
background-color: ${({theme:e})=>e.colors.error};
|
|
2024
|
-
margin-left: auto;
|
|
2025
|
-
|
|
2026
|
-
&:hover {
|
|
2027
|
-
background-color: ${({theme:e})=>e.colors.error}dd;
|
|
2028
|
-
}
|
|
2029
|
-
`,PA=T(pl)`
|
|
2030
|
-
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info};
|
|
2031
|
-
|
|
2032
|
-
&:hover {
|
|
2033
|
-
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info}dd;
|
|
2034
|
-
}
|
|
2035
|
-
`,AA=T.p`
|
|
2036
|
-
color: ${({theme:e})=>e.colors.error};
|
|
2037
|
-
font-weight: bold;
|
|
2038
|
-
margin-top: 10px;
|
|
2039
|
-
margin-bottom: 0;
|
|
2040
|
-
`,LA=({isVisible:e,onInterrupt:t,onPauseResume:r,executionStatus:o})=>e?x.jsxs($A,{children:[x.jsx(zA,{onClick:t,children:"Interrupt"}),x.jsxs(DA,{"data-execution-status":o,children:[x.jsx(Bc,{}),x.jsx(Bc,{}),x.jsx(Bc,{})]}),x.jsx(D0,{onClick:r,children:o==="paused"?"Resume":"Pause"})]}):null,_A=Bi`
|
|
2041
|
-
0%, 80%, 100% {
|
|
2042
|
-
transform: scale(0);
|
|
2043
|
-
}
|
|
2044
|
-
40% {
|
|
2045
|
-
transform: scale(1.0);
|
|
2046
|
-
}
|
|
2047
|
-
`,$A=T.div`
|
|
2048
|
-
display: flex;
|
|
2049
|
-
flex-direction: row;
|
|
2050
|
-
align-items: center;
|
|
2051
|
-
justify-content: center;
|
|
2052
|
-
gap: 50px;
|
|
2053
|
-
padding: 10px;
|
|
2054
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2055
|
-
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
2056
|
-
`,DA=T.div`
|
|
2057
|
-
display: flex;
|
|
2058
|
-
align-items: center;
|
|
2059
|
-
justify-content: center;
|
|
2060
|
-
align-items: center;
|
|
2061
|
-
margin-bottom: 10px;
|
|
2062
|
-
`,Bc=T.div`
|
|
2063
|
-
width: 10px;
|
|
2064
|
-
height: 10px;
|
|
2065
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
2066
|
-
border-radius: 50%;
|
|
2067
|
-
margin: 0 5px;
|
|
2068
|
-
|
|
2069
|
-
[data-execution-status='executing'] & {
|
|
2070
|
-
animation: ${_A} 1.4s infinite ease-in-out both;
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
-
&:nth-child(1) {
|
|
2074
|
-
animation-delay: -0.32s;
|
|
2075
|
-
}
|
|
2076
|
-
|
|
2077
|
-
&:nth-child(2) {
|
|
2078
|
-
animation-delay: -0.16s;
|
|
2079
|
-
}
|
|
2080
|
-
`,D0=T.button`
|
|
2081
|
-
padding: 8px 16px;
|
|
2082
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
2083
|
-
color: #ffffff;
|
|
2084
|
-
border: none;
|
|
2085
|
-
border-radius: 4px;
|
|
2086
|
-
cursor: pointer;
|
|
2087
|
-
font-size: 14px;
|
|
2088
|
-
font-weight: 600;
|
|
2089
|
-
transition: background-color 0.3s, transform 0.1s;
|
|
2090
|
-
|
|
2091
|
-
&:hover {
|
|
2092
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
2093
|
-
transform: translateY(-1px);
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
&:active {
|
|
2097
|
-
transform: translateY(0);
|
|
2098
|
-
}
|
|
2099
|
-
`,zA=T(D0)`
|
|
2100
|
-
background-color: ${({theme:e})=>e.colors.error};
|
|
2101
|
-
|
|
2102
|
-
&:hover {
|
|
2103
|
-
background-color: ${({theme:e})=>e.colors.errorHover};
|
|
2104
|
-
}
|
|
2105
|
-
`,OA=({messages:e,currentQuestion:t,codegenOptions:r,onQuestionSubmit:o,onInterrupt:s,onPauseResume:a,executionStatus:u})=>{var X;const[d,f]=L.useState(()=>new Set),[p,m]=L.useState(()=>new Set),[g,v]=L.useState(()=>new Set),[w]=L.useState(null),S=L.useRef(null),b=L.useRef(null),[R,C]=L.useState(!1),[I,_]=L.useState(!0),[B,q]=L.useState(null),A=uA(e),W=u!=="idle"?(X=A[A.length-1])==null?void 0:X.iterationId:null,K=L.useCallback(()=>{if(!b.current)return!0;const{scrollTop:U,scrollHeight:de,clientHeight:ae}=b.current;return Math.abs(de-ae-U)<5||de<=ae},[]);L.useEffect(()=>{const U=b.current;if(!U)return;const de=()=>{const ae=K();_(ae),ae&&C(!1)};return U.addEventListener("scroll",de),()=>U.removeEventListener("scroll",de)},[K]),L.useEffect(()=>{I?se():e.length>0&&C(!0)},[A,I,e.length]),L.useEffect(()=>{const U=new Set(A.slice(0,-1).map(de=>de.iterationId));v(U)},[A.length]);const le=U=>{f(de=>{const ae=new Set(de);return ae.has(U)?ae.delete(U):ae.add(U),ae})},z=U=>{m(de=>{const ae=new Set(de);return ae.has(U)?ae.delete(U):ae.add(U),ae})},re=U=>{var de;w&&((de=e.find(ae=>ae.id===w))==null?void 0:de.iterationId)===U||v(ae=>{const Z=new Set(ae);return Z.has(U)?Z.delete(U):Z.add(U),Z})},se=()=>{requestAnimationFrame(()=>{var U;(U=b.current)==null||U.scrollTo({top:b.current.scrollHeight,behavior:"smooth"})}),C(!1)},oe=async U=>{if(B===U)try{await Db(U),q(null)}catch(de){console.error("Failed to delete iteration:",de)}else q(U)};return x.jsxs(eA,{children:[x.jsxs(tA,{ref:b,children:[A.map((U,de)=>x.jsxs(nA,{children:[x.jsxs(rA,{children:[x.jsxs("div",{className:"title",onClick:()=>re(U.iterationId),children:[g.has(U.iterationId)?x.jsx(aA,{}):x.jsx(sA,{}),x.jsx("span",{children:U.iterationTitle??`Iteration ${U.iterationId}`})]}),x.jsxs("span",{className:"meta",children:[U.timestampStart.toLocaleString()," - ",U.timestampEnd.toLocaleString(),x.jsx(N0,{messages:U.messages}),U.iterationId!==W&&x.jsx(iA,{onClick:()=>oe(U.iterationId),title:B===U.iterationId?"Confirm deletion":"Delete iteration",children:B===U.iterationId?"🗑️ Confirm":"🗑️"})]})]}),x.jsxs(oA,{isCollapsed:g.has(U.iterationId),children:[U.conversationSummaries.length>0&&x.jsx(lA,{children:U.conversationSummaries.join(" ")}),U.messages.map((ae,Z)=>x.jsxs(Nt.Fragment,{children:[ae.type===hr.SYSTEM?x.jsx(X4,{message:ae,collapsedExecutions:p,toggleExecutionCollapse:z,visibleDataIds:d,toggleDataVisibility:le}):x.jsx(q4,{message:ae,visibleDataIds:d,toggleDataVisibility:le}),u!=="idle"&&t&&de===A.length-1&&Z===U.messages.length-1&&x.jsx(Vg,{onSubmit:o,onInterrupt:s,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u})]},ae.id))]})]},U.iterationId)),u!=="idle"&&t&&A.length>0&&A[A.length-1].messages.length===0&&x.jsx(Vg,{onSubmit:o,onInterrupt:s,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u}),x.jsx("div",{ref:S})]}),R&&!I&&x.jsx(cA,{onClick:se}),x.jsx(LA,{isVisible:u!=="idle"&&!t,onInterrupt:s,onPauseResume:a,executionStatus:u})]})},MA=({onSubmit:e,onUploadClick:t,onAiServiceChange:r,options:o,disabled:s})=>x.jsxs(BA,{children:[x.jsx(FA,{onClick:e,disabled:s,children:"Submit"}),x.jsx(z0,{onClick:t,title:"Upload Images",children:x.jsx(nx,{})}),x.jsx(Xs,{value:o.aiService,onChange:r})]}),z0=T.button`
|
|
2106
|
-
color: ${({theme:e})=>e.colors.buttonText};
|
|
2107
|
-
background-color: ${({theme:e})=>e.colors.buttonBg};
|
|
2108
|
-
border: none;
|
|
2109
|
-
border-radius: 4px;
|
|
2110
|
-
padding: 10px 15px;
|
|
2111
|
-
font-size: 14px;
|
|
2112
|
-
cursor: pointer;
|
|
2113
|
-
transition: background-color 0.3s ease;
|
|
2114
|
-
margin-right: 10px;
|
|
2115
|
-
|
|
2116
|
-
&:hover {
|
|
2117
|
-
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
&:disabled {
|
|
2121
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
2122
|
-
cursor: not-allowed;
|
|
2123
|
-
}
|
|
2124
|
-
`,FA=T(z0)`
|
|
2125
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
2126
|
-
color: #ffffff;
|
|
2127
|
-
|
|
2128
|
-
&:hover {
|
|
2129
|
-
background-color: ${({theme:e})=>e.colors.primaryHover};
|
|
2130
|
-
}
|
|
2131
|
-
|
|
2132
|
-
&:disabled {
|
|
2133
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
2134
|
-
}
|
|
2135
|
-
`,BA=T.div`
|
|
2136
|
-
display: flex;
|
|
2137
|
-
justify-content: flex-start;
|
|
2138
|
-
margin-top: 10px;
|
|
2139
|
-
`,UA=e=>{const{onSubmit:t,isExecuting:r,codegenOptions:o,onOptionsChange:s}=e,[a,u]=L.useState(""),[d,f]=L.useState([]),[p,m]=L.useState(null),g=L.useRef(null);if(r)return null;const v=()=>{(a.trim()||d.length>0)&&(t(a.trim(),d),u(""),f([]))},w=C=>{f(C)},S=()=>{var C;(C=g.current)==null||C.click()},b=C=>{const I=[...d,C];w(I)},R=C=>{s({...o,aiService:C})};return x.jsxs(VA,{children:[x.jsx(HA,{children:x.jsx(_0,{value:a,onChange:u,placeholder:"Enter your input here",onImagePaste:b})}),x.jsx($0,{images:d,onImagesChange:w,error:p,setError:m,fileInputRef:g}),x.jsx(MA,{onSubmit:v,onUploadClick:S,onAiServiceChange:R,options:o,disabled:!a.trim()&&d.length===0})]})},VA=T.div`
|
|
2140
|
-
display: flex;
|
|
2141
|
-
flex-direction: column;
|
|
2142
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2143
|
-
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
2144
|
-
padding: 16px;
|
|
2145
|
-
width: 100%;
|
|
2146
|
-
box-sizing: border-box;
|
|
2147
|
-
`,HA=T.div`
|
|
2148
|
-
margin-bottom: 16px;
|
|
2149
|
-
width: 100%;
|
|
2150
|
-
`,qA=({theme:e,toggleTheme:t})=>x.jsx(gr,{onClick:t,"aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:e==="light"?"🌙":"☀️"}),qg=Vk`
|
|
2151
|
-
body {
|
|
2152
|
-
color: ${({theme:e})=>e.colors.text};
|
|
2153
|
-
font-family: Arial, sans-serif;
|
|
2154
|
-
margin: 0;
|
|
2155
|
-
padding: 0;
|
|
2156
|
-
background-color: ${({theme:e})=>e.colors.pageBackground};
|
|
2157
|
-
}
|
|
2158
|
-
|
|
2159
|
-
body::before {
|
|
2160
|
-
content: '';
|
|
2161
|
-
position: fixed;
|
|
2162
|
-
top: 0;
|
|
2163
|
-
left: 0;
|
|
2164
|
-
right: 0;
|
|
2165
|
-
bottom: 0;
|
|
2166
|
-
transition: all 0.3s ease;
|
|
2167
|
-
opacity: 0.1;
|
|
2168
|
-
background-image: url(${e=>e.theme.backgroundImage});
|
|
2169
|
-
background-size: cover;
|
|
2170
|
-
background-position: center;
|
|
2171
|
-
background-repeat: no-repeat;
|
|
2172
|
-
background-attachment: fixed;
|
|
2173
|
-
z-index: -1;
|
|
2174
|
-
}
|
|
2175
|
-
`;var Ko=(e=>(e.FOCUS="GENAICODE_FOCUS",e.BLUR="GENAICODE_BLUR",e.NEW_MESSAGES="GENAICODE_NEW_MESSAGES",e.RESET_NOTIFICATIONS="GENAICODE_RESET_NOTIFICATIONS",e))(Ko||{});const WA=new URL("/assets/wolf-bark-Bl17CX4O.mp3",import.meta.url);class GA{constructor(){$o(this,"context");$o(this,"bufferCache",new Map);$o(this,"initialized",!1);$o(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(WA.href);this.bufferCache.set("bark",t),this.initialized=!0}catch(t){console.error("Failed to initialize sounds:",t)}}async loadAudioBuffer(t){const o=await(await fetch(t)).arrayBuffer();return await this.context.decodeAudioData(o)}async play(t,r=.5){this.initialized||await this.initSounds();const o=this.bufferCache.get(t);if(!o){console.warn(`Sound "${t}" not found in cache`);return}try{this.context.state==="suspended"&&await this.context.resume();const s=this.context.createBufferSource();s.buffer=o;const a=this.context.createGain();a.gain.value=Math.max(0,Math.min(1,r)),s.connect(a),a.connect(this.context.destination),s.start(0),this.currentSources.push(s)}catch(s){console.error(`Failed to play sound "${t}":`,s)}}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 Uc=new GA,JA=({messages:e,muteNotifications:t=!1})=>{const r=L.useRef(e.length),o=L.useRef(document.hasFocus()),s=L.useRef(document.title),[a,u]=L.useState(0),d=window!==window.parent;L.useEffect(()=>(s.current=document.title,()=>{document.title=s.current}),[]);const f=p=>{if(d&&window.parent){const m={...p,source:"genaicode",origin:window.location.origin};window.parent.postMessage(m,"*")}};return L.useEffect(()=>{const p=()=>{const m=document.hasFocus()&&document.visibilityState==="visible";o.current=m,d?f({type:m?Ko.FOCUS:Ko.BLUR,payload:{isFocused:m,timestamp:Date.now()}}):m&&(document.title=s.current),m&&(u(0),document.title=s.current,Uc.stop())};return window.addEventListener("focus",p),window.addEventListener("blur",p),document.addEventListener("visibilitychange",p,!1),d&&p(),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",p),document.removeEventListener("visibilitychange",p,!1)}},[]),L.useEffect(()=>{if(!d)return;const p=m=>{if(m.source===window.parent)try{const{type:g,source:v}=m.data;if(v!=="genaicode")return;switch(g){case Ko.RESET_NOTIFICATIONS:u(0),Uc.stop();break}}catch(g){console.warn("Error handling notification message:",g)}};return window.addEventListener("message",p),()=>window.removeEventListener("message",p)},[]),L.useEffect(()=>{if(e.length>r.current){const p=e.length-r.current;if(d)f({type:Ko.NEW_MESSAGES,payload:{count:p,timestamp:Date.now()}});else if(!o.current){const m=a+p;u(m),document.title=`(${m}) ${s.current}`}!o.current&&!t&&Uc.playBark(.5)}r.current=e.length},[e,a,t]),null};async function KA(e){return[]}const QA=()=>{const e=zd();if(!e)return console.warn("SuggestionGenerator used outside of ChatStateProvider"),null;const{messages:t,executionStatus:r,currentQuestion:o,setSuggestions:s}=e;return L.useEffect(()=>{var f;if(!s)return;if(r!=="executing"||!o||o.confirmation){s([]);return}const a=t.length>0?(f=t[t.length-1])==null?void 0:f.iterationId:null;if(!a){s([]);return}t.filter(p=>p.iterationId===a).flatMap(p=>p.type===hr.SYSTEM&&"parts"in p&&Array.isArray(p.parts)?p.parts:[p]).length>0?(console.log("Attempting to generate suggestions using conversation context in SuggestionGenerator..."),KA().then(p=>{p.length>0?(console.log("Suggestions generated by SuggestionGenerator:",p),s(p)):(console.log("No suggestions generated or generation failed in SuggestionGenerator."),s([]))}).catch(p=>{console.error("Error generating suggestions in SuggestionGenerator:",p),s([])})):s([])},[r,o,t,s]),null},YA=T.div`
|
|
2176
|
-
position: fixed;
|
|
2177
|
-
bottom: 70px; /* Adjust as needed to not overlap input area */
|
|
2178
|
-
right: 20px;
|
|
2179
|
-
width: 400px;
|
|
2180
|
-
max-height: 50vh;
|
|
2181
|
-
background-color: ${({theme:e})=>e.colors.backgroundAlt};
|
|
2182
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
2183
|
-
border-radius: 8px;
|
|
2184
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
2185
|
-
z-index: 1000;
|
|
2186
|
-
overflow: auto;
|
|
2187
|
-
padding: 15px;
|
|
2188
|
-
display: flex;
|
|
2189
|
-
flex-direction: column;
|
|
2190
|
-
`,XA=T.div`
|
|
2191
|
-
display: flex;
|
|
2192
|
-
justify-content: space-between;
|
|
2193
|
-
align-items: center;
|
|
2194
|
-
margin-bottom: 10px;
|
|
2195
|
-
padding-bottom: 10px;
|
|
2196
|
-
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
2197
|
-
|
|
2198
|
-
h3 {
|
|
2199
|
-
margin: 0;
|
|
2200
|
-
font-size: 1rem;
|
|
2201
|
-
color: ${({theme:e})=>e.colors.text};
|
|
2202
|
-
}
|
|
2203
|
-
`,ZA=T.button`
|
|
2204
|
-
background: none;
|
|
2205
|
-
border: none;
|
|
2206
|
-
color: ${({theme:e})=>e.colors.text};
|
|
2207
|
-
font-size: 1.2rem;
|
|
2208
|
-
cursor: pointer;
|
|
2209
|
-
padding: 0;
|
|
2210
|
-
line-height: 1;
|
|
2211
|
-
|
|
2212
|
-
&:hover {
|
|
2213
|
-
color: ${({theme:e})=>e.colors.primary};
|
|
2214
|
-
}
|
|
2215
|
-
`,eL=T.div`
|
|
2216
|
-
flex-grow: 1;
|
|
2217
|
-
/* Basic layout for nodes and edges - consider using a graph library for actual rendering */
|
|
2218
|
-
display: flex;
|
|
2219
|
-
flex-direction: column;
|
|
2220
|
-
gap: 10px;
|
|
2221
|
-
`,tL=T.div`
|
|
2222
|
-
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
2223
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
2224
|
-
border-radius: 4px;
|
|
2225
|
-
padding: 8px 12px;
|
|
2226
|
-
font-size: 0.9rem;
|
|
2227
|
-
color: ${({theme:e})=>e.colors.inputText};
|
|
2228
|
-
|
|
2229
|
-
${({isActive:e,theme:t})=>e&&kt`
|
|
2230
|
-
border-color: ${t.colors.primary};
|
|
2231
|
-
box-shadow: 0 0 0 2px ${t.colors.primary}40;
|
|
2232
|
-
font-weight: bold;
|
|
2233
|
-
`}
|
|
2234
|
-
|
|
2235
|
-
strong {
|
|
2236
|
-
color: ${({theme:e})=>e.colors.primary};
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
p {
|
|
2240
|
-
margin: 5px 0 0 0;
|
|
2241
|
-
font-size: 0.8rem;
|
|
2242
|
-
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2243
|
-
}
|
|
2244
|
-
`,nL=T.div`
|
|
2245
|
-
font-size: 0.8rem;
|
|
2246
|
-
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2247
|
-
padding-left: 15px;
|
|
2248
|
-
position: relative;
|
|
2249
|
-
|
|
2250
|
-
&::before {
|
|
2251
|
-
content: '->';
|
|
2252
|
-
position: absolute;
|
|
2253
|
-
left: 0;
|
|
2254
|
-
color: ${({theme:e})=>e.colors.primary};
|
|
2255
|
-
}
|
|
2256
|
-
`,rL=()=>{const{conversationGraphState:e,isGraphVisualiserOpen:t,toggleGraphVisualiser:r}=zd();if(!t||!(e!=null&&e.isActive))return null;const{nodes:o=[],edges:s=[],currentNodeId:a}=e;return x.jsxs(YA,{children:[x.jsxs(XA,{children:[x.jsx("h3",{children:"Conversation Flow"}),x.jsx(ZA,{onClick:r,"aria-label":"Close visualiser",children:"×"})]}),x.jsxs(eL,{children:[x.jsx("h4",{children:"Nodes:"}),o.map(u=>x.jsxs(tL,{isActive:u.id===a,children:[x.jsxs("strong",{children:["ID: ",u.id]})," (",u.actionType,")",x.jsx("p",{children:u.instruction})]},u.id)),x.jsx("h4",{children:"Edges:"}),s.map((u,d)=>x.jsxs(nL,{children:[u.sourceNode," to ",u.targetNode,": ",u.instruction]},`${u.sourceNode}-${u.targetNode}-${d}`)),a&&x.jsxs("p",{children:[x.jsx("strong",{children:"Current Node:"})," ",a]})]})]})},iL=e=>{var t;for(let r=e.length-1;r>=0;r--){const o=e[r];if(o.type===hr.SYSTEM&&((t=o.data)!=null&&t.conversationGraphState))return o.data.conversationGraphState}return null},oL=()=>{const{messages:e,setConversationGraphState:t}=L.useContext(Hi);return L.useEffect(()=>{const r=iL(e);t(o=>JSON.stringify(o)!==JSON.stringify(r)?r:o)},[e,t]),null},lL=()=>{const{messages:e,executionStatus:t,currentQuestion:r,theme:o,usage:s,codegenOptions:a,rcConfig:u,toggleTheme:d,setCodegenOptions:f,handlePauseExecution:p,handleResumeExecution:m}=L.useContext(Hi),{handleExecute:g,handleQuestionSubmit:v,handleInterrupt:w}=IE({codegenOptions:a}),S=()=>{t==="paused"?m():p()};if(!s||!a)return x.jsxs(vm,{theme:o==="light"?Sm:bm,children:[x.jsx(qg,{}),x.jsx("div",{children:"Loading..."})," "]});const b=t!=="idle";return x.jsxs(vm,{theme:o==="light"?Sm:bm,children:[x.jsx(qg,{}),x.jsx(yE,{themeToggle:x.jsx(qA,{theme:o,toggleTheme:d}),toggleTheme:d,chatInterface:x.jsx(OA,{messages:e,currentQuestion:r,codegenOptions:a,onQuestionSubmit:v,onInterrupt:w,onPauseResume:S,executionStatus:t}),inputArea:!b&&x.jsx(UA,{onSubmit:g,isExecuting:b,onInterrupt:w,codegenOptions:a,onOptionsChange:f}),usage:s}),x.jsx(Fb,{currentService:a.aiService}),x.jsx(tC,{}),x.jsx(zC,{}),x.jsx(qC,{rcConfig:u}),x.jsx(sE,{options:a,onOptionsChange:f}),x.jsx(JA,{messages:e,muteNotifications:a.muteNotifications}),x.jsx(rL,{}),x.jsx(oL,{})]})};function sL(){return x.jsxs(dE,{children:[x.jsx(QA,{})," ",x.jsx(lL,{})," "]})}const aL=document.getElementById("root"),uL=Fw.createRoot(aL);uL.render(Nt.createElement(sL,null));
|