@zortexhq/indra-v2.5 0.2.2 → 0.2.3

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.
Files changed (111) hide show
  1. package/dist/box-level1-setup.js +1 -1
  2. package/dist/calcom-level1-setup.js +1 -1
  3. package/dist/cli-run.js +1 -1
  4. package/dist/connector-worker.js +1 -1
  5. package/dist/discord-level1-setup.js +1 -1
  6. package/dist/dropbox-level1-setup.js +1 -1
  7. package/dist/figma-level1-setup.js +1 -1
  8. package/dist/freshdesk-level1-setup.js +1 -1
  9. package/dist/freshrss-level1-setup.js +1 -1
  10. package/dist/front-level1-setup.js +1 -1
  11. package/dist/gateway.js +1 -1
  12. package/dist/google-chat-level1-setup.js +1 -1
  13. package/dist/google-contacts-level1-setup.js +1 -1
  14. package/dist/hubspot-level1-setup.js +1 -1
  15. package/dist/joplin-selection.js +1 -1
  16. package/dist/local-cloud.js +1 -1
  17. package/dist/mattermost-level1-setup.js +1 -1
  18. package/dist/mcp.js +2 -2
  19. package/dist/measurement-context.js +1 -1
  20. package/dist/miniflux-level1-setup.js +1 -1
  21. package/dist/nextcloud-level1-setup.js +1 -1
  22. package/dist/operation-telemetry.js +1 -0
  23. package/dist/prepared-level1-setup.js +1 -0
  24. package/dist/profile.js +1 -1
  25. package/dist/proton-mail-level1-setup.js +1 -1
  26. package/dist/recovery-launch.js +10 -0
  27. package/dist/recovery-support.js +1 -1
  28. package/dist/recovery-surface.js +1 -0
  29. package/dist/recovery.js +1 -1
  30. package/dist/resident-host.js +2 -2
  31. package/dist/resident-jobs.js +1 -1
  32. package/dist/resident-platform.js +1 -1
  33. package/dist/resident-telemetry.js +1 -0
  34. package/dist/resource-telemetry.js +1 -0
  35. package/dist/salesforce-level1-setup.js +1 -1
  36. package/dist/smartsheet-level1-setup.js +1 -1
  37. package/dist/startup.js +2 -2
  38. package/dist/thunderbird-level1-setup.js +1 -1
  39. package/dist/wakatime-level1-setup.js +1 -1
  40. package/dist/wallabag-level1-setup.js +1 -1
  41. package/dist/web.js +2 -2
  42. package/dist/zendesk-level1-setup.js +1 -1
  43. package/dist/zoom-level1-setup.js +1 -1
  44. package/dist/zulip-level1-setup.js +1 -1
  45. package/node_modules/@zortexhq/plugin-connector-core/dist/hub.js +1 -1
  46. package/node_modules/@zortexhq/plugin-connector-core/dist/operational-hub.js +1 -0
  47. package/node_modules/@zortexhq/plugin-connector-level1/dist/chatgpt.js +1 -1
  48. package/node_modules/@zortexhq/plugin-connector-level1/dist/index.js +1 -1
  49. package/node_modules/@zortexhq/plugin-connector-level1/dist/mcp-feedback.js +1 -0
  50. package/node_modules/@zortexhq/plugin-connector-level1/dist/operational-client.js +1 -0
  51. package/node_modules/@zortexhq/plugin-connector-level1/dist/shallow.js +1 -1
  52. package/node_modules/@zortexhq/plugin-connector-level1/package.json +2 -0
  53. package/node_modules/@zortexhq/plugin-galaxy-ui/dist/index.js +1 -1
  54. package/node_modules/@zortexhq/plugin-galaxy-ui/dist/routes.js +1 -1
  55. package/node_modules/@zortexhq/plugin-galaxy-ui/dist/server.js +1 -1
  56. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-catalog.js +1 -0
  57. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-i18n.js +1 -0
  58. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-model.js +1 -0
  59. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-text.js +1 -0
  60. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app.html +42 -0
  61. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/connection-client.js +1 -0
  62. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/connection-forms.js +1 -0
  63. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/demo.js +1 -0
  64. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/shell.css +47 -6
  65. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/shell.js +1 -1
  66. package/node_modules/@zortexhq/plugin-galaxy-ui/src/original/fonts/LICENSE.txt +92 -0
  67. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/feedback.js +1 -1
  68. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/google-oauth-bridge.js +1 -1
  69. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/index.js +1 -1
  70. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/browser-actions.js +1 -1
  71. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/driver.js +1 -1
  72. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/index.js +1 -1
  73. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/operational-browser.js +1 -0
  74. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/session-routes.js +1 -1
  75. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/shared-session.js +1 -1
  76. package/node_modules/@zortexhq/plugin-posthog/dist/collection-status.js +1 -0
  77. package/node_modules/@zortexhq/plugin-posthog/dist/index.js +1 -1
  78. package/node_modules/@zortexhq/plugin-posthog/dist/indra.js +1 -1
  79. package/node_modules/@zortexhq/plugin-posthog/dist/local-cloud.js +1 -1
  80. package/node_modules/@zortexhq/plugin-posthog/dist/northstar.js +1 -1
  81. package/node_modules/@zortexhq/plugin-posthog/dist/observations.js +1 -1
  82. package/node_modules/@zortexhq/plugin-posthog/dist/operational.js +1 -0
  83. package/node_modules/@zortexhq/plugin-posthog/dist/resources.js +1 -0
  84. package/node_modules/@zortexhq/plugin-posthog/dist/source-ids.js +1 -1
  85. package/node_modules/@zortexhq/plugin-process-local/dist/api/resources.js +1 -0
  86. package/node_modules/@zortexhq/plugin-process-local/dist/index.js +1 -1
  87. package/node_modules/@zortexhq/plugin-process-local/dist/resource-sampler.js +1 -0
  88. package/node_modules/@zortexhq/plugin-process-local/dist/runner.js +1 -1
  89. package/node_modules/@zortexhq/plugin-process-local/package.json +3 -0
  90. package/node_modules/@zortexhq/plugin-telemetry/dist/api/collection.js +1 -0
  91. package/node_modules/@zortexhq/plugin-telemetry/dist/api/index.js +1 -1
  92. package/node_modules/@zortexhq/plugin-telemetry/dist/api/measurement.js +1 -1
  93. package/node_modules/@zortexhq/plugin-telemetry/dist/api/observations.js +1 -1
  94. package/node_modules/@zortexhq/plugin-telemetry/dist/api/operational.js +1 -0
  95. package/node_modules/@zortexhq/plugin-telemetry/dist/api/resources.js +1 -0
  96. package/node_modules/@zortexhq/plugin-telemetry/dist/api/source-ids.js +1 -0
  97. package/node_modules/@zortexhq/plugin-telemetry/dist/api/telemetry.js +1 -1
  98. package/node_modules/@zortexhq/plugin-telemetry/dist/api/tool-call.js +1 -0
  99. package/node_modules/@zortexhq/plugin-telemetry/dist/api/tool-methods.js +1 -0
  100. package/node_modules/@zortexhq/plugin-telemetry/dist/api/upstream-tools.js +1 -0
  101. package/node_modules/@zortexhq/plugin-telemetry/dist/index.js +1 -1
  102. package/node_modules/@zortexhq/plugin-telemetry/dist/resources.js +1 -0
  103. package/node_modules/@zortexhq/plugin-telemetry/package.json +3 -0
  104. package/node_modules/@zortexhq/plugin-vault-sqlite/dist/api/index.js +1 -1
  105. package/node_modules/@zortexhq/plugin-vault-sqlite/dist/api/storage-metadata.js +1 -0
  106. package/node_modules/@zortexhq/plugin-vault-sqlite/dist/index.js +1 -1
  107. package/node_modules/@zortexhq/plugin-vault-sqlite/dist/storage-metadata.js +1 -0
  108. package/package.json +6 -6
  109. package/release-provenance.json +26 -26
  110. package/update-manifest.json +377 -179
  111. package/dist/recovery-page.js +0 -215
