bit-office 1.1.1 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/index.js +1869 -692
  2. package/dist/index.js.map +1 -1
  3. package/dist/web/404.html +2 -2
  4. package/dist/web/_next/static/8cfKslBAKuXQUC3ILpBvL/_buildManifest.js +1 -0
  5. package/dist/web/_next/static/chunks/149.4dcc265d90664a46.js +1 -0
  6. package/dist/web/_next/static/chunks/29.a4a95a903c8b8e7b.js +1 -0
  7. package/dist/web/_next/static/chunks/290.345f536a557e23ec.js +1 -0
  8. package/dist/web/_next/static/chunks/336.9c9378c53a6fb44e.js +1 -0
  9. package/dist/web/_next/static/chunks/368.61fa3954c03d8818.js +1 -0
  10. package/dist/web/_next/static/chunks/632.d16ffbb5e23a43f2.js +1 -0
  11. package/dist/web/_next/static/chunks/712.fe038ea6687b84cf.js +1 -0
  12. package/dist/web/_next/static/chunks/757.a611f4691f6b1582.js +1 -0
  13. package/dist/web/_next/static/chunks/989-6be071435f8fdadf.js +1 -0
  14. package/dist/web/_next/static/chunks/app/join/page-7e3ac640395d940a.js +1 -0
  15. package/dist/web/_next/static/chunks/app/office/page-c4d6d4b7bf6b906f.js +1 -0
  16. package/dist/web/_next/static/chunks/app/page-9734dfda2b306034.js +1 -0
  17. package/dist/web/_next/static/chunks/app/pair/page-c47333f71aa3f4ef.js +1 -0
  18. package/dist/web/_next/static/chunks/webpack-c82364bd627eb710.js +1 -0
  19. package/dist/web/index.html +2 -2
  20. package/dist/web/index.txt +2 -2
  21. package/dist/web/join.html +55 -0
  22. package/dist/web/join.txt +69 -0
  23. package/dist/web/office.html +3 -3
  24. package/dist/web/office.txt +2 -2
  25. package/dist/web/offices/Nostalgic.jpeg +0 -0
  26. package/dist/web/offices/Nostalgic.zip +0 -0
  27. package/dist/web/offices/cute-whimsical.jpeg +0 -0
  28. package/dist/web/offices/cute-whimsical.zip +0 -0
  29. package/dist/web/offices/cyberpunk.jpeg +0 -0
  30. package/dist/web/offices/cyberpunk.zip +0 -0
  31. package/dist/web/offices/darkLegend.jpeg +0 -0
  32. package/dist/web/offices/darkLegend.zip +0 -0
  33. package/dist/web/offices/easternFantasy.jpeg +0 -0
  34. package/dist/web/offices/easternFantasy.zip +0 -0
  35. package/dist/web/offices/gothic.jpeg +0 -0
  36. package/dist/web/offices/gothic.zip +0 -0
  37. package/dist/web/offices/historical.jpeg +0 -0
  38. package/dist/web/offices/historical.zip +0 -0
  39. package/dist/web/offices/index.json +63 -0
  40. package/dist/web/offices/modernCozy.jpeg +0 -0
  41. package/dist/web/offices/modernCozy.zip +0 -0
  42. package/dist/web/offices/mythological.jpeg +0 -0
  43. package/dist/web/offices/mythological.zip +0 -0
  44. package/dist/web/offices/postApocalyptic.jpeg +0 -0
  45. package/dist/web/offices/postApocalyptic.zip +0 -0
  46. package/dist/web/offices/sifi.jpeg +0 -0
  47. package/dist/web/offices/sifi.zip +0 -0
  48. package/dist/web/offices/westernFantasy.jpeg +0 -0
  49. package/dist/web/offices/westernFantasy.zip +0 -0
  50. package/dist/web/pair.html +2 -2
  51. package/dist/web/pair.txt +2 -2
  52. package/dist/web/sw.js +1 -1
  53. package/package.json +1 -1
  54. package/dist/web/_next/static/chunks/29.2a4210219e06b537.js +0 -1
  55. package/dist/web/_next/static/chunks/290.d0fe5fb72a5068b2.js +0 -1
  56. package/dist/web/_next/static/chunks/368.cc1f599d57c41c84.js +0 -1
  57. package/dist/web/_next/static/chunks/757.6d61de28074ba8d4.js +0 -1
  58. package/dist/web/_next/static/chunks/989-4c2c2b3a6c2f8a4a.js +0 -1
  59. package/dist/web/_next/static/chunks/app/office/page-3c20b887f5c4dc88.js +0 -1
  60. package/dist/web/_next/static/chunks/app/page-9721074d4b94e149.js +0 -1
  61. package/dist/web/_next/static/chunks/app/pair/page-ffb2dcb5753f3161.js +0 -1
  62. package/dist/web/_next/static/chunks/webpack-24a71fb73bc694fc.js +0 -1
  63. package/dist/web/_next/static/pUJijMbzNc5YblbUZx7p7/_buildManifest.js +0 -1
  64. /package/dist/web/_next/static/{pUJijMbzNc5YblbUZx7p7 → 8cfKslBAKuXQUC3ILpBvL}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><!--pUJijMbzNc5YblbUZx7p7--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-24a71fb73bc694fc.js"/><script src="/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js" async=""></script><script src="/_next/static/chunks/388-5a04e93e2531cfb7.js" async=""></script><script src="/_next/static/chunks/main-app-baad86574bd560af.js" async=""></script><script src="/_next/static/chunks/app/pair/page-ffb2dcb5753f3161.js" async=""></script><meta name="theme-color" content="#1a1530"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><title>Bit Office</title><meta name="description" content="Control your AI agents from anywhere"/><link rel="manifest" href="/manifest.json"/><link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&amp;display=swap" rel="stylesheet"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;background-color:#1a1530;color:#eddcb8;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><style>
1
+ <!DOCTYPE html><!--8cfKslBAKuXQUC3ILpBvL--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-c82364bd627eb710.js"/><script src="/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js" async=""></script><script src="/_next/static/chunks/388-5a04e93e2531cfb7.js" async=""></script><script src="/_next/static/chunks/main-app-baad86574bd560af.js" async=""></script><script src="/_next/static/chunks/app/pair/page-c47333f71aa3f4ef.js" async=""></script><meta name="theme-color" content="#1a1530"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><title>Bit Office</title><meta name="description" content="Control your AI agents from anywhere"/><link rel="manifest" href="/manifest.json"/><link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&amp;display=swap" rel="stylesheet"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;background-color:#1a1530;color:#eddcb8;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><style>
2
2
  :root {
3
3
  --px-bg-deep: #16122a;
4
4
  --px-bg-panel: #1e1a30;
@@ -52,4 +52,4 @@
52
52
  for (var r of regs) r.unregister();
53
53
  });
54
54
  }
