@noorm/marie-cli 0.1.18 → 0.1.25
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 +7 -15
- package/SENTINEL.md +4 -7
- package/dist/cli-new/components/App.js +16 -63
- package/dist/cli-new/components/App.js.map +1 -1
- package/dist/cli-new/components/ApprovalDialog.js +2 -1
- package/dist/cli-new/components/ApprovalDialog.js.map +1 -1
- package/dist/cli-new/components/Banner.js +4 -3
- package/dist/cli-new/components/Banner.js.map +1 -1
- package/dist/cli-new/components/ChatArea.js +6 -7
- package/dist/cli-new/components/ChatArea.js.map +1 -1
- package/dist/cli-new/components/Header.js +13 -7
- package/dist/cli-new/components/Header.js.map +1 -1
- package/dist/cli-new/components/InputArea.js +73 -12
- package/dist/cli-new/components/InputArea.js.map +1 -1
- package/dist/cli-new/components/MessageBubble.js +26 -18
- package/dist/cli-new/components/MessageBubble.js.map +1 -1
- package/dist/cli-new/components/SessionSwitcher.js +4 -7
- package/dist/cli-new/components/SessionSwitcher.js.map +1 -1
- package/dist/cli-new/components/SetupWizard.js +80 -257
- package/dist/cli-new/components/SetupWizard.js.map +1 -1
- package/dist/cli-new/components/ToolCallDisplay.js +20 -5
- package/dist/cli-new/components/ToolCallDisplay.js.map +1 -1
- package/dist/cli-new/components/WizardSteps.js +22 -0
- package/dist/cli-new/components/WizardSteps.js.map +1 -0
- package/dist/cli-new/constants/SetupConstants.js +42 -0
- package/dist/cli-new/constants/SetupConstants.js.map +1 -0
- package/dist/cli-new/hooks/useGit.js +19 -62
- package/dist/cli-new/hooks/useGit.js.map +1 -1
- package/dist/cli-new/hooks/useMarie.js +26 -18
- package/dist/cli-new/hooks/useMarie.js.map +1 -1
- package/dist/cli-new/hooks/useSessions.js +1 -1
- package/dist/cli-new/hooks/useSessions.js.map +1 -1
- package/dist/cli-new/hooks/useSetupWizard.js +88 -0
- package/dist/cli-new/hooks/useSetupWizard.js.map +1 -0
- package/dist/cli-new/hooks/useUpdateCheck.js +4 -3
- package/dist/cli-new/hooks/useUpdateCheck.js.map +1 -1
- package/dist/cli-new/index.js +2 -4
- package/dist/cli-new/index.js.map +1 -1
- package/dist/cli-new/services/CommandService.js +104 -0
- package/dist/cli-new/services/CommandService.js.map +1 -0
- package/dist/cli-new/services/GitService.js +91 -0
- package/dist/cli-new/services/GitService.js.map +1 -0
- package/dist/cli-new/services/MarieService.js +77 -0
- package/dist/cli-new/services/MarieService.js.map +1 -0
- package/dist/cli-new/services/auth-server.js +128 -0
- package/dist/cli-new/services/auth-server.js.map +1 -0
- package/dist/cli-new/utils/version.js +24 -0
- package/dist/cli-new/utils/version.js.map +1 -0
- package/dist/monolith/adapters/CliMarieAdapter.js +12 -11
- package/dist/monolith/adapters/CliMarieAdapter.js.map +1 -1
- package/dist/monolith/cli/CliFileSystemPort.js +17 -3
- package/dist/monolith/cli/CliFileSystemPort.js.map +1 -1
- package/dist/monolith/cli/MarieToolDefinitionsCLI.js +39 -31
- package/dist/monolith/cli/MarieToolDefinitionsCLI.js.map +1 -1
- package/dist/monolith/cli/index.js +5 -20
- package/dist/monolith/cli/index.js.map +1 -1
- package/dist/monolith/cli/services/JoyAutomationServiceCLI.js +15 -62
- package/dist/monolith/cli/services/JoyAutomationServiceCLI.js.map +1 -1
- package/dist/monolith/cli/storage.js +142 -72
- package/dist/monolith/cli/storage.js.map +1 -1
- package/dist/monolith/domain/joy/RitualService.js +44 -46
- package/dist/monolith/domain/joy/RitualService.js.map +1 -1
- package/dist/monolith/domain/marie/MarieCortex.js +148 -0
- package/dist/monolith/domain/marie/MarieCortex.js.map +1 -0
- package/dist/monolith/domain/marie/PersonalityRenderer.js +97 -0
- package/dist/monolith/domain/marie/PersonalityRenderer.js.map +1 -0
- package/dist/monolith/infrastructure/Configuration.js +68 -0
- package/dist/monolith/infrastructure/Configuration.js.map +1 -0
- package/dist/monolith/infrastructure/CoreInfrastructure.js +204 -0
- package/dist/monolith/infrastructure/CoreInfrastructure.js.map +1 -0
- package/dist/monolith/infrastructure/ai/agents/MarieAscendant.js +3 -3
- package/dist/monolith/infrastructure/ai/agents/MarieAscendant.js.map +1 -1
- package/dist/monolith/infrastructure/ai/context/ContextArchiveService.js +6 -27
- package/dist/monolith/infrastructure/ai/context/ContextArchiveService.js.map +1 -1
- package/dist/monolith/infrastructure/ai/context/ContextManager.js +142 -131
- package/dist/monolith/infrastructure/ai/context/ContextManager.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieEngine.js +115 -1077
- package/dist/monolith/infrastructure/ai/core/MarieEngine.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieEventDispatcher.js +1 -37
- package/dist/monolith/infrastructure/ai/core/MarieEventDispatcher.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieLockManager.js +6 -1
- package/dist/monolith/infrastructure/ai/core/MarieLockManager.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieProgressTracker.js +172 -221
- package/dist/monolith/infrastructure/ai/core/MarieProgressTracker.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieSanitizer.js +292 -141
- package/dist/monolith/infrastructure/ai/core/MarieSanitizer.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieToolProcessor.js +331 -614
- package/dist/monolith/infrastructure/ai/core/MarieToolProcessor.js.map +1 -1
- package/dist/monolith/infrastructure/ai/core/MarieVitality.js +238 -0
- package/dist/monolith/infrastructure/ai/core/MarieVitality.js.map +1 -0
- package/dist/monolith/infrastructure/ai/core/SessionLogService.js +9 -2
- package/dist/monolith/infrastructure/ai/core/SessionLogService.js.map +1 -1
- package/dist/monolith/infrastructure/ai/providers/AIProvider.js +402 -1
- package/dist/monolith/infrastructure/ai/providers/AIProvider.js.map +1 -1
- package/dist/monolith/infrastructure/ai/providers/DreamBeesProvider.js +114 -0
- package/dist/monolith/infrastructure/ai/providers/DreamBeesProvider.js.map +1 -0
- package/dist/monolith/infrastructure/ai/providers/OpenRouterProvider.js +426 -392
- package/dist/monolith/infrastructure/ai/providers/OpenRouterProvider.js.map +1 -1
- package/dist/monolith/infrastructure/ai/providers/OpenRouterStreamParser.js +235 -241
- package/dist/monolith/infrastructure/ai/providers/OpenRouterStreamParser.js.map +1 -1
- package/dist/monolith/infrastructure/ai/workerAi.js +185 -0
- package/dist/monolith/infrastructure/ai/workerAi.js.map +1 -0
- package/dist/monolith/infrastructure/config/ConfigService.js +216 -503
- package/dist/monolith/infrastructure/config/ConfigService.js.map +1 -1
- package/dist/monolith/infrastructure/joy/CognitiveRituals.js +4 -165
- package/dist/monolith/infrastructure/joy/CognitiveRituals.js.map +1 -1
- package/dist/monolith/infrastructure/joy/JoyTools.js +14 -47
- package/dist/monolith/infrastructure/joy/JoyTools.js.map +1 -1
- package/dist/monolith/infrastructure/persistence/MarieMindAutonomics.js +4 -0
- package/dist/monolith/infrastructure/persistence/MarieMindAutonomics.js.map +1 -0
- package/dist/monolith/infrastructure/persistence/MarieMindEngine.js +11 -0
- package/dist/monolith/infrastructure/persistence/MarieMindEngine.js.map +1 -0
- package/dist/monolith/infrastructure/persistence/NoormmeAutonomics.js +123 -106
- package/dist/monolith/infrastructure/persistence/NoormmeAutonomics.js.map +1 -1
- package/dist/monolith/infrastructure/persistence/NoormmeEngine.js +508 -63
- package/dist/monolith/infrastructure/persistence/NoormmeEngine.js.map +1 -1
- package/dist/monolith/infrastructure/persistence/NoormmeSchema.js +68 -39
- package/dist/monolith/infrastructure/persistence/NoormmeSchema.js.map +1 -1
- package/dist/monolith/infrastructure/persistence/NoormmeSeeder.js +80 -67
- package/dist/monolith/infrastructure/persistence/NoormmeSeeder.js.map +1 -1
- package/dist/monolith/infrastructure/persistence/NoormmeTools.js +122 -75
- package/dist/monolith/infrastructure/persistence/NoormmeTools.js.map +1 -1
- package/dist/monolith/infrastructure/services/MarieMemoryStore.js +133 -134
- package/dist/monolith/infrastructure/services/MarieMemoryStore.js.map +1 -1
- package/dist/monolith/infrastructure/tools/MarieToolDefinitions.js +6 -30
- package/dist/monolith/infrastructure/tools/MarieToolDefinitions.js.map +1 -1
- package/dist/monolith/infrastructure/tools/PureStreamParser.js +68 -80
- package/dist/monolith/infrastructure/tools/PureStreamParser.js.map +1 -1
- package/dist/monolith/infrastructure/tools/SharedToolDefinitions.js +12 -11
- package/dist/monolith/infrastructure/tools/SharedToolDefinitions.js.map +1 -1
- package/dist/monolith/infrastructure/tools/SovereignTools.js +326 -0
- package/dist/monolith/infrastructure/tools/SovereignTools.js.map +1 -0
- package/dist/monolith/infrastructure/tools/ToolRegistry.js +45 -26
- package/dist/monolith/infrastructure/tools/ToolRegistry.js.map +1 -1
- package/dist/monolith/infrastructure/tools/definitions/AnalysisTools.js +39 -153
- package/dist/monolith/infrastructure/tools/definitions/AnalysisTools.js.map +1 -1
- package/dist/monolith/infrastructure/tools/definitions/AutomationTools.js +31 -46
- package/dist/monolith/infrastructure/tools/definitions/AutomationTools.js.map +1 -1
- package/dist/monolith/infrastructure/tools/definitions/ContextTools.js +41 -13
- package/dist/monolith/infrastructure/tools/definitions/ContextTools.js.map +1 -1
- package/dist/monolith/infrastructure/tools/definitions/CoreTools.js +10 -14
- package/dist/monolith/infrastructure/tools/definitions/CoreTools.js.map +1 -1
- package/dist/monolith/infrastructure/tools/definitions/DiagnosticTools.js +39 -70
- package/dist/monolith/infrastructure/tools/definitions/DiagnosticTools.js.map +1 -1
- package/dist/monolith/infrastructure/tools/definitions/NavigationTools.js +30 -181
- package/dist/monolith/infrastructure/tools/definitions/NavigationTools.js.map +1 -1
- package/dist/monolith/infrastructure/tools/definitions/PlanningTools.js +12 -9
- package/dist/monolith/infrastructure/tools/definitions/PlanningTools.js.map +1 -1
- package/dist/monolith/plumbing/Plumbing.js +238 -0
- package/dist/monolith/plumbing/Plumbing.js.map +1 -0
- package/dist/monolith/plumbing/PlumbingAnalysis.js +109 -0
- package/dist/monolith/plumbing/PlumbingAnalysis.js.map +1 -0
- package/dist/monolith/plumbing/PlumbingSystem.js +169 -0
- package/dist/monolith/plumbing/PlumbingSystem.js.map +1 -0
- package/dist/monolith/plumbing/analysis/ComplexityService.js +30 -34
- package/dist/monolith/plumbing/analysis/ComplexityService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/DependencyService.js +55 -44
- package/dist/monolith/plumbing/analysis/DependencyService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/DiscoveryService.js +40 -42
- package/dist/monolith/plumbing/analysis/DiscoveryService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/JoyMapService.js +52 -56
- package/dist/monolith/plumbing/analysis/JoyMapService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/LintService.js +118 -118
- package/dist/monolith/plumbing/analysis/LintService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/MarieSentinelService.js +278 -268
- package/dist/monolith/plumbing/analysis/MarieSentinelService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/QualityGuardrailService.js +116 -114
- package/dist/monolith/plumbing/analysis/QualityGuardrailService.js.map +1 -1
- package/dist/monolith/plumbing/analysis/SurgicalMender.js +57 -59
- package/dist/monolith/plumbing/analysis/SurgicalMender.js.map +1 -1
- package/dist/monolith/plumbing/analysis/TestService.js +89 -89
- package/dist/monolith/plumbing/analysis/TestService.js.map +1 -1
- package/dist/monolith/plumbing/filesystem/FileService.js +123 -195
- package/dist/monolith/plumbing/filesystem/FileService.js.map +1 -1
- package/dist/monolith/plumbing/filesystem/PathResolver.js +7 -8
- package/dist/monolith/plumbing/filesystem/PathResolver.js.map +1 -1
- package/dist/monolith/plumbing/git/GitService.js +4 -4
- package/dist/monolith/plumbing/git/GitService.js.map +1 -1
- package/dist/monolith/plumbing/lsp/SymbolService.js +5 -34
- package/dist/monolith/plumbing/lsp/SymbolService.js.map +1 -1
- package/dist/monolith/plumbing/terminal/ProcessRegistry.js +20 -22
- package/dist/monolith/plumbing/terminal/ProcessRegistry.js.map +1 -1
- package/dist/monolith/plumbing/terminal/TerminalService.js +127 -141
- package/dist/monolith/plumbing/terminal/TerminalService.js.map +1 -1
- package/dist/monolith/plumbing/utils/EnvironmentUtils.js +3 -23
- package/dist/monolith/plumbing/utils/EnvironmentUtils.js.map +1 -1
- package/dist/monolith/plumbing/utils/JsonUtils.js +252 -311
- package/dist/monolith/plumbing/utils/JsonUtils.js.map +1 -1
- package/dist/monolith/plumbing/utils/PlumbingCore.js +549 -0
- package/dist/monolith/plumbing/utils/PlumbingCore.js.map +1 -0
- package/dist/monolith/plumbing/utils/PrefixTree.js +61 -114
- package/dist/monolith/plumbing/utils/PrefixTree.js.map +1 -1
- package/dist/monolith/plumbing/utils/StreamTagDetector.js +89 -127
- package/dist/monolith/plumbing/utils/StreamTagDetector.js.map +1 -1
- package/dist/monolith/plumbing/utils/StringUtils.js +87 -89
- package/dist/monolith/plumbing/utils/StringUtils.js.map +1 -1
- package/dist/monolith/runtime/MarieRuntime.js +76 -499
- package/dist/monolith/runtime/MarieRuntime.js.map +1 -1
- package/dist/monolith/runtime/RuntimeAdapterBase.js +1 -1
- package/dist/monolith/runtime/RuntimeAdapterBase.js.map +1 -1
- package/dist/monolith/runtime/providerFactory.js +1 -7
- package/dist/monolith/runtime/providerFactory.js.map +1 -1
- package/dist/monolith/services/HealthService.js +29 -32
- package/dist/monolith/services/HealthService.js.map +1 -1
- package/dist/monolith/services/JoyAutomationService.js +58 -95
- package/dist/monolith/services/JoyAutomationService.js.map +1 -1
- package/dist/monolith/services/MarieAutomationService.js +59 -0
- package/dist/monolith/services/MarieAutomationService.js.map +1 -0
- package/dist/monolith/services/MarieGhostService.js +46 -173
- package/dist/monolith/services/MarieGhostService.js.map +1 -1
- package/dist/monolith/services/MarieServices.js +102 -0
- package/dist/monolith/services/MarieServices.js.map +1 -0
- package/dist/monolith/services/MarieTypes.js +2 -0
- package/dist/monolith/services/MarieTypes.js.map +1 -0
- package/dist/monolith/services/UpdateService.js +47 -49
- package/dist/monolith/services/UpdateService.js.map +1 -1
- package/dist/prompts.js +11 -5
- package/dist/prompts.js.map +1 -1
- package/dist/test_prefix_tree.js +9 -9
- package/dist/test_prefix_tree.js.map +1 -1
- package/package.json +18 -89
- package/run_test.js +5 -0
- package/.marie_visual_verify_1771225696548/progress_bar_check.txt +0 -1
- package/dist/extension.cjs +0 -1155
- package/dist/extension.js +0 -474
- package/dist/extension.js.map +0 -1
- package/dist/monolith/adapters/VscodeMarieAdapter.js +0 -81
- package/dist/monolith/adapters/VscodeMarieAdapter.js.map +0 -1
- package/dist/monolith/infrastructure/ai/core/GhostPort.js +0 -2
- package/dist/monolith/infrastructure/ai/core/GhostPort.js.map +0 -1
- package/dist/monolith/infrastructure/ai/core/VscodeFileSystemPort.js +0 -33
- package/dist/monolith/infrastructure/ai/core/VscodeFileSystemPort.js.map +0 -1
- package/dist/monolith/infrastructure/ai/providers/AnthropicProvider.js +0 -154
- package/dist/monolith/infrastructure/ai/providers/AnthropicProvider.js.map +0 -1
- package/dist/monolith/infrastructure/ai/providers/CerebrasProvider.js +0 -214
- package/dist/monolith/infrastructure/ai/providers/CerebrasProvider.js.map +0 -1
- package/dist/monolith/plumbing/ui/DecorationService.js +0 -54
- package/dist/monolith/plumbing/ui/DecorationService.js.map +0 -1
- package/dist/monolith/services/JoyLogService.js +0 -48
- package/dist/monolith/services/JoyLogService.js.map +0 -1
- package/dist/monolith/services/JoyService.js +0 -209
- package/dist/monolith/services/JoyService.js.map +0 -1
- package/dist/monolith/services/MarieSCMProvider.js +0 -41
- package/dist/monolith/services/MarieSCMProvider.js.map +0 -1
- package/dist/webview-ui/main.css +0 -1
- package/dist/webview-ui/main.js +0 -108
- package/lint_output.txt +0 -705
- package/lint_output_v2.txt +0 -711
- package/test-mind-p6.sqlite +0 -0
- package/test-mind-p6.sqlite-shm +0 -0
- package/test-mind-p6.sqlite-wal +0 -0
package/dist/webview-ui/main.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
(()=>{var kp=Object.create;var Vs=Object.defineProperty;var wp=Object.getOwnPropertyDescriptor;var xp=Object.getOwnPropertyNames;var Sp=Object.getPrototypeOf,Ep=Object.prototype.hasOwnProperty;var et=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Cp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xp(t))!Ep.call(e,o)&&o!==n&&Vs(e,o,{get:()=>t[o],enumerable:!(r=wp(t,o))||r.enumerable});return e};var I=(e,t,n)=>(n=e!=null?kp(Sp(e)):{},Cp(t||!e||!e.__esModule?Vs(n,"default",{value:e,enumerable:!0}):n,e));var na=et(M=>{"use strict";var An=Symbol.for("react.element"),Np=Symbol.for("react.portal"),_p=Symbol.for("react.fragment"),zp=Symbol.for("react.strict_mode"),Tp=Symbol.for("react.profiler"),Pp=Symbol.for("react.provider"),Lp=Symbol.for("react.context"),Rp=Symbol.for("react.forward_ref"),Mp=Symbol.for("react.suspense"),Ip=Symbol.for("react.memo"),bp=Symbol.for("react.lazy"),Hs=Symbol.iterator;function Ap(e){return e===null||typeof e!="object"?null:(e=Hs&&e[Hs]||e["@@iterator"],typeof e=="function"?e:null)}var Ks={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zs=Object.assign,Gs={};function en(e,t,n){this.props=e,this.context=t,this.refs=Gs,this.updater=n||Ks}en.prototype.isReactComponent={};en.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};en.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ys(){}Ys.prototype=en.prototype;function pi(e,t,n){this.props=e,this.context=t,this.refs=Gs,this.updater=n||Ks}var fi=pi.prototype=new Ys;fi.constructor=pi;Zs(fi,en.prototype);fi.isPureReactComponent=!0;var Qs=Array.isArray,Xs=Object.prototype.hasOwnProperty,mi={current:null},Js={key:!0,ref:!0,__self:!0,__source:!0};function ea(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Xs.call(t,r)&&!Js.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:An,type:e,key:i,ref:l,props:o,_owner:mi.current}}function Dp(e,t){return{$$typeof:An,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hi(e){return typeof e=="object"&&e!==null&&e.$$typeof===An}function $p(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var qs=/\/+/g;function di(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$p(""+e.key):t.toString(36)}function br(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case An:case Np:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+di(l,0):r,Qs(o)?(n="",e!=null&&(n=e.replace(qs,"$&/")+"/"),br(o,t,n,"",function(u){return u})):o!=null&&(hi(o)&&(o=Dp(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(qs,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Qs(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+di(i,s);l+=br(i,t,n,a,o)}else if(a=Ap(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+di(i,s++),l+=br(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Ir(e,t,n){if(e==null)return e;var r=[],o=0;return br(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Op(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var fe={current:null},Ar={transition:null},Fp={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:Ar,ReactCurrentOwner:mi};function ta(){throw Error("act(...) is not supported in production builds of React.")}M.Children={map:Ir,forEach:function(e,t,n){Ir(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ir(e,function(){t++}),t},toArray:function(e){return Ir(e,function(t){return t})||[]},only:function(e){if(!hi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};M.Component=en;M.Fragment=_p;M.Profiler=Tp;M.PureComponent=pi;M.StrictMode=zp;M.Suspense=Mp;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fp;M.act=ta;M.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Zs({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=mi.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)Xs.call(t,a)&&!Js.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:An,type:e.type,key:o,ref:i,props:r,_owner:l}};M.createContext=function(e){return e={$$typeof:Lp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Pp,_context:e},e.Consumer=e};M.createElement=ea;M.createFactory=function(e){var t=ea.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:Rp,render:e}};M.isValidElement=hi;M.lazy=function(e){return{$$typeof:bp,_payload:{_status:-1,_result:e},_init:Op}};M.memo=function(e,t){return{$$typeof:Ip,type:e,compare:t===void 0?null:t}};M.startTransition=function(e){var t=Ar.transition;Ar.transition={};try{e()}finally{Ar.transition=t}};M.unstable_act=ta;M.useCallback=function(e,t){return fe.current.useCallback(e,t)};M.useContext=function(e){return fe.current.useContext(e)};M.useDebugValue=function(){};M.useDeferredValue=function(e){return fe.current.useDeferredValue(e)};M.useEffect=function(e,t){return fe.current.useEffect(e,t)};M.useId=function(){return fe.current.useId()};M.useImperativeHandle=function(e,t,n){return fe.current.useImperativeHandle(e,t,n)};M.useInsertionEffect=function(e,t){return fe.current.useInsertionEffect(e,t)};M.useLayoutEffect=function(e,t){return fe.current.useLayoutEffect(e,t)};M.useMemo=function(e,t){return fe.current.useMemo(e,t)};M.useReducer=function(e,t,n){return fe.current.useReducer(e,t,n)};M.useRef=function(e){return fe.current.useRef(e)};M.useState=function(e){return fe.current.useState(e)};M.useSyncExternalStore=function(e,t,n){return fe.current.useSyncExternalStore(e,t,n)};M.useTransition=function(){return fe.current.useTransition()};M.version="18.3.1"});var Ne=et((Uh,ra)=>{"use strict";ra.exports=na()});var fa=et(O=>{"use strict";function ki(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<Dr(o,t))e[r]=t,e[n]=o,n=r;else break e}}function Be(e){return e.length===0?null:e[0]}function Or(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],a=l+1,u=e[a];if(0>Dr(s,n))a<o&&0>Dr(u,s)?(e[r]=u,e[a]=n,r=a):(e[r]=s,e[l]=n,r=l);else if(a<o&&0>Dr(u,n))e[r]=u,e[a]=n,r=a;else break e}}return t}function Dr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(oa=performance,O.unstable_now=function(){return oa.now()}):(gi=Date,ia=gi.now(),O.unstable_now=function(){return gi.now()-ia});var oa,gi,ia,Ke=[],ft=[],Bp=1,Ie=null,ae=3,Fr=!1,Dt=!1,$n=!1,aa=typeof setTimeout=="function"?setTimeout:null,ua=typeof clearTimeout=="function"?clearTimeout:null,la=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function wi(e){for(var t=Be(ft);t!==null;){if(t.callback===null)Or(ft);else if(t.startTime<=e)Or(ft),t.sortIndex=t.expirationTime,ki(Ke,t);else break;t=Be(ft)}}function xi(e){if($n=!1,wi(e),!Dt)if(Be(Ke)!==null)Dt=!0,Ei(Si);else{var t=Be(ft);t!==null&&Ci(xi,t.startTime-e)}}function Si(e,t){Dt=!1,$n&&($n=!1,ua(On),On=-1),Fr=!0;var n=ae;try{for(wi(t),Ie=Be(Ke);Ie!==null&&(!(Ie.expirationTime>t)||e&&!pa());){var r=Ie.callback;if(typeof r=="function"){Ie.callback=null,ae=Ie.priorityLevel;var o=r(Ie.expirationTime<=t);t=O.unstable_now(),typeof o=="function"?Ie.callback=o:Ie===Be(Ke)&&Or(Ke),wi(t)}else Or(Ke);Ie=Be(Ke)}if(Ie!==null)var i=!0;else{var l=Be(ft);l!==null&&Ci(xi,l.startTime-t),i=!1}return i}finally{Ie=null,ae=n,Fr=!1}}var Br=!1,$r=null,On=-1,ca=5,da=-1;function pa(){return!(O.unstable_now()-da<ca)}function vi(){if($r!==null){var e=O.unstable_now();da=e;var t=!0;try{t=$r(!0,e)}finally{t?Dn():(Br=!1,$r=null)}}else Br=!1}var Dn;typeof la=="function"?Dn=function(){la(vi)}:typeof MessageChannel<"u"?(yi=new MessageChannel,sa=yi.port2,yi.port1.onmessage=vi,Dn=function(){sa.postMessage(null)}):Dn=function(){aa(vi,0)};var yi,sa;function Ei(e){$r=e,Br||(Br=!0,Dn())}function Ci(e,t){On=aa(function(){e(O.unstable_now())},t)}O.unstable_IdlePriority=5;O.unstable_ImmediatePriority=1;O.unstable_LowPriority=4;O.unstable_NormalPriority=3;O.unstable_Profiling=null;O.unstable_UserBlockingPriority=2;O.unstable_cancelCallback=function(e){e.callback=null};O.unstable_continueExecution=function(){Dt||Fr||(Dt=!0,Ei(Si))};O.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ca=0<e?Math.floor(1e3/e):5};O.unstable_getCurrentPriorityLevel=function(){return ae};O.unstable_getFirstCallbackNode=function(){return Be(Ke)};O.unstable_next=function(e){switch(ae){case 1:case 2:case 3:var t=3;break;default:t=ae}var n=ae;ae=t;try{return e()}finally{ae=n}};O.unstable_pauseExecution=function(){};O.unstable_requestPaint=function(){};O.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=ae;ae=e;try{return t()}finally{ae=n}};O.unstable_scheduleCallback=function(e,t,n){var r=O.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:Bp++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,ki(ft,e),Be(Ke)===null&&e===Be(ft)&&($n?(ua(On),On=-1):$n=!0,Ci(xi,n-r))):(e.sortIndex=o,ki(Ke,e),Dt||Fr||(Dt=!0,Ei(Si))),e};O.unstable_shouldYield=pa;O.unstable_wrapCallback=function(e){var t=ae;return function(){var n=ae;ae=t;try{return e.apply(this,arguments)}finally{ae=n}}}});var ha=et((Vh,ma)=>{"use strict";ma.exports=fa()});var kd=et(Re=>{"use strict";var jp=Ne(),Pe=ha();function w(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Su=new Set,lr={};function Zt(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(lr[e]=t,e=0;e<t.length;e++)Su.add(t[e])}var lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qi=Object.prototype.hasOwnProperty,Up=/^[: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]*$/,ga={},va={};function Wp(e){return qi.call(va,e)?!0:qi.call(ga,e)?!1:Up.test(e)?va[e]=!0:(ga[e]=!0,!1)}function Vp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Hp(e,t,n,r){if(t===null||typeof t>"u"||Vp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ge(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){se[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fl=/[\-:]([a-z])/g;function Bl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fl,Bl);se[t]=new ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Fl,Bl);se[t]=new ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fl,Bl);se[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function jl(e,t,n,r){var o=se.hasOwnProperty(t)?se[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Hp(t,n,o,r)&&(n=null),r||o===null?Wp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ct=jp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jr=Symbol.for("react.element"),rn=Symbol.for("react.portal"),on=Symbol.for("react.fragment"),Ul=Symbol.for("react.strict_mode"),Ki=Symbol.for("react.profiler"),Eu=Symbol.for("react.provider"),Cu=Symbol.for("react.context"),Wl=Symbol.for("react.forward_ref"),Zi=Symbol.for("react.suspense"),Gi=Symbol.for("react.suspense_list"),Vl=Symbol.for("react.memo"),ht=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Nu=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var ya=Symbol.iterator;function Fn(e){return e===null||typeof e!="object"?null:(e=ya&&e[ya]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,Ni;function qn(e){if(Ni===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ni=t&&t[1]||""}return`
|
|
2
|
-
`+Ni+e}var _i=!1;function zi(e,t){if(!e||_i)return"";_i=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
3
|
-
`),i=r.stack.split(`
|
|
4
|
-
`),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var a=`
|
|
5
|
-
`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{_i=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qn(e):""}function Qp(e){switch(e.tag){case 5:return qn(e.type);case 16:return qn("Lazy");case 13:return qn("Suspense");case 19:return qn("SuspenseList");case 0:case 2:case 15:return e=zi(e.type,!1),e;case 11:return e=zi(e.type.render,!1),e;case 1:return e=zi(e.type,!0),e;default:return""}}function Yi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case on:return"Fragment";case rn:return"Portal";case Ki:return"Profiler";case Ul:return"StrictMode";case Zi:return"Suspense";case Gi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Cu:return(e.displayName||"Context")+".Consumer";case Eu:return(e._context.displayName||"Context")+".Provider";case Wl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vl:return t=e.displayName||null,t!==null?t:Yi(e.type)||"Memo";case ht:t=e._payload,e=e._init;try{return Yi(e(t))}catch{}}return null}function qp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yi(t);case 8:return t===Ul?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Pt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _u(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kp(e){var t=_u(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ur(e){e._valueTracker||(e._valueTracker=Kp(e))}function zu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_u(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xi(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ka(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Tu(e,t){t=t.checked,t!=null&&jl(e,"checked",t,!1)}function Ji(e,t){Tu(e,t);var n=Pt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?el(e,t.type,n):t.hasOwnProperty("defaultValue")&&el(e,t.type,Pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function el(e,t,n){(t!=="number"||vo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kn=Array.isArray;function gn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function tl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(w(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(w(92));if(Kn(n)){if(1<n.length)throw Error(w(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Pt(n)}}function Pu(e,t){var n=Pt(t.value),r=Pt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Sa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Lu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Lu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wr,Ru=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wr=Wr||document.createElement("div"),Wr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yn={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},Zp=["Webkit","ms","Moz","O"];Object.keys(Yn).forEach(function(e){Zp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yn[t]=Yn[e]})});function Mu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yn.hasOwnProperty(e)&&Yn[e]?(""+t).trim():t+"px"}function Iu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Mu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Gp=K({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 rl(e,t){if(t){if(Gp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(w(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(w(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(w(61))}if(t.style!=null&&typeof t.style!="object")throw Error(w(62))}}function ol(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var il=null;function Hl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ll=null,vn=null,yn=null;function Ea(e){if(e=Nr(e)){if(typeof ll!="function")throw Error(w(280));var t=e.stateNode;t&&(t=Ho(t),ll(e.stateNode,e.type,t))}}function bu(e){vn?yn?yn.push(e):yn=[e]:vn=e}function Au(){if(vn){var e=vn,t=yn;if(yn=vn=null,Ea(e),t)for(e=0;e<t.length;e++)Ea(t[e])}}function Du(e,t){return e(t)}function $u(){}var Ti=!1;function Ou(e,t,n){if(Ti)return e(t,n);Ti=!0;try{return Du(e,t,n)}finally{Ti=!1,(vn!==null||yn!==null)&&($u(),Au())}}function ar(e,t){var n=e.stateNode;if(n===null)return null;var r=Ho(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(w(231,t,typeof n));return n}var sl=!1;if(lt)try{tn={},Object.defineProperty(tn,"passive",{get:function(){sl=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch{sl=!1}var tn;function Yp(e,t,n,r,o,i,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Xn=!1,yo=null,ko=!1,al=null,Xp={onError:function(e){Xn=!0,yo=e}};function Jp(e,t,n,r,o,i,l,s,a){Xn=!1,yo=null,Yp.apply(Xp,arguments)}function ef(e,t,n,r,o,i,l,s,a){if(Jp.apply(this,arguments),Xn){if(Xn){var u=yo;Xn=!1,yo=null}else throw Error(w(198));ko||(ko=!0,al=u)}}function Gt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Fu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ca(e){if(Gt(e)!==e)throw Error(w(188))}function tf(e){var t=e.alternate;if(!t){if(t=Gt(e),t===null)throw Error(w(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ca(o),e;if(i===r)return Ca(o),t;i=i.sibling}throw Error(w(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(w(189))}}if(n.alternate!==r)throw Error(w(190))}if(n.tag!==3)throw Error(w(188));return n.stateNode.current===n?e:t}function Bu(e){return e=tf(e),e!==null?ju(e):null}function ju(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ju(e);if(t!==null)return t;e=e.sibling}return null}var Uu=Pe.unstable_scheduleCallback,Na=Pe.unstable_cancelCallback,nf=Pe.unstable_shouldYield,rf=Pe.unstable_requestPaint,G=Pe.unstable_now,of=Pe.unstable_getCurrentPriorityLevel,Ql=Pe.unstable_ImmediatePriority,Wu=Pe.unstable_UserBlockingPriority,wo=Pe.unstable_NormalPriority,lf=Pe.unstable_LowPriority,Vu=Pe.unstable_IdlePriority,jo=null,Xe=null;function sf(e){if(Xe&&typeof Xe.onCommitFiberRoot=="function")try{Xe.onCommitFiberRoot(jo,e,void 0,(e.current.flags&128)===128)}catch{}}var He=Math.clz32?Math.clz32:cf,af=Math.log,uf=Math.LN2;function cf(e){return e>>>=0,e===0?32:31-(af(e)/uf|0)|0}var Vr=64,Hr=4194304;function Zn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Zn(s):(i&=l,i!==0&&(r=Zn(i)))}else l=n&~o,l!==0?r=Zn(l):i!==0&&(r=Zn(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-He(t),o=1<<n,r|=e[n],t&=~o;return r}function df(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-He(i),s=1<<l,a=o[l];a===-1?((s&n)===0||(s&r)!==0)&&(o[l]=df(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function ul(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hu(){var e=Vr;return Vr<<=1,(Vr&4194240)===0&&(Vr=64),e}function Pi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Er(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-He(t),e[t]=n}function ff(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-He(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function ql(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var D=0;function Qu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var qu,Kl,Ku,Zu,Gu,cl=!1,Qr=[],xt=null,St=null,Et=null,ur=new Map,cr=new Map,vt=[],mf="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 _a(e,t){switch(e){case"focusin":case"focusout":xt=null;break;case"dragenter":case"dragleave":St=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":ur.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cr.delete(t.pointerId)}}function Bn(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Nr(t),t!==null&&Kl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function hf(e,t,n,r,o){switch(t){case"focusin":return xt=Bn(xt,e,t,n,r,o),!0;case"dragenter":return St=Bn(St,e,t,n,r,o),!0;case"mouseover":return Et=Bn(Et,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ur.set(i,Bn(ur.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,cr.set(i,Bn(cr.get(i)||null,e,t,n,r,o)),!0}return!1}function Yu(e){var t=Ft(e.target);if(t!==null){var n=Gt(t);if(n!==null){if(t=n.tag,t===13){if(t=Fu(n),t!==null){e.blockedOn=t,Gu(e.priority,function(){Ku(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);il=r,n.target.dispatchEvent(r),il=null}else return t=Nr(n),t!==null&&Kl(t),e.blockedOn=n,!1;t.shift()}return!0}function za(e,t,n){lo(e)&&n.delete(t)}function gf(){cl=!1,xt!==null&&lo(xt)&&(xt=null),St!==null&&lo(St)&&(St=null),Et!==null&&lo(Et)&&(Et=null),ur.forEach(za),cr.forEach(za)}function jn(e,t){e.blockedOn===t&&(e.blockedOn=null,cl||(cl=!0,Pe.unstable_scheduleCallback(Pe.unstable_NormalPriority,gf)))}function dr(e){function t(o){return jn(o,e)}if(0<Qr.length){jn(Qr[0],e);for(var n=1;n<Qr.length;n++){var r=Qr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(xt!==null&&jn(xt,e),St!==null&&jn(St,e),Et!==null&&jn(Et,e),ur.forEach(t),cr.forEach(t),n=0;n<vt.length;n++)r=vt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<vt.length&&(n=vt[0],n.blockedOn===null);)Yu(n),n.blockedOn===null&&vt.shift()}var kn=ct.ReactCurrentBatchConfig,So=!0;function vf(e,t,n,r){var o=D,i=kn.transition;kn.transition=null;try{D=1,Zl(e,t,n,r)}finally{D=o,kn.transition=i}}function yf(e,t,n,r){var o=D,i=kn.transition;kn.transition=null;try{D=4,Zl(e,t,n,r)}finally{D=o,kn.transition=i}}function Zl(e,t,n,r){if(So){var o=dl(e,t,n,r);if(o===null)Di(e,t,r,Eo,n),_a(e,r);else if(hf(o,e,t,n,r))r.stopPropagation();else if(_a(e,r),t&4&&-1<mf.indexOf(e)){for(;o!==null;){var i=Nr(o);if(i!==null&&qu(i),i=dl(e,t,n,r),i===null&&Di(e,t,r,Eo,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Di(e,t,r,null,n)}}var Eo=null;function dl(e,t,n,r){if(Eo=null,e=Hl(r),e=Ft(e),e!==null)if(t=Gt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Fu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Eo=e,null}function Xu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(of()){case Ql:return 1;case Wu:return 4;case wo:case lf:return 16;case Vu:return 536870912;default:return 16}default:return 16}}var kt=null,Gl=null,so=null;function Ju(){if(so)return so;var e,t=Gl,n=t.length,r,o="value"in kt?kt.value:kt.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return so=o.slice(e,1<r?1-r:void 0)}function ao(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function qr(){return!0}function Ta(){return!1}function Le(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?qr:Ta,this.isPropagationStopped=Ta,this}return K(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=qr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qr)},persist:function(){},isPersistent:qr}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yl=Le(Pn),Cr=K({},Pn,{view:0,detail:0}),kf=Le(Cr),Li,Ri,Un,Uo=K({},Cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Un&&(Un&&e.type==="mousemove"?(Li=e.screenX-Un.screenX,Ri=e.screenY-Un.screenY):Ri=Li=0,Un=e),Li)},movementY:function(e){return"movementY"in e?e.movementY:Ri}}),Pa=Le(Uo),wf=K({},Uo,{dataTransfer:0}),xf=Le(wf),Sf=K({},Cr,{relatedTarget:0}),Mi=Le(Sf),Ef=K({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0}),Cf=Le(Ef),Nf=K({},Pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_f=Le(Nf),zf=K({},Pn,{data:0}),La=Le(zf),Tf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pf={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"},Lf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Lf[e])?!!t[e]:!1}function Xl(){return Rf}var Mf=K({},Cr,{key:function(e){if(e.key){var t=Tf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ao(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xl,charCode:function(e){return e.type==="keypress"?ao(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ao(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),If=Le(Mf),bf=K({},Uo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ra=Le(bf),Af=K({},Cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xl}),Df=Le(Af),$f=K({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Of=Le($f),Ff=K({},Uo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bf=Le(Ff),jf=[9,13,27,32],Jl=lt&&"CompositionEvent"in window,Jn=null;lt&&"documentMode"in document&&(Jn=document.documentMode);var Uf=lt&&"TextEvent"in window&&!Jn,ec=lt&&(!Jl||Jn&&8<Jn&&11>=Jn),Ma=" ",Ia=!1;function tc(e,t){switch(e){case"keyup":return jf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ln=!1;function Wf(e,t){switch(e){case"compositionend":return nc(t);case"keypress":return t.which!==32?null:(Ia=!0,Ma);case"textInput":return e=t.data,e===Ma&&Ia?null:e;default:return null}}function Vf(e,t){if(ln)return e==="compositionend"||!Jl&&tc(e,t)?(e=Ju(),so=Gl=kt=null,ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ec&&t.locale!=="ko"?null:t.data;default:return null}}var Hf={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 ba(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hf[e.type]:t==="textarea"}function rc(e,t,n,r){bu(r),t=Co(t,"onChange"),0<t.length&&(n=new Yl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var er=null,pr=null;function Qf(e){mc(e,0)}function Wo(e){var t=un(e);if(zu(t))return e}function qf(e,t){if(e==="change")return t}var oc=!1;lt&&(lt?(Zr="oninput"in document,Zr||(Ii=document.createElement("div"),Ii.setAttribute("oninput","return;"),Zr=typeof Ii.oninput=="function"),Kr=Zr):Kr=!1,oc=Kr&&(!document.documentMode||9<document.documentMode));var Kr,Zr,Ii;function Aa(){er&&(er.detachEvent("onpropertychange",ic),pr=er=null)}function ic(e){if(e.propertyName==="value"&&Wo(pr)){var t=[];rc(t,pr,e,Hl(e)),Ou(Qf,t)}}function Kf(e,t,n){e==="focusin"?(Aa(),er=t,pr=n,er.attachEvent("onpropertychange",ic)):e==="focusout"&&Aa()}function Zf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wo(pr)}function Gf(e,t){if(e==="click")return Wo(t)}function Yf(e,t){if(e==="input"||e==="change")return Wo(t)}function Xf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qe=typeof Object.is=="function"?Object.is:Xf;function fr(e,t){if(qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!qi.call(t,o)||!qe(e[o],t[o]))return!1}return!0}function Da(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $a(e,t){var n=Da(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Da(n)}}function lc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sc(){for(var e=window,t=vo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vo(e.document)}return t}function es(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Jf(e){var t=sc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lc(n.ownerDocument.documentElement,n)){if(r!==null&&es(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=$a(n,i);var l=$a(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var em=lt&&"documentMode"in document&&11>=document.documentMode,sn=null,pl=null,tr=null,fl=!1;function Oa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fl||sn==null||sn!==vo(r)||(r=sn,"selectionStart"in r&&es(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tr&&fr(tr,r)||(tr=r,r=Co(pl,"onSelect"),0<r.length&&(t=new Yl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sn)))}function Gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var an={animationend:Gr("Animation","AnimationEnd"),animationiteration:Gr("Animation","AnimationIteration"),animationstart:Gr("Animation","AnimationStart"),transitionend:Gr("Transition","TransitionEnd")},bi={},ac={};lt&&(ac=document.createElement("div").style,"AnimationEvent"in window||(delete an.animationend.animation,delete an.animationiteration.animation,delete an.animationstart.animation),"TransitionEvent"in window||delete an.transitionend.transition);function Vo(e){if(bi[e])return bi[e];if(!an[e])return e;var t=an[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ac)return bi[e]=t[n];return e}var uc=Vo("animationend"),cc=Vo("animationiteration"),dc=Vo("animationstart"),pc=Vo("transitionend"),fc=new Map,Fa="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 Rt(e,t){fc.set(e,t),Zt(t,[e])}for(Yr=0;Yr<Fa.length;Yr++)Xr=Fa[Yr],Ba=Xr.toLowerCase(),ja=Xr[0].toUpperCase()+Xr.slice(1),Rt(Ba,"on"+ja);var Xr,Ba,ja,Yr;Rt(uc,"onAnimationEnd");Rt(cc,"onAnimationIteration");Rt(dc,"onAnimationStart");Rt("dblclick","onDoubleClick");Rt("focusin","onFocus");Rt("focusout","onBlur");Rt(pc,"onTransitionEnd");Sn("onMouseEnter",["mouseout","mouseover"]);Sn("onMouseLeave",["mouseout","mouseover"]);Sn("onPointerEnter",["pointerout","pointerover"]);Sn("onPointerLeave",["pointerout","pointerover"]);Zt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gn="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(" "),tm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gn));function Ua(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ef(r,t,void 0,e),e.currentTarget=null}function mc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==i&&o.isPropagationStopped())break e;Ua(o,s,u),i=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==i&&o.isPropagationStopped())break e;Ua(o,s,u),i=a}}}if(ko)throw e=al,ko=!1,al=null,e}function B(e,t){var n=t[yl];n===void 0&&(n=t[yl]=new Set);var r=e+"__bubble";n.has(r)||(hc(t,e,2,!1),n.add(r))}function Ai(e,t,n){var r=0;t&&(r|=4),hc(n,e,r,t)}var Jr="_reactListening"+Math.random().toString(36).slice(2);function mr(e){if(!e[Jr]){e[Jr]=!0,Su.forEach(function(n){n!=="selectionchange"&&(tm.has(n)||Ai(n,!1,e),Ai(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jr]||(t[Jr]=!0,Ai("selectionchange",!1,t))}}function hc(e,t,n,r){switch(Xu(t)){case 1:var o=vf;break;case 4:o=yf;break;default:o=Zl}n=o.bind(null,t,n,e),o=void 0,!sl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Di(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;s!==null;){if(l=Ft(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}Ou(function(){var u=i,f=Hl(n),p=[];e:{var c=fc.get(e);if(c!==void 0){var g=Yl,y=e;switch(e){case"keypress":if(ao(n)===0)break e;case"keydown":case"keyup":g=If;break;case"focusin":y="focus",g=Mi;break;case"focusout":y="blur",g=Mi;break;case"beforeblur":case"afterblur":g=Mi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Pa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=xf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Df;break;case uc:case cc:case dc:g=Cf;break;case pc:g=Of;break;case"scroll":g=kf;break;case"wheel":g=Bf;break;case"copy":case"cut":case"paste":g=_f;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ra}var v=(t&4)!==0,L=!v&&e==="scroll",m=v?c!==null?c+"Capture":null:c;v=[];for(var d=u,h;d!==null;){h=d;var k=h.stateNode;if(h.tag===5&&k!==null&&(h=k,m!==null&&(k=ar(d,m),k!=null&&v.push(hr(d,k,h)))),L)break;d=d.return}0<v.length&&(c=new g(c,y,null,n,f),p.push({event:c,listeners:v}))}}if((t&7)===0){e:{if(c=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",c&&n!==il&&(y=n.relatedTarget||n.fromElement)&&(Ft(y)||y[st]))break e;if((g||c)&&(c=f.window===f?f:(c=f.ownerDocument)?c.defaultView||c.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?Ft(y):null,y!==null&&(L=Gt(y),y!==L||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(v=Pa,k="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(v=Ra,k="onPointerLeave",m="onPointerEnter",d="pointer"),L=g==null?c:un(g),h=y==null?c:un(y),c=new v(k,d+"leave",g,n,f),c.target=L,c.relatedTarget=h,k=null,Ft(f)===u&&(v=new v(m,d+"enter",y,n,f),v.target=h,v.relatedTarget=L,k=v),L=k,g&&y)t:{for(v=g,m=y,d=0,h=v;h;h=nn(h))d++;for(h=0,k=m;k;k=nn(k))h++;for(;0<d-h;)v=nn(v),d--;for(;0<h-d;)m=nn(m),h--;for(;d--;){if(v===m||m!==null&&v===m.alternate)break t;v=nn(v),m=nn(m)}v=null}else v=null;g!==null&&Wa(p,c,g,v,!1),y!==null&&L!==null&&Wa(p,L,y,v,!0)}}e:{if(c=u?un(u):window,g=c.nodeName&&c.nodeName.toLowerCase(),g==="select"||g==="input"&&c.type==="file")var x=qf;else if(ba(c))if(oc)x=Yf;else{x=Zf;var C=Kf}else(g=c.nodeName)&&g.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(x=Gf);if(x&&(x=x(e,u))){rc(p,x,n,f);break e}C&&C(e,c,u),e==="focusout"&&(C=c._wrapperState)&&C.controlled&&c.type==="number"&&el(c,"number",c.value)}switch(C=u?un(u):window,e){case"focusin":(ba(C)||C.contentEditable==="true")&&(sn=C,pl=u,tr=null);break;case"focusout":tr=pl=sn=null;break;case"mousedown":fl=!0;break;case"contextmenu":case"mouseup":case"dragend":fl=!1,Oa(p,n,f);break;case"selectionchange":if(em)break;case"keydown":case"keyup":Oa(p,n,f)}var E;if(Jl)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ln?tc(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(ec&&n.locale!=="ko"&&(ln||N!=="onCompositionStart"?N==="onCompositionEnd"&&ln&&(E=Ju()):(kt=f,Gl="value"in kt?kt.value:kt.textContent,ln=!0)),C=Co(u,N),0<C.length&&(N=new La(N,e,null,n,f),p.push({event:N,listeners:C}),E?N.data=E:(E=nc(n),E!==null&&(N.data=E)))),(E=Uf?Wf(e,n):Vf(e,n))&&(u=Co(u,"onBeforeInput"),0<u.length&&(f=new La("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=E))}mc(p,t)})}function hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Co(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=ar(e,n),i!=null&&r.unshift(hr(e,i,o)),i=ar(e,t),i!=null&&r.push(hr(e,i,o))),e=e.return}return r}function nn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Wa(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=ar(n,i),a!=null&&l.unshift(hr(n,a,s))):o||(a=ar(n,i),a!=null&&l.push(hr(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var nm=/\r\n?/g,rm=/\u0000|\uFFFD/g;function Va(e){return(typeof e=="string"?e:""+e).replace(nm,`
|
|
6
|
-
`).replace(rm,"")}function eo(e,t,n){if(t=Va(t),Va(e)!==t&&n)throw Error(w(425))}function No(){}var ml=null,hl=null;function gl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vl=typeof setTimeout=="function"?setTimeout:void 0,om=typeof clearTimeout=="function"?clearTimeout:void 0,Ha=typeof Promise=="function"?Promise:void 0,im=typeof queueMicrotask=="function"?queueMicrotask:typeof Ha<"u"?function(e){return Ha.resolve(null).then(e).catch(lm)}:vl;function lm(e){setTimeout(function(){throw e})}function $i(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),dr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);dr(t)}function Ct(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Qa(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ln=Math.random().toString(36).slice(2),Ye="__reactFiber$"+Ln,gr="__reactProps$"+Ln,st="__reactContainer$"+Ln,yl="__reactEvents$"+Ln,sm="__reactListeners$"+Ln,am="__reactHandles$"+Ln;function Ft(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[st]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Qa(e);e!==null;){if(n=e[Ye])return n;e=Qa(e)}return t}e=n,n=e.parentNode}return null}function Nr(e){return e=e[Ye]||e[st],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function un(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(w(33))}function Ho(e){return e[gr]||null}var kl=[],cn=-1;function Mt(e){return{current:e}}function j(e){0>cn||(e.current=kl[cn],kl[cn]=null,cn--)}function F(e,t){cn++,kl[cn]=e.current,e.current=t}var Lt={},pe=Mt(Lt),we=Mt(!1),Vt=Lt;function En(e,t){var n=e.type.contextTypes;if(!n)return Lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xe(e){return e=e.childContextTypes,e!=null}function _o(){j(we),j(pe)}function qa(e,t,n){if(pe.current!==Lt)throw Error(w(168));F(pe,t),F(we,n)}function gc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(w(108,qp(e)||"Unknown",o));return K({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,Vt=pe.current,F(pe,e),F(we,we.current),!0}function Ka(e,t,n){var r=e.stateNode;if(!r)throw Error(w(169));n?(e=gc(e,t,Vt),r.__reactInternalMemoizedMergedChildContext=e,j(we),j(pe),F(pe,e)):j(we),F(we,n)}var nt=null,Qo=!1,Oi=!1;function vc(e){nt===null?nt=[e]:nt.push(e)}function um(e){Qo=!0,vc(e)}function It(){if(!Oi&&nt!==null){Oi=!0;var e=0,t=D;try{var n=nt;for(D=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nt=null,Qo=!1}catch(o){throw nt!==null&&(nt=nt.slice(e+1)),Uu(Ql,It),o}finally{D=t,Oi=!1}}return null}var dn=[],pn=0,To=null,Po=0,be=[],Ae=0,Ht=null,rt=1,ot="";function $t(e,t){dn[pn++]=Po,dn[pn++]=To,To=e,Po=t}function yc(e,t,n){be[Ae++]=rt,be[Ae++]=ot,be[Ae++]=Ht,Ht=e;var r=rt;e=ot;var o=32-He(r)-1;r&=~(1<<o),n+=1;var i=32-He(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,rt=1<<32-He(t)+o|n<<o|r,ot=i+e}else rt=1<<i|n<<o|r,ot=e}function ts(e){e.return!==null&&($t(e,1),yc(e,1,0))}function ns(e){for(;e===To;)To=dn[--pn],dn[pn]=null,Po=dn[--pn],dn[pn]=null;for(;e===Ht;)Ht=be[--Ae],be[Ae]=null,ot=be[--Ae],be[Ae]=null,rt=be[--Ae],be[Ae]=null}var Te=null,ze=null,V=!1,Ve=null;function kc(e,t){var n=De(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Za(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Te=e,ze=Ct(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Te=e,ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ht!==null?{id:rt,overflow:ot}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=De(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Te=e,ze=null,!0):!1;default:return!1}}function wl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xl(e){if(V){var t=ze;if(t){var n=t;if(!Za(e,t)){if(wl(e))throw Error(w(418));t=Ct(n.nextSibling);var r=Te;t&&Za(e,t)?kc(r,n):(e.flags=e.flags&-4097|2,V=!1,Te=e)}}else{if(wl(e))throw Error(w(418));e.flags=e.flags&-4097|2,V=!1,Te=e}}}function Ga(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Te=e}function to(e){if(e!==Te)return!1;if(!V)return Ga(e),V=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!gl(e.type,e.memoizedProps)),t&&(t=ze)){if(wl(e))throw wc(),Error(w(418));for(;t;)kc(e,t),t=Ct(t.nextSibling)}if(Ga(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ze=Ct(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ze=null}}else ze=Te?Ct(e.stateNode.nextSibling):null;return!0}function wc(){for(var e=ze;e;)e=Ct(e.nextSibling)}function Cn(){ze=Te=null,V=!1}function rs(e){Ve===null?Ve=[e]:Ve.push(e)}var cm=ct.ReactCurrentBatchConfig;function Wn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(w(309));var r=n.stateNode}if(!r)throw Error(w(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(w(284));if(!n._owner)throw Error(w(290,e))}return e}function no(e,t){throw e=Object.prototype.toString.call(t),Error(w(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ya(e){var t=e._init;return t(e._payload)}function xc(e){function t(m,d){if(e){var h=m.deletions;h===null?(m.deletions=[d],m.flags|=16):h.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function o(m,d){return m=Tt(m,d),m.index=0,m.sibling=null,m}function i(m,d,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h<d?(m.flags|=2,d):h):(m.flags|=2,d)):(m.flags|=1048576,d)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,d,h,k){return d===null||d.tag!==6?(d=Hi(h,m.mode,k),d.return=m,d):(d=o(d,h),d.return=m,d)}function a(m,d,h,k){var x=h.type;return x===on?f(m,d,h.props.children,k,h.key):d!==null&&(d.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ht&&Ya(x)===d.type)?(k=o(d,h.props),k.ref=Wn(m,d,h),k.return=m,k):(k=go(h.type,h.key,h.props,null,m.mode,k),k.ref=Wn(m,d,h),k.return=m,k)}function u(m,d,h,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==h.containerInfo||d.stateNode.implementation!==h.implementation?(d=Qi(h,m.mode,k),d.return=m,d):(d=o(d,h.children||[]),d.return=m,d)}function f(m,d,h,k,x){return d===null||d.tag!==7?(d=Wt(h,m.mode,k,x),d.return=m,d):(d=o(d,h),d.return=m,d)}function p(m,d,h){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Hi(""+d,m.mode,h),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case jr:return h=go(d.type,d.key,d.props,null,m.mode,h),h.ref=Wn(m,null,d),h.return=m,h;case rn:return d=Qi(d,m.mode,h),d.return=m,d;case ht:var k=d._init;return p(m,k(d._payload),h)}if(Kn(d)||Fn(d))return d=Wt(d,m.mode,h,null),d.return=m,d;no(m,d)}return null}function c(m,d,h,k){var x=d!==null?d.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return x!==null?null:s(m,d,""+h,k);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case jr:return h.key===x?a(m,d,h,k):null;case rn:return h.key===x?u(m,d,h,k):null;case ht:return x=h._init,c(m,d,x(h._payload),k)}if(Kn(h)||Fn(h))return x!==null?null:f(m,d,h,k,null);no(m,h)}return null}function g(m,d,h,k,x){if(typeof k=="string"&&k!==""||typeof k=="number")return m=m.get(h)||null,s(d,m,""+k,x);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case jr:return m=m.get(k.key===null?h:k.key)||null,a(d,m,k,x);case rn:return m=m.get(k.key===null?h:k.key)||null,u(d,m,k,x);case ht:var C=k._init;return g(m,d,h,C(k._payload),x)}if(Kn(k)||Fn(k))return m=m.get(h)||null,f(d,m,k,x,null);no(d,k)}return null}function y(m,d,h,k){for(var x=null,C=null,E=d,N=d=0,z=null;E!==null&&N<h.length;N++){E.index>N?(z=E,E=null):z=E.sibling;var R=c(m,E,h[N],k);if(R===null){E===null&&(E=z);break}e&&E&&R.alternate===null&&t(m,E),d=i(R,d,N),C===null?x=R:C.sibling=R,C=R,E=z}if(N===h.length)return n(m,E),V&&$t(m,N),x;if(E===null){for(;N<h.length;N++)E=p(m,h[N],k),E!==null&&(d=i(E,d,N),C===null?x=E:C.sibling=E,C=E);return V&&$t(m,N),x}for(E=r(m,E);N<h.length;N++)z=g(E,m,N,h[N],k),z!==null&&(e&&z.alternate!==null&&E.delete(z.key===null?N:z.key),d=i(z,d,N),C===null?x=z:C.sibling=z,C=z);return e&&E.forEach(function(Ce){return t(m,Ce)}),V&&$t(m,N),x}function v(m,d,h,k){var x=Fn(h);if(typeof x!="function")throw Error(w(150));if(h=x.call(h),h==null)throw Error(w(151));for(var C=x=null,E=d,N=d=0,z=null,R=h.next();E!==null&&!R.done;N++,R=h.next()){E.index>N?(z=E,E=null):z=E.sibling;var Ce=c(m,E,R.value,k);if(Ce===null){E===null&&(E=z);break}e&&E&&Ce.alternate===null&&t(m,E),d=i(Ce,d,N),C===null?x=Ce:C.sibling=Ce,C=Ce,E=z}if(R.done)return n(m,E),V&&$t(m,N),x;if(E===null){for(;!R.done;N++,R=h.next())R=p(m,R.value,k),R!==null&&(d=i(R,d,N),C===null?x=R:C.sibling=R,C=R);return V&&$t(m,N),x}for(E=r(m,E);!R.done;N++,R=h.next())R=g(E,m,N,R.value,k),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?N:R.key),d=i(R,d,N),C===null?x=R:C.sibling=R,C=R);return e&&E.forEach(function(yp){return t(m,yp)}),V&&$t(m,N),x}function L(m,d,h,k){if(typeof h=="object"&&h!==null&&h.type===on&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case jr:e:{for(var x=h.key,C=d;C!==null;){if(C.key===x){if(x=h.type,x===on){if(C.tag===7){n(m,C.sibling),d=o(C,h.props.children),d.return=m,m=d;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ht&&Ya(x)===C.type){n(m,C.sibling),d=o(C,h.props),d.ref=Wn(m,C,h),d.return=m,m=d;break e}n(m,C);break}else t(m,C);C=C.sibling}h.type===on?(d=Wt(h.props.children,m.mode,k,h.key),d.return=m,m=d):(k=go(h.type,h.key,h.props,null,m.mode,k),k.ref=Wn(m,d,h),k.return=m,m=k)}return l(m);case rn:e:{for(C=h.key;d!==null;){if(d.key===C)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(m,d.sibling),d=o(d,h.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=Qi(h,m.mode,k),d.return=m,m=d}return l(m);case ht:return C=h._init,L(m,d,C(h._payload),k)}if(Kn(h))return y(m,d,h,k);if(Fn(h))return v(m,d,h,k);no(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(m,d.sibling),d=o(d,h),d.return=m,m=d):(n(m,d),d=Hi(h,m.mode,k),d.return=m,m=d),l(m)):n(m,d)}return L}var Nn=xc(!0),Sc=xc(!1),Lo=Mt(null),Ro=null,fn=null,os=null;function is(){os=fn=Ro=null}function ls(e){var t=Lo.current;j(Lo),e._currentValue=t}function Sl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wn(e,t){Ro=e,os=fn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ke=!0),e.firstContext=null)}function Oe(e){var t=e._currentValue;if(os!==e)if(e={context:e,memoizedValue:t,next:null},fn===null){if(Ro===null)throw Error(w(308));fn=e,Ro.dependencies={lanes:0,firstContext:e}}else fn=fn.next=e;return t}var Bt=null;function ss(e){Bt===null?Bt=[e]:Bt.push(e)}function Ec(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ss(t)):(n.next=o.next,o.next=n),t.interleaved=n,at(e,r)}function at(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var gt=!1;function as(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function it(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(b&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,at(e,n)}return o=r.interleaved,o===null?(t.next=t,ss(r)):(t.next=o.next,o.next=t),r.interleaved=t,at(e,n)}function uo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ql(e,n)}}function Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Mo(e,t,n,r){var o=e.updateQueue;gt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(i!==null){var p=o.baseState;l=0,f=u=a=null,s=i;do{var c=s.lane,g=s.eventTime;if((r&c)===c){f!==null&&(f=f.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,v=s;switch(c=t,g=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){p=y.call(g,p,c);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,c=typeof y=="function"?y.call(g,p,c):y,c==null)break e;p=K({},p,c);break e;case 2:gt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,c=o.effects,c===null?o.effects=[s]:c.push(s))}else g={eventTime:g,lane:c,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=g,a=p):f=f.next=g,l|=c;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;c=s,s=c.next,c.next=null,o.lastBaseUpdate=c,o.shared.pending=null}}while(!0);if(f===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);qt|=l,e.lanes=l,e.memoizedState=p}}function Ja(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(w(191,o));o.call(r)}}}var _r={},Je=Mt(_r),vr=Mt(_r),yr=Mt(_r);function jt(e){if(e===_r)throw Error(w(174));return e}function us(e,t){switch(F(yr,t),F(vr,e),F(Je,_r),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nl(t,e)}j(Je),F(Je,t)}function _n(){j(Je),j(vr),j(yr)}function Nc(e){jt(yr.current);var t=jt(Je.current),n=nl(t,e.type);t!==n&&(F(vr,e),F(Je,n))}function cs(e){vr.current===e&&(j(Je),j(vr))}var Q=Mt(0);function Io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fi=[];function ds(){for(var e=0;e<Fi.length;e++)Fi[e]._workInProgressVersionPrimary=null;Fi.length=0}var co=ct.ReactCurrentDispatcher,Bi=ct.ReactCurrentBatchConfig,Qt=0,q=null,J=null,ne=null,bo=!1,nr=!1,kr=0,dm=0;function ue(){throw Error(w(321))}function ps(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qe(e[n],t[n]))return!1;return!0}function fs(e,t,n,r,o,i){if(Qt=i,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,co.current=e===null||e.memoizedState===null?hm:gm,e=n(r,o),nr){i=0;do{if(nr=!1,kr=0,25<=i)throw Error(w(301));i+=1,ne=J=null,t.updateQueue=null,co.current=vm,e=n(r,o)}while(nr)}if(co.current=Ao,t=J!==null&&J.next!==null,Qt=0,ne=J=q=null,bo=!1,t)throw Error(w(300));return e}function ms(){var e=kr!==0;return kr=0,e}function Ge(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ne===null?q.memoizedState=ne=e:ne=ne.next=e,ne}function Fe(){if(J===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=J.next;var t=ne===null?q.memoizedState:ne.next;if(t!==null)ne=t,J=e;else{if(e===null)throw Error(w(310));J=e,e={memoizedState:J.memoizedState,baseState:J.baseState,baseQueue:J.baseQueue,queue:J.queue,next:null},ne===null?q.memoizedState=ne=e:ne=ne.next=e}return ne}function wr(e,t){return typeof t=="function"?t(e):t}function ji(e){var t=Fe(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var r=J,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,a=null,u=i;do{var f=u.lane;if((Qt&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=p,l=r):a=a.next=p,q.lanes|=f,qt|=f}u=u.next}while(u!==null&&u!==i);a===null?l=r:a.next=s,qe(r,t.memoizedState)||(ke=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,q.lanes|=i,qt|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ui(e){var t=Fe(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);qe(i,t.memoizedState)||(ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function _c(){}function zc(e,t){var n=q,r=Fe(),o=t(),i=!qe(r.memoizedState,o);if(i&&(r.memoizedState=o,ke=!0),r=r.queue,hs(Lc.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ne!==null&&ne.memoizedState.tag&1){if(n.flags|=2048,xr(9,Pc.bind(null,n,r,o,t),void 0,null),re===null)throw Error(w(349));(Qt&30)!==0||Tc(n,t,o)}return o}function Tc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pc(e,t,n,r){t.value=n,t.getSnapshot=r,Rc(t)&&Mc(e)}function Lc(e,t,n){return n(function(){Rc(t)&&Mc(e)})}function Rc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qe(e,n)}catch{return!0}}function Mc(e){var t=at(e,1);t!==null&&Qe(t,e,1,-1)}function eu(e){var t=Ge();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:e},t.queue=e,e=e.dispatch=mm.bind(null,q,e),[t.memoizedState,e]}function xr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ic(){return Fe().memoizedState}function po(e,t,n,r){var o=Ge();q.flags|=e,o.memoizedState=xr(1|t,n,void 0,r===void 0?null:r)}function qo(e,t,n,r){var o=Fe();r=r===void 0?null:r;var i=void 0;if(J!==null){var l=J.memoizedState;if(i=l.destroy,r!==null&&ps(r,l.deps)){o.memoizedState=xr(t,n,i,r);return}}q.flags|=e,o.memoizedState=xr(1|t,n,i,r)}function tu(e,t){return po(8390656,8,e,t)}function hs(e,t){return qo(2048,8,e,t)}function bc(e,t){return qo(4,2,e,t)}function Ac(e,t){return qo(4,4,e,t)}function Dc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $c(e,t,n){return n=n!=null?n.concat([e]):null,qo(4,4,Dc.bind(null,t,e),n)}function gs(){}function Oc(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ps(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fc(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ps(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Bc(e,t,n){return(Qt&21)===0?(e.baseState&&(e.baseState=!1,ke=!0),e.memoizedState=n):(qe(n,t)||(n=Hu(),q.lanes|=n,qt|=n,e.baseState=!0),t)}function pm(e,t){var n=D;D=n!==0&&4>n?n:4,e(!0);var r=Bi.transition;Bi.transition={};try{e(!1),t()}finally{D=n,Bi.transition=r}}function jc(){return Fe().memoizedState}function fm(e,t,n){var r=zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Uc(e))Wc(t,n);else if(n=Ec(e,t,n,r),n!==null){var o=he();Qe(n,e,r,o),Vc(n,t,r)}}function mm(e,t,n){var r=zt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uc(e))Wc(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,qe(s,l)){var a=t.interleaved;a===null?(o.next=o,ss(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Ec(e,t,o,r),n!==null&&(o=he(),Qe(n,e,r,o),Vc(n,t,r))}}function Uc(e){var t=e.alternate;return e===q||t!==null&&t===q}function Wc(e,t){nr=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vc(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ql(e,n)}}var Ao={readContext:Oe,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useInsertionEffect:ue,useLayoutEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useMutableSource:ue,useSyncExternalStore:ue,useId:ue,unstable_isNewReconciler:!1},hm={readContext:Oe,useCallback:function(e,t){return Ge().memoizedState=[e,t===void 0?null:t],e},useContext:Oe,useEffect:tu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,po(4194308,4,Dc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return po(4194308,4,e,t)},useInsertionEffect:function(e,t){return po(4,2,e,t)},useMemo:function(e,t){var n=Ge();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ge();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=fm.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=Ge();return e={current:e},t.memoizedState=e},useState:eu,useDebugValue:gs,useDeferredValue:function(e){return Ge().memoizedState=e},useTransition:function(){var e=eu(!1),t=e[0];return e=pm.bind(null,e[1]),Ge().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,o=Ge();if(V){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),re===null)throw Error(w(349));(Qt&30)!==0||Tc(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,tu(Lc.bind(null,r,i,e),[e]),r.flags|=2048,xr(9,Pc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ge(),t=re.identifierPrefix;if(V){var n=ot,r=rt;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=dm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gm={readContext:Oe,useCallback:Oc,useContext:Oe,useEffect:hs,useImperativeHandle:$c,useInsertionEffect:bc,useLayoutEffect:Ac,useMemo:Fc,useReducer:ji,useRef:Ic,useState:function(){return ji(wr)},useDebugValue:gs,useDeferredValue:function(e){var t=Fe();return Bc(t,J.memoizedState,e)},useTransition:function(){var e=ji(wr)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:_c,useSyncExternalStore:zc,useId:jc,unstable_isNewReconciler:!1},vm={readContext:Oe,useCallback:Oc,useContext:Oe,useEffect:hs,useImperativeHandle:$c,useInsertionEffect:bc,useLayoutEffect:Ac,useMemo:Fc,useReducer:Ui,useRef:Ic,useState:function(){return Ui(wr)},useDebugValue:gs,useDeferredValue:function(e){var t=Fe();return J===null?t.memoizedState=e:Bc(t,J.memoizedState,e)},useTransition:function(){var e=Ui(wr)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:_c,useSyncExternalStore:zc,useId:jc,unstable_isNewReconciler:!1};function Ue(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function El(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ko={isMounted:function(e){return(e=e._reactInternals)?Gt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=he(),o=zt(e),i=it(r,o);i.payload=t,n!=null&&(i.callback=n),t=Nt(e,i,o),t!==null&&(Qe(t,e,o,r),uo(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=he(),o=zt(e),i=it(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Nt(e,i,o),t!==null&&(Qe(t,e,o,r),uo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=he(),r=zt(e),o=it(n,r);o.tag=2,t!=null&&(o.callback=t),t=Nt(e,o,r),t!==null&&(Qe(t,e,r,n),uo(t,e,r))}};function nu(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!fr(n,r)||!fr(o,i):!0}function Hc(e,t,n){var r=!1,o=Lt,i=t.contextType;return typeof i=="object"&&i!==null?i=Oe(i):(o=xe(t)?Vt:pe.current,r=t.contextTypes,i=(r=r!=null)?En(e,o):Lt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ko,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ru(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ko.enqueueReplaceState(t,t.state,null)}function Cl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},as(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Oe(i):(i=xe(t)?Vt:pe.current,o.context=En(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(El(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ko.enqueueReplaceState(o,o.state,null),Mo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function zn(e,t){try{var n="",r=t;do n+=Qp(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
7
|
-
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Wi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Nl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ym=typeof WeakMap=="function"?WeakMap:Map;function Qc(e,t,n){n=it(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$o||($o=!0,Al=r),Nl(e,t)},n}function qc(e,t,n){n=it(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Nl(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Nl(e,t),typeof r!="function"&&(_t===null?_t=new Set([this]):_t.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function ou(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ym;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Mm.bind(null,e,t,n),t.then(e,e))}function iu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lu(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=it(-1,1),t.tag=2,Nt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var km=ct.ReactCurrentOwner,ke=!1;function me(e,t,n,r){t.child=e===null?Sc(t,null,n,r):Nn(t,e.child,n,r)}function su(e,t,n,r,o){n=n.render;var i=t.ref;return wn(t,o),r=fs(e,t,n,r,i,o),n=ms(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ut(e,t,o)):(V&&n&&ts(t),t.flags|=1,me(e,t,r,o),t.child)}function au(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Cs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Kc(e,t,i,r,o)):(e=go(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:fr,n(l,r)&&e.ref===t.ref)return ut(e,t,o)}return t.flags|=1,e=Tt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Kc(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(fr(i,r)&&e.ref===t.ref)if(ke=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(ke=!0);else return t.lanes=e.lanes,ut(e,t,o)}return _l(e,t,n,r,o)}function Zc(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(hn,_e),_e|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,F(hn,_e),_e|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,F(hn,_e),_e|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,F(hn,_e),_e|=r;return me(e,t,o,n),t.child}function Gc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,o){var i=xe(n)?Vt:pe.current;return i=En(t,i),wn(t,o),n=fs(e,t,n,r,i,o),r=ms(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ut(e,t,o)):(V&&r&&ts(t),t.flags|=1,me(e,t,n,o),t.child)}function uu(e,t,n,r,o){if(xe(n)){var i=!0;zo(t)}else i=!1;if(wn(t,o),t.stateNode===null)fo(e,t),Hc(t,n,r),Cl(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Oe(u):(u=xe(n)?Vt:pe.current,u=En(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";p||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&ru(t,l,r,u),gt=!1;var c=t.memoizedState;l.state=c,Mo(t,r,l,o),a=t.memoizedState,s!==r||c!==a||we.current||gt?(typeof f=="function"&&(El(t,n,f,r),a=t.memoizedState),(s=gt||nu(t,n,s,r,c,a,u))?(p||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Cc(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ue(t.type,s),l.props=u,p=t.pendingProps,c=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Oe(a):(a=xe(n)?Vt:pe.current,a=En(t,a));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==p||c!==a)&&ru(t,l,r,a),gt=!1,c=t.memoizedState,l.state=c,Mo(t,r,l,o);var y=t.memoizedState;s!==p||c!==y||we.current||gt?(typeof g=="function"&&(El(t,n,g,r),y=t.memoizedState),(u=gt||nu(t,n,u,r,c,y,a)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,y,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,y,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),l.props=r,l.state=y,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),r=!1)}return zl(e,t,n,r,i,o)}function zl(e,t,n,r,o,i){Gc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Ka(t,n,!1),ut(e,t,i);r=t.stateNode,km.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Nn(t,e.child,null,i),t.child=Nn(t,null,s,i)):me(e,t,s,i),t.memoizedState=r.state,o&&Ka(t,n,!0),t.child}function Yc(e){var t=e.stateNode;t.pendingContext?qa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qa(e,t.context,!1),us(e,t.containerInfo)}function cu(e,t,n,r,o){return Cn(),rs(o),t.flags|=256,me(e,t,n,r),t.child}var Tl={dehydrated:null,treeContext:null,retryLane:0};function Pl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xc(e,t,n){var r=t.pendingProps,o=Q.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),F(Q,o&1),e===null)return xl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Yo(l,r,0,null),e=Wt(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Pl(n),t.memoizedState=Tl,e):vs(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return wm(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return(l&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Tt(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Tt(s,i):(i=Wt(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Pl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Tl,r}return i=e.child,e=i.sibling,r=Tt(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vs(e,t){return t=Yo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ro(e,t,n,r){return r!==null&&rs(r),Nn(t,e.child,null,n),e=vs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wm(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Wi(Error(w(422))),ro(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Yo({mode:"visible",children:r.children},o,0,null),i=Wt(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Nn(t,e.child,null,l),t.child.memoizedState=Pl(l),t.memoizedState=Tl,i);if((t.mode&1)===0)return ro(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(w(419)),r=Wi(i,r,void 0),ro(e,t,l,r)}if(s=(l&e.childLanes)!==0,ke||s){if(r=re,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|l))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,at(e,o),Qe(r,e,o,-1))}return Es(),r=Wi(Error(w(421))),ro(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Im.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ze=Ct(o.nextSibling),Te=t,V=!0,Ve=null,e!==null&&(be[Ae++]=rt,be[Ae++]=ot,be[Ae++]=Ht,rt=e.id,ot=e.overflow,Ht=t),t=vs(t,r.children),t.flags|=4096,t)}function du(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sl(e.return,t,n)}function Vi(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Jc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(me(e,t,r.children,n),r=Q.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&du(e,n,t);else if(e.tag===19)du(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(F(Q,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Io(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vi(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Io(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vi(t,!0,n,null,i);break;case"together":Vi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qt|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,n=Tt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xm(e,t,n){switch(t.tag){case 3:Yc(t),Cn();break;case 5:Nc(t);break;case 1:xe(t.type)&&zo(t);break;case 4:us(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;F(Lo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(F(Q,Q.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Xc(e,t,n):(F(Q,Q.current&1),e=ut(e,t,n),e!==null?e.sibling:null);F(Q,Q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Jc(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),F(Q,Q.current),r)break;return null;case 22:case 23:return t.lanes=0,Zc(e,t,n)}return ut(e,t,n)}var ed,Ll,td,nd;ed=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ll=function(){};td=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,jt(Je.current);var i=null;switch(n){case"input":o=Xi(e,o),r=Xi(e,r),i=[];break;case"select":o=K({},o,{value:void 0}),r=K({},r,{value:void 0}),i=[];break;case"textarea":o=tl(e,o),r=tl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=No)}rl(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(lr.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o?.[u],r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(lr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&B("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};nd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Vn(e,t){if(!V)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Sm(e,t,n){var r=t.pendingProps;switch(ns(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(t),null;case 1:return xe(t.type)&&_o(),ce(t),null;case 3:return r=t.stateNode,_n(),j(we),j(pe),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(to(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ve!==null&&(Ol(Ve),Ve=null))),Ll(e,t),ce(t),null;case 5:cs(t);var o=jt(yr.current);if(n=t.type,e!==null&&t.stateNode!=null)td(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(w(166));return ce(t),null}if(e=jt(Je.current),to(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ye]=t,r[gr]=i,e=(t.mode&1)!==0,n){case"dialog":B("cancel",r),B("close",r);break;case"iframe":case"object":case"embed":B("load",r);break;case"video":case"audio":for(o=0;o<Gn.length;o++)B(Gn[o],r);break;case"source":B("error",r);break;case"img":case"image":case"link":B("error",r),B("load",r);break;case"details":B("toggle",r);break;case"input":ka(r,i),B("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},B("invalid",r);break;case"textarea":xa(r,i),B("invalid",r)}rl(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&eo(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&eo(r.textContent,s,e),o=["children",""+s]):lr.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&B("scroll",r)}switch(n){case"input":Ur(r),wa(r,i,!0);break;case"textarea":Ur(r),Sa(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=No)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Lu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ye]=t,e[gr]=r,ed(e,t,!1,!1),t.stateNode=e;e:{switch(l=ol(n,r),n){case"dialog":B("cancel",e),B("close",e),o=r;break;case"iframe":case"object":case"embed":B("load",e),o=r;break;case"video":case"audio":for(o=0;o<Gn.length;o++)B(Gn[o],e);o=r;break;case"source":B("error",e),o=r;break;case"img":case"image":case"link":B("error",e),B("load",e),o=r;break;case"details":B("toggle",e),o=r;break;case"input":ka(e,r),o=Xi(e,r),B("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=K({},r,{value:void 0}),B("invalid",e);break;case"textarea":xa(e,r),o=tl(e,r),B("invalid",e);break;default:o=r}rl(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?Iu(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ru(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&sr(e,a):typeof a=="number"&&sr(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(lr.hasOwnProperty(i)?a!=null&&i==="onScroll"&&B("scroll",e):a!=null&&jl(e,i,a,l))}switch(n){case"input":Ur(e),wa(e,r,!1);break;case"textarea":Ur(e),Sa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Pt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?gn(e,!!r.multiple,i,!1):r.defaultValue!=null&&gn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=No)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ce(t),null;case 6:if(e&&t.stateNode!=null)nd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(w(166));if(n=jt(yr.current),jt(Je.current),to(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ye]=t,(i=r.nodeValue!==n)&&(e=Te,e!==null))switch(e.tag){case 3:eo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&eo(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ye]=t,t.stateNode=r}return ce(t),null;case 13:if(j(Q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(V&&ze!==null&&(t.mode&1)!==0&&(t.flags&128)===0)wc(),Cn(),t.flags|=98560,i=!1;else if(i=to(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(w(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(w(317));i[Ye]=t}else Cn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ce(t),i=!1}else Ve!==null&&(Ol(Ve),Ve=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Q.current&1)!==0?ee===0&&(ee=3):Es())),t.updateQueue!==null&&(t.flags|=4),ce(t),null);case 4:return _n(),Ll(e,t),e===null&&mr(t.stateNode.containerInfo),ce(t),null;case 10:return ls(t.type._context),ce(t),null;case 17:return xe(t.type)&&_o(),ce(t),null;case 19:if(j(Q),i=t.memoizedState,i===null)return ce(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)Vn(i,!1);else{if(ee!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=Io(e),l!==null){for(t.flags|=128,Vn(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return F(Q,Q.current&1|2),t.child}e=e.sibling}i.tail!==null&&G()>Tn&&(t.flags|=128,r=!0,Vn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Io(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!V)return ce(t),null}else 2*G()-i.renderingStartTime>Tn&&n!==1073741824&&(t.flags|=128,r=!0,Vn(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=G(),t.sibling=null,n=Q.current,F(Q,r?n&1|2:n&1),t):(ce(t),null);case 22:case 23:return Ss(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(_e&1073741824)!==0&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),null;case 24:return null;case 25:return null}throw Error(w(156,t.tag))}function Em(e,t){switch(ns(t),t.tag){case 1:return xe(t.type)&&_o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(),j(we),j(pe),ds(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return cs(t),null;case 13:if(j(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(Q),null;case 4:return _n(),null;case 10:return ls(t.type._context),null;case 22:case 23:return Ss(),null;case 24:return null;default:return null}}var oo=!1,de=!1,Cm=typeof WeakSet=="function"?WeakSet:Set,S=null;function mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Z(e,t,r)}else n.current=null}function Rl(e,t,n){try{n()}catch(r){Z(e,t,r)}}var pu=!1;function Nm(e,t){if(ml=So,e=sc(),es(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,f=0,p=e,c=null;t:for(;;){for(var g;p!==n||o!==0&&p.nodeType!==3||(s=l+o),p!==i||r!==0&&p.nodeType!==3||(a=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(g=p.firstChild)!==null;)c=p,p=g;for(;;){if(p===e)break t;if(c===n&&++u===o&&(s=l),c===i&&++f===r&&(a=l),(g=p.nextSibling)!==null)break;p=c,c=p.parentNode}p=g}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(hl={focusedElem:e,selectionRange:n},So=!1,S=t;S!==null;)if(t=S,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,S=e;else for(;S!==null;){t=S;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,L=y.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ue(t.type,v),L);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(w(163))}}catch(k){Z(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,S=e;break}S=t.return}return y=pu,pu=!1,y}function rr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Rl(t,n,i)}o=o.next}while(o!==r)}}function Zo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ml(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function rd(e){var t=e.alternate;t!==null&&(e.alternate=null,rd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[gr],delete t[yl],delete t[sm],delete t[am])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function od(e){return e.tag===5||e.tag===3||e.tag===4}function fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||od(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Il(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=No));else if(r!==4&&(e=e.child,e!==null))for(Il(e,t,n),e=e.sibling;e!==null;)Il(e,t,n),e=e.sibling}function bl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bl(e,t,n),e=e.sibling;e!==null;)bl(e,t,n),e=e.sibling}var ie=null,We=!1;function mt(e,t,n){for(n=n.child;n!==null;)id(e,t,n),n=n.sibling}function id(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(jo,n)}catch{}switch(n.tag){case 5:de||mn(n,t);case 6:var r=ie,o=We;ie=null,mt(e,t,n),ie=r,We=o,ie!==null&&(We?(e=ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ie.removeChild(n.stateNode));break;case 18:ie!==null&&(We?(e=ie,n=n.stateNode,e.nodeType===8?$i(e.parentNode,n):e.nodeType===1&&$i(e,n),dr(e)):$i(ie,n.stateNode));break;case 4:r=ie,o=We,ie=n.stateNode.containerInfo,We=!0,mt(e,t,n),ie=r,We=o;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&((i&2)!==0||(i&4)!==0)&&Rl(n,t,l),o=o.next}while(o!==r)}mt(e,t,n);break;case 1:if(!de&&(mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Z(n,t,s)}mt(e,t,n);break;case 21:mt(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,mt(e,t,n),de=r):mt(e,t,n);break;default:mt(e,t,n)}}function mu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Cm),t.forEach(function(r){var o=bm.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function je(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:ie=s.stateNode,We=!1;break e;case 3:ie=s.stateNode.containerInfo,We=!0;break e;case 4:ie=s.stateNode.containerInfo,We=!0;break e}s=s.return}if(ie===null)throw Error(w(160));id(i,l,o),ie=null,We=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Z(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ld(t,e),t=t.sibling}function ld(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(je(t,e),Ze(e),r&4){try{rr(3,e,e.return),Zo(3,e)}catch(v){Z(e,e.return,v)}try{rr(5,e,e.return)}catch(v){Z(e,e.return,v)}}break;case 1:je(t,e),Ze(e),r&512&&n!==null&&mn(n,n.return);break;case 5:if(je(t,e),Ze(e),r&512&&n!==null&&mn(n,n.return),e.flags&32){var o=e.stateNode;try{sr(o,"")}catch(v){Z(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Tu(o,i),ol(s,l);var u=ol(s,i);for(l=0;l<a.length;l+=2){var f=a[l],p=a[l+1];f==="style"?Iu(o,p):f==="dangerouslySetInnerHTML"?Ru(o,p):f==="children"?sr(o,p):jl(o,f,p,u)}switch(s){case"input":Ji(o,i);break;case"textarea":Pu(o,i);break;case"select":var c=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?gn(o,!!i.multiple,g,!1):c!==!!i.multiple&&(i.defaultValue!=null?gn(o,!!i.multiple,i.defaultValue,!0):gn(o,!!i.multiple,i.multiple?[]:"",!1))}o[gr]=i}catch(v){Z(e,e.return,v)}}break;case 6:if(je(t,e),Ze(e),r&4){if(e.stateNode===null)throw Error(w(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){Z(e,e.return,v)}}break;case 3:if(je(t,e),Ze(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{dr(t.containerInfo)}catch(v){Z(e,e.return,v)}break;case 4:je(t,e),Ze(e);break;case 13:je(t,e),Ze(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ws=G())),r&4&&mu(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(de=(u=de)||f,je(t,e),de=u):je(t,e),Ze(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&(e.mode&1)!==0)for(S=e,f=e.child;f!==null;){for(p=S=f;S!==null;){switch(c=S,g=c.child,c.tag){case 0:case 11:case 14:case 15:rr(4,c,c.return);break;case 1:mn(c,c.return);var y=c.stateNode;if(typeof y.componentWillUnmount=="function"){r=c,n=c.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){Z(r,n,v)}}break;case 5:mn(c,c.return);break;case 22:if(c.memoizedState!==null){gu(p);continue}}g!==null?(g.return=c,S=g):gu(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{o=p.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=p.stateNode,a=p.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Mu("display",l))}catch(v){Z(e,e.return,v)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(v){Z(e,e.return,v)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:je(t,e),Ze(e),r&4&&mu(e);break;case 21:break;default:je(t,e),Ze(e)}}function Ze(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(od(n)){var r=n;break e}n=n.return}throw Error(w(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(sr(o,""),r.flags&=-33);var i=fu(e);bl(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=fu(e);Il(e,s,l);break;default:throw Error(w(161))}}catch(a){Z(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _m(e,t,n){S=e,sd(e,t,n)}function sd(e,t,n){for(var r=(e.mode&1)!==0;S!==null;){var o=S,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||oo;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||de;s=oo;var u=de;if(oo=l,(de=a)&&!u)for(S=o;S!==null;)l=S,a=l.child,l.tag===22&&l.memoizedState!==null?vu(o):a!==null?(a.return=l,S=a):vu(o);for(;i!==null;)S=i,sd(i,t,n),i=i.sibling;S=o,oo=s,de=u}hu(e,t,n)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,S=i):hu(e,t,n)}}function hu(e){for(;S!==null;){var t=S;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:de||Zo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!de)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ue(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ja(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ja(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&dr(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(w(163))}de||t.flags&512&&Ml(t)}catch(c){Z(t,t.return,c)}}if(t===e){S=null;break}if(n=t.sibling,n!==null){n.return=t.return,S=n;break}S=t.return}}function gu(e){for(;S!==null;){var t=S;if(t===e){S=null;break}var n=t.sibling;if(n!==null){n.return=t.return,S=n;break}S=t.return}}function vu(e){for(;S!==null;){var t=S;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zo(4,t)}catch(a){Z(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Z(t,o,a)}}var i=t.return;try{Ml(t)}catch(a){Z(t,i,a)}break;case 5:var l=t.return;try{Ml(t)}catch(a){Z(t,l,a)}}}catch(a){Z(t,t.return,a)}if(t===e){S=null;break}var s=t.sibling;if(s!==null){s.return=t.return,S=s;break}S=t.return}}var zm=Math.ceil,Do=ct.ReactCurrentDispatcher,ys=ct.ReactCurrentOwner,$e=ct.ReactCurrentBatchConfig,b=0,re=null,Y=null,le=0,_e=0,hn=Mt(0),ee=0,Sr=null,qt=0,Go=0,ks=0,or=null,ye=null,ws=0,Tn=1/0,tt=null,$o=!1,Al=null,_t=null,io=!1,wt=null,Oo=0,ir=0,Dl=null,mo=-1,ho=0;function he(){return(b&6)!==0?G():mo!==-1?mo:mo=G()}function zt(e){return(e.mode&1)===0?1:(b&2)!==0&&le!==0?le&-le:cm.transition!==null?(ho===0&&(ho=Hu()),ho):(e=D,e!==0||(e=window.event,e=e===void 0?16:Xu(e.type)),e)}function Qe(e,t,n,r){if(50<ir)throw ir=0,Dl=null,Error(w(185));Er(e,n,r),((b&2)===0||e!==re)&&(e===re&&((b&2)===0&&(Go|=n),ee===4&&yt(e,le)),Se(e,r),n===1&&b===0&&(t.mode&1)===0&&(Tn=G()+500,Qo&&It()))}function Se(e,t){var n=e.callbackNode;pf(e,t);var r=xo(e,e===re?le:0);if(r===0)n!==null&&Na(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Na(n),t===1)e.tag===0?um(yu.bind(null,e)):vc(yu.bind(null,e)),im(function(){(b&6)===0&&It()}),n=null;else{switch(Qu(r)){case 1:n=Ql;break;case 4:n=Wu;break;case 16:n=wo;break;case 536870912:n=Vu;break;default:n=wo}n=hd(n,ad.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ad(e,t){if(mo=-1,ho=0,(b&6)!==0)throw Error(w(327));var n=e.callbackNode;if(xn()&&e.callbackNode!==n)return null;var r=xo(e,e===re?le:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Fo(e,r);else{t=r;var o=b;b|=2;var i=cd();(re!==e||le!==t)&&(tt=null,Tn=G()+500,Ut(e,t));do try{Lm();break}catch(s){ud(e,s)}while(!0);is(),Do.current=i,b=o,Y!==null?t=0:(re=null,le=0,t=ee)}if(t!==0){if(t===2&&(o=ul(e),o!==0&&(r=o,t=$l(e,o))),t===1)throw n=Sr,Ut(e,0),yt(e,r),Se(e,G()),n;if(t===6)yt(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Tm(o)&&(t=Fo(e,r),t===2&&(i=ul(e),i!==0&&(r=i,t=$l(e,i))),t===1))throw n=Sr,Ut(e,0),yt(e,r),Se(e,G()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(w(345));case 2:Ot(e,ye,tt);break;case 3:if(yt(e,r),(r&130023424)===r&&(t=ws+500-G(),10<t)){if(xo(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){he(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=vl(Ot.bind(null,e,ye,tt),t);break}Ot(e,ye,tt);break;case 4:if(yt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-He(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zm(r/1960))-r,10<r){e.timeoutHandle=vl(Ot.bind(null,e,ye,tt),r);break}Ot(e,ye,tt);break;case 5:Ot(e,ye,tt);break;default:throw Error(w(329))}}}return Se(e,G()),e.callbackNode===n?ad.bind(null,e):null}function $l(e,t){var n=or;return e.current.memoizedState.isDehydrated&&(Ut(e,t).flags|=256),e=Fo(e,t),e!==2&&(t=ye,ye=n,t!==null&&Ol(t)),e}function Ol(e){ye===null?ye=e:ye.push.apply(ye,e)}function Tm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!qe(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yt(e,t){for(t&=~ks,t&=~Go,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-He(t),r=1<<n;e[n]=-1,t&=~r}}function yu(e){if((b&6)!==0)throw Error(w(327));xn();var t=xo(e,0);if((t&1)===0)return Se(e,G()),null;var n=Fo(e,t);if(e.tag!==0&&n===2){var r=ul(e);r!==0&&(t=r,n=$l(e,r))}if(n===1)throw n=Sr,Ut(e,0),yt(e,t),Se(e,G()),n;if(n===6)throw Error(w(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ot(e,ye,tt),Se(e,G()),null}function xs(e,t){var n=b;b|=1;try{return e(t)}finally{b=n,b===0&&(Tn=G()+500,Qo&&It())}}function Kt(e){wt!==null&&wt.tag===0&&(b&6)===0&&xn();var t=b;b|=1;var n=$e.transition,r=D;try{if($e.transition=null,D=1,e)return e()}finally{D=r,$e.transition=n,b=t,(b&6)===0&&It()}}function Ss(){_e=hn.current,j(hn)}function Ut(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,om(n)),Y!==null)for(n=Y.return;n!==null;){var r=n;switch(ns(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&_o();break;case 3:_n(),j(we),j(pe),ds();break;case 5:cs(r);break;case 4:_n();break;case 13:j(Q);break;case 19:j(Q);break;case 10:ls(r.type._context);break;case 22:case 23:Ss()}n=n.return}if(re=e,Y=e=Tt(e.current,null),le=_e=t,ee=0,Sr=null,ks=Go=qt=0,ye=or=null,Bt!==null){for(t=0;t<Bt.length;t++)if(n=Bt[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}Bt=null}return e}function ud(e,t){do{var n=Y;try{if(is(),co.current=Ao,bo){for(var r=q.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}bo=!1}if(Qt=0,ne=J=q=null,nr=!1,kr=0,ys.current=null,n===null||n.return===null){ee=1,Sr=t,Y=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=le,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=s,p=f.tag;if((f.mode&1)===0&&(p===0||p===11||p===15)){var c=f.alternate;c?(f.updateQueue=c.updateQueue,f.memoizedState=c.memoizedState,f.lanes=c.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=iu(l);if(g!==null){g.flags&=-257,lu(g,l,s,i,t),g.mode&1&&ou(i,u,t),t=g,a=u;var y=t.updateQueue;if(y===null){var v=new Set;v.add(a),t.updateQueue=v}else y.add(a);break e}else{if((t&1)===0){ou(i,u,t),Es();break e}a=Error(w(426))}}else if(V&&s.mode&1){var L=iu(l);if(L!==null){(L.flags&65536)===0&&(L.flags|=256),lu(L,l,s,i,t),rs(zn(a,s));break e}}i=a=zn(a,s),ee!==4&&(ee=2),or===null?or=[i]:or.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Qc(i,a,t);Xa(i,m);break e;case 1:s=a;var d=i.type,h=i.stateNode;if((i.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(_t===null||!_t.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=qc(i,s,t);Xa(i,k);break e}}i=i.return}while(i!==null)}pd(n)}catch(x){t=x,Y===n&&n!==null&&(Y=n=n.return);continue}break}while(!0)}function cd(){var e=Do.current;return Do.current=Ao,e===null?Ao:e}function Es(){(ee===0||ee===3||ee===2)&&(ee=4),re===null||(qt&268435455)===0&&(Go&268435455)===0||yt(re,le)}function Fo(e,t){var n=b;b|=2;var r=cd();(re!==e||le!==t)&&(tt=null,Ut(e,t));do try{Pm();break}catch(o){ud(e,o)}while(!0);if(is(),b=n,Do.current=r,Y!==null)throw Error(w(261));return re=null,le=0,ee}function Pm(){for(;Y!==null;)dd(Y)}function Lm(){for(;Y!==null&&!nf();)dd(Y)}function dd(e){var t=md(e.alternate,e,_e);e.memoizedProps=e.pendingProps,t===null?pd(e):Y=t,ys.current=null}function pd(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Sm(n,t,_e),n!==null){Y=n;return}}else{if(n=Em(n,t),n!==null){n.flags&=32767,Y=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ee=6,Y=null;return}}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);ee===0&&(ee=5)}function Ot(e,t,n){var r=D,o=$e.transition;try{$e.transition=null,D=1,Rm(e,t,n,r)}finally{$e.transition=o,D=r}return null}function Rm(e,t,n,r){do xn();while(wt!==null);if((b&6)!==0)throw Error(w(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(w(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(ff(e,i),e===re&&(Y=re=null,le=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||io||(io=!0,hd(wo,function(){return xn(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=$e.transition,$e.transition=null;var l=D;D=1;var s=b;b|=4,ys.current=null,Nm(e,n),ld(n,e),Jf(hl),So=!!ml,hl=ml=null,e.current=n,_m(n,e,o),rf(),b=s,D=l,$e.transition=i}else e.current=n;if(io&&(io=!1,wt=e,Oo=o),i=e.pendingLanes,i===0&&(_t=null),sf(n.stateNode,r),Se(e,G()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if($o)throw $o=!1,e=Al,Al=null,e;return(Oo&1)!==0&&e.tag!==0&&xn(),i=e.pendingLanes,(i&1)!==0?e===Dl?ir++:(ir=0,Dl=e):ir=0,It(),null}function xn(){if(wt!==null){var e=Qu(Oo),t=$e.transition,n=D;try{if($e.transition=null,D=16>e?16:e,wt===null)var r=!1;else{if(e=wt,wt=null,Oo=0,(b&6)!==0)throw Error(w(331));var o=b;for(b|=4,S=e.current;S!==null;){var i=S,l=i.child;if((S.flags&16)!==0){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(S=u;S!==null;){var f=S;switch(f.tag){case 0:case 11:case 15:rr(8,f,i)}var p=f.child;if(p!==null)p.return=f,S=p;else for(;S!==null;){f=S;var c=f.sibling,g=f.return;if(rd(f),f===u){S=null;break}if(c!==null){c.return=g,S=c;break}S=g}}}var y=i.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var L=v.sibling;v.sibling=null,v=L}while(v!==null)}}S=i}}if((i.subtreeFlags&2064)!==0&&l!==null)l.return=i,S=l;else e:for(;S!==null;){if(i=S,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:rr(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,S=m;break e}S=i.return}}var d=e.current;for(S=d;S!==null;){l=S;var h=l.child;if((l.subtreeFlags&2064)!==0&&h!==null)h.return=l,S=h;else e:for(l=d;S!==null;){if(s=S,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:Zo(9,s)}}catch(x){Z(s,s.return,x)}if(s===l){S=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,S=k;break e}S=s.return}}if(b=o,It(),Xe&&typeof Xe.onPostCommitFiberRoot=="function")try{Xe.onPostCommitFiberRoot(jo,e)}catch{}r=!0}return r}finally{D=n,$e.transition=t}}return!1}function ku(e,t,n){t=zn(n,t),t=Qc(e,t,1),e=Nt(e,t,1),t=he(),e!==null&&(Er(e,1,t),Se(e,t))}function Z(e,t,n){if(e.tag===3)ku(e,e,n);else for(;t!==null;){if(t.tag===3){ku(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_t===null||!_t.has(r))){e=zn(n,e),e=qc(t,e,1),t=Nt(t,e,1),e=he(),t!==null&&(Er(t,1,e),Se(t,e));break}}t=t.return}}function Mm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=he(),e.pingedLanes|=e.suspendedLanes&n,re===e&&(le&n)===n&&(ee===4||ee===3&&(le&130023424)===le&&500>G()-ws?Ut(e,0):ks|=n),Se(e,t)}function fd(e,t){t===0&&((e.mode&1)===0?t=1:(t=Hr,Hr<<=1,(Hr&130023424)===0&&(Hr=4194304)));var n=he();e=at(e,t),e!==null&&(Er(e,t,n),Se(e,n))}function Im(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fd(e,n)}function bm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(w(314))}r!==null&&r.delete(t),fd(e,n)}var md;md=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||we.current)ke=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ke=!1,xm(e,t,n);ke=(e.flags&131072)!==0}else ke=!1,V&&(t.flags&1048576)!==0&&yc(t,Po,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fo(e,t),e=t.pendingProps;var o=En(t,pe.current);wn(t,n),o=fs(null,t,r,e,o,n);var i=ms();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(i=!0,zo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,as(t),o.updater=Ko,t.stateNode=o,o._reactInternals=t,Cl(t,r,e,n),t=zl(null,t,r,!0,i,n)):(t.tag=0,V&&i&&ts(t),me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Dm(r),e=Ue(r,e),o){case 0:t=_l(null,t,r,e,n);break e;case 1:t=uu(null,t,r,e,n);break e;case 11:t=su(null,t,r,e,n);break e;case 14:t=au(null,t,r,Ue(r.type,e),n);break e}throw Error(w(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ue(r,o),_l(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ue(r,o),uu(e,t,r,o,n);case 3:e:{if(Yc(t),e===null)throw Error(w(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Cc(e,t),Mo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zn(Error(w(423)),t),t=cu(e,t,r,n,o);break e}else if(r!==o){o=zn(Error(w(424)),t),t=cu(e,t,r,n,o);break e}else for(ze=Ct(t.stateNode.containerInfo.firstChild),Te=t,V=!0,Ve=null,n=Sc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cn(),r===o){t=ut(e,t,n);break e}me(e,t,r,n)}t=t.child}return t;case 5:return Nc(t),e===null&&xl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,gl(r,o)?l=null:i!==null&&gl(r,i)&&(t.flags|=32),Gc(e,t),me(e,t,l,n),t.child;case 6:return e===null&&xl(t),null;case 13:return Xc(e,t,n);case 4:return us(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nn(t,null,r,n):me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ue(r,o),su(e,t,r,o,n);case 7:return me(e,t,t.pendingProps,n),t.child;case 8:return me(e,t,t.pendingProps.children,n),t.child;case 12:return me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,F(Lo,r._currentValue),r._currentValue=l,i!==null)if(qe(i.value,l)){if(i.children===o.children&&!we.current){t=ut(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=it(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Sl(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(w(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Sl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wn(t,n),o=Oe(o),r=r(o),t.flags|=1,me(e,t,r,n),t.child;case 14:return r=t.type,o=Ue(r,t.pendingProps),o=Ue(r.type,o),au(e,t,r,o,n);case 15:return Kc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ue(r,o),fo(e,t),t.tag=1,xe(r)?(e=!0,zo(t)):e=!1,wn(t,n),Hc(t,r,o),Cl(t,r,o,n),zl(null,t,r,!0,e,n);case 19:return Jc(e,t,n);case 22:return Zc(e,t,n)}throw Error(w(156,t.tag))};function hd(e,t){return Uu(e,t)}function Am(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(e,t,n,r){return new Am(e,t,n,r)}function Cs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dm(e){if(typeof e=="function")return Cs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wl)return 11;if(e===Vl)return 14}return 2}function Tt(e,t){var n=e.alternate;return n===null?(n=De(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function go(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Cs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case on:return Wt(n.children,o,i,t);case Ul:l=8,o|=8;break;case Ki:return e=De(12,n,t,o|2),e.elementType=Ki,e.lanes=i,e;case Zi:return e=De(13,n,t,o),e.elementType=Zi,e.lanes=i,e;case Gi:return e=De(19,n,t,o),e.elementType=Gi,e.lanes=i,e;case Nu:return Yo(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Eu:l=10;break e;case Cu:l=9;break e;case Wl:l=11;break e;case Vl:l=14;break e;case ht:l=16,r=null;break e}throw Error(w(130,e==null?e:typeof e,""))}return t=De(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Wt(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function Yo(e,t,n,r){return e=De(22,e,r,t),e.elementType=Nu,e.lanes=n,e.stateNode={isHidden:!1},e}function Hi(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function Qi(e,t,n){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $m(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pi(0),this.expirationTimes=Pi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ns(e,t,n,r,o,i,l,s,a){return e=new $m(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=De(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},as(i),e}function Om(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function gd(e){if(!e)return Lt;e=e._reactInternals;e:{if(Gt(e)!==e||e.tag!==1)throw Error(w(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(w(171))}if(e.tag===1){var n=e.type;if(xe(n))return gc(e,n,t)}return t}function vd(e,t,n,r,o,i,l,s,a){return e=Ns(n,r,!0,e,o,i,l,s,a),e.context=gd(null),n=e.current,r=he(),o=zt(n),i=it(r,o),i.callback=t??null,Nt(n,i,o),e.current.lanes=o,Er(e,o,r),Se(e,r),e}function Xo(e,t,n,r){var o=t.current,i=he(),l=zt(o);return n=gd(n),t.context===null?t.context=n:t.pendingContext=n,t=it(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Nt(o,t,l),e!==null&&(Qe(e,o,l,i),uo(e,o,l)),l}function Bo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function wu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _s(e,t){wu(e,t),(e=e.alternate)&&wu(e,t)}function Fm(){return null}var yd=typeof reportError=="function"?reportError:function(e){console.error(e)};function zs(e){this._internalRoot=e}Jo.prototype.render=zs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));Xo(e,t,null,null)};Jo.prototype.unmount=zs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kt(function(){Xo(null,e,null,null)}),t[st]=null}};function Jo(e){this._internalRoot=e}Jo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vt.length&&t!==0&&t<vt[n].priority;n++);vt.splice(n,0,e),n===0&&Yu(e)}};function Ts(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ei(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function xu(){}function Bm(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Bo(l);i.call(u)}}var l=vd(t,r,e,0,null,!1,!1,"",xu);return e._reactRootContainer=l,e[st]=l.current,mr(e.nodeType===8?e.parentNode:e),Kt(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Bo(a);s.call(u)}}var a=Ns(e,0,!1,null,null,!1,!1,"",xu);return e._reactRootContainer=a,e[st]=a.current,mr(e.nodeType===8?e.parentNode:e),Kt(function(){Xo(t,a,n,r)}),a}function ti(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var a=Bo(l);s.call(a)}}Xo(t,l,e,o)}else l=Bm(n,t,e,o,r);return Bo(l)}qu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Zn(t.pendingLanes);n!==0&&(ql(t,n|1),Se(t,G()),(b&6)===0&&(Tn=G()+500,It()))}break;case 13:Kt(function(){var r=at(e,1);if(r!==null){var o=he();Qe(r,e,1,o)}}),_s(e,1)}};Kl=function(e){if(e.tag===13){var t=at(e,134217728);if(t!==null){var n=he();Qe(t,e,134217728,n)}_s(e,134217728)}};Ku=function(e){if(e.tag===13){var t=zt(e),n=at(e,t);if(n!==null){var r=he();Qe(n,e,t,r)}_s(e,t)}};Zu=function(){return D};Gu=function(e,t){var n=D;try{return D=e,t()}finally{D=n}};ll=function(e,t,n){switch(t){case"input":if(Ji(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ho(r);if(!o)throw Error(w(90));zu(r),Ji(r,o)}}}break;case"textarea":Pu(e,n);break;case"select":t=n.value,t!=null&&gn(e,!!n.multiple,t,!1)}};Du=xs;$u=Kt;var jm={usingClientEntryPoint:!1,Events:[Nr,un,Ho,bu,Au,xs]},Hn={findFiberByHostInstance:Ft,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Um={bundleType:Hn.bundleType,version:Hn.version,rendererPackageName:Hn.rendererPackageName,rendererConfig:Hn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ct.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Bu(e),e===null?null:e.stateNode},findFiberByHostInstance:Hn.findFiberByHostInstance||Fm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Qn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Qn.isDisabled&&Qn.supportsFiber))try{jo=Qn.inject(Um),Xe=Qn}catch{}var Qn;Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jm;Re.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ts(t))throw Error(w(200));return Om(e,t,null,n)};Re.createRoot=function(e,t){if(!Ts(e))throw Error(w(299));var n=!1,r="",o=yd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ns(e,1,!1,null,null,n,!1,r,o),e[st]=t.current,mr(e.nodeType===8?e.parentNode:e),new zs(t)};Re.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=Bu(t),e=e===null?null:e.stateNode,e};Re.flushSync=function(e){return Kt(e)};Re.hydrate=function(e,t,n){if(!ei(t))throw Error(w(200));return ti(null,e,t,!0,n)};Re.hydrateRoot=function(e,t,n){if(!Ts(e))throw Error(w(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=yd;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=vd(t,null,e,1,n??null,o,!1,i,l),e[st]=t.current,mr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Jo(t)};Re.render=function(e,t,n){if(!ei(t))throw Error(w(200));return ti(null,e,t,!1,n)};Re.unmountComponentAtNode=function(e){if(!ei(e))throw Error(w(40));return e._reactRootContainer?(Kt(function(){ti(null,null,e,!1,function(){e._reactRootContainer=null,e[st]=null})}),!0):!1};Re.unstable_batchedUpdates=xs;Re.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ei(n))throw Error(w(200));if(e==null||e._reactInternals===void 0)throw Error(w(38));return ti(e,t,n,!1,r)};Re.version="18.3.1-next-f1338f8080-20240426"});var Sd=et((Qh,xd)=>{"use strict";function wd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wd)}catch(e){console.error(e)}}wd(),xd.exports=kd()});var Cd=et(Ps=>{"use strict";var Ed=Sd();Ps.createRoot=Ed.createRoot,Ps.hydrateRoot=Ed.hydrateRoot;var qh});var _d=et(ni=>{"use strict";var Wm=Ne(),Vm=Symbol.for("react.element"),Hm=Symbol.for("react.fragment"),Qm=Object.prototype.hasOwnProperty,qm=Wm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Km={key:!0,ref:!0,__self:!0,__source:!0};function Nd(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Qm.call(t,r)&&!Km.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Vm,type:e,key:i,ref:l,props:o,_owner:qm.current}}ni.Fragment=Hm;ni.jsx=Nd;ni.jsxs=Nd});var U=et((Yh,zd)=>{"use strict";zd.exports=_d()});var hp=I(Cd(),1);var Jt=I(Ne(),1);var oe=I(Ne(),1);var Ee=typeof acquireVsCodeApi=="function"?acquireVsCodeApi():{postMessage:e=>{}};var Rd=I(U(),1),Zm={provider:"anthropic",model:"claude-3-5-sonnet-20241022",autonomyMode:"balanced",hasAnyApiKey:!1,hasProviderApiKey:!1},Gm={messages:[],sessions:[],currentSessionId:"default",isLoading:!1,streamingBuffer:"",toolStreamingBuffer:"",activeToolName:"",pendingApproval:null,config:Zm,availableModels:[],stage:"plan",stageSummary:"Ready to plan",stageHint:"Describe the goal, constraints, or desired outcome to begin.",stageActions:["Define scope","List constraints","Confirm success criteria"],missionBrief:"Set a mission brief to guide the session.",sequenceNumber:0},Rs={plan:{label:"Planning",hint:"Describe the goal, constraints, or desired outcome to begin.",actions:["Define scope","List constraints","Confirm success criteria"]},execute:{label:"Executing",hint:"I\u2019m running tasks. You can add clarifications or stop if needed.",actions:["Approve tools","Provide clarifications","Pause/stop run"]},review:{label:"Reviewing",hint:"Check results, ask for tweaks, or request a summary.",actions:["Request summary","Ask for refinements","Validate outputs"]}};function Ym(e,t){let n=e.toLowerCase();return n.includes("plan")||n.includes("approach")||n.includes("strategy")?"plan":n.includes("implement")||n.includes("execute")||n.includes("running")||n.includes("tool")?"execute":n.includes("review")||n.includes("verify")||n.includes("final")?"review":t}function Rn(e,t,n){let r=Rs[t];return{...e,stage:t,stageSummary:n||r.label,stageHint:r.hint,stageActions:r.actions}}var Td=(0,oe.createContext)(void 0);function Ls(e,t){return{id:`msg_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,role:e,content:t,timestamp:Date.now()}}function Pd({children:e}){let[t,n]=(0,oe.useState)(Gm),r=(0,oe.useRef)(t),o=(0,oe.useRef)(0);(0,oe.useEffect)(()=>{r.current=t},[t]);let i=(0,oe.useCallback)((u,f)=>{n(p=>({...p,messages:[...p.messages,Ls(u,f)]}))},[]);(0,oe.useEffect)(()=>{let u=f=>{let p=f.data;if(p?.sequenceNumber!==void 0){if(p.sequenceNumber<o.current){console.log(`[Webview] Ignoring stale '${p.type}' update: ${p.sequenceNumber} < ${o.current}`);return}o.current=p.sequenceNumber}switch(p?.type){case"init_state":{let c=p.state?.currentSessionId||"default",g=c!==r.current.currentSessionId;n(y=>({...y,messages:Array.isArray(p.state?.messages)?p.state.messages:[],config:p.state?.config||y.config,sessions:Array.isArray(p.state?.sessions)?p.state.sessions:y.sessions,availableModels:Array.isArray(p.state?.availableModels)?p.state.availableModels:y.availableModels,currentSessionId:c,sequenceNumber:p.state?.sequenceNumber||y.sequenceNumber,streamingBuffer:g?"":y.streamingBuffer,toolStreamingBuffer:g?"":y.toolStreamingBuffer,activeToolName:g?"":y.activeToolName,pendingApproval:g?null:y.pendingApproval}));return}case"sessions":n(c=>({...c,sessions:Array.isArray(p.sessions)?p.sessions:[],currentSessionId:p.currentSessionId||c.currentSessionId,sequenceNumber:p.sequenceNumber||c.sequenceNumber}));return;case"status":n(c=>{let g=!!p.isLoading;if(!g&&(c.streamingBuffer||c.toolStreamingBuffer))return{...c,isLoading:!1,streamingBuffer:"",toolStreamingBuffer:"",activeToolName:"",messages:[...c.messages,Ls("assistant",c.streamingBuffer)],sequenceNumber:p.sequenceNumber||c.sequenceNumber};let y=g?"execute":c.stage,v=g?"Executing tasks":c.stageSummary;return Rn({...c,isLoading:g,sequenceNumber:p.sequenceNumber||c.sequenceNumber},y,v)});return;case"user_echo":i("user",String(p.text||"")),n(c=>({...Rn(c,"plan","Refining the plan"),sequenceNumber:p.sequenceNumber||c.sequenceNumber}));return;case"message_stream":n(c=>({...c,streamingBuffer:c.streamingBuffer+String(p.chunk||""),sequenceNumber:p.sequenceNumber||c.sequenceNumber}));return;case"assistant_response":n(c=>{if(c.streamingBuffer)return c;let g=String(p.text||""),y=Ym(g,c.stage);return Rn({...c,messages:[...c.messages,Ls("assistant",g)],sequenceNumber:p.sequenceNumber||c.sequenceNumber},y,Rs[y].label)});return;case"runtime_event":{let c=p.event;if(c?.type==="run_error"){i("system",`Error: ${c.message||"Unknown error"}`);return}if(c?.type==="reasoning"){n(g=>({...g,stageSummary:c.text||g.stageSummary,sequenceNumber:p.sequenceNumber||g.sequenceNumber})),(c.text?.includes("Decree")||c.text?.includes("VOW")||c.text?.includes("ZENITH"))&&i("system",c.text);return}return}case"tool_event":i("system",`Tool: ${p.tool?.name||"unknown"}`),n(c=>({...Rn(c,"execute",`Running ${p.tool?.name||"tool"}`),sequenceNumber:p.sequenceNumber||c.sequenceNumber}));return;case"approval_request":n(c=>({...c,pendingApproval:p.request||null,sequenceNumber:p.sequenceNumber||c.sequenceNumber}));return;case"tool_delta":n(c=>({...c,toolStreamingBuffer:c.toolStreamingBuffer+String(p.delta?.inputDelta||""),activeToolName:String(p.delta?.name||c.activeToolName||"tool"),sequenceNumber:p.sequenceNumber||c.sequenceNumber}));return;case"models":n(c=>({...c,availableModels:Array.isArray(p.models)?p.models.map(g=>String(g?.id||g?.name||g)).filter(Boolean):c.availableModels,sequenceNumber:p.sequenceNumber||c.sequenceNumber}));return;case"config":n(c=>({...c,config:p.config||c.config,sequenceNumber:p.sequenceNumber||c.sequenceNumber}));return;case"error":i("system",String(p.message||"Unknown error")),n(c=>({...Rn(c,"review","Review needed"),sequenceNumber:p.sequenceNumber||c.sequenceNumber}));return;default:return}};return window.addEventListener("message",u),Ee.postMessage({type:"ready"}),()=>{window.removeEventListener("message",u)}},[i]);let l=(0,oe.useCallback)(u=>{let f=r.current.pendingApproval;f&&(Ee.postMessage({type:"approval_response",id:f.id,approved:u}),n(p=>({...p,pendingApproval:null})))},[]),s=(0,oe.useMemo)(()=>({sendMessage:u=>Ee.postMessage({type:"send_message",text:u}),createSession:()=>Ee.postMessage({type:"create_session"}),refreshSessions:()=>Ee.postMessage({type:"list_sessions"}),loadSession:u=>Ee.postMessage({type:"load_session",id:u}),clearSession:()=>Ee.postMessage({type:"clear_session"}),stopGeneration:()=>Ee.postMessage({type:"stop_generation"}),approveTool:l,getModels:()=>Ee.postMessage({type:"get_models"}),setProvider:u=>Ee.postMessage({type:"set_provider",provider:u}),setModel:u=>Ee.postMessage({type:"set_model",model:u}),setApiKey:(u,f)=>Ee.postMessage({type:"set_api_key",provider:u,apiKey:f}),setAutonomyMode:u=>Ee.postMessage({type:"set_autonomy_mode",mode:u}),setStage:u=>n(f=>Rn(f,u,Rs[u].label)),setMissionBrief:u=>n(f=>({...f,missionBrief:u.trim()||r.current.missionBrief}))}),[l]),a=(0,oe.useMemo)(()=>({state:t,actions:s}),[t,s]);return(0,Rd.jsx)(Td.Provider,{value:a,children:e})}function Ld(){let e=(0,oe.useContext)(Td);if(!e)throw new Error("useWebviewState must be used within WebviewStateProvider");return e}var Id=I(U(),1);function Md({children:e}){return(0,Id.jsx)(Pd,{children:e})}var bd=I(Ne(),1),te=I(U(),1);function Ad({pendingApproval:e,onApprove:t}){return(0,bd.useEffect)(()=>{if(!e)return;let n=r=>{r.key==="Enter"&&(r.preventDefault(),t(!0)),r.key==="Escape"&&(r.preventDefault(),t(!1))};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t,e]),e?(0,te.jsx)("div",{className:"approval-modal",role:"dialog","aria-modal":"true",children:(0,te.jsxs)("div",{className:"approval-card",children:[(0,te.jsx)("div",{className:"approval-header",children:"Tool Approval Required"}),(0,te.jsx)("div",{className:"approval-tool-name",children:e.toolName}),e.diff?(0,te.jsxs)("div",{className:"approval-diff",children:[(0,te.jsx)("div",{className:"approval-diff-title",children:"Diff Preview"}),(0,te.jsxs)("div",{className:"approval-diff-grid",children:[(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{className:"approval-diff-label",children:"Before"}),(0,te.jsx)("pre",{children:e.diff.old})]}),(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{className:"approval-diff-label",children:"After"}),(0,te.jsx)("pre",{children:e.diff.new})]})]})]}):(0,te.jsx)("pre",{className:"approval-input",children:typeof e.toolInput=="string"?e.toolInput:JSON.stringify(e.toolInput,null,2)}),(0,te.jsxs)("div",{className:"approval-actions",children:[(0,te.jsx)("button",{onClick:()=>t(!0),children:"Approve"}),(0,te.jsx)("button",{className:"secondary",onClick:()=>t(!1),children:"Deny"})]})]})}):null}var ui=I(Ne(),1);function bs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xt=bs();function jd(e){Xt=e}var Ud=/[&<>"']/,Xm=new RegExp(Ud.source,"g"),Wd=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Jm=new RegExp(Wd.source,"g"),eh={"&":"&","<":"<",">":">",'"':""","'":"'"},Dd=e=>eh[e];function Me(e,t){if(t){if(Ud.test(e))return e.replace(Xm,Dd)}else if(Wd.test(e))return e.replace(Jm,Dd);return e}var th=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function nh(e){return e.replace(th,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var rh=/(^|[^\[])\^/g;function $(e,t){let n=typeof e=="string"?e:e.source;t=t||"";let r={replace:(o,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(rh,"$1"),n=n.replace(o,l),r},getRegex:()=>new RegExp(n,t)};return r}function $d(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}var Tr={exec:()=>null};function Od(e,t){let n=e.replace(/\|/g,(i,l,s)=>{let a=!1,u=l;for(;--u>=0&&s[u]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/),o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(/\\\|/g,"|");return r}function ri(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r;){let i=e.charAt(r-o-1);if(i===t&&!n)o++;else if(i!==t&&n)o++;else break}return e.slice(0,r-o)}function oh(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Fd(e,t,n,r){let o=t.href,i=t.title?Me(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;let s={type:"link",raw:n,href:o,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}return{type:"image",raw:n,href:o,title:i,text:Me(l)}}function ih(e,t){let n=e.match(/^(\s+)(?:```)/);if(n===null)return t;let r=n[1];return t.split(`
|
|
9
|
-
`).map(o=>{let i=o.match(/^\s+/);if(i===null)return o;let[l]=i;return l.length>=r.length?o.slice(r.length):o}).join(`
|
|
10
|
-
`)}var In=class{options;rules;lexer;constructor(t){this.options=t||Xt}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:ri(r,`
|
|
11
|
-
`)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let r=n[0],o=ih(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){let o=ri(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let r=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
12
|
-
$1`);r=ri(r.replace(/^ *>[ \t]?/gm,""),`
|
|
13
|
-
`);let o=this.lexer.state.top;this.lexer.state.top=!0;let i=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim(),o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");let l=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),s="",a="",u=!1;for(;t;){let f=!1;if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;s=n[0],t=t.substring(s.length);let p=n[2].split(`
|
|
14
|
-
`,1)[0].replace(/^\t+/,m=>" ".repeat(3*m.length)),c=t.split(`
|
|
15
|
-
`,1)[0],g=0;this.options.pedantic?(g=2,a=p.trimStart()):(g=n[2].search(/[^ ]/),g=g>4?1:g,a=p.slice(g),g+=n[1].length);let y=!1;if(!p&&/^ *$/.test(c)&&(s+=c+`
|
|
16
|
-
`,t=t.substring(c.length+1),f=!0),!f){let m=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),d=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),h=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),k=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){let x=t.split(`
|
|
17
|
-
`,1)[0];if(c=x,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),h.test(c)||k.test(c)||m.test(c)||d.test(t))break;if(c.search(/[^ ]/)>=g||!c.trim())a+=`
|
|
18
|
-
`+c.slice(g);else{if(y||p.search(/[^ ]/)>=4||h.test(p)||k.test(p)||d.test(p))break;a+=`
|
|
19
|
-
`+c}!y&&!c.trim()&&(y=!0),s+=x+`
|
|
20
|
-
`,t=t.substring(x.length+1),p=c.slice(g)}}i.loose||(u?i.loose=!0:/\n *\n *$/.test(s)&&(u=!0));let v=null,L;this.options.gfm&&(v=/^\[[ xX]\] /.exec(a),v&&(L=v[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:s,task:!!v,checked:L,loose:!1,text:a,tokens:[]}),i.raw+=s}i.items[i.items.length-1].raw=s.trimEnd(),i.items[i.items.length-1].text=a.trimEnd(),i.raw=i.raw.trimEnd();for(let f=0;f<i.items.length;f++)if(this.lexer.state.top=!1,i.items[f].tokens=this.lexer.blockTokens(i.items[f].text,[]),!i.loose){let p=i.items[f].tokens.filter(g=>g.type==="space"),c=p.length>0&&p.some(g=>/\n.*\n/.test(g.raw));i.loose=c}if(i.loose)for(let f=0;f<i.items.length;f++)i.items[f].loose=!0;return i}}html(t){let n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){let n=this.rules.block.def.exec(t);if(n){let r=n[1].toLowerCase().replace(/\s+/g," "),o=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(t){let n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;let r=Od(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),i=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
21
|
-
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(let s of o)/^ *-+: *$/.test(s)?l.align.push("right"):/^ *:-+: *$/.test(s)?l.align.push("center"):/^ *:-+ *$/.test(s)?l.align.push("left"):l.align.push(null);for(let s of r)l.header.push({text:s,tokens:this.lexer.inline(s)});for(let s of i)l.rows.push(Od(s,l.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return l}}lheading(t){let n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){let n=this.rules.block.paragraph.exec(t);if(n){let r=n[1].charAt(n[1].length-1)===`
|
|
22
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Me(n[1])}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;let l=ri(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{let l=oh(n[2],"()");if(l>-1){let a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){let l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],i=l[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(r)?o=o.slice(1):o=o.slice(1,-1)),Fd(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let o=(r[2]||r[1]).replace(/\s+/g," "),i=n[o.toLowerCase()];if(!i){let l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Fd(r,i,r[0],this.lexer)}}emStrong(t,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!r||this.rules.inline.punctuation.exec(r)){let l=[...o[0]].length-1,s,a,u=l,f=0,p=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,n=n.slice(-1*t.length+l);(o=p.exec(n))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(a=[...s].length,o[3]||o[4]){u+=a;continue}else if((o[5]||o[6])&&l%3&&!((l+a)%3)){f+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+f);let c=[...o[0]][0].length,g=t.slice(0,l+o.index+c+a);if(Math.min(l,a)%2){let v=g.slice(1,-1);return{type:"em",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}let y=g.slice(2,-2);return{type:"strong",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," "),o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=Me(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){let n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){let n=this.rules.inline.autolink.exec(t);if(n){let r,o;return n[2]==="@"?(r=Me(n[1]),o="mailto:"+r):(r=Me(n[1]),o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,o;if(n[2]==="@")r=Me(n[0]),o="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=Me(n[0]),n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Me(n[0]),{type:"text",raw:n[0],text:r}}}},lh=/^(?: *(?:\n|$))+/,sh=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,ah=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Lr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,uh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vd=/(?:[*+-]|\d{1,9}[.)])/,Hd=$(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Vd).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),As=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ch=/^[^\n]+/,Ds=/(?!\s*\])(?:\\.|[^\[\]\\])+/,dh=$(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Ds).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ph=$(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Vd).getRegex(),li="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$s=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,fh=$("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",$s).replace("tag",li).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qd=$(As).replace("hr",Lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",li).getRegex(),mh=$(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Qd).getRegex(),Os={blockquote:mh,code:sh,def:dh,fences:ah,heading:uh,hr:Lr,html:fh,lheading:Hd,list:ph,newline:lh,paragraph:Qd,table:Tr,text:ch},Bd=$("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",li).getRegex(),hh={...Os,table:Bd,paragraph:$(As).replace("hr",Lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",li).getRegex()},gh={...Os,html:$(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$s).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Tr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$(As).replace("hr",Lr).replace("heading",` *#{1,6} *[^
|
|
23
|
-
]`).replace("lheading",Hd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},qd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,vh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Kd=/^( {2,}|\\)\n(?!\s*$)/,yh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Rr="\\p{P}\\p{S}",kh=$(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Rr).getRegex(),wh=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,xh=$(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Rr).getRegex(),Sh=$("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Rr).getRegex(),Eh=$("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Rr).getRegex(),Ch=$(/\\([punct])/,"gu").replace(/punct/g,Rr).getRegex(),Nh=$(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_h=$($s).replace("(?:-->|$)","-->").getRegex(),zh=$("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_h).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ii=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Th=$(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ii).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zd=$(/^!?\[(label)\]\[(ref)\]/).replace("label",ii).replace("ref",Ds).getRegex(),Gd=$(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ds).getRegex(),Ph=$("reflink|nolink(?!\\()","g").replace("reflink",Zd).replace("nolink",Gd).getRegex(),Fs={_backpedal:Tr,anyPunctuation:Ch,autolink:Nh,blockSkip:wh,br:Kd,code:vh,del:Tr,emStrongLDelim:xh,emStrongRDelimAst:Sh,emStrongRDelimUnd:Eh,escape:qd,link:Th,nolink:Gd,punctuation:kh,reflink:Zd,reflinkSearch:Ph,tag:zh,text:yh,url:Tr},Lh={...Fs,link:$(/^!?\[(label)\]\((.*?)\)/).replace("label",ii).getRegex(),reflink:$(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ii).getRegex()},Ms={...Fs,escape:$(qd).replace("])","~|])").getRegex(),url:$(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Rh={...Ms,br:$(Kd).replace("{2,}","*").getRegex(),text:$(Ms.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},oi={normal:Os,gfm:hh,pedantic:gh},zr={normal:Fs,gfm:Ms,breaks:Rh,pedantic:Lh},dt=class e{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Xt,this.options.tokenizer=this.options.tokenizer||new In,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={block:oi.normal,inline:zr.normal};this.options.pedantic?(n.block=oi.pedantic,n.inline=zr.pedantic):this.options.gfm&&(n.block=oi.gfm,this.options.breaks?n.inline=zr.breaks:n.inline=zr.gfm),this.tokenizer.rules=n}static get rules(){return{block:oi,inline:zr}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
24
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(s,a,u)=>a+" ".repeat(u.length));let r,o,i,l;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(r=s.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=`
|
|
25
|
-
`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
26
|
-
`+r.raw,o.text+=`
|
|
27
|
-
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
28
|
-
`+r.raw,o.text+=`
|
|
29
|
-
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startBlock){let s=1/0,a=t.slice(1),u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},a),typeof u=="number"&&u>=0&&(s=Math.min(s,u))}),s<1/0&&s>=0&&(i=t.substring(0,s+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){o=n[n.length-1],l&&o.type==="paragraph"?(o.raw+=`
|
|
30
|
-
`+r.raw,o.text+=`
|
|
31
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(r),l=i.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),o=n[n.length-1],o&&o.type==="text"?(o.raw+=`
|
|
32
|
-
`+r.raw,o.text+=`
|
|
33
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(r);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,o,i,l=t,s,a,u;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)f.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,s.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(r=f.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,l,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0,p=t.slice(1),c;this.options.extensions.startInline.forEach(g=>{c=g.call({lexer:this},p),typeof c=="number"&&c>=0&&(f=Math.min(f,c))}),f<1/0&&f>=0&&(i=t.substring(0,f+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),a=!0,o=n[n.length-1],o&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}},bn=class{options;constructor(t){this.options=t||Xt}code(t,n,r){let o=(n||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
|
|
34
|
-
`,o?'<pre><code class="language-'+Me(o)+'">'+(r?t:Me(t,!0))+`</code></pre>
|
|
35
|
-
`:"<pre><code>"+(r?t:Me(t,!0))+`</code></pre>
|
|
36
|
-
`}blockquote(t){return`<blockquote>
|
|
37
|
-
${t}</blockquote>
|
|
38
|
-
`}html(t,n){return t}heading(t,n,r){return`<h${n}>${t}</h${n}>
|
|
39
|
-
`}hr(){return`<hr>
|
|
40
|
-
`}list(t,n,r){let o=n?"ol":"ul",i=n&&r!==1?' start="'+r+'"':"";return"<"+o+i+`>
|
|
41
|
-
`+t+"</"+o+`>
|
|
42
|
-
`}listitem(t,n,r){return`<li>${t}</li>
|
|
43
|
-
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
|
44
|
-
`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
45
|
-
<thead>
|
|
46
|
-
`+t+`</thead>
|
|
47
|
-
`+n+`</table>
|
|
48
|
-
`}tablerow(t){return`<tr>
|
|
49
|
-
${t}</tr>
|
|
50
|
-
`}tablecell(t,n){let r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+`</${r}>
|
|
51
|
-
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,r){let o=$d(t);if(o===null)return r;t=o;let i='<a href="'+t+'"';return n&&(i+=' title="'+n+'"'),i+=">"+r+"</a>",i}image(t,n,r){let o=$d(t);if(o===null)return r;t=o;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${n}"`),i+=">",i}text(t){return t}},Pr=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,r){return""+r}image(t,n,r){return""+r}br(){return""}},pt=class e{options;renderer;textRenderer;constructor(t){this.options=t||Xt,this.options.renderer=this.options.renderer||new bn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Pr}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(t,n=!0){let r="";for(let o=0;o<t.length;o++){let i=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let l=i,s=this.options.extensions.renderers[l.type].call({parser:this},l);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(l.type)){r+=s||"";continue}}switch(i.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{let l=i;r+=this.renderer.heading(this.parseInline(l.tokens),l.depth,nh(this.parseInline(l.tokens,this.textRenderer)));continue}case"code":{let l=i;r+=this.renderer.code(l.text,l.lang,!!l.escaped);continue}case"table":{let l=i,s="",a="";for(let f=0;f<l.header.length;f++)a+=this.renderer.tablecell(this.parseInline(l.header[f].tokens),{header:!0,align:l.align[f]});s+=this.renderer.tablerow(a);let u="";for(let f=0;f<l.rows.length;f++){let p=l.rows[f];a="";for(let c=0;c<p.length;c++)a+=this.renderer.tablecell(this.parseInline(p[c].tokens),{header:!1,align:l.align[c]});u+=this.renderer.tablerow(a)}r+=this.renderer.table(s,u);continue}case"blockquote":{let l=i,s=this.parse(l.tokens);r+=this.renderer.blockquote(s);continue}case"list":{let l=i,s=l.ordered,a=l.start,u=l.loose,f="";for(let p=0;p<l.items.length;p++){let c=l.items[p],g=c.checked,y=c.task,v="";if(c.task){let L=this.renderer.checkbox(!!g);u?c.tokens.length>0&&c.tokens[0].type==="paragraph"?(c.tokens[0].text=L+" "+c.tokens[0].text,c.tokens[0].tokens&&c.tokens[0].tokens.length>0&&c.tokens[0].tokens[0].type==="text"&&(c.tokens[0].tokens[0].text=L+" "+c.tokens[0].tokens[0].text)):c.tokens.unshift({type:"text",text:L+" "}):v+=L+" "}v+=this.parse(c.tokens,u),f+=this.renderer.listitem(v,y,!!g)}r+=this.renderer.list(f,s,a);continue}case"html":{let l=i;r+=this.renderer.html(l.text,l.block);continue}case"paragraph":{let l=i;r+=this.renderer.paragraph(this.parseInline(l.tokens));continue}case"text":{let l=i,s=l.tokens?this.parseInline(l.tokens):l.text;for(;o+1<t.length&&t[o+1].type==="text";)l=t[++o],s+=`
|
|
52
|
-
`+(l.tokens?this.parseInline(l.tokens):l.text);r+=n?this.renderer.paragraph(s):s;continue}default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let o=0;o<t.length;o++){let i=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=l||"";continue}}switch(i.type){case"escape":{let l=i;r+=n.text(l.text);break}case"html":{let l=i;r+=n.html(l.text);break}case"link":{let l=i;r+=n.link(l.href,l.title,this.parseInline(l.tokens,n));break}case"image":{let l=i;r+=n.image(l.href,l.title,l.text);break}case"strong":{let l=i;r+=n.strong(this.parseInline(l.tokens,n));break}case"em":{let l=i;r+=n.em(this.parseInline(l.tokens,n));break}case"codespan":{let l=i;r+=n.codespan(l.text);break}case"br":{r+=n.br();break}case"del":{let l=i;r+=n.del(this.parseInline(l.tokens,n));break}case"text":{let l=i;r+=n.text(l.text);break}default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},Mn=class{options;constructor(t){this.options=t||Xt}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}},Is=class{defaults=bs();options=this.setOptions;parse=this.#e(dt.lex,pt.parse);parseInline=this.#e(dt.lexInline,pt.parseInline);Parser=pt;Renderer=bn;TextRenderer=Pr;Lexer=dt;Tokenizer=In;Hooks=Mn;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(let o of t)switch(r=r.concat(n.call(this,o)),o.type){case"table":{let i=o;for(let l of i.header)r=r.concat(this.walkTokens(l.tokens,n));for(let l of i.rows)for(let s of l)r=r.concat(this.walkTokens(s.tokens,n));break}case"list":{let i=o;r=r.concat(this.walkTokens(i.items,n));break}default:{let i=o;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(l=>{let s=i[l].flat(1/0);r=r.concat(this.walkTokens(s,n))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,n)))}}return r}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let l=n.renderers[i.name];l?n.renderers[i.name]=function(...s){let a=i.renderer.apply(this,s);return a===!1&&(a=l.apply(this,s)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=n[i.level];l?l.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){let i=this.defaults.renderer||new bn(this.defaults);for(let l in r.renderer){if(!(l in i))throw new Error(`renderer '${l}' does not exist`);if(l==="options")continue;let s=l,a=r.renderer[s],u=i[s];i[s]=(...f)=>{let p=a.apply(i,f);return p===!1&&(p=u.apply(i,f)),p||""}}o.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new In(this.defaults);for(let l in r.tokenizer){if(!(l in i))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let s=l,a=r.tokenizer[s],u=i[s];i[s]=(...f)=>{let p=a.apply(i,f);return p===!1&&(p=u.apply(i,f)),p}}o.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new Mn;for(let l in r.hooks){if(!(l in i))throw new Error(`hook '${l}' does not exist`);if(l==="options")continue;let s=l,a=r.hooks[s],u=i[s];Mn.passThroughHooks.has(l)?i[s]=f=>{if(this.defaults.async)return Promise.resolve(a.call(i,f)).then(c=>u.call(i,c));let p=a.call(i,f);return u.call(i,p)}:i[s]=(...f)=>{let p=a.apply(i,f);return p===!1&&(p=u.apply(i,f)),p}}o.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,l=r.walkTokens;o.walkTokens=function(s){let a=[];return a.push(l.call(this,s)),i&&(a=a.concat(i.call(this,s))),a}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return dt.lex(t,n??this.defaults)}parser(t,n){return pt.parse(t,n??this.defaults)}#e(t,n){return(r,o)=>{let i={...o},l={...this.defaults,...i};this.defaults.async===!0&&i.async===!1&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);let s=this.#t(!!l.silent,!!l.async);if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(a=>t(a,l)).then(a=>l.hooks?l.hooks.processAllTokens(a):a).then(a=>l.walkTokens?Promise.all(this.walkTokens(a,l.walkTokens)).then(()=>a):a).then(a=>n(a,l)).then(a=>l.hooks?l.hooks.postprocess(a):a).catch(s);try{l.hooks&&(r=l.hooks.preprocess(r));let a=t(r,l);l.hooks&&(a=l.hooks.processAllTokens(a)),l.walkTokens&&this.walkTokens(a,l.walkTokens);let u=n(a,l);return l.hooks&&(u=l.hooks.postprocess(u)),u}catch(a){return s(a)}}}#t(t,n){return r=>{if(r.message+=`
|
|
53
|
-
Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+Me(r.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}}},Yt=new Is;function A(e,t){return Yt.parse(e,t)}A.options=A.setOptions=function(e){return Yt.setOptions(e),A.defaults=Yt.defaults,jd(A.defaults),A};A.getDefaults=bs;A.defaults=Xt;A.use=function(...e){return Yt.use(...e),A.defaults=Yt.defaults,jd(A.defaults),A};A.walkTokens=function(e,t){return Yt.walkTokens(e,t)};A.parseInline=Yt.parseInline;A.Parser=pt;A.parser=pt.parse;A.Renderer=bn;A.TextRenderer=Pr;A.Lexer=dt;A.lexer=dt.lex;A.Tokenizer=In;A.Hooks=Mn;A.parse=A;var rg=A.options,og=A.setOptions,ig=A.use,lg=A.walkTokens,sg=A.parseInline;var ag=pt.parse,ug=dt.lex;var _=I(U(),1),Mh=`
|
|
54
|
-
@keyframes breathe {
|
|
55
|
-
0%, 100% { transform: scale(1); opacity: 0.8; }
|
|
56
|
-
50% { transform: scale(1.05); opacity: 1; }
|
|
57
|
-
}
|
|
58
|
-
`,Yd=({size:e=24,...t})=>(0,_.jsxs)("svg",{width:e,height:e,viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{animation:"breathe 4s ease-in-out infinite"},...t,children:[(0,_.jsx)("style",{children:Mh}),(0,_.jsx)("path",{d:"M512 150C300 150 150 320 150 512V700C150 800 230 880 330 880H694C794 880 874 800 874 700V512C874 320 724 150 512 150Z",fill:"currentColor"}),(0,_.jsx)("path",{d:"M300 250C250 300 220 400 220 512",stroke:"var(--surface-0)",strokeWidth:"20",strokeLinecap:"round",opacity:"0.3"}),(0,_.jsx)("circle",{cx:"420",cy:"550",r:"35",fill:"var(--accent)"}),(0,_.jsx)("circle",{cx:"604",cy:"550",r:"35",fill:"var(--accent)"}),(0,_.jsx)("path",{d:"M680 280C660 260 630 250 610 270C590 290 600 320 620 340C640 360 670 370 690 350C710 330 700 300 680 280Z",fill:"#FFB7C5"}),(0,_.jsx)("path",{d:"M750 400L760 420L780 430L760 440L750 460L740 440L720 430L740 420Z",fill:"#FFD700",children:(0,_.jsx)("animate",{attributeName:"opacity",values:"0.3;1;0.3",dur:"2s",repeatCount:"indefinite"})})]}),Xd=({size:e=24,...t})=>(0,_.jsxs)("svg",{width:e,height:e,viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,_.jsxs)("defs",{children:[(0,_.jsxs)("linearGradient",{id:"sakura-grad-icon",x1:"200",y1:"200",x2:"800",y2:"800",gradientUnits:"userSpaceOnUse",children:[(0,_.jsx)("stop",{offset:"0%",stopColor:"#FFB7C5"}),(0,_.jsx)("stop",{offset:"100%",stopColor:"#FF69B4"})]}),(0,_.jsxs)("linearGradient",{id:"neural-grad-icon",x1:"200",y1:"200",x2:"800",y2:"800",gradientUnits:"userSpaceOnUse",children:[(0,_.jsx)("stop",{offset:"0%",stopColor:"#00FFFF"}),(0,_.jsx)("stop",{offset:"100%",stopColor:"#00CED1"})]})]}),(0,_.jsx)("path",{d:"M512 512C512 512 350 350 250 400C150 450 180 600 250 700C320 800 512 512 512 512Z",fill:"url(#sakura-grad-icon)",opacity:"0.8"}),(0,_.jsx)("path",{d:"M512 512C512 512 400 200 550 150C700 100 800 300 700 450C600 600 512 512 512 512Z",fill:"url(#sakura-grad-icon)",opacity:"0.6"}),(0,_.jsx)("circle",{cx:"650",cy:"512",r:"40",fill:"url(#neural-grad-icon)"}),(0,_.jsx)("circle",{cx:"750",cy:"400",r:"30",fill:"url(#neural-grad-icon)"}),(0,_.jsx)("circle",{cx:"750",cy:"624",r:"30",fill:"url(#neural-grad-icon)"}),(0,_.jsx)("circle",{cx:"850",cy:"512",r:"25",fill:"url(#neural-grad-icon)"}),(0,_.jsx)("path",{d:"M512 512L650 512M650 512L750 400M650 512L750 624M750 400L850 512M750 624L850 512",stroke:"url(#neural-grad-icon)",strokeWidth:"12",strokeLinecap:"round"}),(0,_.jsx)("circle",{cx:"512",cy:"512",r:"60",fill:"white"})]}),Jd=({size:e=16,...t})=>(0,_.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,_.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,_.jsx)("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),ep=({size:e=16,...t})=>(0,_.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,_.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,_.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});var tp=({size:e=16,...t})=>(0,_.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,_.jsx)("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),(0,_.jsx)("circle",{cx:"12",cy:"7",r:"4"})]}),Bs=({size:e=16,...t})=>(0,_.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,_.jsx)("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})}),np=({size:e=16,...t})=>(0,_.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,_.jsx)("circle",{cx:"4",cy:"12",r:"2",children:(0,_.jsx)("animate",{attributeName:"opacity",values:"0.2;1;0.2",dur:"1s",repeatCount:"indefinite"})}),(0,_.jsx)("circle",{cx:"12",cy:"12",r:"2",children:(0,_.jsx)("animate",{attributeName:"opacity",values:"0.2;1;0.2",dur:"1s",begin:"0.2s",repeatCount:"indefinite"})}),(0,_.jsx)("circle",{cx:"20",cy:"12",r:"2",children:(0,_.jsx)("animate",{attributeName:"opacity",values:"0.2;1;0.2",dur:"1s",begin:"0.4s",repeatCount:"indefinite"})})]});var js=({size:e=16,...t})=>(0,_.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,_.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),rp=({size:e=16,...t})=>(0,_.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,_.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,_.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),op=({size:e=16,...t})=>(0,_.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,_.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"22"}),(0,_.jsx)("path",{d:"M5 17h14v-2l-1.5-1.5V6a3.5 3.5 0 0 0-7 0v7.5L9 15v2z"})]});var si=I(Ne(),1),lp=I(U(),1);function ip(){let[e,t]=(0,si.useState)(0);return(0,si.useEffect)(()=>{let n=performance.now(),r,o=()=>{t((performance.now()-n)/1e3),r=requestAnimationFrame(o)};return r=requestAnimationFrame(o),()=>cancelAnimationFrame(r)},[]),(0,lp.jsxs)("span",{className:"thinking-timer",style:{fontFamily:"var(--vscode-editor-font-family, monospace)",fontSize:"0.9em",opacity:.7,marginLeft:"8px",fontVariantNumeric:"tabular-nums"},children:[e.toFixed(1),"s"]})}var ai=I(Ne(),1),Us=["Asking the LLM nicely to parse your terrible schema...","Downloading more agentic RAM from the dark web...","Bribing autonomous agents with virtual cookies...","Explaining SQL to the AI (it thinks JOIN is a cult)...","Reticulating cognitive splines with a rusty spoon...","Applying sovereign governance (begging the database to work)...","Waking up the Cortex nodes (they have a hangover)...","Synthesizing cognitive pathways (mashing keyboard)...","Pre-warming neural schemas with a slightly damp towel...","Aligning telemetry with your impending doom...","Teaching the AI what love is (it refused)...","Translating your code into something logically coherent...",'Frantically Googling "how to ORM in TypeScript"...',"Consulting the magic 8 ball for query optimization..."];function sp(e=3e3){let[t,n]=(0,ai.useState)(()=>Math.floor(Math.random()*Us.length));return(0,ai.useEffect)(()=>{let r=setInterval(()=>{n(o=>(o+1)%Us.length)},e);return()=>clearInterval(r)},[e]),Us[t]}var P=I(U(),1);function ap(e){let t=e.replace(/</g,"<").replace(/>/g,">");return A.parse(t)}function Ih(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function bh(e){return Ih(e).replace(/("[^"]*")\s*:/g,'<span class="tool-key">$1</span>:').replace(/:\s*("[^"]*")/g,': <span class="tool-string">$1</span>').replace(/\b(true|false|null)\b/g,'<span class="tool-literal">$1</span>').replace(/\b(-?\d+(?:\.\d+)?)\b/g,'<span class="tool-number">$1</span>')}function Ah(e){let t=e.split(`
|
|
59
|
-
`).find(n=>n.trim())||"Activity";return t.length>72?`${t.slice(0,72)}\u2026`:t}function Dh(e){let t=e.toLowerCase();return t.includes("plan")||t.includes("strategy")||t.includes("approach")?"Plan":t.includes("execute")||t.includes("implement")||t.includes("running")?"Execute":t.includes("review")||t.includes("verify")||t.includes("final")?"Review":null}function up(e){try{return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch{return""}}function cp({messages:e,streamingBuffer:t,toolStreamingBuffer:n,activeToolName:r,pendingApproval:o,onApprove:i,isLoading:l,stageHint:s,stageSummary:a}){console.log("[Webview] Render ChatPanel",{msgCount:e.length,isLoading:l});let u=(0,ui.useRef)(null),f=sp(3e3);return(0,ui.useEffect)(()=>{u.current&&(u.current.scrollTop=u.current.scrollHeight)},[e,t,o]),(0,P.jsxs)("section",{className:"feed",ref:u,children:[(()=>{let p=[],c=[],g=()=>{if(c.length===0)return;let v=[...c],L=v[v.length-1],m=Dh(L.content);p.push((0,P.jsxs)("div",{className:"activity-group stacked",children:[m&&(0,P.jsxs)("div",{className:"stage-separator",children:[(0,P.jsx)("span",{className:"stage-line","aria-hidden":"true"}),(0,P.jsxs)("span",{className:"stage-chip",children:[m," Stage"]}),(0,P.jsx)("span",{className:"stage-line","aria-hidden":"true"})]}),(0,P.jsxs)("details",{className:"activity-log stacked",children:[(0,P.jsxs)("summary",{children:[(0,P.jsxs)("span",{className:"activity-tag",children:[(0,P.jsx)(Bs,{size:12,style:{marginRight:"4px"}}),v.length>1?`${v.length} Activities`:"Activity"]}),(0,P.jsx)("span",{children:Ah(L.content)}),v.length>1&&(0,P.jsxs)("span",{className:"stack-count",children:["+",v.length-1," more"]})]}),(0,P.jsx)("div",{className:"activity-stack-body",children:v.map(d=>(0,P.jsxs)("div",{className:"stacked-item",children:[(0,P.jsx)("div",{className:"stacked-meta",children:up(d.timestamp)}),(0,P.jsx)("div",{className:"markdown",dangerouslySetInnerHTML:{__html:ap(d.content)}})]},d.id))})]})]},`stack-${L.id}`)),c=[]},y=[...e];return n?y.push({role:"assistant",type:"buffer",content:n,tool:r}):t&&y.push({role:"assistant",type:"buffer",content:t}),y.forEach((v,L)=>{if("role"in v&&v.role==="system"&&!("type"in v))c.push(v);else{g();let m=L>0?y[L-1]:null,d=m&&m.role===v.role&&(!("timestamp"in v)||!("timestamp"in m)||v.timestamp-m.timestamp<6e4),h=L===y.length-1||y[L+1].role!==v.role,k="type"in v&&v.type==="buffer",x=v.role==="user"?"You":"Marie";p.push((0,P.jsxs)("div",{className:`msg ${v.role} ${d?"is-grouped":""} ${h?"is-last":""} ${k?"is-streaming":""}`,style:{"--stagger":L%10},children:[!d&&(0,P.jsxs)("div",{className:"msg-meta sentinel",children:[(0,P.jsx)("span",{className:"sentinel-icon",children:v.role==="user"?(0,P.jsx)(tp,{size:18}):(0,P.jsx)(Yd,{size:18,className:k?"breathing":""})}),(0,P.jsx)("span",{className:"msg-time",children:k?"Processing...":"timestamp"in v?up(v.timestamp):""})]}),k&&"tool"in v?(0,P.jsxs)("div",{className:"tool-input-wrapper",children:[(0,P.jsxs)("div",{className:"tool-header",children:[(0,P.jsx)(Bs,{size:14,style:{marginRight:"6px"}}),v.tool||"Executing Tool"]}),(0,P.jsx)("pre",{className:"tool-stream",dangerouslySetInnerHTML:{__html:bh(v.content)}})]}):(0,P.jsx)("div",{className:"markdown",dangerouslySetInnerHTML:{__html:ap(v.content)}})]},"id"in v?v.id:`buffer-${L}`))}}),g(),p})(),o&&(0,P.jsx)("div",{className:"msg assistant tool-request is-last",children:(0,P.jsxs)("div",{className:"tool-card",children:[(0,P.jsx)("div",{className:"tool-header",children:"Tool Permission Required"}),(0,P.jsx)("div",{children:(0,P.jsx)("strong",{children:o.toolName})}),(0,P.jsx)("pre",{style:{fontSize:"11px",marginTop:"4px",opacity:.8},children:JSON.stringify(o.toolInput,null,2)}),(0,P.jsxs)("div",{className:"btn-group",children:[(0,P.jsx)("button",{onClick:()=>i(!0),children:"Approve"}),(0,P.jsx)("button",{className:"secondary",onClick:()=>i(!1),children:"Deny"})]})]})}),l&&!t&&!n&&(0,P.jsxs)("div",{className:"activity-inline holographic-scan",children:[(0,P.jsx)(np,{size:24,className:"premium-aura"}),(0,P.jsxs)("div",{className:"stack",style:{gap:"4px"},children:[(0,P.jsx)("span",{style:{fontWeight:600},children:s||f}),a&&(0,P.jsx)("span",{className:"muted",style:{fontSize:"0.85em"},children:a})]}),(0,P.jsx)(ip,{})]})]})}var bt=I(Ne(),1),ve=I(U(),1);function dp({isLoading:e,stage:t,stageHint:n,pendingApproval:r,onSend:o}){console.log("[Webview] Render Composer",{isLoading:e,stage:t});let[i,l]=(0,bt.useState)(""),[s,a]=(0,bt.useState)(!1),u=(0,bt.useRef)(null);(0,bt.useEffect)(()=>{let g=u.current;if(!g)return;g.style.height="auto";let y=Math.min(g.scrollHeight,220);g.style.height=`${Math.max(52,y)}px`},[i]),(0,bt.useEffect)(()=>{if(!e){Promise.resolve().then(()=>a(!1));return}let g=window.setTimeout(()=>a(!0),1200);return()=>window.clearTimeout(g)},[e]);let f=()=>{let g=i.trim();g&&(l(""),o(g))},p=r?"Approval required before I can proceed.":t==="plan"?"Share goals, constraints, or desired outcomes to shape the plan.":t==="execute"?"You can add clarifications while I work.":"Review the result and ask for tweaks if needed.",c=r?["Approve tool","Deny tool"]:t==="plan"?["Summarize goal","List constraints","Define success criteria"]:t==="execute"?["Pause run","Add clarification","Request status update"]:["Summarize outcome","Suggest refinements","Validate results"];return(0,ve.jsxs)("footer",{className:"composer-container",children:[(0,ve.jsxs)("div",{className:"composer-box",children:[(0,ve.jsx)("textarea",{ref:u,className:"textarea-minimal",value:i,onChange:g=>l(g.target.value),onKeyDown:g=>{if((g.metaKey||g.ctrlKey)&&g.key==="Enter"){g.preventDefault(),f();return}g.key==="Enter"&&g.shiftKey||g.key==="Enter"&&(g.preventDefault(),f())},placeholder:`Ask Marie\u2026 (${t} stage)`}),(0,ve.jsxs)("div",{className:"composer-actions",children:[(0,ve.jsx)("div",{className:"composer-status",children:s?(0,ve.jsx)("span",{className:"thinking",children:"Thinking\u2026"}):(0,ve.jsx)("span",{className:"muted",children:p})}),(0,ve.jsx)("button",{onClick:f,disabled:e,children:"Send"})]})]}),(0,ve.jsxs)("div",{className:"composer-hint",children:[(0,ve.jsx)("span",{className:"stage-badge",children:t.toUpperCase()}),(0,ve.jsx)("span",{children:n})]}),(0,ve.jsx)("div",{className:"composer-quick-actions",children:c.map(g=>(0,ve.jsx)("button",{type:"button",className:"composer-chip",onClick:()=>{if(r&&g.startsWith("Approve")){o("Approve the pending tool.");return}if(r&&g.startsWith("Deny")){o("Deny the pending tool.");return}o(g)},children:g},g))})]})}var X=I(Ne(),1);var T=I(U(),1);function pp({config:e,isLoading:t,availableModels:n,onProvider:r,onModel:o,onSetApiKey:i,onRefreshModels:l}){let[s,a]=(0,X.useState)(e.model),[u,f]=(0,X.useState)(e.provider),[p,c]=(0,X.useState)(!1),[g,y]=(0,X.useState)(""),[v,L]=(0,X.useState)(null),m=(0,X.useRef)(null),d=(0,X.useRef)(null),h=(0,X.useRef)(null),k=(0,X.useCallback)(()=>{a(e.model),f(e.provider),y("")},[e.model,e.provider]),x=(z,R="success")=>{L({message:z,tone:R}),d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{L(null),d.current=null},2200)},C=(0,X.useMemo)(()=>{let z=[...n,e.model];return Array.from(new Set(z.filter(Boolean)))},[n,e.model]),E=(0,X.useCallback)((z,R=!0)=>{let Ce=z.trim();!Ce||Ce===e.model||(o(Ce),R&&x(`Model set to ${Ce}`,"success"))},[e.model,o]),N=(0,X.useCallback)(()=>{h.current&&(window.clearTimeout(h.current),h.current=null);let z=s.trim();z&&z!==e.model&&E(z,!1),k(),c(!1)},[s,e.model,E,k]);return(0,X.useEffect)(()=>{if(!p)return;m.current?.focus();let z=R=>{R.key==="Escape"&&N()};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[p,N]),(0,X.useEffect)(()=>{if(!p)return;let z=s.trim();if(!(!z||z===e.model))return h.current=window.setTimeout(()=>{E(z,!0),h.current=null},600),()=>{h.current&&(window.clearTimeout(h.current),h.current=null)}},[s,e.model,p,E]),(0,X.useEffect)(()=>()=>{d.current&&window.clearTimeout(d.current),h.current&&window.clearTimeout(h.current)},[]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("header",{className:"top",children:[(0,T.jsx)("div",{className:"stack",children:(0,T.jsxs)("div",{className:"title-row",children:[(0,T.jsx)("strong",{children:"Marie"}),(0,T.jsx)("span",{className:"muted",children:t?"Running\u2026":"Ready"})]})}),(0,T.jsxs)("div",{className:"header-controls minimal",children:[(0,T.jsxs)("div",{className:"config-pill-row",children:[(0,T.jsx)("span",{className:"config-pill",children:e.provider}),(0,T.jsx)("span",{className:"config-pill model",title:e.model,children:e.model}),(0,T.jsx)("span",{className:`config-pill ${e.hasProviderApiKey?"ok":"warn"}`,children:e.hasProviderApiKey?"API key connected":"API key needed"})]}),(0,T.jsxs)("button",{className:"secondary",onClick:()=>{k(),c(!0)},children:[(0,T.jsx)(Jd,{size:14,style:{marginRight:"4px"}}),"Configure AI"]})]})]}),p&&(0,T.jsx)("div",{className:"modal-backdrop",onClick:N,role:"presentation",children:(0,T.jsxs)("section",{className:"config-modal",role:"dialog","aria-modal":"true","aria-label":"Model and provider settings",onClick:z=>z.stopPropagation(),children:[(0,T.jsxs)("div",{className:"modal-header",children:[(0,T.jsx)("strong",{children:"Model & Provider"}),(0,T.jsx)("button",{className:"icon",onClick:N,"aria-label":"Close settings",children:(0,T.jsx)(ep,{size:20})})]}),v&&(0,T.jsx)("div",{className:`config-toast ${v.tone}`,role:"status",children:v.message}),(0,T.jsxs)("div",{className:"modal-body stack",children:[(0,T.jsxs)("label",{className:"control-field",children:[(0,T.jsx)("span",{className:"muted",children:"Provider"}),(0,T.jsxs)("select",{ref:m,value:u,onChange:z=>{let R=z.target.value;f(R),R!==e.provider&&(r(R),x(`Provider set to ${R}`,"success"))},children:[(0,T.jsx)("option",{value:"anthropic",children:"anthropic"}),(0,T.jsx)("option",{value:"openrouter",children:"openrouter"}),(0,T.jsx)("option",{value:"cerebras",children:"cerebras"})]})]}),(0,T.jsxs)("label",{className:"control-field",children:[(0,T.jsx)("span",{className:"muted",children:"API key"}),(0,T.jsx)("input",{type:"password",value:g,onChange:z=>y(z.target.value),placeholder:`Enter ${u} API key`}),(0,T.jsx)("div",{className:"row",children:(0,T.jsx)("button",{className:"secondary",type:"button",onClick:()=>{let z=g.trim();z&&(i(u,z),y(""),x(`Saved ${u} API key`,"success"))},children:"Save key"})})]}),(0,T.jsxs)("label",{className:"control-field",children:[(0,T.jsx)("span",{className:"muted",children:"Model"}),(0,T.jsx)("input",{list:"marie-model-options",value:s,onChange:z=>a(z.target.value),onKeyDown:z=>{z.key==="Enter"&&(z.preventDefault(),E(s,!0))},placeholder:"Enter model id"}),(0,T.jsx)("datalist",{id:"marie-model-options",children:C.map(z=>(0,T.jsx)("option",{value:z},z))})]}),(0,T.jsxs)("div",{className:"api-status-row",children:[(0,T.jsx)("span",{className:`api-dot ${e.hasProviderApiKey?"ok":"warn"}`}),(0,T.jsx)("span",{children:e.hasProviderApiKey?"API key is configured":`No API key configured for ${e.provider}`})]}),(0,T.jsx)("div",{className:"muted",children:"Keys are stored in VS Code settings for the selected provider."}),(0,T.jsxs)("div",{className:"row",children:[(0,T.jsx)("button",{className:"secondary",onClick:()=>{l(),x("Refreshing model list\u2026","info")},children:"Refresh models"}),(0,T.jsx)("button",{onClick:N,children:"Done"})]})]})]})})]})}var Mr=I(Ne(),1);var W=I(U(),1);function $h(e){try{return new Date(e).toLocaleDateString()}catch{return""}}function fp({sessions:e,currentSessionId:t,onLoad:n,onCreate:r,onRefresh:o}){let[i,l]=(0,Mr.useState)(""),s=(0,Mr.useMemo)(()=>[...e].sort((g,y)=>Number(y.isPinned)-Number(g.isPinned)||y.lastModified-g.lastModified),[e]),a=(0,Mr.useMemo)(()=>{if(!i.trim())return s;let g=i.toLowerCase();return s.filter(y=>y.title?.toLowerCase().includes(g))},[i,s]),u=a.length>0,f=i.trim()?`No sessions match \u201C${i.trim()}\u201D.`:"Start a new chat to create your first session.",p=i.trim()?"No matching sessions":"No sessions yet",c=i.trim()?(0,W.jsx)(rp,{size:32}):(0,W.jsx)(Xd,{size:64});return(0,W.jsxs)("aside",{className:"left stack",children:[(0,W.jsxs)("div",{className:"session-heading",children:[(0,W.jsx)("span",{className:"session-heading-icon","aria-hidden":"true",children:(0,W.jsx)(js,{size:18})}),(0,W.jsx)("strong",{children:"Sessions"})]}),(0,W.jsxs)("div",{className:"row",children:[(0,W.jsx)("button",{onClick:r,children:"New"}),(0,W.jsx)("button",{onClick:o,className:"secondary",children:"Refresh"})]}),(0,W.jsxs)("label",{className:"session-search",children:[(0,W.jsx)("span",{className:"muted",children:"Search sessions"}),(0,W.jsx)("input",{type:"search",value:i,onChange:g=>l(g.target.value),placeholder:"Filter by title"})]}),(0,W.jsxs)("div",{className:"stack",children:[!u&&(0,W.jsxs)("div",{className:"session-empty",children:[(0,W.jsx)("div",{className:"session-empty-icon",children:c}),(0,W.jsx)("div",{className:"session-empty-title",children:p}),(0,W.jsx)("div",{className:"muted",children:f})]}),a.map(g=>(0,W.jsxs)("button",{onClick:()=>n(g.id),className:`session ${g.id===t?"active":""}`,children:[(0,W.jsxs)("span",{className:"session-title",children:[g.isPinned?(0,W.jsx)(op,{size:14,style:{marginRight:"6px",verticalAlign:"middle"}}):(0,W.jsx)(js,{size:14,style:{marginRight:"6px",verticalAlign:"middle"}}),g.title||"New Session"]}),(0,W.jsx)("span",{className:"session-date muted",children:$h(g.lastModified)})]},g.id))]})]})}var mp=I(Ne(),1),At=I(U(),1),ci=class extends mp.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("[Webview] Uncaught error:",t,n)}render(){return this.state.hasError?this.fallback?this.fallback:(0,At.jsx)("div",{className:"fatal-error-container",children:(0,At.jsxs)("div",{className:"fatal-error-card",children:[(0,At.jsx)("h2",{className:"fatal-error-title",children:"Webview Component Crash"}),(0,At.jsx)("p",{className:"fatal-error-message",children:this.state.error?.message||"An unexpected rendering error occurred."}),(0,At.jsx)("div",{className:"fatal-error-suggestion",children:"Please reload the VS Code window to recover."}),this.state.error?.stack&&(0,At.jsx)("pre",{className:"fatal-error-stack",children:this.state.error.stack})]})}):this.props.children}get fallback(){return this.props.fallback}};var H=I(U(),1);function Oh(){let{state:e,actions:t}=Ld(),[n,r]=(0,Jt.useState)(!1),o=(0,Jt.useCallback)(l=>{t.loadSession(l),r(!1)},[t]),i=(0,Jt.useCallback)(()=>{t.createSession(),r(!1)},[t]);return(0,Jt.useEffect)(()=>{if(!n)return;let l=s=>{s.key==="Escape"&&r(!1)};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[n]),(0,H.jsxs)("div",{className:"app-shell",children:[(0,H.jsx)("aside",{className:`session-drawer ${n?"open":""}`,children:(0,H.jsx)(fp,{sessions:e.sessions,currentSessionId:e.currentSessionId,onLoad:o,onCreate:i,onRefresh:t.refreshSessions})}),n&&(0,H.jsx)("button",{className:"session-scrim","aria-label":"Close sessions panel",onClick:()=>r(!1)}),(0,H.jsx)("main",{className:"workspace",children:(0,H.jsxs)("div",{className:"workspace-glass",children:[(0,H.jsx)(Ad,{pendingApproval:e.pendingApproval,onApprove:t.approveTool}),(0,H.jsxs)("div",{className:"header-wrap minimal",children:[(0,H.jsxs)("button",{className:`session-toggle ${n?"is-open":""}`,onClick:()=>r(l=>!l),"aria-label":n?"Hide sessions":"Show sessions","aria-expanded":n,children:[(0,H.jsxs)("span",{className:"hamburger","aria-hidden":"true",children:[(0,H.jsx)("span",{className:"bar"}),(0,H.jsx)("span",{className:"bar"}),(0,H.jsx)("span",{className:"bar"})]}),(0,H.jsx)("span",{className:"session-toggle-label",children:"Sessions"}),(0,H.jsx)("span",{className:"session-toggle-count",children:e.sessions.length})]}),(0,H.jsx)("div",{className:"header-stack",children:(0,H.jsx)(pp,{config:e.config,isLoading:e.isLoading,availableModels:e.availableModels,onProvider:t.setProvider,onModel:t.setModel,onSetApiKey:t.setApiKey,onRefreshModels:t.getModels})})]}),(0,H.jsx)(cp,{messages:e.messages,streamingBuffer:e.streamingBuffer,toolStreamingBuffer:e.toolStreamingBuffer,activeToolName:e.activeToolName,pendingApproval:e.pendingApproval,onApprove:t.approveTool,isLoading:e.isLoading,stageHint:e.stageHint,stageSummary:e.stageSummary}),(0,H.jsx)(dp,{isLoading:e.isLoading,stage:e.stage,stageHint:e.stageHint,pendingApproval:e.pendingApproval,onSend:t.sendMessage})]})})]})}function Ws(){return(0,H.jsx)(Md,{children:(0,H.jsx)(ci,{children:(0,H.jsx)(Oh,{})})})}var vp=I(U(),1);console.log("[Webview] main.tsx entry point hit");console.log("[Webview] react-dom/client imported");console.log("[Webview] App component imported");function gp(){let e=document.getElementById("app");if(e)return e;let t=document.createElement("div");return t.id="app",document.body.appendChild(t),t}function Fh(e){let t=gp(),n=e instanceof Error?`${e.message}
|
|
60
|
-
|
|
61
|
-
${e.stack||""}`:String(e);t.innerHTML=`<pre style="padding:12px;white-space:pre-wrap;color:var(--vscode-errorForeground);">Webview failed to render:
|
|
62
|
-
${n}</pre>`}try{console.log("[Webview] Bootstrapping React app..."),(0,hp.createRoot)(gp()).render((0,vp.jsx)(Ws,{}))}catch(e){Fh(e)}})();
|
|
63
|
-
/*! Bundled license information:
|
|
64
|
-
|
|
65
|
-
react/cjs/react.production.min.js:
|
|
66
|
-
(**
|
|
67
|
-
* @license React
|
|
68
|
-
* react.production.min.js
|
|
69
|
-
*
|
|
70
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the MIT license found in the
|
|
73
|
-
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*)
|
|
75
|
-
|
|
76
|
-
scheduler/cjs/scheduler.production.min.js:
|
|
77
|
-
(**
|
|
78
|
-
* @license React
|
|
79
|
-
* scheduler.production.min.js
|
|
80
|
-
*
|
|
81
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the MIT license found in the
|
|
84
|
-
* LICENSE file in the root directory of this source tree.
|
|
85
|
-
*)
|
|
86
|
-
|
|
87
|
-
react-dom/cjs/react-dom.production.min.js:
|
|
88
|
-
(**
|
|
89
|
-
* @license React
|
|
90
|
-
* react-dom.production.min.js
|
|
91
|
-
*
|
|
92
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the MIT license found in the
|
|
95
|
-
* LICENSE file in the root directory of this source tree.
|
|
96
|
-
*)
|
|
97
|
-
|
|
98
|
-
react/cjs/react-jsx-runtime.production.min.js:
|
|
99
|
-
(**
|
|
100
|
-
* @license React
|
|
101
|
-
* react-jsx-runtime.production.min.js
|
|
102
|
-
*
|
|
103
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
104
|
-
*
|
|
105
|
-
* This source code is licensed under the MIT license found in the
|
|
106
|
-
* LICENSE file in the root directory of this source tree.
|
|
107
|
-
*)
|
|
108
|
-
*/
|