@@ -0,0 +1 @@
1
+ export function connectionView(coverage={},report,now=Date.now()){const source=coverage.source||report?.source||"";const progress=coverage.progress;const state=report?.state;const support=report?.support||coverage.support;const reloadRequired=report?.reloadRequired===true||support?.reasonCode==="configuration_reload_required";const connected=!reloadRequired&&(report?report.connection==="connected":coverage.connectionState==="connected");const failed=state==="failed"||!report&&progress?.stage==="finished"&&!!progress.errorCode;const errorCode=report?.errorCode||progress?.errorCode||"";const expiresAt=typeof report?.authorizationExpiresAt==="string"?Date.parse(report.authorizationExpiresAt):NaN;const expired=state==="waiting-user"&&Number.isFinite(expiresAt)&&expiresAt<=now||failed&&(errorCode==="qr_expired"||["whatsapp","whatsapp-web"].includes(source)&&["authorization_timeout","pairing_timeout"].includes(errorCode));const qr=!!report?.authorizationImage||errorCode==="qr_expired"||expired&&["whatsapp","whatsapp-web"].includes(source);if(expired&&report){report={...report};for(const key of["authorizationImage","authorizationUrl","deviceUserCode","authorizationInstructions","browserContinuation"])delete report[key]}const base={source,connected,attention:false,tone:"neutral",status:"Not connected",title:"Bring this app into your workspace",description:"Connect your account to make this app available to your AI.",action:"connect",actionLabel:"Connect",kind:"connect",items:Number.isSafeInteger(coverage.items)?coverage.items:null,report};if(expired)return{...base,attention:true,tone:"attention",status:qr?"QR code expired":"Sign-in expired",title:qr?"Your QR code expired":"This sign-in link expired",description:qr?"Get a fresh code, then scan it to continue connecting.":"Start sign-in again to get a fresh authorization link.",action:"restart",actionLabel:qr?"Get a new code":"Restart sign-in",kind:"expired"};if(state==="waiting-user"||!report&&progress?.stage==="waiting-user"){return{...base,attention:true,tone:"attention",status:qr?"Scan QR code":"Finish connecting",title:qr?"Link your WhatsApp account":"One more step to connect",description:qr?"Scan this code from WhatsApp on your phone.":"Finish authorization, then return here. We\u2019ll check the connection automatically.",action:"continue",actionLabel:qr?"Scan QR code":"Continue connection",kind:qr?"qr":"waiting"}}if(["connecting","reading"].includes(state)||!report&&progress&&["configuring","checking","connecting","reading"].includes(progress.stage)){return{...base,tone:"working",status:state==="reading"?"Checking connection":"Connecting",title:state==="reading"?"Checking your connection":"Connecting your app",description:"You can keep browsing. Your connection progress stays here.",action:"open",actionLabel:"View progress",kind:"working"}}if(reloadRequired)return{...base,attention:true,tone:"attention",status:"Restart needed",title:"Settings saved",description:support?.nextStep||"Restart Zortex, then check this app again to finish connecting.",action:"refresh",actionLabel:"Check again",kind:"reload"};if(failed&&source==="joplin"&&!connected&&report?.joplinSetupAvailable&&support?.state!=="unsupported")return{...base,attention:true,tone:"attention",status:"Setup needed",title:"Set up your connection",description:"Add the settings this app needs, then connect your account.",action:"setup",actionLabel:"Set up",kind:"setup"};const authorizationAvailable=report?.authorizationAvailable!==false&&!["joplin","google-chrome","microsoft-edge"].includes(source);if(failed&&authorizationAvailable&&/expired|revoked|invalid_grant|reauthoriz|permission_denied/.test(errorCode))return{...base,attention:true,tone:"attention",status:"Reconnect needed",title:"Your app needs you to sign in again",description:"Reconnect to restore access. Previously saved records are kept.",action:"authorize",actionLabel:"Reconnect",kind:"attention"};if(failed)return{...base,attention:true,tone:"attention",status:"Needs attention",title:connected?"Connected, with one thing to check":"Let\u2019s finish connecting this app",description:connected?"Your connection is saved. The latest check did not finish.":"Automatic setup could not finish. You can continue here with a manual connection.",action:connected?"read":"connect",actionLabel:connected?"Try again":"Connect manually",kind:"attention"};if(connected){const empty=report?report.read==="empty"||report.state==="empty":coverage.readEvidence?.returned===0;return{...base,tone:"success",status:"Connected",title:empty?"Connected. Ready when you are.":"You\u2019re connected",description:empty?"The connection check succeeded. There are no items to show yet.":"This app is connected and available in your workspace.",action:"open",actionLabel:"Open app",kind:empty?"empty":"success"}}const setupAvailable=report?.setupAvailable===true||report&&Object.entries(report).some(([key,value])=>key.endsWith("SetupAvailable")&&value===true);if(support?.state!=="unsupported"&&(support?.state==="setup-required"||coverage.registration==="deferred"||report?.registration==="deferred"||setupAvailable)){return{...base,status:"Setup needed",title:"Set up your connection",description:"Add the settings this app needs, then connect your account.",action:"setup",actionLabel:"Set up",kind:"setup"}}if(support?.state==="unsupported"||state==="unavailable"||coverage.connectionState==="unavailable"&&coverage.registration!=="deferred"||coverage.registered===null&&!report){return{...base,attention:coverage.registered===null,tone:"muted",status:coverage.registered===null?"Status unavailable":"Unavailable here",title:coverage.registered===null?"We couldn\u2019t check this app":"This app needs a different setup",description:support?.message||"Connection status is unavailable right now. Try refreshing in a moment.",action:"refresh",actionLabel:"Check again",kind:"unavailable"}}return base}export function mergeApps(snapshot,report,catalog=[]){const coverage=new Map((snapshot?.coverage||[]).map(row=>[row.source,row]));const reports=new Map([...report?.sources||[],...report?.others||[]].map(row=>[row.source,row]));const names=new Map(catalog.map(row=>[row.id,row]));return[...new Set([...coverage.keys(),...reports.keys(),...names.keys()])].map(source=>{const row=coverage.get(source)||{source},view=connectionView(row,reports.get(source));return{...names.get(source)||{},id:source,coverage:row,report:view.report,view}})}export function safeAuthorizationUrl(value,source=""){if(typeof value!=="string"||value.length>24e3||/[\u0000-\u0020\u007f\\]/u.test(value))return null;try{const url=new URL(value);if(url.username||url.password||url.hash)return null;if(url.protocol==="https:")return url.href;if(url.protocol==="http:"&&url.hostname==="127.0.0.1"){if(source==="whatsapp-web"&&!url.search&&/^\/[A-Za-z0-9_-]{32}$/.test(url.pathname))return url.href;const match=/^\/connect\/([A-Za-z0-9_-]{32})$/.exec(url.pathname);if(match&&(!url.search||url.port&&url.searchParams.get("state")===match[1]&&[...url.searchParams.keys()].length===1))return url.href}}catch{}return null}export function safeAuthorizationImage(value){if(value?.mimeType!=="image/png"||typeof value.data!=="string"||value.data.length>65536||!/^iVBORw0KGgo[A-Za-z0-9+/]*={0,2}$/.test(value.data))return null;return"data:image/png;base64,"+value.data}
@@ -0,0 +1 @@
1
+ export const APP_TEXT={"Skip to content":["\u8DF3\u5230\u6B63\u6587","\u8DF3\u81F3\u5167\u5BB9"],"Close navigation":["\u5173\u95ED\u5BFC\u822A","\u95DC\u9589\u5C0E\u89BD"],"Open navigation":["\u6253\u5F00\u5BFC\u822A","\u958B\u555F\u5C0E\u89BD"],"Main navigation":["\u4E3B\u5BFC\u822A","\u4E3B\u8981\u5C0E\u89BD"],"Zortex home":["Zortex \u9996\u9875","Zortex \u9996\u9801"],"Workspace":["\u5DE5\u4F5C\u7A7A\u95F4","\u5DE5\u4F5C\u7A7A\u9593"],"Overview":["\u6982\u89C8","\u6982\u89BD"],"Mods":["\u6269\u5C55","\u64F4\u5145\u529F\u80FD"],"Your context.":["\u4F60\u7684\u4FE1\u606F\u3002","\u4F60\u7684\u8CC7\u8A0A\u3002"],"Your possibilities.":["\u66F4\u591A\u53EF\u80FD\u3002","\u66F4\u591A\u53EF\u80FD\u3002"],"Guide":["\u4F7F\u7528\u6307\u5357","\u4F7F\u7528\u6307\u5357"],"Your workspace":["\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4","\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593"],"YOUR WORKSPACE":["\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4","\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593"],"Demo account":["\u6F14\u793A\u8D26\u6237","\u793A\u7BC4\u5E33\u6236"],"Sample workspace":["\u793A\u4F8B\u5DE5\u4F5C\u7A7A\u95F4","\u7BC4\u4F8B\u5DE5\u4F5C\u7A7A\u9593"],"Connected computer":["\u5DF2\u8FDE\u63A5\u7684\u7535\u8111","\u5DF2\u9023\u63A5\u7684\u96FB\u8166"],"On this computer":["\u5728\u8FD9\u53F0\u7535\u8111\u4E0A","\u5728\u9019\u53F0\u96FB\u8166\u4E0A"],"Refresh app status":["\u5237\u65B0\u5E94\u7528\u72B6\u6001","\u91CD\u65B0\u6574\u7406\u61C9\u7528\u7A0B\u5F0F\u72C0\u614B"],"Everything you use, a little more connected.":["\u8BA9\u4F60\u5E38\u7528\u7684\u5E94\u7528\uFF0C\u8FDE\u63A5\u5F97\u66F4\u7D27\u5BC6\u3002","\u8B93\u4F60\u5E38\u7528\u7684\u61C9\u7528\u7A0B\u5F0F\uFF0C\u9023\u63A5\u5F97\u66F4\u7DCA\u5BC6\u3002"],"Loading apps":["\u6B63\u5728\u52A0\u8F7D\u5E94\u7528","\u6B63\u5728\u8F09\u5165\u61C9\u7528\u7A0B\u5F0F"],"Your account":["\u4F60\u7684\u8D26\u6237","\u4F60\u7684\u5E33\u6236"],"Close account settings":["\u5173\u95ED\u8D26\u6237\u8BBE\u7F6E","\u95DC\u9589\u5E33\u6236\u8A2D\u5B9A"],"Email address":["\u7535\u5B50\u90AE\u7BB1","\u96FB\u5B50\u90F5\u4EF6\u5730\u5740"],"Send sign-in code":["\u53D1\u9001\u767B\u5F55\u9A8C\u8BC1\u7801","\u50B3\u9001\u767B\u5165\u9A57\u8B49\u78BC"],"Eight-digit code":["\u516B\u4F4D\u9A8C\u8BC1\u7801","\u516B\u4F4D\u9A57\u8B49\u78BC"],"Try a demo account":["\u8BD5\u7528\u6F14\u793A\u8D26\u6237","\u8A66\u7528\u793A\u7BC4\u5E33\u6236"],"Not available":["\u6682\u65E0\u6570\u636E","\u66AB\u7121\u8CC7\u6599"],"Working\u2026":["\u6B63\u5728\u5904\u7406\u2026","\u6B63\u5728\u8655\u7406\u2026"],"View setup":["\u67E5\u770B\u8BBE\u7F6E","\u67E5\u770B\u8A2D\u5B9A"],"All apps":["\u5168\u90E8\u5E94\u7528","\u5168\u90E8\u61C9\u7528\u7A0B\u5F0F"],"Filter apps":["\u7B5B\u9009\u5E94\u7528","\u7BE9\u9078\u61C9\u7528\u7A0B\u5F0F"],"Needs attention":["\u9700\u8981\u5904\u7406","\u9700\u8981\u8655\u7406"],"Need attention":["\u9700\u8981\u5904\u7406","\u9700\u8981\u8655\u7406"],"{0} matching apps":["{0} \u4E2A\u5339\u914D\u5E94\u7528","{0} \u500B\u7B26\u5408\u7684\u61C9\u7528\u7A0B\u5F0F"],"Your connected apps":["\u4F60\u5DF2\u8FDE\u63A5\u7684\u5E94\u7528","\u4F60\u5DF2\u9023\u63A5\u7684\u61C9\u7528\u7A0B\u5F0F"],"Your first connection starts here":["\u4ECE\u8FD9\u91CC\u5F00\u59CB\u7B2C\u4E00\u4E2A\u8FDE\u63A5","\u5F9E\u9019\u88E1\u958B\u59CB\u7B2C\u4E00\u500B\u9023\u63A5"],"Choose an app to bring its information and supported actions into your workspace.":["\u9009\u62E9\u4E00\u4E2A\u5E94\u7528\uFF0C\u5C06\u5176\u4FE1\u606F\u548C\u652F\u6301\u7684\u64CD\u4F5C\u5E26\u5165\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u9078\u64C7\u4E00\u500B\u61C9\u7528\u7A0B\u5F0F\uFF0C\u5C07\u5176\u8CC7\u8A0A\u548C\u652F\u63F4\u7684\u64CD\u4F5C\u5E36\u5165\u5DE5\u4F5C\u7A7A\u9593\u3002"],"A little attention goes a long way":["\u7EE7\u7EED\u5B8C\u6210\u8FD9\u4E9B\u8FDE\u63A5","\u7E7C\u7E8C\u5B8C\u6210\u9019\u4E9B\u9023\u63A5"],"Find your next connection":["\u53D1\u73B0\u4E0B\u4E00\u4E2A\u8FDE\u63A5","\u63A2\u7D22\u4E0B\u4E00\u500B\u9023\u63A5"],"No apps found":["\u6CA1\u6709\u627E\u5230\u5E94\u7528","\u627E\u4E0D\u5230\u61C9\u7528\u7A0B\u5F0F"],"Try another name or clear your filters.":["\u8BD5\u8BD5\u5176\u4ED6\u540D\u79F0\uFF0C\u6216\u6E05\u9664\u7B5B\u9009\u6761\u4EF6\u3002","\u8A66\u8A66\u5176\u4ED6\u540D\u7A31\uFF0C\u6216\u6E05\u9664\u7BE9\u9078\u689D\u4EF6\u3002"],"Connect your first app to bring its context into your workspace.":["\u8FDE\u63A5\u7B2C\u4E00\u4E2A\u5E94\u7528\uFF0C\u628A\u76F8\u5173\u4FE1\u606F\u5E26\u5165\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u9023\u63A5\u7B2C\u4E00\u500B\u61C9\u7528\u7A0B\u5F0F\uFF0C\u628A\u76F8\u95DC\u8CC7\u8A0A\u5E36\u5165\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Your apps don\u2019t need any attention right now.":["\u76EE\u524D\u6CA1\u6709\u9700\u8981\u5904\u7406\u7684\u5E94\u7528\u3002","\u76EE\u524D\u6C92\u6709\u9700\u8981\u8655\u7406\u7684\u61C9\u7528\u7A0B\u5F0F\u3002"],"The app catalog is unavailable. Refresh to try again.":["\u5E94\u7528\u76EE\u5F55\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5\u3002","\u61C9\u7528\u7A0B\u5F0F\u76EE\u9304\u66AB\u6642\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u91CD\u65B0\u6574\u7406\u518D\u8A66\u3002"],"Show all apps":["\u663E\u793A\u5168\u90E8\u5E94\u7528","\u986F\u793A\u5168\u90E8\u61C9\u7528\u7A0B\u5F0F"],"Not checked yet":["\u5C1A\u672A\u68C0\u67E5","\u5C1A\u672A\u6AA2\u67E5"],"Succeeded \xB7 no items returned":["\u68C0\u67E5\u6210\u529F \xB7 \u6CA1\u6709\u8FD4\u56DE\u5185\u5BB9","\u6AA2\u67E5\u6210\u529F \xB7 \u672A\u50B3\u56DE\u5167\u5BB9"],"Succeeded \xB7 {0} items returned":["\u68C0\u67E5\u6210\u529F \xB7 \u8FD4\u56DE {0} \u9879","\u6AA2\u67E5\u6210\u529F \xB7 \u50B3\u56DE {0} \u9805"],"Action succeeded":["\u64CD\u4F5C\u6210\u529F","\u64CD\u4F5C\u6210\u529F"],"Needs another check":["\u9700\u8981\u518D\u6B21\u68C0\u67E5","\u9700\u8981\u518D\u6B21\u6AA2\u67E5"],"Alex\u2019s sample workspace":["Alex \u7684\u793A\u4F8B\u5DE5\u4F5C\u7A7A\u95F4","Alex \u7684\u7BC4\u4F8B\u5DE5\u4F5C\u7A7A\u9593"],"Saved records":["\u5DF2\u4FDD\u5B58\u7684\u8BB0\u5F55","\u5DF2\u5132\u5B58\u7684\u8A18\u9304"],"Available actions":["\u53EF\u7528\u64CD\u4F5C","\u53EF\u7528\u64CD\u4F5C"],"Latest check":["\u6700\u8FD1\u4E00\u6B21\u68C0\u67E5","\u6700\u8FD1\u4E00\u6B21\u6AA2\u67E5"],"This app has no manual setup form available on this computer.":["\u6B64\u5E94\u7528\u76EE\u524D\u6CA1\u6709\u9002\u7528\u4E8E\u8FD9\u53F0\u7535\u8111\u7684\u624B\u52A8\u8BBE\u7F6E\u8868\u5355\u3002","\u6B64\u61C9\u7528\u7A0B\u5F0F\u76EE\u524D\u6C92\u6709\u9069\u7528\u65BC\u9019\u53F0\u96FB\u8166\u7684\u624B\u52D5\u8A2D\u5B9A\u8868\u55AE\u3002"],"Sign-in details are entered in the app\u2019s secure authorization page after setup.":["\u5B8C\u6210\u8BBE\u7F6E\u540E\uFF0C\u8BF7\u5728\u5E94\u7528\u7684\u5B89\u5168\u6388\u6743\u9875\u9762\u8F93\u5165\u767B\u5F55\u8D44\u6599\u3002","\u5B8C\u6210\u8A2D\u5B9A\u5F8C\uFF0C\u8ACB\u5728\u61C9\u7528\u7A0B\u5F0F\u7684\u5B89\u5168\u6388\u6B0A\u9801\u9762\u8F38\u5165\u767B\u5165\u8CC7\u6599\u3002"],"Save and continue":["\u4FDD\u5B58\u5E76\u7EE7\u7EED","\u5132\u5B58\u4E26\u7E7C\u7E8C"],"Find my vaults":["\u67E5\u627E\u6211\u7684\u7B14\u8BB0\u5E93","\u5C0B\u627E\u6211\u7684\u7B46\u8A18\u5EAB"],"Open the Indra plugin in Joplin, then start pairing here. Both apps will show a fingerprint for you to compare.":["\u5728 Joplin \u4E2D\u6253\u5F00 Indra \u63D2\u4EF6\uFF0C\u7136\u540E\u5728\u8FD9\u91CC\u5F00\u59CB\u914D\u5BF9\u3002\u4E24\u4E2A\u5E94\u7528\u4F1A\u663E\u793A\u6307\u7EB9\u4F9B\u4F60\u6838\u5BF9\u3002","\u5728 Joplin \u4E2D\u958B\u555F Indra \u5916\u639B\uFF0C\u7136\u5F8C\u5728\u9019\u88E1\u958B\u59CB\u914D\u5C0D\u3002\u5169\u500B\u61C9\u7528\u7A0B\u5F0F\u6703\u986F\u793A\u6307\u7D0B\u4F9B\u4F60\u6838\u5C0D\u3002"],"Start pairing":["\u5F00\u59CB\u914D\u5BF9","\u958B\u59CB\u914D\u5C0D"],"This pairing code expired. Start again to get a fresh code.":["\u914D\u5BF9\u7801\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u83B7\u53D6\u65B0\u7801\u3002","\u914D\u5C0D\u78BC\u5DF2\u904E\u671F\uFF0C\u8ACB\u91CD\u65B0\u958B\u59CB\u53D6\u5F97\u65B0\u78BC\u3002"],"Joplin is paired. Continue to verify the connection.":["Joplin \u5DF2\u914D\u5BF9\uFF0C\u8BF7\u7EE7\u7EED\u9A8C\u8BC1\u8FDE\u63A5\u3002","Joplin \u5DF2\u914D\u5C0D\uFF0C\u8ACB\u7E7C\u7E8C\u9A57\u8B49\u9023\u63A5\u3002"],"Verify note access":["\u9A8C\u8BC1\u7B14\u8BB0\u8BBF\u95EE\u6743\u9650","\u9A57\u8B49\u7B46\u8A18\u5B58\u53D6\u6B0A\u9650"],"Paste this public key into the Indra plugin in Joplin.":["\u5C06\u6B64\u516C\u94A5\u7C98\u8D34\u5230 Joplin \u7684 Indra \u63D2\u4EF6\u4E2D\u3002","\u5C07\u6B64\u516C\u958B\u91D1\u9470\u8CBC\u5230 Joplin \u7684 Indra \u5916\u639B\u4E2D\u3002"],"Compare this fingerprint with Joplin. Continue only when both match.":["\u4E0E Joplin \u4E2D\u7684\u6307\u7EB9\u6838\u5BF9\uFF0C\u4EC5\u5728\u4E24\u8005\u4E00\u81F4\u65F6\u7EE7\u7EED\u3002","\u8207 Joplin \u4E2D\u7684\u6307\u7D0B\u6838\u5C0D\uFF0C\u50C5\u5728\u5169\u8005\u4E00\u81F4\u6642\u7E7C\u7E8C\u3002"],"Joplin port":["Joplin \u7AEF\u53E3","Joplin \u9023\u63A5\u57E0"],"Fingerprints match \xB7 Pair":["\u6307\u7EB9\u4E00\u81F4 \xB7 \u914D\u5BF9","\u6307\u7D0B\u4E00\u81F4 \xB7 \u914D\u5C0D"],"Cancel pairing":["\u53D6\u6D88\u914D\u5BF9","\u53D6\u6D88\u914D\u5C0D"],"Public key from Joplin":["Joplin \u63D0\u4F9B\u7684\u516C\u94A5","Joplin \u63D0\u4F9B\u7684\u516C\u958B\u91D1\u9470"],"Compare fingerprints":["\u6838\u5BF9\u6307\u7EB9","\u6838\u5C0D\u6307\u7D0B"],"Demo QR preview":["\u4E8C\u7EF4\u7801\u6F14\u793A","QR \u78BC\u793A\u7BC4"],"Scan this QR code to connect {0}":["\u626B\u63CF\u6B64\u4E8C\u7EF4\u7801\u4EE5\u8FDE\u63A5 {0}","\u6383\u63CF\u6B64 QR \u78BC\u4EE5\u9023\u63A5 {0}"],"Preparing your code\u2026":["\u6B63\u5728\u51C6\u5907\u4E8C\u7EF4\u7801\u2026","\u6B63\u5728\u6E96\u5099 QR \u78BC\u2026"],"Open WhatsApp on your phone.":["\u5728\u624B\u673A\u4E0A\u6253\u5F00 WhatsApp\u3002","\u5728\u624B\u6A5F\u4E0A\u958B\u555F WhatsApp\u3002"],"Go to":["\u524D\u5F80","\u524D\u5F80"],"Settings \u2192 Linked devices":["\u8BBE\u7F6E \u2192 \u5DF2\u5173\u8054\u7684\u8BBE\u5907","\u8A2D\u5B9A \u2192 \u5DF2\u9023\u7D50\u7684\u88DD\u7F6E"],"Tap":["\u70B9\u51FB","\u9EDE\u9078"],"Link a device":["\u5173\u8054\u8BBE\u5907","\u9023\u7D50\u88DD\u7F6E"],"and scan this code.":["\u5E76\u626B\u63CF\u6B64\u4E8C\u7EF4\u7801\u3002","\u4E26\u6383\u63CF\u6B64 QR \u78BC\u3002"],"Device sign-in code":["\u8BBE\u5907\u767B\u5F55\u7801","\u88DD\u7F6E\u767B\u5165\u78BC"],"Continue in {0}":["\u5728 {0} \u4E2D\u7EE7\u7EED","\u5728 {0} \u4E2D\u7E7C\u7E8C"],"Check connection":["\u68C0\u67E5\u8FDE\u63A5","\u6AA2\u67E5\u9023\u63A5"],"Finish sign-in in the window that opened. You can return here at any time to check progress.":["\u5728\u5DF2\u6253\u5F00\u7684\u7A97\u53E3\u4E2D\u5B8C\u6210\u767B\u5F55\uFF0C\u4F60\u53EF\u4EE5\u968F\u65F6\u56DE\u5230\u8FD9\u91CC\u67E5\u770B\u8FDB\u5EA6\u3002","\u5728\u5DF2\u958B\u555F\u7684\u8996\u7A97\u4E2D\u5B8C\u6210\u767B\u5165\uFF0C\u4F60\u53EF\u4EE5\u96A8\u6642\u56DE\u5230\u9019\u88E1\u67E5\u770B\u9032\u5EA6\u3002"],"Complete demo connection":["\u5B8C\u6210\u6F14\u793A\u8FDE\u63A5","\u5B8C\u6210\u793A\u7BC4\u9023\u63A5"],"Sample preview. No QR code or account is connected.":["\u6B64\u4E3A\u793A\u4F8B\u9884\u89C8\uFF0C\u4E0D\u4F1A\u901A\u8FC7\u4E8C\u7EF4\u7801\u6216\u8D26\u6237\u5EFA\u7ACB\u771F\u5B9E\u8FDE\u63A5\u3002","\u6B64\u70BA\u7BC4\u4F8B\u9810\u89BD\uFF0C\u4E0D\u6703\u900F\u904E QR \u78BC\u6216\u5E33\u6236\u5EFA\u7ACB\u771F\u5BE6\u9023\u63A5\u3002"],"Cancel connection":["\u53D6\u6D88\u8FDE\u63A5","\u53D6\u6D88\u9023\u63A5"],"Get a new code":["\u83B7\u53D6\u65B0\u7801","\u53D6\u5F97\u65B0\u78BC"],"{0} is connected":["{0} \u5DF2\u8FDE\u63A5","{0} \u5DF2\u9023\u63A5"],"This connection needs the app on your computer. Open Zortex there and choose Apps \u2192 {0}. Your existing data remains available here.":["\u6B64\u8FDE\u63A5\u9700\u8981\u7535\u8111\u4E0A\u7684\u5E94\u7528\u3002\u8BF7\u5728\u7535\u8111\u4E0A\u6253\u5F00 Zortex\uFF0C\u9009\u62E9\u5E94\u7528 \u2192 {0}\u3002\u5DF2\u6709\u6570\u636E\u4ECD\u53EF\u5728\u8FD9\u91CC\u4F7F\u7528\u3002","\u6B64\u9023\u63A5\u9700\u8981\u96FB\u8166\u4E0A\u7684\u61C9\u7528\u7A0B\u5F0F\u3002\u8ACB\u5728\u96FB\u8166\u4E0A\u958B\u555F Zortex\uFF0C\u9078\u64C7\u61C9\u7528\u7A0B\u5F0F \u2192 {0}\u3002\u65E2\u6709\u8CC7\u6599\u4ECD\u53EF\u5728\u9019\u88E1\u4F7F\u7528\u3002"],"Check progress":["\u67E5\u770B\u8FDB\u5EA6","\u67E5\u770B\u9032\u5EA6"],"Connect manually instead":["\u6539\u4E3A\u624B\u52A8\u8FDE\u63A5","\u6539\u70BA\u624B\u52D5\u9023\u63A5"],"Browse apps":["\u6D4F\u89C8\u5E94\u7528","\u700F\u89BD\u61C9\u7528\u7A0B\u5F0F"],"Refresh status":["\u5237\u65B0\u72B6\u6001","\u91CD\u65B0\u6574\u7406\u72C0\u614B"],"Use the actions this app makes available to your connected AI.":["\u8BA9\u5DF2\u8FDE\u63A5\u7684 AI \u4F7F\u7528\u6B64\u5E94\u7528\u63D0\u4F9B\u7684\u64CD\u4F5C\u3002","\u8B93\u5DF2\u9023\u63A5\u7684 AI \u4F7F\u7528\u6B64\u61C9\u7528\u7A0B\u5F0F\u63D0\u4F9B\u7684\u64CD\u4F5C\u3002"],"Read connected information through your AI.":["\u901A\u8FC7\u4F60\u7684 AI \u8BFB\u53D6\u5DF2\u8FDE\u63A5\u7684\u4FE1\u606F\u3002","\u900F\u904E\u4F60\u7684 AI \u8B80\u53D6\u5DF2\u9023\u63A5\u7684\u8CC7\u8A0A\u3002"],"Connect this app to make supported information and actions available to your AI.":["\u8FDE\u63A5\u6B64\u5E94\u7528\uFF0C\u8BA9\u4F60\u7684 AI \u4F7F\u7528\u5176\u652F\u6301\u7684\u4FE1\u606F\u548C\u64CD\u4F5C\u3002","\u9023\u63A5\u6B64\u61C9\u7528\u7A0B\u5F0F\uFF0C\u8B93\u4F60\u7684 AI \u4F7F\u7528\u5176\u652F\u63F4\u7684\u8CC7\u8A0A\u548C\u64CD\u4F5C\u3002"],"Reconnect or choose an account":["\u91CD\u65B0\u8FDE\u63A5\u6216\u9009\u62E9\u8D26\u6237","\u91CD\u65B0\u9023\u63A5\u6216\u9078\u64C7\u5E33\u6236"],"Connection settings":["\u8FDE\u63A5\u8BBE\u7F6E","\u9023\u63A5\u8A2D\u5B9A"],"Enable Gmail write access":["\u542F\u7528 Gmail \u5199\u5165\u6743\u9650","\u555F\u7528 Gmail \u5BEB\u5165\u6B0A\u9650"],"Enable Readwise write access":["\u542F\u7528 Readwise \u5199\u5165\u6743\u9650","\u555F\u7528 Readwise \u5BEB\u5165\u6B0A\u9650"],"Reconnect saved account":["\u91CD\u65B0\u8FDE\u63A5\u5DF2\u4FDD\u5B58\u7684\u8D26\u6237","\u91CD\u65B0\u9023\u63A5\u5DF2\u5132\u5B58\u7684\u5E33\u6236"],"Manage connection":["\u7BA1\u7406\u8FDE\u63A5","\u7BA1\u7406\u9023\u63A5"],"Connection status":["\u8FDE\u63A5\u72B6\u6001","\u9023\u63A5\u72C0\u614B"],"The connection worked. An empty result means this check returned no items; it doesn\u2019t require signing in again.":["\u8FDE\u63A5\u5DF2\u6210\u529F\u3002\u7A7A\u7ED3\u679C\u8868\u793A\u672C\u6B21\u68C0\u67E5\u6CA1\u6709\u8FD4\u56DE\u5185\u5BB9\uFF0C\u65E0\u9700\u518D\u6B21\u767B\u5F55\u3002","\u9023\u63A5\u5DF2\u6210\u529F\u3002\u7A7A\u7D50\u679C\u8868\u793A\u672C\u6B21\u6AA2\u67E5\u672A\u50B3\u56DE\u5167\u5BB9\uFF0C\u7121\u9700\u518D\u6B21\u767B\u5165\u3002"],"Connection details":["\u8FDE\u63A5\u8BE6\u60C5","\u9023\u63A5\u8A73\u60C5"],"Preview a state":["\u9884\u89C8\u8FDE\u63A5\u72B6\u6001","\u9810\u89BD\u9023\u63A5\u72C0\u614B"],"Sample data only":["\u4EC5\u4F7F\u7528\u793A\u4F8B\u6570\u636E","\u50C5\u4F7F\u7528\u7BC4\u4F8B\u8CC7\u6599"],"Connected, no items":["\u5DF2\u8FDE\u63A5\uFF0C\u6682\u65E0\u5185\u5BB9","\u5DF2\u9023\u63A5\uFF0C\u66AB\u7121\u5167\u5BB9"],"Actions ready":["\u64CD\u4F5C\u5DF2\u5C31\u7EEA","\u64CD\u4F5C\u5DF2\u5C31\u7DD2"],"Automatic setup failed":["\u81EA\u52A8\u8BBE\u7F6E\u5931\u8D25","\u81EA\u52D5\u8A2D\u5B9A\u5931\u6557"],"QR code":["\u4E8C\u7EF4\u7801","QR \u78BC"],"QR expired":["\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F","QR \u78BC\u5DF2\u904E\u671F"],"Waiting for sign-in":["\u7B49\u5F85\u767B\u5F55","\u7B49\u5F85\u767B\u5165"],"Temporary failure":["\u6682\u65F6\u5931\u8D25","\u66AB\u6642\u5931\u6557"],"Manual setup":["\u624B\u52A8\u8BBE\u7F6E","\u624B\u52D5\u8A2D\u5B9A"],"Requires desktop":["\u9700\u8981\u684C\u9762\u5E94\u7528","\u9700\u8981\u684C\u9762\u61C9\u7528\u7A0B\u5F0F"],"Make it part of your day":["\u878D\u5165\u4F60\u7684\u65E5\u5E38\u5DE5\u4F5C","\u878D\u5165\u4F60\u7684\u65E5\u5E38\u5DE5\u4F5C"],"Keep this app\u2019s context close.":["\u968F\u65F6\u4F7F\u7528\u6B64\u5E94\u7528\u7684\u4FE1\u606F\u3002","\u96A8\u6642\u4F7F\u7528\u6B64\u61C9\u7528\u7A0B\u5F0F\u7684\u8CC7\u8A0A\u3002"],"Check connection status here.":["\u5728\u8FD9\u91CC\u67E5\u770B\u8FDE\u63A5\u72B6\u6001\u3002","\u5728\u9019\u88E1\u67E5\u770B\u9023\u63A5\u72C0\u614B\u3002"],"Continue setup whenever you need.":["\u968F\u65F6\u7EE7\u7EED\u5B8C\u6210\u8BBE\u7F6E\u3002","\u96A8\u6642\u7E7C\u7E8C\u5B8C\u6210\u8A2D\u5B9A\u3002"],"Your account, your control":["\u4F60\u7684\u8D26\u6237\uFF0C\u7531\u4F60\u638C\u63A7","\u4F60\u7684\u5E33\u6236\uFF0C\u7531\u4F60\u638C\u63A7"],"Review the permissions on the provider\u2019s sign-in page. Only the account you authorize is connected.":["\u5728\u670D\u52A1\u63D0\u4F9B\u65B9\u7684\u767B\u5F55\u9875\u9762\u67E5\u770B\u6743\u9650\u3002\u4EC5\u8FDE\u63A5\u4F60\u6388\u6743\u7684\u8D26\u6237\u3002","\u5728\u670D\u52D9\u63D0\u4F9B\u8005\u7684\u767B\u5165\u9801\u9762\u67E5\u770B\u6B0A\u9650\u3002\u50C5\u9023\u63A5\u4F60\u6388\u6B0A\u7684\u5E33\u6236\u3002"],"Connection guide \u2197":["\u8FDE\u63A5\u6307\u5357 \u2197","\u9023\u63A5\u6307\u5357 \u2197"],"Connection guide":["\u8FDE\u63A5\u6307\u5357","\u9023\u63A5\u6307\u5357"],"A little more connected.":["\u8BA9\u8FDE\u63A5\u66F4\u8FDB\u4E00\u6B65\u3002","\u8B93\u9023\u63A5\u66F4\u9032\u4E00\u6B65\u3002"],"Your workspace, together.":["\u628A\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4\u8FDE\u63A5\u8D77\u6765\u3002","\u628A\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593\u9023\u63A5\u8D77\u4F86\u3002"],"Welcome to Alex\u2019s sample workspace. Make yourself at home.":["\u6B22\u8FCE\u6765\u5230 Alex \u7684\u793A\u4F8B\u5DE5\u4F5C\u7A7A\u95F4\uFF0C\u968F\u610F\u63A2\u7D22\u3002","\u6B61\u8FCE\u4F86\u5230 Alex \u7684\u7BC4\u4F8B\u5DE5\u4F5C\u7A7A\u9593\uFF0C\u96A8\u610F\u63A2\u7D22\u3002"],"Bring your apps together and keep your connections in view.":["\u6C47\u805A\u5E38\u7528\u5E94\u7528\uFF0C\u968F\u65F6\u638C\u63E1\u8FDE\u63A5\u72B6\u6001\u3002","\u532F\u805A\u5E38\u7528\u61C9\u7528\u7A0B\u5F0F\uFF0C\u96A8\u6642\u638C\u63E1\u9023\u63A5\u72C0\u614B\u3002"],"BUILT AROUND YOU":["\u56F4\u7ED5\u4F60\u7684\u5DE5\u4F5C","\u570D\u7E5E\u4F60\u7684\u5DE5\u4F5C"],"Your everyday tools.":["\u4F60\u6BCF\u5929\u4F7F\u7528\u7684\u5DE5\u5177\u3002","\u4F60\u6BCF\u5929\u4F7F\u7528\u7684\u5DE5\u5177\u3002"],"One connected workspace.":["\u4E00\u4E2A\u4E92\u901A\u7684\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u4E00\u500B\u4E92\u901A\u7684\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Connect the apps you know. Give your AI the context to help with the work ahead.":["\u8FDE\u63A5\u4F60\u719F\u6089\u7684\u5E94\u7528\uFF0C\u4E3A AI \u63D0\u4F9B\u5B8C\u6210\u5DE5\u4F5C\u6240\u9700\u7684\u4FE1\u606F\u3002","\u9023\u63A5\u4F60\u719F\u6089\u7684\u61C9\u7528\u7A0B\u5F0F\uFF0C\u70BA AI \u63D0\u4F9B\u5B8C\u6210\u5DE5\u4F5C\u6240\u9700\u7684\u8CC7\u8A0A\u3002"],"Explore apps":["\u63A2\u7D22\u5E94\u7528","\u63A2\u7D22\u61C9\u7528\u7A0B\u5F0F"],"Connected apps":["\u5DF2\u8FDE\u63A5\u7684\u5E94\u7528","\u5DF2\u9023\u63A5\u7684\u61C9\u7528\u7A0B\u5F0F"],"Sample records":["\u793A\u4F8B\u8BB0\u5F55","\u7BC4\u4F8B\u8A18\u9304"],"Pick up where you left off":["\u4ECE\u4E0A\u6B21\u505C\u4E0B\u7684\u5730\u65B9\u7EE7\u7EED","\u5F9E\u4E0A\u6B21\u505C\u4E0B\u7684\u5730\u65B9\u7E7C\u7E8C"],"View all apps \u2192":["\u67E5\u770B\u5168\u90E8\u5E94\u7528 \u2192","\u67E5\u770B\u5168\u90E8\u61C9\u7528\u7A0B\u5F0F \u2192"],"Manage apps \u2192":["\u7BA1\u7406\u5E94\u7528 \u2192","\u7BA1\u7406\u61C9\u7528\u7A0B\u5F0F \u2192"],"Mod not found":["\u6CA1\u6709\u627E\u5230\u6269\u5C55","\u627E\u4E0D\u5230\u64F4\u5145\u529F\u80FD"],"This mod is not available in this workspace.":["\u6B64\u6269\u5C55\u5728\u5F53\u524D\u5DE5\u4F5C\u7A7A\u95F4\u4E2D\u4E0D\u53EF\u7528\u3002","\u6B64\u64F4\u5145\u529F\u80FD\u5728\u76EE\u524D\u7684\u5DE5\u4F5C\u7A7A\u9593\u4E2D\u7121\u6CD5\u4F7F\u7528\u3002"],"View mods":["\u67E5\u770B\u6269\u5C55","\u67E5\u770B\u64F4\u5145\u529F\u80FD"],"All mods":["\u5168\u90E8\u6269\u5C55","\u5168\u90E8\u64F4\u5145\u529F\u80FD"],"Included":["\u5DF2\u5305\u542B","\u5DF2\u5305\u542B"],"A different view of your context.":["\u6362\u4E2A\u89D2\u5EA6\u770B\u4F60\u7684\u4FE1\u606F\u3002","\u63DB\u500B\u89D2\u5EA6\u770B\u4F60\u7684\u8CC7\u8A0A\u3002"],"Galaxy brings your saved records into a visual map. It uses the information already in your workspace.":["Galaxy \u5C06\u5DF2\u4FDD\u5B58\u7684\u8BB0\u5F55\u7ED8\u6210\u53EF\u89C6\u5316\u5730\u56FE\uFF0C\u4F7F\u7528\u7684\u4FE1\u606F\u90FD\u6765\u81EA\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4\u3002","Galaxy \u5C07\u5DF2\u5132\u5B58\u7684\u8A18\u9304\u7E6A\u6210\u8996\u89BA\u5316\u5730\u5716\uFF0C\u4F7F\u7528\u7684\u8CC7\u8A0A\u90FD\u4F86\u81EA\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Open Galaxy":["\u6253\u5F00 Galaxy","\u958B\u555F Galaxy"],"A few more possibilities for your workspace.":["\u4E3A\u5DE5\u4F5C\u7A7A\u95F4\u589E\u6DFB\u66F4\u591A\u53EF\u80FD\u3002","\u70BA\u5DE5\u4F5C\u7A7A\u9593\u589E\u6DFB\u66F4\u591A\u53EF\u80FD\u3002"],"Made by Zortex":["\u7531 Zortex \u5F00\u53D1","\u7531 Zortex \u958B\u767C"],"Open mod":["\u6253\u5F00\u6269\u5C55","\u958B\u555F\u64F4\u5145\u529F\u80FD"],"Galaxy is included in this version. More mods will appear here when they are available.":["\u6B64\u7248\u672C\u5DF2\u5305\u542B Galaxy\u3002\u66F4\u591A\u6269\u5C55\u53EF\u7528\u65F6\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","\u6B64\u7248\u672C\u5DF2\u5305\u542B Galaxy\u3002\u66F4\u591A\u64F4\u5145\u529F\u80FD\u53EF\u7528\u6642\u6703\u51FA\u73FE\u5728\u9019\u88E1\u3002"],"See the shape of your connected context.":["\u770B\u89C1\u5DF2\u8FDE\u63A5\u4FE1\u606F\u7684\u5168\u8C8C\u3002","\u770B\u898B\u5DF2\u9023\u63A5\u8CC7\u8A0A\u7684\u5168\u8C8C\u3002"],"Your context, seen from a different angle.":["\u4ECE\u53E6\u4E00\u4E2A\u89D2\u5EA6\u770B\u4F60\u7684\u4FE1\u606F\u3002","\u5F9E\u53E6\u4E00\u500B\u89D2\u5EA6\u770B\u4F60\u7684\u8CC7\u8A0A\u3002"],"YOUR CONNECTED CONTEXT":["\u4F60\u5DF2\u8FDE\u63A5\u7684\u4FE1\u606F","\u4F60\u5DF2\u9023\u63A5\u7684\u8CC7\u8A0A"],"There\u2019s a whole world":["\u4F60\u7684\u77E5\u8BC6\u4E2D","\u4F60\u7684\u77E5\u8B58\u4E2D"],"in what you know.":["\u85CF\u7740\u4E00\u4E2A\u5B8C\u6574\u7684\u4E16\u754C\u3002","\u85CF\u8457\u4E00\u500B\u5B8C\u6574\u7684\u4E16\u754C\u3002"],"The live Galaxy maps records from your connected apps. This demo keeps your real data untouched.":["\u771F\u5B9E\u7684 Galaxy \u4F1A\u7ED8\u5236\u5DF2\u8FDE\u63A5\u5E94\u7528\u7684\u8BB0\u5F55\u3002\u6B64\u6F14\u793A\u4E0D\u4F1A\u4F7F\u7528\u4F60\u7684\u771F\u5B9E\u6570\u636E\u3002","\u771F\u5BE6\u7684 Galaxy \u6703\u7E6A\u88FD\u5DF2\u9023\u63A5\u61C9\u7528\u7A0B\u5F0F\u7684\u8A18\u9304\u3002\u6B64\u793A\u7BC4\u4E0D\u6703\u4F7F\u7528\u4F60\u7684\u771F\u5BE6\u8CC7\u6599\u3002"],"Explore sample apps":["\u63A2\u7D22\u793A\u4F8B\u5E94\u7528","\u63A2\u7D22\u7BC4\u4F8B\u61C9\u7528\u7A0B\u5F0F"],"Your real Galaxy starts with your apps":["\u8FDE\u63A5\u5E94\u7528\uFF0C\u5F00\u542F\u4F60\u7684 Galaxy","\u9023\u63A5\u61C9\u7528\u7A0B\u5F0F\uFF0C\u958B\u555F\u4F60\u7684 Galaxy"],"Connect an app on your computer to begin building your own record map.":["\u5728\u7535\u8111\u4E0A\u8FDE\u63A5\u4E00\u4E2A\u5E94\u7528\uFF0C\u5F00\u59CB\u5EFA\u7ACB\u4F60\u7684\u8BB0\u5F55\u5730\u56FE\u3002","\u5728\u96FB\u8166\u4E0A\u9023\u63A5\u4E00\u500B\u61C9\u7528\u7A0B\u5F0F\uFF0C\u958B\u59CB\u5EFA\u7ACB\u4F60\u7684\u8A18\u9304\u5730\u5716\u3002"],"Get Zortex":["\u83B7\u53D6 Zortex","\u53D6\u5F97 Zortex"],"A map of the context saved in your workspace.":["\u5C06\u5DE5\u4F5C\u7A7A\u95F4\u4E2D\u4FDD\u5B58\u7684\u4FE1\u606F\u7ED8\u6210\u5730\u56FE\u3002","\u5C07\u5DE5\u4F5C\u7A7A\u9593\u4E2D\u5132\u5B58\u7684\u8CC7\u8A0A\u7E6A\u6210\u5730\u5716\u3002"],"Your Galaxy record map":["\u4F60\u7684 Galaxy \u8BB0\u5F55\u5730\u56FE","\u4F60\u7684 Galaxy \u8A18\u9304\u5730\u5716"],"Make this workspace yours.":["\u8BA9\u5DE5\u4F5C\u7A7A\u95F4\u9002\u5408\u4F60\u3002","\u8B93\u5DE5\u4F5C\u7A7A\u9593\u9069\u5408\u4F60\u3002"],"Appearance":["\u5916\u89C2","\u5916\u89C0"],"A familiar workspace in every light.":["\u65E0\u8BBA\u660E\u6697\uFF0C\u90FD\u6709\u719F\u6089\u7684\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u7121\u8AD6\u660E\u6697\uFF0C\u90FD\u6709\u719F\u6089\u7684\u5DE5\u4F5C\u7A7A\u9593\u3002"],"System":["\u8DDF\u968F\u7CFB\u7EDF","\u8DDF\u96A8\u7CFB\u7D71"],"Light":["\u6D45\u8272","\u6DFA\u8272"],"Dark":["\u6DF1\u8272","\u6DF1\u8272"],"You\u2019re exploring a sample account.":["\u4F60\u6B63\u5728\u4F53\u9A8C\u793A\u4F8B\u8D26\u6237\u3002","\u4F60\u6B63\u5728\u9AD4\u9A57\u7BC4\u4F8B\u5E33\u6236\u3002"],"Sign in to your Zortex account.":["\u767B\u5F55\u4F60\u7684 Zortex \u8D26\u6237\u3002","\u767B\u5165\u4F60\u7684 Zortex \u5E33\u6236\u3002"],"Leave demo":["\u9000\u51FA\u6F14\u793A","\u96E2\u958B\u793A\u7BC4"],"Manage":["\u7BA1\u7406","\u7BA1\u7406"],"Sample data. No accounts connected.":["\u4EC5\u5C55\u793A\u793A\u4F8B\u6570\u636E\uFF0C\u672A\u8FDE\u63A5\u4EFB\u4F55\u771F\u5B9E\u8D26\u6237\u3002","\u50C5\u5C55\u793A\u7BC4\u4F8B\u8CC7\u6599\uFF0C\u672A\u9023\u63A5\u4EFB\u4F55\u771F\u5BE6\u5E33\u6236\u3002"],"Connected to your computer.":["\u5DF2\u8FDE\u63A5\u5230\u4F60\u7684\u7535\u8111\u3002","\u5DF2\u9023\u63A5\u5230\u4F60\u7684\u96FB\u8166\u3002"],"Running on this computer.":["\u6B63\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u8FD0\u884C\u3002","\u6B63\u5728\u9019\u53F0\u96FB\u8166\u4E0A\u57F7\u884C\u3002"],"Using Zortex with your AI":["\u8BA9\u4F60\u7684 AI \u4F7F\u7528 Zortex","\u8B93\u4F60\u7684 AI \u4F7F\u7528 Zortex"],"Connect Zortex to a supported AI, then ask it to work with your connected apps.":["\u5C06 Zortex \u8FDE\u63A5\u5230\u652F\u6301\u7684 AI\uFF0C\u7136\u540E\u8BA9\u5B83\u4F7F\u7528\u4F60\u5DF2\u8FDE\u63A5\u7684\u5E94\u7528\u3002","\u5C07 Zortex \u9023\u63A5\u5230\u652F\u63F4\u7684 AI\uFF0C\u7136\u5F8C\u8B93\u5B83\u4F7F\u7528\u4F60\u5DF2\u9023\u63A5\u7684\u61C9\u7528\u7A0B\u5F0F\u3002"],"Open the guide \u2197":["\u6253\u5F00\u6307\u5357 \u2197","\u958B\u555F\u6307\u5357 \u2197"],"Open the guide":["\u6253\u5F00\u6307\u5357","\u958B\u555F\u6307\u5357"],"You\u2019re exploring a demo. Sample data, with nothing to install.":["\u4F60\u6B63\u5728\u4F53\u9A8C\u6F14\u793A\uFF0C\u4F7F\u7528\u793A\u4F8B\u6570\u636E\uFF0C\u65E0\u9700\u5B89\u88C5\u3002","\u4F60\u6B63\u5728\u9AD4\u9A57\u793A\u7BC4\uFF0C\u4F7F\u7528\u7BC4\u4F8B\u8CC7\u6599\uFF0C\u7121\u9700\u5B89\u88DD\u3002"],"App not found":["\u6CA1\u6709\u627E\u5230\u5E94\u7528","\u627E\u4E0D\u5230\u61C9\u7528\u7A0B\u5F0F"],"This app is not in the current catalog.":["\u6B64\u5E94\u7528\u4E0D\u5728\u5F53\u524D\u76EE\u5F55\u4E2D\u3002","\u6B64\u61C9\u7528\u7A0B\u5F0F\u4E0D\u5728\u76EE\u524D\u7684\u76EE\u9304\u4E2D\u3002"],"This workspace is unavailable. Please refresh to try again.":["\u5DE5\u4F5C\u7A7A\u95F4\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5\u3002","\u5DE5\u4F5C\u7A7A\u9593\u66AB\u6642\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u91CD\u65B0\u6574\u7406\u518D\u8A66\u3002"],"We couldn\u2019t refresh part of your workspace. Last displayed information may be out of date.":["\u5DE5\u4F5C\u7A7A\u95F4\u7684\u90E8\u5206\u5185\u5BB9\u672A\u80FD\u5237\u65B0\uFF0C\u5F53\u524D\u663E\u793A\u7684\u4FE1\u606F\u53EF\u80FD\u5DF2\u8FC7\u65F6\u3002","\u5DE5\u4F5C\u7A7A\u9593\u7684\u90E8\u5206\u5167\u5BB9\u672A\u80FD\u91CD\u65B0\u6574\u7406\uFF0C\u76EE\u524D\u986F\u793A\u7684\u8CC7\u8A0A\u53EF\u80FD\u5DF2\u904E\u6642\u3002"],"We couldn\u2019t refresh your workspace. Your existing connections are safe.":["\u672A\u80FD\u5237\u65B0\u5DE5\u4F5C\u7A7A\u95F4\uFF0C\u5DF2\u6709\u8FDE\u63A5\u4E0D\u53D7\u5F71\u54CD\u3002","\u672A\u80FD\u91CD\u65B0\u6574\u7406\u5DE5\u4F5C\u7A7A\u9593\uFF0C\u65E2\u6709\u9023\u63A5\u4E0D\u53D7\u5F71\u97FF\u3002"],"Setup submitted. Follow the connection progress here.":["\u8BBE\u7F6E\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u5728\u8FD9\u91CC\u67E5\u770B\u8FDE\u63A5\u8FDB\u5EA6\u3002","\u8A2D\u5B9A\u5DF2\u63D0\u4EA4\uFF0C\u8ACB\u5728\u9019\u88E1\u67E5\u770B\u9023\u63A5\u9032\u5EA6\u3002"],"Found a notes folder. Review it before saving.":["\u627E\u5230\u4E00\u4E2A\u7B14\u8BB0\u6587\u4EF6\u5939\uFF0C\u8BF7\u786E\u8BA4\u540E\u518D\u4FDD\u5B58\u3002","\u627E\u5230\u4E00\u500B\u7B46\u8A18\u8CC7\u6599\u593E\uFF0C\u8ACB\u78BA\u8A8D\u5F8C\u518D\u5132\u5B58\u3002"],"No folder was found. Enter your folder path to continue.":["\u6CA1\u6709\u627E\u5230\u6587\u4EF6\u5939\uFF0C\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u8DEF\u5F84\u4EE5\u7EE7\u7EED\u3002","\u6C92\u6709\u627E\u5230\u8CC7\u6599\u593E\uFF0C\u8ACB\u8F38\u5165\u8CC7\u6599\u593E\u8DEF\u5F91\u4EE5\u7E7C\u7E8C\u3002"],"Demo connection complete.":["\u6F14\u793A\u8FDE\u63A5\u5DF2\u5B8C\u6210\u3002","\u793A\u7BC4\u9023\u63A5\u5DF2\u5B8C\u6210\u3002"],"This step could not finish. Please try again.":["\u6B64\u6B65\u9AA4\u672A\u80FD\u5B8C\u6210\uFF0C\u8BF7\u91CD\u8BD5\u3002","\u6B64\u6B65\u9A5F\u672A\u80FD\u5B8C\u6210\uFF0C\u8ACB\u518D\u8A66\u4E00\u6B21\u3002"],"Sign-in could not finish. Please try again.":["\u767B\u5F55\u672A\u80FD\u5B8C\u6210\uFF0C\u8BF7\u91CD\u8BD5\u3002","\u767B\u5165\u672A\u80FD\u5B8C\u6210\uFF0C\u8ACB\u518D\u8A66\u4E00\u6B21\u3002"],"Your Zortex account":["\u4F60\u7684 Zortex \u8D26\u6237","\u4F60\u7684 Zortex \u5E33\u6236"],"Sign in to Zortex":["\u767B\u5F55 Zortex","\u767B\u5165 Zortex"],"Use the same account across your devices.":["\u5728\u4E0D\u540C\u8BBE\u5907\u4E0A\u4F7F\u7528\u540C\u4E00\u4E2A\u8D26\u6237\u3002","\u5728\u4E0D\u540C\u88DD\u7F6E\u4E0A\u4F7F\u7528\u540C\u4E00\u500B\u5E33\u6236\u3002"],"Code sent. Check your email and enter the eight digits.":["\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u68C0\u67E5\u90AE\u7BB1\u5E76\u8F93\u5165\u516B\u4F4D\u9A8C\u8BC1\u7801\u3002","\u9A57\u8B49\u78BC\u5DF2\u50B3\u9001\uFF0C\u8ACB\u6AA2\u67E5\u96FB\u5B50\u90F5\u4EF6\u4E26\u8F38\u5165\u516B\u4F4D\u9A57\u8B49\u78BC\u3002"],"Request a code, then enter its eight digits.":["\u8BF7\u5148\u83B7\u53D6\u9A8C\u8BC1\u7801\uFF0C\u518D\u8F93\u5165\u516B\u4F4D\u6570\u5B57\u3002","\u8ACB\u5148\u53D6\u5F97\u9A57\u8B49\u78BC\uFF0C\u518D\u8F38\u5165\u516B\u4F4D\u6578\u5B57\u3002"],"You\u2019re signed in.":["\u4F60\u5DF2\u767B\u5F55\u3002","\u4F60\u5DF2\u767B\u5165\u3002"],"You\u2019re signed out.":["\u4F60\u5DF2\u9000\u51FA\u767B\u5F55\u3002","\u4F60\u5DF2\u767B\u51FA\u3002"],"Your workspace couldn\u2019t open":["\u672A\u80FD\u6253\u5F00\u5DE5\u4F5C\u7A7A\u95F4","\u672A\u80FD\u958B\u555F\u5DE5\u4F5C\u7A7A\u9593"],"Refresh to try again, or explore the demo while this workspace is unavailable.":["\u8BF7\u5237\u65B0\u91CD\u8BD5\uFF0C\u6216\u5728\u5DE5\u4F5C\u7A7A\u95F4\u4E0D\u53EF\u7528\u65F6\u5148\u4F53\u9A8C\u6F14\u793A\u3002","\u8ACB\u91CD\u65B0\u6574\u7406\u518D\u8A66\uFF0C\u6216\u5728\u5DE5\u4F5C\u7A7A\u9593\u7121\u6CD5\u4F7F\u7528\u6642\u5148\u9AD4\u9A57\u793A\u7BC4\u3002"],"Refresh workspace":["\u5237\u65B0\u5DE5\u4F5C\u7A7A\u95F4","\u91CD\u65B0\u6574\u7406\u5DE5\u4F5C\u7A7A\u9593"],"Try demo":["\u4F53\u9A8C\u6F14\u793A","\u9AD4\u9A57\u793A\u7BC4"],"Bring this app into your workspace":["\u5C06\u6B64\u5E94\u7528\u52A0\u5165\u5DE5\u4F5C\u7A7A\u95F4","\u5C07\u6B64\u61C9\u7528\u7A0B\u5F0F\u52A0\u5165\u5DE5\u4F5C\u7A7A\u9593"],"Connect your account to make this app available to your AI.":["\u8FDE\u63A5\u8D26\u6237\uFF0C\u8BA9\u4F60\u7684 AI \u4F7F\u7528\u6B64\u5E94\u7528\u3002","\u9023\u63A5\u5E33\u6236\uFF0C\u8B93\u4F60\u7684 AI \u4F7F\u7528\u6B64\u61C9\u7528\u7A0B\u5F0F\u3002"],"QR code expired":["\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F","QR \u78BC\u5DF2\u904E\u671F"],"Sign-in expired":["\u767B\u5F55\u5DF2\u8FC7\u671F","\u767B\u5165\u5DF2\u904E\u671F"],"Your QR code expired":["\u4F60\u7684\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F","\u4F60\u7684 QR \u78BC\u5DF2\u904E\u671F"],"This sign-in link expired":["\u6B64\u767B\u5F55\u94FE\u63A5\u5DF2\u8FC7\u671F","\u6B64\u767B\u5165\u9023\u7D50\u5DF2\u904E\u671F"],"Get a fresh code, then scan it to continue connecting.":["\u83B7\u53D6\u65B0\u7801\uFF0C\u518D\u626B\u63CF\u4EE5\u7EE7\u7EED\u8FDE\u63A5\u3002","\u53D6\u5F97\u65B0\u78BC\uFF0C\u518D\u6383\u63CF\u4EE5\u7E7C\u7E8C\u9023\u63A5\u3002"],"Start sign-in again to get a fresh authorization link.":["\u91CD\u65B0\u5F00\u59CB\u767B\u5F55\u4EE5\u83B7\u53D6\u65B0\u7684\u6388\u6743\u94FE\u63A5\u3002","\u91CD\u65B0\u958B\u59CB\u767B\u5165\u4EE5\u53D6\u5F97\u65B0\u7684\u6388\u6B0A\u9023\u7D50\u3002"],"Restart sign-in":["\u91CD\u65B0\u767B\u5F55","\u91CD\u65B0\u767B\u5165"],"Scan QR code":["\u626B\u63CF\u4E8C\u7EF4\u7801","\u6383\u63CF QR \u78BC"],"Finish connecting":["\u5B8C\u6210\u8FDE\u63A5","\u5B8C\u6210\u9023\u63A5"],"Link your WhatsApp account":["\u5173\u8054\u4F60\u7684 WhatsApp \u8D26\u6237","\u9023\u7D50\u4F60\u7684 WhatsApp \u5E33\u6236"],"One more step to connect":["\u518D\u5B8C\u6210\u4E00\u6B65\u5373\u53EF\u8FDE\u63A5","\u518D\u5B8C\u6210\u4E00\u6B65\u5373\u53EF\u9023\u63A5"],"Scan this code from WhatsApp on your phone.":["\u4F7F\u7528\u624B\u673A\u4E0A\u7684 WhatsApp \u626B\u63CF\u6B64\u4E8C\u7EF4\u7801\u3002","\u4F7F\u7528\u624B\u6A5F\u4E0A\u7684 WhatsApp \u6383\u63CF\u6B64 QR \u78BC\u3002"],"Finish authorization, then return here. We\u2019ll check the connection automatically.":["\u5B8C\u6210\u6388\u6743\u540E\u56DE\u5230\u8FD9\u91CC\uFF0C\u6211\u4EEC\u4F1A\u81EA\u52A8\u68C0\u67E5\u8FDE\u63A5\u3002","\u5B8C\u6210\u6388\u6B0A\u5F8C\u56DE\u5230\u9019\u88E1\uFF0C\u6211\u5011\u6703\u81EA\u52D5\u6AA2\u67E5\u9023\u63A5\u3002"],"Continue connection":["\u7EE7\u7EED\u8FDE\u63A5","\u7E7C\u7E8C\u9023\u63A5"],"Checking connection":["\u6B63\u5728\u68C0\u67E5\u8FDE\u63A5","\u6B63\u5728\u6AA2\u67E5\u9023\u63A5"],"Checking your connection":["\u6B63\u5728\u68C0\u67E5\u4F60\u7684\u8FDE\u63A5","\u6B63\u5728\u6AA2\u67E5\u4F60\u7684\u9023\u63A5"],"Connecting your app":["\u6B63\u5728\u8FDE\u63A5\u5E94\u7528","\u6B63\u5728\u9023\u63A5\u61C9\u7528\u7A0B\u5F0F"],"You can keep browsing. Your connection progress stays here.":["\u4F60\u53EF\u4EE5\u7EE7\u7EED\u6D4F\u89C8\uFF0C\u8FDE\u63A5\u8FDB\u5EA6\u4F1A\u4FDD\u7559\u5728\u8FD9\u91CC\u3002","\u4F60\u53EF\u4EE5\u7E7C\u7E8C\u700F\u89BD\uFF0C\u9023\u63A5\u9032\u5EA6\u6703\u4FDD\u7559\u5728\u9019\u88E1\u3002"],"View progress":["\u67E5\u770B\u8FDB\u5EA6","\u67E5\u770B\u9032\u5EA6"],"Restart needed":["\u9700\u8981\u91CD\u542F","\u9700\u8981\u91CD\u65B0\u555F\u52D5"],"Settings saved":["\u8BBE\u7F6E\u5DF2\u4FDD\u5B58","\u8A2D\u5B9A\u5DF2\u5132\u5B58"],"Restart Zortex, then check this app again to finish connecting.":["\u91CD\u542F Zortex\uFF0C\u518D\u6B21\u68C0\u67E5\u6B64\u5E94\u7528\u4EE5\u5B8C\u6210\u8FDE\u63A5\u3002","\u91CD\u65B0\u555F\u52D5 Zortex\uFF0C\u518D\u6B21\u6AA2\u67E5\u6B64\u61C9\u7528\u7A0B\u5F0F\u4EE5\u5B8C\u6210\u9023\u63A5\u3002"],"Reconnect needed":["\u9700\u8981\u91CD\u65B0\u8FDE\u63A5","\u9700\u8981\u91CD\u65B0\u9023\u63A5"],"Your app needs you to sign in again":["\u6B64\u5E94\u7528\u9700\u8981\u4F60\u91CD\u65B0\u767B\u5F55","\u6B64\u61C9\u7528\u7A0B\u5F0F\u9700\u8981\u4F60\u91CD\u65B0\u767B\u5165"],"Reconnect to restore access. Previously saved records are kept.":["\u91CD\u65B0\u8FDE\u63A5\u4EE5\u6062\u590D\u8BBF\u95EE\uFF0C\u4E4B\u524D\u4FDD\u5B58\u7684\u8BB0\u5F55\u4F1A\u4FDD\u7559\u3002","\u91CD\u65B0\u9023\u63A5\u4EE5\u6062\u5FA9\u5B58\u53D6\uFF0C\u5148\u524D\u5132\u5B58\u7684\u8A18\u9304\u6703\u4FDD\u7559\u3002"],"Connected, with one thing to check":["\u5DF2\u8FDE\u63A5\uFF0C\u8FD8\u6709\u4E00\u9879\u9700\u8981\u68C0\u67E5","\u5DF2\u9023\u63A5\uFF0C\u9084\u6709\u4E00\u9805\u9700\u8981\u6AA2\u67E5"],"Let\u2019s finish connecting this app":["\u7EE7\u7EED\u5B8C\u6210\u6B64\u5E94\u7528\u7684\u8FDE\u63A5","\u7E7C\u7E8C\u5B8C\u6210\u6B64\u61C9\u7528\u7A0B\u5F0F\u7684\u9023\u63A5"],"Your connection is saved. The latest check did not finish.":["\u8FDE\u63A5\u5DF2\u4FDD\u5B58\uFF0C\u6700\u8FD1\u4E00\u6B21\u68C0\u67E5\u5C1A\u672A\u5B8C\u6210\u3002","\u9023\u63A5\u5DF2\u5132\u5B58\uFF0C\u6700\u8FD1\u4E00\u6B21\u6AA2\u67E5\u5C1A\u672A\u5B8C\u6210\u3002"],"Automatic setup could not finish. You can continue here with a manual connection.":["\u81EA\u52A8\u8BBE\u7F6E\u672A\u80FD\u5B8C\u6210\uFF0C\u4F60\u53EF\u4EE5\u5728\u8FD9\u91CC\u7EE7\u7EED\u624B\u52A8\u8FDE\u63A5\u3002","\u81EA\u52D5\u8A2D\u5B9A\u672A\u80FD\u5B8C\u6210\uFF0C\u4F60\u53EF\u4EE5\u5728\u9019\u88E1\u7E7C\u7E8C\u624B\u52D5\u9023\u63A5\u3002"],"Connect manually":["\u624B\u52A8\u8FDE\u63A5","\u624B\u52D5\u9023\u63A5"],"Connected. Ready when you are.":["\u5DF2\u8FDE\u63A5\uFF0C\u968F\u65F6\u53EF\u7528\u3002","\u5DF2\u9023\u63A5\uFF0C\u96A8\u6642\u53EF\u7528\u3002"],"You\u2019re connected":["\u4F60\u5DF2\u8FDE\u63A5","\u4F60\u5DF2\u9023\u63A5"],"The connection check succeeded. There are no items to show yet.":["\u8FDE\u63A5\u68C0\u67E5\u5DF2\u6210\u529F\uFF0C\u76EE\u524D\u6CA1\u6709\u53EF\u663E\u793A\u7684\u5185\u5BB9\u3002","\u9023\u63A5\u6AA2\u67E5\u5DF2\u6210\u529F\uFF0C\u76EE\u524D\u6C92\u6709\u53EF\u986F\u793A\u7684\u5167\u5BB9\u3002"],"This app is connected and available in your workspace.":["\u6B64\u5E94\u7528\u5DF2\u8FDE\u63A5\uFF0C\u53EF\u5728\u5DE5\u4F5C\u7A7A\u95F4\u4E2D\u4F7F\u7528\u3002","\u6B64\u61C9\u7528\u7A0B\u5F0F\u5DF2\u9023\u63A5\uFF0C\u53EF\u5728\u5DE5\u4F5C\u7A7A\u9593\u4E2D\u4F7F\u7528\u3002"],"Open app":["\u6253\u5F00\u5E94\u7528","\u958B\u555F\u61C9\u7528\u7A0B\u5F0F"],"Setup needed":["\u9700\u8981\u8BBE\u7F6E","\u9700\u8981\u8A2D\u5B9A"],"Set up your connection":["\u8BBE\u7F6E\u8FDE\u63A5","\u8A2D\u5B9A\u9023\u63A5"],"Add the settings this app needs, then connect your account.":["\u586B\u5199\u6B64\u5E94\u7528\u6240\u9700\u7684\u8BBE\u7F6E\uFF0C\u7136\u540E\u8FDE\u63A5\u8D26\u6237\u3002","\u586B\u5BEB\u6B64\u61C9\u7528\u7A0B\u5F0F\u6240\u9700\u7684\u8A2D\u5B9A\uFF0C\u7136\u5F8C\u9023\u63A5\u5E33\u6236\u3002"],"Set up":["\u8BBE\u7F6E","\u8A2D\u5B9A"],"Unavailable here":["\u6B64\u5904\u4E0D\u53EF\u7528","\u6B64\u8655\u7121\u6CD5\u4F7F\u7528"],"We couldn\u2019t check this app":["\u672A\u80FD\u68C0\u67E5\u6B64\u5E94\u7528","\u672A\u80FD\u6AA2\u67E5\u6B64\u61C9\u7528\u7A0B\u5F0F"],"This app needs a different setup":["\u6B64\u5E94\u7528\u9700\u8981\u5176\u4ED6\u8BBE\u7F6E","\u6B64\u61C9\u7528\u7A0B\u5F0F\u9700\u8981\u5176\u4ED6\u8A2D\u5B9A"],"Connection status is unavailable right now. Try refreshing in a moment.":["\u6682\u65F6\u65E0\u6CD5\u83B7\u53D6\u8FDE\u63A5\u72B6\u6001\uFF0C\u8BF7\u7A0D\u540E\u5237\u65B0\u91CD\u8BD5\u3002","\u66AB\u6642\u7121\u6CD5\u53D6\u5F97\u9023\u63A5\u72C0\u614B\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u65B0\u6574\u7406\u518D\u8A66\u3002"],"Local port":["\u672C\u673A\u7AEF\u53E3","\u672C\u6A5F\u9023\u63A5\u57E0"],"Use the port shown by the app on this computer.":["\u4F7F\u7528\u6B64\u7535\u8111\u4E0A\u5E94\u7528\u663E\u793A\u7684\u7AEF\u53E3\u3002","\u4F7F\u7528\u6B64\u96FB\u8166\u4E0A\u61C9\u7528\u7A0B\u5F0F\u986F\u793A\u7684\u9023\u63A5\u57E0\u3002"],"Server address":["\u670D\u52A1\u5668\u5730\u5740","\u4F3A\u670D\u5668\u4F4D\u5740"],"Use the HTTPS address of your own server.":["\u4F7F\u7528\u4F60\u81EA\u5DF1\u670D\u52A1\u5668\u7684 HTTPS \u5730\u5740\u3002","\u4F7F\u7528\u4F60\u81EA\u5DF1\u4F3A\u670D\u5668\u7684 HTTPS \u4F4D\u5740\u3002"],"Username":["\u7528\u6237\u540D","\u4F7F\u7528\u8005\u540D\u7A31"],"Your username":["\u4F60\u7684\u7528\u6237\u540D","\u4F60\u7684\u4F7F\u7528\u8005\u540D\u7A31"],"Client ID":["\u5BA2\u6237\u7AEF ID","\u7528\u6236\u7AEF ID"],"Your app\u2019s client ID":["\u4F60\u7684\u5E94\u7528\u7684\u5BA2\u6237\u7AEF ID","\u4F60\u7684\u61C9\u7528\u7A0B\u5F0F\u7684\u7528\u6236\u7AEF ID"],"Callback port":["\u56DE\u8C03\u7AEF\u53E3","\u56DE\u547C\u9023\u63A5\u57E0"],"Folder to connect":["\u8981\u8FDE\u63A5\u7684\u6587\u4EF6\u5939","\u8981\u9023\u63A5\u7684\u8CC7\u6599\u593E"],"Choose one absolute folder path on the connected computer. Only this folder will be selected.":["\u9009\u62E9\u5DF2\u8FDE\u63A5\u7535\u8111\u4E0A\u7684\u4E00\u4E2A\u6587\u4EF6\u5939\u7EDD\u5BF9\u8DEF\u5F84\uFF0C\u4EC5\u9009\u4E2D\u6B64\u6587\u4EF6\u5939\u3002","\u9078\u64C7\u5DF2\u9023\u63A5\u96FB\u8166\u4E0A\u7684\u4E00\u500B\u8CC7\u6599\u593E\u7D55\u5C0D\u8DEF\u5F91\uFF0C\u50C5\u9078\u53D6\u6B64\u8CC7\u6599\u593E\u3002"],"Library ID":["\u6587\u732E\u5E93 ID","\u6587\u737B\u5EAB ID"],"Use 0 for your personal library, or the numeric group library ID.":["\u4E2A\u4EBA\u6587\u732E\u5E93\u8BF7\u8F93\u5165 0\uFF0C\u7FA4\u7EC4\u6587\u732E\u5E93\u8BF7\u8F93\u5165\u5176\u6570\u5B57 ID\u3002","\u500B\u4EBA\u6587\u737B\u5EAB\u8ACB\u8F38\u5165 0\uFF0C\u7FA4\u7D44\u6587\u737B\u5EAB\u8ACB\u8F38\u5165\u5176\u6578\u5B57 ID\u3002"],"Library type":["\u6587\u732E\u5E93\u7C7B\u578B","\u6587\u737B\u5EAB\u985E\u578B"],"Personal library":["\u4E2A\u4EBA\u6587\u732E\u5E93","\u500B\u4EBA\u6587\u737B\u5EAB"],"Group library":["\u7FA4\u7EC4\u6587\u732E\u5E93","\u7FA4\u7D44\u6587\u737B\u5EAB"],"CopyQ executable":["CopyQ \u53EF\u6267\u884C\u6587\u4EF6","CopyQ \u57F7\u884C\u6A94"],"Session name":["\u4F1A\u8BDD\u540D\u79F0","\u5DE5\u4F5C\u968E\u6BB5\u540D\u7A31"],"Default session":["\u9ED8\u8BA4\u4F1A\u8BDD","\u9810\u8A2D\u5DE5\u4F5C\u968E\u6BB5"],"Leave blank to use the default CopyQ session.":["\u7559\u7A7A\u4EE5\u4F7F\u7528\u9ED8\u8BA4\u7684 CopyQ \u4F1A\u8BDD\u3002","\u7559\u7A7A\u4EE5\u4F7F\u7528\u9810\u8A2D\u7684 CopyQ \u5DE5\u4F5C\u968E\u6BB5\u3002"],"Workspace subdomain":["\u5DE5\u4F5C\u7A7A\u95F4\u5B50\u57DF\u540D","\u5DE5\u4F5C\u7A7A\u9593\u5B50\u7DB2\u57DF"],"The name before .freshdesk.com.":[".freshdesk.com \u524D\u9762\u7684\u540D\u79F0\u3002",".freshdesk.com \u524D\u9762\u7684\u540D\u7A31\u3002"],"Region":["\u533A\u57DF","\u5340\u57DF"],"United States":["\u7F8E\u56FD","\u7F8E\u570B"],"Europe":["\u6B27\u6D32","\u6B50\u6D32"],"Australia":["\u6FB3\u5927\u5229\u4E9A","\u6FB3\u6D32"],"Connection method":["\u8FDE\u63A5\u65B9\u5F0F","\u9023\u63A5\u65B9\u5F0F"],"Personal access token":["\u4E2A\u4EBA\u8BBF\u95EE\u4EE4\u724C","\u500B\u4EBA\u5B58\u53D6\u6B0A\u6756"],"Account environment":["\u8D26\u6237\u73AF\u5883","\u5E33\u6236\u74B0\u5883"],"Production":["\u6B63\u5F0F\u73AF\u5883","\u6B63\u5F0F\u74B0\u5883"],"Sandbox":["\u6C99\u76D2\u73AF\u5883","\u6C99\u76D2\u74B0\u5883"],"Your Discord user ID":["\u4F60\u7684 Discord \u7528\u6237 ID","\u4F60\u7684 Discord \u4F7F\u7528\u8005 ID"],"User ID":["\u7528\u6237 ID","\u4F7F\u7528\u8005 ID"],"Local Discord connection path":["\u672C\u673A Discord \u8FDE\u63A5\u8DEF\u5F84","\u672C\u6A5F Discord \u9023\u63A5\u8DEF\u5F91"],"Path shown by the Discord setup":["Discord \u8BBE\u7F6E\u4E2D\u663E\u793A\u7684\u8DEF\u5F84","Discord \u8A2D\u5B9A\u4E2D\u986F\u793A\u7684\u8DEF\u5F91"],"Channel IDs":["\u9891\u9053 ID","\u983B\u9053 ID"],"One ID per line":["\u6BCF\u884C\u4E00\u4E2A ID","\u6BCF\u884C\u4E00\u500B ID"],"Add up to 50 channel IDs, separated by commas or new lines.":["\u6700\u591A\u6DFB\u52A0 50 \u4E2A\u9891\u9053 ID\uFF0C\u4EE5\u9017\u53F7\u6216\u6362\u884C\u5206\u9694\u3002","\u6700\u591A\u65B0\u589E 50 \u500B\u983B\u9053 ID\uFF0C\u4EE5\u9017\u865F\u6216\u63DB\u884C\u5206\u9694\u3002"],"Email":["\u90AE\u4EF6","\u96FB\u5B50\u90F5\u4EF6"],"Messaging":["\u6D88\u606F","\u901A\u8A0A"],"Productivity":["\u6548\u7387\u5DE5\u5177","\u751F\u7522\u529B\u5DE5\u5177"],"PRODUCTIVITY":["\u6548\u7387\u5DE5\u5177","\u751F\u7522\u529B\u5DE5\u5177"],"MESSAGING":["\u6D88\u606F","\u901A\u8A0A"],"Developer tools":["\u5F00\u53D1\u5DE5\u5177","\u958B\u767C\u5DE5\u5177"],"Design":["\u8BBE\u8BA1","\u8A2D\u8A08"],"On your computer":["\u5728\u4F60\u7684\u7535\u8111\u4E0A","\u5728\u4F60\u7684\u96FB\u8166\u4E0A"],"Media":["\u5A92\u4F53","\u5A92\u9AD4"],"More apps":["\u66F4\u591A\u5E94\u7528","\u66F4\u591A\u61C9\u7528\u7A0B\u5F0F"],"Connect {0} to your workspace.":["\u5C06 {0} \u8FDE\u63A5\u5230\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u5C07 {0} \u9023\u63A5\u5230\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Email, conversations, and the context behind them.":["\u90AE\u4EF6\u3001\u5BF9\u8BDD\uFF0C\u4EE5\u53CA\u5176\u4E2D\u7684\u4FE1\u606F\u3002","\u96FB\u5B50\u90F5\u4EF6\u3001\u5C0D\u8A71\uFF0C\u4EE5\u53CA\u5176\u4E2D\u7684\u8CC7\u8A0A\u3002"],"Keep your files and documents within reach.":["\u8BA9\u6587\u4EF6\u548C\u6587\u6863\u968F\u624B\u53EF\u5F97\u3002","\u8B93\u6A94\u6848\u548C\u6587\u4EF6\u96A8\u624B\u53EF\u5F97\u3002"],"Make room for what\u2019s next.":["\u4E3A\u63A5\u4E0B\u6765\u7684\u5B89\u6392\u7559\u51FA\u7A7A\u95F4\u3002","\u70BA\u63A5\u4E0B\u4F86\u7684\u5B89\u6392\u7559\u51FA\u7A7A\u9593\u3002"],"Bring your team\u2019s conversations together.":["\u6C47\u805A\u56E2\u961F\u7684\u5BF9\u8BDD\u3002","\u532F\u805A\u5718\u968A\u7684\u5C0D\u8A71\u3002"],"Your notes, projects, and knowledge in one place.":["\u7B14\u8BB0\u3001\u9879\u76EE\u548C\u77E5\u8BC6\uFF0C\u6C47\u805A\u4E00\u5904\u3002","\u7B46\u8A18\u3001\u5C08\u6848\u548C\u77E5\u8B58\uFF0C\u532F\u805A\u4E00\u8655\u3002"],"Connect the conversations that matter to you.":["\u8FDE\u63A5\u5BF9\u4F60\u91CD\u8981\u7684\u5BF9\u8BDD\u3002","\u9023\u63A5\u5C0D\u4F60\u91CD\u8981\u7684\u5C0D\u8A71\u3002"],"Keep your code and project context close.":["\u968F\u65F6\u638C\u63E1\u4EE3\u7801\u548C\u9879\u76EE\u4FE1\u606F\u3002","\u96A8\u6642\u638C\u63E1\u7A0B\u5F0F\u78BC\u548C\u5C08\u6848\u8CC7\u8A0A\u3002"],"A clear view of your team\u2019s projects.":["\u6E05\u6670\u638C\u63E1\u56E2\u961F\u9879\u76EE\u3002","\u6E05\u6670\u638C\u63E1\u5718\u968A\u5C08\u6848\u3002"],"Bring design context into your workspace.":["\u5C06\u8BBE\u8BA1\u4FE1\u606F\u5E26\u5165\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u5C07\u8A2D\u8A08\u8CC7\u8A0A\u5E36\u5165\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Connect your browsing history from this computer.":["\u8FDE\u63A5\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u6D4F\u89C8\u8BB0\u5F55\u3002","\u9023\u63A5\u9019\u53F0\u96FB\u8166\u4E0A\u7684\u700F\u89BD\u8A18\u9304\u3002"],"Give your local notes a place in your workspace.":["\u5C06\u672C\u5730\u7B14\u8BB0\u52A0\u5165\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u5C07\u672C\u6A5F\u7B46\u8A18\u52A0\u5165\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Connect the folders you choose.":["\u8FDE\u63A5\u4F60\u9009\u62E9\u7684\u6587\u4EF6\u5939\u3002","\u9023\u63A5\u4F60\u9078\u64C7\u7684\u8CC7\u6599\u593E\u3002"],"Your email and everyday work, connected.":["\u8BA9\u90AE\u4EF6\u4E0E\u65E5\u5E38\u5DE5\u4F5C\u4E92\u901A\u3002","\u8B93\u96FB\u5B50\u90F5\u4EF6\u8207\u65E5\u5E38\u5DE5\u4F5C\u4E92\u901A\u3002"],"Make your saved thoughts easy to find.":["\u8F7B\u677E\u627E\u5230\u8BB0\u5F55\u4E0B\u7684\u60F3\u6CD5\u3002","\u8F15\u9B06\u627E\u5230\u8A18\u9304\u4E0B\u7684\u60F3\u6CD5\u3002"],"Bring your AI conversations into one place.":["\u5C06 AI \u5BF9\u8BDD\u6C47\u805A\u4E00\u5904\u3002","\u5C07 AI \u5C0D\u8A71\u532F\u805A\u4E00\u8655\u3002"],"Connect the people in your address book.":["\u8FDE\u63A5\u901A\u8BAF\u5F55\u4E2D\u7684\u8054\u7CFB\u4EBA\u3002","\u9023\u63A5\u901A\u8A0A\u9304\u4E2D\u7684\u806F\u7D61\u4EBA\u3002"],"Keep up with your team\u2019s conversations.":["\u968F\u65F6\u638C\u63E1\u56E2\u961F\u5BF9\u8BDD\u3002","\u96A8\u6642\u638C\u63E1\u5718\u968A\u5C0D\u8A71\u3002"],"Bring your video activity into view.":["\u67E5\u770B\u4F60\u7684\u89C6\u9891\u6D3B\u52A8\u3002","\u67E5\u770B\u4F60\u7684\u5F71\u7247\u6D3B\u52D5\u3002"],"Connect the music in your day.":["\u8FDE\u63A5\u4F60\u65E5\u5E38\u8046\u542C\u7684\u97F3\u4E50\u3002","\u9023\u63A5\u4F60\u65E5\u5E38\u8046\u807D\u7684\u97F3\u6A02\u3002"],"Connect your communities and conversations.":["\u8FDE\u63A5\u4F60\u7684\u793E\u7FA4\u548C\u5BF9\u8BDD\u3002","\u9023\u63A5\u4F60\u7684\u793E\u7FA4\u548C\u5C0D\u8A71\u3002"],"Keep your conversations connected.":["\u8BA9\u4F60\u7684\u5BF9\u8BDD\u4FDD\u6301\u4E92\u901A\u3002","\u8B93\u4F60\u7684\u5C0D\u8A71\u4FDD\u6301\u4E92\u901A\u3002"],"Connect your notes with a secure local pairing.":["\u901A\u8FC7\u5B89\u5168\u7684\u672C\u5730\u914D\u5BF9\u8FDE\u63A5\u7B14\u8BB0\u3002","\u900F\u904E\u5B89\u5168\u7684\u672C\u6A5F\u914D\u5C0D\u9023\u63A5\u7B46\u8A18\u3002"],"Bring your research library together.":["\u6C47\u805A\u4F60\u7684\u7814\u7A76\u6587\u732E\u5E93\u3002","\u532F\u805A\u4F60\u7684\u7814\u7A76\u6587\u737B\u5EAB\u3002"],"Keep your files connected to your work.":["\u8BA9\u6587\u4EF6\u4E0E\u4F60\u7684\u5DE5\u4F5C\u4E92\u901A\u3002","\u8B93\u6A94\u6848\u8207\u4F60\u7684\u5DE5\u4F5C\u4E92\u901A\u3002"],"Bring your shared files into view.":["\u67E5\u770B\u4F60\u7684\u5171\u4EAB\u6587\u4EF6\u3002","\u67E5\u770B\u4F60\u7684\u5171\u7528\u6A94\u6848\u3002"],"Connect your own cloud.":["\u8FDE\u63A5\u4F60\u81EA\u5DF1\u7684\u4E91\u7AEF\u670D\u52A1\u3002","\u9023\u63A5\u4F60\u81EA\u5DF1\u7684\u96F2\u7AEF\u670D\u52D9\u3002"],"Connect your personal conversations.":["\u8FDE\u63A5\u4F60\u7684\u4E2A\u4EBA\u5BF9\u8BDD\u3002","\u9023\u63A5\u4F60\u7684\u500B\u4EBA\u5C0D\u8A71\u3002"],"Connect mail through your local Bridge.":["\u901A\u8FC7\u672C\u5730 Bridge \u8FDE\u63A5\u90AE\u4EF6\u3002","\u900F\u904E\u672C\u6A5F Bridge \u9023\u63A5\u96FB\u5B50\u90F5\u4EF6\u3002"],"Connect mail from your computer.":["\u8FDE\u63A5\u7535\u8111\u4E0A\u7684\u90AE\u4EF6\u3002","\u9023\u63A5\u96FB\u8166\u4E0A\u7684\u96FB\u5B50\u90F5\u4EF6\u3002"],"Bring your team\u2019s work together.":["\u6C47\u805A\u56E2\u961F\u7684\u5DE5\u4F5C\u3002","\u532F\u805A\u5718\u968A\u7684\u5DE5\u4F5C\u3002"]};
@@ -0,0 +1,42 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><meta name="color-scheme" content="light dark">
5
+ <title>Apps · Zortex</title><link rel="stylesheet" href="shell.css">
6
+ </head>
7
+ <body>
8
+ <a class="skip-link" href="#main-content">Skip to content</a>
9
+ <button class="nav-scrim" id="nav-scrim" aria-label="Close navigation" hidden></button>
10
+ <div class="app-shell">
11
+ <aside class="sidebar" id="sidebar" aria-label="Main navigation">
12
+ <a href="#overview" class="brand" aria-label="Zortex home"><svg viewBox="0 0 32 32" aria-hidden="true"><path d="M7 8h18L9 24h16M7 16h18"/></svg><span data-no-translate>Zortex</span><span class="brand-label">Workspace</span></a>
13
+ <nav class="nav-list" aria-label="Workspace">
14
+ <a href="#overview" data-nav="overview"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z"/></svg>Overview</a>
15
+ <a href="#apps" data-nav="apps"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="2"/><rect x="14" y="3" width="7" height="7" rx="2"/><rect x="3" y="14" width="7" height="7" rx="2"/><rect x="14" y="14" width="7" height="7" rx="2"/></svg>Apps<span class="nav-count" id="apps-count"></span></a>
16
+ <a href="#mods" data-nav="mods"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m12 3 9 5-9 5-9-5zM3 12l9 5 9-5M3 16l9 5 9-5"/></svg>Mods</a>
17
+ <a href="#galaxy" data-nav="galaxy" data-no-translate><svg viewBox="0 0 24 24" aria-hidden="true"><ellipse cx="12" cy="12" rx="10" ry="5" transform="rotate(-35 12 12)"/><circle cx="12" cy="12" r="2.4"/></svg>Galaxy</a>
18
+ </nav>
19
+ <div class="sidebar-note"><span class="tiny-orbit" aria-hidden="true"></span><p>Your context.<br>Your possibilities.</p></div>
20
+ <div class="sidebar-bottom">
21
+ <a class="quiet-link" href="https://zortex.me/docs/vision" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 7v14M3 4c3-1 6 0 9 3 3-3 6-4 9-3v14c-3-1-6 0-9 3-3-3-6-4-9-3z"/></svg>Guide<svg class="outbound-arrow" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14m-6-6 6 6-6 6"/></svg></a>
22
+ <a class="quiet-link" href="#settings" data-nav="settings"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8M9 3h6l1 3 3 1 2 5-2 5-3 1-1 3H9l-1-3-3-1-2-5 2-5 3-1z"/></svg>Settings</a>
23
+ <button class="account-button" id="account-button" type="button"><span class="avatar" id="avatar" data-no-translate>Z</span><span><strong id="account-label">Your workspace</strong><small id="account-context">This computer</small></span><span class="account-more" aria-hidden="true">···</span></button>
24
+ </div>
25
+ </aside>
26
+ <main id="main-content" tabindex="-1">
27
+ <header class="topbar">
28
+ <button class="icon-button mobile-menu" id="mobile-menu" type="button" aria-label="Open navigation" aria-controls="sidebar" aria-expanded="false"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h16"/></svg></button>
29
+ <div class="breadcrumb"><span>Workspace</span><span aria-hidden="true">/</span><strong id="breadcrumb">Apps</strong></div>
30
+ <div class="topbar-actions"><span class="demo-badge" id="demo-badge" hidden>Demo account</span><span class="connection-indicator" id="connection-indicator"><i></i><span>Connecting</span></span><button class="icon-button" id="refresh" type="button" aria-label="Refresh app status" title="Refresh app status"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20 7v5h-5M4 17v-5h5M6 6a8 8 0 0 1 13 3M5 15a8 8 0 0 0 13 3"/></svg></button></div>
31
+ </header>
32
+ <div id="mode-banner" class="mode-banner" hidden></div><div id="load-notice" class="load-notice" role="status" hidden></div>
33
+ <div id="workspace" class="workspace" aria-busy="true"><div class="page-heading"><span class="eyebrow">YOUR WORKSPACE</span><h1>Apps</h1><p>Everything you use, a little more connected.</p></div><div class="skeleton-grid" aria-label="Loading apps"><div></div><div></div><div></div></div></div>
34
+ </main></div>
35
+ <div class="toast" id="toast" role="status" aria-live="polite" hidden></div>
36
+ <dialog id="account-dialog" class="account-dialog" aria-labelledby="account-title"><form id="account-form">
37
+ <div class="dialog-heading"><h2 id="account-title">Your account</h2><button class="icon-button" type="button" data-close-account aria-label="Close account settings">×</button></div>
38
+ <p id="account-description"></p><div id="account-fields"><label for="account-email">Email address</label><input id="account-email" type="email" autocomplete="email" maxlength="254" placeholder="you@example.com"><button class="button secondary" id="send-code" type="button">Send sign-in code</button><label for="account-code">Eight-digit code</label><input id="account-code" inputmode="numeric" autocomplete="one-time-code" pattern="[0-9]{8}" maxlength="8" placeholder="00000000"></div><p id="account-message" role="status"></p><div class="button-row"><button class="button primary" id="verify-code" type="submit">Sign in</button><button class="button secondary" id="sign-out" type="button" hidden>Sign out</button></div><a class="demo-account-link" id="try-demo" href="https://zortex.me/app/demo/">Try a demo account <svg class="outbound-arrow" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14m-6-6 6 6-6 6"/></svg></a>
39
+ </form></dialog>
40
+ <script src="app-i18n.js"></script>
41
+ <script type="module" src="app.js"></script>
42
+ </body></html>
@@ -0,0 +1 @@
1
+ export function createConnectionClient({token,fetcher=fetch}){return async(input,{signal}={})=>{const response=await fetcher("connections",{method:"POST",headers:{"Content-Type":"application/json","X-Zortex-Galaxy":token||""},body:JSON.stringify(input),cache:"no-store",signal});let body;try{body=await response.json()}catch{throw Error("The connection service is unavailable. Please try again.")}if(!response.ok){const error=new Error(body.error==="connection_in_progress"?"Another connection is still running. You can continue it or cancel it before starting this one.":body.error==="session_expired"?"Your connection session expired. Please try again.":"We couldn\u2019t complete that step. Your existing connections are safe. Try again.");error.code=body.error;error.activeSource=body.activeSource;throw error}return body}}export async function runConnectionAction(request,input,options={}){if(!["manual","restart"].includes(input.action))return request(input,options);try{await request({action:"cancel",source:input.source},options)}catch(error){if(error.code!=="verification_not_active"||error.activeSource&&error.activeSource!==input.source)throw error}return request({action:"connect",source:input.source},options)}
@@ -0,0 +1 @@
1
+ const text=(name,label,placeholder="",extra={})=>({name,label,placeholder,type:"text",...extra});const port=(value=41184)=>({name:"port",label:"Local port",type:"number",min:1024,max:65535,value,help:"Use the port shown by the app on this computer."});const choice=(name,label,options)=>({name,label,type:"select",options});const instance=text("instanceUrl","Server address","https://your-server.example",{type:"url",help:"Use the HTTPS address of your own server."});const username=text("username","Username","Your username");const client=[text("clientId","Client ID","Your app\u2019s client ID"),{...port(53682),name:"loopbackPort",label:"Callback port"}];const forms={"native-files":{flag:"setupAvailable",fields:[text("roots","Folder to connect","/Users/you/Documents",{help:"Choose one absolute folder path on the connected computer. Only this folder will be selected.",maxLength:512})]},zotero:{fields:[text("libraryId","Library ID","0",{help:"Use 0 for your personal library, or the numeric group library ID."}),choice("libraryType","Library type",[["user","Personal library"],["group","Group library"]])]},owntracks:{fields:[port(8083)]},wechat:{fields:[port(5030)]},thunderbird:{fields:[port(8765)]},"proton-mail":{fields:[port(1143)]},copyq:{fields:[text("executable","CopyQ executable","/usr/local/bin/copyq"),text("session","Session name","Default session",{required:false,pattern:"[\\p{L}\\p{N}_\\-]{0,16}",maxLength:16,help:"Leave blank to use the default CopyQ session."})]},freshdesk:{fields:[text("subdomain","Workspace subdomain","your-team",{help:"The name before .freshdesk.com."})]},smartsheet:{fields:[choice("region","Region",[["us","United States"],["eu","Europe"],["au","Australia"]])]},figma:{scalar:true,fields:[choice("selection","Connection method",[["fields","Personal access token"],["oauth","OAuth"]])]},nextcloud:{fields:[instance]},zulip:{nested:true,fields:[instance,{...username,label:"Email address",type:"email"}]},freshrss:{nested:true,fields:[instance,username]},miniflux:{nested:true,fields:[instance,username]},mattermost:{nested:true,fields:[instance,username]},wallabag:{nested:true,fields:[instance,username]},calcom:{nested:true,fields:[username]},wakatime:{nested:true,fields:[username]},dropbox:{nested:true,fields:client},box:{nested:true,fields:client},front:{nested:true,fields:client},hubspot:{nested:true,fields:client},"google-contacts":{nested:true,fields:client},"google-chat":{nested:true,fields:client},salesforce:{nested:true,fields:[...client,choice("environment","Account environment",[["production","Production"],["sandbox","Sandbox"]])]},zendesk:{nested:true,fields:[...client,text("subdomain","Workspace subdomain","your-team")]},zoom:{nested:true,fields:[client[0]]},discord:{nested:true,fields:[client[0],text("expectedSubject","Your Discord user ID","User ID"),text("ipcPath","Local Discord connection path","Path shown by the Discord setup"),text("channelIds","Channel IDs","One ID per line",{type:"textarea",help:"Add up to 50 channel IDs, separated by commas or new lines."})]},joplin:{pairing:true,fields:[]}};function flagFor(id){return id.replace(/-([a-z])/g,(_,letter)=>letter.toUpperCase())+"SetupAvailable"}export function setupFor(source,report){const requested=Object.entries(forms).find(([id2,definition2])=>report?.[definition2.flag||flagFor(id2)]===true);if(!requested)return null;const[id,definition]=requested;return{...definition,id,source,action:"configure-"+id}}export function setupRequest(definition,values){const fields={};for(const field of definition.fields){const raw=String(values[field.name]??"").trim();if(!raw&&field.required!==false)throw Error(`Enter ${field.label.toLowerCase()}.`);fields[field.name]=field.type==="number"?Number(raw):field.name==="roots"?[raw]:field.name==="channelIds"?raw.split(/[\n,]+/).map(v=>v.trim()).filter(Boolean):raw}return{action:definition.action,source:definition.source,...definition.nested?{selection:fields}:fields}}
@@ -0,0 +1 @@
1
+ import{appIdentity}from"./app-catalog.js";export function createDemoWorkspace(){const ids=["gmail","google-drive","slack","notion","whatsapp-web","google-calendar","github","linear","figma","obsidian","google-chrome","dropbox"];const records={gmail:1248,"google-drive":842,slack:0,notion:0,"whatsapp-web":0,"google-calendar":56,github:0,linear:0,figma:0,obsidian:0,"google-chrome":316};const scenarios=new Map([["gmail","success"],["google-drive","success"],["slack","failure"],["notion","empty"],["whatsapp-web","qr"],["google-calendar","success"],["google-chrome","success"],["obsidian","setup"]]);function row(source){const scenario=scenarios.get(source)||"disconnected";const base={source,label:appIdentity(source).name,connection:"not-connected",state:"pending",read:"not-attempted",support:{state:"supported"},demoScenario:scenario};if(scenario==="success")return{...base,connection:"connected",state:"complete",read:"first-record",returned:12,availability:"read",operation:"succeeded"};if(scenario==="empty")return{...base,connection:"connected",state:"empty",read:"empty",returned:0,availability:"read",operation:"succeeded"};if(scenario==="actions")return{...base,connection:"connected",state:"actions-ready",read:"not-attempted",availability:"actions",actions:18,operation:"not-run"};if(scenario==="failure")return{...base,state:"failed",errorCode:"login_required",message:"Automatic connection could not finish."};if(scenario==="revoked")return{...base,state:"failed",errorCode:"authorization_expired"};if(scenario==="outage")return{...base,connection:"connected",state:"failed",errorCode:"provider_unavailable"};if(scenario==="expired")return{...base,state:"failed",errorCode:"qr_expired",message:"The QR code has expired."};if(scenario==="qr")return{...base,state:"waiting-user",authorizationImage:{mimeType:"image/png",data:"demo-only"}};if(scenario==="waiting")return{...base,state:"waiting-user"};if(scenario==="working")return{...base,state:"connecting"};if(scenario==="setup")return{...base,state:"pending",setupAvailable:true,support:{state:"setup-required"}};if(scenario==="unavailable")return{...base,state:"unavailable",connection:"unavailable",support:{state:"unsupported",message:"This app needs the desktop runtime."}};return base}const report=()=>({state:"partial",success:false,sources:ids.map(row),others:[]});const snapshot=()=>({status:"demo",productVersion:"Demo",generatedAt:new Date().toISOString(),totalItems:2462,inventory:{label:"Sample workspace",storedRecords:2462},coverage:ids.map(source=>({source,registered:true,configured:true,items:records[source]||0,connectionState:row(source).connection,dataState:records[source]?"has_records":"empty_unverified",support:row(source).support}))});return{read:async()=>({snapshot:snapshot(),report:report(),abilities:{apps:ids.map(id=>({id,name:appIdentity(id).name})),localIconPaths:Object.fromEntries(ids.filter(id=>id!=="slack").map(id=>[id,`icons/local/${appIdentity(id).icon}.svg`])),iconSources:{slack:"m"},iconAliases:{}}}),request:async input=>{if(!input||typeof input.action!=="string")throw Error("Choose an action.");if(input.action==="status")return report();if(!ids.includes(input.source))throw Error("Choose an app in this demo.");const source=input.source;if(input.action==="cancel")scenarios.set(source,"disconnected");else if(input.action==="demo-complete"||input.action==="read")scenarios.set(source,records[source]?"success":"empty");else if(input.action==="connect"||input.action==="authorize"||input.action==="reconnect-saved")scenarios.set(source,source==="whatsapp-web"?"qr":"waiting");else if(input.action.startsWith("configure-"))scenarios.set(source,"disconnected");else if(input.action==="discover-native-vault")return{candidates:[{path:"/Users/demo/Notes",label:"Sample notes folder"}]};else throw Error("This action is not part of the demo.");return report()},preview(source,scenario){if(ids.includes(source))scenarios.set(source,scenario)},scenario(source){return scenarios.get(source)||"disconnected"}}}export const demoScenarios=[["success","Connected"],["empty","Connected, no items"],["actions","Actions ready"],["failure","Automatic setup failed"],["qr","QR code"],["expired","QR expired"],["waiting","Waiting for sign-in"],["working","Connecting"],["revoked","Reconnect needed"],["outage","Temporary failure"],["setup","Manual setup"],["unavailable","Requires desktop"],["disconnected","Not connected"]];
@@ -1,6 +1,47 @@
1
- /* Product-only states around the unchanged original demo shell. */
2
- button:disabled{opacity:.48;cursor:not-allowed}.composer:has(textarea:disabled){opacity:.7}#input:disabled{color:var(--zx-muted);cursor:not-allowed}.p-note{color:var(--zx-muted);font-size:13px;line-height:1.6;margin:14px 4px}.p-search input{width:100%;background:none;border:0;color:inherit;min-width:0;padding:10px;font:inherit}.p-row .key{min-width:90px}.p-row .grow{overflow-wrap:anywhere}.zx-store{background:#f7f7f5;color:#202020;z-index:6}.zx-store .p-note{color:#666}.zx-store .p-card{background:white;border-color:#ddd;color:#222}.zx-store .p-pill{color:#222;border:1px solid #aaa}#account-menu,#setup{display:none!important}
3
- @media(max-width:600px){html[data-sidebar][data-panel]{--side-x:0px}html[data-panel] #sidebar{visibility:hidden}.panel{max-width:calc(100vw - 24px)}.engine-side{min-width:0}}
4
- /* Language choice, just above the account row in the sidebar. */
5
- #sidebar .zx-language{align-self:flex-start;margin:0 12px 8px;padding:6px 28px 6px 12px;font:inherit;font-size:13px;color:inherit;background:transparent;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:100px;cursor:pointer}
6
- #sidebar .zx-language option{color:#202020;background:#fff}
1
+ @font-face{font-family:Inter;src:url('fonts/inter-latin.woff2') format('woff2');font-display:swap;font-weight:100 900}
2
+ :root{color-scheme:light;--page:#fff;--sidebar:#f7f7f5;--surface:#fff;--soft:#f6f6f3;--ink:#20211f;--muted:#73766e;--line:#e9eae5;--hover:#eeefeb;--accent:#294e3d;--good:#20744b;--good-bg:#edf6ef;--amber:#996225;--amber-bg:#fbf4e8;--blue:#426a95;--blue-bg:#eef3fa;--shadow:0 12px 44px #20282014;font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}
3
+ :root[data-theme=dark]{color-scheme:dark;--page:#1b1c1a;--sidebar:#171815;--surface:#22231f;--soft:#272823;--ink:#f1f2ec;--muted:#a3a69a;--line:#35372f;--hover:#30322a;--accent:#c4dacb;--good:#9dcbb0;--good-bg:#263d2f;--amber:#dfba83;--amber-bg:#3b3224;--blue:#b4cbe5;--blue-bg:#293644;--shadow:0 12px 44px #0003}
4
+ *{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{border:0;background:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:36px;line-height:1.2;letter-spacing:-1.2px;font-weight:560}h2{font-size:20px;line-height:1.3;letter-spacing:-.45px;font-weight:560}h3{font-size:15px;line-height:1.4;font-weight:590}p{color:var(--muted)}.app-shell{min-height:100dvh}.sidebar{width:244px;position:fixed;inset:0 auto 0 0;background:var(--sidebar);border-right:1px solid var(--line);padding:30px 18px 16px;z-index:30;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:9px;margin:0 12px 37px;font-size:23px;letter-spacing:-.8px;font-weight:600;flex-wrap:wrap}.brand svg{width:28px;height:28px;stroke-width:2.4}.brand-label{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);font-weight:500;flex-basis:100%;margin-left:37px;margin-top:-7px}.nav-list{display:grid;gap:5px}.nav-list a,.quiet-link{display:flex;align-items:center;gap:12px;min-height:44px;border-radius:9px;padding:11px 13px;font-size:13px;font-weight:500;color:var(--muted)}.nav-list a:hover,.quiet-link:hover{background:var(--hover);color:var(--ink)}.nav-list a[aria-current=page]{background:var(--hover);color:var(--ink)}.nav-count{margin-left:auto;color:var(--muted);font-size:11px}.sidebar-note{margin:auto 13px 26px;padding-top:65px;display:flex;align-items:center;gap:12px}.sidebar-note p{font-size:11px;line-height:1.6;color:#9b9d95}.tiny-orbit{display:block;width:28px;height:28px;border:1px solid #c6c9bf;border-radius:50%;position:relative}.tiny-orbit:after{content:'';position:absolute;inset:5px -4px;border:1px solid #c6c9bf;border-radius:50%;transform:rotate(-40deg)}.sidebar-bottom{border-top:1px solid var(--line);padding-top:13px}.quiet-link{min-height:40px;font-size:12px}.quiet-link>span{margin-left:auto}.account-button{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:17px 9px 6px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e1e7de;color:#4c5b47;font-size:12px;font-weight:600;flex:none}.account-button strong,.account-button small{display:block;line-height:1.5}.account-button strong{font-weight:550;font-size:12px}.account-button small{font-size:10px;color:var(--muted)}.account-more{margin-left:auto;font-size:20px}.topbar{height:77px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;gap:12px;border-bottom:1px solid var(--line)}main{margin-left:244px;min-width:0}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}.breadcrumb strong{font-weight:500;color:var(--ink)}.topbar-actions{display:flex;align-items:center;gap:17px}.icon-button{width:36px;height:36px;display:inline-flex;justify-content:center;align-items:center;border-radius:8px;flex:none}.icon-button:hover{background:var(--soft)}.connection-indicator{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.connection-indicator i{width:5px;height:5px;background:var(--good);border-radius:50%}.connection-indicator[data-unavailable] i{background:var(--amber)}.demo-badge{background:var(--amber-bg);color:var(--amber);border-radius:5px;padding:4px 8px;font-size:10px;font-weight:550}.workspace{max-width:1260px;margin:0 auto;padding:43px 48px 72px}.page-heading{margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted);font-weight:600;display:block;margin-bottom:12px}.page-heading>p{font-size:14px;margin-top:10px}.heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.heading-row .button{flex:none}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:33px 0 15px}.section-heading h2{font-size:16px}.section-heading>p,.section-heading>a{font-size:12px;color:var(--muted)}
5
+ .feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.feature-card{background:var(--soft);border:1px solid transparent;border-radius:15px;padding:23px;min-height:194px;text-align:left;display:flex;flex-direction:column;position:relative;overflow:hidden;transition:border-color .16s,transform .16s}.feature-card:hover{border-color:var(--line);transform:translateY(-2px)}.feature-card[data-app=google-drive]{background:#f2f4ee}.feature-card[data-app=slack]{background:#f6f0f3}.feature-card[data-app=notion]{background:#f2f2ef}.feature-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.feature-category{font-size:10px;letter-spacing:.7px;color:#6d756c}.feature-card h3{font-size:20px;letter-spacing:-.5px;color:#262a24}.feature-card p{font-size:12px;color:#74776f;max-width:205px;margin-top:7px;line-height:1.55}.feature-arrow{font-size:18px;color:#72776c}.app-icon{width:42px;height:42px;border:1px solid var(--line);border-radius:11px;display:grid;place-items:center;background:#fff;color:#343a30;flex:none;overflow:hidden}.app-icon img{width:27px;height:27px;object-fit:contain}.app-icon.large{width:76px;height:76px;border-radius:19px}.app-icon.large img{width:46px;height:46px}.app-icon.letter{font-size:17px;font-weight:600}
6
+ .toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:31px 0 20px;padding-bottom:16px;border-bottom:1px solid var(--line)}.filters{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.filter{border-radius:7px;padding:8px 12px;min-height:36px;font-size:12px;color:var(--muted);white-space:nowrap}.filter[aria-pressed=true]{background:var(--soft);color:var(--ink);font-weight:550}.filter span{margin-left:5px;font-size:10px;opacity:.7}.search{border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:8px;min-width:180px;max-width:250px;padding:0 11px;height:38px;background:var(--surface)}.search svg{width:15px;height:15px;color:var(--muted)}.search input{border:0;outline:none;width:100%;min-width:0;background:none;color:var(--ink);font-size:12px}.search kbd{color:var(--muted);border:1px solid var(--line);padding:0 4px;border-radius:3px;font-size:10px}.catalog-label{font-size:12px;color:var(--muted);margin-bottom:15px}.app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.app-card{border:1px solid var(--line);border-radius:13px;padding:20px 19px 16px;min-width:0;transition:box-shadow .16s,border-color .16s;background:var(--surface);display:flex;flex-direction:column}.app-card:hover{border-color:#cfd4c8;box-shadow:0 4px 18px #24371c05}.app-card-top{display:flex;align-items:center;gap:12px;min-width:0}.app-card-name{min-width:0}.app-card-name h3{font-size:14px;white-space:normal;overflow-wrap:anywhere}.app-card-name span{font-size:11px;color:var(--muted)}.app-description{font-size:12px;line-height:1.6;margin:17px 0 20px;flex:1}.app-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px}.status-label{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1.4;min-width:0;color:var(--muted)}.status-label:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor;flex:none}.status-label[data-tone=success]{color:var(--good)}.status-label[data-tone=attention]{color:var(--amber)}.status-label[data-tone=working]{color:var(--blue)}
7
+ .button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border-radius:8px;padding:10px 16px;font-size:12px;line-height:1.2;font-weight:550;border:1px solid transparent;text-align:center}.button.primary{background:var(--ink);color:var(--page)}.button.primary:hover{opacity:.86}.button.secondary{border-color:var(--line);background:var(--surface)}.button.secondary:hover{background:var(--soft)}.button.compact{font-size:11px;min-height:32px;padding:7px 11px;border-radius:20px;background:var(--soft);color:var(--ink);white-space:nowrap}.button.compact[data-urgent]{color:var(--amber);background:var(--amber-bg)}.button.text{padding-left:0;padding-right:0;color:var(--muted)}.button svg{width:15px;height:15px}.button-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.text-link{font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.back-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:30px;min-height:30px}.back-link svg{width:15px;height:15px}
8
+ .app-detail-head{display:flex;gap:22px;align-items:center;margin-bottom:30px}.app-detail-head h1{font-size:32px;letter-spacing:-1px}.app-detail-head p{font-size:13px;margin-top:7px}.detail-meta{display:flex;gap:12px;align-items:center;margin-top:11px}.detail-meta>span{font-size:11px;color:var(--muted)}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 258px;gap:25px;align-items:start}.connection-card{border:1px solid var(--line);border-radius:16px;overflow:hidden}.connection-stage{padding:31px}.stage-icon{width:42px;height:42px;border-radius:50%;background:var(--soft);display:grid;place-items:center;margin-bottom:21px}.stage-icon svg{width:21px;height:21px}.connection-stage[data-tone=success]{background:linear-gradient(135deg,var(--good-bg),var(--surface) 80%)}.connection-stage[data-tone=success] .stage-icon{color:var(--good);background:var(--good-bg);border:1px solid color-mix(in srgb,var(--good) 15%,transparent)}.connection-stage[data-tone=attention] .stage-icon{color:var(--amber);background:var(--amber-bg)}.connection-stage[data-tone=working] .stage-icon{color:var(--blue);background:var(--blue-bg)}.connection-stage h2{font-size:24px;letter-spacing:-.7px;max-width:440px}.connection-stage>p{font-size:13px;line-height:1.7;margin:10px 0 22px;max-width:430px}.connection-facts{border-top:1px solid var(--line);padding:9px 24px;background:var(--surface)}.fact{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.fact:last-child{border:0}.fact dt{color:var(--muted)}.fact dd{margin:0;text-align:right;overflow-wrap:anywhere}.detail-aside{border:1px solid var(--line);border-radius:13px;padding:23px}.detail-aside h3{font-size:13px}.detail-aside p{font-size:12px;line-height:1.7;margin-top:10px}.detail-aside ul{padding-left:17px;margin:12px 0;color:var(--muted);font-size:12px}.detail-aside li{margin:8px 0}.detail-aside .divider{margin:20px 0}.detail-section{margin-top:27px}.detail-section>h2{font-size:16px;margin-bottom:13px}.help-note{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:12px;line-height:1.7;padding:15px 18px;background:var(--soft);border-radius:10px;margin-top:18px}.help-note svg{width:17px;height:17px;margin-top:2px}.manage-actions{display:flex;flex-wrap:wrap;gap:5px 17px}.manage-actions button{font-size:12px;color:var(--muted);min-height:40px}.diagnostics{margin-top:24px;font-size:11px;color:var(--muted)}.diagnostics summary{cursor:pointer;min-height:36px;padding:8px 0}.diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.6 ui-monospace,monospace;background:var(--soft);border-radius:8px;padding:16px;color:var(--muted)}
9
+ .setup-form{display:grid;gap:14px;margin:24px 0 10px}.field{display:grid;gap:6px}.field label{font-size:12px;font-weight:550}.field small{font-size:11px;color:var(--muted);line-height:1.6}.field input,.field select,.field textarea,.account-dialog input{width:100%;min-height:43px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--surface);color:var(--ink);font-size:13px}.field textarea{min-height:80px;resize:vertical}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-error{font-size:12px;color:var(--amber);background:var(--amber-bg);padding:10px 13px;border-radius:7px;margin-top:12px}.pairing-code{display:block;font:12px/1.7 ui-monospace,monospace;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:9px;background:var(--soft);padding:14px;margin:14px 0;color:var(--ink)}.qr-panel{display:flex;gap:24px;align-items:center;margin:23px 0}.qr-frame{width:186px;height:186px;padding:12px;flex:none;border:1px solid var(--line);border-radius:13px;background:#fff;display:grid;place-items:center;position:relative}.qr-frame img{width:160px;height:160px;object-fit:contain}.qr-panel ol{padding-left:19px;margin:0;color:var(--muted);font-size:12px;line-height:1.8}.qr-panel li{margin:10px 0}.demo-qr{position:relative;width:152px;height:152px;background:repeating-conic-gradient(#172820 0 25%,#fff 0 50%) 0/13px 13px;opacity:.22;filter:blur(1px)}.demo-qr-label{position:absolute;padding:6px 10px;background:#fff;color:#36453c;font-size:11px;border:1px solid #ddd;border-radius:5px;box-shadow:0 2px 12px #fff}.device-code{font:24px/1.4 ui-monospace,monospace;letter-spacing:4px;padding:18px;background:var(--soft);border:1px solid var(--line);border-radius:10px;text-align:center;margin-bottom:15px}.demo-controls{margin-top:26px;display:flex;align-items:center;gap:10px;padding:12px 15px;border:1px dashed var(--line);border-radius:9px;font-size:11px;color:var(--muted);flex-wrap:wrap}.demo-controls select{border:1px solid var(--line);background:var(--surface);border-radius:5px;padding:7px;font-size:12px;color:var(--ink);min-width:0}.demo-controls span{flex:1}
10
+ .empty-state{padding:55px 25px;text-align:center;border:1px dashed var(--line);border-radius:13px}.empty-state .stage-icon{margin:0 auto 16px}.empty-state h2{font-size:19px}.empty-state p{font-size:13px;max-width:370px;margin:10px auto 20px;line-height:1.7}.overview-hero{background:var(--soft);border-radius:18px;padding:35px;display:flex;justify-content:space-between;align-items:center;gap:35px;margin-bottom:26px}.overview-hero h2{font-size:29px;line-height:1.25;letter-spacing:-.8px;max-width:380px}.overview-hero p{font-size:13px;margin:13px 0 23px;max-width:380px;line-height:1.7}.orbit-art{width:150px;height:150px;position:relative;flex:none;display:grid;place-items:center;color:var(--accent)}.orbit-art:before,.orbit-art:after{content:'';position:absolute;inset:20px;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);border-radius:50%;transform:rotate(-30deg) scaleX(1.35)}.orbit-art:after{transform:rotate(50deg) scaleX(1.35)}.orbit-art svg{width:30px;height:30px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat{border:1px solid var(--line);border-radius:12px;padding:20px}.stat strong{display:block;font-size:28px;font-weight:500;letter-spacing:-.8px}.stat span{display:block;font-size:12px;color:var(--muted);margin-top:3px}.attention-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}.attention-row{display:flex;align-items:center;gap:13px;padding:17px 20px;border-bottom:1px solid var(--line)}.attention-row:last-child{border:0}.attention-row>div{flex:1}.attention-row h3{font-size:13px}.attention-row p{font-size:12px;margin-top:3px}.attention-row .button{flex:none}
11
+ .mode-banner{padding:9px 48px;background:var(--amber-bg);color:var(--amber);display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;line-height:1.6}.mode-banner a{font-weight:550;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}.load-notice{margin:20px 48px 0;padding:13px 16px;background:var(--amber-bg);color:var(--amber);border-radius:9px;font-size:12px}.load-notice button{font-weight:600;text-decoration:underline;margin-left:8px}.toast{position:fixed;bottom:26px;left:calc(50% + 122px);transform:translateX(-50%);background:var(--ink);color:var(--page);border-radius:10px;padding:12px 20px;font-size:12px;z-index:80;box-shadow:var(--shadow);max-width:min(550px,calc(100vw - 30px))}.account-dialog{border:1px solid var(--line);border-radius:18px;padding:28px;color:var(--ink);background:var(--surface);width:400px;max-width:calc(100vw - 32px);box-shadow:var(--shadow)}.account-dialog::backdrop{background:#1116;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.account-dialog p{font-size:13px;line-height:1.7;margin:12px 0 20px}.account-dialog label{display:block;font-size:12px;margin:16px 0 7px}.account-dialog .button{margin-top:12px}.account-dialog .demo-account-link{font-size:12px;display:block;padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.divider{border:0;border-top:1px solid var(--line)}.settings-group{border:1px solid var(--line);border-radius:13px;padding:5px 23px;max-width:740px;margin-top:23px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 0;border-bottom:1px solid var(--line)}.settings-row:last-child{border:0}.settings-row h3{font-size:13px}.settings-row p{font-size:12px;margin-top:4px}.settings-row select{border:1px solid var(--line);padding:8px 12px;background:var(--surface);color:var(--ink);border-radius:7px;font-size:12px}.galaxy-frame{width:100%;height:calc(100dvh - 220px);min-height:420px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}.skeleton-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.skeleton-grid>div{height:180px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(110deg,var(--soft),var(--page),var(--soft));background-size:250% 100%;animation:shimmer 2s infinite}.spinner{animation:spin 1.6s linear infinite}.skip-link{position:fixed;top:-60px;left:16px;z-index:100;padding:12px 18px;background:var(--ink);color:var(--page);border-radius:7px}.skip-link:focus{top:12px}.mobile-menu{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position:-250% 0}}
12
+ @media(min-width:1600px){.workspace{padding-top:55px}}
13
+ @media(max-width:1150px){.sidebar{width:212px;padding-left:13px;padding-right:13px}main{margin-left:212px}.topbar{padding:0 30px}.workspace{padding:34px 30px 60px}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid{grid-template-columns:minmax(0,1fr) 225px;gap:18px}.connection-stage{padding:26px}.feature-card{padding:20px;min-height:185px}.feature-card h3{font-size:18px}.mode-banner{padding-left:30px;padding-right:30px}.load-notice{margin-left:30px;margin-right:30px}.toast{left:calc(50% + 106px)}}
14
+ @media(max-width:880px){.detail-grid{grid-template-columns:1fr}.detail-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-aside .divider{display:none}.feature-grid{gap:10px}.feature-card{padding:16px;min-height:184px}.feature-card .app-icon{width:36px;height:36px}.feature-card h3{font-size:16px}.toolbar{align-items:flex-start;flex-direction:column;gap:15px}.search{max-width:none;width:100%}.overview-hero{padding:27px}.orbit-art{width:100px;height:100px}.overview-hero h2{font-size:24px}}
15
+ @media(max-width:700px){.sidebar{transform:translateX(-100%);width:260px;transition:transform .18s;box-shadow:var(--shadow);padding-top:28px}.sidebar[data-open]{transform:none}main{margin-left:0}.topbar{height:64px;padding:0 19px;position:sticky;top:0;background:var(--page);z-index:20}.mobile-menu{display:flex}.breadcrumb{margin-right:auto;font-size:11px;gap:8px}.breadcrumb>span:first-child,.breadcrumb>span:nth-child(2){display:none}.topbar-actions{gap:7px}.connection-indicator{display:none}.workspace{padding:29px 22px 45px}h1{font-size:31px}.page-heading{margin-bottom:24px}.page-heading>p{max-width:320px;font-size:13px;line-height:1.7}.eyebrow{font-size:9px;margin-bottom:10px}.feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.feature-card{padding:14px 12px;min-height:157px;border-radius:11px}.feature-card h3{font-size:14px;line-height:1.35}.feature-card p{font-size:10px;margin-top:6px}.feature-category,.feature-arrow{display:none}.feature-top{margin-bottom:16px}.feature-card .app-icon{width:32px;height:32px;border-radius:8px}.feature-card .app-icon img{width:22px;height:22px}.toolbar{margin-top:25px;margin-bottom:17px;gap:13px}.filters{gap:1px;flex-wrap:nowrap;width:100%}.filter{padding:9px 10px;font-size:11px;min-height:42px}.search{height:44px}.search input{font-size:13px}.search kbd{display:none}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-card{padding:16px 13px 13px;border-radius:11px}.app-card-top{gap:9px}.app-card .app-icon{width:35px;height:35px;border-radius:9px}.app-card .app-icon img{width:23px;height:23px}.app-card-name h3{font-size:12px}.app-card-name span{font-size:10px}.app-description{font-size:11px;margin:13px 0 15px}.app-card-bottom{align-items:flex-start;flex-direction:column;gap:10px}.button.compact{min-height:40px;width:100%;font-size:11px}.status-label{font-size:10px}.button{min-height:44px}.mode-banner{padding:10px 22px;font-size:10px;align-items:flex-start}.mode-banner>span{max-width:240px}.load-notice{margin:14px 22px 0;font-size:12px}.nav-scrim{position:fixed;inset:0;z-index:25;background:#0005;backdrop-filter:blur(2px)}.toast{left:50%;bottom:18px;width:max-content;max-width:calc(100vw - 32px)}.back-link{margin-bottom:20px;min-height:40px}.app-detail-head{gap:17px;margin-bottom:25px}.app-detail-head h1{font-size:27px}.app-detail-head p{font-size:12px;line-height:1.6}.app-icon.large{width:63px;height:63px;border-radius:16px}.app-icon.large img{width:37px;height:37px}.connection-stage{padding:25px 22px}.connection-stage h2{font-size:23px;line-height:1.3}.connection-stage>p{font-size:13px}.connection-facts{padding:7px 21px}.fact{font-size:12px;gap:12px}.detail-aside{grid-template-columns:1fr;padding:21px;gap:13px}.detail-aside .divider{display:block;margin:8px 0}.qr-panel{flex-direction:column;align-items:stretch;gap:15px}.qr-frame{align-self:center}.qr-panel ol{font-size:13px}.field-row{grid-template-columns:1fr}.overview-hero{padding:25px}.overview-hero h2{font-size:24px}.orbit-art{display:none}.stats{gap:9px}.stat{padding:16px 12px}.stat strong{font-size:24px}.stat span{font-size:11px}.attention-row{padding:15px;flex-wrap:wrap;gap:11px}.attention-row>div{min-width:150px}.attention-row .button{margin-left:53px}.settings-group{padding:2px 18px}.settings-row{gap:14px}.galaxy-frame{height:calc(100dvh - 225px)}.heading-row{align-items:flex-start}.section-heading{margin-top:27px}.skeleton-grid{grid-template-columns:1fr 1fr}.skeleton-grid>div:last-child{display:none}}
16
+ @media(max-width:380px){.workspace{padding-left:17px;padding-right:17px}.feature-card h3{font-size:12px}.feature-card p{font-size:9px}.app-card-top{align-items:flex-start;flex-direction:column}.filter{padding-left:8px;padding-right:8px}.detail-meta{flex-wrap:wrap;gap:7px}}
17
+ @media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
18
+ /* Product-owned setup outcomes stay visible beside the next action. */
19
+ .connection-guidance{margin:18px 0;padding:14px 16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
20
+ .connection-guidance p{margin:0;font-size:13px;line-height:1.6}
21
+ .connection-guidance p+p{margin-top:6px}
22
+ .sync-details{border:1px solid var(--line);border-radius:12px;overflow:hidden}
23
+ .sync-details summary{padding:17px 20px;font-size:14px;cursor:pointer}
24
+ .sync-details summary span{float:right;color:var(--muted);font-size:12px;max-width:62%;text-align:right}
25
+ .sync-notes{padding:16px 20px;border-top:1px solid var(--line)}
26
+ .sync-notes p{font-size:12px;line-height:1.7}.sync-notes p+p{margin-top:8px}
27
+ .sidebar .zx-language{display:block;width:calc(100% - 18px);min-height:40px;margin:8px 9px 1px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--sidebar);color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
28
+ .workspace-status{font-size:12px;line-height:1.6;margin-top:15px}
29
+ .account-button>span:nth-child(2){min-width:0;flex:1}.account-button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
30
+ @media(max-width:700px){
31
+ .feature-grid{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x proximity;padding:1px 0 12px;scrollbar-width:thin}
32
+ .feature-card{flex:0 0 min(80%,280px);min-height:182px;padding:21px;scroll-snap-align:start}
33
+ .feature-card h3{font-size:20px}.feature-card p{font-size:13px;line-height:1.6}.feature-card .app-icon{width:38px;height:38px}
34
+ .feature-top{margin-bottom:18px}.feature-arrow{display:block}.feature-category{display:none}
35
+ .app-card-name h3{font-size:14px}.app-card-name span{font-size:11px}.app-description{font-size:13px;line-height:1.6}
36
+ .status-label{font-size:11px}.button,.button.compact{font-size:13px}.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.filter{font-size:12px;padding:8px 7px;white-space:normal;line-height:1.35}
37
+ .search input,.field input,.field textarea,.field select,.account-dialog input,.settings-row select{font-size:16px}
38
+ .mode-banner{font-size:12px}.demo-badge{font-size:11px}.eyebrow{font-size:10px}
39
+ }
40
+
41
+ /* Route headings receive focus for reading order, while interactive controls keep their focus rings. */
42
+ #workspace :is(h1,h2,h3)[tabindex="-1"]:focus{outline:none}
43
+ /* Only the audited light monochrome assets need dark ink on the white app-icon tile. */
44
+ .app-icon.monochrome img{filter:brightness(.18)}
45
+ svg.outbound-arrow{width:14px;height:14px;vertical-align:middle;transform:rotate(-45deg)}
46
+ .quiet-link>svg.outbound-arrow{margin-left:auto}
47
+ .sidebar{overflow-y:auto;overscroll-behavior:contain}.sidebar-bottom{flex-shrink:0}
@@ -1 +1 @@
1
- import{mountPanels}from"./panels-live.js";import{setSnapshot}from"./live-state.js";import{createSnapshotRefresh}from"./refresh-model.js";import{syncFacts,syncNotes,engineSyncLine,syncSummary,readinessFacts}from"./sync-model.js";const $=id=>document.getElementById(id),root=document.documentElement;const node=(tag,text,parent,cls)=>{const n=document.createElement(tag);if(text!==void 0)n.textContent=text;if(cls)n.className=cls;parent?.append(n);return n};const number=n=>Number(n||0).toLocaleString();let snapshot=null,loadError="",current="home";const knownNames={"google-chrome":"Google Chrome","microsoft-edge":"Microsoft Edge","gmail":"Gmail","google-drive":"Google Drive","google-calendar":"Google Calendar","youtube":"YouTube","notion":"Notion","slack":"Slack","outlook":"Outlook"};const sourceName=id=>knownNames[id]||id;const seconds=n=>Number.isFinite(n)?`${(n/1e3).toFixed(1)} s`:"Not measured";const go=route=>{location.hash=route==="home"?"":route};root.dataset.shell=/Electron/.test(navigator.userAgent)?"app":"web";function leftInset(){if(matchMedia("(max-width:700px)").matches)return 0;const px=name=>parseFloat(getComputedStyle(root).getPropertyValue(name))||0;return(root.hasAttribute("data-sidebar")?px("--zx-side")+8:0)+(root.hasAttribute("data-panel")?px("--zx-panel")+8:0)}const tellTwin=()=>{$("twin").contentWindow?.postMessage({type:"zortex-twin",visible:current!=="engine"&&current!=="store",inset:leftInset()},location.origin)};function sidebar(on){root.toggleAttribute("data-sidebar",on);$("sidebar").inert=!on;$("sidebar-show").setAttribute("aria-expanded",String(on));requestAnimationFrame(tellTwin)}$("sidebar-show").onclick=()=>sidebar(true);$("sidebar-hide").onclick=()=>sidebar(false);document.querySelectorAll("[data-go]").forEach(b=>b.onclick=()=>go(b.dataset.go));const newChat=document.querySelector("[data-zx-new-chat]");newChat.disabled=true;newChat.title="In-app chat is not available in this version. Use your connected AI.";$("engine-close").onclick=()=>go("home");$("engine-corner").onclick=()=>go("engine");$("account-name").textContent="This computer";$("avatar").textContent="Z";$("account").onclick=()=>go("about");$("account").removeAttribute("aria-haspopup");$("account").removeAttribute("aria-controls");$("setup-again").disabled=true;const input=$("input");input.placeholder="Ask your connected AI about your Vault";$("ghost").textContent="";input.disabled=true;input.setAttribute("aria-label","Chat in your connected AI. In-app chat is not available in this version.");$("composer").title="Use Zortex through your connected AI. In-app chat is not available in this version.";$("composer").onsubmit=e=>{e.preventDefault();go("ais")};const mini=window.EngineGraphics?.createEngineDisplay($("engine-mini"),{vehicle:"booster",interactive:false,motion:"auto"});const big=window.EngineGraphics?.createEngineDisplay($("engine-big"),{vehicle:"booster",interactive:false,motion:"auto"});const dateText=value=>{const d=new Date(value);return value&&!Number.isNaN(+d)?d.toISOString().replace("T"," ").replace(/\.\d{3}Z$/," UTC"):"Not available"};const fact=(name,value,parent)=>{const r=node("div",void 0,parent,"p-row tall");node("span",name,r,"key");node("span",value??"Not available",r,"grow")};const note=(text,parent)=>node("p",text,parent,"p-note");function card(parent,title,detail,action){const b=node("button",void 0,parent,"p-card wrap");b.type="button";const words=node("span",void 0,b,"p-words");node("b",title,words);node("small",detail,words);b.onclick=action;return b}function refreshButton(parent){const b=node("button","Refresh local counts",parent,"p-pill");b.type="button";b.dataset.liveAction="refresh";b.onclick=async()=>{b.disabled=true;await load();render()}}function dataNotice(parent){if(snapshot?.coverageNote?.providerCache==="unavailable")note("Partial count: provider cache could not be read (invalid_argument).",parent);if(snapshot?.coverageNote?.bounded)note(`The map draws a sample of ${number(snapshot.totalItems)} records. The full stored count includes revisions and provider cache entries.`,parent);note("Local records, source availability and tested operations are separate facts. A valid empty operation is successful; missing evidence remains unverified.",parent)}function sourceDetails(parent,row){fact("Source catalog",row.configured?"In the product candidate list":row.directory?"Source directory entry":"Additional registered or observed local source",parent);fact("Registration",row.registered===null?"Status unavailable":row.registration==="deferred"?"Setup required; open zortex help":row.registered?"Registered with the connector hub":"Not verified",parent);const support=row.support;fact("Manual connection",support?{"supported":"Available in Help","setup-required":"Setup required in Help","unsupported":"Unavailable in Help"}[support.state]??"Not verified":"Not verified",parent);if(support){fact("Support reason",support.message,parent);fact("Next step",support.nextStep,parent);fact("Support code",support.reasonCode,parent)}fact("Connection",row.connectionState,parent);fact("Local records",number(row.items),parent);fact("Data evidence",row.dataState.replaceAll("_"," "),parent);if(row.readiness){fact("Actions",`Ready \xB7 ${number(row.readiness.actions)} available`,parent);fact("Read check",row.readiness.operation.state==="not-run"?"Not run":row.readiness.operation.returned===void 0?"Action succeeded \xB7 record read unverified":`Read succeeded \xB7 ${number(row.readiness.operation.returned)} returned`,parent);note("This check belongs to the current connection session. Available Actions do not establish a successful read or stored records.",parent)}if(row.publicRead){fact(row.source==="appstore"?"Public App Store read":"Public data read",row.publicRead.state,parent);if(row.source==="appstore")note("Public catalog access does not establish an Apple account connection or stored records.",parent)}if(row.readEvidence){fact("Live read",`${number(row.readEvidence.returned)} returned`,parent);note("Live read results are separate from records stored in the Vault.",parent)}fact("First record",dateText(row.first),parent);fact("Latest mapped record",dateText(row.latest),parent);if(row.sync){node("h2","Full sync",parent,"p-label");for(const[name,value]of syncFacts(row.sync,snapshot?.sync,Date.now()))fact(name,value,parent);for(const text of syncNotes(snapshot?.sync))note(text,parent)}const p=row.progress,e=p?.evidence;node("h2","Latest connection attempt",parent,"p-label");fact("Stage",p?.stage??"Not observed",parent);fact("Elapsed",seconds(p?.durationMs),parent);fact("Connect",seconds(p?.connectMs),parent);fact("Read",seconds(p?.readMs),parent);fact("Attempt connection",p?.connectionState??"Unverified",parent);for(const[label,value]of readinessFacts(row))fact(label,value,parent);const live=e&&e.origin!=="vault-cache";if(!p?.readiness&&!Number.isSafeInteger(row.readiness?.operation?.returned))fact("First page",live?`Read \xB7 ${Number.isFinite(p.returned)?`${number(p.returned)} returned`:"count not reported"}`:e?.origin==="vault-cache"?"Cached records only \xB7 live read unverified":"Unverified",parent);if(e?.stage==="read-own-posts")fact("Your own posts",live&&e.ownRecords>0?`${number(e.ownRecords)} verified`:"Unverified",parent);if(e){fact("Evidence origin",e.origin,parent);fact("Observed",dateText(e.observedAt),parent)}if(p?.errorCode)fact("Reason",p.errorCode,parent);note("Available Actions can be used before an operation is tested. Stored records and verified own posts require their own evidence.",parent);note("This page reads aggregate counts only. Account details, record titles and message content are not exposed.",parent);refreshButton(parent);note("Run zortex help to open manual connection controls. This page follows the same connection progress automatically.",parent)}function store(){const view=$("view");view.hidden=true;const page=$("chat");page.hidden=false;page.classList.add("zx-store");const content=$("messages");content.replaceChildren();node("h1","Mods",content);note("Your Zortex, with more possibilities.",content);note("The marketplace is not available in this build. No demo catalogue, purchases or installed states are shown.",content);card(content,"Galaxy","Included \xB7 current local Vault",()=>go("home"));const b=node("button","Back to Galaxy",content,"p-pill");b.onclick=()=>go("home")}function engine(){const rows=snapshot?.coverage||[],verified=rows.filter(r=>r.connectionState==="connected");$("engine-sub").textContent=`${verified.length} connected \xB7 ${rows.length} sources \xB7 ${number(snapshot?.inventory?.storedRecords??snapshot?.totalItems)} ${snapshot?.inventory?"stored records":"mapped records"}`;$("engine-sync").textContent=engineSyncLine(rows,Date.now())??"Current local Vault snapshot";$("engine-sync-now").textContent="Refresh counts";$("engine-sync-now").onclick=async()=>{await load();render()};const updates=Array.from({length:33},(_,i)=>({id:"B"+String(i+1).padStart(2,"0"),state:i<verified.length?"on":"off",throttle:i<verified.length?1:0}));mini?.setEngines(updates);big?.setEngines(updates);const list=$("connector-list");list.replaceChildren();for(const row of rows.filter(r=>sourceName(r.source).toLowerCase().includes($("engine-q").value.toLowerCase()))){const li=node("li",void 0,list);const b=node("button",void 0,li);b.className=row.connectionState==="connected"?"on":"off";node("i",void 0,b);node("span",sourceName(row.source),b,"nm");node("span",number(row.items),b,"n");const sync=syncSummary(row.sync);b.title=`${row.connectionState} \xB7 ${row.dataState}${sync?` \xB7 ${sync}`:""}`;b.onclick=()=>go(`apps/${row.source}`)}$("engine-empty").hidden=list.children.length!==0;$("engine-card").hidden=true}$("engine-q").oninput=engine;function render(){current=decodeURIComponent(location.hash.slice(1)||"home");const[page,id]=current.split("/");root.dataset.route=page==="engine"?"engine":page==="store"?"store":"home";root.toggleAttribute("data-panel",!["home","engine","store"].includes(page));for(const el of[$("sidebar"),$("sidebar-show")]){if(page==="store")el.dataset.surface="store";else delete el.dataset.surface}$("panel").hidden=["home","engine","store"].includes(page);$("engine").hidden=page!=="engine";$("chat").hidden=true;$("chat").classList.remove("zx-store");$("view").hidden=true;$("panel-back").hidden=!id;$("panel-body").replaceChildren();$("panel-tools").hidden=true;const titles={ais:"Connected AIs",apps:"Apps",mods:"Mods",about:"This computer"};$("panel-title").textContent=id?sourceName(id):titles[page]||"Zortex";if(!$("panel").hidden)sidebar(true);if(loadError)note(loadError,$("panel-body"));if(["apps","ais","mods"].includes(page))panels.show(page,id?[id]:[]);else if(page==="engine")engine();else if(page==="store")store();else if(page==="about"){fact("Version",snapshot?.productVersion,$("panel-body"));fact("Vault",snapshot?.status,$("panel-body"));fact("Source Vault",snapshot?.inventory?.label??"Current Vault",$("panel-body"));fact("Stored records",snapshot?.inventory?number(snapshot.inventory.storedRecords):"Unavailable",$("panel-body"));fact("Map sample",number(snapshot?.totalItems),$("panel-body"));fact("Latest mapped record",dateText(snapshot?.latest),$("panel-body"));note(snapshot?.portrait?.state==="measured-subset"?"Measured subset from existing local vectors and source-proven authored records. Contacts and topic taxonomy are unavailable; unknown dimensions use layout defaults.":"This view contains source names, counts and times only. Record nodes use source labels and recorded timestamps. Semantic portrait, authorship and relationships are not yet measured; the shape is layout only.",$("panel-body"));refreshButton($("panel-body"))}document.querySelectorAll("[data-go]").forEach(b=>b.setAttribute("aria-current",b.dataset.go===page?"page":"false"));tellTwin()}const panels=await mountPanels({open:go,openStore:()=>go("store"),sourceDetails:(parent,id)=>{const row=snapshot?.coverage?.find(r=>r.source===id);if(row)sourceDetails(parent,row)}});const refreshSnapshot=createSnapshotRefresh({read:async()=>{const r=await fetch("snapshot.json");if(!r.ok)throw Error();return r.json()},publish:value=>{snapshot=value;setSnapshot(snapshot);loadError=""},reload:()=>$("twin").contentWindow?.location.reload()});async function load(){try{await refreshSnapshot()}catch{loadError="Local Vault unavailable. Last displayed data may be stale. No demo data is substituted."}}addEventListener("hashchange",render);addEventListener("resize",tellTwin);$("twin").addEventListener("load",tellTwin);addEventListener("message",e=>{if(e.origin!==location.origin||e.source!==$("twin").contentWindow)return;if(e.data?.type==="zortex-twin-ready")tellTwin();if(e.data?.type==="zortex-twin-mode"&&["twin","time","play","others"].includes(e.data.mode))root.dataset.twinMode=e.data.mode;if(e.data?.type==="zortex-twin-full")root.toggleAttribute("data-twin-full",e.data.on===true)});addEventListener("keydown",e=>{if(e.key==="Escape")go("home");if((e.ctrlKey||e.metaKey)&&e.key==="\\"){e.preventDefault();sidebar(!root.hasAttribute("data-sidebar"))}});sidebar(true);await load();engine();render();let refreshing=false;setInterval(async()=>{if(refreshing||document.hidden)return;refreshing=true;const route=current;try{await load();if(current===route&&!document.activeElement?.matches('input,textarea,[contenteditable="true"]'))render()}finally{refreshing=false}},5e3);
1
+ import{mergeApps,safeAuthorizationUrl,safeAuthorizationImage}from"./app-model.js";import{appIdentity,featuredApps,modCatalog,lightMonochromeIconPaths}from"./app-catalog.js";import{createConnectionClient,runConnectionAction}from"./connection-client.js";import{setupFor,setupRequest}from"./connection-forms.js";import{syncFacts,syncSummary,syncNotes,engineSyncLine}from"./sync-model.js";const $=id=>document.getElementById(id),root=document.documentElement;const esc=value=>String(value??"").replace(/[&<>"']/g,c=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[c]);const paths={search:'<circle cx="10.5" cy="10.5" r="6.5"/><path d="m16 16 4 4"/>',check:'<path d="m5 12 4 4L19 6"/>',arrow:'<path d="M5 12h14m-6-6 6 6-6 6"/>',back:'<path d="M19 12H5m6-6-6 6 6 6"/>',link:'<path d="m10 14 4-4m-6 6-2 2a4 4 0 0 1-6-6l5-5a4 4 0 0 1 6 0m2-2 2-2a4 4 0 0 1 6 6l-5 5a4 4 0 0 1-6 0" transform="translate(1 1)"/>',info:'<circle cx="12" cy="12" r="9"/><path d="M12 11v6m0-10v.1"/>',clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>',refresh:'<path d="M20 7v5h-5M4 17v-5h5M6 6a8 8 0 0 1 13 3M5 15a8 8 0 0 0 13 3"/>',grid:'<rect x="3" y="3" width="7" height="7" rx="2"/><rect x="14" y="3" width="7" height="7" rx="2"/><rect x="3" y="14" width="7" height="7" rx="2"/><rect x="14" y="14" width="7" height="7" rx="2"/>',orbit:'<ellipse cx="12" cy="12" rx="10" ry="5" transform="rotate(-35 12 12)"/><circle cx="12" cy="12" r="2.4"/>',lock:'<rect x="5" y="10" width="14" height="11" rx="3"/><path d="M8 10V7a4 4 0 0 1 8 0v3m-4 5v2"/>',qr:'<path d="M3 3h6v6H3zM15 3h6v6h-6zM3 15h6v6H3zM15 15h2v2h-2zM19 17h2v4h-4v-2h-2"/>'};const svg=(name,cls="")=>'<svg class="'+cls+'" viewBox="0 0 24 24" aria-hidden="true">'+(paths[name]||paths.grid)+"</svg>";const integer=n=>Number.isSafeInteger(n)?n.toLocaleString():"Not available";const state={runtime:null,snapshot:null,abilities:{apps:[]},report:null,apps:[],filter:"all",query:"",busy:new Set,errors:new Map,setup:new Set,forms:new Map,pairings:new Map,notice:"",route:"",account:{state:"signed_out"},accountRequested:"",theme:"system"};let demo,demoScenarios=[],request,refreshing,pollTimer,toastTimer,disposed=false;const lifetime=new AbortController;const media=matchMedia("(max-width:700px)");function theme(value){state.theme=value;root.dataset.theme=value==="system"?matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light":value;try{localStorage.setItem("zortex-ui-theme",value)}catch{}}try{theme(localStorage.getItem("zortex-ui-theme")||"system")}catch{theme("system")}matchMedia("(prefers-color-scheme:dark)").addEventListener("change",()=>{if(state.theme==="system")theme("system")});function nav(open){$("sidebar").toggleAttribute("data-open",open);$("nav-scrim").hidden=!open;const drawer=media.matches;$("sidebar").inert=drawer&&!open;$("main-content").inert=drawer&&open;$("mobile-menu").setAttribute("aria-expanded",String(open));if(drawer&&open){$("sidebar").setAttribute("role","dialog");$("sidebar").setAttribute("aria-modal","true");$("sidebar").querySelector("a")?.focus()}else{$("sidebar").removeAttribute("role");$("sidebar").removeAttribute("aria-modal")}}media.addEventListener("change",()=>nav(false));nav(false);$("mobile-menu").onclick=()=>nav(!$("sidebar").hasAttribute("data-open"));$("nav-scrim").onclick=()=>{nav(false);$("mobile-menu").focus()};function toast(text){clearTimeout(toastTimer);$("toast").textContent=text;$("toast").hidden=false;toastTimer=setTimeout(()=>$("toast").hidden=true,5e3)}function route(){let value;try{value=decodeURIComponent(location.hash.slice(1))}catch{value="apps"}if(value==="main-content")return state.route||"apps";const[page,id]=value.split("/");const aliases={home:"overview",engine:"apps",store:"mods",about:"settings",ais:"settings"};const clean=aliases[page]||page||"apps";return["apps","mods","galaxy","overview","settings"].includes(clean)?clean+(id&&/^[a-z0-9._-]+$/i.test(id)?"/"+id:""):"apps"}function go(path){if(location.hash==="#"+path)render(true);else location.hash=path}function icon(app,large=false){const id=appIdentity(app.id,app).icon;if(id==="galaxy")return'<span class="app-icon '+(large?"large":"")+'">'+svg("orbit")+"</span>";let path=state.abilities.localIconPaths?.[id]||state.abilities.localIconPaths?.[app.id];if(!path){const alias=state.abilities.iconAliases?.[id]||id,kind=state.abilities.iconSources?.[alias];if(kind)path="icons/"+alias+(kind==="s"?".svg":".png")}if(path&&!/^(?:icons\/(?:local\/)?[a-z0-9-]+\.(?:svg|png))$/.test(path))path=null;return'<span class="app-icon '+(large?"large ":"")+(!path?"letter":lightMonochromeIconPaths.has(path)?"monochrome":"")+'">'+(path?'<img src="'+esc(path)+'" alt="" loading="lazy">':esc(appIdentity(app.id,app).name.charAt(0)))+"</span>"}function status(view){return'<span class="status-label" data-tone="'+esc(view.tone)+'">'+esc(view.status)+"</span>"}function button(label,action,source,kind="primary",extras=""){return'<button type="button" class="button '+kind+'" data-action="'+esc(action)+'" data-source="'+esc(source)+'" '+(state.busy.has(source)?'disabled aria-busy="true"':"")+" "+extras+">"+esc(state.busy.has(source)?"Working\u2026":label)+"</button>"}function heading(title,description,eyebrow="YOUR WORKSPACE"){return'<div class="page-heading"><span class="eyebrow">'+esc(eyebrow)+'</span><h1 tabindex="-1">'+esc(title)+"</h1><p>"+esc(description)+"</p></div>"}function actionLabel(app){return!state.runtime?.canConnect&&!demo&&!["open","refresh"].includes(app.view.action)?"View setup":app.view.actionLabel}function appCard(app){const identity=appIdentity(app.id,app),view=app.view;return'<article class="app-card" data-app-id="'+esc(app.id)+'"><a class="app-card-top" href="#apps/'+esc(app.id)+'">'+icon(app)+'<div class="app-card-name"><h3 data-no-translate>'+esc(identity.name)+"</h3><span>"+esc(identity.category)+'</span></div></a><p class="app-description">'+esc(identity.description)+'</p><div class="app-card-bottom">'+status(view)+button(actionLabel(app),"primary",app.id,"compact",view.attention?"data-urgent":"")+"</div></article>"}function featured(){return'<div class="feature-grid">'+featuredApps.map(id=>state.apps.find(app=>app.id===id)).filter(Boolean).map(app=>{const identity=appIdentity(app.id,app);return'<a class="feature-card" data-app="'+esc(app.id)+'" href="#apps/'+esc(app.id)+'"><div class="feature-top">'+icon(app)+'<span class="feature-category">'+esc(identity.category.toUpperCase())+'</span><span class="feature-arrow" aria-hidden="true">'+svg("arrow","outbound-arrow")+"</span></div><h3 data-no-translate>"+esc(identity.name)+"</h3><p>"+esc(identity.description)+"</p></a>"}).join("")+"</div>"}function matches(app){const id=appIdentity(app.id,app);return(state.filter==="all"||state.filter==="connected"&&app.view.connected||state.filter==="attention"&&app.view.attention)&&(!state.query||(id.name+" "+id.description+" "+id.category).toLowerCase().includes(state.query.toLowerCase().trim()))}function catalog(){const connected=state.apps.filter(a=>a.view.connected).length,attention=state.apps.filter(a=>a.view.attention).length;return heading("Apps","Everything you use, a little more connected.")+featured()+'<div class="toolbar"><div class="filters" aria-label="Filter apps">'+[["all","All apps",state.apps.length],["connected","Connected",connected],["attention","Needs attention",attention]].map(([id,label,count])=>'<button type="button" class="filter" data-filter="'+id+'" aria-pressed="'+(state.filter===id)+'">'+label+"<span>"+count+"</span></button>").join("")+'</div><label class="search">'+svg("search")+'<input id="app-search" type="search" placeholder="Search apps" aria-label="Search apps" autocomplete="off" value="'+esc(state.query)+'"><kbd aria-hidden="true">/</kbd></label></div><div id="catalog-content">'+catalogContent()+"</div>"}function catalogContent(){const apps=state.apps.filter(matches);return apps.length?'<p class="catalog-label">'+(state.query?apps.length+" matching apps":state.filter==="connected"?"Your connected apps":state.filter==="attention"?"A little attention goes a long way":"Find your next connection")+'</p><div class="app-grid">'+apps.map(appCard).join("")+"</div>":empty("No apps found",state.query?"Try another name or clear your filters.":state.filter==="connected"?"Connect your first app to bring its context into your workspace.":state.filter==="attention"?"Your apps don\u2019t need any attention right now.":"The app catalog is unavailable. Refresh to try again.",button("Show all apps","clear","","secondary"))}function empty(title,description,actions=""){return'<div class="empty-state"><div class="stage-icon">'+svg("grid")+"</div><h2>"+esc(title)+"</h2><p>"+esc(description)+"</p>"+actions+"</div>"}function fact(label,value){return'<div class="fact"><dt>'+esc(label)+"</dt><dd>"+esc(value)+"</dd></div>"}function commonFacts(app){const c=app.coverage,r=app.report,view=app.view;let check="Not checked yet";if(r?.read==="empty"||!r?.read&&c.readEvidence?.returned===0)check="Succeeded \xB7 no items returned";else if(r?.read==="first-record"||!r?.read&&c.readEvidence?.state==="succeeded")check="Succeeded"+(Number.isSafeInteger(r?.returned)?" \xB7 "+integer(r.returned)+" items returned":"");else if(r?.operation==="succeeded")check="Action succeeded";else if(r?.read==="failed")check="Needs another check";const actions=r?.actions??c.readiness?.actions;return'<dl class="connection-facts">'+fact("Connection",view.connected?"Connected":view.status)+(demo?fact("Workspace","Alex\u2019s sample workspace"):"")+fact("Saved records",integer(view.items))+(Number.isSafeInteger(actions)?fact("Available actions",integer(actions)):"")+fact("Latest check",check)+(c.sync?.state?fact("Sync",String(c.sync.state).replaceAll("-"," ")):"")+"</dl>"}function syncDetail(app){const sync=app.coverage.sync;if(!sync)return"";return'<section class="detail-section"><details class="sync-details"><summary>Full sync'+(syncSummary(sync)?"<span>"+esc(syncSummary(sync))+"</span>":"")+'</summary><dl class="connection-facts">'+syncFacts(sync,state.snapshot?.sync||{}).map(([label,value])=>fact(label,value)).join("")+'</dl><div class="sync-notes">'+syncNotes(state.snapshot?.sync).map(note=>"<p>"+esc(note)+"</p>").join("")+"</div></details></section>"}function formFields(definition,source){const values=state.forms.get(source)||{};return definition.fields.map(field=>{const value=values[field.name]??field.value??"",id="setup-"+field.name,attrs=' id="'+id+'" name="'+esc(field.name)+'"'+(field.required===false?"":" required")+(field.maxLength?' maxlength="'+field.maxLength+'"':"")+(field.pattern?' pattern="'+esc(field.pattern)+'"':"");const input=field.type==="select"?"<select"+attrs+">"+field.options.map(([v,label])=>'<option value="'+esc(v)+'" '+(String(value)===v?"selected":"")+">"+esc(label)+"</option>").join("")+"</select>":field.type==="textarea"?"<textarea"+attrs+' placeholder="'+esc(field.placeholder||"")+'">'+esc(value)+"</textarea>":"<input"+attrs+' type="'+field.type+'" placeholder="'+esc(field.placeholder||"")+'" value="'+esc(value)+'"'+(field.min?' min="'+field.min+'" max="'+field.max+'"':"")+">";return'<div class="field"><label for="'+id+'">'+esc(field.label)+"</label>"+input+(field.help?"<small>"+esc(field.help)+"</small>":"")+"</div>"}).join("")}function setupForm(app,definition){if(!definition)return'<div class="help-note">'+svg("info")+"<span>"+esc(app.report?.support?.nextStep||app.coverage.support?.nextStep||"This app has no manual setup form available on this computer.")+"</span></div>";if(definition.pairing)return pairingForm(app);return'<form class="setup-form" id="setup-form" data-source="'+esc(app.id)+'">'+formFields(definition,app.id)+'<p class="form-caption">Sign-in details are entered in the app\u2019s secure authorization page after setup.</p><div class="button-row"><button class="button primary" type="submit" '+(state.busy.has(app.id)?"disabled":"")+">Save and continue</button>"+button("Cancel","hide-setup",app.id,"secondary")+(app.id==="obsidian"?button("Find my vaults","discover-native-vault",app.id,"secondary"):"")+"</div></form>"}function pairingForm(app){const pair=state.pairings.get(app.id),draft=state.forms.get(app.id)||{};if(!pair)return'<p class="help-note">Open the Indra plugin in Joplin, then start pairing here. Both apps will show a fingerprint for you to compare.</p><div class="button-row">'+button("Start pairing","pair-start",app.id)+"</div>";if(pair.state!=="configured"&&pair.expiresAt&&Date.now()>=pair.expiresAt)return'<p class="form-error">This pairing code expired. Start again to get a fresh code.</p>'+button("Start again","pair-start",app.id);if(pair.state==="configured")return'<p class="help-note">Joplin is paired. Continue to verify the connection.</p>'+button("Verify note access","read",app.id);return'<div class="setup-form">'+(pair.zortexPublicKey?'<p>Paste this public key into the Indra plugin in Joplin.</p><code class="pairing-code" data-no-translate>'+esc(pair.zortexPublicKey)+"</code>":"")+(pair.fingerprint?'<p>Compare this fingerprint with Joplin. Continue only when both match.</p><code class="pairing-code" data-no-translate>'+esc(pair.fingerprint)+'</code><form id="pair-confirm" data-source="'+esc(app.id)+'"><div class="field"><label for="pair-port">Joplin port</label><input id="pair-port" name="port" type="number" min="1024" max="65535" value="'+esc(draft.port||41184)+'" required></div><div class="button-row"><button class="button primary" type="submit">Fingerprints match \xB7 Pair</button>'+button("Cancel pairing","pair-cancel",app.id,"secondary")+"</div></form>":'<form id="pair-inspect" data-source="'+esc(app.id)+'"><div class="field"><label for="plugin-key">Public key from Joplin</label><input id="plugin-key" name="pluginPublicKey" value="'+esc(draft.pluginPublicKey||"")+'" required pattern="[a-fA-F0-9]{88}" maxlength="88" autocomplete="off"></div><div class="button-row"><button class="button primary" type="submit">Compare fingerprints</button>'+button("Cancel pairing","pair-cancel",app.id,"secondary")+"</div></form>")+"</div>"}function waiting(app){const r=app.view.report||app.report||{},isQr=app.view.kind==="qr",url=safeAuthorizationUrl(r.authorizationUrl||r.signInUrl,app.id),image=safeAuthorizationImage(r.authorizationImage);let html="";if(isQr){html='<div class="qr-panel"><div class="qr-frame">'+(demo?'<div class="demo-qr" aria-hidden="true"></div><span class="demo-qr-label">Demo QR preview</span>':image?'<img src="'+esc(image)+'" alt="Scan this QR code to connect '+esc(appIdentity(app.id,app).name)+'">':"<span>Preparing your code\u2026</span>")+"</div><ol><li>Open WhatsApp on your phone.</li><li>Go to <strong>Settings \u2192 Linked devices</strong>.</li><li>Tap <strong>Link a device</strong> and scan this code.</li></ol></div>"}if(r.deviceUserCode)html+='<div class="device-code" data-no-translate aria-label="Device sign-in code">'+esc(r.deviceUserCode)+"</div>";if(url)html+='<div class="button-row"><a class="button primary" href="'+esc(url)+'" target="_blank" rel="noopener noreferrer">Continue in '+esc(appIdentity(app.id,app).name)+" "+svg("arrow")+"</a>"+button("Check connection","refresh",app.id,"secondary")+"</div>";else if(!isQr&&!demo)html+='<p class="help-note">Finish sign-in in the window that opened. You can return here at any time to check progress.</p>';if(demo)html+='<div class="button-row">'+button("Complete demo connection","demo-complete",app.id)+button("Cancel","cancel",app.id,"secondary")+'</div><p class="demo-explanation">Sample preview. No QR code or account is connected.</p>';else html+='<div class="manage-actions">'+button("Cancel connection","cancel",app.id,"text")+(isQr?button("Get a new code","restart",app.id,"text"):"")+"</div>";return html}function detail(app){const identity=appIdentity(app.id,app),v=app.view,r=app.report,c=app.coverage,definition=setupFor(app.id,r),editing=state.setup.has(app.id)||v.kind==="setup",isRemote=!state.runtime.canConnect&&!demo;const title=v.kind==="success"?identity.name+" is connected":v.title;let actions="";if(isRemote&&!["success","empty"].includes(v.kind))actions='<p class="help-note">'+svg("info")+"<span>This connection needs the app on your computer. Open Zortex there and choose Apps \u2192 "+esc(identity.name)+". Your existing data remains available here.</span></p>";else if(editing&&v.kind!=="working")actions=setupForm(app,definition);else if(["qr","waiting"].includes(v.kind))actions=waiting(app);else if(v.kind==="working")actions='<div class="button-row">'+button("Check progress","refresh",app.id,"secondary")+button("Connect manually instead","manual",app.id,"secondary")+'</div><div class="manage-actions">'+button("Cancel connection","cancel",app.id,"text")+"</div>";else if(v.connected&&!v.attention)actions='<div class="button-row">'+button("Check connection",isRemote?"refresh":"read",app.id)+'<a class="button secondary" href="#apps">Browse apps</a></div>';else actions='<div class="button-row">'+button(v.actionLabel,v.action,app.id)+(v.kind==="attention"?button("Refresh status","refresh",app.id,"secondary"):"")+"</div>";const key=v.kind==="working"?"refresh":v.kind==="qr"?"qr":v.connected&&!v.attention?"check":v.attention?"info":"link";const caps=r?.availability==="actions"||c.readiness?.basis==="actions"?"Use the actions this app makes available to your connected AI.":r?.availability==="read"||c.readEvidence?"Read connected information through your AI.":"Connect this app to make supported information and actions available to your AI.";const authorizationAvailable=r?.authorizationAvailable===true||demo&&!["joplin","google-chrome","microsoft-edge"].includes(app.id);const manageActions=(authorizationAvailable?button("Reconnect or choose an account","authorize",app.id,"text"):"")+(definition?button("Connection settings","show-setup",app.id,"text"):"")+(r?.gmailWriteAvailable?button("Enable Gmail write access","authorize-gmail-write",app.id,"text"):"")+(r?.readwiseMcpWriteAvailable?button("Enable Readwise write access","authorize-readwise-mcp",app.id,"text"):"")+(r?.reconnectSavedAvailable?button("Reconnect saved account","reconnect-saved",app.id,"text"):"");const manage=isRemote||!manageActions?"":'<section class="detail-section"><h2>Manage connection</h2><div class="manage-actions">'+manageActions+"</div></section>";const explanation=["setup","reload","attention","working","unavailable"].includes(v.kind)?[r?.message,r?.nextStep||r?.support?.nextStep].filter((text,index,all)=>typeof text==="string"&&text.trim()&&text!==v.description&&all.indexOf(text)===index).map(text=>"<p>"+esc(text)+"</p>").join(""):"";const evidence={connection:r?.connection||c.connectionState,stage:r?.state||c.progress?.stage,errorCode:r?.errorCode||c.progress?.errorCode,read:r?.read,availability:r?.availability,storedRecords:v.items};return'<a class="back-link" href="#apps">'+svg("back")+'All apps</a><header class="app-detail-head">'+icon(app,true)+'<div><h1 tabindex="-1" data-no-translate>'+esc(identity.name)+"</h1><p>"+esc(identity.description)+'</p><div class="detail-meta">'+status(v)+"<span>"+esc(identity.category)+'</span></div></div></header><div class="detail-grid"><div><section class="connection-card" aria-label="Connection status"><div class="connection-stage" data-tone="'+v.tone+'"><div class="stage-icon">'+svg(key,v.kind==="working"?"spinner":"")+"</div><h2>"+esc(title)+"</h2><p>"+esc(v.description)+"</p>"+(explanation?'<div class="connection-guidance">'+explanation+"</div>":"")+actions+(state.errors.has(app.id)?'<p class="form-error" role="alert">'+esc(state.errors.get(app.id))+"</p>":"")+"</div>"+commonFacts(app)+"</section>"+(v.kind==="empty"?'<div class="help-note">'+svg("check")+"<span>The connection worked. An empty result means this check returned no items; it doesn\u2019t require signing in again.</span></div>":"")+syncDetail(app)+manage+'<details class="diagnostics"><summary>Connection details</summary><pre data-no-translate>'+esc(JSON.stringify(evidence,null,2))+"</pre></details>"+(demo?'<div class="demo-controls"><label for="demo-scenario">Preview a state</label><select id="demo-scenario" data-source="'+esc(app.id)+'">'+demoScenarios.map(([id,label])=>'<option value="'+id+'" '+(demo.scenario(app.id)===id?"selected":"")+">"+esc(label)+"</option>").join("")+"</select><span>Sample data only</span></div>":"")+'</div><aside class="detail-aside"><div><h3>Make it part of your day</h3><p>'+esc(caps)+'</p><ul><li>Keep this app\u2019s context close.</li><li>Check connection status here.</li><li>Continue setup whenever you need.</li></ul></div><hr class="divider"><div><h3>Your account, your control</h3><p>Review the permissions on the provider\u2019s sign-in page. Only the account you authorize is connected.</p><a class="button text" href="https://zortex.me/docs/vision/connectors/connect" target="_blank" rel="noopener noreferrer">Connection guide '+svg("arrow","outbound-arrow")+"</a></div></aside></div>"}function overview(){const connected=state.apps.filter(a=>a.view.connected),attention=state.apps.filter(a=>a.view.attention);const syncLine=engineSyncLine(state.snapshot?.coverage||[]);return heading(demo?"A little more connected.":"Your workspace, together.",demo?"Welcome to Alex\u2019s sample workspace. Make yourself at home.":"Bring your apps together and keep your connections in view.")+'<section class="overview-hero"><div><span class="eyebrow">BUILT AROUND YOU</span><h2>Your everyday tools.<br>One connected workspace.</h2><p>Connect the apps you know. Give your AI the context to help with the work ahead.</p><a class="button primary" href="#apps">Explore apps '+svg("arrow")+'</a></div><div class="orbit-art">'+svg("orbit")+'</div></section><div class="stats"><div class="stat"><strong>'+connected.length+'</strong><span>Connected apps</span></div><div class="stat"><strong>'+attention.length+'</strong><span>Need attention</span></div><div class="stat"><strong>'+integer(state.snapshot?.inventory?.storedRecords??state.snapshot?.totalItems)+"</strong><span>"+(demo?"Sample records":"Saved records")+"</span></div></div>"+(syncLine?'<p class="workspace-status">'+esc(syncLine)+"</p>":"")+(attention.length?'<div class="section-heading"><h2>Pick up where you left off</h2><a href="#apps" data-attention-link>View all apps \u2192</a></div><div class="attention-list">'+attention.slice(0,3).map(app=>'<div class="attention-row">'+icon(app)+"<div><h3>"+esc(appIdentity(app.id,app).name)+"</h3><p>"+esc(app.view.status)+"</p></div>"+button(actionLabel(app),"primary",app.id,"secondary")+"</div>").join("")+"</div>":"")+'<div class="section-heading"><h2>Your connected apps</h2><a href="#apps">Manage apps \u2192</a></div>'+(connected.length?'<div class="app-grid">'+connected.slice(0,6).map(appCard).join("")+"</div>":empty("Your first connection starts here","Choose an app to bring its information and supported actions into your workspace.",'<a class="button primary" href="#apps">Explore apps</a>'))}function mods(id){const mod=modCatalog.find(m=>m.id===id);if(id&&!mod)return empty("Mod not found","This mod is not available in this workspace.",'<a class="button secondary" href="#mods">View mods</a>');if(mod)return'<a class="back-link" href="#mods">'+svg("back")+'All mods</a><header class="app-detail-head">'+icon(mod,true)+'<div><h1 tabindex="-1">Galaxy</h1><p>'+esc(mod.description)+'</p><div class="detail-meta"><span class="status-label" data-tone="success">Included</span></div></div></header><div class="connection-card"><div class="connection-stage" data-tone="success"><div class="stage-icon">'+svg("orbit")+'</div><h2>A different view of your context.</h2><p>Galaxy brings your saved records into a visual map. It uses the information already in your workspace.</p><a class="button primary" href="#galaxy">Open Galaxy '+svg("arrow")+"</a></div></div>";return heading("Mods","A few more possibilities for your workspace.")+'<div class="app-grid">'+modCatalog.map(mod2=>'<article class="app-card"><a class="app-card-top" href="#mods/'+mod2.id+'">'+icon(mod2)+'<div class="app-card-name"><h3>'+mod2.name+'</h3><span>Made by Zortex</span></div></a><p class="app-description">'+mod2.description+'</p><div class="app-card-bottom"><span class="status-label" data-tone="success">Included</span><a class="button compact" href="#mods/'+mod2.id+'">Open mod</a></div></article>').join("")+'</div><div class="help-note">'+svg("info")+"<span>Galaxy is included in this version. More mods will appear here when they are available.</span></div>"}function galaxy(){if(demo)return heading("Galaxy","Your context, seen from a different angle.")+'<section class="overview-hero"><div><span class="eyebrow">YOUR CONNECTED CONTEXT</span><h2>There\u2019s a whole world<br>in what you know.</h2><p>The live Galaxy maps records from your connected apps. This demo keeps your real data untouched.</p><a class="button primary" href="#apps">Explore sample apps '+svg("arrow")+'</a></div><div class="orbit-art">'+svg("orbit")+"</div></section>"+empty("Your real Galaxy starts with your apps","Connect an app on your computer to begin building your own record map.",'<a class="button secondary" href="https://zortex.me/install" target="_blank" rel="noopener noreferrer">Get Zortex</a>');return heading("Galaxy","A map of the context saved in your workspace.")+'<iframe class="galaxy-frame" id="galaxy-frame" title="Your Galaxy record map" src="star-graph.html"></iframe>'}function settings(){return heading("Settings","Make this workspace yours.")+'<div class="settings-group"><div class="settings-row"><div><h3>Appearance</h3><p>A familiar workspace in every light.</p></div><select id="theme" aria-label="Appearance">'+[["system","System"],["light","Light"],["dark","Dark"]].map(([id,label])=>'<option value="'+id+'" '+(state.theme===id?"selected":"")+">"+label+"</option>").join("")+'</select></div><div class="settings-row"><div><h3>Account</h3><p>'+esc(demo?"You\u2019re exploring a sample account.":state.account.email||"Sign in to your Zortex account.")+'</p></div><button class="button secondary" data-open-account type="button">'+(demo?"Leave demo":"Manage")+'</button></div><div class="settings-row"><div><h3>Workspace</h3><p>'+esc(demo?"Sample data. No accounts connected.":state.runtime.mode==="remote"?"Connected to your computer.":"Running on this computer.")+"</p></div><span>"+esc(state.snapshot?.productVersion||"Zortex")+'</span></div></div><section class="detail-section"><h2>Using Zortex with your AI</h2><p>Connect Zortex to a supported AI, then ask it to work with your connected apps.</p><a class="button text" href="https://zortex.me/docs/vision" target="_blank" rel="noopener noreferrer">Open the guide '+svg("arrow","outbound-arrow")+"</a></section>"}function updateChrome(){const demoMode=!!demo;$("demo-badge").hidden=!demoMode;$("account-label").textContent=demoMode?"Alex Morgan":state.account.email||state.runtime?.accountLabel||"Your workspace";$("avatar").textContent=demoMode?"AM":"Z";$("account-context").textContent=demoMode?"Demo account":state.runtime?.mode==="remote"?"Connected computer":"This computer";$("apps-count").textContent=state.apps.filter(a=>a.view.connected).length||"";$("connection-indicator").querySelector("span").textContent=demoMode?"Sample workspace":state.notice?"Status unavailable":state.runtime?.mode==="remote"?"Connected computer":"On this computer";$("connection-indicator").toggleAttribute("data-unavailable",!!state.notice);$("load-notice").hidden=!state.notice;$("load-notice").innerHTML=esc(state.notice)+(state.notice?'<button data-refresh type="button">Try again</button>':"");$("mode-banner").hidden=!demoMode;if(demoMode)$("mode-banner").innerHTML='<span>You\u2019re exploring a demo. Sample data, with nothing to install.</span><a href="'+esc(state.runtime.exitDemoUrl||"/account")+'">Leave demo</a>'}function render(focus=false){if(!state.runtime)return;const next=route(),changed=state.route!==next;if(!changed&&!focus&&document.activeElement?.closest(".setup-form,.account-dialog")){updateChrome();return}state.route=next;const[page,id]=next.split("/"),app=state.apps.find(a=>a.id===id);const previous=document.activeElement,selection=previous?.id==="app-search"?previous.selectionStart:null;const openedDetails=[...$("workspace").querySelectorAll("details[open]")].map(element=>element.className);const previousScroll=scrollY;$("breadcrumb").textContent=id&&app?appIdentity(id,app).name:{apps:"Apps",mods:"Mods",galaxy:"Galaxy",overview:"Overview",settings:"Settings"}[page];document.title=$("breadcrumb").textContent+" \xB7 Zortex";document.querySelectorAll("[data-nav]").forEach(link=>{if(link.dataset.nav===page)link.setAttribute("aria-current","page");else link.removeAttribute("aria-current")});if(page==="galaxy"&&!changed&&$("galaxy-frame")){updateChrome();return}$("workspace").innerHTML=page==="apps"?id?app?detail(app):empty("App not found","This app is not in the current catalog.",'<a class="button secondary" href="#apps">Browse apps</a>'):catalog():page==="overview"?overview():page==="mods"?mods(id):page==="galaxy"?galaxy():settings();$("workspace").setAttribute("aria-busy","false");updateChrome();if(changed){scrollTo(0,0);nav(false);$("workspace").querySelector("h1")?.focus({preventScroll:true})}else{for(const name of openedDetails)$("workspace").querySelector("details."+CSS.escape(name))?.setAttribute("open","");scrollTo(0,previousScroll);const focusTarget=previous?.id?$(previous.id):previous?.dataset.action?$("workspace").querySelector('[data-action="'+CSS.escape(previous.dataset.action)+'"][data-source="'+CSS.escape(previous.dataset.source||"")+'"]'):null;focusTarget?.focus({preventScroll:true});if(selection!==null&&$("app-search")?.type==="text")$("app-search").setSelectionRange(selection,selection)}}function applyData(value){if(value.snapshot)state.snapshot=value.snapshot;if(value.abilities)state.abilities=value.abilities;if(value.report)state.report=value.report;state.apps=mergeApps(state.snapshot,state.report,state.abilities.apps||[]);const priority=["gmail","google-drive","slack","notion","whatsapp-web","google-calendar","github","linear","figma"];state.apps.sort((a,b)=>(priority.indexOf(a.id)<0?100:priority.indexOf(a.id))-(priority.indexOf(b.id)<0?100:priority.indexOf(b.id))||appIdentity(a.id,a).name.localeCompare(appIdentity(b.id,b).name))}async function json(path){const res=await fetch(path,{cache:"no-store",signal:AbortSignal.any([lifetime.signal,AbortSignal.timeout(15e3)])});if(!res.ok)throw Error("This workspace is unavailable. Please refresh to try again.");return res.json()}async function refresh(draw=true){if(refreshing)return refreshing;refreshing=(async()=>{try{if(demo){applyData(await demo.read());state.notice=""}else{const jobs=[json("snapshot.json"),json("abilities.json"),state.runtime.canConnect?request({action:"status"},{signal:lifetime.signal}):Promise.resolve(null)];const results=await Promise.allSettled(jobs);const value={};if(results[0].status==="fulfilled")value.snapshot=results[0].value;if(results[1].status==="fulfilled")value.abilities=results[1].value;if(results[2].status==="fulfilled")value.report=results[2].value;applyData(value);state.notice=results.some(r=>r.status==="rejected")?"We couldn\u2019t refresh part of your workspace. Last displayed information may be out of date.":""}}catch(error){if(!disposed)state.notice="We couldn\u2019t refresh your workspace. Your existing connections are safe."}finally{refreshing=null;if(!disposed&&draw)render()}})();return refreshing}async function perform(source,action,extra={}){if(state.busy.has(source)||disposed)return;if(!demo&&!state.runtime.canConnect){go("apps/"+source);return}state.busy.add(source);state.errors.delete(source);render(true);try{const result=await runConnectionAction(request,{action,source,...extra},{signal:lifetime.signal});if(result?.pairing)state.pairings.set(source,result.pairing);if(Array.isArray(result?.sources)){state.report=result;applyData({report:result})}if(action.startsWith("configure-")&&!result?.pairing){state.setup.delete(source);toast("Setup submitted. Follow the connection progress here.")}if(action==="discover-native-vault"){const candidates=result.candidates||result.vaults||result.suggestions||[];const first=candidates.find(item=>typeof item==="string"||typeof item?.path==="string");if(first){state.forms.set(source,{roots:typeof first==="string"?first:first.path});toast("Found a notes folder. Review it before saving.")}else toast("No folder was found. Enter your folder path to continue.")}await refresh(false);if(action==="demo-complete")toast("Demo connection complete.");return result}catch(error){state.errors.set(source,error.message||"This step could not finish. Please try again.")}finally{state.busy.delete(source);render(true)}}async function primary(source){const app=state.apps.find(a=>a.id===source);if(!app)return;go("apps/"+source);const action=app.view.action;if(action==="setup"){state.setup.add(source);render();return}if(["open","continue"].includes(action)||!state.runtime.canConnect&&!demo)return;if(action==="refresh"){await refresh();return}await perform(source,action)}document.addEventListener("click",event=>{const target=event.target.closest("button,a");if(!target||target.disabled)return;if(target.dataset.nav)nav(false);if(target.hasAttribute("data-open-account")){showAccount();return}if(target.hasAttribute("data-close-account")){$("account-dialog").close();return}if(target.hasAttribute("data-refresh")){void refresh();return}const filter=target.dataset.filter;if(filter){state.filter=filter;render(true);return}if(target.hasAttribute("data-attention-link"))state.filter="attention";const{action,source=""}=target.dataset;if(!action)return;if(action==="primary"){void primary(source);return}if(action==="clear"){state.filter="all";state.query="";render(true);return}if(action==="refresh"){void refresh();return}if(action==="show-setup"||action==="setup"){state.setup.add(source);render(true);return}if(action==="hide-setup"){state.setup.delete(source);state.forms.delete(source);go("apps");return}if(action==="pair-start"){void perform(source,"configure-joplin",{selection:{phase:"start"}});return}if(action==="pair-cancel"){const p=state.pairings.get(source);if(p)void perform(source,"configure-joplin",{selection:{phase:"cancel",pairingId:p.pairingId}}).then(result=>{if(result){state.pairings.delete(source);state.forms.delete(source);render(true)}});return}void perform(source,action)});function rememberSetup(target){const form=target.closest("form");if(form&&["setup-form","pair-inspect","pair-confirm"].includes(form.id))state.forms.set(form.dataset.source,Object.fromEntries(new FormData(form)))}document.addEventListener("input",event=>{rememberSetup(event.target);if(event.target.id==="app-search"){state.query=event.target.value;const panel=$("catalog-content");if(panel)panel.innerHTML=catalogContent()}});document.addEventListener("change",event=>{rememberSetup(event.target);if(event.target.id==="theme")theme(event.target.value);if(event.target.id==="demo-scenario"&&demo){demo.preview(event.target.dataset.source,event.target.value);state.errors.delete(event.target.dataset.source);state.setup.delete(event.target.dataset.source);void refresh()}});document.addEventListener("submit",event=>{const form=event.target,source=form.dataset.source;if(form.id==="setup-form"){event.preventDefault();const app=state.apps.find(a=>a.id===source),definition=setupFor(source,app?.report);if(!definition)return;const values=Object.fromEntries(new FormData(form));state.forms.set(source,values);try{const body=setupRequest(definition,values);void perform(source,body.action,body)}catch(error){state.errors.set(source,error.message);render(true)}}if(form.id==="pair-inspect"||form.id==="pair-confirm"){event.preventDefault();const pair=state.pairings.get(source);if(!pair)return;const values=Object.fromEntries(new FormData(form));const selection=form.id==="pair-inspect"?{phase:"inspect",pairingId:pair.pairingId,pluginPublicKey:String(values.pluginPublicKey).toLowerCase()}:{phase:"confirm",pairingId:pair.pairingId,port:Number(values.port),fingerprint:pair.fingerprint};void perform(source,"configure-joplin",{selection})}});$("refresh").onclick=()=>void refresh();addEventListener("hashchange",()=>render(true));addEventListener("keydown",event=>{if(event.key==="Escape"&&$("sidebar").hasAttribute("data-open")){nav(false);$("mobile-menu").focus()}if(event.key==="/"&&!event.target.closest("input,textarea,select")){const search=$("app-search");if(search){event.preventDefault();search.focus()}}if(event.key==="Tab"&&media.matches&&$("sidebar").hasAttribute("data-open")){const items=[...$("sidebar").querySelectorAll("a,button,select")];if(event.shiftKey&&document.activeElement===items[0]){event.preventDefault();items.at(-1).focus()}else if(!event.shiftKey&&document.activeElement===items.at(-1)){event.preventDefault();items[0].focus()}}});async function accountApi(path,body){const response=await fetch("account/"+path,{method:body===void 0?"GET":"POST",headers:body===void 0?{}:{"Content-Type":"application/json","X-Zortex-Galaxy":document.querySelector('meta[name="zortex-galaxy-token"]')?.content||""},...body===void 0?{}:{body:JSON.stringify(body)},cache:"no-store",signal:lifetime.signal});const data=await response.json();if(!response.ok)throw Error("Sign-in could not finish. Please try again.");return data}function accountRender(){const signed=state.account.state==="signed_in";$("account-title").textContent=signed?"Your Zortex account":"Sign in to Zortex";$("account-description").textContent=signed?state.account.email:"Use the same account across your devices.";$("account-fields").hidden=signed;$("verify-code").hidden=signed;$("sign-out").hidden=!signed;$("verify-code").disabled=state.accountRequested!==$("account-email").value.trim()||!state.accountRequested;updateChrome()}function showAccount(){if(demo){location.href=state.runtime.exitDemoUrl||"/account";return}if(state.runtime.mode==="remote"){location.href=state.runtime.loginUrl||"https://zortex.me/account";return}accountRender();$("account-dialog").showModal()}$("account-button").onclick=showAccount;$("account-email").addEventListener("input",accountRender);$("send-code").onclick=async()=>{if(!$("account-email").reportValidity()||!$("account-email").value)return;$("send-code").disabled=true;try{const email=$("account-email").value.trim();await accountApi("request",{email});state.accountRequested=email;$("account-message").textContent="Code sent. Check your email and enter the eight digits.";accountRender();$("account-code").focus();setTimeout(()=>$("send-code").disabled=false,6e4)}catch(error){$("account-message").textContent=error.message;$("send-code").disabled=false}};$("account-form").onsubmit=async event=>{event.preventDefault();if(state.accountRequested!==$("account-email").value.trim()||!/^\d{8}$/.test($("account-code").value)){$("account-message").textContent="Request a code, then enter its eight digits.";return}$("verify-code").disabled=true;try{state.account=await accountApi("verify",{code:$("account-code").value});$("account-code").value="";$("account-message").textContent="You\u2019re signed in.";state.accountRequested="";accountRender()}catch(error){$("account-message").textContent=error.message;$("verify-code").disabled=false}};$("sign-out").onclick=async()=>{try{await accountApi("logout",{});state.account=await accountApi("status");$("account-message").textContent="You\u2019re signed out.";state.accountRequested="";accountRender()}catch(error){$("account-message").textContent=error.message}};async function boot(){try{state.runtime=await json("runtime.json");if(!["local","remote","demo"].includes(state.runtime.mode))throw Error("This app host is not available.");if(state.runtime.mode==="demo"){const module=await import("./demo.js");demo=module.createDemoWorkspace();demoScenarios=module.demoScenarios;request=demo.request}else request=createConnectionClient({token:document.querySelector('meta[name="zortex-galaxy-token"]')?.content});await refresh(false);render(true);if(state.runtime.mode==="local")void accountApi("status").then(value=>{state.account=value;updateChrome()}).catch(()=>{});const schedule=()=>{if(disposed)return;pollTimer=setTimeout(async()=>{if(!document.hidden&&!demo)await refresh();schedule()},state.apps.some(a=>["working","waiting","qr"].includes(a.view.kind))?2500:7e3)};schedule()}catch(error){$("workspace").innerHTML=empty("Your workspace couldn\u2019t open","Refresh to try again, or explore the demo while this workspace is unavailable.",'<button class="button primary" type="button" id="reload-app">Refresh workspace</button> <a class="button secondary" href="https://zortex.me/app/demo/">Try demo</a>');$("workspace").setAttribute("aria-busy","false");$("reload-app").onclick=()=>location.reload()}}addEventListener("pagehide",()=>{disposed=true;lifetime.abort();clearTimeout(pollTimer);clearTimeout(toastTimer)});void boot();