55
- </script><script src="/_next/static/chunks/webpack-24a71fb73bc694fc.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[9653,[],\"\"]\n4:I[1329,[],\"\"]\n8:I[5719,[],\"\"]\n2:T5c9,"])</script><script>self.__next_f.push([1,"\n :root {\n --px-bg-deep: #16122a;\n --px-bg-panel: #1e1a30;\n --px-bg-card: #231e38;\n --px-bg-chat: #1a1530;\n --px-border: #3d2e54;\n --px-border-warm: #5a3d14;\n --px-gold: #e8b040;\n --px-gold-dim: #a87820;\n --px-text: #eddcb8;\n --px-text-muted: #9a8a68;\n --px-text-dim: #6a5a48;\n --px-amber: #e0900a;\n --px-amber-bg: rgba(232, 176, 64, 0.14);\n }\n * {\n scrollbar-width: thin;\n scrollbar-color: #5a3d14 #1a1530;\n }\n *::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n }\n *::-webkit-scrollbar-track {\n background: transparent;\n }\n *::-webkit-scrollbar-thumb {\n background: #3d2d10;\n border-radius: 0;\n }\n *::-webkit-scrollbar-thumb:hover {\n background: #e8b040;\n }\n *::-webkit-scrollbar-corner {\n background: transparent;\n }\n .px-font {\n font-family: 'Press Start 2P', monospace;\n }\n @keyframes px-blink {\n 0%, 49% { opacity: 1; }\n 50%, 100% { opacity: 0; }\n }\n @keyframes px-pulse-gold {\n 0%, 100% { box-shadow: 0 0 0 0 rgba(200,155,48,0); }\n 50% { box-shadow: 0 0 8px 2px rgba(200,155,48,0.25); }\n }\n "])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"pUJijMbzNc5YblbUZx7p7\",\"p\":\"\",\"c\":[\"\",\"pair\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"pair\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#1a1530\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}],[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.googleapis.com\"}],[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.gstatic.com\",\"crossOrigin\":\"anonymous\"}],[\"$\",\"link\",null,{\"href\":\"https://fonts.googleapis.com/css2?family=Press+Start+2P\u0026display=swap\",\"rel\":\"stylesheet\"}]]}],[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"backgroundColor\":\"#1a1530\",\"color\":\"#eddcb8\",\"fontFamily\":\"system-ui, sans-serif\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n if ('serviceWorker' in navigator \u0026\u0026 location.hostname === 'localhost') {\\n navigator.serviceWorker.getRegistrations().then(function(regs) {\\n for (var r of regs) r.unregister();\\n });\\n }\\n \"}}]]}]]}]]}],{\"children\":[\"pair\",\"$L5\",{\"children\":[\"__PAGE__\",\"$L6\",{},null,false]},null,false]},null,false],\"$L7\",false]],\"m\":\"$undefined\",\"G\":[\"$8\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:I[7868,[],\"ClientPageRoot\"]\na:I[9600,[\"863\",\"static/chunks/app/pair/page-ffb2dcb5753f3161.js\"],\"default\"]\nd:I[9096,[],\"OutletBoundary\"]\nf:I[913,[],\"AsyncMetadataOutlet\"]\n11:I[9096,[],\"ViewportBoundary\"]\n13:I[9096,[],\"MetadataBoundary\"]\n14:\"$Sreact.suspense\"\n5:[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]\n6:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L9\",null,{\"Component\":\"$a\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@b\",\"$@c\"]}],null,[\"$\",\"$Ld\",null,{\"children\":[\"$Le\",[\"$\",\"$Lf\",null,{\"promise\":\"$@10\"}]]}]]}]\n7:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],null],[\"$\",\"$L13\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$14\",null,{\"fallback\":null,\"children\":\"$L15\"}]}]}]]}]\n"])</script><script>self.__next_f.push([1,"b:{}\nc:\"$6:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\ne:null\n"])</script><script>self.__next_f.push([1,"10:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Bit Office\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Control your AI agents from anywhere\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"15:\"$10:metadata\"\n"])</script></body></html>
55
+ </script><script src="/_next/static/chunks/webpack-c82364bd627eb710.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[9653,[],\"\"]\n4:I[1329,[],\"\"]\n8:I[5719,[],\"\"]\n2:T5c9,"])</script><script>self.__next_f.push([1,"\n :root {\n --px-bg-deep: #16122a;\n --px-bg-panel: #1e1a30;\n --px-bg-card: #231e38;\n --px-bg-chat: #1a1530;\n --px-border: #3d2e54;\n --px-border-warm: #5a3d14;\n --px-gold: #e8b040;\n --px-gold-dim: #a87820;\n --px-text: #eddcb8;\n --px-text-muted: #9a8a68;\n --px-text-dim: #6a5a48;\n --px-amber: #e0900a;\n --px-amber-bg: rgba(232, 176, 64, 0.14);\n }\n * {\n scrollbar-width: thin;\n scrollbar-color: #5a3d14 #1a1530;\n }\n *::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n }\n *::-webkit-scrollbar-track {\n background: transparent;\n }\n *::-webkit-scrollbar-thumb {\n background: #3d2d10;\n border-radius: 0;\n }\n *::-webkit-scrollbar-thumb:hover {\n background: #e8b040;\n }\n *::-webkit-scrollbar-corner {\n background: transparent;\n }\n .px-font {\n font-family: 'Press Start 2P', monospace;\n }\n @keyframes px-blink {\n 0%, 49% { opacity: 1; }\n 50%, 100% { opacity: 0; }\n }\n @keyframes px-pulse-gold {\n 0%, 100% { box-shadow: 0 0 0 0 rgba(200,155,48,0); }\n 50% { box-shadow: 0 0 8px 2px rgba(200,155,48,0.25); }\n }\n "])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"8cfKslBAKuXQUC3ILpBvL\",\"p\":\"\",\"c\":[\"\",\"pair\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"pair\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#1a1530\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}],[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.googleapis.com\"}],[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.gstatic.com\",\"crossOrigin\":\"anonymous\"}],[\"$\",\"link\",null,{\"href\":\"https://fonts.googleapis.com/css2?family=Press+Start+2P\u0026display=swap\",\"rel\":\"stylesheet\"}]]}],[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"backgroundColor\":\"#1a1530\",\"color\":\"#eddcb8\",\"fontFamily\":\"system-ui, sans-serif\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n if ('serviceWorker' in navigator \u0026\u0026 location.hostname === 'localhost') {\\n navigator.serviceWorker.getRegistrations().then(function(regs) {\\n for (var r of regs) r.unregister();\\n });\\n }\\n \"}}]]}]]}]]}],{\"children\":[\"pair\",\"$L5\",{\"children\":[\"__PAGE__\",\"$L6\",{},null,false]},null,false]},null,false],\"$L7\",false]],\"m\":\"$undefined\",\"G\":[\"$8\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:I[7868,[],\"ClientPageRoot\"]\na:I[9600,[\"863\",\"static/chunks/app/pair/page-c47333f71aa3f4ef.js\"],\"default\"]\nd:I[9096,[],\"OutletBoundary\"]\nf:I[913,[],\"AsyncMetadataOutlet\"]\n11:I[9096,[],\"ViewportBoundary\"]\n13:I[9096,[],\"MetadataBoundary\"]\n14:\"$Sreact.suspense\"\n5:[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]\n6:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L9\",null,{\"Component\":\"$a\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@b\",\"$@c\"]}],null,[\"$\",\"$Ld\",null,{\"children\":[\"$Le\",[\"$\",\"$Lf\",null,{\"promise\":\"$@10\"}]]}]]}]\n7:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],null],[\"$\",\"$L13\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$14\",null,{\"fallback\":null,\"children\":\"$L15\"}]}]}]]}]\n"])</script><script>self.__next_f.push([1,"b:{}\nc:\"$6:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\ne:null\n"])</script><script>self.__next_f.push([1,"10:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Bit Office\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Control your AI agents from anywhere\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"15:\"$10:metadata\"\n"])</script></body></html>
package/dist/web/pair.txt CHANGED
@@ -50,9 +50,9 @@
50
50
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,155,48,0); }
51
51
  50% { box-shadow: 0 0 8px 2px rgba(200,155,48,0.25); }
52
52
  }
53
- 0:{"P":null,"b":"pUJijMbzNc5YblbUZx7p7","p":"","c":["","pair"],"i":false,"f":[[["",{"children":["pair",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[null,["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","meta",null,{"name":"theme-color","content":"#1a1530"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"style":{"margin":0,"backgroundColor":"#1a1530","color":"#eddcb8","fontFamily":"system-ui, sans-serif"},"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n if ('serviceWorker' in navigator && location.hostname === 'localhost') {\n navigator.serviceWorker.getRegistrations().then(function(regs) {\n for (var r of regs) r.unregister();\n });\n }\n "}}]]}]]}]]}],{"children":["pair","$L5",{"children":["__PAGE__","$L6",{},null,false]},null,false]},null,false],"$L7",false]],"m":"$undefined","G":["$8",[]],"s":false,"S":true}
53
+ 0:{"P":null,"b":"8cfKslBAKuXQUC3ILpBvL","p":"","c":["","pair"],"i":false,"f":[[["",{"children":["pair",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[null,["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","meta",null,{"name":"theme-color","content":"#1a1530"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"style":{"margin":0,"backgroundColor":"#1a1530","color":"#eddcb8","fontFamily":"system-ui, sans-serif"},"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n if ('serviceWorker' in navigator && location.hostname === 'localhost') {\n navigator.serviceWorker.getRegistrations().then(function(regs) {\n for (var r of regs) r.unregister();\n });\n }\n "}}]]}]]}]]}],{"children":["pair","$L5",{"children":["__PAGE__","$L6",{},null,false]},null,false]},null,false],"$L7",false]],"m":"$undefined","G":["$8",[]],"s":false,"S":true}
54
54
  9:I[7868,[],"ClientPageRoot"]
55
- a:I[9600,["863","static/chunks/app/pair/page-ffb2dcb5753f3161.js"],"default"]
55
+ a:I[9600,["863","static/chunks/app/pair/page-c47333f71aa3f4ef.js"],"default"]
56
56
  d:I[9096,[],"OutletBoundary"]
57
57
  f:I[913,[],"AsyncMetadataOutlet"]
58
58
  11:I[9096,[],"ViewportBoundary"]
