bit-office 0.1.8 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +21 -8
- package/dist/index.js.map +1 -1
- package/dist/web/out/404.html +2 -2
- package/dist/web/out/_next/static/chunks/904.4649cb92e3c1355c.js +1 -0
- package/dist/web/out/_next/static/chunks/app/office/page-75459bb9d7bfe004.js +1 -0
- package/dist/web/out/_next/static/chunks/{webpack-1075fa19d83199c2.js → webpack-131b3d260a3d9ce4.js} +1 -1
- package/dist/web/out/index.html +2 -2
- package/dist/web/out/index.txt +1 -1
- package/dist/web/out/office.html +2 -2
- package/dist/web/out/office.txt +2 -2
- package/dist/web/out/pair.html +2 -2
- package/dist/web/out/pair.txt +1 -1
- package/dist/web/out/sw.js +1 -1
- package/package.json +1 -1
- package/dist/web/out/_next/static/chunks/904.8b3ff312a1556d6a.js +0 -1
- package/dist/web/out/_next/static/chunks/app/office/page-81d7bad541583f85.js +0 -1
- /package/dist/web/out/_next/static/{Ini5NsYvSy_jIXndBUoc4 → KVUUasWqYxW6SNCIo9Tbn}/_buildManifest.js +0 -0
- /package/dist/web/out/_next/static/{Ini5NsYvSy_jIXndBUoc4 → KVUUasWqYxW6SNCIo9Tbn}/_ssgManifest.js +0 -0
package/dist/web/out/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--KVUUasWqYxW6SNCIo9Tbn--><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-131b3d260a3d9ce4.js"/><script src="/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js" async=""></script><script src="/_next/static/chunks/977-26ddf708be8caf79.js" async=""></script><script src="/_next/static/chunks/main-app-4f4b0701adf58469.js" async=""></script><script src="/_next/static/chunks/app/page-94da9de9b62f4f4d.js" async=""></script><meta name="theme-color" content="#1a1a2e"/><title>Bit Office</title><meta name="description" content="Control your AI agents from anywhere"/><link rel="manifest" href="/manifest.json"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;background-color:#1a1a2e;color:#fff;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><!--$--><!--/$--><script>
|
|
2
2
|
if ('serviceWorker' in navigator && location.hostname === 'localhost') {
|
|
3
3
|
navigator.serviceWorker.getRegistrations().then(function(regs) {
|
|
4
4
|
for (var r of regs) r.unregister();
|
|
5
5
|
});
|
|
6
6
|
}
|
|
7
|
-
</script><script src="/_next/static/chunks/webpack-
|
|
7
|
+
</script><script src="/_next/static/chunks/webpack-131b3d260a3d9ce4.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[9653,[],\"\"]\n3:I[1329,[],\"\"]\n4:I[7868,[],\"ClientPageRoot\"]\n5:I[8967,[\"974\",\"static/chunks/app/page-94da9de9b62f4f4d.js\"],\"default\"]\n8:I[9096,[],\"OutletBoundary\"]\na:I[913,[],\"AsyncMetadataOutlet\"]\nc:I[9096,[],\"ViewportBoundary\"]\ne:I[9096,[],\"MetadataBoundary\"]\nf:\"$Sreact.suspense\"\n11:I[5719,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"KVUUasWqYxW6SNCIo9Tbn\",\"p\":\"\",\"c\":[\"\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#1a1a2e\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}]]}],[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"backgroundColor\":\"#1a1a2e\",\"color\":\"#fff\",\"fontFamily\":\"system-ui, sans-serif\"},\"children\":[[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",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\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L4\",null,{\"Component\":\"$5\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@6\",\"$@7\"]}],null,[\"$\",\"$L8\",null,{\"children\":[\"$L9\",[\"$\",\"$La\",null,{\"promise\":\"$@b\"}]]}]]}],{},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],null],[\"$\",\"$Le\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$f\",null,{\"fallback\":null,\"children\":\"$L10\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"6:{}\n7:\"$0:f:0:1:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n9:null\n"])</script><script>self.__next_f.push([1,"b:{\"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,"10:\"$b:metadata\"\n"])</script></body></html>
|
package/dist/web/out/index.txt
CHANGED
|
@@ -9,7 +9,7 @@ c:I[9096,[],"ViewportBoundary"]
|
|
|
9
9
|
e:I[9096,[],"MetadataBoundary"]
|
|
10
10
|
f:"$Sreact.suspense"
|
|
11
11
|
11:I[5719,[],""]
|
|
12
|
-
0:{"P":null,"b":"
|
|
12
|
+
0:{"P":null,"b":"KVUUasWqYxW6SNCIo9Tbn","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[null,["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","meta",null,{"name":"theme-color","content":"#1a1a2e"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"}]]}],["$","body",null,{"style":{"margin":0,"backgroundColor":"#1a1a2e","color":"#fff","fontFamily":"system-ui, sans-serif"},"children":[["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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":["__PAGE__",["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","searchParams":{},"params":{},"promises":["$@6","$@7"]}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],null],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true}
|
|
13
13
|
6:{}
|
|
14
14
|
7:"$0:f:0:1:2:children:1:props:children:0:props:params"
|
|
15
15
|
d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
package/dist/web/out/office.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--KVUUasWqYxW6SNCIo9Tbn--><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-131b3d260a3d9ce4.js"/><script src="/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js" async=""></script><script src="/_next/static/chunks/977-26ddf708be8caf79.js" async=""></script><script src="/_next/static/chunks/main-app-4f4b0701adf58469.js" async=""></script><script src="/_next/static/chunks/325ca9c7-f84e7e4973790fdf.js" async=""></script><script src="/_next/static/chunks/989-f3ebca68e0b5e7ee.js" async=""></script><script src="/_next/static/chunks/app/office/page-75459bb9d7bfe004.js" async=""></script><meta name="theme-color" content="#1a1a2e"/><title>Bit Office</title><meta name="description" content="Control your AI agents from anywhere"/><link rel="manifest" href="/manifest.json"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;background-color:#1a1a2e;color:#fff;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><div style="height:100vh;width:100vw;position:relative;overflow:hidden;display:flex"><div style="flex:1;position:relative;min-width:0"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><div style="position:absolute;top:0;left:0;right:0;z-index:10;padding:10px 16px;display:flex;align-items:center;gap:12px;background:linear-gradient(to bottom, rgba(10,10,26,0.85) 0%, rgba(10,10,26,0) 100%);pointer-events:none"><div style="display:flex;align-items:center;gap:8px;pointer-events:auto"><h1 style="font-size:16px;margin:0;font-weight:600">Bit Office</h1><span style="font-size:10px;padding:2px 8px;border-radius:10px;background-color:#450a0a;color:#ef4444">Offline</span></div></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--></div><div style="width:33vw;min-width:300px;max-width:500px;flex-shrink:0;height:100vh;background-color:#0c0c1a;border-left:1px solid #222;display:flex;flex-direction:column;overflow:hidden"><button style="margin:12px 12px 4px;padding:10px;border-radius:10px;border:1px dashed #4f46e5;background-color:transparent;color:#a5b4fc;font-size:13px;font-weight:600;cursor:pointer;flex-shrink:0;transition:background-color 0.15s">+ Hire Agent</button><div style="flex:1;overflow-y:auto;padding:4px 0"></div></div></div><!--$--><!--/$--><script>
|
|
2
2
|
if ('serviceWorker' in navigator && location.hostname === 'localhost') {
|
|
3
3
|
navigator.serviceWorker.getRegistrations().then(function(regs) {
|
|
4
4
|
for (var r of regs) r.unregister();
|
|
5
5
|
});
|
|
6
6
|
}
|
|
7
|
-
</script><script src="/_next/static/chunks/webpack-
|
|
7
|
+
</script><script src="/_next/static/chunks/webpack-131b3d260a3d9ce4.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[9653,[],\"\"]\n3:I[1329,[],\"\"]\n4:I[7868,[],\"ClientPageRoot\"]\n5:I[8012,[\"284\",\"static/chunks/325ca9c7-f84e7e4973790fdf.js\",\"989\",\"static/chunks/989-f3ebca68e0b5e7ee.js\",\"823\",\"static/chunks/app/office/page-75459bb9d7bfe004.js\"],\"default\"]\n8:I[9096,[],\"OutletBoundary\"]\na:I[913,[],\"AsyncMetadataOutlet\"]\nc:I[9096,[],\"ViewportBoundary\"]\ne:I[9096,[],\"MetadataBoundary\"]\nf:\"$Sreact.suspense\"\n11:I[5719,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"KVUUasWqYxW6SNCIo9Tbn\",\"p\":\"\",\"c\":[\"\",\"office\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"office\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#1a1a2e\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}]]}],[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"backgroundColor\":\"#1a1a2e\",\"color\":\"#fff\",\"fontFamily\":\"system-ui, sans-serif\"},\"children\":[[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",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\":[\"office\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L4\",null,{\"Component\":\"$5\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@6\",\"$@7\"]}],null,[\"$\",\"$L8\",null,{\"children\":[\"$L9\",[\"$\",\"$La\",null,{\"promise\":\"$@b\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],null],[\"$\",\"$Le\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$f\",null,{\"fallback\":null,\"children\":\"$L10\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"6:{}\n7:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n9:null\n"])</script><script>self.__next_f.push([1,"b:{\"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,"10:\"$b:metadata\"\n"])</script></body></html>
|
package/dist/web/out/office.txt
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
2:I[9653,[],""]
|
|
3
3
|
3:I[1329,[],""]
|
|
4
4
|
4:I[7868,[],"ClientPageRoot"]
|
|
5
|
-
5:I[8012,["284","static/chunks/325ca9c7-f84e7e4973790fdf.js","989","static/chunks/989-f3ebca68e0b5e7ee.js","823","static/chunks/app/office/page-
|
|
5
|
+
5:I[8012,["284","static/chunks/325ca9c7-f84e7e4973790fdf.js","989","static/chunks/989-f3ebca68e0b5e7ee.js","823","static/chunks/app/office/page-75459bb9d7bfe004.js"],"default"]
|
|
6
6
|
8:I[9096,[],"OutletBoundary"]
|
|
7
7
|
a:I[913,[],"AsyncMetadataOutlet"]
|
|
8
8
|
c:I[9096,[],"ViewportBoundary"]
|
|
9
9
|
e:I[9096,[],"MetadataBoundary"]
|
|
10
10
|
f:"$Sreact.suspense"
|
|
11
11
|
11:I[5719,[],""]
|
|
12
|
-
0:{"P":null,"b":"
|
|
12
|
+
0:{"P":null,"b":"KVUUasWqYxW6SNCIo9Tbn","p":"","c":["","office"],"i":false,"f":[[["",{"children":["office",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[null,["$","html",null,{"lang":"en","children":[["$","head",null,{"children":[["$","meta",null,{"name":"theme-color","content":"#1a1a2e"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"}]]}],["$","body",null,{"style":{"margin":0,"backgroundColor":"#1a1a2e","color":"#fff","fontFamily":"system-ui, sans-serif"},"children":[["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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":["office",["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","searchParams":{},"params":{},"promises":["$@6","$@7"]}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],null],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true}
|
|
13
13
|
6:{}
|
|
14
14
|
7:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
|
|
15
15
|
d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
package/dist/web/out/pair.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--KVUUasWqYxW6SNCIo9Tbn--><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-131b3d260a3d9ce4.js"/><script src="/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js" async=""></script><script src="/_next/static/chunks/977-26ddf708be8caf79.js" async=""></script><script src="/_next/static/chunks/main-app-4f4b0701adf58469.js" async=""></script><script src="/_next/static/chunks/app/pair/page-932b6cbad193cd3d.js" async=""></script><meta name="theme-color" content="#1a1a2e"/><title>Bit Office</title><meta name="description" content="Control your AI agents from anywhere"/><link rel="manifest" href="/manifest.json"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;background-color:#1a1a2e;color:#fff;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><div style="display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px"><h1 style="font-size:28px;margin-bottom:8px">Bit Office</h1><p style="color:#666;font-size:14px">Connecting...</p></div><!--$--><!--/$--><script>
|
|
2
2
|
if ('serviceWorker' in navigator && location.hostname === 'localhost') {
|
|
3
3
|
navigator.serviceWorker.getRegistrations().then(function(regs) {
|
|
4
4
|
for (var r of regs) r.unregister();
|
|
5
5
|
});
|
|
6
6
|
}
|
|
7
|
-
</script><script src="/_next/static/chunks/webpack-
|
|
7
|
+
</script><script src="/_next/static/chunks/webpack-131b3d260a3d9ce4.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[9653,[],\"\"]\n3:I[1329,[],\"\"]\n4:I[7868,[],\"ClientPageRoot\"]\n5:I[9600,[\"863\",\"static/chunks/app/pair/page-932b6cbad193cd3d.js\"],\"default\"]\n8:I[9096,[],\"OutletBoundary\"]\na:I[913,[],\"AsyncMetadataOutlet\"]\nc:I[9096,[],\"ViewportBoundary\"]\ne:I[9096,[],\"MetadataBoundary\"]\nf:\"$Sreact.suspense\"\n11:I[5719,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"KVUUasWqYxW6SNCIo9Tbn\",\"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\":\"#1a1a2e\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}]]}],[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"backgroundColor\":\"#1a1a2e\",\"color\":\"#fff\",\"fontFamily\":\"system-ui, sans-serif\"},\"children\":[[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",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\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L4\",null,{\"Component\":\"$5\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@6\",\"$@7\"]}],null,[\"$\",\"$L8\",null,{\"children\":[\"$L9\",[\"$\",\"$La\",null,{\"promise\":\"$@b\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],null],[\"$\",\"$Le\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$f\",null,{\"fallback\":null,\"children\":\"$L10\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"6:{}\n7:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n9:null\n"])</script><script>self.__next_f.push([1,"b:{\"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,"10:\"$b:metadata\"\n"])</script></body></html>
|
package/dist/web/out/pair.txt
CHANGED
|
@@ -9,7 +9,7 @@ c:I[9096,[],"ViewportBoundary"]
|
|
|
9
9
|
e:I[9096,[],"MetadataBoundary"]
|
|
10
10
|
f:"$Sreact.suspense"
|
|
11
11
|
11:I[5719,[],""]
|
|
12
|
-
0:{"P":null,"b":"
|
|
12
|
+
0:{"P":null,"b":"KVUUasWqYxW6SNCIo9Tbn","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":"#1a1a2e"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"}]]}],["$","body",null,{"style":{"margin":0,"backgroundColor":"#1a1a2e","color":"#fff","fontFamily":"system-ui, sans-serif"},"children":[["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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",["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","searchParams":{},"params":{},"promises":["$@6","$@7"]}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],null],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true}
|
|
13
13
|
6:{}
|
|
14
14
|
7:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
|
|
15
15
|
d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
package/dist/web/out/sw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let e,s={};const
|
|
1
|
+
if(!self.define){let e,s={};const c=(c,i)=>(c=new URL(c+".js",i).href,s[c]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=c,e.onload=s,document.head.appendChild(e)}else e=c,importScripts(c),s()}).then(()=>{let e=s[c];if(!e)throw new Error(`Module ${c} didn’t register its module`);return e}));self.define=(i,a)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(s[n])return;let f={};const t=e=>c(e,n),r={module:{uri:n},exports:f,require:t};s[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:"2f7d6b42bf0aff18dd9aa02f32a0595f"},{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/KVUUasWqYxW6SNCIo9Tbn/_buildManifest.js",revision:"8b0c6ff6b986344758a2acce12a96d75"},{url:"/_next/static/KVUUasWqYxW6SNCIo9Tbn/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/176.7af67c16b9732441.js",revision:"7af67c16b9732441"},{url:"/_next/static/chunks/29.3e7650727aadf8c2.js",revision:"3e7650727aadf8c2"},{url:"/_next/static/chunks/290.d0fe5fb72a5068b2.js",revision:"d0fe5fb72a5068b2"},{url:"/_next/static/chunks/325ca9c7-f84e7e4973790fdf.js",revision:"f84e7e4973790fdf"},{url:"/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js",revision:"e6a0fd3b5c397505"},{url:"/_next/static/chunks/757.6b9b9f11f348e673.js",revision:"6b9b9f11f348e673"},{url:"/_next/static/chunks/810.44213c6355518b0b.js",revision:"44213c6355518b0b"},{url:"/_next/static/chunks/904.4649cb92e3c1355c.js",revision:"4649cb92e3c1355c"},{url:"/_next/static/chunks/977-26ddf708be8caf79.js",revision:"26ddf708be8caf79"},{url:"/_next/static/chunks/989-f3ebca68e0b5e7ee.js",revision:"f3ebca68e0b5e7ee"},{url:"/_next/static/chunks/app/_not-found/page-0f7c77f58dea5cf2.js",revision:"0f7c77f58dea5cf2"},{url:"/_next/static/chunks/app/layout-7ca1be140a482711.js",revision:"7ca1be140a482711"},{url:"/_next/static/chunks/app/office/page-75459bb9d7bfe004.js",revision:"75459bb9d7bfe004"},{url:"/_next/static/chunks/app/page-94da9de9b62f4f4d.js",revision:"94da9de9b62f4f4d"},{url:"/_next/static/chunks/app/pair/page-932b6cbad193cd3d.js",revision:"932b6cbad193cd3d"},{url:"/_next/static/chunks/framework-bec628f2b7cc8f6d.js",revision:"bec628f2b7cc8f6d"},{url:"/_next/static/chunks/main-3ed3b5510eeb64f8.js",revision:"3ed3b5510eeb64f8"},{url:"/_next/static/chunks/main-app-4f4b0701adf58469.js",revision:"4f4b0701adf58469"},{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-131b3d260a3d9ce4.js",revision:"131b3d260a3d9ce4"},{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:"930f03f4ef974ac6287cde191be2a77b"},{url:"/pixel-agents-layout.json",revision:"0d38b5f406ca7ab98518aa8a743194b2"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:function(e){var s=e.response;return _async_to_generator(function(){return _ts_generator(this,function(e){return[2,s&&"opaqueredirect"===s.type?new Response(s.body,{status:200,statusText:"OK",headers:s.headers}):s]})})()}}]}),"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 s=e.sameOrigin,c=e.url.pathname;return!(!s||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 s=e.request,c=e.url.pathname,i=e.sameOrigin;return"1"===s.headers.get("RSC")&&"1"===s.headers.get("Next-Router-Prefetch")&&i&&!c.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var s=e.request,c=e.url.pathname,i=e.sameOrigin;return"1"===s.headers.get("RSC")&&i&&!c.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var s=e.url.pathname;return e.sameOrigin&&!s.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 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[904],{5702:(e,t,r)=>{r.d(t,{Y:()=>i,k:()=>a});let l=new Map,n=new WeakMap;function i(e){let t=n.get(e);if(t)return t;let r=e.length,l=e[0].length,i=[];for(let e=0;e<r+2;e++)i.push(Array(l+2).fill(""));for(let t=0;t<r;t++)for(let r=0;r<l;r++){if(""===e[t][r])continue;let l=t+1,n=r+1;""===i[l-1][n]&&(i[l-1][n]="#FFFFFF"),""===i[l+1][n]&&(i[l+1][n]="#FFFFFF"),""===i[l][n-1]&&(i[l][n-1]="#FFFFFF"),""===i[l][n+1]&&(i[l][n+1]="#FFFFFF")}for(let t=0;t<r;t++)for(let r=0;r<l;r++)""!==e[t][r]&&(i[t+1][r+1]="");return n.set(e,i),i}function a(e,t){let r=l.get(t);r||(r=new WeakMap,l.set(t,r));let n=r.get(e);if(n)return n;let i=e.length,a=e[0].length,o=document.createElement("canvas");o.width=a*t,o.height=i*t;let s=o.getContext("2d");s.imageSmoothingEnabled=!1;for(let r=0;r<i;r++)for(let l=0;l<a;l++){let n=e[r][l];""!==n&&(s.fillStyle=n,s.fillRect(l*t,r*t,t,t))}return r.set(e,o),o}},6904:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var l=r(206),n=r(1406),i=r(8474),a=r(5195);function o(e,t,r,l){let n=r.length,i=n>0?r[0].length:0;if(t<0||t>=n||e<0||e>=i)return!1;let o=r[t][e];return!(o===a.nb.WALL||o===a.nb.VOID||l.has("".concat(e,",").concat(t)))}function s(e,t){let r=e.length,l=r>0?e[0].length:0,n=[];for(let i=0;i<r;i++)for(let r=0;r<l;r++)o(r,i,e,t)&&n.push({col:r,row:i});return n}function u(e,t,r,l,n,i){if(e===r&&t===l)return[];let a=(e,t)=>"".concat(e,",").concat(t),s=a(e,t),u=a(r,l);if(!o(r,l,n,i))return[];let c=new Set;c.add(s);let f=new Map,h=[{col:e,row:t}],d=[{dc:0,dr:-1},{dc:0,dr:1},{dc:-1,dr:0},{dc:1,dr:0}];for(;h.length>0;){let e=h.shift(),t=a(e.col,e.row);if(t===u){let e=[],t=u;for(;t!==s;){let[r,l]=t.split(",").map(Number);e.unshift({col:r,row:l}),t=f.get(t)}return e}for(let r of d){let l=e.col+r.dc,s=e.row+r.dr,u=a(l,s);!c.has(u)&&o(l,s,n,i)&&(c.add(u),f.set(u,t),h.push({col:l,row:s}))}}return[]}var c=r(2243);let f=new Set(["Read","Grep","Glob","WebFetch","WebSearch"]);function h(e,t){return{x:e*a.dn+a.dn/2,y:t*a.dn+a.dn/2}}function d(e,t,r,l){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=l?l.seatCol:1,o=l?l.seatRow:1,s=h(i,o);return{id:e,state:a.Lp.TYPE,dir:l?l.facingDir:a.OP.DOWN,x:s.x,y:s.y,tileCol:i,tileRow:o,path:[],moveProgress:0,currentTool:null,palette:t,hueShift:n,frame:0,frameTimer:0,wanderTimer:0,wanderCount:0,wanderLimit:m(c.Rb,c.he),isActive:!0,seatId:r,bubbleType:null,bubbleTimer:0,seatTimer:0,isSubagent:!1,parentAgentId:null,matrixEffect:null,matrixEffectTimer:0,matrixEffectSeeds:[]}}function g(e,t){return e+Math.random()*(t-e)}function m(e,t){return e+Math.floor(Math.random()*(t-e+1))}function b(e,t,r){return(7*e+13*t+31*Math.floor(r*c.vU)&255)<c.gB}function w(){let e=[];for(let t=0;t<c.W3;t++)e.push(Math.random());return e}var p=r(9631),T=r(9892);class y{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=s(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,r){let l;if(this.agentIdToCharId.has(e))return;let n=this.nextCharId++;this.agentIdToCharId.set(e,n),this.charIdToAgentId.set(n,e);let{palette:i,hueShift:o}=void 0!==r?{palette:r,hueShift:0}:this.pickDiversePalette(),s=this.findFreeSeat();if(s){let e=this.seats.get(s);e.assigned=!0,l=d(n,i,s,e,o)}else{let e=this.walkableTiles.length>0?this.walkableTiles[Math.floor(Math.random()*this.walkableTiles.length)]:{col:1,row:1};(l=d(n,i,null,null,o)).x=e.col*a.dn+a.dn/2,l.y=e.row*a.dn+a.dn/2,l.tileCol=e.col,l.tileRow=e.row}l.matrixEffect="spawn",l.matrixEffectTimer=0,l.matrixEffectSeeds=w(),this.characters.set(n,l)}removeCharacter(e){let t=this.agentIdToCharId.get(e);if(void 0===t)return;let r=this.characters.get(t);if(r&&"despawn"!==r.matrixEffect){if(r.seatId){let e=this.seats.get(r.seatId);e&&(e.assigned=!1)}this.selectedCharId===t&&(this.selectedCharId=null),r.matrixEffect="despawn",r.matrixEffectTimer=0,r.matrixEffectSeeds=w(),r.bubbleType=null}}updateCharacterStatus(e,t){let r=this.agentIdToCharId.get(e);if(void 0===r)return;let l=this.characters.get(r);if(!l)return;let n=l.isActive,i="working"===t||"waiting_approval"===t;l.isActive=i,!i&&n?(l.seatTimer=-1,l.path=[],l.moveProgress=0,this.rebuildFurnitureInstances()):i&&!n&&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 r=this.agentIdToCharId.get(e);if(void 0===r)return;let l=this.characters.get(r);l&&("permission"===t?(l.bubbleType="permission",l.bubbleTimer=0):(l.bubbleType="waiting",l.bubbleTimer=c.WK))}clearBubble(e){let t=this.agentIdToCharId.get(e);if(void 0===t)return;let r=this.characters.get(t);r&&("permission"===r.bubbleType?(r.bubbleType=null,r.bubbleTimer=0):"waiting"===r.bubbleType&&(r.bubbleTimer=Math.min(r.bubbleTimer,c.M_)))}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 l of this.getCharacters().sort((e,t)=>t.y-e.y)){if("despawn"===l.matrixEffect)continue;let n=l.state===a.Lp.TYPE?c.iE:0,i=l.y+n,o=l.x-c.Ns,s=l.x+c.Ns,u=i-c.o3;if(e>=o&&e<=s&&t>=u&&t<=i){var r;return null!=(r=this.charIdToAgentId.get(l.id))?r:null}}return null}setHoveredCharAtPixel(e,t){for(let r of this.getCharacters().sort((e,t)=>t.y-e.y)){if("despawn"===r.matrixEffect)continue;let l=r.state===a.Lp.TYPE?c.iE:0,n=r.y+l,i=r.x-c.Ns,o=r.x+c.Ns,s=n-c.o3;if(e>=i&&e<=o&&t>=s&&t<=n){this.hoveredCharId=r.id;return}}this.hoveredCharId=null}update(e){let t=[];for(let r of this.characters.values()){if(r.matrixEffect){r.matrixEffectTimer+=e,r.matrixEffectTimer>=a.Pz&&("spawn"===r.matrixEffect?(r.matrixEffect=null,r.matrixEffectTimer=0,r.matrixEffectSeeds=[]):t.push(r.id));continue}this.withOwnSeatUnblocked(r,()=>(function(e,t,r,l,n,i){switch(e.frameTimer+=t,e.state){case a.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=a.Lp.IDLE,e.frame=0,e.frameTimer=0,e.wanderTimer=g(c.wj,c.k8),e.wanderCount=0,e.wanderLimit=m(c.Rb,c.he)}break;case a.Lp.IDLE:if(e.frame=0,e.seatTimer<0&&(e.seatTimer=0),e.isActive){if(!e.seatId){e.state=a.Lp.TYPE,e.frame=0,e.frameTimer=0;break}let t=l.get(e.seatId);if(t){let r=u(e.tileCol,e.tileRow,t.seatCol,t.seatRow,n,i);r.length>0?(e.path=r,e.moveProgress=0,e.state=a.Lp.WALK):(e.state=a.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=l.get(e.seatId);if(t){let r=u(e.tileCol,e.tileRow,t.seatCol,t.seatRow,n,i);if(r.length>0){e.path=r,e.moveProgress=0,e.state=a.Lp.WALK,e.frame=0,e.frameTimer=0;break}}}if(r.length>0){let t=r[Math.floor(Math.random()*r.length)],l=u(e.tileCol,e.tileRow,t.col,t.row,n,i);l.length>0&&(e.path=l,e.moveProgress=0,e.state=a.Lp.WALK,e.frame=0,e.frameTimer=0,e.wanderCount++)}e.wanderTimer=g(c.wj,c.k8)}break;case a.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=l.get(e.seatId);t&&e.tileCol===t.seatCol&&e.tileRow===t.seatRow?(e.state=a.Lp.TYPE,e.dir=t.facingDir):e.state=a.Lp.IDLE}else e.state=a.Lp.TYPE;else{if(e.seatId){let t=l.get(e.seatId);if(t&&e.tileCol===t.seatCol&&e.tileRow===t.seatRow){e.state=a.Lp.TYPE,e.dir=t.facingDir,e.seatTimer<0?e.seatTimer=0:e.seatTimer=g(c.Ot,c.Ww),e.wanderCount=0,e.wanderLimit=m(c.Rb,c.he),e.frame=0,e.frameTimer=0;break}}e.state=a.Lp.IDLE,e.wanderTimer=g(c.wj,c.k8)}e.frame=0,e.frameTimer=0;break}let r=e.path[0];e.dir=function(e,t,r,l){let n=r-e;return n>0?a.OP.RIGHT:n<0?a.OP.LEFT:l-t>0?a.OP.DOWN:a.OP.UP}(e.tileCol,e.tileRow,r.col,r.row),e.moveProgress+=c.XE/a.dn*t;let o=h(e.tileCol,e.tileRow),s=h(r.col,r.row),f=Math.min(e.moveProgress,1);if(e.x=o.x+(s.x-o.x)*f,e.y=o.y+(s.y-o.y)*f,e.moveProgress>=1&&(e.tileCol=r.col,e.tileRow=r.row,e.x=s.x,e.y=s.y,e.path.shift(),e.moveProgress=0),e.isActive&&e.seatId){let t=l.get(e.seatId);if(t){let r=e.path[e.path.length-1];if(!r||r.col!==t.seatCol||r.row!==t.seatRow){let r=u(e.tileCol,e.tileRow,t.seatCol,t.seatRow,n,i);r.length>0&&(e.path=r,e.moveProgress=0)}}}}}})(r,e,this.walkableTiles,this.seats,this.tileMap,this.blockedTiles)),"waiting"===r.bubbleType&&(r.bubbleTimer-=e,r.bubbleTimer<=0&&(r.bubbleType=null,r.bubbleTimer=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),r=[];for(let l=0;l<c.ic;l++)e[l]===t&&r.push(l);let l=r[Math.floor(Math.random()*r.length)],n=0;return t>0&&(n=c.qt+Math.floor(Math.random()*c.p7)),{palette:l,hueShift:n}}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 r=this.ownSeatKey(e);r&&this.blockedTiles.delete(r);let l=t();return r&&this.blockedTiles.add(r),l}rebuildFurnitureInstances(){let e=new Set;for(let t of this.characters.values()){if(!t.isActive||!t.seatId)continue;let r=this.seats.get(t.seatId);if(!r)continue;let l=r.facingDir===a.OP.RIGHT?1:r.facingDir===a.OP.LEFT?-1:0,n=r.facingDir===a.OP.DOWN?1:r.facingDir===a.OP.UP?-1:0;for(let t=1;t<=c.Xo;t++)e.add("".concat(r.seatCol+l*t,",").concat(r.seatRow+n*t));for(let t=1;t<=c.ou;t++){let i=r.seatCol+l*t,a=r.seatRow+n*t;0!==l?(e.add("".concat(i,",").concat(a-1)),e.add("".concat(i,",").concat(a+1))):(e.add("".concat(i-1,",").concat(a)),e.add("".concat(i+1,",").concat(a)))}}if(0===e.size){this.furniture=(0,p.Co)(this.layout.furniture);return}let t=this.layout.furniture.map(t=>{let r=(0,T.Um)(t.type);if(!r)return t;for(let l=0;l<r.footprintH;l++)for(let n=0;n<r.footprintW;n++)if(e.has("".concat(t.col+n,",").concat(t.row+l))){let e=(0,T.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=s(this.tileMap,this.blockedTiles)}}var C=r(5702),v=r(2988),I=r(4777),x=r(5055),R=r(4296),M=r(1204);function k(e){let{onAgentClick:t,selectedAgent:r,editMode:o,editorRef:s,onTileClick:u,onTileRightClick:h,onGhostMove:d,onDragStart:g,onDragMove:m,onDragEnd:w,onDeleteBtnClick:p,onRotateBtnClick:k,stateRef:E,onAssetsLoaded:S,zoomRef:P,panRef:L}=e,A=(0,n.useRef)(null),Y=(0,n.useRef)(null),F=(0,n.useRef)(new Set),[B,W]=(0,n.useState)(!1),D=(0,n.useRef)(null),X=(0,n.useRef)(t);X.current=t;let U=(0,n.useRef)(o);U.current=o;let O=(0,n.useRef)(!1),z=(0,n.useRef)({x:0,y:0,panX:0,panY:0}),H=(0,n.useRef)({offsetX:0,offsetY:0});(0,n.useRef)(0);let N=(0,n.useRef)(null),V=(0,n.useCallback)((e,t)=>{let r=E.current;if(!r)return 4;let l=r.layout.cols*c.dn,n=r.layout.rows*c.dn;return Math.max(c.DH,Math.floor(Math.min(e/l,t/n)))},[E]),_=(0,n.useCallback)(()=>{let e=A.current;if(!e)return;let t=e.parentElement;if(!t)return;let r=window.devicePixelRatio||1,l=t.clientWidth,n=t.clientHeight;e.width=l*r,e.height=n*r,e.style.width="".concat(l,"px"),e.style.height="".concat(n,"px");let i=e.getContext("2d");i&&i.scale(r,r),P.current=V(l,n),L.current={x:0,y:0}},[V,P,L]);(0,n.useEffect)(()=>{let e=!1;return(0,R.F)().then(t=>{e||((0,T.ar)(t.tilesetSprites),D.current=t.layout,W(!0),null==S||S())}).catch(t=>{console.warn("[OfficeCanvas] Asset loading failed, using fallbacks:",t),e||(W(!0),null==S||S())}),()=>{e=!0}},[S]),(0,n.useEffect)(()=>{var e;if(!B)return;let t=A.current;if(!t)return;let r=new y(null!=(e=D.current)?e:void 0);for(let[e,t]of(E.current=r,_(),window.addEventListener("resize",_),i.f.getState().agents))r.addCharacter(e,t.name,t.palette),r.updateCharacterStatus(e,t.status),F.current.add(e);let l=window.devicePixelRatio||1,n=function(e,t){let r=e.getContext("2d");r.imageSmoothingEnabled=!1;let l=0,n=0,i=!1,a=e=>{if(i)return;let o=0===l?0:Math.min((e-l)/1e3,c.O9);l=e,t.update(o),r.imageSmoothingEnabled=!1,t.render(r),n=requestAnimationFrame(a)};return n=requestAnimationFrame(a),()=>{i=!0,cancelAnimationFrame(n)}}(t,{update:e=>{r.update(e)},render:e=>{let n,i=t.width/l,o=t.height/l,u=P.current,h=L.current,d=s.current;if(U.current){let e=null;if(d.activeTool===a.VF.FURNITURE_PLACE&&d.selectedFurnitureType){let t=(0,T.Um)(d.selectedFurnitureType);t&&(e=t.sprite)}if(d.dragUid){let t=r.layout.furniture.find(e=>e.uid===d.dragUid);if(t){let r=(0,T.Um)(t.type);r&&(e=r.sprite)}}let t=!1,l=0,i=0,o=1,s=1,u=!1;if(d.selectedFurnitureUid){let e=r.layout.furniture.find(e=>e.uid===d.selectedFurnitureUid);if(e){var g,m;let r=(0,T.Um)(e.type);t=!0,l=e.col,i=e.row,o=null!=(g=null==r?void 0:r.footprintW)?g:1,s=null!=(m=null==r?void 0:r.footprintH)?m:1,u=(0,T.ZZ)(e.type)}}n={showGrid:!0,ghostSprite:e,ghostCol:d.ghostCol,ghostRow:d.ghostRow,ghostValid:d.ghostValid,hasSelection:t,selectedCol:l,selectedRow:i,selectedW:o,selectedH:s,isRotatable:u,deleteButtonBounds:null,rotateButtonBounds:null,showGhostBorder:!0,ghostBorderHoverCol:d.ghostCol,ghostBorderHoverRow:d.ghostRow}}H.current=function(e,t,r,l,n,i,o,s,u,h,d,g,m,w,p){e.clearRect(0,0,t,r);let T=null!=m?m:l.length>0?l[0].length:0,y=null!=w?w:l.length,R=T*a.dn*o,M=y*a.dn*o,k=Math.floor((t-R)/2)+Math.round(s),E=Math.floor((r-M)/2)+Math.round(u);!function(e,t,r,l,n,i,o){let s=a.dn*n,u=(0,I.$0)(),f=t.length,h=f>0?t[0].length:0,d=null!=o?o:h;for(let o=0;o<f;o++)for(let f=0;f<h;f++){var g;let h=t[o][f];if(h===a.nb.VOID)continue;if(h===a.nb.WALL||!u){if(h===a.nb.WALL){let t=o*d+f,r=null==i?void 0:i[t];e.fillStyle=r?(0,x.og)(r):I.ty}else e.fillStyle=c.q3;e.fillRect(r+f*s,l+o*s,s,s);continue}let m=o*d+f,b=null!=(g=null==i?void 0:i[m])?g:{h:0,s:0,b:0,c:0},w=(0,I.To)(h,b),p=(0,C.k)(w,n);e.drawImage(p,r+f*s,l+o*s)}}(e,l,k,E,o,g,m);let S=(0,x.BN)()?(0,x.vb)(l,g,m):[];return!function(e,t,r,l,n,i,o,s){let u=[];for(let e of t){let t=(0,C.k)(e.sprite,i),r=l+e.x*i,a=n+e.y*i;u.push({zY:e.zY,draw:e=>{e.drawImage(t,r,a)}})}for(let e of r){let t=(0,v.Ih)(e.palette,e.hueShift),r=function(e,t){switch(e.state){case a.Lp.TYPE:var r;if((r=e.currentTool)&&f.has(r))return t.reading[e.dir][e.frame%2];return t.typing[e.dir][e.frame%2];case a.Lp.WALK:return t.walk[e.dir][e.frame%4];case a.Lp.IDLE:default:return t.walk[e.dir][1]}}(e,t),h=(0,C.k)(r,i),d=e.state===a.Lp.TYPE?c.iE:0,g=Math.round(l+e.x*i-h.width/2),m=Math.round(n+(e.y+d)*i-h.height),w=e.y+a.dn/2+c.Sg;if(e.matrixEffect){let t=e;u.push({zY:w,draw:e=>{!function(e,t,r,l,n,i){let o=t.matrixEffectTimer/a.Pz,s="spawn"===t.matrixEffect,u=t.matrixEffectTimer,f=c.wN+c.M1;for(let a=0;a<c.W3;a++){var h,d;let g=Math.max(0,Math.min(1,(o-(null!=(h=t.matrixEffectSeeds[a])?h:0)*c.hI)/(1-c.hI)))*f;for(let t=0;t<c.wN;t++){let o=null==(d=r[t])?void 0:d[a],f=o&&""!==o,h=g-t,m=l+a*i,w=n+t*i;if(s)if(h<0)continue;else if(h<1)e.fillStyle=c.zw,e.fillRect(m,w,i,i);else if(h<c.M1){let r=h/c.M1;if(f){e.fillStyle=o,e.fillRect(m,w,i,i);let l=(1-r)*c.Nd;b(a,t,u)&&(e.fillStyle="rgba(0, 255, 65, ".concat(l,")"),e.fillRect(m,w,i,i))}else if(b(a,t,u)){let t=(1-r)*c.gi;e.fillStyle=r<c.Wn?"rgba(0, 255, 65, ".concat(t,")"):r<c.WJ?"rgba(0, 170, 40, ".concat(t,")"):"rgba(0, 85, 20, ".concat(t,")"),e.fillRect(m,w,i,i)}}else f&&(e.fillStyle=o,e.fillRect(m,w,i,i));else if(h<0)f&&(e.fillStyle=o,e.fillRect(m,w,i,i));else if(h<1)e.fillStyle=c.zw,e.fillRect(m,w,i,i);else if(h<c.M1&&b(a,t,u)){let t=h/c.M1,r=(1-t)*c.gi;e.fillStyle=t<c.Wn?"rgba(0, 255, 65, ".concat(r,")"):t<c.WJ?"rgba(0, 170, 40, ".concat(r,")"):"rgba(0, 85, 20, ".concat(r,")"),e.fillRect(m,w,i,i)}}}}(e,t,r,g,m,i)}});continue}let p=null!==o&&e.id===o,T=null!==s&&e.id===s;if(p||T){let e=p?c.O1:c.y9,t=(0,C.Y)(r),l=(0,C.k)(t,i),n=g-i,a=m-i;u.push({zY:w-c.F2,draw:t=>{t.save(),t.globalAlpha=e,t.drawImage(l,n,a),t.restore()}})}u.push({zY:w,draw:e=>{e.drawImage(h,g,m)}})}for(let t of(u.sort((e,t)=>e.zY-t.zY),u))t.draw(e)}(e,S.length>0?[...S,...n]:n,i,k,E,o,h,d),!function(e,t,r,l,n){for(let i of t){if(!i.bubbleType)continue;let t="permission"===i.bubbleType?v.$D:v.VQ,o=1;"waiting"===i.bubbleType&&i.bubbleTimer<c.v3&&(o=i.bubbleTimer/c.v3);let s=(0,C.k)(t,n),u=i.state===a.Lp.TYPE?c.PA:0,f=Math.round(r+i.x*n-s.width/2),h=Math.round(l+(i.y+u-c.$L)*n-s.height-n);e.save(),o<1&&(e.globalAlpha=o),e.drawImage(s,f,h),e.restore()}}(e,i,k,E,o),p&&(p.showGrid&&function(e,t,r,l,n,i,o){let s=a.dn*l;e.strokeStyle=c.AL,e.lineWidth=1,e.beginPath();for(let l=0;l<=n;l++){let n=t+l*s+.5;e.moveTo(n,r),e.lineTo(n,r+i*s)}for(let l=0;l<=i;l++){let i=r+l*s+.5;e.moveTo(t,i),e.lineTo(t+n*s,i)}if(e.stroke(),o){e.save(),e.strokeStyle=c.fJ,e.lineWidth=1,e.setLineDash(c.i);for(let l=0;l<i;l++)for(let i=0;i<n;i++){var u;(null==(u=o[l])?void 0:u[i])===a.nb.VOID&&e.strokeRect(t+i*s+.5,r+l*s+.5,s-1,s-1)}e.restore()}}(e,k,E,o,T,y,l),p.showGhostBorder&&function(e,t,r,l,n,i,o,s){let u=a.dn*l;e.save();let f=[];for(let e=-1;e<=n;e++)f.push({c:e,r:-1}),f.push({c:e,r:i});for(let e=0;e<i;e++)f.push({c:-1,r:e}),f.push({c:n,r:e});for(let{c:l,r:n}of f){let i=t+l*u,a=r+n*u,f=l===o&&n===s;f&&(e.fillStyle=c.Mo,e.fillRect(i,a,u,u)),e.strokeStyle=f?c.pr:c.gD,e.lineWidth=1,e.setLineDash(c.i),e.strokeRect(i+.5,a+.5,u-1,u-1)}e.restore()}(e,k,E,o,T,y,p.ghostBorderHoverCol,p.ghostBorderHoverRow),p.ghostSprite&&p.ghostCol>=0&&function(e,t,r,l,n,i,o,s){let u=(0,C.k)(t,s),f=i+r*a.dn*s,h=o+l*a.dn*s;e.save(),e.globalAlpha=c.qD,e.drawImage(u,f,h),e.globalAlpha=c.W7,e.fillStyle=n?c.TE:c.oj,e.fillRect(f,h,u.width,u.height),e.restore()}(e,p.ghostSprite,p.ghostCol,p.ghostRow,p.ghostValid,k,E,o),p.hasSelection?(!function(e,t,r,l,n,i,o,s){let u=a.dn*s;e.save(),e.strokeStyle=c.Ii,e.lineWidth=2,e.setLineDash(c.n6),e.strokeRect(i+t*u+1,o+r*u+1,l*u-2,n*u-2),e.restore()}(e,p.selectedCol,p.selectedRow,p.selectedW,p.selectedH,k,E,o),p.deleteButtonBounds=function(e,t,r,l,n,i,o,s){let u=a.dn*s,f=i+(t+l)*u+1,h=o+r*u-1,d=Math.max(c.l0,s*c.YX);e.save(),e.beginPath(),e.arc(f,h,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(f-g,h-g),e.lineTo(f+g,h+g),e.moveTo(f+g,h-g),e.lineTo(f-g,h+g),e.stroke(),e.restore(),{cx:f,cy:h,radius:d}}(e,p.selectedCol,p.selectedRow,p.selectedW,p.selectedH,k,E,o),p.isRotatable?p.rotateButtonBounds=function(e,t,r,l,n,i,o,s){let u=a.dn*s,f=Math.max(c.l0,s*c.YX),h=i+t*u-1,d=o+r*u-1;e.save(),e.beginPath(),e.arc(h,d,f,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=f*c.R_;e.beginPath(),e.arc(h,d,g,-(.8*Math.PI),.7*Math.PI),e.stroke();let m=.7*Math.PI,b=h+g*Math.cos(m),w=d+g*Math.sin(m),p=.35*f;return e.beginPath(),e.moveTo(b+.6*p,w-.3*p),e.lineTo(b,w),e.lineTo(b+.7*p,w+.5*p),e.stroke(),e.restore(),{cx:h,cy:d,radius:f}}(e,p.selectedCol,p.selectedRow,p.selectedW,p.selectedH,k,E,o):p.rotateButtonBounds=null):(p.deleteButtonBounds=null,p.rotateButtonBounds=null)),{offsetX:k,offsetY:E}}(e,i,o,r.tileMap,r.furniture,r.getCharacters(),u,h.x,h.y,r.getSelectedCharId(),r.getHoveredCharId(),r.layout.tileColors,r.layout.cols,r.layout.rows,n),N.current=null!=n?n:null}});return Y.current=n,()=>{n(),Y.current=null,E.current=null,F.current.clear(),window.removeEventListener("resize",_)}},[B,_,E,P,L,s]),(0,n.useEffect)(()=>i.f.subscribe(e=>{let t=E.current;if(!t)return;let r=new Set(e.agents.keys());for(let[r,l]of e.agents)F.current.has(r)||(t.addCharacter(r,l.name,l.palette),F.current.add(r)),t.updateCharacterStatus(r,l.status),l.pendingApproval?t.showBubble(r,"permission"):"working"===l.status||"done"===l.status||"error"===l.status?t.showBubble(r,"waiting"):t.clearBubble(r);for(let e of F.current)r.has(e)||(t.removeCharacter(e),F.current.delete(e))}),[E]),(0,n.useEffect)(()=>{var e;null==(e=E.current)||e.selectCharacter(r)},[r,E]);let q=(0,n.useCallback)((e,t)=>{let r=A.current;if(!r)return{x:0,y:0};let l=r.getBoundingClientRect(),n=P.current,{offsetX:i,offsetY:a}=H.current;return{x:(e-l.left-i)/n,y:(t-l.top-a)/n}},[P]),j=(0,n.useCallback)((e,t)=>({col:Math.floor(e/c.dn),row:Math.floor(t/c.dn)}),[]),G=(0,n.useCallback)((e,t)=>{let r=q(e,t);return j(r.x,r.y)},[q,j]),K=(0,n.useCallback)(e=>{if(O.current=!0,z.current={x:e.clientX,y:e.clientY,panX:L.current.x,panY:L.current.y},U.current&&s.current.selectedFurnitureUid){var t;let r=G(e.clientX,e.clientY),l=null==(t=E.current)?void 0:t.layout;if(l){let e=(0,M.iH)(l,r.col,r.row);e&&e.uid===s.current.selectedFurnitureUid&&(null==g||g(r.col,r.row))}}},[L,s,E,G,g]),Z=(0,n.useCallback)(e=>{let t=E.current;if(t&&!U.current){let r=q(e.clientX,e.clientY);t.setHoveredCharAtPixel(r.x,r.y)}if(U.current){let t=G(e.clientX,e.clientY);s.current.dragUid?null==m||m(t.col,t.row):null==d||d(t.col,t.row)}if(!O.current||s.current.dragUid)return;let r=e.clientX-z.current.x,l=e.clientY-z.current.y;L.current={x:z.current.panX+r,y:z.current.panY+l}},[q,G,E,L,s,m,d]),J=(0,n.useCallback)(e=>{let t=O.current;if(O.current=!1,s.current.dragUid){let t=G(e.clientX,e.clientY);null==w||w(t.col,t.row);return}let r=Math.abs(e.clientX-z.current.x),l=Math.abs(e.clientY-z.current.y);if(t&&(r>5||l>5))return;let n=E.current;if(!n)return;if(U.current){let t=N.current;if(t){let r=A.current;if(r){let l=r.getBoundingClientRect(),n=e.clientX-l.left,i=e.clientY-l.top;if(t.deleteButtonBounds){let{cx:e,cy:r,radius:l}=t.deleteButtonBounds;if(Math.sqrt((n-e)**2+(i-r)**2)<=l){null==p||p();return}}if(t.rotateButtonBounds){let{cx:e,cy:r,radius:l}=t.rotateButtonBounds;if(Math.sqrt((n-e)**2+(i-r)**2)<=l){null==k||k();return}}}}let r=G(e.clientX,e.clientY);null==u||u(r.col,r.row);return}let i=q(e.clientX,e.clientY),a=n.getAgentAtPixel(i.x,i.y);a&&X.current(a)},[q,G,E,s,u,w,p,k]),$=(0,n.useCallback)(e=>{if(!U.current)return;e.preventDefault();let t=G(e.clientX,e.clientY);null==h||h(t.col,t.row)},[G,h]),Q=(0,n.useCallback)(e=>{},[]),ee=(0,n.useRef)([]),et=(0,n.useRef)(0),er=(0,n.useCallback)(e=>{if(ee.current=Array.from(e.touches),2===e.touches.length){let t=e.touches[0].clientX-e.touches[1].clientX,r=e.touches[0].clientY-e.touches[1].clientY;et.current=Math.sqrt(t*t+r*r)}else 1===e.touches.length&&(O.current=!0,z.current={x:e.touches[0].clientX,y:e.touches[0].clientY,panX:L.current.x,panY:L.current.y})},[L]),el=(0,n.useCallback)(e=>{if(2===e.touches.length){let t=e.touches[0].clientX-e.touches[1].clientX,r=e.touches[0].clientY-e.touches[1].clientY,l=Math.sqrt(t*t+r*r),n=l-et.current;Math.abs(n)>20&&(P.current=Math.max(c.DH,Math.min(c.ZV,P.current+(n>0?1:-1))),et.current=l)}else if(1===e.touches.length&&O.current){let t=e.touches[0].clientX-z.current.x,r=e.touches[0].clientY-z.current.y;L.current={x:z.current.panX+t,y:z.current.panY+r}}},[P,L]),en=(0,n.useCallback)(e=>{if(0===e.touches.length&&1===ee.current.length){let e=ee.current[0],t=Math.abs(e.clientX-z.current.x),r=Math.abs(e.clientY-z.current.y);if(t<10&&r<10)if(U.current){let t=G(e.clientX,e.clientY);null==u||u(t.col,t.row)}else{let t=E.current;if(t){let r=q(e.clientX,e.clientY),l=t.getAgentAtPixel(r.x,r.y);l&&X.current(l)}}}O.current=!1,ee.current=Array.from(e.touches)},[q,G,E,u]),ei=o?s.current.activeTool===a.VF.ERASE?"crosshair":s.current.activeTool===a.VF.EYEDROPPER?"copy":s.current.activeTool===a.VF.FURNITURE_PLACE?"cell":s.current.dragUid?"grabbing":"default":"grab";return(0,l.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"hidden",backgroundColor:"#12121f"},children:[!B&&(0,l.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,l.jsx)("canvas",{ref:A,onPointerDown:K,onPointerMove:Z,onPointerUp:J,onContextMenu:$,onWheel:Q,onTouchStart:er,onTouchMove:el,onTouchEnd:en,style:{display:"block",width:"100%",height:"100%",touchAction:"none",cursor:ei}})]})}}}]);
|