yepanywhere 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/@yep-anywhere/shared/dist/__tests__/long-context-effort-warning.test.js +19 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/long-context-effort-warning.test.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/__tests__/model-prices.test.js +12 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/model-prices.test.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/app-types.d.ts +2 -2
- package/bundled/@yep-anywhere/shared/dist/app-types.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/app-types.js +5 -5
- package/bundled/@yep-anywhere/shared/dist/app-types.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/artifact-viewer.d.ts +21 -0
- package/bundled/@yep-anywhere/shared/dist/artifact-viewer.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/artifact-viewer.js +22 -1
- package/bundled/@yep-anywhere/shared/dist/artifact-viewer.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/capability-ids.d.ts +6 -0
- package/bundled/@yep-anywhere/shared/dist/capability-ids.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/capability-ids.js +6 -0
- package/bundled/@yep-anywhere/shared/dist/capability-ids.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/ToolResultSchemas.d.ts +2 -2
- package/bundled/@yep-anywhere/shared/dist/find/documentFind.d.ts +41 -0
- package/bundled/@yep-anywhere/shared/dist/find/documentFind.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/documentFind.js +280 -0
- package/bundled/@yep-anywhere/shared/dist/find/documentFind.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.d.ts +2 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.generated.d.ts +2 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.generated.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.generated.js +5 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.generated.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.js +59 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/protocol.d.ts +46 -0
- package/bundled/@yep-anywhere/shared/dist/find/protocol.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/protocol.js +45 -0
- package/bundled/@yep-anywhere/shared/dist/find/protocol.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/index.d.ts +4 -2
- package/bundled/@yep-anywhere/shared/dist/index.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/index.js +3 -1
- package/bundled/@yep-anywhere/shared/dist/index.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/long-context-effort-warning.d.ts +11 -11
- package/bundled/@yep-anywhere/shared/dist/long-context-effort-warning.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/long-context-effort-warning.js +26 -9
- package/bundled/@yep-anywhere/shared/dist/long-context-effort-warning.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/model-prices.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/model-prices.js +9 -2
- package/bundled/@yep-anywhere/shared/dist/model-prices.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/pdfjs.d.ts +7 -0
- package/bundled/@yep-anywhere/shared/dist/pdfjs.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/pdfjs.js +7 -0
- package/bundled/@yep-anywhere/shared/dist/pdfjs.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.d.ts +20 -0
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.js +22 -0
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.js +7 -10
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/types.d.ts +7 -0
- package/bundled/@yep-anywhere/shared/dist/types.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/types.js.map +1 -1
- package/bundled/@yep-anywhere/shared/package.json +1 -1
- package/client-dist/assets/AboutSettings-CCzudbSj.js +1 -0
- package/client-dist/assets/{ActivityPage-FgSG_9Sl.js → ActivityPage-Bn0LbMgE.js} +1 -1
- package/client-dist/assets/{AgentContextSettings-BfTCI7qG.js → AgentContextSettings-DI8jQVIx.js} +3 -3
- package/client-dist/assets/AgentsPage-Ci_iJt8T.js +2 -0
- package/client-dist/assets/App-rFnK5pnF.js +2 -0
- package/client-dist/assets/AppearanceSettings-DTYVt0W5.js +2 -0
- package/client-dist/assets/AppsSettings-hbh_sguk.js +1 -0
- package/client-dist/assets/AttachmentChip-BFve3lTD.js +1 -0
- package/client-dist/assets/{AuthContext-CVsoMulX.js → AuthContext-DmXjW0be.js} +1 -1
- package/client-dist/assets/{BangCommandDisplayObject-B8KrHDzH.js → BangCommandDisplayObject-BH2KRGnc.js} +1 -1
- package/client-dist/assets/BangCommandsPage-MfkuL8yS.js +1 -0
- package/client-dist/assets/BrowserDebugToolbarButton-BPghQu17.js +1 -0
- package/client-dist/assets/{CacheMissBillingSettings-Bfqlk9rA.js → CacheMissBillingSettings-rUgC-_DD.js} +2 -2
- package/client-dist/assets/{CodexUpdatePrompt-ChHtbla-.js → CodexUpdatePrompt-mT9K-f1e.js} +1 -1
- package/client-dist/assets/{CommittedRangeInput-C3Z7YUlS.js → CommittedRangeInput-BwuV6Q6c.js} +1 -1
- package/client-dist/assets/{CommittedRangeNumberInput-D497_5ff.js → CommittedRangeNumberInput-C5YSVltB.js} +1 -1
- package/client-dist/assets/ComputerControlSettings-MWIdP7SS.js +1 -0
- package/client-dist/assets/{ConversationPreviewPage-CTWx9N3v.js → ConversationPreviewPage-B47r7mUF.js} +2 -2
- package/client-dist/assets/DevelopmentSettings-BEAy_xq-.js +1 -0
- package/client-dist/assets/DevicesSettings-DKQOZkRN.js +1 -0
- package/client-dist/assets/EmulatorPage-DlsPq3nR.js +1 -0
- package/client-dist/assets/EmulatorSettings-C6Ye1k_Y.js +1 -0
- package/client-dist/assets/EnvironmentSettings-ou8UNqTa.js +1 -0
- package/client-dist/assets/FilePage-Cw2PaO5H.js +1 -0
- package/client-dist/assets/FilterDropdown-CACc6ysA.js +1 -0
- package/client-dist/assets/FilterDropdown-D11gXriH.css +1 -0
- package/client-dist/assets/FloatingActionButton-Bl1Eumxh.js +1 -0
- package/client-dist/assets/{GitStatusPage-879aktqc.js → GitStatusPage-CLTkgnDI.js} +3 -3
- package/client-dist/assets/GlobalSessionsPage-Bvzs4zmW.js +2 -0
- package/client-dist/assets/GlobalSessionsPage-dlTB6crv.css +1 -0
- package/client-dist/assets/{HeartbeatTextArea-CKxL-bdJ.js → HeartbeatTextArea-CtP5kx9R.js} +1 -1
- package/client-dist/assets/HostIdentityContext-DA7dMF-y.js +1 -0
- package/client-dist/assets/HostsPage-CBOYGC2-.js +1 -0
- package/client-dist/assets/{InboxContext-opkOiXDB.js → InboxContext-8PXoTbK1.js} +1 -1
- package/client-dist/assets/InboxPage-DWl7uzdw.js +1 -0
- package/client-dist/assets/IssueSettings-BVljRpuD.js +1 -0
- package/client-dist/assets/IssuesPage-BFxgsMkf.js +1 -0
- package/client-dist/assets/LifecycleWebhooksSettings-Qw_dN3F3.js +1 -0
- package/client-dist/assets/{LocalAccessSettings-BpmNC9pI.js → LocalAccessSettings-SWirs75o.js} +3 -3
- package/client-dist/assets/LocalMediaModal-B3KXtyEB.css +1 -0
- package/client-dist/assets/LocalMediaModal-B9eHVx6y.js +14 -0
- package/client-dist/assets/{LoginPage-Cu7cX9wS.js → LoginPage-CYWqVJ95.js} +1 -1
- package/client-dist/assets/{MessageAge-Cd1C0-Kr.js → MessageAge-CaPpa1nH.js} +1 -1
- package/client-dist/assets/{MessageDeliverySettings-B_9VqCMP.js → MessageDeliverySettings-BUSuGKlc.js} +2 -2
- package/client-dist/assets/MessageInput-a13ZPAHv.js +3 -0
- package/client-dist/assets/MessageInputToolbar-BIL_6i7G.css +1 -0
- package/client-dist/assets/MessageInputToolbar-CQGTnVea.js +58 -0
- package/client-dist/assets/MessageList-C7kAuWKg.js +4 -0
- package/client-dist/assets/MessageList-rD5OPsAJ.css +1 -0
- package/client-dist/assets/Modal-ClSjJagX.js +15 -0
- package/client-dist/assets/ModelSettings-Dnd4yzmI.js +1 -0
- package/client-dist/assets/NavigationLayout-BTFsWVtE.js +2 -0
- package/client-dist/assets/NewSessionPage-BfiAS-Mo.js +1 -0
- package/client-dist/assets/NotificationsSettings-B1ugQIp-.js +1 -0
- package/client-dist/assets/PageHeader-BjwH2pWD.js +1 -0
- package/client-dist/assets/PerformanceSettings-jJYF9SPY.js +1 -0
- package/client-dist/assets/{ProjectSessionDefaultsModal-Dq2_xDka.js → ProjectSessionDefaultsModal-G_0uxJEv.js} +1 -1
- package/client-dist/assets/ProjectTemplatesSettings-BQTCV3-3.js +1 -0
- package/client-dist/assets/ProjectsPage-suTd8s9l.js +1 -0
- package/client-dist/assets/ProviderBadge-P0VTI71n.js +1 -0
- package/client-dist/assets/{ProviderChildSessionDetail-tWrpaB_X.js → ProviderChildSessionDetail-D0472EW8.js} +35 -35
- package/client-dist/assets/ProviderChildSessionPage-9__sgY14.js +1 -0
- package/client-dist/assets/ProvidersSettings-Bwzy73Rk.js +1 -0
- package/client-dist/assets/{RecapAfterSecondsControl-qU0RMrUX.js → RecapAfterSecondsControl-CxuXyFSr.js} +1 -1
- package/client-dist/assets/{RelayProtocol-DjpPJk64.js → RelayProtocol-BpdH0COG.js} +1 -1
- package/client-dist/assets/RemoteAccessSettings-Dn7KB5nK.js +1 -0
- package/client-dist/assets/RemoteExecutorsSettings-Cjl4Y2rB.js +1 -0
- package/client-dist/assets/SchemaValidationContext-57RCj4c4.js +1 -0
- package/client-dist/assets/{SearchPreview-B25ksFLA.js → SearchPreview-OzVFWPJZ.js} +1 -1
- package/client-dist/assets/{SessionHeader.module-Co9s-JR3.js → SessionHeader.module-BpaFAQ-S.js} +1 -1
- package/client-dist/assets/SessionPage-BYthaEfZ.js +50 -0
- package/client-dist/assets/SessionPage-CXXEAwu2.css +1 -0
- package/client-dist/assets/{SettingsItem-B_rM9Vhi.js → SettingsItem-C9Vh5p7F.js} +1 -1
- package/client-dist/assets/{SettingsSection-DOwc_RwX.js → SettingsSection-BaPzETK6.js} +1 -1
- package/client-dist/assets/SourceControlSettings-DnqLg0db.js +1 -0
- package/client-dist/assets/{SourceFileHeaderActions-3_76js_o.js → SourceFileHeaderActions-PjhUGnn6.js} +1 -1
- package/client-dist/assets/SpeechControlMenu-BYVdEa3C.js +2 -0
- package/client-dist/assets/{SpeechSettings-BT4TnSgr.js → SpeechSettings-B6LkqfSK.js} +2 -2
- package/client-dist/assets/{SpeechSmartTurnControls-vIZ8a7Lb.js → SpeechSmartTurnControls-LPq9wBaM.js} +1 -1
- package/client-dist/assets/StorageSettings-DtsJnYaz.js +1 -0
- package/client-dist/assets/{ThinkingControls-CbZcYobp.js → ThinkingControls-DXbxdJRi.js} +1 -1
- package/client-dist/assets/ToolbarSettings-Nb2BKpnk.js +1 -0
- package/client-dist/assets/UsersSettings-BdvqmyqK.js +1 -0
- package/client-dist/assets/ViewerModePage-CfJJA5GL.css +1 -0
- package/client-dist/assets/ViewerModePage-DzRIpuYF.js +1 -0
- package/client-dist/assets/{VoiceInputButton-japn0Kx_.js → VoiceInputButton-CCgovfyf.js} +1 -1
- package/client-dist/assets/WorkstreamsPage-dlEUllSL.js +1 -0
- package/client-dist/assets/{YaServerProvider-OSxrnpr9.js → YaServerProvider-CN3tC5UL.js} +1 -1
- package/client-dist/assets/{YepAnywhereLogo-OH70DoR4.js → YepAnywhereLogo-5zFKWjQq.js} +1 -1
- package/client-dist/assets/{abnfDiagram-VCTEODGH-BK2byNq2.js → abnfDiagram-VCTEODGH-BWHUBcV3.js} +1 -1
- package/client-dist/assets/{arc-BZ7613Gf.js → arc-DKsIJWGD.js} +1 -1
- package/client-dist/assets/{architectureDiagram-5GKGNRK7-WEjy-r-z.js → architectureDiagram-5GKGNRK7-BuLImqW3.js} +1 -1
- package/client-dist/assets/{attachmentFileNames-BfFUuufi.js → attachmentFileNames-CBV_5g65.js} +1 -1
- package/client-dist/assets/{blockDiagram-I7D4REHJ-BOsYYXyW.js → blockDiagram-I7D4REHJ-CJ4Gh6sL.js} +1 -1
- package/client-dist/assets/{c4Diagram-7LVT6UL2-BRrAUZLE.js → c4Diagram-7LVT6UL2-WR43XvCI.js} +1 -1
- package/client-dist/assets/channel-PV8AAsuo.js +1 -0
- package/client-dist/assets/{chunk-2Q5K7J3B-ikUS9MZO.js → chunk-2Q5K7J3B-CiP4m_EA.js} +1 -1
- package/client-dist/assets/{chunk-5VM5RSS4-DqxRtuTQ.js → chunk-5VM5RSS4-BUAhj1h9.js} +1 -1
- package/client-dist/assets/{chunk-F27PBJKO-DQAhMVEw.js → chunk-F27PBJKO-BUZNwiGx.js} +1 -1
- package/client-dist/assets/{chunk-IMKFNOWR-B2QXI9W-.js → chunk-IMKFNOWR-CX1a0BCE.js} +1 -1
- package/client-dist/assets/{chunk-JWPE2WC7-Px4jgxzE.js → chunk-JWPE2WC7-C6tL-mLF.js} +1 -1
- package/client-dist/assets/{chunk-POPQ4Y6H-BTrXHY42.js → chunk-POPQ4Y6H-BzijGGWv.js} +1 -1
- package/client-dist/assets/{chunk-SVP7TREG-DufcbLSM.js → chunk-SVP7TREG-CsZImJKI.js} +1 -1
- package/client-dist/assets/{chunk-TICWLB2K-C6xArrXi.js → chunk-TICWLB2K-TwCtuDc1.js} +1 -1
- package/client-dist/assets/{chunk-XXDRQBXY-CtTuQMK6.js → chunk-XXDRQBXY-C-2EoNns.js} +1 -1
- package/client-dist/assets/classDiagram-ZZMXUADV-DvtSxfma.js +1 -0
- package/client-dist/assets/classDiagram-v2-VYDZK3BY-DvtSxfma.js +1 -0
- package/client-dist/assets/{client-sN_tbfxh.js → client-Ci_HPGfl.js} +2 -2
- package/client-dist/assets/{compactSettingsControls-BjKplkgf.js → compactSettingsControls-C9mLZh5H.js} +1 -1
- package/client-dist/assets/{cose-bilkent-JH36ORCC-Cn15YJGj.js → cose-bilkent-JH36ORCC-CmbEx2jT.js} +1 -1
- package/client-dist/assets/{cynefin-OW5HDTMX-CJkFJ0DX.js → cynefin-OW5HDTMX-BSQHHXFU.js} +1 -1
- package/client-dist/assets/{cynefinDiagram-5FMLGOSQ-CVX2L_eF.js → cynefinDiagram-5FMLGOSQ-C-62JZJD.js} +1 -1
- package/client-dist/assets/{dagre-GXQ25YYZ-BMbYVbaU.js → dagre-GXQ25YYZ-BBERQe_A.js} +1 -1
- package/client-dist/assets/de-Cgdxe5vX.js +6 -0
- package/client-dist/assets/{diagram-S7CK7UJ4-DTZ_P_Fh.js → diagram-S7CK7UJ4-muw11lmG.js} +1 -1
- package/client-dist/assets/{diagram-UQ7AKVKN-C6cgxro0.js → diagram-UQ7AKVKN-DpePWzAe.js} +1 -1
- package/client-dist/assets/{diagram-VSXAHHWV-MzNPAr2n.js → diagram-VSXAHHWV-DHX6AHUY.js} +1 -1
- package/client-dist/assets/{diagram-VX7I27RA-BZN6iloV.js → diagram-VX7I27RA-DYmR6NH_.js} +1 -1
- package/client-dist/assets/{diagram-Z3DM3KII-CtTiorxp.js → diagram-Z3DM3KII-BC1SenHB.js} +1 -1
- package/client-dist/assets/{ebnfDiagram-PWID7BFC-B28XYdqt.js → ebnfDiagram-PWID7BFC-EVpri6Ma.js} +1 -1
- package/client-dist/assets/{erDiagram-RLTQ6QDP-DlMmHWyy.js → erDiagram-RLTQ6QDP-DthztUaa.js} +1 -1
- package/client-dist/assets/es-gyRk85dY.js +6 -0
- package/client-dist/assets/{flowDiagram-HODETNUW-C5mVciwL.js → flowDiagram-HODETNUW-DEpC5nMx.js} +1 -1
- package/client-dist/assets/fr-Dx9lA8u-.js +6 -0
- package/client-dist/assets/{frontendReload-DT6MOpjg.js → frontendReload-CBdyvvdy.js} +1 -1
- package/client-dist/assets/{ganttDiagram-EL5Y4UJY-BTl7ZRTR.js → ganttDiagram-EL5Y4UJY-Csqji8t1.js} +1 -1
- package/client-dist/assets/{gitGraphDiagram-WWUBYQGX-BsG6KEKe.js → gitGraphDiagram-WWUBYQGX-DVX1SDIE.js} +1 -1
- package/client-dist/assets/{hostStorage-BoEdRarg.js → hostStorage-D1KAm3U1.js} +1 -1
- package/client-dist/assets/{index-D7q51uJV.js → index-BESqiBDI.js} +1 -1
- package/client-dist/assets/index-BkOdUxq4.js +2 -0
- package/client-dist/assets/index-CPb-36gi.css +1 -0
- package/client-dist/assets/index-CoR-vzsb.js +2 -0
- package/client-dist/assets/index-Cv3tQXyE.js +1 -0
- package/client-dist/assets/{index-CkZXrIi5.js → index-DSFMItgO.js} +1 -1
- package/client-dist/assets/index-umZg0LZ6.js +81 -0
- package/client-dist/assets/{infoDiagram-27XIBGKW-CkZcthz-.js → infoDiagram-27XIBGKW-CHm3qsd2.js} +1 -1
- package/client-dist/assets/{ishikawaDiagram-5VMMS53U-Cvqitz5U.js → ishikawaDiagram-5VMMS53U-tBRZwz-_.js} +1 -1
- package/client-dist/assets/ja-BOj7smkY.js +6 -0
- package/client-dist/assets/{journeyDiagram-3NMN7TZE-vCw00Cqy.js → journeyDiagram-3NMN7TZE-EJic7nqD.js} +1 -1
- package/client-dist/assets/{kanban-definition-UXKFOSKX-BZGCo-wX.js → kanban-definition-UXKFOSKX-DtzL6eeO.js} +1 -1
- package/client-dist/assets/{layout-D7JRfual.js → layout-gb-Axsoq.js} +1 -1
- package/client-dist/assets/{linear-O9cHRsA5.js → linear-CAe4xGbR.js} +1 -1
- package/client-dist/assets/long-context-effort-warning-C6XHizE1.js +1 -0
- package/client-dist/assets/{mermaid.core-CdC8AeOx.js → mermaid.core-BCu1nv8H.js} +5 -5
- package/client-dist/assets/{mindmap-definition-YA3MSWOX-CczC57z0.js → mindmap-definition-YA3MSWOX-C7-KSPtJ.js} +1 -1
- package/client-dist/assets/newSessionPrefill-DKcy0abh.js +1 -0
- package/client-dist/assets/{pegDiagram-XKGWAZYB-jTm4iBWK.js → pegDiagram-XKGWAZYB-iWVH9rbY.js} +1 -1
- package/client-dist/assets/{pieDiagram-E7YTZNPT-DfkDPuJg.js → pieDiagram-E7YTZNPT-VKD6PLHa.js} +1 -1
- package/client-dist/assets/providerChildSessions-Cd7oK6KQ.css +1 -0
- package/client-dist/assets/providerChildSessions-DbLFSybt.js +77 -0
- package/client-dist/assets/{quadrantDiagram-AXDQQJYC--bBZSIt1.js → quadrantDiagram-AXDQQJYC-AXFugcFl.js} +1 -1
- package/client-dist/assets/{railroadDiagram-O6MQD6OU-gbkMdGN6.js → railroadDiagram-O6MQD6OU-D6oZy6Al.js} +1 -1
- package/client-dist/assets/{recentProjectPathLinks-Ba20jx5b.js → recentProjectPathLinks-D0Dx6YXT.js} +2 -2
- package/client-dist/assets/{registerServiceWorker-CGxgV4Yi.js → registerServiceWorker-B8K2KVOY.js} +1 -1
- package/client-dist/assets/{relayEndpoints-0oIbn4eU.js → relayEndpoints-BTq9xppf.js} +1 -1
- package/client-dist/assets/{remoteRoutePaths-CiDZeM2I.js → remoteRoutePaths-D8htA0xa.js} +1 -1
- package/client-dist/assets/{requirementDiagram-BXWQKSXE-WfLCTewk.js → requirementDiagram-BXWQKSXE-Eqtb74It.js} +1 -1
- package/client-dist/assets/{sankeyDiagram-P5KCCOFB-BhJkx_M1.js → sankeyDiagram-P5KCCOFB-CxvDiZ1R.js} +1 -1
- package/client-dist/assets/{sequenceDiagram-WJ2MYXX4-_S-ZN-hK.js → sequenceDiagram-WJ2MYXX4-BbpkgW2L.js} +1 -1
- package/client-dist/assets/sessionHistorySearch.worker-DCkPlfGO.js +61 -0
- package/client-dist/assets/{sessionNavigationState-DKXD1sTS.js → sessionNavigationState-BXejf2ZW.js} +1 -1
- package/client-dist/assets/sessionRouteLayer-D9T2QT8G.js +1 -0
- package/client-dist/assets/{sizeCapture-INFHLROL-YfaR_7-Y.js → sizeCapture-INFHLROL-DcuwWD5r.js} +1 -1
- package/client-dist/assets/{sourceControlNavigationState-lyZ29oaF.js → sourceControlNavigationState-BJbTzWTE.js} +1 -1
- package/client-dist/assets/{speechDraftTransaction-zyWVCYTF.js → speechDraftTransaction-WhqFE1h9.js} +1 -1
- package/client-dist/assets/{stateDiagram-D77RDMKH-_N9FdD6m.js → stateDiagram-D77RDMKH-Cidpq73w.js} +1 -1
- package/client-dist/assets/stateDiagram-v2-MP3YSRHH-DFqKXxjz.js +1 -0
- package/client-dist/assets/{swimlanes-42K2YHIH-DUl5jFZz.js → swimlanes-42K2YHIH-Ba8C7MwG.js} +1 -1
- package/client-dist/assets/swimlanesDiagram-VR7AAH4N-3pW2TcAt.js +8 -0
- package/client-dist/assets/{timeline-definition-24CTP7MA-DtYzRl63.js → timeline-definition-24CTP7MA-CKefGvUK.js} +1 -1
- package/client-dist/assets/useAcliCommentarySetting-CBKAl7qr.js +9 -0
- package/client-dist/assets/useActivityBusState-C0dor9p7.js +1 -0
- package/client-dist/assets/{useBackgroundRevalidation-CULom4_W.js → useBackgroundRevalidation-C79HAUP3.js} +1 -1
- package/client-dist/assets/{useCodexUpdateStatus-BIDehnvt.js → useCodexUpdateStatus-CEZO_f2Y.js} +1 -1
- package/client-dist/assets/{useConnectedDevices-kBo43kbz.js → useConnectedDevices-Ds-DuUDc.js} +1 -1
- package/client-dist/assets/{useDocumentTitle-C06qawRj.js → useDocumentTitle-Xz5t-nlB.js} +1 -1
- package/client-dist/assets/{useEmulators-Bz8194e3.js → useEmulators-qS_cCZ3I.js} +1 -1
- package/client-dist/assets/{useFileActivity-CwkGwsQt.js → useFileActivity-BoW4X3DY.js} +1 -1
- package/client-dist/assets/{useFloatingActionButtonEnabled-C31rfHtR.js → useFloatingActionButtonEnabled-2_hw7nSa.js} +1 -1
- package/client-dist/assets/{useForkSummaryAutoOpen-D_SvtmbE.js → useForkSummaryAutoOpen-CS33Irpf.js} +1 -1
- package/client-dist/assets/{useGeneratedTitleLength-Cu-SoQ6T.js → useGeneratedTitleLength-D856ktVg.js} +1 -1
- package/client-dist/assets/{useKeepMobileKeyboardOpenAfterDelivery-C-cYLaEU.js → useKeepMobileKeyboardOpenAfterDelivery-Ba77SbWF.js} +1 -1
- package/client-dist/assets/useModelSettings-BdlYk1DT.js +1 -0
- package/client-dist/assets/{useNotifyInApp-BcLZ8ie_.js → useNotifyInApp-DcWe3dh4.js} +1 -1
- package/client-dist/assets/{useOnboarding-CYgE-Xsg.js → useOnboarding-CoE3WF8a.js} +1 -1
- package/client-dist/assets/{useProviders-C6kBPWYX.js → useProviders-CeN1PclA.js} +1 -1
- package/client-dist/assets/{useQuestionAsideSetting-6Excl6Pm.js → useQuestionAsideSetting-CPFw1u0y.js} +1 -1
- package/client-dist/assets/{useRecentSessions-CsmsGemq.js → useRecentSessions-ieTzzJu4.js} +2 -2
- package/client-dist/assets/{useRelativeNow-BdLaPgKO.js → useRelativeNow-Ca6QGcPa.js} +1 -1
- package/client-dist/assets/{useReloadNotifications-B0egr2ys.js → useReloadNotifications-Dm1jmdIb.js} +1 -1
- package/client-dist/assets/{useRemoteExecutors-Bgjgzif1.js → useRemoteExecutors-zBAQnQXH.js} +1 -1
- package/client-dist/assets/{useSidebarWidth-ut6NNk5Y.js → useSidebarWidth-CBCcbSLg.js} +1 -1
- package/client-dist/assets/{useSourceControlCleanLanding-DxrwogwF.js → useSourceControlCleanLanding-VDlft5tr.js} +1 -1
- package/client-dist/assets/{useStableToolPreviewRendering-CcrkchTG.js → useStableToolPreviewRendering-hbVp38Jd.js} +1 -1
- package/client-dist/assets/{useStreamingEnabled-EdvW04Vz.js → useStreamingEnabled-hU1g8i7_.js} +1 -1
- package/client-dist/assets/{useTabTitleActivityPreference-B0suFUHK.js → useTabTitleActivityPreference-DhREY7m2.js} +1 -1
- package/client-dist/assets/{useVhostAccess-2ZKr0Lcl.js → useVhostAccess-DUtn_sH1.js} +1 -1
- package/client-dist/assets/{useWorkflowTags-_4F_41YI.js → useWorkflowTags-DxbEBqtf.js} +1 -1
- package/client-dist/assets/{vennDiagram-4TSXK5OY-26XZDUe6.js → vennDiagram-4TSXK5OY-CSGBq-Ur.js} +1 -1
- package/client-dist/assets/{wardleyDiagram-VM6X3IG4-YvZ37BJ7.js → wardleyDiagram-VM6X3IG4-DIMvcaMb.js} +1 -1
- package/client-dist/assets/{xychartDiagram-S5SC5T6Z-BMT0MEGz.js → xychartDiagram-S5SC5T6Z-TYXSqT3w.js} +1 -1
- package/client-dist/assets/zh-CN-DadySLj9.js +7 -0
- package/client-dist/index.html +3 -3
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +29 -10
- package/dist/app.js.map +1 -1
- package/dist/artifacts/ArtifactServer.d.ts +2 -0
- package/dist/artifacts/ArtifactServer.d.ts.map +1 -1
- package/dist/artifacts/ArtifactServer.js +79 -1
- package/dist/artifacts/ArtifactServer.js.map +1 -1
- package/dist/auth/limitedUserPolicy.d.ts +9 -5
- package/dist/auth/limitedUserPolicy.d.ts.map +1 -1
- package/dist/auth/limitedUserPolicy.js +64 -35
- package/dist/auth/limitedUserPolicy.js.map +1 -1
- package/dist/auth/principal.d.ts +6 -0
- package/dist/auth/principal.d.ts.map +1 -1
- package/dist/auth/principal.js +6 -0
- package/dist/auth/principal.js.map +1 -1
- package/dist/frontend/static.d.ts.map +1 -1
- package/dist/frontend/static.js +2 -1
- package/dist/frontend/static.js.map +1 -1
- package/dist/middleware/authenticated-transport.d.ts +13 -0
- package/dist/middleware/authenticated-transport.d.ts.map +1 -1
- package/dist/middleware/authenticated-transport.js +12 -0
- package/dist/middleware/authenticated-transport.js.map +1 -1
- package/dist/middleware/limited-users.d.ts +9 -5
- package/dist/middleware/limited-users.d.ts.map +1 -1
- package/dist/middleware/limited-users.js +37 -23
- package/dist/middleware/limited-users.js.map +1 -1
- package/dist/routes/file-edit.d.ts +18 -0
- package/dist/routes/file-edit.d.ts.map +1 -0
- package/dist/routes/file-edit.js +244 -0
- package/dist/routes/file-edit.js.map +1 -0
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/files.js +34 -9
- package/dist/routes/files.js.map +1 -1
- package/dist/routes/pdfjs.d.ts +9 -0
- package/dist/routes/pdfjs.d.ts.map +1 -0
- package/dist/routes/pdfjs.js +34 -0
- package/dist/routes/pdfjs.js.map +1 -0
- package/dist/routes/public-file-shares.d.ts +6 -0
- package/dist/routes/public-file-shares.d.ts.map +1 -1
- package/dist/routes/public-file-shares.js +22 -10
- package/dist/routes/public-file-shares.js.map +1 -1
- package/dist/routes/public-shares.d.ts.map +1 -1
- package/dist/routes/public-shares.js +18 -1
- package/dist/routes/public-shares.js.map +1 -1
- package/dist/routes/recents.d.ts +4 -1
- package/dist/routes/recents.d.ts.map +1 -1
- package/dist/routes/recents.js +7 -0
- package/dist/routes/recents.js.map +1 -1
- package/dist/routes/sessions.d.ts.map +1 -1
- package/dist/routes/sessions.js +4 -0
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +7 -2
- package/dist/routes/settings.d.ts.map +1 -1
- package/dist/routes/settings.js +43 -1
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/version.d.ts.map +1 -1
- package/dist/routes/version.js +1 -0
- package/dist/routes/version.js.map +1 -1
- package/dist/routes/ws-relay-handlers.d.ts +12 -0
- package/dist/routes/ws-relay-handlers.d.ts.map +1 -1
- package/dist/routes/ws-relay-handlers.js +25 -4
- package/dist/routes/ws-relay-handlers.js.map +1 -1
- package/dist/routes/ws-relay.d.ts.map +1 -1
- package/dist/routes/ws-relay.js +8 -0
- package/dist/routes/ws-relay.js.map +1 -1
- package/dist/sdk/providers/agent-self.js +1 -1
- package/dist/sdk/providers/agent-self.js.map +1 -1
- package/dist/sdk/providers/claude.d.ts +1 -0
- package/dist/sdk/providers/claude.d.ts.map +1 -1
- package/dist/sdk/providers/claude.js +7 -0
- package/dist/sdk/providers/claude.js.map +1 -1
- package/dist/sdk/providers/codex-model-catalog.d.ts.map +1 -1
- package/dist/sdk/providers/codex-model-catalog.js +5 -3
- package/dist/sdk/providers/codex-model-catalog.js.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/ContentItem.d.ts +4 -1
- package/dist/sdk/providers/codex-protocol/generated/ContentItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/FunctionCallOutputContentItem.d.ts +4 -1
- package/dist/sdk/providers/codex-protocol/generated/FunctionCallOutputContentItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/Personality.d.ts +3 -0
- package/dist/sdk/providers/codex-protocol/generated/Personality.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppDisplayMode.d.ts +2 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppDisplayMode.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/{ThreadRollbackParams.js → McpAppDisplayMode.js} +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppDisplayMode.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppUi.d.ts +9 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppUi.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/{ThreadRollbackResponse.js → McpAppUi.js} +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppUi.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/Thread.d.ts +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkResponse.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkResponse.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadItem.d.ts +6 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeParams.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeResponse.d.ts +9 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeResponse.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartParams.d.ts +9 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartResponse.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartResponse.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnStartParams.d.ts +7 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnStartParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/UserInput.d.ts +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/UserInput.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/index.d.ts +0 -2
- package/dist/sdk/providers/codex-protocol/index.d.ts.map +1 -1
- package/dist/sdk/providers/codex.d.ts +23 -2
- package/dist/sdk/providers/codex.d.ts.map +1 -1
- package/dist/sdk/providers/codex.js +55 -22
- package/dist/sdk/providers/codex.js.map +1 -1
- package/dist/sdk/providers/index.d.ts.map +1 -1
- package/dist/sdk/providers/index.js +4 -1
- package/dist/sdk/providers/index.js.map +1 -1
- package/dist/sdk/providers/opencode.d.ts +9 -0
- package/dist/sdk/providers/opencode.d.ts.map +1 -1
- package/dist/sdk/providers/opencode.js +129 -76
- package/dist/sdk/providers/opencode.js.map +1 -1
- package/dist/sdk/providers/provider-session-owner.d.ts +9 -0
- package/dist/sdk/providers/provider-session-owner.d.ts.map +1 -1
- package/dist/sdk/providers/provider-session-owner.js +39 -3
- package/dist/sdk/providers/provider-session-owner.js.map +1 -1
- package/dist/sdk/providers/types.d.ts +13 -0
- package/dist/sdk/providers/types.d.ts.map +1 -1
- package/dist/sdk/providers/types.js.map +1 -1
- package/dist/services/ArtifactRebuildService.d.ts +67 -0
- package/dist/services/ArtifactRebuildService.d.ts.map +1 -0
- package/dist/services/ArtifactRebuildService.js +229 -0
- package/dist/services/ArtifactRebuildService.js.map +1 -0
- package/dist/services/DirtyFileEditorService.d.ts +2 -0
- package/dist/services/DirtyFileEditorService.d.ts.map +1 -1
- package/dist/services/DirtyFileEditorService.js +20 -1
- package/dist/services/DirtyFileEditorService.js.map +1 -1
- package/dist/services/PdfjsAssetCache.d.ts +20 -0
- package/dist/services/PdfjsAssetCache.d.ts.map +1 -0
- package/dist/services/PdfjsAssetCache.js +131 -0
- package/dist/services/PdfjsAssetCache.js.map +1 -0
- package/dist/services/SessionCatalogService.d.ts +27 -0
- package/dist/services/SessionCatalogService.d.ts.map +1 -1
- package/dist/services/SessionCatalogService.js +129 -34
- package/dist/services/SessionCatalogService.js.map +1 -1
- package/dist/sessions/opencode-reader.d.ts +2 -1
- package/dist/sessions/opencode-reader.d.ts.map +1 -1
- package/dist/sessions/opencode-reader.js +30 -1
- package/dist/sessions/opencode-reader.js.map +1 -1
- package/dist/sessions/types.d.ts +6 -0
- package/dist/sessions/types.d.ts.map +1 -1
- package/dist/supervisor/Process.d.ts +7 -0
- package/dist/supervisor/Process.d.ts.map +1 -1
- package/dist/supervisor/Process.js +48 -3
- package/dist/supervisor/Process.js.map +1 -1
- package/dist/supervisor/Supervisor.d.ts.map +1 -1
- package/dist/supervisor/Supervisor.js +11 -0
- package/dist/supervisor/Supervisor.js.map +1 -1
- package/dist/supervisor/types.d.ts +3 -1
- package/dist/supervisor/types.d.ts.map +1 -1
- package/dist/supervisor/types.js.map +1 -1
- package/package.json +3 -3
- package/client-dist/assets/AboutSettings-BlEONE7w.js +0 -1
- package/client-dist/assets/AgentsPage-CBku9RWz.js +0 -2
- package/client-dist/assets/App-DWHvFKob.js +0 -2
- package/client-dist/assets/AppearanceSettings-BSEBjSjr.js +0 -2
- package/client-dist/assets/AppsSettings-iDL6Xuaa.js +0 -1
- package/client-dist/assets/AttachmentChip-DHKr4EfG.js +0 -1
- package/client-dist/assets/BangCommandsPage-yX8grXp9.js +0 -1
- package/client-dist/assets/BrowserDebugToolbarButton-B-b7N4cr.js +0 -1
- package/client-dist/assets/ComputerControlSettings-DzRDwfJ1.js +0 -1
- package/client-dist/assets/DevelopmentSettings-Bf9gyeU0.js +0 -1
- package/client-dist/assets/DevicesSettings-dbZHFEEc.js +0 -1
- package/client-dist/assets/EmulatorPage-CKJwVTFq.js +0 -1
- package/client-dist/assets/EmulatorSettings-BV9Bg3Xk.js +0 -1
- package/client-dist/assets/EnvironmentSettings-DmOTuSwm.js +0 -1
- package/client-dist/assets/FilePage-DnPW5Pbc.js +0 -1
- package/client-dist/assets/FilterDropdown-CB_tRt6g.css +0 -1
- package/client-dist/assets/FilterDropdown-DpS1eMEf.js +0 -1
- package/client-dist/assets/FloatingActionButton-DBIoFwff.js +0 -1
- package/client-dist/assets/GlobalSessionsPage-Dbnuis89.css +0 -1
- package/client-dist/assets/GlobalSessionsPage-DcmQcX7q.js +0 -2
- package/client-dist/assets/HostIdentityContext-D5aBdejC.js +0 -1
- package/client-dist/assets/HostsPage-C1ZTrhJv.js +0 -1
- package/client-dist/assets/InboxPage-Cepu8VGM.js +0 -1
- package/client-dist/assets/IssueSettings-xRU8E-xR.js +0 -1
- package/client-dist/assets/IssuesPage-c6PUStFT.js +0 -1
- package/client-dist/assets/LifecycleWebhooksSettings-CZcZATjJ.js +0 -1
- package/client-dist/assets/MessageInput-B0t6b_Hd.js +0 -3
- package/client-dist/assets/MessageInputToolbar-DdP4tB2S.css +0 -1
- package/client-dist/assets/MessageInputToolbar-rhYW1xGJ.js +0 -58
- package/client-dist/assets/MessageList-Dcvfxbeq.css +0 -1
- package/client-dist/assets/MessageList-dH63bflu.js +0 -4
- package/client-dist/assets/Modal-QUinFhBP.js +0 -16
- package/client-dist/assets/ModelSettings-CcWkVSEK.js +0 -1
- package/client-dist/assets/NavigationLayout-BkOsag-J.js +0 -2
- package/client-dist/assets/NewSessionPage-DcZ9YjmC.js +0 -1
- package/client-dist/assets/NotificationsSettings-DoVzfeME.js +0 -1
- package/client-dist/assets/PageHeader-BaYMLVHI.js +0 -1
- package/client-dist/assets/PerformanceSettings-dwoVtUlX.js +0 -1
- package/client-dist/assets/ProjectTemplatesSettings-BlMWq1wb.js +0 -1
- package/client-dist/assets/ProjectsPage-B5VBairc.js +0 -1
- package/client-dist/assets/ProviderChildSessionPage-B3eTTTjF.js +0 -1
- package/client-dist/assets/ProvidersSettings-OUKp5-Hb.js +0 -1
- package/client-dist/assets/RemoteAccessSettings-Bn0ng7s4.js +0 -1
- package/client-dist/assets/RemoteExecutorsSettings-2Qh-9Qv_.js +0 -1
- package/client-dist/assets/SchemaValidationContext-CIAd7icg.js +0 -1
- package/client-dist/assets/SessionPage-B1g1UFEV.js +0 -49
- package/client-dist/assets/SessionPage-BiV0X3n1.css +0 -1
- package/client-dist/assets/SourceControlSettings-BQfC1KbV.js +0 -1
- package/client-dist/assets/SpeechControlMenu-BIv0O1la.js +0 -2
- package/client-dist/assets/StorageSettings-DQcG9Mbq.js +0 -1
- package/client-dist/assets/ToolbarSettings-CmHVAejU.js +0 -1
- package/client-dist/assets/UsersSettings-COgiiV9D.js +0 -1
- package/client-dist/assets/WorkstreamsPage-DKLRDEAp.js +0 -1
- package/client-dist/assets/channel-C-7AVqtf.js +0 -1
- package/client-dist/assets/classDiagram-ZZMXUADV-DkRr8VcO.js +0 -1
- package/client-dist/assets/classDiagram-v2-VYDZK3BY-DkRr8VcO.js +0 -1
- package/client-dist/assets/de-DKHK9Tu3.js +0 -6
- package/client-dist/assets/es-XSkBrKBg.js +0 -6
- package/client-dist/assets/fr-DKUJaPhN.js +0 -6
- package/client-dist/assets/index-BBpZzMBa.js +0 -2
- package/client-dist/assets/index-BUrcmRdN.js +0 -76
- package/client-dist/assets/index-CA-BRFYh.js +0 -1
- package/client-dist/assets/index-wA2zlxt-.css +0 -1
- package/client-dist/assets/ja-BDnQUlyD.js +0 -6
- package/client-dist/assets/long-context-effort-warning-BGls6uvf.js +0 -1
- package/client-dist/assets/newSessionPrefill-DkkSfnYR.js +0 -1
- package/client-dist/assets/providerChildSessions-ClrSXOQr.js +0 -80
- package/client-dist/assets/providerChildSessions-D2O1SLei.css +0 -1
- package/client-dist/assets/sessionHistorySearch.worker-BGlVvPYq.js +0 -60
- package/client-dist/assets/stateDiagram-v2-MP3YSRHH-CBvcZngO.js +0 -1
- package/client-dist/assets/swimlanesDiagram-VR7AAH4N-DKVyQBDp.js +0 -8
- package/client-dist/assets/useAcliCommentarySetting-DxndlmkH.js +0 -9
- package/client-dist/assets/useActivityBusState-CINl9yjP.js +0 -1
- package/client-dist/assets/useModelSettings-DoDJRymT.js +0 -1
- package/client-dist/assets/zh-CN-FVXKSeP_.js +0 -7
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.d.ts +0 -14
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.d.ts.map +0 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.js.map +0 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.d.ts +0 -12
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.d.ts.map +0 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.js.map +0 -1
- /package/client-dist/assets/{Modal-EC-u4IZ7.css → index-EC-u4IZ7.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as he}from"./chunk-2Q5K7J3B-ikUS9MZO.js";import{p as $e}from"./chunk-JWPE2WC7-Px4jgxzE.js";import{q as fe,p as ge,s as ue,g as ye,a as xe,b as me,_ as $,A as Q,l as k,j as pe,c as z,z as be,B as we,r as ke,k as L,D as ve,E as Ee,F as Be}from"./mermaid.core-CdC8AeOx.js";import{p as Ce}from"./cynefin-OW5HDTMX-CJkFJ0DX.js";import"./index-BUrcmRdN.js";import"./react-runtime-D-UPQ57m.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ee.gitGraph,D=$(()=>ve({...Te,...Q().gitGraph}),"getConfig"),i=new he(()=>{const e=D(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function K(){return Be({length:7})}$(K,"getID");function ae(e,r){const t=Object.create(null);return e.reduce((o,s)=>{const d=r(s);return t[d]||(t[d]=!0,o.push(s)),o},[])}$(ae,"uniqBy");var Le=$(function(e){i.records.direction=e},"setDirection"),Me=$(function(e){k.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{i.records.options=JSON.parse(e)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),Re=$(function(){return i.records.options},"getOptions"),Ie=$(function(e){let r=e.msg,t=e.id;const o=e.type;let s=e.tags;k.info("commit",r,t,o,s),k.debug("Entering commit:",r,t,o,s);const d=D();t=L.sanitizeText(t,d),r=L.sanitizeText(r,d),s=s==null?void 0:s.map(a=>L.sanitizeText(a,d));const n={id:t||i.records.seq+"-"+K(),message:r,seq:i.records.seq++,type:o??p.NORMAL,tags:s??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=n,k.info("main branch",d.mainBranchName),i.records.commits.has(n.id)&&k.warn(`Commit ID ${n.id} already exists`),i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),k.debug("in pushCommit "+n.id)},"commit"),Oe=$(function(e){let r=e.name;const t=e.order;if(r=L.sanitizeText(r,D()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:t}),ne(r),k.debug("in createBranch")},"branch"),_e=$(e=>{let r=e.branch,t=e.id;const o=e.type,s=e.tags,d=D();r=L.sanitizeText(r,d),t&&(t=L.sanitizeText(t,d));const n=i.records.branches.get(i.records.currBranch),a=i.records.branches.get(r),l=n?i.records.commits.get(n):void 0,h=a?i.records.commits.get(a):void 0;if(l&&h&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!i.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(h===void 0||!h){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===h){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&i.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,token:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${o} ${s==null?void 0:s.join(" ")}`]},c}const g=a||"",f={id:t||`${i.records.seq}-${K()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,g],branch:i.records.currBranch,type:p.MERGE,customType:o,customId:!!t,tags:s??[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),k.debug(i.records.branches),k.debug("in mergeBranch")},"merge"),Ge=$(function(e){let r=e.id,t=e.targetId,o=e.tags,s=e.parent;k.debug("Entering cherryPick:",r,t,o);const d=D();if(r=L.sanitizeText(r,d),t=L.sanitizeText(t,d),o=o==null?void 0:o.map(l=>L.sanitizeText(l,d)),s=L.sanitizeText(s,d),!r||!i.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=i.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(n.parents)&&n.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===p.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!i.records.commits.has(t)){if(a===i.records.currBranch){const f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const l=i.records.branches.get(i.records.currBranch);if(l===void 0||!l){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const h=i.records.commits.get(l);if(h===void 0||!h){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const g={id:i.records.seq+"-"+K(),message:`cherry-picked ${n==null?void 0:n.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,n.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===p.MERGE?`|parent:${s}`:""}`]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),k.debug(i.records.branches),k.debug("in cherryPick")}},"cherryPick"),ne=$(function(e){if(e=L.sanitizeText(e,D()),i.records.branches.has(e)){i.records.currBranch=e;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function X(e,r,t){const o=e.indexOf(r);o===-1?e.push(t):e.splice(o,1,t)}$(X,"upsert");function Z(e){const r=e.reduce((s,d)=>s.seq>d.seq?s:d,e[0]);let t="";e.forEach(function(s){s===r?t+=" *":t+=" |"});const o=[t,r.id,r.seq];for(const s in i.records.branches)i.records.branches.get(s)===r.id&&o.push(s);if(k.debug(o.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const s=i.records.commits.get(r.parents[0]);X(e,r,s),r.parents[1]&&e.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const s=i.records.commits.get(r.parents[0]);X(e,r,s)}}e=ae(e,s=>s.id),Z(e)}$(Z,"prettyPrintCommitHistory");var He=$(function(){k.debug(i.records.commits);const e=se()[0];Z([e])},"prettyPrint"),Ae=$(function(){i.reset(),ke()},"clear"),Se=$(function(){return[...i.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=$(function(){return i.records.branches},"getBranches"),qe=$(function(){return i.records.commits},"getCommits"),se=$(function(){const e=[...i.records.commits.values()];return e.forEach(function(r){k.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=$(function(){return i.records.currBranch},"getCurrentBranch"),We=$(function(){return i.records.direction},"getDirection"),Ne=$(function(){return i.records.head},"getHead"),oe={commitType:p,getConfig:D,setDirection:Le,setOptions:Me,getOptions:Re,commit:Ie,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Ae,getBranchesAsObjArray:Se,getBranches:De,getCommits:qe,getCommitsArray:se,getCurrentBranch:Pe,getDirection:We,getHead:Ne,setAccTitle:me,getAccTitle:xe,getAccDescription:ye,setAccDescription:ue,setDiagramTitle:ge,getDiagramTitle:fe},Fe=$((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=$((e,r)=>{const o={Commit:$(s=>r.commit(Ye(s)),"Commit"),Branch:$(s=>r.branch(je(s)),"Branch"),Merge:$(s=>r.merge(Ue(s)),"Merge"),Checkout:$(s=>r.checkout(Ke(s)),"Checkout"),CherryPicking:$(s=>r.cherryPick(Ve(s)),"CherryPicking")}[e.$type];o?o(e):k.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=$(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?p[e.type]:p.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=$(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ue=$(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?p[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=$(e=>e.branch,"parseCheckout"),Ve=$(e=>{var t;return{id:e.id,targetId:"",tags:((t=e.tags)==null?void 0:t.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),Xe={parse:$(async e=>{const r=await Ce("gitGraph",e);k.debug(r),Fe(r,oe)},"parse")},G=10,H=40,M=4,I=2,A=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,ee=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),S=$((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,T=new Map,j=30,N=new Map,U=[],O=0,y="LR",Qe=$(()=>{C.clear(),T.clear(),N.clear(),O=0,U=[],y="LR"},"clear"),ce=$(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(o=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=o.trim(),r.appendChild(s)}),r},"drawText"),ie=$(e=>{let r,t,o;return y==="BT"?(t=$((s,d)=>s<=d,"comparisonFunc"),o=1/0):(t=$((s,d)=>s>=d,"comparisonFunc"),o=0),e.forEach(s=>{var n,a;const d=y==="TB"||y=="BT"?(n=T.get(s))==null?void 0:n.y:(a=T.get(s))==null?void 0:a.x;d!==void 0&&t(d,o)&&(r=s,o=d)}),r},"findClosestParent"),Ze=$(e=>{let r="",t=1/0;return e.forEach(o=>{const s=T.get(o).y;s<=t&&(r=o,t=s)}),r||void 0},"findClosestParentBT"),er=$((e,r,t)=>{let o=t,s=t;const d=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=tr(a),s=Math.max(o,s)):d.push(a),ar(a,o)}),o=s,d.forEach(n=>{nr(n,o,t)}),e.forEach(n=>{const a=r.get(n);if(a!=null&&a.parents.length){const l=Ze(a.parents);o=T.get(l).y-H,o<=s&&(s=o);const h=C.get(a.branch).pos,g=o-G;T.set(a.id,{x:h,y:g})}})},"setParallelBTPos"),rr=$(e=>{var o;const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=(o=T.get(r))==null?void 0:o.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=$(e=>rr(e)+H,"calculateCommitPosition"),ar=$((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const o=t.pos,s=r+G;return T.set(e.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),nr=$((e,r,t)=>{const o=C.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const s=r+t,d=o.pos;T.set(e.id,{x:d,y:s})},"setRootPosition"),sr=$((e,r,t,o,s,d)=>{const{theme:n}=z(),a=V.has(n??""),l=ee.has(n??""),h=Je.has(n??"");if(d===p.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${S(s,A,l)} ${o}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${S(s,A,l)} ${o}-inner`);else if(d===p.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${S(s,A,l)}`),d===p.MERGE){const f=e.append("circle");f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?5:6),f.attr("class",`commit ${o} ${r.id} commit${S(s,A,l)}`)}if(d===p.REVERSE){const f=e.append("path"),c=a?4:5;f.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${o} ${r.id} commit${S(s,A,l)}`)}}},"drawCommitBullet"),or=$((e,r,t,o,s)=>{var d;if(r.type!==p.CHERRY_PICK&&(r.customId&&r.type===p.MERGE||r.type!==p.MERGE)&&s.showCommitLabel){const n=e.append("g"),a=n.insert("rect").attr("class","commit-label-bkg"),l=n.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(r.id),h=(d=l.node())==null?void 0:d.getBBox();if(h&&(a.attr("x",t.posWithOffset-h.width/2-I).attr("y",t.y+13.5).attr("width",h.width+2*I).attr("height",h.height+2*I),y==="TB"||y==="BT"?(a.attr("x",t.x-(h.width+4*M+5)).attr("y",t.y-12),l.attr("x",t.x-(h.width+4*M)).attr("y",t.y+h.height-12)):l.attr("x",t.posWithOffset-h.width/2),s.rotateCommitLabel))if(y==="TB"||y==="BT")l.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),a.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const g=-7.5-(h.width+10)/25*9.5,f=10+h.width/25*8.5;n.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),cr=$((e,r,t,o)=>{var s;if(r.tags.length>0){let d=0,n=0,a=0;const l=[];for(const h of r.tags.reverse()){const g=e.insert("polygon"),f=e.append("circle"),c=e.append("text").attr("y",t.y-16-d).attr("class","tag-label").text(h),x=(s=c.node())==null?void 0:s.getBBox();if(!x)throw new Error("Tag bbox not found");n=Math.max(n,x.width),a=Math.max(a,x.height),c.attr("x",t.posWithOffset-x.width/2),l.push({tag:c,hole:f,rect:g,yOffset:d}),d+=20}for(const{tag:h,hole:g,rect:f,yOffset:c}of l){const x=a/2,u=t.y-19.2-c;if(f.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{I as he}from"./chunk-2Q5K7J3B-CiP4m_EA.js";import{p as $e}from"./chunk-JWPE2WC7-C6tL-mLF.js";import{q as fe,p as ge,s as ue,g as ye,a as xe,b as me,_ as $,A as Q,l as k,j as pe,c as z,z as be,B as we,r as ke,k as L,D as ve,E as Ee,F as Be}from"./mermaid.core-BCu1nv8H.js";import{p as Ce}from"./cynefin-OW5HDTMX-BSQHHXFU.js";import"./index-umZg0LZ6.js";import"./react-runtime-D-UPQ57m.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ee.gitGraph,D=$(()=>ve({...Te,...Q().gitGraph}),"getConfig"),i=new he(()=>{const e=D(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function K(){return Be({length:7})}$(K,"getID");function ae(e,r){const t=Object.create(null);return e.reduce((o,s)=>{const d=r(s);return t[d]||(t[d]=!0,o.push(s)),o},[])}$(ae,"uniqBy");var Le=$(function(e){i.records.direction=e},"setDirection"),Me=$(function(e){k.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{i.records.options=JSON.parse(e)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),Re=$(function(){return i.records.options},"getOptions"),Ie=$(function(e){let r=e.msg,t=e.id;const o=e.type;let s=e.tags;k.info("commit",r,t,o,s),k.debug("Entering commit:",r,t,o,s);const d=D();t=L.sanitizeText(t,d),r=L.sanitizeText(r,d),s=s==null?void 0:s.map(a=>L.sanitizeText(a,d));const n={id:t||i.records.seq+"-"+K(),message:r,seq:i.records.seq++,type:o??p.NORMAL,tags:s??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=n,k.info("main branch",d.mainBranchName),i.records.commits.has(n.id)&&k.warn(`Commit ID ${n.id} already exists`),i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),k.debug("in pushCommit "+n.id)},"commit"),Oe=$(function(e){let r=e.name;const t=e.order;if(r=L.sanitizeText(r,D()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:t}),ne(r),k.debug("in createBranch")},"branch"),_e=$(e=>{let r=e.branch,t=e.id;const o=e.type,s=e.tags,d=D();r=L.sanitizeText(r,d),t&&(t=L.sanitizeText(t,d));const n=i.records.branches.get(i.records.currBranch),a=i.records.branches.get(r),l=n?i.records.commits.get(n):void 0,h=a?i.records.commits.get(a):void 0;if(l&&h&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!i.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(h===void 0||!h){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===h){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&i.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,token:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${o} ${s==null?void 0:s.join(" ")}`]},c}const g=a||"",f={id:t||`${i.records.seq}-${K()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,g],branch:i.records.currBranch,type:p.MERGE,customType:o,customId:!!t,tags:s??[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),k.debug(i.records.branches),k.debug("in mergeBranch")},"merge"),Ge=$(function(e){let r=e.id,t=e.targetId,o=e.tags,s=e.parent;k.debug("Entering cherryPick:",r,t,o);const d=D();if(r=L.sanitizeText(r,d),t=L.sanitizeText(t,d),o=o==null?void 0:o.map(l=>L.sanitizeText(l,d)),s=L.sanitizeText(s,d),!r||!i.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=i.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(n.parents)&&n.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===p.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!i.records.commits.has(t)){if(a===i.records.currBranch){const f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const l=i.records.branches.get(i.records.currBranch);if(l===void 0||!l){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const h=i.records.commits.get(l);if(h===void 0||!h){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const g={id:i.records.seq+"-"+K(),message:`cherry-picked ${n==null?void 0:n.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,n.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===p.MERGE?`|parent:${s}`:""}`]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),k.debug(i.records.branches),k.debug("in cherryPick")}},"cherryPick"),ne=$(function(e){if(e=L.sanitizeText(e,D()),i.records.branches.has(e)){i.records.currBranch=e;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function X(e,r,t){const o=e.indexOf(r);o===-1?e.push(t):e.splice(o,1,t)}$(X,"upsert");function Z(e){const r=e.reduce((s,d)=>s.seq>d.seq?s:d,e[0]);let t="";e.forEach(function(s){s===r?t+=" *":t+=" |"});const o=[t,r.id,r.seq];for(const s in i.records.branches)i.records.branches.get(s)===r.id&&o.push(s);if(k.debug(o.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const s=i.records.commits.get(r.parents[0]);X(e,r,s),r.parents[1]&&e.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const s=i.records.commits.get(r.parents[0]);X(e,r,s)}}e=ae(e,s=>s.id),Z(e)}$(Z,"prettyPrintCommitHistory");var He=$(function(){k.debug(i.records.commits);const e=se()[0];Z([e])},"prettyPrint"),Ae=$(function(){i.reset(),ke()},"clear"),Se=$(function(){return[...i.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=$(function(){return i.records.branches},"getBranches"),qe=$(function(){return i.records.commits},"getCommits"),se=$(function(){const e=[...i.records.commits.values()];return e.forEach(function(r){k.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=$(function(){return i.records.currBranch},"getCurrentBranch"),We=$(function(){return i.records.direction},"getDirection"),Ne=$(function(){return i.records.head},"getHead"),oe={commitType:p,getConfig:D,setDirection:Le,setOptions:Me,getOptions:Re,commit:Ie,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Ae,getBranchesAsObjArray:Se,getBranches:De,getCommits:qe,getCommitsArray:se,getCurrentBranch:Pe,getDirection:We,getHead:Ne,setAccTitle:me,getAccTitle:xe,getAccDescription:ye,setAccDescription:ue,setDiagramTitle:ge,getDiagramTitle:fe},Fe=$((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=$((e,r)=>{const o={Commit:$(s=>r.commit(Ye(s)),"Commit"),Branch:$(s=>r.branch(je(s)),"Branch"),Merge:$(s=>r.merge(Ue(s)),"Merge"),Checkout:$(s=>r.checkout(Ke(s)),"Checkout"),CherryPicking:$(s=>r.cherryPick(Ve(s)),"CherryPicking")}[e.$type];o?o(e):k.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=$(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?p[e.type]:p.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=$(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ue=$(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?p[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=$(e=>e.branch,"parseCheckout"),Ve=$(e=>{var t;return{id:e.id,targetId:"",tags:((t=e.tags)==null?void 0:t.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),Xe={parse:$(async e=>{const r=await Ce("gitGraph",e);k.debug(r),Fe(r,oe)},"parse")},G=10,H=40,M=4,I=2,A=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,ee=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),S=$((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,T=new Map,j=30,N=new Map,U=[],O=0,y="LR",Qe=$(()=>{C.clear(),T.clear(),N.clear(),O=0,U=[],y="LR"},"clear"),ce=$(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(o=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=o.trim(),r.appendChild(s)}),r},"drawText"),ie=$(e=>{let r,t,o;return y==="BT"?(t=$((s,d)=>s<=d,"comparisonFunc"),o=1/0):(t=$((s,d)=>s>=d,"comparisonFunc"),o=0),e.forEach(s=>{var n,a;const d=y==="TB"||y=="BT"?(n=T.get(s))==null?void 0:n.y:(a=T.get(s))==null?void 0:a.x;d!==void 0&&t(d,o)&&(r=s,o=d)}),r},"findClosestParent"),Ze=$(e=>{let r="",t=1/0;return e.forEach(o=>{const s=T.get(o).y;s<=t&&(r=o,t=s)}),r||void 0},"findClosestParentBT"),er=$((e,r,t)=>{let o=t,s=t;const d=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=tr(a),s=Math.max(o,s)):d.push(a),ar(a,o)}),o=s,d.forEach(n=>{nr(n,o,t)}),e.forEach(n=>{const a=r.get(n);if(a!=null&&a.parents.length){const l=Ze(a.parents);o=T.get(l).y-H,o<=s&&(s=o);const h=C.get(a.branch).pos,g=o-G;T.set(a.id,{x:h,y:g})}})},"setParallelBTPos"),rr=$(e=>{var o;const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=(o=T.get(r))==null?void 0:o.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=$(e=>rr(e)+H,"calculateCommitPosition"),ar=$((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const o=t.pos,s=r+G;return T.set(e.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),nr=$((e,r,t)=>{const o=C.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const s=r+t,d=o.pos;T.set(e.id,{x:d,y:s})},"setRootPosition"),sr=$((e,r,t,o,s,d)=>{const{theme:n}=z(),a=V.has(n??""),l=ee.has(n??""),h=Je.has(n??"");if(d===p.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${S(s,A,l)} ${o}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${S(s,A,l)} ${o}-inner`);else if(d===p.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${S(s,A,l)}`),d===p.MERGE){const f=e.append("circle");f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?5:6),f.attr("class",`commit ${o} ${r.id} commit${S(s,A,l)}`)}if(d===p.REVERSE){const f=e.append("path"),c=a?4:5;f.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${o} ${r.id} commit${S(s,A,l)}`)}}},"drawCommitBullet"),or=$((e,r,t,o,s)=>{var d;if(r.type!==p.CHERRY_PICK&&(r.customId&&r.type===p.MERGE||r.type!==p.MERGE)&&s.showCommitLabel){const n=e.append("g"),a=n.insert("rect").attr("class","commit-label-bkg"),l=n.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(r.id),h=(d=l.node())==null?void 0:d.getBBox();if(h&&(a.attr("x",t.posWithOffset-h.width/2-I).attr("y",t.y+13.5).attr("width",h.width+2*I).attr("height",h.height+2*I),y==="TB"||y==="BT"?(a.attr("x",t.x-(h.width+4*M+5)).attr("y",t.y-12),l.attr("x",t.x-(h.width+4*M)).attr("y",t.y+h.height-12)):l.attr("x",t.posWithOffset-h.width/2),s.rotateCommitLabel))if(y==="TB"||y==="BT")l.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),a.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const g=-7.5-(h.width+10)/25*9.5,f=10+h.width/25*8.5;n.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),cr=$((e,r,t,o)=>{var s;if(r.tags.length>0){let d=0,n=0,a=0;const l=[];for(const h of r.tags.reverse()){const g=e.insert("polygon"),f=e.append("circle"),c=e.append("text").attr("y",t.y-16-d).attr("class","tag-label").text(h),x=(s=c.node())==null?void 0:s.getBBox();if(!x)throw new Error("Tag bbox not found");n=Math.max(n,x.width),a=Math.max(a,x.height),c.attr("x",t.posWithOffset-x.width/2),l.push({tag:c,hole:f,rect:g,yOffset:d}),d+=20}for(const{tag:h,hole:g,rect:f,yOffset:c}of l){const x=a/2,u=t.y-19.2-c;if(f.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${o-n/2-M/2},${u+I}
|
|
3
3
|
${o-n/2-M/2},${u-I}
|
|
4
4
|
${t.posWithOffset-n/2-M},${u-x-I}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as n}from"./index-
|
|
1
|
+
import{S as n}from"./index-umZg0LZ6.js";function e(){try{const t=localStorage.getItem(n);if(t){const s=JSON.parse(t);if(s.version===1&&Array.isArray(s.hosts))return s}}catch{}return{version:1,hosts:[]}}function i(t){try{localStorage.setItem(n,JSON.stringify(t))}catch{}}function c(t,s){const a=e(),o=a.hosts.find(r=>r.id===t);o&&(o.session=s,o.lastConnected=new Date().toISOString(),i(a))}function f(t){return e().hosts.find(a=>a.mode==="relay"&&a.relayUsername===t)}function S(t){return e().hosts.find(a=>a.id===t)}export{S as a,f as g,e as l,c as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as Y}from"./react-runtime-D-UPQ57m.js";import{r as V}from"./remoteRoutePaths-CiDZeM2I.js";function Z(e,r){for(var l=0;l<r.length;l++){const d=r[l];if(typeof d!="string"&&!Array.isArray(d)){for(const n in d)if(n!=="default"&&!(n in e)){const t=Object.getOwnPropertyDescriptor(d,n);t&&Object.defineProperty(e,n,t.get?t:{enumerable:!0,get:()=>d[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var N={},T={},C={},G;function X(){if(G)return C;G=1,Object.defineProperty(C,"__esModule",{value:!0}),C.crossEnvCrypto=void 0;try{const e=typeof window<"u"&&window.crypto||V.webcrypto;if(e){if(!e.subtle)throw new Error("Crypto.Subtle is undefined. Make sure you are using HTTPS in a compatible browser.");const r=l=>d=>e.subtle.digest(l,d);C.crossEnvCrypto={randomBytes:e.getRandomValues.bind(e),hashFunctions:{SHA1:r("SHA-1"),SHA256:r("SHA-256"),SHA384:r("SHA-384"),SHA512:r("SHA-512")}}}else{const r=V,l=d=>n=>r.createHash(d).update(n).digest().buffer;C.crossEnvCrypto={randomBytes:r.randomFillSync,hashFunctions:{SHA1:l("sha1"),SHA256:l("sha256"),SHA384:l("sha384"),SHA512:l("sha512")}}}}catch(e){throw console.error(e),new Error("No suitable crypto library was found. You may need a polyfill.")}return C}var U;function Q(){if(U)return T;U=1,Object.defineProperty(T,"__esModule",{value:!0}),T.SRPParameters=void 0;const e=X();class r{constructor(d=r.PrimeGroup[2048],n=r.H.SHA512){if(this.primeGroup=d,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}return T.SRPParameters=r,r.PrimeGroup={256:{N:BigInt("125617018995153554710546479714086468244499594888726646874671447258204721048803"),g:BigInt(2)},512:{N:BigInt("11144252439149533417835749556168991736939157778924947037200268358613863350040339017097790259154750906072491181606044774215413467851989724116331597513345603"),g:BigInt(2)},768:{N:BigInt("1087179135105457859072065649059069760280540086975817629066444682366896187793570736574549981488868217843627094867924800342887096064844227836735667168319981288765377499806385489913341488724152562880918438701129530606139552645689583147"),g:BigInt(2)},1024:{N:BigInt("167609434410335061345139523764350090260135525329813904557420930309800865859473551531551523800013916573891864789934747039010546328480848979516637673776605610374669426214776197828492691384519453218253702788022233205683635831626913357154941914129985489522629902540768368409482248290641036967659389658897350067939"),g:BigInt(2)},1536:{N:BigInt("1486998185923128292816507353619409521152457662596380074614818966810244974827752411420380336514078832314731499938313197533147998565301020797040787428051479639316928015998415709101293902971072960487527411068082311763171549170528008620813391411445907584912865222076100726050255271567749213905330659264908657221124284665444825474741087704974475795505492821585749417639344967192301749033325359286273431675492866492416941152646940908101472416714421046022696100064262587"),g:BigInt(2)},2048:{N:BigInt("21766174458617435773191008891802753781907668374255538511144643224689886235383840957210909013086056401571399717235807266581649606472148410291413364152197364477180887395655483738115072677402235101762521901569820740293149529620419333266262073471054548368736039519702486226506248861060256971802984953561121442680157668000761429988222457090413873973970171927093992114751765168063614761119615476233422096442783117971236371647333871414335895773474667308967050807005509320424799678417036867928316761272274230314067548291133582479583061439577559347101961771406173684378522703483495337037655006751328447510550299250924469288819"),g:BigInt(2)}},r.H={SHA1:e.crossEnvCrypto.hashFunctions.SHA1,SHA256:e.crossEnvCrypto.hashFunctions.SHA256,SHA384:e.crossEnvCrypto.hashFunctions.SHA384,SHA512:e.crossEnvCrypto.hashFunctions.SHA512},T}var R={},E={},q;function j(){return q||(q=1,(function(e){var r=E&&E.__awaiter||function(c,a,f,h){function y(g){return g instanceof f?g:new f(function(H){H(g)})}return new(f||(f=Promise))(function(g,H){function z(A){try{O(h.next(A))}catch(M){H(M)}}function W(A){try{O(h.throw(A))}catch(M){H(M)}}function O(A){A.done?g(A.value):y(A.value).then(z,W)}O((h=h.apply(c,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.modPow=e.hashBitCount=e.createVerifierAndSalt=e.createVerifier=e.generateRandomBigInt=e.generateRandomString=e.hashPadded=e.hash=e.padStartArrayBuffer=e.stringToArrayBuffer=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=void 0;const l=X(),d=BigInt(0),n=BigInt(1),t=BigInt(2),i=c=>{const a=c.toString(16),f=new ArrayBuffer(Math.ceil(a.length/2)),h=new Uint8Array(f);let y=0;a.length%2!==0&&(h[0]=parseInt(a[0],16),y=1);for(let g=0;g<f.byteLength;g++)h[g+y]=parseInt(a.slice(2*g+y,2*g+2+y),16);return f};e.bigIntToArrayBuffer=i;const o=c=>{const a=[];return new Uint8Array(c).forEach(f=>{a.push(("0"+f.toString(16)).slice(-2))}),BigInt(`0x${a.join("")}`)};e.arrayBufferToBigInt=o;function s(c){return new TextEncoder().encode(c).buffer}e.stringToArrayBuffer=s;const u=(c,a)=>{const f=new Uint8Array(c);if(f.length<a){const h=new Uint8Array(a);return h.fill(0,0,a-f.length),h.set(f,a-f.length),h}return f};e.padStartArrayBuffer=u;function S(c,...a){const f=a.reduce((y,g)=>y+g.byteLength,0),h=new Uint8Array(f);for(let y=0,g=0;g<a.length;g++)h.set(new Uint8Array(a[g]),y),y+=a[g].byteLength;return c.H(h)}e.hash=S;function m(c,a,...f){const h=f.map(y=>e.padStartArrayBuffer(y,a));return S(c,...h)}e.hashPadded=m;function p(c=10){const a=new Uint8Array(Math.ceil(Math.ceil(c/2)));return l.crossEnvCrypto.randomBytes(a),a.reduce((f,h)=>{const y=h.toString(16).toString();return y.length===1?f+"0"+y:f+y},"").slice(0,c)}e.generateRandomString=p;function v(c=16){return e.arrayBufferToBigInt(L(c))}e.generateRandomBigInt=v;function B(c,a,f,h){return r(this,void 0,void 0,function*(){if(!a||!a.trim())throw new Error("Identity (I) must not be null or empty.");if(!f)throw new Error("Salt (s) must not be null.");if(!h)throw new Error("Password (P) must not be null");const y=yield c.computeX(a,f,h);return c.computeVerifier(y)})}e.createVerifier=B;function w(c,a,f,h){return r(this,void 0,void 0,function*(){const y=yield c.generateRandomSalt(h);return{s:y,v:yield B(c,a,y,f)}})}e.createVerifierAndSalt=w;const P=c=>r(void 0,void 0,void 0,function*(){return(yield S(c,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=P;function _(c,a,f){let h=n;for(;a>d;)a%t==n?(h=c*h%f,a-=n):(c=c*c%f,a/=t);return h}e.modPow=_;const L=c=>{const a=new Uint8Array(c);return l.crossEnvCrypto.randomBytes(a),a.buffer}})(E)),E}var F;function x(){if(F)return R;F=1;var e=R&&R.__awaiter||function(d,n,t,i){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function S(v){try{p(i.next(v))}catch(B){u(B)}}function m(v){try{p(i.throw(v))}catch(B){u(B)}}function p(v){v.done?s(v.value):o(v.value).then(S,m)}p((i=i.apply(d,n||[])).next())})};Object.defineProperty(R,"__esModule",{value:!0}),R.SRPRoutines=void 0;const r=j();class l{constructor(n){this.parameters=n}hash(...n){return r.hash(this.parameters,...n)}hashPadded(...n){const t=Math.trunc((this.parameters.NBits+7)/8);return r.hashPadded(this.parameters,t,...n)}computeK(){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hashPadded(r.bigIntToArrayBuffer(this.parameters.primeGroup.N),r.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(n){return e(this,void 0,void 0,function*(){const t=yield r.hashBitCount(this.parameters),i=n||2*t/8;return r.generateRandomBigInt(i)})}computeX(n,t,i){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hash(r.bigIntToArrayBuffer(t),yield this.computeIdentityHash(n,i)))})}computeXStep2(n,t){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hash(r.bigIntToArrayBuffer(n),t))})}computeIdentityHash(n,t){return e(this,void 0,void 0,function*(){return yield this.hash(r.stringToArrayBuffer(t))})}computeVerifier(n){return r.modPow(this.parameters.primeGroup.g,n,this.parameters.primeGroup.N)}generatePrivateValue(){const n=Math.max(256,this.parameters.NBits);let t;do t=r.generateRandomBigInt(n/8)%this.parameters.primeGroup.N;while(t===BigInt(0));return t}computeClientPublicValue(n){return r.modPow(this.parameters.primeGroup.g,n,this.parameters.primeGroup.N)}isValidPublicValue(n){return n%this.parameters.primeGroup.N!==BigInt(0)}computeU(n,t){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hashPadded(r.bigIntToArrayBuffer(n),r.bigIntToArrayBuffer(t)))})}computeClientEvidence(n,t,i,o,s){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hash(r.bigIntToArrayBuffer(i),r.bigIntToArrayBuffer(o),r.bigIntToArrayBuffer(s)))})}computeServerEvidence(n,t,i){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hash(r.bigIntToArrayBuffer(n),r.bigIntToArrayBuffer(t),r.bigIntToArrayBuffer(i)))})}computeClientSessionKey(n,t,i,o,s){const u=this.parameters.primeGroup.N,S=i*t+o,m=r.modPow(this.parameters.primeGroup.g,t,u)*n%u;return r.modPow(s+u-m,S,u)}}return R.SRPRoutines=l,R}var b={},K;function $(){if(K)return b;K=1;var e=b&&b.__awaiter||function(n,t,i,o){function s(u){return u instanceof i?u:new i(function(S){S(u)})}return new(i||(i=Promise))(function(u,S){function m(B){try{v(o.next(B))}catch(w){S(w)}}function p(B){try{v(o.throw(B))}catch(w){S(w)}}function v(B){B.done?u(B.value):s(B.value).then(m,p)}v((o=o.apply(n,t||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0}),b.SRPClientSessionStep2=b.SRPClientSessionStep1=b.SRPClientSession=void 0;class r{constructor(t){this.routines=t}step1(t,i){return e(this,void 0,void 0,function*(){if(!t||!t.trim())throw new Error("User identity must not be null nor empty");if(!i)throw new Error("User password must not be null");const o=yield this.routines.computeIdentityHash(t,i);return new l(this.routines,t,o)})}}b.SRPClientSession=r;class l{constructor(t,i,o){this.routines=t,this.I=i,this.IH=o}step2(t,i){return e(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!i)throw new Error("Public server value (B) must not be null");const o=yield this.routines.computeXStep2(t,this.IH),s=this.routines.generatePrivateValue(),u=this.routines.computeClientPublicValue(s),S=yield this.routines.computeK(),m=yield this.routines.computeU(u,i),p=this.routines.computeClientSessionKey(S,o,m,s,i),v=yield this.routines.computeClientEvidence(this.I,t,u,i,p);return new d(this.routines,u,v,p)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,i){return new l(t,i.I,new Uint8Array(i.IH).buffer)}}b.SRPClientSessionStep1=l;class d{constructor(t,i,o,s){this.routines=t,this.A=i,this.M1=o,this.S=s}step3(t){return e(this,void 0,void 0,function*(){if(!t)throw new Error("Server evidence (M2) must not be null");if((yield this.routines.computeServerEvidence(this.A,this.M1,this.S))!==t)throw new Error("Bad server credentials")})}toJSON(){return{A:this.A.toString(16),M1:this.M1.toString(16),S:this.S.toString(16)}}static fromState(t,i){return new d(t,BigInt("0x"+i.A),BigInt("0x"+i.M1),BigInt("0x"+i.S))}}return b.SRPClientSessionStep2=d,b}var I={},k;function ee(){if(k)return I;k=1;var e=I&&I.__awaiter||function(i,o,s,u){function S(m){return m instanceof s?m:new s(function(p){p(m)})}return new(s||(s=Promise))(function(m,p){function v(P){try{w(u.next(P))}catch(_){p(_)}}function B(P){try{w(u.throw(P))}catch(_){p(_)}}function w(P){P.done?m(P.value):S(P.value).then(v,B)}w((u=u.apply(i,o||[])).next())})};Object.defineProperty(I,"__esModule",{value:!0}),I.SRPServerSessionStep1=I.SRPServerSession=void 0;const r=j();class l{constructor(o){this.routines=o}step1(o,s,u){return e(this,void 0,void 0,function*(){const S=this.routines.generatePrivateValue(),m=yield this.routines.computeK(),p=n(this.routines.parameters,m,u,S);return new d(this.routines,o,s,u,S,p)})}}I.SRPServerSession=l;class d{constructor(o,s,u,S,m,p){this.routines=o,this.identifier=s,this.salt=u,this.verifier=S,this.b=m,this.B=p}sessionKey(o){return e(this,void 0,void 0,function*(){if(o===null)throw new Error("Client public value (A) must not be null");if(!this.routines.isValidPublicValue(o))throw new Error(`Invalid Client public value (A): ${o.toString(16)}`);const s=yield this.routines.computeU(o,this.B);return t(this.routines.parameters.primeGroup.N,this.verifier,s,o,this.b)})}step2(o,s){return e(this,void 0,void 0,function*(){if(!s)throw new Error("Client evidence (M1) must not be null");const u=yield this.sessionKey(o);if((yield this.routines.computeClientEvidence(this.identifier,this.salt,o,this.B,u))!==s)throw new Error("Bad client credentials");return this.routines.computeServerEvidence(o,s,u)})}toJSON(){return{identifier:this.identifier,salt:this.salt.toString(16),verifier:this.verifier.toString(16),b:this.b.toString(16),B:this.B.toString(16)}}static fromState(o,s){return new d(o,s.identifier,BigInt("0x"+s.salt),BigInt("0x"+s.verifier),BigInt("0x"+s.b),BigInt("0x"+s.B))}}I.SRPServerSessionStep1=d;const n=(i,o,s,u)=>(r.modPow(i.primeGroup.g,u,i.primeGroup.N)+s*o)%i.primeGroup.N,t=(i,o,s,u,S)=>r.modPow(r.modPow(o,s,i)*u,S,i);return I}var D;function te(){return D||(D=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.generateRandomBigInt=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=e.createVerifierAndSalt=e.SRPServerSessionStep1=e.SRPServerSession=e.SRPClientSessionStep2=e.SRPClientSessionStep1=e.SRPClientSession=e.SRPRoutines=e.SRPParameters=void 0;var r=Q();Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return r.SRPParameters}});var l=x();Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return l.SRPRoutines}});var d=$();Object.defineProperty(e,"SRPClientSession",{enumerable:!0,get:function(){return d.SRPClientSession}}),Object.defineProperty(e,"SRPClientSessionStep1",{enumerable:!0,get:function(){return d.SRPClientSessionStep1}}),Object.defineProperty(e,"SRPClientSessionStep2",{enumerable:!0,get:function(){return d.SRPClientSessionStep2}});var n=ee();Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return n.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return n.SRPServerSessionStep1}});var t=j();Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return t.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return t.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return t.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return t.generateRandomBigInt}})})(N)),N}var J=te();const re=Y(J),oe=Z({__proto__:null,default:re},[J]);export{oe as i};
|
|
1
|
+
import{g as Y}from"./react-runtime-D-UPQ57m.js";import{r as V}from"./remoteRoutePaths-D8htA0xa.js";function Z(e,r){for(var l=0;l<r.length;l++){const d=r[l];if(typeof d!="string"&&!Array.isArray(d)){for(const n in d)if(n!=="default"&&!(n in e)){const t=Object.getOwnPropertyDescriptor(d,n);t&&Object.defineProperty(e,n,t.get?t:{enumerable:!0,get:()=>d[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var N={},T={},C={},G;function X(){if(G)return C;G=1,Object.defineProperty(C,"__esModule",{value:!0}),C.crossEnvCrypto=void 0;try{const e=typeof window<"u"&&window.crypto||V.webcrypto;if(e){if(!e.subtle)throw new Error("Crypto.Subtle is undefined. Make sure you are using HTTPS in a compatible browser.");const r=l=>d=>e.subtle.digest(l,d);C.crossEnvCrypto={randomBytes:e.getRandomValues.bind(e),hashFunctions:{SHA1:r("SHA-1"),SHA256:r("SHA-256"),SHA384:r("SHA-384"),SHA512:r("SHA-512")}}}else{const r=V,l=d=>n=>r.createHash(d).update(n).digest().buffer;C.crossEnvCrypto={randomBytes:r.randomFillSync,hashFunctions:{SHA1:l("sha1"),SHA256:l("sha256"),SHA384:l("sha384"),SHA512:l("sha512")}}}}catch(e){throw console.error(e),new Error("No suitable crypto library was found. You may need a polyfill.")}return C}var U;function Q(){if(U)return T;U=1,Object.defineProperty(T,"__esModule",{value:!0}),T.SRPParameters=void 0;const e=X();class r{constructor(d=r.PrimeGroup[2048],n=r.H.SHA512){if(this.primeGroup=d,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}return T.SRPParameters=r,r.PrimeGroup={256:{N:BigInt("125617018995153554710546479714086468244499594888726646874671447258204721048803"),g:BigInt(2)},512:{N:BigInt("11144252439149533417835749556168991736939157778924947037200268358613863350040339017097790259154750906072491181606044774215413467851989724116331597513345603"),g:BigInt(2)},768:{N:BigInt("1087179135105457859072065649059069760280540086975817629066444682366896187793570736574549981488868217843627094867924800342887096064844227836735667168319981288765377499806385489913341488724152562880918438701129530606139552645689583147"),g:BigInt(2)},1024:{N:BigInt("167609434410335061345139523764350090260135525329813904557420930309800865859473551531551523800013916573891864789934747039010546328480848979516637673776605610374669426214776197828492691384519453218253702788022233205683635831626913357154941914129985489522629902540768368409482248290641036967659389658897350067939"),g:BigInt(2)},1536:{N:BigInt("1486998185923128292816507353619409521152457662596380074614818966810244974827752411420380336514078832314731499938313197533147998565301020797040787428051479639316928015998415709101293902971072960487527411068082311763171549170528008620813391411445907584912865222076100726050255271567749213905330659264908657221124284665444825474741087704974475795505492821585749417639344967192301749033325359286273431675492866492416941152646940908101472416714421046022696100064262587"),g:BigInt(2)},2048:{N:BigInt("21766174458617435773191008891802753781907668374255538511144643224689886235383840957210909013086056401571399717235807266581649606472148410291413364152197364477180887395655483738115072677402235101762521901569820740293149529620419333266262073471054548368736039519702486226506248861060256971802984953561121442680157668000761429988222457090413873973970171927093992114751765168063614761119615476233422096442783117971236371647333871414335895773474667308967050807005509320424799678417036867928316761272274230314067548291133582479583061439577559347101961771406173684378522703483495337037655006751328447510550299250924469288819"),g:BigInt(2)}},r.H={SHA1:e.crossEnvCrypto.hashFunctions.SHA1,SHA256:e.crossEnvCrypto.hashFunctions.SHA256,SHA384:e.crossEnvCrypto.hashFunctions.SHA384,SHA512:e.crossEnvCrypto.hashFunctions.SHA512},T}var R={},E={},q;function j(){return q||(q=1,(function(e){var r=E&&E.__awaiter||function(c,a,f,h){function y(g){return g instanceof f?g:new f(function(H){H(g)})}return new(f||(f=Promise))(function(g,H){function z(A){try{O(h.next(A))}catch(M){H(M)}}function W(A){try{O(h.throw(A))}catch(M){H(M)}}function O(A){A.done?g(A.value):y(A.value).then(z,W)}O((h=h.apply(c,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.modPow=e.hashBitCount=e.createVerifierAndSalt=e.createVerifier=e.generateRandomBigInt=e.generateRandomString=e.hashPadded=e.hash=e.padStartArrayBuffer=e.stringToArrayBuffer=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=void 0;const l=X(),d=BigInt(0),n=BigInt(1),t=BigInt(2),i=c=>{const a=c.toString(16),f=new ArrayBuffer(Math.ceil(a.length/2)),h=new Uint8Array(f);let y=0;a.length%2!==0&&(h[0]=parseInt(a[0],16),y=1);for(let g=0;g<f.byteLength;g++)h[g+y]=parseInt(a.slice(2*g+y,2*g+2+y),16);return f};e.bigIntToArrayBuffer=i;const o=c=>{const a=[];return new Uint8Array(c).forEach(f=>{a.push(("0"+f.toString(16)).slice(-2))}),BigInt(`0x${a.join("")}`)};e.arrayBufferToBigInt=o;function s(c){return new TextEncoder().encode(c).buffer}e.stringToArrayBuffer=s;const u=(c,a)=>{const f=new Uint8Array(c);if(f.length<a){const h=new Uint8Array(a);return h.fill(0,0,a-f.length),h.set(f,a-f.length),h}return f};e.padStartArrayBuffer=u;function S(c,...a){const f=a.reduce((y,g)=>y+g.byteLength,0),h=new Uint8Array(f);for(let y=0,g=0;g<a.length;g++)h.set(new Uint8Array(a[g]),y),y+=a[g].byteLength;return c.H(h)}e.hash=S;function m(c,a,...f){const h=f.map(y=>e.padStartArrayBuffer(y,a));return S(c,...h)}e.hashPadded=m;function p(c=10){const a=new Uint8Array(Math.ceil(Math.ceil(c/2)));return l.crossEnvCrypto.randomBytes(a),a.reduce((f,h)=>{const y=h.toString(16).toString();return y.length===1?f+"0"+y:f+y},"").slice(0,c)}e.generateRandomString=p;function v(c=16){return e.arrayBufferToBigInt(L(c))}e.generateRandomBigInt=v;function B(c,a,f,h){return r(this,void 0,void 0,function*(){if(!a||!a.trim())throw new Error("Identity (I) must not be null or empty.");if(!f)throw new Error("Salt (s) must not be null.");if(!h)throw new Error("Password (P) must not be null");const y=yield c.computeX(a,f,h);return c.computeVerifier(y)})}e.createVerifier=B;function w(c,a,f,h){return r(this,void 0,void 0,function*(){const y=yield c.generateRandomSalt(h);return{s:y,v:yield B(c,a,y,f)}})}e.createVerifierAndSalt=w;const P=c=>r(void 0,void 0,void 0,function*(){return(yield S(c,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=P;function _(c,a,f){let h=n;for(;a>d;)a%t==n?(h=c*h%f,a-=n):(c=c*c%f,a/=t);return h}e.modPow=_;const L=c=>{const a=new Uint8Array(c);return l.crossEnvCrypto.randomBytes(a),a.buffer}})(E)),E}var F;function x(){if(F)return R;F=1;var e=R&&R.__awaiter||function(d,n,t,i){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function S(v){try{p(i.next(v))}catch(B){u(B)}}function m(v){try{p(i.throw(v))}catch(B){u(B)}}function p(v){v.done?s(v.value):o(v.value).then(S,m)}p((i=i.apply(d,n||[])).next())})};Object.defineProperty(R,"__esModule",{value:!0}),R.SRPRoutines=void 0;const r=j();class l{constructor(n){this.parameters=n}hash(...n){return r.hash(this.parameters,...n)}hashPadded(...n){const t=Math.trunc((this.parameters.NBits+7)/8);return r.hashPadded(this.parameters,t,...n)}computeK(){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hashPadded(r.bigIntToArrayBuffer(this.parameters.primeGroup.N),r.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(n){return e(this,void 0,void 0,function*(){const t=yield r.hashBitCount(this.parameters),i=n||2*t/8;return r.generateRandomBigInt(i)})}computeX(n,t,i){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hash(r.bigIntToArrayBuffer(t),yield this.computeIdentityHash(n,i)))})}computeXStep2(n,t){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hash(r.bigIntToArrayBuffer(n),t))})}computeIdentityHash(n,t){return e(this,void 0,void 0,function*(){return yield this.hash(r.stringToArrayBuffer(t))})}computeVerifier(n){return r.modPow(this.parameters.primeGroup.g,n,this.parameters.primeGroup.N)}generatePrivateValue(){const n=Math.max(256,this.parameters.NBits);let t;do t=r.generateRandomBigInt(n/8)%this.parameters.primeGroup.N;while(t===BigInt(0));return t}computeClientPublicValue(n){return r.modPow(this.parameters.primeGroup.g,n,this.parameters.primeGroup.N)}isValidPublicValue(n){return n%this.parameters.primeGroup.N!==BigInt(0)}computeU(n,t){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hashPadded(r.bigIntToArrayBuffer(n),r.bigIntToArrayBuffer(t)))})}computeClientEvidence(n,t,i,o,s){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hash(r.bigIntToArrayBuffer(i),r.bigIntToArrayBuffer(o),r.bigIntToArrayBuffer(s)))})}computeServerEvidence(n,t,i){return e(this,void 0,void 0,function*(){return r.arrayBufferToBigInt(yield this.hash(r.bigIntToArrayBuffer(n),r.bigIntToArrayBuffer(t),r.bigIntToArrayBuffer(i)))})}computeClientSessionKey(n,t,i,o,s){const u=this.parameters.primeGroup.N,S=i*t+o,m=r.modPow(this.parameters.primeGroup.g,t,u)*n%u;return r.modPow(s+u-m,S,u)}}return R.SRPRoutines=l,R}var b={},K;function $(){if(K)return b;K=1;var e=b&&b.__awaiter||function(n,t,i,o){function s(u){return u instanceof i?u:new i(function(S){S(u)})}return new(i||(i=Promise))(function(u,S){function m(B){try{v(o.next(B))}catch(w){S(w)}}function p(B){try{v(o.throw(B))}catch(w){S(w)}}function v(B){B.done?u(B.value):s(B.value).then(m,p)}v((o=o.apply(n,t||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0}),b.SRPClientSessionStep2=b.SRPClientSessionStep1=b.SRPClientSession=void 0;class r{constructor(t){this.routines=t}step1(t,i){return e(this,void 0,void 0,function*(){if(!t||!t.trim())throw new Error("User identity must not be null nor empty");if(!i)throw new Error("User password must not be null");const o=yield this.routines.computeIdentityHash(t,i);return new l(this.routines,t,o)})}}b.SRPClientSession=r;class l{constructor(t,i,o){this.routines=t,this.I=i,this.IH=o}step2(t,i){return e(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!i)throw new Error("Public server value (B) must not be null");const o=yield this.routines.computeXStep2(t,this.IH),s=this.routines.generatePrivateValue(),u=this.routines.computeClientPublicValue(s),S=yield this.routines.computeK(),m=yield this.routines.computeU(u,i),p=this.routines.computeClientSessionKey(S,o,m,s,i),v=yield this.routines.computeClientEvidence(this.I,t,u,i,p);return new d(this.routines,u,v,p)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,i){return new l(t,i.I,new Uint8Array(i.IH).buffer)}}b.SRPClientSessionStep1=l;class d{constructor(t,i,o,s){this.routines=t,this.A=i,this.M1=o,this.S=s}step3(t){return e(this,void 0,void 0,function*(){if(!t)throw new Error("Server evidence (M2) must not be null");if((yield this.routines.computeServerEvidence(this.A,this.M1,this.S))!==t)throw new Error("Bad server credentials")})}toJSON(){return{A:this.A.toString(16),M1:this.M1.toString(16),S:this.S.toString(16)}}static fromState(t,i){return new d(t,BigInt("0x"+i.A),BigInt("0x"+i.M1),BigInt("0x"+i.S))}}return b.SRPClientSessionStep2=d,b}var I={},k;function ee(){if(k)return I;k=1;var e=I&&I.__awaiter||function(i,o,s,u){function S(m){return m instanceof s?m:new s(function(p){p(m)})}return new(s||(s=Promise))(function(m,p){function v(P){try{w(u.next(P))}catch(_){p(_)}}function B(P){try{w(u.throw(P))}catch(_){p(_)}}function w(P){P.done?m(P.value):S(P.value).then(v,B)}w((u=u.apply(i,o||[])).next())})};Object.defineProperty(I,"__esModule",{value:!0}),I.SRPServerSessionStep1=I.SRPServerSession=void 0;const r=j();class l{constructor(o){this.routines=o}step1(o,s,u){return e(this,void 0,void 0,function*(){const S=this.routines.generatePrivateValue(),m=yield this.routines.computeK(),p=n(this.routines.parameters,m,u,S);return new d(this.routines,o,s,u,S,p)})}}I.SRPServerSession=l;class d{constructor(o,s,u,S,m,p){this.routines=o,this.identifier=s,this.salt=u,this.verifier=S,this.b=m,this.B=p}sessionKey(o){return e(this,void 0,void 0,function*(){if(o===null)throw new Error("Client public value (A) must not be null");if(!this.routines.isValidPublicValue(o))throw new Error(`Invalid Client public value (A): ${o.toString(16)}`);const s=yield this.routines.computeU(o,this.B);return t(this.routines.parameters.primeGroup.N,this.verifier,s,o,this.b)})}step2(o,s){return e(this,void 0,void 0,function*(){if(!s)throw new Error("Client evidence (M1) must not be null");const u=yield this.sessionKey(o);if((yield this.routines.computeClientEvidence(this.identifier,this.salt,o,this.B,u))!==s)throw new Error("Bad client credentials");return this.routines.computeServerEvidence(o,s,u)})}toJSON(){return{identifier:this.identifier,salt:this.salt.toString(16),verifier:this.verifier.toString(16),b:this.b.toString(16),B:this.B.toString(16)}}static fromState(o,s){return new d(o,s.identifier,BigInt("0x"+s.salt),BigInt("0x"+s.verifier),BigInt("0x"+s.b),BigInt("0x"+s.B))}}I.SRPServerSessionStep1=d;const n=(i,o,s,u)=>(r.modPow(i.primeGroup.g,u,i.primeGroup.N)+s*o)%i.primeGroup.N,t=(i,o,s,u,S)=>r.modPow(r.modPow(o,s,i)*u,S,i);return I}var D;function te(){return D||(D=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.generateRandomBigInt=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=e.createVerifierAndSalt=e.SRPServerSessionStep1=e.SRPServerSession=e.SRPClientSessionStep2=e.SRPClientSessionStep1=e.SRPClientSession=e.SRPRoutines=e.SRPParameters=void 0;var r=Q();Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return r.SRPParameters}});var l=x();Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return l.SRPRoutines}});var d=$();Object.defineProperty(e,"SRPClientSession",{enumerable:!0,get:function(){return d.SRPClientSession}}),Object.defineProperty(e,"SRPClientSessionStep1",{enumerable:!0,get:function(){return d.SRPClientSessionStep1}}),Object.defineProperty(e,"SRPClientSessionStep2",{enumerable:!0,get:function(){return d.SRPClientSessionStep2}});var n=ee();Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return n.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return n.SRPServerSessionStep1}});var t=j();Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return t.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return t.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return t.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return t.generateRandomBigInt}})})(N)),N}var J=te();const re=Y(J),oe=Z({__proto__:null,default:re},[J]);export{oe as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppearanceSettings-DTYVt0W5.js","assets/index-umZg0LZ6.js","assets/react-runtime-D-UPQ57m.js","assets/index-CPb-36gi.css","assets/useAcliCommentarySetting-CBKAl7qr.js","assets/providerChildSessions-DbLFSybt.js","assets/client-Ci_HPGfl.js","assets/RelayProtocol-BpdH0COG.js","assets/Modal-ClSjJagX.js","assets/remoteRoutePaths-D8htA0xa.js","assets/LocalMediaModal-B9eHVx6y.js","assets/newSessionPrefill-DKcy0abh.js","assets/relay-url-j3kYm5KO.js","assets/appHref-ByaEnJGJ.js","assets/LocalMediaModal-B3KXtyEB.css","assets/katex-Dv2p4YRM.js","assets/index-CoR-vzsb.js","assets/index-EC-u4IZ7.css","assets/ProviderBadge-P0VTI71n.js","assets/providerChildSessions-Cd7oK6KQ.css","assets/useAcliCommentarySetting-BQc8-VNa.css","assets/useFloatingActionButtonEnabled-2_hw7nSa.js","assets/useWorkflowTags-DxbEBqtf.js","assets/useGeneratedTitleLength-D856ktVg.js","assets/SettingsItem-C9Vh5p7F.js","assets/SettingsItem-JTPEBYQg.css","assets/SettingsSection-BaPzETK6.js","assets/NavigationLayout-BTFsWVtE.js","assets/frontendReload-CBdyvvdy.js","assets/useSidebarWidth-CBCcbSLg.js","assets/useFileActivity-BoW4X3DY.js","assets/YepAnywhereLogo-5zFKWjQq.js","assets/NavigationLayout-CJXutLwz.css","assets/useTabTitleActivityPreference-DhREY7m2.js","assets/CommittedRangeInput-BwuV6Q6c.js","assets/CommittedRangeNumberInput-C5YSVltB.js","assets/PageHeader-BjwH2pWD.js","assets/SessionHeader.module-BpaFAQ-S.js","assets/HostIdentityContext-DA7dMF-y.js","assets/SessionHeader-pnhs75ng.css","assets/index-Cv3tQXyE.js","assets/PerformanceSettings-jJYF9SPY.js","assets/useStreamingEnabled-hU1g8i7_.js","assets/useStableToolPreviewRendering-hbVp38Jd.js","assets/ToolbarSettings-Nb2BKpnk.js","assets/SpeechControlMenu-BYVdEa3C.js","assets/useModelSettings-BdlYk1DT.js","assets/SpeechSmartTurnControls-LPq9wBaM.js","assets/YaServerProvider-CN3tC5UL.js","assets/SpeechSmartTurnControls-CCk_a0tm.css","assets/SpeechControlMenu-DNRFO-j6.css","assets/MessageInputToolbar-CQGTnVea.js","assets/types-BHkriVjU.js","assets/browserDebugPerformance-ZT9tAT-A.js","assets/useProviders-CeN1PclA.js","assets/useRelativeNow-Ca6QGcPa.js","assets/ThinkingControls-DXbxdJRi.js","assets/MessageAge-CaPpa1nH.js","assets/VoiceInputButton-CCgovfyf.js","assets/deviceDetection-BVPclkty.js","assets/VoiceInputButton-CTd6zXtZ.css","assets/MessageInputToolbar-BIL_6i7G.css","assets/ToolbarSettings-DdxMSXaN.css","assets/ModelSettings-Dnd4yzmI.js","assets/newSessionDefaults-C6a9Cpc6.js","assets/RecapAfterSecondsControl-CxuXyFSr.js","assets/useForkSummaryAutoOpen-CS33Irpf.js","assets/compactSettingsControls-C9mLZh5H.js","assets/FilterDropdown-CACc6ysA.js","assets/FilterDropdown-D11gXriH.css","assets/ModelSettings-D9l8I1M4.css","assets/CacheMissBillingSettings-rUgC-_DD.js","assets/CacheMissBillingSettings-CLd1X2rQ.css","assets/MessageDeliverySettings-BUSuGKlc.js","assets/useKeepMobileKeyboardOpenAfterDelivery-Ba77SbWF.js","assets/useQuestionAsideSetting-CPFw1u0y.js","assets/MessageDeliverySettings-ChJ0EqI2.css","assets/SourceControlSettings-DnqLg0db.js","assets/useSourceControlCleanLanding-VDlft5tr.js","assets/IssueSettings-BVljRpuD.js","assets/IssueSettings-BVQhsFjc.css","assets/ComputerControlSettings-MWIdP7SS.js","assets/ComputerControlSettings-hz0l4QsY.css","assets/StorageSettings-DtsJnYaz.js","assets/StorageSettings-BOqx8lCl.css","assets/AgentContextSettings-DI8jQVIx.js","assets/HeartbeatTextArea-CtP5kx9R.js","assets/HeartbeatTextArea-Dr6VozUp.css","assets/NotificationsSettings-B1ugQIp-.js","assets/useNotifyInApp-DcWe3dh4.js","assets/useConnectedDevices-Ds-DuUDc.js","assets/useBackgroundRevalidation-C79HAUP3.js","assets/NotificationsSettings-CPM241Tg.css","assets/LifecycleWebhooksSettings-Qw_dN3F3.js","assets/DevicesSettings-DKQOZkRN.js","assets/LocalAccessSettings-SWirs75o.js","assets/AuthContext-DmXjW0be.js","assets/AppsSettings-hbh_sguk.js","assets/useVhostAccess-DUtn_sH1.js","assets/AppsSettings-COm3buYO.css","assets/LocalAccessSettings-BIysipWE.css","assets/UsersSettings-BdvqmyqK.js","assets/UsersSettings-DriFOB7e.css","assets/ProjectTemplatesSettings-BQTCV3-3.js","assets/ProjectTemplatesSettings-BcaK3moF.css","assets/RemoteAccessSettings-Dn7KB5nK.js","assets/hostStorage-D1KAm3U1.js","assets/ProvidersSettings-Bwzy73Rk.js","assets/postCompactReplay-D6HuoQK2.js","assets/long-context-effort-warning-C6XHizE1.js","assets/useCodexUpdateStatus-CEZO_f2Y.js","assets/ProvidersSettings-BAtrIqQs.css","assets/SpeechSettings-B6LkqfSK.js","assets/speech-vocabulary-CxfxZ-1r.js","assets/SpeechSettings-BfDRPrEa.css","assets/RemoteExecutorsSettings-Cjl4Y2rB.js","assets/useRemoteExecutors-zBAQnQXH.js","assets/RemoteExecutorsSettings-BPtHDoBu.css","assets/EmulatorSettings-C6Ye1k_Y.js","assets/useEmulators-qS_cCZ3I.js","assets/EnvironmentSettings-ou8UNqTa.js","assets/EnvironmentSettings-DPRH1636.css","assets/AboutSettings-CCzudbSj.js","assets/useOnboarding-CoE3WF8a.js","assets/useOnboarding-9aedi8mm.css","assets/DevelopmentSettings-BEAy_xq-.js","assets/SchemaValidationContext-57RCj4c4.js","assets/SchemaValidationContext-CiLezKRZ.css","assets/useReloadNotifications-Dm1jmdIb.js","assets/relayEndpoints-BTq9xppf.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{U as n,B as v,u as C,r as i,j as t,bo as Be,bp as Oe,a as Ve,d as ze,e as Fe,s as T,bb as p,bq as Ue,i as V,at as We,aR as He,aQ as Ge,br as Ke}from"./index-umZg0LZ6.js";import{P as z}from"./PageHeader-BjwH2pWD.js";import{u as Je,e as Ye}from"./Modal-ClSjJagX.js";import{I as $e,u as Ze,p as Qe}from"./NavigationLayout-BTFsWVtE.js";import{MainContent as F}from"./index-Cv3tQXyE.js";import{a as ue}from"./client-Ci_HPGfl.js";const Se=1,Xe=new Set(["appearance","toolbar","message-delivery","notifications","users","about"]);function de(e){return Xe.has(e)}function qt(e,s){switch(e){case"auto":return s("themeAuto");case"light":return s("themeLight");case"dark":return s("themeDark");case"verydark":return s("themeVerydark")}}function es(e,s){switch(e){case"compact":return s("sidebarSpacingCompact");case"comfortable":return s("sidebarSpacingComfortable")}}function ts(e,s){switch(e){case"system":return s("outputProseFontSystem");case"inter":return s("outputProseFontInter");case"alegreya-sans":return s("outputProseFontAlegreyaSans");case"source-serif-4":return s("outputProseFontSourceSerif4")}}function ss(e,s){switch(e){case"system":return s("outputFixedFontSystem");case"iosevka":return s("outputFixedFontIosevka");case"ibm-plex-mono":return s("outputFixedFontIbmPlexMono");case"fira-mono":return s("outputFixedFontFiraMono")}}function ns(e){return e}function is(e,s){switch(e){case"en":return s("localeNameEn");case"zh-CN":return s("localeNameZhCn");case"es":return s("localeNameEs");case"fr":return s("localeNameFr");case"de":return s("localeNameDe");case"ja":return s("localeNameJa")}}function qe(e){return[{id:"appearance",label:e("settingsAppearanceTitle"),description:e("settingsAppearanceDescription")},{id:"performance",label:e("settingsPerformanceTitle"),description:e("settingsPerformanceDescription")},{id:"toolbar",label:e("settingsToolbarTitle"),description:e("settingsToolbarDescription")},{id:"model",label:e("settingsModelTitle"),description:e("settingsModelDescription")},{id:"message-delivery",label:e("settingsMessageDeliveryTitle"),description:e("settingsMessageDeliveryDescription")},{id:"source-control",label:e("settingsSourceControlTitle"),description:e("settingsSourceControlDescription")},{id:"issues",label:e("issuesTitle"),description:e("issuesSettingsDescription")},{id:"storage",label:e("settingsStorageTitle"),description:e("settingsStorageDescription")},{id:"computer-control",label:e("computerTitle"),description:e("settingsComputerDescription")},{id:"agent-context",label:e("settingsAgentContextTitle"),description:e("settingsAgentContextDescription")},{id:"notifications",label:e("settingsNotificationsTitle"),description:e("settingsNotificationsDescription")},{id:"webhooks",label:e("settingsWebhooksTitle"),description:e("settingsWebhooksDescription")},{id:"devices",label:e("settingsDevicesTitle"),description:e("settingsDevicesDescription")},{id:"local-access",label:e("settingsLocalAccessTitle"),description:e("settingsLocalAccessDescription")},{id:"users",label:e("settingsUsersTitle"),description:e("settingsUsersDescription")},{id:"project-templates",label:e("settingsProjectTemplatesTitle"),description:e("settingsProjectTemplatesDescription")},{id:"apps",label:e("settingsAppsTitle"),description:e("settingsAppsDescription")},{id:"remote",label:e("settingsRemoteTitle"),description:e("settingsRemoteDescription")},{id:"providers",label:e("settingsProvidersTitle"),description:e("settingsProvidersDescription")},{id:"cache-miss-billing",label:e("settingsCacheMissBillingTitle"),description:e("settingsCacheMissBillingDescription")},{id:"speech",label:e("settingsSpeechTitle"),description:e("settingsSpeechDescription")},{id:"remote-executors",label:e("settingsRemoteExecutorsTitle"),description:e("settingsRemoteExecutorsDescription")},{id:"environment",label:e("settingsEnvironmentTitle"),description:e("settingsEnvironmentDescription")},{id:"development",label:e("settingsDevelopmentTitle"),description:e("settingsDevelopmentDescription")},{id:"about",label:e("settingsAboutTitle"),description:e("settingsAboutDescription")}]}function et(e){return{id:"emulator",label:e("settingsEmulatorTitle"),description:e("settingsEmulatorDescription")}}const je=[n.locale,n.theme,n.fontSize,n.sidebarSpacing,n.panelSlideAnimations,n.outputProseFont,n.outputUiFont,n.userTurnFontSizeOffset,n.outputProseFontSize,n.outputFixedFont,n.outputFixedFontSizeOffset,n.outputProseThinkingFontSizeOffset,n.outputProseMathFontSizeOffset,n.outputProseLineSpacingPercent,n.outputProseVerticalSpacing,n.outputProseVerticalSpacingPercent,n.outputToolPreviewLineCount,n.tabSize,n.contentMaxWidth,n.sessionRightPane,n.sessionRightPaneWidth,n.pdfjsRenderer,n.sourceControlCleanLanding,n.sidebarWidth,n.sidebarExpanded,n.sidebarMinimized,n.sidebarSectionExpansion,n.sidebarDuplicateHidingEnabled,n.funPhrases,n.streamingEnabled,n.speechKeepMicWarm,n.speechReducePlayback,n.speechUnspokenPunctuation,n.speechFollowUpListenMs,n.speechAsrAttributionMs,n.speechMessagePrefixMode,n.speechMessageCustomPrefix,n.floatingActionButtonEnabled,n.keepMobileKeyboardOpenAfterDelivery,n.developerMode,n.conversationView,n.conversationViewTurnLimit,n.widerConversationActivityPreviews,n.glossaryHints,n.sessionToolbarPresence,n.waveformButtonBackgroundOpacityPercent,n.tooltipMode,n.tooltipDelayMs,n.sessionHoverCardShowDelayMs,n.sessionHoverCardMaxHeightPx,n.sessionGeneratedTitleEnabled,n.sessionGeneratedTitleLength,n.quoteReplyButtonMode,n.selectionQuoteActionEnabled,n.selectionSourceCopyActionEnabled,n.selectionRichCopyActionEnabled,n.sessionThinkingVisible,n.sessionThinkingLatestOnly,n.sessionLoadingProgress,n.sessionDomLinger,n.sessionActiveWindowTrim,n.sessionReverseSearchMaxPagesPerAttempt,n.sessionTranscriptCache,n.sessionTranscriptCacheBudgetMb,n.sessionTranscriptCacheTtlHours,n.sessionScrollBehavior,n.sessionDetailShadowDiagnostics,n.stableToolPreviewRendering,n.inlineMediaExpandedByDefault,n.compactMultiImageGalleries,n.recentProjectPathLinks,n.schemaValidation,n.emulatorMaxFps,n.emulatorMaxWidth,n.emulatorQuality,n.emulatorAdaptiveFps,n.attachmentUploadQuality,n.tabTitleActivityEnabled,n.projectCodeNamesEnabled,n.projectCodeNameActivityPulseEnabled,n.settingsIconStyle,v.model,v.thinkingLevel,v.thinkingMode,v.showThinking,v.voiceInputEnabled,v.speechMethod,v.speechSmartTurn,v.grokSpeechAudio,v.parakeetSpeechModel,v.whisperSpeechModel,v.notifyInApp];function be(e=window.localStorage){const s={};for(const r of je){const o=e.getItem(r);o!==null&&(s[r]=o)}return s}function pe(e,s){for(const r of je){const o=Object.hasOwn(e,r)?e[r]:void 0;typeof o=="string"?s.setItem(r,o):s.removeItem(r)}}function tt(e,s=window.localStorage){if(e.version!==Se)throw new Error(`Unsupported browser settings version: ${e.version}`);const r=be(s);try{pe(e.values,s)}catch(o){throw pe(r,s),o}}function st(e){const s=new Date(e);return Number.isNaN(s.getTime())?e:s.toLocaleString()}function he(){const{t:e}=C(),[s,r]=i.useState(null),[o,a]=i.useState("fetching"),[u,l]=i.useState(null);i.useEffect(()=>{let g=!1;return ue.getBrowserSettingsBackup().then(b=>{g||r(b.backup)}).catch(()=>{g||l(e("settingsBackupUnavailable"))}).finally(()=>{g||a(null)}),()=>{g=!0}},[e]);const d=async()=>{a("saving"),l(null);try{const g=await ue.saveBrowserSettingsBackup({version:Se,values:be()});r(g.backup)}catch{l(e("settingsBackupSaveFailed"))}finally{a(null)}},x=()=>{if(!(!s||!window.confirm(e("settingsBackupLoadConfirm")))){a("loading"),l(null);try{tt(s),window.location.reload()}catch{l(e("settingsBackupLoadFailed")),a(null)}}},m=u||(o==="fetching"?e("settingsBackupChecking"):s?e("settingsBackupSavedAt",{time:st(s.savedAt)}):e("settingsBackupEmpty"));return t.jsxs("section",{className:"settings-backup-actions","aria-label":e("settingsBackupTitle"),children:[t.jsx("span",{className:"settings-backup-title",children:e("settingsBackupTitle")}),t.jsx("span",{className:"settings-backup-status",children:e("settingsBackupDescription")}),t.jsxs("div",{className:"settings-backup-buttons",children:[t.jsx("button",{type:"button",className:"settings-button",onClick:()=>void d(),disabled:o!==null,title:e("settingsBackupSaveTooltip"),children:e(o==="saving"?"settingsBackupSaving":"settingsBackupSave")}),t.jsx("button",{type:"button",className:"settings-button",onClick:x,disabled:o!==null||!s,title:e("settingsBackupLoadTooltip"),children:e(o==="loading"?"settingsBackupLoading":"settingsBackupLoad")})]}),t.jsx("span",{className:`settings-backup-status ${u?"error":""}`,role:u?"alert":"status",children:m})]})}const os=["flat","flat-white","emoji"],ve="flat",U=new Set;function ye(){return typeof globalThis.localStorage>"u"||typeof globalThis.localStorage.getItem!="function"?null:globalThis.localStorage}function nt(e){return e==="flat"||e==="flat-white"||e==="emoji"}function it(){const e=ye(),s=(e==null?void 0:e.getItem(n.settingsIconStyle))??null;if(nt(s))return s;const r=e==null?void 0:e.getItem(n.flatSettingsIcons);return r==="true"?"flat":r==="false"?"emoji":ve}function ot(e){var r;const s=ye();!s||typeof s.setItem!="function"||(s.setItem(n.settingsIconStyle,e),(r=s.removeItem)==null||r.call(s,n.flatSettingsIcons))}function rt(e){return U.add(e),()=>U.delete(e)}function at(){return it()}function ct(){for(const e of U)e()}function lt(e){ot(e),ct()}function ut(){const e=i.useSyncExternalStore(rt,at,()=>ve),s=i.useCallback(lt,[]);return{settingsIconStyle:e,setSettingsIconStyle:s}}const dt={width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function h(e){const{children:s,...r}=e;return t.jsx("svg",{...dt,"aria-hidden":"true",...r,children:s})}const pt={appearance:"🎨",issues:"🎟️",performance:"⚡",toolbar:"🎛️",model:"🧠","cache-miss-billing":"🧾","message-delivery":"📨","source-control":"🔎",storage:"🗄️","agent-context":"📋",notifications:"🔔",webhooks:"🪝",devices:"📱","computer-control":"🖱️","local-access":"🔒",users:"👥","project-templates":"📑",apps:"▦",remote:"🌐",providers:"🔌",speech:"🎙️","remote-executors":"🖥️",environment:"⚙️",about:"ℹ️",emulator:"🤖",development:"🛠️"},ht={"project-templates":t.jsxs(h,{children:[t.jsx("rect",{x:"7",y:"7",width:"14",height:"14",rx:"2"}),t.jsx("path",{d:"M17 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h2"}),t.jsx("path",{d:"M11 12h6m-6 4h4"})]}),apps:t.jsxs(h,{children:[t.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),t.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),t.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),t.jsx("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1"})]}),issues:t.jsx($e,{size:22}),appearance:t.jsxs(h,{strokeWidth:2.5,children:[t.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"3"}),t.jsx("text",{x:"3.5",y:"13",fontSize:"15",fontWeight:"700",fill:"currentColor",stroke:"none",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, sans-serif",children:"A"}),t.jsx("rect",{x:"17",y:"4",width:"5",height:"5",rx:"1",fill:"#15803d"}),t.jsx("rect",{x:"17",y:"10",width:"5",height:"5",rx:"1",fill:"#1e40af"}),t.jsx("rect",{x:"17",y:"16",width:"5",height:"5",rx:"1",fill:"#b91c1c"})]}),performance:t.jsxs(h,{strokeWidth:2.5,children:[t.jsx("path",{d:"M4 15a8 8 0 0 1 16 0"}),t.jsx("path",{d:"M6.5 18h11"}),t.jsx("path",{d:"m12 14 4-5"}),t.jsx("path",{d:"M12 14h.01"}),t.jsx("path",{d:"M7.8 10.8 6.4 9.4"}),t.jsx("path",{d:"M16.2 10.8 17.6 9.4"})]}),model:t.jsxs(h,{strokeWidth:2.5,children:[t.jsx("path",{d:"M12 18V5"}),t.jsx("path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"}),t.jsx("path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"}),t.jsx("path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77"}),t.jsx("path",{d:"M18 18a4 4 0 0 0 2-7.464"}),t.jsx("path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"}),t.jsx("path",{d:"M6 18a4 4 0 0 1-2-7.464"}),t.jsx("path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77"})]}),toolbar:t.jsxs(h,{children:[t.jsx("rect",{x:"2",y:"9",width:"20",height:"6",rx:"2"}),t.jsx("circle",{cx:"7",cy:"12",r:"0.8",fill:"currentColor"}),t.jsx("circle",{cx:"12",cy:"12",r:"0.8",fill:"currentColor"}),t.jsx("circle",{cx:"17",cy:"12",r:"0.8",fill:"currentColor"})]}),"cache-miss-billing":t.jsxs(h,{children:[t.jsx("path",{d:"M5 3v18l2-1 2 1 2-1 2 1 2-1 2 1 2-1V3Z"}),t.jsx("path",{d:"M8 7h8"}),t.jsx("path",{d:"M8 11h5"}),t.jsx("path",{d:"m15 11 2 2 2-2"}),t.jsx("path",{d:"m17 13V8"}),t.jsx("path",{d:"M8 16h4"})]}),"message-delivery":t.jsxs(h,{children:[t.jsx("path",{d:"M22 2 11 13"}),t.jsx("path",{d:"m22 2-7 20-4-9-9-4Z"})]}),"source-control":t.jsxs(h,{children:[t.jsx("circle",{cx:"10",cy:"10",r:"6"}),t.jsx("path",{d:"m14.5 14.5 5 5"}),t.jsx("path",{d:"M7 10h6"})]}),storage:t.jsxs(h,{children:[t.jsx("ellipse",{cx:"12",cy:"5",rx:"8",ry:"3"}),t.jsx("path",{d:"M4 5v7c0 1.7 3.6 3 8 3s8-1.3 8-3V5"}),t.jsx("path",{d:"M4 12v7c0 1.7 3.6 3 8 3s8-1.3 8-3v-7"})]}),"agent-context":t.jsxs(h,{children:[t.jsx("rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}),t.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),t.jsx("path",{d:"M12 11h4"}),t.jsx("path",{d:"M12 16h4"}),t.jsx("path",{d:"M8 11h.01"}),t.jsx("path",{d:"M8 16h.01"})]}),notifications:t.jsxs(h,{children:[t.jsx("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),t.jsx("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]}),webhooks:t.jsxs(h,{children:[t.jsx("path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2"}),t.jsx("path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06"}),t.jsx("path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8"})]}),devices:t.jsxs(h,{children:[t.jsx("rect",{x:"7",y:"2",width:"10",height:"20",rx:"2",ry:"2"}),t.jsx("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"})]}),"computer-control":t.jsxs(h,{children:[t.jsx("rect",{x:"2",y:"3",width:"17",height:"12",rx:"2"}),t.jsx("path",{d:"M7 20h6m-3-5v5"}),t.jsx("path",{d:"m15 10 7 5-3 1-1 3z",fill:"currentColor"})]}),users:t.jsxs(h,{children:[t.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),t.jsx("circle",{cx:"9",cy:"7",r:"4"}),t.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),t.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),"local-access":t.jsxs(h,{children:[t.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}),t.jsx("path",{d:"M5 11h14v11H5V11z M10.5 15a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0z M11.25 17.5h1.5v3h-1.5z",fill:"currentColor",fillRule:"evenodd"})]}),remote:t.jsxs(h,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"9"}),t.jsx("path",{d:"M12 3v18"}),t.jsx("path",{d:"M3 12h18"}),t.jsx("path",{d:"M5.5 7.5c2.5 1 11 1 13 0"}),t.jsx("path",{d:"M5.5 16.5c2.5-1 11-1 13 0"})]}),providers:t.jsxs(h,{children:[t.jsx("rect",{x:"6",y:"8",width:"12",height:"6",rx:"1"}),t.jsx("line",{x1:"9",y1:"8",x2:"9",y2:"3"}),t.jsx("line",{x1:"15",y1:"8",x2:"15",y2:"3"}),t.jsx("path",{d:"M12 14v5"}),t.jsx("path",{d:"M8 19h8"})]}),speech:t.jsxs(h,{children:[t.jsx("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"}),t.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),t.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),t.jsx("path",{d:"M8 23h8"})]}),"remote-executors":t.jsxs(h,{children:[t.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),t.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),t.jsx("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]}),environment:t.jsxs(h,{children:[t.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),t.jsx("path",{d:"M6 9l3 3-3 3"}),t.jsx("line",{x1:"12",y1:"15",x2:"17",y2:"15"})]}),about:t.jsxs(h,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("path",{d:"M12 16v-4"}),t.jsx("path",{d:"M12 8h.01"})]}),emulator:t.jsxs(h,{children:[t.jsx("rect",{x:"5",y:"6",width:"14",height:"10",rx:"2"}),t.jsx("circle",{cx:"9",cy:"10",r:"1.4",fill:"currentColor"}),t.jsx("circle",{cx:"15",cy:"10",r:"1.4",fill:"currentColor"}),t.jsx("path",{d:"M8 14h8"}),t.jsx("line",{x1:"7",y1:"6",x2:"5",y2:"3"}),t.jsx("line",{x1:"17",y1:"6",x2:"19",y2:"3"}),t.jsx("circle",{cx:"5",cy:"3",r:"0.8",fill:"currentColor"}),t.jsx("circle",{cx:"19",cy:"3",r:"0.8",fill:"currentColor"})]}),development:t.jsxs(h,{children:[t.jsx("path",{d:"M14.5 6.5l3 3-7 7-3-3 7-7z"}),t.jsx("path",{d:"M17 3l4 4M3 17l4 4"}),t.jsx("path",{d:"M10 14l-1.5 1.5"}),t.jsx("circle",{cx:"18",cy:"6",r:"1.5",fill:"currentColor"})]})};function gt({id:e}){const{settingsIconStyle:s}=ut(),r=s==="emoji"?pt[e]:ht[e];if(!r)return null;const o=["settings-category-icon",`settings-category-icon-${e}`,`settings-category-icon-${s}`].join(" ");return t.jsx("span",{className:o,"aria-hidden":"true",children:r})}function _e(e){return e.trim().toLowerCase().split(/\s+/).filter(Boolean)}function xt(e,s){const r=_e(e);if(r.length===0)return!1;const o=s.filter(a=>!!a).map(a=>a.toLowerCase());return o.length===0?!1:r.every(a=>o.some(u=>u.includes(a)))}function mt(e,s){const r=_e(s),o=e.toLowerCase(),a=[];for(const x of r){let m=0;for(;m<=o.length-x.length;){const g=o.indexOf(x,m);if(g<0)break;a.push([g,g+x.length]),m=g+1}}if(a.length===0)return[{text:e,match:!1}];a.sort((x,m)=>x[0]-m[0]||x[1]-m[1]);const u=[];for(const[x,m]of a){const g=u[u.length-1];g&&x<=g[1]?g[1]=Math.max(g[1],m):u.push([x,m])}const l=[];let d=0;for(const[x,m]of u)x>d&&l.push({text:e.slice(d,x),match:!1}),l.push({text:e.slice(x,m),match:!0}),d=m;return d<e.length&&l.push({text:e.slice(d),match:!1}),l}function rs(e){return e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"")}const Te=i.createContext(null),ft=Te.Provider;function St(){return i.useContext(Te)}const Ee=i.createContext(null),ge=Ee.Provider;function as(){return i.useContext(Ee)}function xe(e,s){const r=mt(e,s);return r.some(o=>o.match)?r.map((o,a)=>o.match?t.jsx("mark",{className:"settings-search-mark",children:o.text},a):t.jsx(i.Fragment,{children:o.text},a)):e}function cs({children:e}){const s=St();return s&&!s.sectionMatched?null:t.jsx(t.Fragment,{children:e})}function W({category:e,isActive:s,onClick:r,highlightQuery:o}){return t.jsxs("button",{type:"button",className:`settings-category-item ${s?"active":""}`,onClick:r,children:[t.jsx(gt,{id:e.id}),t.jsxs("div",{className:"settings-category-text",children:[t.jsx("span",{className:"settings-category-label",children:o?xe(e.label,o):e.label}),t.jsx("span",{className:"settings-category-description",children:o?xe(e.description,o):e.description})]}),t.jsx("span",{className:"settings-category-chevron",children:"›"})]})}function H({children:e,label:s}){const{t:r}=C();return t.jsx("div",{"data-settings-pane":!0,children:t.jsx(Be,{children:t.jsx(i.Suspense,{fallback:t.jsxs("p",{role:"status",children:[s&&`${s}: `,r("loading")]}),children:t.jsx("div",{"data-settings-pane-ready":!0,children:e})})})})}const jt="_bar_1p6js_6",bt="_inputWrap_1p6js_13",vt="_input_1p6js_13",yt="_clear_1p6js_33",_t="_valuesToggle_1p6js_51",I={bar:jt,inputWrap:bt,input:vt,clear:yt,valuesToggle:_t};function Tt(){const[e,s]=i.useState(()=>localStorage.getItem(n.settingsSearchMatchValues)==="true"),r=i.useCallback(o=>{s(o),localStorage.setItem(n.settingsSearchMatchValues,String(o))},[]);return[e,r]}function Et({query:e,onQueryChange:s,matchValues:r,onMatchValuesChange:o}){const{t:a}=C(),u=Oe(a("settingsSearchMatchValuesTooltip")),l=e.trim()!=="";return t.jsxs("form",{className:I.bar,role:"search",autoComplete:"off",onSubmit:d=>d.preventDefault(),children:[t.jsxs("div",{className:I.inputWrap,children:[t.jsx("input",{type:"search",name:"settings-search",autoComplete:"off",className:`settings-input ${I.input}`,placeholder:a("settingsSearchPlaceholder"),"aria-label":a("settingsSearchPlaceholder"),value:e,onChange:d=>s(d.target.value),onKeyDown:d=>{d.key==="Escape"&&e!==""&&(d.stopPropagation(),s(""))}}),e!==""&&t.jsx("button",{type:"button",className:I.clear,"aria-label":a("settingsSearchClear"),onClick:()=>s(""),children:"×"})]}),l&&t.jsxs("label",{className:I.valuesToggle,...u,children:[t.jsx("input",{type:"checkbox",checked:r,onChange:d=>o(d.target.checked)}),a("settingsSearchMatchValues")]})]})}const Ce=i.createContext(null),G=Ce.Provider;function ls(e){const s=i.useContext(Ce);i.useEffect(()=>{if(s)return s(e),()=>s(null)},[s,e])}function Ct(){const[e,s]=i.useState(null);return{title:e,setTitle:s}}const Me=i.createContext(null),K=Me.Provider;function Mt(e,s){const r=i.useContext(Me),o=i.useMemo(()=>e?{canUndo:e,undo:s}:null,[e,s]);i.useEffect(()=>{if(r)return r(o),()=>r(null)},[r,o])}function It(){const[e,s]=i.useState(null);return{registration:e,setRegistration:s}}function Pt(e,s){return JSON.stringify(e)===JSON.stringify(s)}function us(e,s,r=Pt){const o=i.useRef(null);o.current===null&&e!=null&&(o.current=e);const a=o.current,u=a!=null&&e!=null&&!r(e,a),l=i.useCallback(()=>{const d=o.current;if(d!=null)return s(d)},[s]);Mt(u,l)}const kt=e=>{},At=e=>{},wt=i.memo(function({Component:s}){return t.jsx(G,{value:kt,children:t.jsx(K,{value:At,children:t.jsx(s,{})})})});function Lt({categories:e,components:s,query:r,matchValues:o,onJumpToItem:a,onOpenCategory:u}){const{t:l}=C(),d=i.useRef(null),[x,m]=i.useState(null),[g,b]=i.useState(!0),E=e.filter(f=>xt(r,[f.label,f.description]));i.useLayoutEffect(()=>{const f=d.current;if(!f)return;const _=()=>{b(f.querySelectorAll("[data-settings-pane]").length!==f.querySelectorAll("[data-settings-pane-ready]").length),m(f.querySelectorAll("[data-settings-item].settings-search-match").length)};_();const P=new MutationObserver(_);return P.observe(f,{attributes:!0,attributeFilter:["class","data-settings-item"],childList:!0,subtree:!0}),()=>P.disconnect()},[r,o]);const R=E.length>0||x===null||x>0;return t.jsxs("div",{className:"settings-search-results","aria-busy":g,children:[E.length>0&&t.jsxs("div",{className:"settings-search-category-matches",children:[t.jsx("h3",{className:"settings-search-heading",children:l("settingsSearchCategoriesHeading")}),t.jsx("div",{className:"settings-category-list",children:E.map(f=>t.jsx(W,{category:f,isActive:!1,onClick:()=>u(f.id),highlightQuery:r},f.id))})]}),t.jsx("div",{ref:d,children:e.map(f=>{const _=s[f.id];return _?t.jsx(H,{label:f.label,children:t.jsx(Dt,{category:f,Component:_,query:r,matchValues:o,onJumpToItem:a,onOpenCategory:u})},f.id):null})}),!R&&!g&&t.jsx("p",{className:"settings-search-no-results",children:l("settingsSearchNoResults",{query:r})}),t.jsx("span",{className:"settings-search-live-count","aria-live":"polite",children:l("settingsSearchResultCount",{count:(x??0)+E.length})})]})}function Dt({category:e,Component:s,query:r,matchValues:o,onJumpToItem:a,onOpenCategory:u}){const l=i.useMemo(()=>({query:r,matchValues:o,sectionMatched:!1,categoryLabel:e.label,jumpToItem:d=>a(e.id,d)}),[r,o,e.id,e.label,a]);return t.jsxs("section",{className:"settings-search-pane","data-category":e.id,children:[t.jsx("h3",{className:"settings-search-pane-title",children:t.jsxs("button",{type:"button",onClick:()=>u(e.id),children:[e.label," ›"]})}),t.jsx(ft,{value:l,children:t.jsx(wt,{Component:s})})]})}const Rt="Ctrl+Z / ⌘Z",Nt=new Set(["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"]);function Bt(e){return e instanceof HTMLElement?e.isContentEditable||e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement&&Nt.has(e.type):!1}function Ot({registration:e,paneTitle:s}){const{t:r}=C(),o=(e==null?void 0:e.canUndo)??!1,a=r("settingsUndoSnapshotTooltip",{page:s,shortcut:Rt});return i.useEffect(()=>{if(!o||!e)return;const u=l=>{l.defaultPrevented||l.isComposing||l.repeat||l.altKey||l.shiftKey||!l.ctrlKey&&!l.metaKey||l.key.toLowerCase()!=="z"||Bt(l.target)||(l.preventDefault(),e.undo())};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[o,e]),t.jsx("button",{type:"button",className:"settings-button",onClick:()=>void(e==null?void 0:e.undo()),title:o?a:void 0,"aria-label":o?a:r("settingsUndoChanges"),disabled:!o,"aria-hidden":!o,tabIndex:o?0:-1,style:{visibility:o?"visible":"hidden"},children:r("settingsUndoChanges")})}const me={appearance:i.lazy(()=>p(()=>import("./AppearanceSettings-DTYVt0W5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40])).then(e=>({default:e.AppearanceSettings}))),performance:i.lazy(()=>p(()=>import("./PerformanceSettings-jJYF9SPY.js"),__vite__mapDeps([41,1,2,3,34,42,28,8,6,7,9,27,29,10,11,12,13,14,30,5,15,16,17,18,19,31,32,43,24,25,26,36,37,38,39,40])).then(e=>({default:e.PerformanceSettings}))),toolbar:i.lazy(()=>p(()=>import("./ToolbarSettings-Nb2BKpnk.js"),__vite__mapDeps([44,1,2,3,45,6,7,46,18,8,9,27,28,29,10,11,12,13,14,30,5,15,16,17,19,31,32,47,48,34,49,50,51,52,53,54,55,56,57,58,59,60,61,35,24,25,26,36,37,38,39,40,62])).then(e=>({default:e.ToolbarSettings}))),model:i.lazy(()=>p(()=>import("./ModelSettings-Dnd4yzmI.js"),__vite__mapDeps([63,1,2,3,52,46,6,7,18,8,9,64,65,56,34,54,66,28,67,35,16,17,24,25,26,68,69,36,10,11,12,13,14,37,38,39,27,29,30,5,15,19,31,32,40,70])).then(e=>({default:e.ModelSettings}))),"cache-miss-billing":i.lazy(()=>p(()=>import("./CacheMissBillingSettings-rUgC-_DD.js"),__vite__mapDeps([71,1,2,3,52,6,7,55,8,9,28,57,24,25,26,36,10,11,12,13,14,37,38,39,27,29,30,5,15,16,17,18,19,31,32,40,72])).then(e=>({default:e.CacheMissBillingSettings}))),"message-delivery":i.lazy(()=>p(()=>import("./MessageDeliverySettings-BUSuGKlc.js"),__vite__mapDeps([73,1,2,3,52,27,8,6,7,9,28,29,10,11,12,13,14,30,5,15,16,17,18,19,31,32,34,74,75,24,25,26,36,37,38,39,40,76])).then(e=>({default:e.MessageDeliverySettings}))),"source-control":i.lazy(()=>p(()=>import("./SourceControlSettings-DnqLg0db.js"),__vite__mapDeps([77,1,2,3,28,8,6,7,9,78,24,25,26,36,10,11,12,13,14,37,38,39,27,29,30,5,15,16,17,18,19,31,32,40])).then(e=>({default:e.SourceControlSettings}))),issues:i.lazy(()=>p(()=>import("./IssueSettings-BVljRpuD.js"),__vite__mapDeps([79,1,2,3,8,6,7,9,28,24,25,26,36,10,11,12,13,14,37,38,39,27,29,30,5,15,16,17,18,19,31,32,40,80])).then(e=>({default:e.IssueSettings}))),"computer-control":i.lazy(()=>p(()=>import("./ComputerControlSettings-MWIdP7SS.js"),__vite__mapDeps([81,1,2,3,8,6,7,9,26,36,10,11,12,13,14,37,38,28,39,27,29,30,5,15,16,17,18,19,31,32,40,82])).then(e=>({default:e.ComputerControlSettings}))),storage:i.lazy(()=>p(()=>import("./StorageSettings-DtsJnYaz.js"),__vite__mapDeps([83,1,2,3,28,8,6,7,9,24,25,26,36,10,11,12,13,14,37,38,39,27,29,30,5,15,16,17,18,19,31,32,40,84])).then(e=>({default:e.StorageSettings}))),"agent-context":i.lazy(()=>p(()=>import("./AgentContextSettings-DI8jQVIx.js"),__vite__mapDeps([85,1,2,3,86,87,28,8,6,7,9,24,25,26,36,10,11,12,13,14,37,38,39,27,29,30,5,15,16,17,18,19,31,32,40])).then(e=>({default:e.AgentContextSettings}))),notifications:i.lazy(()=>p(()=>import("./NotificationsSettings-B1ugQIp-.js"),__vite__mapDeps([88,1,2,3,89,90,6,7,13,91,24,25,26,36,10,8,9,11,12,14,37,38,28,39,27,29,30,5,15,16,17,18,19,31,32,40,92])).then(e=>({default:e.NotificationsSettings}))),webhooks:i.lazy(()=>p(()=>import("./LifecycleWebhooksSettings-Qw_dN3F3.js"),__vite__mapDeps([93,1,2,3,28,8,6,7,9,24,25,26,36,10,11,12,13,14,37,38,39,27,29,30,5,15,16,17,18,19,31,32,40])).then(e=>({default:e.LifecycleWebhooksSettings}))),devices:i.lazy(()=>p(()=>import("./DevicesSettings-DKQOZkRN.js"),__vite__mapDeps([94,1,2,3,6,7,91,90,13,26,59,36,10,8,9,11,12,14,37,38,28,39,27,29,30,5,15,16,17,18,19,31,32,40])).then(e=>({default:e.DevicesSettings}))),"local-access":i.lazy(()=>p(()=>import("./LocalAccessSettings-SWirs75o.js"),__vite__mapDeps([95,1,2,3,6,7,68,69,96,8,9,91,28,24,25,26,97,35,34,98,10,11,12,13,14,36,37,38,39,27,29,30,5,15,16,17,18,19,31,32,40,99,100])).then(e=>({default:e.LocalAccessSettings}))),users:i.lazy(()=>p(()=>import("./UsersSettings-BdvqmyqK.js"),__vite__mapDeps([101,1,2,3,27,8,6,7,9,28,29,10,11,12,13,14,30,5,15,16,17,18,19,31,32,54,52,24,25,26,36,37,38,39,40,102])).then(e=>({default:e.UsersSettings}))),"project-templates":i.lazy(()=>p(()=>import("./ProjectTemplatesSettings-BQTCV3-3.js"),__vite__mapDeps([103,1,2,3,6,7,8,9,27,28,29,10,11,12,13,14,30,5,15,16,17,18,19,31,32,26,36,37,38,39,40,104])).then(e=>({default:e.ProjectTemplatesSettings}))),apps:i.lazy(()=>p(()=>import("./AppsSettings-hbh_sguk.js"),__vite__mapDeps([97,1,2,3,8,6,7,9,35,34,26,98,10,11,12,13,14,36,37,38,28,39,27,29,30,5,15,16,17,18,19,31,32,40,99])).then(e=>({default:e.AppsSettings}))),remote:i.lazy(()=>p(()=>import("./RemoteAccessSettings-Dn7KB5nK.js"),__vite__mapDeps([105,1,2,3,27,8,6,7,9,28,29,10,11,12,13,14,30,5,15,16,17,18,19,31,32,59,38,106,24,25,26,97,35,34,98,36,37,39,40,99])).then(e=>({default:e.RemoteAccessSettings}))),providers:i.lazy(()=>p(()=>import("./ProvidersSettings-Bwzy73Rk.js"),__vite__mapDeps([107,1,2,3,52,108,109,6,7,35,34,8,9,16,17,110,54,28,18,67,24,25,26,64,36,10,11,12,13,14,37,38,39,27,29,30,5,15,19,31,32,40,111])).then(e=>({default:e.ProvidersSettings}))),speech:i.lazy(()=>p(()=>import("./SpeechSettings-B6LkqfSK.js"),__vite__mapDeps([112,1,2,3,68,69,47,48,6,7,8,9,46,18,34,49,28,24,25,26,113,36,10,11,12,13,14,37,38,39,27,29,30,5,15,16,17,19,31,32,40,114])).then(e=>({default:e.SpeechSettings}))),"remote-executors":i.lazy(()=>p(()=>import("./RemoteExecutorsSettings-Cjl4Y2rB.js"),__vite__mapDeps([115,1,2,3,116,6,7,28,8,9,24,25,26,36,10,11,12,13,14,37,38,39,27,29,30,5,15,16,17,18,19,31,32,40,117])).then(e=>({default:e.RemoteExecutorsSettings}))),emulator:i.lazy(()=>p(()=>import("./EmulatorSettings-C6Ye1k_Y.js"),__vite__mapDeps([118,1,2,3,119,6,7,28,8,9,24,25,26,36,10,11,12,13,14,37,38,39,27,29,30,5,15,16,17,18,19,31,32,40])).then(e=>({default:e.EmulatorSettings}))),environment:i.lazy(()=>p(()=>import("./EnvironmentSettings-ou8UNqTa.js"),__vite__mapDeps([120,1,2,3,6,7,24,25,26,36,10,8,9,11,12,13,14,37,38,28,39,27,29,30,5,15,16,17,18,19,31,32,40,121])).then(e=>({default:e.EnvironmentSettings}))),about:i.lazy(()=>p(()=>import("./AboutSettings-CCzudbSj.js"),__vite__mapDeps([122,1,2,3,6,7,123,16,9,17,13,124,8,24,25,26,36,10,11,12,14,37,38,28,39,27,29,30,5,15,18,19,31,32,40])).then(e=>({default:e.AboutSettings}))),development:i.lazy(()=>p(()=>import("./DevelopmentSettings-BEAy_xq-.js"),__vite__mapDeps([125,1,2,3,126,8,6,7,9,16,17,127,128,13,28,27,29,10,11,12,14,30,5,15,18,19,31,32,129,106,24,25,26,36,37,38,39,40])).then(e=>({default:e.DevelopmentSettings})))},Vt=700;function zt(e){return e>=Vt}function Ie(e){return!!e&&typeof e=="object"}function Ft(e){return e?{settingsDetailOpenedFromList:!0}:void 0}function fe(e){return Ie(e)&&e.settingsDetailOpenedFromList===!0}function Ut({currentCategory:e,useTwoColumnSettings:s}){return s&&!!e}function Wt(){return typeof window>"u"?1200:window.innerWidth}function Ht(){const[e,s]=i.useState(null),[r,o]=i.useState(Wt);return i.useLayoutEffect(()=>{if(!e)return;const a=()=>{o(e.clientWidth)};if(a(),typeof ResizeObserver>"u")return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a);const u=new ResizeObserver(a);return u.observe(e),()=>u.disconnect()},[e]),[s,r]}function Gt(e){if(typeof e.scrollTo=="function"){e.scrollTo({top:0,behavior:"auto"});return}e.scrollTop=0}function Kt(){var ce;const{t:e}=C(),{category:s}=Ve(),r=ze(),o=Fe(),a=Je(),{openSidebar:u,isWideScreen:l}=Ze(),[d,x]=Ht(),m=i.useRef(null),g=zt(x),{version:b}=Ye(),{principal:E}=Qe(),R=T(b,Ue),{registration:f,setRegistration:_}=It(),{title:P,setTitle:J}=Ct(),[k,Y]=i.useState(""),[$,Pe]=Tt(),ke=i.useDeferredValue(k.trim()),Z=k.trim()!=="",[Q,X]=i.useState(null);i.useEffect(()=>{const c=o.state;Ie(c)&&typeof c.settingsJumpTarget=="string"&&X(c.settingsJumpTarget)},[o.state]);const q=i.useCallback(()=>X(null),[]),ee=i.useMemo(()=>({target:Q,consume:q}),[Q,q]),j=[...qe(c=>e(c))];if(!T(b,V.projectTemplateSources.name)){const c=j.findIndex(S=>S.id==="project-templates");c>=0&&j.splice(c,1)}if(!T(b,V.computerControl.name)){const c=j.findIndex(S=>S.id==="computer-control");c>=0&&j.splice(c,1)}if(!T(b,We)){const c=j.findIndex(S=>S.id==="source-control");c>=0&&j.splice(c,1)}if(T(b,He)||T(b,Ge)||T(b,Ke)){const c=j.findIndex(S=>S.id==="about");j.splice(c>=0?c:j.length,0,et(S=>e(S)))}if(!T(b,V.issueSessionAssociations.name)){const c=j.findIndex(S=>S.id==="issues");c>=0&&j.splice(c,1)}const N=E.username!==null,M=N?j.filter(c=>de(c.id)):j,te=R&&!N,y=s||(g?(ce=M[0])==null?void 0:ce.id:void 0),B=i.useCallback(c=>{m.current=c},[]),A=i.useCallback(()=>{const c=m.current;c&&Gt(c)},[]);i.useLayoutEffect(()=>{o.key,A()},[o.key,A]);const se=()=>{fe(o.state)?r(-1):r(`${a}/settings`,{replace:!!s}),A()},ne=()=>{if(s){se();return}r(`${a}/settings`,{replace:!0}),A()},w=(c,S)=>{Y("");const Ne=!s||fe(o.state),le=Ft(Ne);r(`${a}/settings/${c}`,{replace:Ut({currentCategory:s,useTwoColumnSettings:g}),state:S?{...le,settingsJumpTarget:S}:le})},Ae=c=>{w(c)},we=(c,S)=>{w(c,S)},ie=t.jsx(Et,{query:k,onQueryChange:Y,matchValues:$,onMatchValuesChange:Pe}),oe=Z?t.jsx(Lt,{categories:M,components:me,query:ke||k.trim(),matchValues:$,onJumpToItem:we,onOpenCategory:Ae}):null,Le=()=>{se()},O=M.find(c=>c.id===y),De=N&&y!==void 0&&!de(y),L=y&&!De?me[y]:null,D=P??(O==null?void 0:O.label)??e("pageTitleSettings"),re=y==="model"?e("modelSettingsSessionDefaultsDescription"):null,Re=t.jsxs("span",{className:"settings-breadcrumb",children:[t.jsx("button",{type:"button",className:"session-title settings-breadcrumb-root",onClick:ne,children:e("pageTitleSettings")}),t.jsx("span",{className:"settings-breadcrumb-sep","aria-hidden":"true",children:"›"}),t.jsx("span",{className:"settings-breadcrumb-current",children:D}),re&&t.jsx("span",{className:"settings-breadcrumb-description",children:re})]}),ae=t.jsx(Ot,{registration:f,paneTitle:D});return g?t.jsxs(F,{isWideScreen:l,innerRef:d,children:[t.jsx(z,{title:D,titleElement:Re,onOpenSidebar:u,isWideScreen:l,actions:ae}),t.jsx("main",{ref:B,className:"page-scroll-container",children:t.jsxs("div",{className:"settings-two-column",children:[t.jsxs("nav",{className:"settings-category-nav",children:[ie,t.jsxs("div",{className:"settings-category-list",children:[M.map(c=>t.jsx(W,{category:c,isActive:!Z&&y===c.id,onClick:()=>w(c.id)},c.id)),te&&t.jsx(he,{})]})]}),t.jsx("div",{className:"settings-content-panel",children:oe??t.jsx(ge,{value:ee,children:t.jsx(G,{value:J,children:t.jsx(K,{value:_,children:t.jsx(H,{children:L&&t.jsx(L,{})},y)})})})})]})})]}):s?t.jsxs(F,{isWideScreen:l,innerRef:d,children:[t.jsx(z,{title:D,onOpenSidebar:u,showBack:!0,onBack:Le,actions:ae}),t.jsx("main",{ref:B,className:"page-scroll-container",children:t.jsx("div",{className:"page-content-inner",children:t.jsx(ge,{value:ee,children:t.jsx(G,{value:J,children:t.jsx(K,{value:_,children:t.jsx(H,{children:L&&t.jsx(L,{})},y)})})})})})]}):t.jsxs(F,{isWideScreen:l,innerRef:d,children:[t.jsx(z,{title:e("pageTitleSettings"),onTitleClick:ne,onOpenSidebar:u,isWideScreen:l}),t.jsx("main",{ref:B,className:"page-scroll-container",children:t.jsxs("div",{className:"page-content-inner settings-category-list-shell",children:[ie,oe??t.jsxs("div",{className:"settings-category-list",children:[M.map(c=>t.jsx(W,{category:c,isActive:!1,onClick:()=>w(c.id)},c.id)),te&&t.jsx(he,{})]})]})})]})}const ds=Object.freeze(Object.defineProperty({__proto__:null,SettingsLayout:Kt},Symbol.toStringTag,{value:"Module"}));export{cs as H,os as S,ut as a,us as b,qt as c,ht as d,es as e,ns as f,is as g,ts as h,ss as i,St as j,xt as k,ft as l,as as m,rs as n,Mt as o,ds as p,xe as r,pt as s,ls as u};
|