package/dist/web/sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let e,c={};const s=(s,i)=>(s=new URL(s+".js",i).href,c[s]||new Promise(c=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=c,document.head.appendChild(e)}else e=s,importScripts(s),c()}).then(()=>{let e=c[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e}));self.define=(i,a)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(c[n])return;let f={};const t=e=>s(e,n),r={module:{uri:n},exports:f,require:t};c[n]=Promise.all(i.map(e=>r[e]||t(e))).then(e=>(a(...e),f))}}define(["./workbox-5194662c"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/Office Tileset/LICENSE.txt",revision:"e0006f5d6c9512f1f0e903e2de02a79a"},{url:"/Office Tileset/Office Designs/Office Level 1.png",revision:"2df0791e8ced58b7203fbbb90b4fbab4"},{url:"/Office Tileset/Office Designs/Office Level 2.png",revision:"0bc5ecef2fa29bd944f4b633a226a151"},{url:"/Office Tileset/Office Designs/Office Level 3.5.png",revision:"1b574323b372741f9e79bbe7d2fe42bc"},{url:"/Office Tileset/Office Designs/Office Level 3.jpeg",revision:"c3870616be6376a136d8112a1207eec7"},{url:"/Office Tileset/Office Designs/Office Level 3.png",revision:"01b9822957a98b3ddc26c753ab9a8137"},{url:"/Office Tileset/Office Designs/Office Level 4.png",revision:"4da5af3d7a65c3ebb54c37f9a475475a"},{url:"/Office Tileset/Office Palette/Office Palette Large.png",revision:"1df5f24c110f0b6eae0bcd4419270eef"},{url:"/Office Tileset/Office Palette/Office Palette Medium.png",revision:"fca90dd2244f726cb970f8a3361f16e7"},{url:"/Office Tileset/Office Palette/Office Palette Small.png",revision:"300a41219e96e86bca5614a4983ddc95"},{url:"/Office Tileset/Office Tileset All 16x16 no shadow.png",revision:"8972409c007b5da2025bd4782757ab7c"},{url:"/Office Tileset/Office Tileset All 16x16.png",revision:"a55f20978ab44b0ed7c0c5b76eecf0d5"},{url:"/Office Tileset/Office Tileset All 32x32 no shadow.png",revision:"371fd2d0d9466087a1923695cf690c76"},{url:"/Office Tileset/Office Tileset All 32x32.png",revision:"7da73ddacacce9c95dc70a35096a50b7"},{url:"/Office Tileset/Office Tileset All 48x48 no shadow.png",revision:"435a6c6101c70d223af2206f19ea8e69"},{url:"/Office Tileset/Office Tileset All 48x48.png",revision:"668ce69f1267755d1ed9174afacc7bfc"},{url:"/Office Tileset/Office VX Ace/A2 Office Floors.png",revision:"4c74a49895db00fdb9d5ef4f9863f77a"},{url:"/Office Tileset/Office VX Ace/A4 Office Walls.png",revision:"1c9701d762f9f6b9406a7d2ad8369721"},{url:"/Office Tileset/Office VX Ace/A5 Office Floors & Walls.png",revision:"fd1e3583968a840ce5ddcd69b1b1fcf6"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 1 No Shadows.png",revision:"23fc1254a128d86b6e69315896cc81ea"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 1.png",revision:"6d7da953c1ed326f0518022576828b51"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 2 No Shadows.png",revision:"7dc50bb73391f518f136e545d7ee81ac"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 2.png",revision:"8a07e0e5e3d0685ebb252af81506b54f"},{url:"/Office Tileset/Office VX Ace/README.txt",revision:"c08786e76eb104580a7ed6839a0d6640"},{url:"/_next/static/chunks/29.2a4210219e06b537.js",revision:"2a4210219e06b537"},{url:"/_next/static/chunks/290.d0fe5fb72a5068b2.js",revision:"d0fe5fb72a5068b2"},{url:"/_next/static/chunks/325ca9c7-f84e7e4973790fdf.js",revision:"f84e7e4973790fdf"},{url:"/_next/static/chunks/368.cc1f599d57c41c84.js",revision:"cc1f599d57c41c84"},{url:"/_next/static/chunks/388-5a04e93e2531cfb7.js",revision:"5a04e93e2531cfb7"},{url:"/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js",revision:"e6a0fd3b5c397505"},{url:"/_next/static/chunks/757.6d61de28074ba8d4.js",revision:"6d61de28074ba8d4"},{url:"/_next/static/chunks/810.44213c6355518b0b.js",revision:"44213c6355518b0b"},{url:"/_next/static/chunks/880.614e72604eb723a3.js",revision:"614e72604eb723a3"},{url:"/_next/static/chunks/989-4c2c2b3a6c2f8a4a.js",revision:"4c2c2b3a6c2f8a4a"},{url:"/_next/static/chunks/app/_not-found/page-182ed2c105839b2a.js",revision:"182ed2c105839b2a"},{url:"/_next/static/chunks/app/layout-72c65340fbaef4c0.js",revision:"72c65340fbaef4c0"},{url:"/_next/static/chunks/app/office/page-3c20b887f5c4dc88.js",revision:"3c20b887f5c4dc88"},{url:"/_next/static/chunks/app/page-9721074d4b94e149.js",revision:"9721074d4b94e149"},{url:"/_next/static/chunks/app/pair/page-ffb2dcb5753f3161.js",revision:"ffb2dcb5753f3161"},{url:"/_next/static/chunks/framework-bec628f2b7cc8f6d.js",revision:"bec628f2b7cc8f6d"},{url:"/_next/static/chunks/main-314e1c8a2c4316bd.js",revision:"314e1c8a2c4316bd"},{url:"/_next/static/chunks/main-app-baad86574bd560af.js",revision:"baad86574bd560af"},{url:"/_next/static/chunks/pages/_app-f4d560c9dbc22e4e.js",revision:"f4d560c9dbc22e4e"},{url:"/_next/static/chunks/pages/_error-492bd157be5771d5.js",revision:"492bd157be5771d5"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-24a71fb73bc694fc.js",revision:"24a71fb73bc694fc"},{url:"/_next/static/pUJijMbzNc5YblbUZx7p7/_buildManifest.js",revision:"8b0c6ff6b986344758a2acce12a96d75"},{url:"/_next/static/pUJijMbzNc5YblbUZx7p7/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/assets/characters/char_0.png",revision:"d4dd5678a4144876fac52c57cc2f6c9f"},{url:"/assets/characters/char_1.png",revision:"fc1cca5f7207bb2cd9020b90c2489799"},{url:"/assets/characters/char_2.png",revision:"18d34469ae20cfc42490c7f10d877290"},{url:"/assets/characters/char_3.png",revision:"faaa486a85c835a2497446ae217c0d6e"},{url:"/assets/characters/char_4.png",revision:"ff2eaeec286548199300a70be71c1b9c"},{url:"/assets/characters/char_5.png",revision:"1e7dcef45414d2d20ee13d4323efc830"},{url:"/assets/walls.png",revision:"f7a10cb9381a8acb297b0cfc35e8d80a"},{url:"/icons/icon-192.png",revision:"9ebb6e37caff08f9170961db00132344"},{url:"/icons/icon-512.png",revision:"9ebb6e37caff08f9170961db00132344"},{url:"/manifest.json",revision:"c0d30aaafad74220867e333aaa87df0f"},{url:"/pixel-agents-layout.json",revision:"498f7927cc4a4a1b499b8e9486c50b30"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:function(e){var c=e.response;return _async_to_generator(function(){return _ts_generator(this,function(e){return[2,c&&"opaqueredirect"===c.type?new Response(c.body,{status:200,statusText:"OK",headers:c.headers}):c]})})()}}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.sameOrigin,s=e.url.pathname;return!(!c||s.startsWith("/api/auth/callback")||!s.startsWith("/api/"))},new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.request,s=e.url.pathname,i=e.sameOrigin;return"1"===c.headers.get("RSC")&&"1"===c.headers.get("Next-Router-Prefetch")&&i&&!s.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.request,s=e.url.pathname,i=e.sameOrigin;return"1"===c.headers.get("RSC")&&i&&!s.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.url.pathname;return e.sameOrigin&&!c.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){return!e.sameOrigin},new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")});
1
+ if(!self.define){let e,i={};const c=(c,s)=>(c=new URL(c+".js",s).href,i[c]||new Promise(i=>{if("document"in self){const e=document.createElement("script");e.src=c,e.onload=i,document.head.appendChild(e)}else e=c,importScripts(c),i()}).then(()=>{let e=i[c];if(!e)throw new Error(`Module ${c} didn’t register its module`);return e}));self.define=(s,a)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(i[f])return;let n={};const t=e=>c(e,f),r={module:{uri:f},exports:n,require:t};i[f]=Promise.all(s.map(e=>r[e]||t(e))).then(e=>(a(...e),n))}}define(["./workbox-5194662c"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/Office Tileset/LICENSE.txt",revision:"e0006f5d6c9512f1f0e903e2de02a79a"},{url:"/Office Tileset/Office Designs/Office Level 1.png",revision:"2df0791e8ced58b7203fbbb90b4fbab4"},{url:"/Office Tileset/Office Designs/Office Level 2.png",revision:"0bc5ecef2fa29bd944f4b633a226a151"},{url:"/Office Tileset/Office Designs/Office Level 3.5.png",revision:"1b574323b372741f9e79bbe7d2fe42bc"},{url:"/Office Tileset/Office Designs/Office Level 3.jpeg",revision:"c3870616be6376a136d8112a1207eec7"},{url:"/Office Tileset/Office Designs/Office Level 3.png",revision:"01b9822957a98b3ddc26c753ab9a8137"},{url:"/Office Tileset/Office Designs/Office Level 4.png",revision:"4da5af3d7a65c3ebb54c37f9a475475a"},{url:"/Office Tileset/Office Palette/Office Palette Large.png",revision:"1df5f24c110f0b6eae0bcd4419270eef"},{url:"/Office Tileset/Office Palette/Office Palette Medium.png",revision:"fca90dd2244f726cb970f8a3361f16e7"},{url:"/Office Tileset/Office Palette/Office Palette Small.png",revision:"300a41219e96e86bca5614a4983ddc95"},{url:"/Office Tileset/Office Tileset All 16x16 no shadow.png",revision:"8972409c007b5da2025bd4782757ab7c"},{url:"/Office Tileset/Office Tileset All 16x16.png",revision:"a55f20978ab44b0ed7c0c5b76eecf0d5"},{url:"/Office Tileset/Office Tileset All 32x32 no shadow.png",revision:"371fd2d0d9466087a1923695cf690c76"},{url:"/Office Tileset/Office Tileset All 32x32.png",revision:"7da73ddacacce9c95dc70a35096a50b7"},{url:"/Office Tileset/Office Tileset All 48x48 no shadow.png",revision:"435a6c6101c70d223af2206f19ea8e69"},{url:"/Office Tileset/Office Tileset All 48x48.png",revision:"668ce69f1267755d1ed9174afacc7bfc"},{url:"/Office Tileset/Office VX Ace/A2 Office Floors.png",revision:"4c74a49895db00fdb9d5ef4f9863f77a"},{url:"/Office Tileset/Office VX Ace/A4 Office Walls.png",revision:"1c9701d762f9f6b9406a7d2ad8369721"},{url:"/Office Tileset/Office VX Ace/A5 Office Floors & Walls.png",revision:"fd1e3583968a840ce5ddcd69b1b1fcf6"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 1 No Shadows.png",revision:"23fc1254a128d86b6e69315896cc81ea"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 1.png",revision:"6d7da953c1ed326f0518022576828b51"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 2 No Shadows.png",revision:"7dc50bb73391f518f136e545d7ee81ac"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 2.png",revision:"8a07e0e5e3d0685ebb252af81506b54f"},{url:"/Office Tileset/Office VX Ace/README.txt",revision:"c08786e76eb104580a7ed6839a0d6640"},{url:"/_next/static/8cfKslBAKuXQUC3ILpBvL/_buildManifest.js",revision:"a343cbeac8daa802ea382dfd6b601938"},{url:"/_next/static/8cfKslBAKuXQUC3ILpBvL/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/149.4dcc265d90664a46.js",revision:"4dcc265d90664a46"},{url:"/_next/static/chunks/29.a4a95a903c8b8e7b.js",revision:"a4a95a903c8b8e7b"},{url:"/_next/static/chunks/290.345f536a557e23ec.js",revision:"345f536a557e23ec"},{url:"/_next/static/chunks/325ca9c7-f84e7e4973790fdf.js",revision:"f84e7e4973790fdf"},{url:"/_next/static/chunks/336.9c9378c53a6fb44e.js",revision:"9c9378c53a6fb44e"},{url:"/_next/static/chunks/368.61fa3954c03d8818.js",revision:"61fa3954c03d8818"},{url:"/_next/static/chunks/388-5a04e93e2531cfb7.js",revision:"5a04e93e2531cfb7"},{url:"/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js",revision:"e6a0fd3b5c397505"},{url:"/_next/static/chunks/632.d16ffbb5e23a43f2.js",revision:"d16ffbb5e23a43f2"},{url:"/_next/static/chunks/712.fe038ea6687b84cf.js",revision:"fe038ea6687b84cf"},{url:"/_next/static/chunks/757.a611f4691f6b1582.js",revision:"a611f4691f6b1582"},{url:"/_next/static/chunks/810.44213c6355518b0b.js",revision:"44213c6355518b0b"},{url:"/_next/static/chunks/880.614e72604eb723a3.js",revision:"614e72604eb723a3"},{url:"/_next/static/chunks/989-6be071435f8fdadf.js",revision:"6be071435f8fdadf"},{url:"/_next/static/chunks/app/_not-found/page-182ed2c105839b2a.js",revision:"182ed2c105839b2a"},{url:"/_next/static/chunks/app/join/page-7e3ac640395d940a.js",revision:"7e3ac640395d940a"},{url:"/_next/static/chunks/app/layout-72c65340fbaef4c0.js",revision:"72c65340fbaef4c0"},{url:"/_next/static/chunks/app/office/page-c4d6d4b7bf6b906f.js",revision:"c4d6d4b7bf6b906f"},{url:"/_next/static/chunks/app/page-9734dfda2b306034.js",revision:"9734dfda2b306034"},{url:"/_next/static/chunks/app/pair/page-c47333f71aa3f4ef.js",revision:"c47333f71aa3f4ef"},{url:"/_next/static/chunks/framework-bec628f2b7cc8f6d.js",revision:"bec628f2b7cc8f6d"},{url:"/_next/static/chunks/main-314e1c8a2c4316bd.js",revision:"314e1c8a2c4316bd"},{url:"/_next/static/chunks/main-app-baad86574bd560af.js",revision:"baad86574bd560af"},{url:"/_next/static/chunks/pages/_app-f4d560c9dbc22e4e.js",revision:"f4d560c9dbc22e4e"},{url:"/_next/static/chunks/pages/_error-492bd157be5771d5.js",revision:"492bd157be5771d5"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-c82364bd627eb710.js",revision:"c82364bd627eb710"},{url:"/assets/characters/char_0.png",revision:"d4dd5678a4144876fac52c57cc2f6c9f"},{url:"/assets/characters/char_1.png",revision:"fc1cca5f7207bb2cd9020b90c2489799"},{url:"/assets/characters/char_2.png",revision:"18d34469ae20cfc42490c7f10d877290"},{url:"/assets/characters/char_3.png",revision:"faaa486a85c835a2497446ae217c0d6e"},{url:"/assets/characters/char_4.png",revision:"ff2eaeec286548199300a70be71c1b9c"},{url:"/assets/characters/char_5.png",revision:"1e7dcef45414d2d20ee13d4323efc830"},{url:"/assets/walls.png",revision:"f7a10cb9381a8acb297b0cfc35e8d80a"},{url:"/icons/icon-192.png",revision:"9ebb6e37caff08f9170961db00132344"},{url:"/icons/icon-512.png",revision:"9ebb6e37caff08f9170961db00132344"},{url:"/manifest.json",revision:"c0d30aaafad74220867e333aaa87df0f"},{url:"/offices/Nostalgic.jpeg",revision:"6d743c670906880d09096b65d128714f"},{url:"/offices/Nostalgic.zip",revision:"032be77eba7fd6b5b11eda09b74789f4"},{url:"/offices/cute-whimsical.jpeg",revision:"a5028ab6deab30dbc7cac3424242b2a6"},{url:"/offices/cute-whimsical.zip",revision:"7f18b28c9885464838ca4214df2e87e4"},{url:"/offices/cyberpunk.jpeg",revision:"e11de093e69b7eb89ba02d6f3d4ad96d"},{url:"/offices/cyberpunk.zip",revision:"f763b9618153c9d8514cab367f40e122"},{url:"/offices/darkLegend.jpeg",revision:"43d03aeca5f6572a5571b731ca53755c"},{url:"/offices/darkLegend.zip",revision:"57bd8b8d8585b04a8abd0b2c25cd99e6"},{url:"/offices/easternFantasy.jpeg",revision:"d8b79c20010019cb8815189ceba04461"},{url:"/offices/easternFantasy.zip",revision:"3abb11c02c0ca970080f823bb850acbc"},{url:"/offices/gothic.jpeg",revision:"960644faf9169fdd1fb928fd63af2d1f"},{url:"/offices/gothic.zip",revision:"b573e1b22f00cbb7f77017bc6526904c"},{url:"/offices/historical.jpeg",revision:"96920b9f9a9a17440bceb2d520f242e4"},{url:"/offices/historical.zip",revision:"de973c112b0fb82b9d3ed6c299536573"},{url:"/offices/index.json",revision:"85f32580b1cc82e8790036813ce010f1"},{url:"/offices/modernCozy.jpeg",revision:"f087e9c5553e5326f88bec012739de77"},{url:"/offices/modernCozy.zip",revision:"7f479d2d10d9bf1de80f9b9cfdf1d256"},{url:"/offices/mythological.jpeg",revision:"aaa939f1bf843369f6f27d0c59e87cf8"},{url:"/offices/mythological.zip",revision:"9db7c5cd4b29f6bc7460206e5d15301e"},{url:"/offices/postApocalyptic.jpeg",revision:"0faca9a7c43bcfb7258fdcaf6d797d80"},{url:"/offices/postApocalyptic.zip",revision:"b34b1d4a348bc4792657bf65a7db93dd"},{url:"/offices/sifi.jpeg",revision:"b27dc1b9702d5c2c645bf58ae84eab5d"},{url:"/offices/sifi.zip",revision:"a051f42cd576ab0807fe26840b4211e6"},{url:"/offices/westernFantasy.jpeg",revision:"cce6bb919ae26866d4e39177780abfd4"},{url:"/offices/westernFantasy.zip",revision:"91139b9e56f3c04c887bbd3e04082aaf"},{url:"/pixel-agents-layout.json",revision:"498f7927cc4a4a1b499b8e9486c50b30"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:function(e){var i=e.response;return _async_to_generator(function(){return _ts_generator(this,function(e){return[2,i&&"opaqueredirect"===i.type?new Response(i.body,{status:200,statusText:"OK",headers:i.headers}):i]})})()}}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var i=e.sameOrigin,c=e.url.pathname;return!(!i||c.startsWith("/api/auth/callback")||!c.startsWith("/api/"))},new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var i=e.request,c=e.url.pathname,s=e.sameOrigin;return"1"===i.headers.get("RSC")&&"1"===i.headers.get("Next-Router-Prefetch")&&s&&!c.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var i=e.request,c=e.url.pathname,s=e.sameOrigin;return"1"===i.headers.get("RSC")&&s&&!c.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var i=e.url.pathname;return e.sameOrigin&&!i.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){return!e.sameOrigin},new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bit-office",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "description": "Control AI agents from your phone — pixel office UI + real-time gateway",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29],{6029:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});var o=t(206),r=t(1406),a=t(9631);let l={display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"6px 10px",fontSize:"13px",color:"rgba(255, 255, 255, 0.8)",background:"transparent",border:"none",borderRadius:0,cursor:"pointer",textAlign:"left"};function s(e){let{isOpen:n,onClose:t,layout:s,onImportLayout:i,soundEnabled:d,onSoundEnabledChange:u}=e,[c,p]=(0,r.useState)(null),x=(0,r.useRef)(null);return n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{onClick:t,style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",zIndex:99}}),(0,o.jsxs)("div",{style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:100,background:"#1e1e2e",border:"2px solid #4a4a6a",borderRadius:0,padding:"4px",boxShadow:"2px 2px 0px #0a0a14",minWidth:200},children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 10px",borderBottom:"1px solid #4a4a6a",marginBottom:"4px"},children:[(0,o.jsx)("span",{style:{fontSize:"14px",color:"rgba(255, 255, 255, 0.9)"},children:"Settings"}),(0,o.jsx)("button",{onClick:t,onMouseEnter:()=>p("close"),onMouseLeave:()=>p(null),style:{background:"close"===c?"rgba(255, 255, 255, 0.08)":"transparent",border:"none",borderRadius:0,color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",cursor:"pointer",padding:"0 4px",lineHeight:1},children:"X"})]}),(0,o.jsx)("button",{onClick:()=>{let e=new Blob([(0,a.hF)(s)],{type:"application/json"}),n=URL.createObjectURL(e),o=document.createElement("a");o.href=n,o.download="office-layout-".concat(Date.now(),".json"),o.click(),URL.revokeObjectURL(n),t()},onMouseEnter:()=>p("export"),onMouseLeave:()=>p(null),style:{...l,background:"export"===c?"rgba(255, 255, 255, 0.08)":"transparent"},children:"Export Layout"}),(0,o.jsx)("button",{onClick:()=>{var e;null==(e=x.current)||e.click()},onMouseEnter:()=>p("import"),onMouseLeave:()=>p(null),style:{...l,background:"import"===c?"rgba(255, 255, 255, 0.08)":"transparent"},children:"Import Layout"}),(0,o.jsx)("input",{ref:x,type:"file",accept:".json",onChange:e=>{var n;let o=null==(n=e.target.files)?void 0:n[0];if(!o)return;let r=new FileReader;r.onload=()=>{let e=r.result,n=(0,a.Kf)(e);n?(i(n),t()):alert("Invalid layout file")},r.readAsText(o),e.target.value=""},style:{display:"none"}}),(0,o.jsxs)("button",{onClick:()=>{let e=!d;u(e),localStorage.setItem("office-sound-enabled",JSON.stringify(e))},onMouseEnter:()=>p("sound"),onMouseLeave:()=>p(null),style:{...l,background:"sound"===c?"rgba(255, 255, 255, 0.08)":"transparent"},children:[(0,o.jsx)("span",{children:"Sound Notifications"}),(0,o.jsx)("span",{style:{width:14,height:14,border:"2px solid rgba(255, 255, 255, 0.5)",borderRadius:0,background:d?"rgba(90, 140, 255, 0.8)":"transparent",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",lineHeight:1,color:"#fff"},children:d?"X":""})]})]})]}):null}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[290],{9290:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var o=r(206),n=r(1406),s=r(2243);let u={width:40,height:40,padding:0,background:"#1e1e2e",color:"rgba(255, 255, 255, 0.8)",border:"2px solid #4a4a6a",borderRadius:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"2px 2px 0px #0a0a14"};function i(e){let{zoom:t,onZoomChange:r}=e,[i,l]=(0,n.useState)(null),[a,c]=(0,n.useState)(!1),[d,x]=(0,n.useState)(!1),p=(0,n.useRef)(null),b=(0,n.useRef)(null),h=(0,n.useRef)(t),f=t<=s.DH,k=t>=s.ZV;return(0,n.useEffect)(()=>{if(t!==h.current)return h.current=t,p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current),c(!0),x(!1),b.current=setTimeout(()=>{x(!0)},1200),p.current=setTimeout(()=>{c(!1),x(!1)},1800),()=>{p.current&&clearTimeout(p.current),b.current&&clearTimeout(b.current)}},[t]),(0,o.jsxs)(o.Fragment,{children:[a&&(0,o.jsxs)("div",{style:{position:"absolute",top:10,left:"50%",transform:"translateX(-50%)",zIndex:50,background:"#1e1e2e",border:"2px solid #4a4a6a",borderRadius:0,padding:"4px 12px",boxShadow:"2px 2px 0px #0a0a14",fontSize:"14px",color:"rgba(255, 255, 255, 0.8)",userSelect:"none",opacity:+!d,transition:"opacity ".concat(.5,"s ease-out"),pointerEvents:"none"},children:[t,"x"]}),(0,o.jsxs)("div",{style:{position:"absolute",top:8,left:8,zIndex:50,display:"flex",flexDirection:"column",gap:4},children:[(0,o.jsx)("button",{onClick:()=>r(t+1),disabled:k,onMouseEnter:()=>l("plus"),onMouseLeave:()=>l(null),style:{...u,background:"plus"!==i||k?u.background:"rgba(255,255,255,0.12)",cursor:k?"default":"pointer",opacity:k?.4:1},title:"Zoom in (Ctrl+Scroll)",children:(0,o.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,o.jsx)("line",{x1:"9",y1:"3",x2:"9",y2:"15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,o.jsx)("line",{x1:"3",y1:"9",x2:"15",y2:"9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),(0,o.jsx)("button",{onClick:()=>r(t-1),disabled:f,onMouseEnter:()=>l("minus"),onMouseLeave:()=>l(null),style:{...u,background:"minus"!==i||f?u.background:"rgba(255,255,255,0.12)",cursor:f?"default":"pointer",opacity:f?.4:1},title:"Zoom out (Ctrl+Scroll)",children:(0,o.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,o.jsx)("line",{x1:"3",y1:"9",x2:"15",y2:"9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[368],{368:(e,t,l)=>{l.r(t),l.d(t,{default:()=>S});var r=l(206),i=l(1406),n=l(5195);function a(e,t,l,r){let i=l.length,a=i>0?l[0].length:0;if(t<0||t>=i||e<0||e>=a)return!1;let o=l[t][e];return!(o===n.nb.WALL||o===n.nb.VOID||r.has("".concat(e,",").concat(t)))}function o(e,t){let l=e.length,r=l>0?e[0].length:0,i=[];for(let n=0;n<l;n++)for(let l=0;l<r;l++)a(l,n,e,t)&&i.push({col:l,row:n});return i}function s(e,t,l,r,i,n){if(e===l&&t===r)return[];let o=(e,t)=>"".concat(e,",").concat(t),s=o(e,t),c=o(l,r);if(!a(l,r,i,n))return[];let u=new Set;u.add(s);let h=new Map,f=[{col:e,row:t}],d=[{dc:0,dr:-1},{dc:0,dr:1},{dc:-1,dr:0},{dc:1,dr:0}];for(;f.length>0;){let e=f.shift(),t=o(e.col,e.row);if(t===c){let e=[],t=c;for(;t!==s;){let[l,r]=t.split(",").map(Number);e.unshift({col:l,row:r}),t=h.get(t)}return e}for(let l of d){let r=e.col+l.dc,s=e.row+l.dr,c=o(r,s);!u.has(c)&&a(r,s,i,n)&&(u.add(c),h.set(c,t),f.push({col:r,row:s}))}}return[]}var c=l(2243);let u=new Set(["Read","Grep","Glob","WebFetch","WebSearch"]);function h(e,t){return{x:e*n.dn+n.dn/2,y:t*n.dn+n.dn/2}}function f(e,t,l,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=r?r.seatCol:1,o=r?r.seatRow:1,s=h(a,o);return{id:e,state:n.Lp.TYPE,dir:r?r.facingDir:n.OP.DOWN,x:s.x,y:s.y,tileCol:a,tileRow:o,path:[],moveProgress:0,currentTool:null,palette:t,hueShift:i,frame:0,frameTimer:0,wanderTimer:0,wanderCount:0,wanderLimit:g(c.Rb,c.he),isActive:!0,seatId:l,bubbleType:null,bubbleTimer:0,speechText:null,speechTimer:0,seatTimer:0,isSubagent:!1,parentAgentId:null,matrixEffect:null,matrixEffectTimer:0,matrixEffectSeeds:[],isExternal:!1,label:null,labelColor:null}}function d(e,t){return e+Math.random()*(t-e)}function g(e,t){return e+Math.floor(Math.random()*(t-e+1))}function m(e,t,l){return(7*e+13*t+31*Math.floor(l*c.vU)&255)<c.gB}function b(){let e=[];for(let t=0;t<c.W3;t++)e.push(Math.random());return e}var p=l(9631),w=l(9892);class T{setLayout(e){for(let t of(this.layout=e,this.tileMap=(0,p.MB)(e),this.seats=(0,p.CW)(e.furniture),this.blockedTiles=(0,p.AI)(e.furniture),this.furniture=(0,p.Co)(e.furniture),this.walkableTiles=o(this.tileMap,this.blockedTiles),this.characters.values()))if(t.seatId){let e=this.seats.get(t.seatId);if(e)e.assigned=!0;else{t.seatId=null;let e=this.findFreeSeat();e&&(this.seats.get(e).assigned=!0,t.seatId=e)}}this.rebuildFurnitureInstances()}addCharacter(e,t,l,r,i,a){let o;if(this.agentIdToCharId.has(e))return;let s=this.nextCharId++;this.agentIdToCharId.set(e,s),this.charIdToAgentId.set(s,e);let{palette:c,hueShift:u}=void 0!==l?{palette:l,hueShift:0}:this.pickDiversePalette(),h=this.findFreeSeat();if(h){let e=this.seats.get(h);e.assigned=!0,o=f(s,c,h,e,u)}else{let e=this.walkableTiles.length>0?this.walkableTiles[Math.floor(Math.random()*this.walkableTiles.length)]:{col:1,row:1};(o=f(s,c,null,null,u)).x=e.col*n.dn+n.dn/2,o.y=e.row*n.dn+n.dn/2,o.tileCol=e.col,o.tileRow=e.row}r&&(o.isExternal=!0),i&&(o.label=i),a&&(o.labelColor=a),o.matrixEffect="spawn",o.matrixEffectTimer=0,o.matrixEffectSeeds=b(),this.characters.set(s,o)}removeCharacter(e){let t=this.agentIdToCharId.get(e);if(void 0===t)return;let l=this.characters.get(t);if(l&&"despawn"!==l.matrixEffect){if(l.seatId){let e=this.seats.get(l.seatId);e&&(e.assigned=!1)}this.selectedCharId===t&&(this.selectedCharId=null),l.matrixEffect="despawn",l.matrixEffectTimer=0,l.matrixEffectSeeds=b(),l.bubbleType=null}}updateCharacterStatus(e,t){let l=this.agentIdToCharId.get(e);if(void 0===l)return;let r=this.characters.get(l);if(!r)return;let i=r.isActive,n="working"===t||"waiting_approval"===t;r.isActive=n,!n&&i?(r.seatTimer=-1,r.path=[],r.moveProgress=0,this.rebuildFurnitureInstances()):n&&!i&&this.rebuildFurnitureInstances()}selectCharacter(e){if(null===e){this.selectedCharId=null;return}let t=this.agentIdToCharId.get(e);this.selectedCharId=null!=t?t:null}showBubble(e,t){let l=this.agentIdToCharId.get(e);if(void 0===l)return;let r=this.characters.get(l);r&&("permission"===t||"working"===t?(r.bubbleType=t,r.bubbleTimer=0):(r.bubbleType="waiting",r.bubbleTimer=c.WK))}clearBubble(e){let t=this.agentIdToCharId.get(e);if(void 0===t)return;let l=this.characters.get(t);l&&("permission"===l.bubbleType||"working"===l.bubbleType?(l.bubbleType=null,l.bubbleTimer=0):"waiting"===l.bubbleType&&(l.bubbleTimer=Math.min(l.bubbleTimer,c.M_)))}showSpeechBubble(e,t){let l=this.agentIdToCharId.get(e);if(void 0===l)return;let r=this.characters.get(l);r&&(r.speechText=t.length>c.lO?t.slice(0,c.lO)+"...":t,r.speechTimer=c.Jk)}getCharacters(){return Array.from(this.characters.values())}getLayout(){return this.layout}getSelectedCharId(){return this.selectedCharId}getHoveredCharId(){return this.hoveredCharId}getAgentId(e){var t;return null!=(t=this.charIdToAgentId.get(e))?t:null}getAgentAtPixel(e,t){for(let r of this.getCharacters().sort((e,t)=>t.y-e.y)){if("despawn"===r.matrixEffect)continue;let i=r.state===n.Lp.TYPE?c.iE:0,a=r.y+i,o=r.x-c.Ns,s=r.x+c.Ns,u=a-c.o3;if(e>=o&&e<=s&&t>=u&&t<=a){var l;return null!=(l=this.charIdToAgentId.get(r.id))?l:null}}return null}setHoveredCharAtPixel(e,t){for(let l of this.getCharacters().sort((e,t)=>t.y-e.y)){if("despawn"===l.matrixEffect)continue;let r=l.state===n.Lp.TYPE?c.iE:0,i=l.y+r,a=l.x-c.Ns,o=l.x+c.Ns,s=i-c.o3;if(e>=a&&e<=o&&t>=s&&t<=i){this.hoveredCharId=l.id;return}}this.hoveredCharId=null}update(e){let t=[];for(let l of this.characters.values()){if(l.matrixEffect){l.matrixEffectTimer+=e,l.matrixEffectTimer>=n.Pz&&("spawn"===l.matrixEffect?(l.matrixEffect=null,l.matrixEffectTimer=0,l.matrixEffectSeeds=[]):t.push(l.id));continue}this.withOwnSeatUnblocked(l,()=>(function(e,t,l,r,i,a){switch(e.frameTimer+=t,e.state){case n.Lp.TYPE:if(e.frameTimer>=c.S3&&(e.frameTimer-=c.S3,e.frame=(e.frame+1)%2),!e.isActive){if(e.seatTimer>0){e.seatTimer-=t;break}e.seatTimer=0,e.state=n.Lp.IDLE,e.frame=0,e.frameTimer=0,e.wanderTimer=d(c.wj,c.k8),e.wanderCount=0,e.wanderLimit=g(c.Rb,c.he)}break;case n.Lp.IDLE:if(e.frame=0,e.seatTimer<0&&(e.seatTimer=0),e.isActive){if(!e.seatId){e.state=n.Lp.TYPE,e.frame=0,e.frameTimer=0;break}let t=r.get(e.seatId);if(t){let l=s(e.tileCol,e.tileRow,t.seatCol,t.seatRow,i,a);l.length>0?(e.path=l,e.moveProgress=0,e.state=n.Lp.WALK):(e.state=n.Lp.TYPE,e.dir=t.facingDir),e.frame=0,e.frameTimer=0}break}if(e.wanderTimer-=t,e.wanderTimer<=0){if(e.wanderCount>=e.wanderLimit&&e.seatId){let t=r.get(e.seatId);if(t){let l=s(e.tileCol,e.tileRow,t.seatCol,t.seatRow,i,a);if(l.length>0){e.path=l,e.moveProgress=0,e.state=n.Lp.WALK,e.frame=0,e.frameTimer=0;break}}}if(l.length>0){let t=l[Math.floor(Math.random()*l.length)],r=s(e.tileCol,e.tileRow,t.col,t.row,i,a);r.length>0&&(e.path=r,e.moveProgress=0,e.state=n.Lp.WALK,e.frame=0,e.frameTimer=0,e.wanderCount++)}e.wanderTimer=d(c.wj,c.k8)}break;case n.Lp.WALK:{if(e.frameTimer>=c.lY&&(e.frameTimer-=c.lY,e.frame=(e.frame+1)%4),0===e.path.length){let t=h(e.tileCol,e.tileRow);if(e.x=t.x,e.y=t.y,e.isActive)if(e.seatId){let t=r.get(e.seatId);t&&e.tileCol===t.seatCol&&e.tileRow===t.seatRow?(e.state=n.Lp.TYPE,e.dir=t.facingDir):e.state=n.Lp.IDLE}else e.state=n.Lp.TYPE;else{if(e.seatId){let t=r.get(e.seatId);if(t&&e.tileCol===t.seatCol&&e.tileRow===t.seatRow){e.state=n.Lp.TYPE,e.dir=t.facingDir,e.seatTimer<0?e.seatTimer=0:e.seatTimer=d(c.Ot,c.Ww),e.wanderCount=0,e.wanderLimit=g(c.Rb,c.he),e.frame=0,e.frameTimer=0;break}}e.state=n.Lp.IDLE,e.wanderTimer=d(c.wj,c.k8)}e.frame=0,e.frameTimer=0;break}let l=e.path[0];e.dir=function(e,t,l,r){let i=l-e;return i>0?n.OP.RIGHT:i<0?n.OP.LEFT:r-t>0?n.OP.DOWN:n.OP.UP}(e.tileCol,e.tileRow,l.col,l.row),e.moveProgress+=c.XE/n.dn*t;let o=h(e.tileCol,e.tileRow),u=h(l.col,l.row),f=Math.min(e.moveProgress,1);if(e.x=o.x+(u.x-o.x)*f,e.y=o.y+(u.y-o.y)*f,e.moveProgress>=1&&(e.tileCol=l.col,e.tileRow=l.row,e.x=u.x,e.y=u.y,e.path.shift(),e.moveProgress=0),e.isActive&&e.seatId){let t=r.get(e.seatId);if(t){let l=e.path[e.path.length-1];if(!l||l.col!==t.seatCol||l.row!==t.seatRow){let l=s(e.tileCol,e.tileRow,t.seatCol,t.seatRow,i,a);l.length>0&&(e.path=l,e.moveProgress=0)}}}}}})(l,e,this.walkableTiles,this.seats,this.tileMap,this.blockedTiles)),"waiting"===l.bubbleType&&(l.bubbleTimer-=e,l.bubbleTimer<=0&&(l.bubbleType=null,l.bubbleTimer=0)),l.speechText&&(l.speechTimer-=e,l.speechTimer<=0&&(l.speechText=null,l.speechTimer=0))}for(let e of t){let t=this.charIdToAgentId.get(e);this.characters.delete(e),t&&(this.agentIdToCharId.delete(t),this.charIdToAgentId.delete(e))}}findFreeSeat(){for(let[e,t]of this.seats)if(!t.assigned)return e;return null}pickDiversePalette(){let e=Array(c.ic).fill(0);for(let t of this.characters.values())!t.isSubagent&&e[t.palette]++;let t=Math.min(...e),l=[];for(let r=0;r<c.ic;r++)e[r]===t&&l.push(r);let r=l[Math.floor(Math.random()*l.length)],i=0;return t>0&&(i=c.qt+Math.floor(Math.random()*c.p7)),{palette:r,hueShift:i}}ownSeatKey(e){if(!e.seatId)return null;let t=this.seats.get(e.seatId);return t?"".concat(t.seatCol,",").concat(t.seatRow):null}withOwnSeatUnblocked(e,t){let l=this.ownSeatKey(e);l&&this.blockedTiles.delete(l);let r=t();return l&&this.blockedTiles.add(l),r}rebuildFurnitureInstances(){let e=new Set;for(let t of this.characters.values()){if(!t.isActive||!t.seatId)continue;let l=this.seats.get(t.seatId);if(!l)continue;let r=l.facingDir===n.OP.RIGHT?1:l.facingDir===n.OP.LEFT?-1:0,i=l.facingDir===n.OP.DOWN?1:l.facingDir===n.OP.UP?-1:0;for(let t=1;t<=c.Xo;t++)e.add("".concat(l.seatCol+r*t,",").concat(l.seatRow+i*t));for(let t=1;t<=c.ou;t++){let n=l.seatCol+r*t,a=l.seatRow+i*t;0!==r?(e.add("".concat(n,",").concat(a-1)),e.add("".concat(n,",").concat(a+1))):(e.add("".concat(n-1,",").concat(a)),e.add("".concat(n+1,",").concat(a)))}}if(0===e.size){this.furniture=(0,p.Co)(this.layout.furniture);return}let t=this.layout.furniture.map(t=>{let l=(0,w.Um)(t.type);if(!l)return t;for(let r=0;r<l.footprintH;r++)for(let i=0;i<l.footprintW;i++)if(e.has("".concat(t.col+i,",").concat(t.row+r))){let e=(0,w.xr)(t.type);if(e!==t.type)return{...t,type:e};return t}return t});this.furniture=(0,p.Co)(t)}constructor(e){this.characters=new Map,this.selectedCharId=null,this.hoveredCharId=null,this.agentIdToCharId=new Map,this.charIdToAgentId=new Map,this.nextCharId=1,this.layout=e||(0,p.kr)(),this.tileMap=(0,p.MB)(this.layout),this.seats=(0,p.CW)(this.layout.furniture),this.blockedTiles=(0,p.AI)(this.layout.furniture),this.furniture=(0,p.Co)(this.layout.furniture),this.walkableTiles=o(this.tileMap,this.blockedTiles)}}var y=l(5702),x=l(2988),C=l(4777),v=l(5055),I=l(4296),M=l(1204);class R{addAgent(e,t){this.officeState.addCharacter(e,t.name,t.palette,t.isExternal,t.label,t.labelColor)}removeAgent(e){this.officeState.removeCharacter(e)}updateAgent(e,t,l){this.officeState.updateCharacterStatus(e,t),l?this.officeState.showBubble(e,l):this.officeState.clearBubble(e)}showSpeechBubble(e,t){this.officeState.showSpeechBubble(e,t)}selectAgent(e){this.officeState.selectCharacter(e)}dispose(){var e;null==(e=this.stopLoop)||e.call(this),this.stopLoop=null}getOfficeState(){return this.officeState}constructor(e,t){this.officeState=e,this.stopLoop=t}}function S(e){let{onAdapterReady:t,onAgentClick:l,editMode:a,editorRef:o,onTileClick:s,onTileRightClick:h,onGhostMove:f,onDragStart:d,onDragMove:g,onDragEnd:b,onDeleteBtnClick:p,onRotateBtnClick:S,officeStateRef:k,onAssetsLoaded:E,zoomRef:P,panRef:L}=e,A=(0,i.useRef)(null),[Y,F]=(0,i.useState)(!1),B=(0,i.useRef)(null),W=(0,i.useRef)(l);W.current=l;let D=(0,i.useRef)(a);D.current=a;let X=(0,i.useRef)(!1),O=(0,i.useRef)({x:0,y:0,panX:0,panY:0}),U=(0,i.useRef)({offsetX:0,offsetY:0}),z=(0,i.useRef)(null),H=(0,i.useCallback)((e,t)=>{let l=k.current;if(!l)return 4;let r=l.layout.cols*c.dn,i=l.layout.rows*c.dn;return Math.max(c.DH,Math.floor(Math.min(e/r,t/i)))},[k]),N=(0,i.useCallback)(()=>{let e=A.current;if(!e)return;let t=e.parentElement;if(!t)return;let l=window.devicePixelRatio||1,r=t.clientWidth,i=t.clientHeight;e.width=r*l,e.height=i*l,e.style.width="".concat(r,"px"),e.style.height="".concat(i,"px");let n=e.getContext("2d");n&&n.scale(l,l),P.current=H(r,i),L.current={x:0,y:0}},[H,P,L]);(0,i.useEffect)(()=>{let e=!1;return(0,I.F)().then(t=>{e||((0,w.ar)(t.tilesetSprites),B.current=t.layout,F(!0),null==E||E())}).catch(t=>{console.warn("[PixelOfficeScene] Asset loading failed, using fallbacks:",t),e||(F(!0),null==E||E())}),()=>{e=!0}},[E]),(0,i.useEffect)(()=>{var e;if(!Y)return;let l=A.current;if(!l)return;let r=new T(null!=(e=B.current)?e:void 0);k.current=r,N(),window.addEventListener("resize",N);let i=window.devicePixelRatio||1,a=function(e,t){let l=e.getContext("2d");l.imageSmoothingEnabled=!1;let r=0,i=0,n=!1,a=e=>{if(n)return;let o=0===r?0:Math.min((e-r)/1e3,c.O9);r=e,t.update(o),l.imageSmoothingEnabled=!1,t.render(l),i=requestAnimationFrame(a)};return i=requestAnimationFrame(a),()=>{n=!0,cancelAnimationFrame(i)}}(l,{update:e=>{r.update(e)},render:e=>{let t,a=l.width/i,s=l.height/i,h=P.current,f=L.current,d=o.current;if(D.current){let e=null;if(d.activeTool===n.VF.FURNITURE_PLACE&&d.selectedFurnitureType){let t=(0,w.Um)(d.selectedFurnitureType);t&&(e=t.sprite)}if(d.dragUid){let t=r.layout.furniture.find(e=>e.uid===d.dragUid);if(t){let l=(0,w.Um)(t.type);l&&(e=l.sprite)}}let l=!1,i=0,a=0,o=1,s=1,c=!1;if(d.selectedFurnitureUid){let e=r.layout.furniture.find(e=>e.uid===d.selectedFurnitureUid);if(e){var g,b;let t=(0,w.Um)(e.type);l=!0,i=e.col,a=e.row,o=null!=(g=null==t?void 0:t.footprintW)?g:1,s=null!=(b=null==t?void 0:t.footprintH)?b:1,c=(0,w.ZZ)(e.type)}}t={showGrid:!0,ghostSprite:e,ghostCol:d.ghostCol,ghostRow:d.ghostRow,ghostValid:d.ghostValid,hasSelection:l,selectedCol:i,selectedRow:a,selectedW:o,selectedH:s,isRotatable:c,deleteButtonBounds:null,rotateButtonBounds:null,showGhostBorder:!0,ghostBorderHoverCol:d.ghostCol,ghostBorderHoverRow:d.ghostRow}}U.current=function(e,t,l,r,i,a,o,s,h,f,d,g,b,p,w){e.clearRect(0,0,t,l);let T=null!=b?b:r.length>0?r[0].length:0,I=null!=p?p:r.length,M=T*n.dn*o,R=I*n.dn*o,S=Math.floor((t-M)/2)+Math.round(s),k=Math.floor((l-R)/2)+Math.round(h);!function(e,t,l,r,i,a,o){let s=n.dn*i,u=(0,C.$0)(),h=t.length,f=h>0?t[0].length:0,d=null!=o?o:f;for(let o=0;o<h;o++)for(let h=0;h<f;h++){var g;let f=t[o][h];if(f===n.nb.VOID)continue;if(f===n.nb.WALL||!u){if(f===n.nb.WALL){let t=o*d+h,l=null==a?void 0:a[t];e.fillStyle=l?(0,v.og)(l):C.ty}else e.fillStyle=c.q3;e.fillRect(l+h*s,r+o*s,s,s);continue}let m=o*d+h,b=null!=(g=null==a?void 0:a[m])?g:{h:0,s:0,b:0,c:0},p=(0,C.To)(f,b),w=(0,y.k)(p,i);e.drawImage(w,l+h*s,r+o*s)}}(e,r,S,k,o,g,b);let E=(0,v.BN)()?(0,v.vb)(r,g,b):[];return!function(e,t,l,r,i,a,o,s){let h=[];for(let e of t){let t=(0,y.k)(e.sprite,a),l=r+e.x*a,n=i+e.y*a;h.push({zY:e.zY,draw:e=>{e.drawImage(t,l,n)}})}for(let e of l){let t=(0,x.Ih)(e.palette,e.hueShift),l=function(e,t){switch(e.state){case n.Lp.TYPE:var l;if((l=e.currentTool)&&u.has(l))return t.reading[e.dir][e.frame%2];return t.typing[e.dir][e.frame%2];case n.Lp.WALK:return t.walk[e.dir][e.frame%4];case n.Lp.IDLE:default:return t.walk[e.dir][1]}}(e,t),f=(0,y.k)(l,a),d=e.state===n.Lp.TYPE?c.iE:0,g=Math.round(r+e.x*a-f.width/2),b=Math.round(i+(e.y+d)*a-f.height),p=e.y+n.dn/2+c.Sg;if(e.matrixEffect){let t=e;h.push({zY:p,draw:e=>{!function(e,t,l,r,i,a){let o=t.matrixEffectTimer/n.Pz,s="spawn"===t.matrixEffect,u=t.matrixEffectTimer,h=c.wN+c.M1;for(let n=0;n<c.W3;n++){var f,d;let g=Math.max(0,Math.min(1,(o-(null!=(f=t.matrixEffectSeeds[n])?f:0)*c.hI)/(1-c.hI)))*h;for(let t=0;t<c.wN;t++){let o=null==(d=l[t])?void 0:d[n],h=o&&""!==o,f=g-t,b=r+n*a,p=i+t*a;if(s)if(f<0)continue;else if(f<1)e.fillStyle=c.zw,e.fillRect(b,p,a,a);else if(f<c.M1){let l=f/c.M1;if(h){e.fillStyle=o,e.fillRect(b,p,a,a);let r=(1-l)*c.Nd;m(n,t,u)&&(e.fillStyle="rgba(0, 255, 65, ".concat(r,")"),e.fillRect(b,p,a,a))}else if(m(n,t,u)){let t=(1-l)*c.gi;e.fillStyle=l<c.Wn?"rgba(0, 255, 65, ".concat(t,")"):l<c.WJ?"rgba(0, 170, 40, ".concat(t,")"):"rgba(0, 85, 20, ".concat(t,")"),e.fillRect(b,p,a,a)}}else h&&(e.fillStyle=o,e.fillRect(b,p,a,a));else if(f<0)h&&(e.fillStyle=o,e.fillRect(b,p,a,a));else if(f<1)e.fillStyle=c.zw,e.fillRect(b,p,a,a);else if(f<c.M1&&m(n,t,u)){let t=f/c.M1,l=(1-t)*c.gi;e.fillStyle=t<c.Wn?"rgba(0, 255, 65, ".concat(l,")"):t<c.WJ?"rgba(0, 170, 40, ".concat(l,")"):"rgba(0, 85, 20, ".concat(l,")"),e.fillRect(b,p,a,a)}}}}(e,t,l,g,b,a)}});continue}let w=null!==o&&e.id===o,T=null!==s&&e.id===s;if(w||T){let e=w?c.O1:c.y9,t=(0,y.Y)(l),r=(0,y.k)(t,a),i=g-a,n=b-a;h.push({zY:p-c.F2,draw:t=>{t.save(),t.globalAlpha=e,t.drawImage(r,i,n),t.restore()}})}h.push({zY:p,draw:e=>{e.drawImage(f,g,b)}})}for(let t of(h.sort((e,t)=>e.zY-t.zY),h))t.draw(e)}(e,E.length>0?[...E,...i]:i,a,S,k,o,f,d),!function(e,t,l,r,i){let a=Math.max(1,Math.round(i));for(let s of t){var o;if(!s.label||"despawn"===s.matrixEffect)continue;let t=Math.max(6,Math.round(3.5*i));e.save(),e.imageSmoothingEnabled=!1,e.font="bold ".concat(t,"px monospace");let u=Math.ceil(e.measureText(s.label).width),h=2*a,f=+a,d=u+2*h,g=t+2*f,m=s.state===n.Lp.TYPE?c.PA:0,b=Math.round(l+s.x*i-d/2),p=Math.round(r+(s.y+m-26)*i-g),w=null!=(o=s.labelColor)?o:"#8a7a6a";e.fillStyle="#222",e.fillRect(b-a,p,d+2*a,g+a),e.fillRect(b,p-a,d,g+2*a),e.fillStyle=w,e.fillRect(b,p,d,g),e.fillStyle="#fff",e.textBaseline="top",e.fillText(s.label,b+h,p+f),e.restore()}}(e,a,S,k,o),!function(e,t,l,r,i){for(let a of t){if(!a.bubbleType)continue;let t="permission"===a.bubbleType?x.$D:"working"===a.bubbleType?x.j9:x.VQ,o=1;"waiting"===a.bubbleType&&a.bubbleTimer<c.v3&&(o=a.bubbleTimer/c.v3);let s=(0,y.k)(t,i),u=a.state===n.Lp.TYPE?c.PA:0,h=Math.round(l+a.x*i-s.width/2),f=Math.round(r+(a.y+u-c.$L)*i-s.height-i);e.save(),o<1&&(e.globalAlpha=o),e.drawImage(s,h,f),e.restore()}}(e,a,S,k,o),!function(e,t,l,r,i){let a=Math.max(1,Math.round(i));for(let o of t){if(!o.speechText)continue;let t=1;if(o.speechTimer<c.nW&&(t=Math.max(0,o.speechTimer/c.nW)),t<=0)continue;let s=Math.max(7,Math.round(4.5*i));e.save(),e.imageSmoothingEnabled=!1,e.font="".concat(s,"px monospace");let u=Math.ceil(e.measureText(o.speechText).width),h=3*a,f=2*a,d=u+2*h,g=s+2*f,m=3*a,b=o.state===n.Lp.TYPE?c.PA:0,p=Math.round(l+o.x*i-d/2),w=Math.round(r+(o.y+b-c.$L)*i-g-m-4*a);t<1&&(e.globalAlpha=t),e.fillStyle="#333",e.fillRect(p-a,w,d+2*a,g+a),e.fillRect(p,w-a,d,g+2*a),e.fillStyle="#fff",e.fillRect(p,w,d,g);let T=Math.round(p+d/2);e.fillStyle="#333",e.fillRect(T-2*a,w+g,4*a,a),e.fillRect(T-a,w+g+a,2*a,a),e.fillRect(T,w+g+2*a,a,a),e.fillStyle="#fff",e.fillRect(T-a,w+g,2*a,a),e.fillRect(T,w+g+a,a,a),e.fillStyle="#222",e.textBaseline="top",e.fillText(o.speechText,p+h,w+f),e.restore()}}(e,a,S,k,o),w&&(w.showGrid&&function(e,t,l,r,i,a,o){let s=n.dn*r;e.strokeStyle=c.AL,e.lineWidth=1,e.beginPath();for(let r=0;r<=i;r++){let i=t+r*s+.5;e.moveTo(i,l),e.lineTo(i,l+a*s)}for(let r=0;r<=a;r++){let n=l+r*s+.5;e.moveTo(t,n),e.lineTo(t+i*s,n)}if(e.stroke(),o){e.save(),e.strokeStyle=c.fJ,e.lineWidth=1,e.setLineDash(c.i);for(let r=0;r<a;r++)for(let a=0;a<i;a++){var u;(null==(u=o[r])?void 0:u[a])===n.nb.VOID&&e.strokeRect(t+a*s+.5,l+r*s+.5,s-1,s-1)}e.restore()}}(e,S,k,o,T,I,r),w.showGhostBorder&&function(e,t,l,r,i,a,o,s){let u=n.dn*r;e.save();let h=[];for(let e=-1;e<=i;e++)h.push({c:e,r:-1}),h.push({c:e,r:a});for(let e=0;e<a;e++)h.push({c:-1,r:e}),h.push({c:i,r:e});for(let{c:r,r:i}of h){let n=t+r*u,a=l+i*u,h=r===o&&i===s;h&&(e.fillStyle=c.Mo,e.fillRect(n,a,u,u)),e.strokeStyle=h?c.pr:c.gD,e.lineWidth=1,e.setLineDash(c.i),e.strokeRect(n+.5,a+.5,u-1,u-1)}e.restore()}(e,S,k,o,T,I,w.ghostBorderHoverCol,w.ghostBorderHoverRow),w.ghostSprite&&w.ghostCol>=0&&function(e,t,l,r,i,a,o,s){let u=(0,y.k)(t,s),h=a+l*n.dn*s,f=o+r*n.dn*s;e.save(),e.globalAlpha=c.qD,e.drawImage(u,h,f),e.globalAlpha=c.W7,e.fillStyle=i?c.TE:c.oj,e.fillRect(h,f,u.width,u.height),e.restore()}(e,w.ghostSprite,w.ghostCol,w.ghostRow,w.ghostValid,S,k,o),w.hasSelection?(!function(e,t,l,r,i,a,o,s){let u=n.dn*s;e.save(),e.strokeStyle=c.Ii,e.lineWidth=2,e.setLineDash(c.n6),e.strokeRect(a+t*u+1,o+l*u+1,r*u-2,i*u-2),e.restore()}(e,w.selectedCol,w.selectedRow,w.selectedW,w.selectedH,S,k,o),w.deleteButtonBounds=function(e,t,l,r,i,a,o,s){let u=n.dn*s,h=a+(t+r)*u+1,f=o+l*u-1,d=Math.max(c.l0,s*c.YX);e.save(),e.beginPath(),e.arc(h,f,d,0,2*Math.PI),e.fillStyle=c.Zz,e.fill(),e.strokeStyle="#fff",e.lineWidth=Math.max(c.SS,s*c.zY),e.lineCap="round";let g=d*c.R_;return e.beginPath(),e.moveTo(h-g,f-g),e.lineTo(h+g,f+g),e.moveTo(h+g,f-g),e.lineTo(h-g,f+g),e.stroke(),e.restore(),{cx:h,cy:f,radius:d}}(e,w.selectedCol,w.selectedRow,w.selectedW,w.selectedH,S,k,o),w.isRotatable?w.rotateButtonBounds=function(e,t,l,r,i,a,o,s){let u=n.dn*s,h=Math.max(c.l0,s*c.YX),f=a+t*u-1,d=o+l*u-1;e.save(),e.beginPath(),e.arc(f,d,h,0,2*Math.PI),e.fillStyle=c.BD,e.fill(),e.strokeStyle="#fff",e.lineWidth=Math.max(c.SS,s*c.zY),e.lineCap="round";let g=h*c.R_;e.beginPath(),e.arc(f,d,g,-(.8*Math.PI),.7*Math.PI),e.stroke();let m=.7*Math.PI,b=f+g*Math.cos(m),p=d+g*Math.sin(m),w=.35*h;return e.beginPath(),e.moveTo(b+.6*w,p-.3*w),e.lineTo(b,p),e.lineTo(b+.7*w,p+.5*w),e.stroke(),e.restore(),{cx:f,cy:d,radius:h}}(e,w.selectedCol,w.selectedRow,w.selectedW,w.selectedH,S,k,o):w.rotateButtonBounds=null):(w.deleteButtonBounds=null,w.rotateButtonBounds=null)),{offsetX:S,offsetY:k}}(e,a,s,r.tileMap,r.furniture,r.getCharacters(),h,f.x,f.y,r.getSelectedCharId(),r.getHoveredCharId(),r.layout.tileColors,r.layout.cols,r.layout.rows,t),z.current=null!=t?t:null}}),s=new R(r,a);return t(s),()=>{s.dispose(),k.current=null,window.removeEventListener("resize",N)}},[Y,N,k,P,L,o,t]);let V=(0,i.useCallback)((e,t)=>{let l=A.current;if(!l)return{x:0,y:0};let r=l.getBoundingClientRect(),i=P.current,{offsetX:n,offsetY:a}=U.current;return{x:(e-r.left-n)/i,y:(t-r.top-a)/i}},[P]),_=(0,i.useCallback)((e,t)=>({col:Math.floor(e/c.dn),row:Math.floor(t/c.dn)}),[]),j=(0,i.useCallback)((e,t)=>{let l=V(e,t);return _(l.x,l.y)},[V,_]),q=(0,i.useCallback)(e=>{if(X.current=!0,O.current={x:e.clientX,y:e.clientY,panX:L.current.x,panY:L.current.y},D.current&&o.current.selectedFurnitureUid){var t;let l=j(e.clientX,e.clientY),r=null==(t=k.current)?void 0:t.layout;if(r){let e=(0,M.iH)(r,l.col,l.row);e&&e.uid===o.current.selectedFurnitureUid&&(null==d||d(l.col,l.row))}}},[L,o,k,j,d]),G=(0,i.useCallback)(e=>{let t=k.current;if(t&&!D.current){let l=V(e.clientX,e.clientY);t.setHoveredCharAtPixel(l.x,l.y)}if(D.current){let t=j(e.clientX,e.clientY);o.current.dragUid?null==g||g(t.col,t.row):null==f||f(t.col,t.row)}if(!X.current||o.current.dragUid)return;let l=e.clientX-O.current.x,r=e.clientY-O.current.y;L.current={x:O.current.panX+l,y:O.current.panY+r}},[V,j,k,L,o,g,f]),K=(0,i.useCallback)(e=>{let t=X.current;if(X.current=!1,o.current.dragUid){let t=j(e.clientX,e.clientY);null==b||b(t.col,t.row);return}let l=Math.abs(e.clientX-O.current.x),r=Math.abs(e.clientY-O.current.y);if(t&&(l>5||r>5))return;let i=k.current;if(!i)return;if(D.current){let t=z.current;if(t){let l=A.current;if(l){let r=l.getBoundingClientRect(),i=e.clientX-r.left,n=e.clientY-r.top;if(t.deleteButtonBounds){let{cx:e,cy:l,radius:r}=t.deleteButtonBounds;if(Math.sqrt((i-e)**2+(n-l)**2)<=r){null==p||p();return}}if(t.rotateButtonBounds){let{cx:e,cy:l,radius:r}=t.rotateButtonBounds;if(Math.sqrt((i-e)**2+(n-l)**2)<=r){null==S||S();return}}}}let l=j(e.clientX,e.clientY);null==s||s(l.col,l.row);return}let n=V(e.clientX,e.clientY),a=i.getAgentAtPixel(n.x,n.y);a&&W.current(a)},[V,j,k,o,s,b,p,S]),J=(0,i.useCallback)(e=>{if(!D.current)return;e.preventDefault();let t=j(e.clientX,e.clientY);null==h||h(t.col,t.row)},[j,h]),Z=(0,i.useCallback)(e=>{},[]),$=(0,i.useRef)([]),Q=(0,i.useRef)(0),ee=(0,i.useCallback)(e=>{if($.current=Array.from(e.touches),2===e.touches.length){let t=e.touches[0].clientX-e.touches[1].clientX,l=e.touches[0].clientY-e.touches[1].clientY;Q.current=Math.sqrt(t*t+l*l)}else 1===e.touches.length&&(X.current=!0,O.current={x:e.touches[0].clientX,y:e.touches[0].clientY,panX:L.current.x,panY:L.current.y})},[L]),et=(0,i.useCallback)(e=>{if(2===e.touches.length){let t=e.touches[0].clientX-e.touches[1].clientX,l=e.touches[0].clientY-e.touches[1].clientY,r=Math.sqrt(t*t+l*l),i=r-Q.current;Math.abs(i)>20&&(P.current=Math.max(c.DH,Math.min(c.ZV,P.current+(i>0?1:-1))),Q.current=r)}else if(1===e.touches.length&&X.current){let t=e.touches[0].clientX-O.current.x,l=e.touches[0].clientY-O.current.y;L.current={x:O.current.panX+t,y:O.current.panY+l}}},[P,L]),el=(0,i.useCallback)(e=>{if(0===e.touches.length&&1===$.current.length){let e=$.current[0],t=Math.abs(e.clientX-O.current.x),l=Math.abs(e.clientY-O.current.y);if(t<10&&l<10)if(D.current){let t=j(e.clientX,e.clientY);null==s||s(t.col,t.row)}else{let t=k.current;if(t){let l=V(e.clientX,e.clientY),r=t.getAgentAtPixel(l.x,l.y);r&&W.current(r)}}}X.current=!1,$.current=Array.from(e.touches)},[V,j,k,s]),er=a?o.current.activeTool===n.VF.ERASE?"crosshair":o.current.activeTool===n.VF.EYEDROPPER?"copy":o.current.activeTool===n.VF.FURNITURE_PLACE?"cell":o.current.dragUid?"grabbing":"default":"grab";return(0,r.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"hidden",backgroundColor:"#12121f"},children:[!Y&&(0,r.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#6b7280",fontSize:14,fontFamily:"system-ui, sans-serif",zIndex:10},children:"Loading office..."}),(0,r.jsx)("canvas",{ref:A,onPointerDown:q,onPointerMove:G,onPointerUp:K,onContextMenu:J,onWheel:Z,onTouchStart:ee,onTouchMove:et,onTouchEnd:el,style:{display:"block",width:"100%",height:"100%",touchAction:"none",cursor:er}})]})}},5702:(e,t,l)=>{l.d(t,{Y:()=>n,k:()=>a});let r=new Map,i=new WeakMap;function n(e){let t=i.get(e);if(t)return t;let l=e.length,r=e[0].length,n=[];for(let e=0;e<l+2;e++)n.push(Array(r+2).fill(""));for(let t=0;t<l;t++)for(let l=0;l<r;l++){if(""===e[t][l])continue;let r=t+1,i=l+1;""===n[r-1][i]&&(n[r-1][i]="#FFFFFF"),""===n[r+1][i]&&(n[r+1][i]="#FFFFFF"),""===n[r][i-1]&&(n[r][i-1]="#FFFFFF"),""===n[r][i+1]&&(n[r][i+1]="#FFFFFF")}for(let t=0;t<l;t++)for(let l=0;l<r;l++)""!==e[t][l]&&(n[t+1][l+1]="");return i.set(e,n),n}function a(e,t){let l=r.get(t);l||(l=new WeakMap,r.set(t,l));let i=l.get(e);if(i)return i;let n=e.length,a=e[0].length,o=document.createElement("canvas");o.width=a*t,o.height=n*t;let s=o.getContext("2d");s.imageSmoothingEnabled=!1;for(let l=0;l<n;l++)for(let r=0;r<a;r++){let i=e[l][r];""!==i&&(s.fillStyle=i,s.fillRect(r*t,l*t,t,t))}return l.set(e,o),o}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[757],{3757:(e,o,t)=>{t.r(o),t.d(o,{default:()=>d});var n=t(206),r=t(1406);let a={position:"absolute",bottom:10,left:10,zIndex:15,display:"flex",alignItems:"center",gap:2,background:"#1e1a30",border:"1px solid #3d2e54",borderRadius:0,padding:"3px 4px",boxShadow:"2px 2px 0px rgba(0,0,0,0.6)"},l={padding:"5px 10px",fontSize:"11px",fontFamily:"monospace",color:"#7a6858",background:"transparent",border:"1px solid transparent",borderRadius:0,cursor:"pointer",letterSpacing:"0.03em"},s={...l,background:"rgba(200, 155, 48, 0.12)",border:"1px solid #e8b04060",color:"#e8b040"};function d(e){let{editMode:o,onToggleEditMode:t,onOpenSettings:d}=e,[i,u]=(0,r.useState)(null);return(0,n.jsxs)("div",{style:a,children:[(0,n.jsx)("button",{onClick:t,onMouseEnter:()=>u("edit"),onMouseLeave:()=>u(null),style:o?s:{...l,background:"edit"===i?"rgba(200,155,48,0.08)":l.background,color:"edit"===i?"#a08a6c":l.color},title:"Edit office layout",children:"Layout"}),(0,n.jsx)("button",{onClick:d,onMouseEnter:()=>u("settings"),onMouseLeave:()=>u(null),style:{...l,background:"settings"===i?"rgba(200,155,48,0.08)":l.background,color:"settings"===i?"#a08a6c":l.color},title:"Settings",children:"Settings"})]})}}}]);