mcard-studio 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/astro.config.mjs +6 -1
  2. package/bin/mcard-studio.mjs +1 -1
  3. package/dist/client/_astro/{ChartAnalyticsViewlet.Cevj0EOs.js → ChartAnalyticsViewlet.jrwIemvb.js} +1 -1
  4. package/dist/client/_astro/ClmPcardViewlet.C-fU7oZf.js +3 -0
  5. package/dist/client/_astro/D3GraphViewlet.BCZl0b2U.js +2 -0
  6. package/dist/client/_astro/DockviewSpatialWorkbench.B_I1GJHw.js +12 -0
  7. package/dist/client/_astro/{DocumentViewlets.Dm_GL3AL.js → DocumentViewlets.B53IqmpY.js} +1 -1
  8. package/dist/client/_astro/ExcalidrawWhiteboardViewlet.CFpPYSdn.js +1 -0
  9. package/dist/client/_astro/{FaroVCardSpanInstrumenter.BIk2NhJY.js → FaroVCardSpanInstrumenter.un8kDMWv.js} +1 -1
  10. package/dist/client/_astro/{FontSpecimenViewlet.CpONhJh0.js → FontSpecimenViewlet.D7Aw2xBZ.js} +1 -1
  11. package/dist/client/_astro/HeadMeta.astro_astro_type_script_index_0_lang.VDRYJCM-.js +1 -0
  12. package/dist/client/_astro/{ImageViewlet.CHeNvX6L.js → ImageViewlet.D4FN87n_.js} +1 -1
  13. package/dist/client/_astro/{KatexFormulaViewlet.Cy_InWOK.js → KatexFormulaViewlet.CzhdIOw8.js} +1 -1
  14. package/dist/client/_astro/KoishiChatViewlet.5mepQvLX.js +16 -0
  15. package/dist/client/_astro/MCardLibraryHarness.DE8KeghO.js +2 -0
  16. package/dist/client/_astro/{MarkdownViewlet.qoPlM-TZ.js → MarkdownViewlet.CRuuXXmF.js} +1 -1
  17. package/dist/client/_astro/{MermaidDiagramViewlet.RnwDfQl6.js → MermaidDiagramViewlet.eW6sk-rF.js} +1 -1
  18. package/dist/client/_astro/PCardRendererBridge.oxVKc0gN.js +1 -0
  19. package/dist/client/_astro/RendererPCardRegistry.CWjYZs2H.js +1 -0
  20. package/dist/client/_astro/{SchemaYamlViewlet.D6HVdmrq.js → SchemaYamlViewlet.ZJBvxItR.js} +1 -1
  21. package/dist/client/_astro/{ShellContainer.astro_astro_type_script_index_0_lang.2oi8fhQo.js → ShellContainer.astro_astro_type_script_index_0_lang.j_ELcN5d.js} +1 -1
  22. package/dist/client/_astro/{Spatial3dViewlet.CCYBSSib.js → Spatial3dViewlet.DnVMBENJ.js} +1 -1
  23. package/dist/client/_astro/StudioWorkbench.Blo5oSIw.js +7 -0
  24. package/dist/client/_astro/{SvgViewlet.BxlWQ-JX.js → SvgViewlet.BCje7Qqb.js} +1 -1
  25. package/dist/client/_astro/{TerminalView.DWZR-hUa.js → TerminalView.C_Ksz6lT.js} +4 -4
  26. package/dist/client/_astro/{ThemeSettingsViewlet.Cb1r8fWw.js → ThemeSettingsViewlet.DJpjQQ0Z.js} +1 -1
  27. package/dist/client/_astro/{TikzDiagramViewlet.CqY7VTeP.js → TikzDiagramViewlet.CXb1A8nf.js} +1 -1
  28. package/dist/client/_astro/{VideoPlayerViewlet.DoSYmmoQ.js → VideoPlayerViewlet.CmECt7yT.js} +1 -1
  29. package/dist/client/_astro/{WebappZenViewlet.CQW50OhX.js → WebappZenViewlet.whCmGVHR.js} +1 -1
  30. package/dist/client/_astro/{WelcomeViewport.LwKTA6h7.js → WelcomeViewport.BiYwLh6l.js} +1 -1
  31. package/dist/client/_astro/__vite-browser-external.CQZnr-r3.js +1 -0
  32. package/dist/client/_astro/{agentIdentityCredentialService.BtKVsl2C.js → agentIdentityCredentialService.UzMMwBwv.js} +5 -5
  33. package/dist/client/_astro/cardTypeDetector.Ci4APwhX.js +1 -0
  34. package/dist/client/_astro/disposable.Dsb0sbRP.js +1 -0
  35. package/dist/client/_astro/{markdownService.D-tM2RYx.js → markdownService.BgWjyJ57.js} +1 -1
  36. package/dist/client/_astro/{mcardStore.BiAvqM-D.js → mcardStore.CT-ollfl.js} +2 -2
  37. package/dist/client/_astro/mcardVfs.2UOw9Z-r.js +3 -0
  38. package/dist/client/_astro/polyfills._3wYPjZf.js +1 -0
  39. package/dist/client/_astro/rendererEventBus.DMH9afq9.js +1 -0
  40. package/dist/client/_astro/themeStore.CEt0e54l.js +1 -0
  41. package/dist/client/_astro/{tikzCompiler.DFojjdxR.js → tikzCompiler.fe3qomFY.js} +1 -1
  42. package/dist/client/_astro/{useMCardHydration.Co47OH3D.js → useMCardHydration.7Z-HfBh5.js} +1 -1
  43. package/dist/client/_astro/vendor-ai.D6NcJ6lu.js +69 -0
  44. package/dist/client/_astro/vendor-clm-kernel.Bvk3XHk2.js +116 -0
  45. package/dist/client/_astro/vfsHandles.IX_wTpw_.js +1 -0
  46. package/dist/client/_astro/vfsPersistence.BuhXYeSb.js +1 -0
  47. package/dist/client/_astro/vfsTransactions.C_IQQg0s.js +1 -0
  48. package/dist/client/_astro/{workspaceStore.CXakha4Y.js → workspaceStore.CD0kAVAl.js} +1 -1
  49. package/dist/client/js/buffer-polyfill.js +14 -0
  50. package/dist/server/chunks/{StudioLayout_D163irJ0.mjs → StudioLayout_B5ZnlqjF.mjs} +2 -2
  51. package/dist/server/chunks/{_.._ZXsz792-.mjs → _.._5gPhVOLM.mjs} +1 -1
  52. package/dist/server/chunks/{mcard-library_DvPPUs9_.mjs → mcard-library_7Wzoihkm.mjs} +1 -1
  53. package/dist/server/chunks/{ws-server-init_CkcgcI5V.mjs → ws-server-init_DUjuR2-o.mjs} +3 -3
  54. package/dist/server/entry.mjs +8 -4
  55. package/dist/server/entry2.mjs +3 -3
  56. package/dist/server/virtual_astro_middleware.mjs +1 -1
  57. package/package.json +1 -1
  58. package/public/js/buffer-polyfill.js +14 -0
  59. package/src/layouts/StudioLayout.astro +1 -0
  60. package/src/pages/index.astro +75 -0
  61. package/src/services/inBrowserLlm/engines/litertEngine.ts +1 -1
  62. package/dist/client/_astro/ClmPcardViewlet.DW5Yft0E.js +0 -3
  63. package/dist/client/_astro/D3GraphViewlet.DAjPz1DP.js +0 -2
  64. package/dist/client/_astro/DockviewSpatialWorkbench.DyQjSoHd.js +0 -12
  65. package/dist/client/_astro/ExcalidrawWhiteboardViewlet.DrlW7B6G.js +0 -1
  66. package/dist/client/_astro/HeadMeta.astro_astro_type_script_index_0_lang.DGXU-3Lu.js +0 -1
  67. package/dist/client/_astro/KoishiChatViewlet.B0eDEMnT.js +0 -16
  68. package/dist/client/_astro/MCardLibraryHarness.CUJLJFBt.js +0 -2
  69. package/dist/client/_astro/PCardRendererBridge.BnyaE05I.js +0 -1
  70. package/dist/client/_astro/RendererPCardRegistry.CLr4j1Ub.js +0 -1
  71. package/dist/client/_astro/StudioWorkbench.CF0SOYwy.js +0 -7
  72. package/dist/client/_astro/cardTypeDetector.C9kGObMh.js +0 -1
  73. package/dist/client/_astro/disposable.66apX1Q2.js +0 -1
  74. package/dist/client/_astro/empty.DOwCrGXH.js +0 -1
  75. package/dist/client/_astro/mcardVfs.Bj-RA0p7.js +0 -2
  76. package/dist/client/_astro/path.CR60mj9W.js +0 -1
  77. package/dist/client/_astro/polyfills.DcBkS56X.js +0 -1
  78. package/dist/client/_astro/rendererEventBus.CyFnSRLk.js +0 -1
  79. package/dist/client/_astro/themeStore.zUMFLo3Q.js +0 -1
  80. package/dist/client/_astro/vendor-ai.CZe7UVVK.js +0 -69
  81. package/dist/client/_astro/vfsHandles.B-nczBRy.js +0 -1
  82. package/dist/client/_astro/vfsPersistence.D6zRzVML.js +0 -1
  83. package/dist/client/_astro/vfsTransactions.04mkEHxD.js +0 -1
@@ -0,0 +1 @@
1
+ import{h as e}from"./vendor-clm-kernel.Bvk3XHk2.js";import{h as t}from"./themeStore.CEt0e54l.js";import{y as n}from"./mcardStore.CT-ollfl.js";import{n as r}from"./pathsConfig.D0hV34p7.js";import{n as i,t as a}from"./cardTypeDetector.Ci4APwhX.js";function o(e){let t=(e||``).trim(),n=t,r=`raw`;n.startsWith(`mcard://`)?(r=`mcard`,n=n.slice(8)):n.startsWith(`mcard:`)?(r=`mcard`,n=n.slice(6)):n.startsWith(`pcard://`)?(r=`pcard`,n=n.slice(8)):n.startsWith(`pcard:`)&&(r=`pcard`,n=n.slice(6));let[i,a]=n.split(`#`),[o,s]=i.split(`?`),c={};if(s)try{new URLSearchParams(s).forEach((e,t)=>{c[t]=e})}catch{s.split(`&`).forEach(e=>{let[t,n]=e.split(`=`);t&&(c[decodeURIComponent(t)]=decodeURIComponent(n||``))})}return{cleanHandle:o.trim(),scheme:r,params:c,anchor:a?a.trim():void 0,rawTarget:t}}function s(e,t){let n=(e||``).trim();n.startsWith(`mcard://`)&&(n=n.replace(/^mcard:\/\//,``));let i=n.replace(/:/g,`/`).replace(/^[\/\\]+/,``);return i.toLowerCase().endsWith(`.md`)?r({b64:i,versionHash:t,cacheBust:!t}):r({path:i,versionHash:t,cacheBust:!t})}function c(e,t,r){if(!e)return null;let i=r||n.get();if(!i)return null;let a=o(e).cleanHandle;if(!a)return null;if(i[a])return i[a];let s=a.replace(/\//g,`:`);if(i[s])return i[s];let c=a.replace(/:/g,`/`);if(i[c])return i[c];if(!s.endsWith(`.md`)&&i[`${s}.md`])return i[`${s}.md`];let l=Object.values(i),u=l.find(e=>e.handle===a||e.handle===s||e.handle===c||e.path===a||e.path===c||e.path.replace(/\//g,`:`)===s);if(u)return u;if(!a.endsWith(`.md`)){let e=`${a}.md`,t=`${s}.md`;if(u=l.find(n=>n.handle===t||n.path===e||n.name===e),u)return u}let d=a.toLowerCase(),f=d.endsWith(`.md`)?d:`${d}.md`;if(u=l.find(e=>{let t=e.name.toLowerCase(),n=t.replace(/\.[^.]+$/,``);return t===d||t===f||n===d}),u)return u;if(t&&t.path){let e=t.path.substring(0,t.path.lastIndexOf(`/`));if(e){let t=`${e}/${a}`.replace(/\/+/g,`/`),n=t.replace(/\//g,`:`);if(i[n])return i[n];if(!n.endsWith(`.md`)&&i[`${n}.md`])return i[`${n}.md`];if(u=l.find(e=>e.path===t||e.path===`${t}.md`),u)return u}}return u=l.find(e=>e.path.endsWith(`/${a}`)||e.path.endsWith(`/${a}.md`)||e.handle.endsWith(`:${s}`)||e.handle.endsWith(`:${s}.md`)),u||null}async function l(r){if(!r)return null;try{let o=await e({uri:r,backend:t.storageBackend,fallback:`stale`,cache:!0});if(o.content){let e=i(r),t=a({path:r,mimeType:e}),s={handle:r,hash:o.hash,path:r.replace(/:/g,`/`),name:r.split(`:`).pop()||r,mimeType:e,detectedType:t.detectedType,epistemicStatus:`definition`,readOnly:!0,content:o.content,subclass:t.subclass};return n.setKey(r,s),s}}catch(e){console.warn(`[MCardVFS] Remote resolution failed for ${r}:`,e)}return null}export{s as n,l as r,c as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime.Dd_uD5pT.js";import{F as t}from"./vendor-clm-kernel.Bvk3XHk2.js";import{h as n}from"./themeStore.CEt0e54l.js";import{a as r,y as i}from"./mcardStore.CT-ollfl.js";import{t as a}from"./pathsConfig.D0hV34p7.js";var o=class{options;isFlushing=!1;flushPromise=null;currentGeneration=0;retryAttempts=0;debounceTimer=null;state=`idle`;constructor(e){this.options=e}scheduleFlush(e=300){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.flush().catch(e=>console.error(`[StorageSupervisor] Flush error:`,e))},e)}async flush(){return this.isFlushing&&this.flushPromise?this.flushPromise:(this.isFlushing=!0,this.transition(`saving`),this.flushPromise=(async()=>{try{await this.options.flush(),this.currentGeneration++,this.retryAttempts=0,this.transition(`persistent`)}catch(e){throw this.transition(`error`),e}finally{this.isFlushing=!1,this.flushPromise=null}})(),this.flushPromise)}handleStaleConflict(e,t){this.transition(`stale`),console.warn(`[StorageSupervisor] Stale writer conflict: expected gen ${e}, found ${t}`)}async retryFlush(){try{return await this.flush(),!0}catch{return this.retryAttempts++,!1}}getState(){return this.state}getCurrentGeneration(){return this.currentGeneration}getRetryAttempts(){return this.retryAttempts}dispose(){this.debounceTimer&&=(clearTimeout(this.debounceTimer),null),this.isFlushing=!1,this.flushPromise=null}transition(e){this.state=e,this.options.onStateChange?.(e)}},s=e({STORE_CAS:()=>d,STORE_HANDLES:()=>f,STORE_HISTORY:()=>p,STORE_SNAPSHOTS:()=>m,getSqliteBytesFromIndexedDb:()=>T,hydrateFromIndexedDb:()=>C,idbGet:()=>_,idbGetAll:()=>v,idbPut:()=>y,loadCardsFromIndexedDb:()=>E,openIndexedDb:()=>g,saveSqliteBytesToIndexedDb:()=>w,triggerIndexedDbSync:()=>S,vfsStorageSupervisor:()=>x}),c=a.paths.workspace_dirname,l=`clm_workbench_db`,u=2,d=`clm_cas_blobs`,f=`clm_handle_registry`,p=`clm_handle_history`,m=`clm_sqlite_snapshots`,h=`clm_content_memory_db`;function g(){return new Promise((e,t)=>{if(typeof window>`u`||!window.indexedDB)return t(Error(`IndexedDB not available`));let n=window.indexedDB.open(l,u);n.onupgradeneeded=()=>{let e=n.result;e.objectStoreNames.contains(`clm_cas_blobs`)||e.createObjectStore(d,{keyPath:`hash`}),e.objectStoreNames.contains(`clm_handle_registry`)||e.createObjectStore(f,{keyPath:`handle`}),e.objectStoreNames.contains(`clm_handle_history`)||e.createObjectStore(p,{keyPath:`id`,autoIncrement:!0}),e.objectStoreNames.contains(`clm_sqlite_snapshots`)||e.createObjectStore(m,{keyPath:`id`}),e.objectStoreNames.contains(h)||e.createObjectStore(h)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}async function _(e,t){try{let n=await g();return new Promise((r,i)=>{let a=n.transaction(e,`readonly`).objectStore(e).get(t);a.onsuccess=()=>r(a.result),a.onerror=()=>i(a.error)})}catch{return}}async function v(e){try{let t=await g();return new Promise((n,r)=>{let i=t.transaction(e,`readonly`).objectStore(e).getAll();i.onsuccess=()=>n(i.result||[]),i.onerror=()=>r(i.error)})}catch{return[]}}async function y(e,t,n){try{let r=await g();return new Promise((i,a)=>{let o=r.transaction(e,`readwrite`).objectStore(e),s=n===void 0?o.put(t):o.put(t,n);s.onsuccess=()=>i(),s.onerror=()=>a(s.error)})}catch{}}async function b(){if(typeof window>`u`||!window.indexedDB)return;let e=i.get(),t=Object.values(e),r=`${c}:`,a=t.filter(e=>e.handle.startsWith(r)||e.scope===c||e.path.startsWith(`${c}/`)),o=(await g()).transaction([d,f,p,m,h],`readwrite`),s=o.objectStore(d),l=o.objectStore(f);for(let e of a)e.hash&&e.content!==void 0&&s.put({hash:e.hash,content:e.content,mimeType:e.mimeType,size:typeof e.content==`string`?e.content.length:e.content?.byteLength||0}),l.put({handle:e.handle,scope:c,path:e.path,name:e.name,hash:e.hash,detectedType:e.detectedType,epistemicStatus:e.epistemicStatus,mtime:e.mtime||Date.now()});let u=n.storageBackend;if(u&&typeof u.exportBinary==`function`){let e=u.exportBinary();e&&o.objectStore(m).put({id:`latest`,bytes:e,mtime:Date.now()})}let _=a.map(e=>({handle:e.handle,hash:e.hash,path:e.path,name:e.name,mimeType:e.mimeType,detectedType:e.detectedType,epistemicStatus:e.epistemicStatus,readOnly:e.readOnly,subclass:e.subclass,content:e.content}));o.objectStore(h).put(_,`clm_cards`)}var x=new o({flush:b,onStateChange:e=>{r({isPersistent:e===`persistent`,lastSavedIso:new Date().toISOString(),supervisorState:e})}});function S(){let e=i.get(),t=Object.values(e),a=0;for(let e of t)typeof e.content==`string`?a+=e.content.length:e.content instanceof Uint8Array&&(a+=e.content.byteLength);let o=n.storageBackend.constructor.name,s=o.includes(`Sqlite`)?`sqlite`:o.includes(`SqlJs`)?`sqljs`:`memory`;r({backendType:s,cardCount:t.length,totalBytes:a,isPersistent:!0,lastSavedIso:new Date().toISOString()}),x.scheduleFlush(300)}async function C(){if(typeof window>`u`||!window.indexedDB)return!1;try{let e=await v(f),a=`${c}:`,o=e.filter(e=>e.scope===c||e.handle&&e.handle.startsWith(a)),s=i.get(),l=t.create(`did:clm:agent:idb`),u=0,p=0;if(o.length>0)for(let e of o){let t=``;if(e.hash){let n=await _(d,e.hash);n&&n.content!==void 0&&(t=n.content)}if(!s[e.handle]||!s[e.handle].content){let r=n.writeFile(e.path,t||``,l);s[e.handle]={...e,content:t,coreCard:r},u++}typeof t==`string`&&(p+=t.length)}else{let e=await _(h,`clm_cards`);if(Array.isArray(e)&&e.length>0){for(let t of e)if((t.path.startsWith(`${c}/`)||t.handle.startsWith(a))&&(!s[t.handle]||!s[t.handle].content)){let e=n.writeFile(t.path,t.content||``,l);s[t.handle]={...t,coreCard:e},u++}}}return u>0&&(i.set({...s}),r({cardCount:Object.keys(s).length,totalBytes:p,isPersistent:!0,lastSavedIso:new Date().toISOString()}),!0)}catch(e){return console.warn(`[MCardVFS] Failed to hydrate from IndexedDB:`,e),!1}}async function w(e){typeof window<`u`&&window.indexedDB&&await y(m,{id:`latest`,bytes:e,mtime:Date.now()})}async function T(){if(typeof window<`u`&&window.indexedDB)return(await _(m,`latest`))?.bytes}async function E(){if(typeof window<`u`&&window.indexedDB)return _(h,`clm_cards`)}export{s as i,w as n,S as r,C as t};
@@ -0,0 +1 @@
1
+ import{E as e,F as t}from"./vendor-clm-kernel.Bvk3XHk2.js";import{h as n}from"./themeStore.CEt0e54l.js";import{y as r}from"./mcardStore.CT-ollfl.js";import{r as i}from"./pathsConfig.D0hV34p7.js";import{n as a,t as o}from"./cardTypeDetector.Ci4APwhX.js";import{r as s}from"./vfsPersistence.BuhXYeSb.js";async function c(i){let c=t.create(`did:clm:agent:user`),l=[];for(let t of i){let i=t.name.replace(/^[/\\]+/,``),s=`uploads/${i}`,u=s.replace(/\//g,`:`),d=t.mimeType||a(i),f=o({path:s,mimeType:d}),p=n.writeFile(s,t.content,c),m={handle:u,hash:p.hash.asHex(),path:s,name:i,mimeType:d,detectedType:f.detectedType,epistemicStatus:e(s),readOnly:!1,scope:`local-db`,subclass:f.subclass,content:t.content,coreCard:p};r.setKey(u,m),l.push(m)}return s(),l}async function l(e){let a=i(`vfs_tree`),o=await fetch(`${a}?scope=${encodeURIComponent(e)}`);if(!o.ok)throw Error(`Failed to fetch scope ${e} for forking: HTTP ${o.status}`);let c=await o.json();if(!c.success||!Array.isArray(c.files))throw Error(`Malformed tree response for fork`);let l=t.create(`did:clm:agent:user`),u=0;for(let t of c.files){let i=`forked/${e}/${t.path}`,a=i.replace(/\//g,`:`),o=t.content??``,s=n.writeFile(i,o,l),c={...t,handle:a,hash:s.hash.asHex(),path:i,name:t.name,readOnly:!1,scope:`local-db`,content:o,coreCard:s};r.setKey(a,c),u++}return s(),u}export{c as executeFileUploadTransaction,l as executeForkDirectoryTransaction};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime.Dd_uD5pT.js";import{g as t}from"./themeStore.zUMFLo3Q.js";import{i as n}from"./pathsConfig.D0hV34p7.js";var r=e({$activeWorkspaceRoot:()=>o,$explorerSearchFilter:()=>c,clearExplorerSearchFilter:()=>d,setActiveWorkspaceRoot:()=>s,setExplorerSearchFilter:()=>u}),i=`clm:active_workspace_scope`;function a(){if(typeof window<`u`)try{let e=localStorage.getItem(i);if(e===`local-db`||n().some(t=>t.id===e)&&e)return e}catch{}return`local-db`}var o=t(a());function s(e){let t=e===`local-db`,r=n().some(t=>t.id===e);if(!t&&!r){console.warn(`[WorkspaceStore] Invalid workspace scope: ${e}`);return}if(o.set(e),typeof window<`u`)try{localStorage.setItem(i,e)}catch{}}var c=t(``),l=null;function u(e,t=!1){if(l&&=(clearTimeout(l),null),t){c.set(e);return}l=setTimeout(()=>{c.set(e),l=null},150)}function d(){l&&=(clearTimeout(l),null),c.set(``)}export{r as a,u as i,c as n,d as r,o as t};
1
+ import{n as e}from"./rolldown-runtime.Dd_uD5pT.js";import{g as t}from"./themeStore.CEt0e54l.js";import{i as n}from"./pathsConfig.D0hV34p7.js";var r=e({$activeWorkspaceRoot:()=>o,$explorerSearchFilter:()=>c,clearExplorerSearchFilter:()=>d,setActiveWorkspaceRoot:()=>s,setExplorerSearchFilter:()=>u}),i=`clm:active_workspace_scope`;function a(){if(typeof window<`u`)try{let e=localStorage.getItem(i);if(e===`local-db`||n().some(t=>t.id===e)&&e)return e}catch{}return`local-db`}var o=t(a());function s(e){let t=e===`local-db`,r=n().some(t=>t.id===e);if(!t&&!r){console.warn(`[WorkspaceStore] Invalid workspace scope: ${e}`);return}if(o.set(e),typeof window<`u`)try{localStorage.setItem(i,e)}catch{}}var c=t(``),l=null;function u(e,t=!1){if(l&&=(clearTimeout(l),null),t){c.set(e);return}l=setTimeout(()=>{c.set(e),l=null},150)}function d(){l&&=(clearTimeout(l),null),c.set(``)}export{r as a,u as i,c as n,d as r,o as t};
@@ -0,0 +1,14 @@
1
+ (()=>{var yr=Object.create;var H=Object.defineProperty;var wr=Object.getOwnPropertyDescriptor;var xr=Object.getOwnPropertyNames;var Br=Object.getPrototypeOf,Er=Object.prototype.hasOwnProperty;var N=(i,r)=>()=>(r||i((r={exports:{}}).exports,r),r.exports);var dr=(i,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of xr(r))!Er.call(i,e)&&e!==t&&H(i,e,{get:()=>r[e],enumerable:!(n=wr(r,e))||n.enumerable});return i};var gr=(i,r,t)=>(t=i!=null?yr(Br(i)):{},dr(r||!i||!i.__esModule?H(t,"default",{value:i,enumerable:!0}):t,i));var z=N(S=>{"use strict";S.byteLength=Ir;S.toByteArray=Ar;S.fromByteArray=Rr;var B=[],w=[],mr=typeof Uint8Array<"u"?Uint8Array:Array,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(m=0,V=M.length;m<V;++m)B[m]=M[m],w[M.charCodeAt(m)]=m;var m,V;w[45]=62;w[95]=63;function X(i){var r=i.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=i.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function Ir(i){var r=X(i),t=r[0],n=r[1];return(t+n)*3/4-n}function Fr(i,r,t){return(r+t)*3/4-t}function Ar(i){var r,t=X(i),n=t[0],e=t[1],o=new mr(Fr(i,n,e)),u=0,f=e>0?n-4:n,c;for(c=0;c<f;c+=4)r=w[i.charCodeAt(c)]<<18|w[i.charCodeAt(c+1)]<<12|w[i.charCodeAt(c+2)]<<6|w[i.charCodeAt(c+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return e===2&&(r=w[i.charCodeAt(c)]<<2|w[i.charCodeAt(c+1)]>>4,o[u++]=r&255),e===1&&(r=w[i.charCodeAt(c)]<<10|w[i.charCodeAt(c+1)]<<4|w[i.charCodeAt(c+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Ur(i){return B[i>>18&63]+B[i>>12&63]+B[i>>6&63]+B[i&63]}function Tr(i,r,t){for(var n,e=[],o=r;o<t;o+=3)n=(i[o]<<16&16711680)+(i[o+1]<<8&65280)+(i[o+2]&255),e.push(Ur(n));return e.join("")}function Rr(i){for(var r,t=i.length,n=t%3,e=[],o=16383,u=0,f=t-n;u<f;u+=o)e.push(Tr(i,u,u+o>f?f:u+o));return n===1?(r=i[t-1],e.push(B[r>>2]+B[r<<4&63]+"==")):n===2&&(r=(i[t-2]<<8)+i[t-1],e.push(B[r>>10]+B[r>>4&63]+B[r<<2&63]+"=")),e.join("")}});var J=N(k=>{k.read=function(i,r,t,n,e){var o,u,f=e*8-n-1,c=(1<<f)-1,l=c>>1,s=-7,p=t?e-1:0,F=t?-1:1,x=i[r+p];for(p+=F,o=x&(1<<-s)-1,x>>=-s,s+=f;s>0;o=o*256+i[r+p],p+=F,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=n;s>0;u=u*256+i[r+p],p+=F,s-=8);if(o===0)o=1-l;else{if(o===c)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-l}return(x?-1:1)*u*Math.pow(2,o-n)};k.write=function(i,r,t,n,e,o){var u,f,c,l=o*8-e-1,s=(1<<l)-1,p=s>>1,F=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,L=n?1:-1,ar=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+p>=1?r+=F/c:r+=F*Math.pow(2,1-p),r*c>=2&&(u++,c/=2),u+p>=s?(f=0,u=s):u+p>=1?(f=(r*c-1)*Math.pow(2,e),u=u+p):(f=r*Math.pow(2,p-1)*Math.pow(2,e),u=0));e>=8;i[t+x]=f&255,x+=L,f/=256,e-=8);for(u=u<<e|f,l+=e;l>0;i[t+x]=u&255,x+=L,u/=256,l-=8);i[t+x-L]|=ar*128}});var lr=N(R=>{"use strict";var D=z(),U=J(),K=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;R.Buffer=h;R.SlowBuffer=Nr;R.INSPECT_MAX_BYTES=50;var _=2147483647;R.kMaxLength=_;h.TYPED_ARRAY_SUPPORT=Cr();!h.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Cr(){try{let i=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(i,r),i.foo()===42}catch{return!1}}Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}});function d(i){if(i>_)throw new RangeError('The value "'+i+'" is invalid for option "size"');let r=new Uint8Array(i);return Object.setPrototypeOf(r,h.prototype),r}function h(i,r,t){if(typeof i=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(i)}return rr(i,r,t)}h.poolSize=8192;function rr(i,r,t){if(typeof i=="string")return _r(i,r);if(ArrayBuffer.isView(i))return br(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(E(i,ArrayBuffer)||i&&E(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(E(i,SharedArrayBuffer)||i&&E(i.buffer,SharedArrayBuffer)))return P(i,r,t);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=i.valueOf&&i.valueOf();if(n!=null&&n!==i)return h.from(n,r,t);let e=Lr(i);if(e)return e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return h.from(i[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}h.from=function(i,r,t){return rr(i,r,t)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);function tr(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function Sr(i,r,t){return tr(i),i<=0?d(i):r!==void 0?typeof t=="string"?d(i).fill(r,t):d(i).fill(r):d(i)}h.alloc=function(i,r,t){return Sr(i,r,t)};function G(i){return tr(i),d(i<0?0:Y(i)|0)}h.allocUnsafe=function(i){return G(i)};h.allocUnsafeSlow=function(i){return G(i)};function _r(i,r){if((typeof r!="string"||r==="")&&(r="utf8"),!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=ir(i,r)|0,n=d(t),e=n.write(i,r);return e!==t&&(n=n.slice(0,e)),n}function $(i){let r=i.length<0?0:Y(i.length)|0,t=d(r);for(let n=0;n<r;n+=1)t[n]=i[n]&255;return t}function br(i){if(E(i,Uint8Array)){let r=new Uint8Array(i);return P(r.buffer,r.byteOffset,r.byteLength)}return $(i)}function P(i,r,t){if(r<0||i.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(i):t===void 0?n=new Uint8Array(i,r):n=new Uint8Array(i,r,t),Object.setPrototypeOf(n,h.prototype),n}function Lr(i){if(h.isBuffer(i)){let r=Y(i.length)|0,t=d(r);return t.length===0||i.copy(t,0,0,r),t}if(i.length!==void 0)return typeof i.length!="number"||W(i.length)?d(0):$(i);if(i.type==="Buffer"&&Array.isArray(i.data))return $(i.data)}function Y(i){if(i>=_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_.toString(16)+" bytes");return i|0}function Nr(i){return+i!=i&&(i=0),h.alloc(+i)}h.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==h.prototype};h.compare=function(r,t){if(E(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),E(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(r)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,e=t.length;for(let o=0,u=Math.min(n,e);o<u;++o)if(r[o]!==t[o]){n=r[o],e=t[o];break}return n<e?-1:e<n?1:0};h.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};h.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return h.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let e=h.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){let u=r[n];if(E(u,Uint8Array))o+u.length>e.length?(h.isBuffer(u)||(u=h.from(u)),u.copy(e,o)):Uint8Array.prototype.set.call(e,u,o);else if(h.isBuffer(u))u.copy(e,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return e};function ir(i,r){if(h.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||E(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);let t=i.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let e=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return O(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return sr(i).length;default:if(e)return n?-1:O(i).length;r=(""+r).toLowerCase(),e=!0}}h.byteLength=ir;function Mr(i,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return jr(this,r,t);case"utf8":case"utf-8":return er(this,r,t);case"ascii":return qr(this,r,t);case"latin1":case"binary":return Wr(this,r,t);case"base64":return Gr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hr(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),n=!0}}h.prototype._isBuffer=!0;function I(i,r,t){let n=i[r];i[r]=i[t],i[t]=n}h.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)I(this,t,t+1);return this};h.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)I(this,t,t+3),I(this,t+1,t+2);return this};h.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)I(this,t,t+7),I(this,t+1,t+6),I(this,t+2,t+5),I(this,t+3,t+4);return this};h.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?er(this,0,r):Mr.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function(r){if(!h.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:h.compare(this,r)===0};h.prototype.inspect=function(){let r="",t=R.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};K&&(h.prototype[K]=h.prototype.inspect);h.prototype.compare=function(r,t,n,e,o){if(E(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),!h.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),e===void 0&&(e=0),o===void 0&&(o=this.length),t<0||n>r.length||e<0||o>this.length)throw new RangeError("out of range index");if(e>=o&&t>=n)return 0;if(e>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,e>>>=0,o>>>=0,this===r)return 0;let u=o-e,f=n-t,c=Math.min(u,f),l=this.slice(e,o),s=r.slice(t,n);for(let p=0;p<c;++p)if(l[p]!==s[p]){u=l[p],f=s[p];break}return u<f?-1:f<u?1:0};function nr(i,r,t,n,e){if(i.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,W(t)&&(t=e?0:i.length-1),t<0&&(t=i.length+t),t>=i.length){if(e)return-1;t=i.length-1}else if(t<0)if(e)t=0;else return-1;if(typeof r=="string"&&(r=h.from(r,n)),h.isBuffer(r))return r.length===0?-1:Z(i,r,t,n,e);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?e?Uint8Array.prototype.indexOf.call(i,r,t):Uint8Array.prototype.lastIndexOf.call(i,r,t):Z(i,[r],t,n,e);throw new TypeError("val must be string, number or Buffer")}function Z(i,r,t,n,e){let o=1,u=i.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(i.length<2||r.length<2)return-1;o=2,u/=2,f/=2,t/=2}function c(s,p){return o===1?s[p]:s.readUInt16BE(p*o)}let l;if(e){let s=-1;for(l=t;l<u;l++)if(c(i,l)===c(r,s===-1?0:l-s)){if(s===-1&&(s=l),l-s+1===f)return s*o}else s!==-1&&(l-=l-s),s=-1}else for(t+f>u&&(t=u-f),l=t;l>=0;l--){let s=!0;for(let p=0;p<f;p++)if(c(i,l+p)!==c(r,p)){s=!1;break}if(s)return l}return-1}h.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};h.prototype.indexOf=function(r,t,n){return nr(this,r,t,n,!0)};h.prototype.lastIndexOf=function(r,t,n){return nr(this,r,t,n,!1)};function kr(i,r,t,n){t=Number(t)||0;let e=i.length-t;n?(n=Number(n),n>e&&(n=e)):n=e;let o=r.length;n>o/2&&(n=o/2);let u;for(u=0;u<n;++u){let f=parseInt(r.substr(u*2,2),16);if(W(f))return u;i[t+u]=f}return u}function Dr(i,r,t,n){return b(O(r,i.length-t),i,t,n)}function $r(i,r,t,n){return b(Jr(r),i,t,n)}function Pr(i,r,t,n){return b(sr(r),i,t,n)}function Or(i,r,t,n){return b(Kr(r,i.length-t),i,t,n)}h.prototype.write=function(r,t,n,e){if(t===void 0)e="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")e=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,e===void 0&&(e="utf8")):(e=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");let u=!1;for(;;)switch(e){case"hex":return kr(this,r,t,n);case"utf8":case"utf-8":return Dr(this,r,t,n);case"ascii":case"latin1":case"binary":return $r(this,r,t,n);case"base64":return Pr(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Or(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),u=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Gr(i,r,t){return r===0&&t===i.length?D.fromByteArray(i):D.fromByteArray(i.slice(r,t))}function er(i,r,t){t=Math.min(i.length,t);let n=[],e=r;for(;e<t;){let o=i[e],u=null,f=o>239?4:o>223?3:o>191?2:1;if(e+f<=t){let c,l,s,p;switch(f){case 1:o<128&&(u=o);break;case 2:c=i[e+1],(c&192)===128&&(p=(o&31)<<6|c&63,p>127&&(u=p));break;case 3:c=i[e+1],l=i[e+2],(c&192)===128&&(l&192)===128&&(p=(o&15)<<12|(c&63)<<6|l&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:c=i[e+1],l=i[e+2],s=i[e+3],(c&192)===128&&(l&192)===128&&(s&192)===128&&(p=(o&15)<<18|(c&63)<<12|(l&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),e+=f}return Yr(n)}var Q=4096;function Yr(i){let r=i.length;if(r<=Q)return String.fromCharCode.apply(String,i);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,i.slice(n,n+=Q));return t}function qr(i,r,t){let n="";t=Math.min(i.length,t);for(let e=r;e<t;++e)n+=String.fromCharCode(i[e]&127);return n}function Wr(i,r,t){let n="";t=Math.min(i.length,t);for(let e=r;e<t;++e)n+=String.fromCharCode(i[e]);return n}function jr(i,r,t){let n=i.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let e="";for(let o=r;o<t;++o)e+=Zr[i[o]];return e}function Hr(i,r,t){let n=i.slice(r,t),e="";for(let o=0;o<n.length-1;o+=2)e+=String.fromCharCode(n[o]+n[o+1]*256);return e}h.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let e=this.subarray(r,t);return Object.setPrototypeOf(e,h.prototype),e};function a(i,r,t){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+r>t)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||a(r,t,this.length);let e=this[r],o=1,u=0;for(;++u<t&&(o*=256);)e+=this[r+u]*o;return e};h.prototype.readUintBE=h.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||a(r,t,this.length);let e=this[r+--t],o=1;for(;t>0&&(o*=256);)e+=this[r+--t]*o;return e};h.prototype.readUint8=h.prototype.readUInt8=function(r,t){return r=r>>>0,t||a(r,1,this.length),this[r]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||a(r,2,this.length),this[r]|this[r+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||a(r,2,this.length),this[r]<<8|this[r+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||a(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};h.prototype.readUint32BE=h.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||a(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};h.prototype.readBigUInt64LE=g(function(r){r=r>>>0,T(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&C(r,this.length-8);let e=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,o=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(e)+(BigInt(o)<<BigInt(32))});h.prototype.readBigUInt64BE=g(function(r){r=r>>>0,T(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&C(r,this.length-8);let e=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],o=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(e)<<BigInt(32))+BigInt(o)});h.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||a(r,t,this.length);let e=this[r],o=1,u=0;for(;++u<t&&(o*=256);)e+=this[r+u]*o;return o*=128,e>=o&&(e-=Math.pow(2,8*t)),e};h.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||a(r,t,this.length);let e=t,o=1,u=this[r+--e];for(;e>0&&(o*=256);)u+=this[r+--e]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};h.prototype.readInt8=function(r,t){return r=r>>>0,t||a(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};h.prototype.readInt16LE=function(r,t){r=r>>>0,t||a(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};h.prototype.readInt16BE=function(r,t){r=r>>>0,t||a(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};h.prototype.readInt32LE=function(r,t){return r=r>>>0,t||a(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};h.prototype.readInt32BE=function(r,t){return r=r>>>0,t||a(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};h.prototype.readBigInt64LE=g(function(r){r=r>>>0,T(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&C(r,this.length-8);let e=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(e)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)});h.prototype.readBigInt64BE=g(function(r){r=r>>>0,T(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&C(r,this.length-8);let e=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(e)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)});h.prototype.readFloatLE=function(r,t){return r=r>>>0,t||a(r,4,this.length),U.read(this,r,!0,23,4)};h.prototype.readFloatBE=function(r,t){return r=r>>>0,t||a(r,4,this.length),U.read(this,r,!1,23,4)};h.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||a(r,8,this.length),U.read(this,r,!0,52,8)};h.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||a(r,8,this.length),U.read(this,r,!1,52,8)};function y(i,r,t,n,e,o){if(!h.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>e||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>i.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(r,t,n,e){if(r=+r,t=t>>>0,n=n>>>0,!e){let f=Math.pow(2,8*n)-1;y(this,r,t,n,f,0)}let o=1,u=0;for(this[t]=r&255;++u<n&&(o*=256);)this[t+u]=r/o&255;return t+n};h.prototype.writeUintBE=h.prototype.writeUIntBE=function(r,t,n,e){if(r=+r,t=t>>>0,n=n>>>0,!e){let f=Math.pow(2,8*n)-1;y(this,r,t,n,f,0)}let o=n-1,u=1;for(this[t+o]=r&255;--o>=0&&(u*=256);)this[t+o]=r/u&255;return t+n};h.prototype.writeUint8=h.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,1,255,0),this[t]=r&255,t+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function or(i,r,t,n,e){pr(r,n,e,i,t,7);let o=Number(r&BigInt(4294967295));i[t++]=o,o=o>>8,i[t++]=o,o=o>>8,i[t++]=o,o=o>>8,i[t++]=o;let u=Number(r>>BigInt(32)&BigInt(4294967295));return i[t++]=u,u=u>>8,i[t++]=u,u=u>>8,i[t++]=u,u=u>>8,i[t++]=u,t}function ur(i,r,t,n,e){pr(r,n,e,i,t,7);let o=Number(r&BigInt(4294967295));i[t+7]=o,o=o>>8,i[t+6]=o,o=o>>8,i[t+5]=o,o=o>>8,i[t+4]=o;let u=Number(r>>BigInt(32)&BigInt(4294967295));return i[t+3]=u,u=u>>8,i[t+2]=u,u=u>>8,i[t+1]=u,u=u>>8,i[t]=u,t+8}h.prototype.writeBigUInt64LE=g(function(r,t=0){return or(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeBigUInt64BE=g(function(r,t=0){return ur(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeIntLE=function(r,t,n,e){if(r=+r,t=t>>>0,!e){let c=Math.pow(2,8*n-1);y(this,r,t,n,c-1,-c)}let o=0,u=1,f=0;for(this[t]=r&255;++o<n&&(u*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/u>>0)-f&255;return t+n};h.prototype.writeIntBE=function(r,t,n,e){if(r=+r,t=t>>>0,!e){let c=Math.pow(2,8*n-1);y(this,r,t,n,c-1,-c)}let o=n-1,u=1,f=0;for(this[t+o]=r&255;--o>=0&&(u*=256);)r<0&&f===0&&this[t+o+1]!==0&&(f=1),this[t+o]=(r/u>>0)-f&255;return t+n};h.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};h.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};h.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};h.prototype.writeBigInt64LE=g(function(r,t=0){return or(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeBigInt64BE=g(function(r,t=0){return ur(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function hr(i,r,t,n,e,o){if(t+n>i.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function fr(i,r,t,n,e){return r=+r,t=t>>>0,e||hr(i,r,t,4,34028234663852886e22,-34028234663852886e22),U.write(i,r,t,n,23,4),t+4}h.prototype.writeFloatLE=function(r,t,n){return fr(this,r,t,!0,n)};h.prototype.writeFloatBE=function(r,t,n){return fr(this,r,t,!1,n)};function cr(i,r,t,n,e){return r=+r,t=t>>>0,e||hr(i,r,t,8,17976931348623157e292,-17976931348623157e292),U.write(i,r,t,n,52,8),t+8}h.prototype.writeDoubleLE=function(r,t,n){return cr(this,r,t,!0,n)};h.prototype.writeDoubleBE=function(r,t,n){return cr(this,r,t,!1,n)};h.prototype.copy=function(r,t,n,e){if(!h.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!e&&e!==0&&(e=this.length),t>=r.length&&(t=r.length),t||(t=0),e>0&&e<n&&(e=n),e===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),r.length-t<e-n&&(e=r.length-t+n);let o=e-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,e):Uint8Array.prototype.set.call(r,this.subarray(n,e),t),o};h.prototype.fill=function(r,t,n,e){if(typeof r=="string"){if(typeof t=="string"?(e=t,t=0,n=this.length):typeof n=="string"&&(e=n,n=this.length),e!==void 0&&typeof e!="string")throw new TypeError("encoding must be a string");if(typeof e=="string"&&!h.isEncoding(e))throw new TypeError("Unknown encoding: "+e);if(r.length===1){let u=r.charCodeAt(0);(e==="utf8"&&u<128||e==="latin1")&&(r=u)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let o;if(typeof r=="number")for(o=t;o<n;++o)this[o]=r;else{let u=h.isBuffer(r)?r:h.from(r,e),f=u.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=u[o%f]}return this};var A={};function q(i,r,t){A[i]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}q("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);q("ERR_INVALID_ARG_TYPE",function(i,r){return`The "${i}" argument must be of type number. Received type ${typeof r}`},TypeError);q("ERR_OUT_OF_RANGE",function(i,r,t){let n=`The value of "${i}" is out of range.`,e=t;return Number.isInteger(t)&&Math.abs(t)>2**32?e=v(String(t)):typeof t=="bigint"&&(e=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(e=v(e)),e+="n"),n+=` It must be ${r}. Received ${e}`,n},RangeError);function v(i){let r="",t=i.length,n=i[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${i.slice(t-3,t)}${r}`;return`${i.slice(0,t)}${r}`}function Vr(i,r,t){T(r,"offset"),(i[r]===void 0||i[r+t]===void 0)&&C(r,i.length-(t+1))}function pr(i,r,t,n,e,o){if(i>t||i<r){let u=typeof r=="bigint"?"n":"",f;throw o>3?r===0||r===BigInt(0)?f=`>= 0${u} and < 2${u} ** ${(o+1)*8}${u}`:f=`>= -(2${u} ** ${(o+1)*8-1}${u}) and < 2 ** ${(o+1)*8-1}${u}`:f=`>= ${r}${u} and <= ${t}${u}`,new A.ERR_OUT_OF_RANGE("value",f,i)}Vr(n,e,o)}function T(i,r){if(typeof i!="number")throw new A.ERR_INVALID_ARG_TYPE(r,"number",i)}function C(i,r,t){throw Math.floor(i)!==i?(T(i,t),new A.ERR_OUT_OF_RANGE(t||"offset","an integer",i)):r<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,i)}var Xr=/[^+/0-9A-Za-z-_]/g;function zr(i){if(i=i.split("=")[0],i=i.trim().replace(Xr,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function O(i,r){r=r||1/0;let t,n=i.length,e=null,o=[];for(let u=0;u<n;++u){if(t=i.charCodeAt(u),t>55295&&t<57344){if(!e){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}e=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),e=t;continue}t=(e-55296<<10|t-56320)+65536}else e&&(r-=3)>-1&&o.push(239,191,189);if(e=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function Jr(i){let r=[];for(let t=0;t<i.length;++t)r.push(i.charCodeAt(t)&255);return r}function Kr(i,r){let t,n,e,o=[];for(let u=0;u<i.length&&!((r-=2)<0);++u)t=i.charCodeAt(u),n=t>>8,e=t%256,o.push(e),o.push(n);return o}function sr(i){return D.toByteArray(zr(i))}function b(i,r,t,n){let e;for(e=0;e<n&&!(e+t>=r.length||e>=i.length);++e)r[e+t]=i[e];return e}function E(i,r){return i instanceof r||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===r.name}function W(i){return i!==i}var Zr=(function(){let i="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let e=0;e<16;++e)r[n+e]=i[t]+i[e]}return r})();function g(i){return typeof BigInt>"u"?Qr:i}function Qr(){throw new Error("BigInt not supported")}});var j=gr(lr());typeof window<"u"&&(window.Buffer=j.Buffer,window.global=window.global||window,window.process=window.process||{env:{},browser:!0,version:""});typeof globalThis<"u"&&(globalThis.Buffer=j.Buffer,globalThis.global=globalThis.global||globalThis,globalThis.process=globalThis.process||{env:{},browser:!0,version:""});})();
2
+ /*! Bundled license information:
3
+
4
+ ieee754/index.js:
5
+ (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
6
+
7
+ buffer/index.js:
8
+ (*!
9
+ * The buffer module from node.js, for the browser.
10
+ *
11
+ * @author Feross Aboukhadijeh <https://feross.org>
12
+ * @license MIT
13
+ *)
14
+ */
@@ -107,10 +107,10 @@ var $$StudioLayout = createComponent(($$result, $$props, $$slots) => {
107
107
  "title": title,
108
108
  "description": description,
109
109
  "theme": resolvedTheme
110
- })}${renderComponent($$result, "ThemeScript", $$ThemeScript, {})}${renderHead($$result)}</head><body>${renderComponent($$result, "ShellContainer", $$ShellContainer, {
110
+ })}<script src="/js/buffer-polyfill.js"><\/script>${renderComponent($$result, "ThemeScript", $$ThemeScript, {})}${renderHead($$result)}</head><body>${renderComponent($$result, "ShellContainer", $$ShellContainer, {
111
111
  "variant": resolvedLayout,
112
112
  "hideChrome": hideChrome
113
113
  }, { "default": ($$result) => renderTemplate`${renderSlot($$result, $$slots["default"])}` })}</body></html>`;
114
114
  }, "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/src/layouts/StudioLayout.astro", void 0);
115
115
  //#endregion
116
- export { $$StudioLayout as t };
116
+ export { renderScript as n, $$StudioLayout as t };
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime_8H4AJuhK.mjs";
2
2
  import { D as createAstro, f as renderTemplate, g as maybeRenderHead, o as renderComponent } from "./server_DQgO1z9H.mjs";
3
3
  import { t as createComponent } from "./compiler_jjPF-nBO.mjs";
4
- import { t as $$StudioLayout } from "./StudioLayout_D163irJ0.mjs";
4
+ import { t as $$StudioLayout } from "./StudioLayout_B5ZnlqjF.mjs";
5
5
  import { i as workspaceRoot, r as repoRoot } from "./workspaceRoot_DVSUbYkd.mjs";
6
6
  import { t as studioMCardFs } from "./vfsCore_B6nCiBl5.mjs";
7
7
  import "./mcardVfs_CeezzRvt.mjs";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime_8H4AJuhK.mjs";
2
2
  import { f as renderTemplate, o as renderComponent } from "./server_DQgO1z9H.mjs";
3
3
  import { t as createComponent } from "./compiler_jjPF-nBO.mjs";
4
- import { t as $$StudioLayout } from "./StudioLayout_D163irJ0.mjs";
4
+ import { t as $$StudioLayout } from "./StudioLayout_B5ZnlqjF.mjs";
5
5
  //#region src/pages/mcard-library.astro
6
6
  var mcard_library_exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => $$McardLibrary,
@@ -577,7 +577,7 @@ var envMaxBytes = typeof import.meta !== "undefined" && Object.assign({
577
577
  VITE_WS_PORT: "5321",
578
578
  VLLM_BASE_URL: "http://10.40.14.68:11437",
579
579
  USER: "bkoo",
580
- PATH: "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/MCard_TDD/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/node_modules/.bin:/Users/bkoo/Documents/Development/node_modules/.bin:/Users/bkoo/Documents/node_modules/.bin:/Users/bkoo/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/bkoo/.nvm/versions/node/v24.21.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/bkoo/.opam/4.14.1/bin:/Users/bkoo/.nvm/versions/node/v24.21.0/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity/antigravity/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.rd/bin:/Users/bkoo/.antigravity/antigravity/bin:/opt/homebrew/opt/python@3.9/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/opt/homebrew/bin:/Users/bkoo/.elan/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/pkg/env/global/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bkoo/.local/bin:/Users/bkoo/.nvm/versions/node/v24.21.0/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.antigravity/antigravity/bin:/Users/bkoo/.rd/bin:/opt/homebrew/opt/python@3.9/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.opam/4.14.1/bin:/opt/homebrew/Caskroom/miniconda/base/condabin:/Users/bkoo/.elan/bin:/Users/bkoo/.cargo/bin:/Users/bkoo/.devin/extensions/ms-python.debugpy-2025.18.0-darwin-arm64/bundled/scripts/noConfigScripts",
580
+ PATH: "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/MCard_TDD/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/node_modules/.bin:/Users/bkoo/Documents/Development/node_modules/.bin:/Users/bkoo/Documents/node_modules/.bin:/Users/bkoo/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bkoo/.local/bin:/Users/bkoo/.gemini/antigravity-ide/bin:/Users/bkoo/.nvm/versions/node/v24.21.0/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity/antigravity/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.rd/bin:/Users/bkoo/.antigravity/antigravity/bin:/opt/homebrew/opt/python@3.9/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.opam/4.14.1/bin:/opt/homebrew/Caskroom/miniconda/base/condabin:/opt/homebrew/bin:/Users/bkoo/.elan/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/pkg/env/global/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bkoo/.local/bin:/Users/bkoo/.cargo/bin",
581
581
  _: "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/node_modules/.bin/astro"
582
582
  }) && Object.assign({
583
583
  "ASSETS_PREFIX": void 0,
@@ -606,7 +606,7 @@ var envMaxBytes = typeof import.meta !== "undefined" && Object.assign({
606
606
  VITE_WS_PORT: "5321",
607
607
  VLLM_BASE_URL: "http://10.40.14.68:11437",
608
608
  USER: "bkoo",
609
- PATH: "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/MCard_TDD/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/node_modules/.bin:/Users/bkoo/Documents/Development/node_modules/.bin:/Users/bkoo/Documents/node_modules/.bin:/Users/bkoo/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/bkoo/.nvm/versions/node/v24.21.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/bkoo/.opam/4.14.1/bin:/Users/bkoo/.nvm/versions/node/v24.21.0/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity/antigravity/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.rd/bin:/Users/bkoo/.antigravity/antigravity/bin:/opt/homebrew/opt/python@3.9/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/opt/homebrew/bin:/Users/bkoo/.elan/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/pkg/env/global/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bkoo/.local/bin:/Users/bkoo/.nvm/versions/node/v24.21.0/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.antigravity/antigravity/bin:/Users/bkoo/.rd/bin:/opt/homebrew/opt/python@3.9/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.opam/4.14.1/bin:/opt/homebrew/Caskroom/miniconda/base/condabin:/Users/bkoo/.elan/bin:/Users/bkoo/.cargo/bin:/Users/bkoo/.devin/extensions/ms-python.debugpy-2025.18.0-darwin-arm64/bundled/scripts/noConfigScripts",
609
+ PATH: "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/MCard_TDD/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/node_modules/.bin:/Users/bkoo/Documents/Development/node_modules/.bin:/Users/bkoo/Documents/node_modules/.bin:/Users/bkoo/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bkoo/.local/bin:/Users/bkoo/.gemini/antigravity-ide/bin:/Users/bkoo/.nvm/versions/node/v24.21.0/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity/antigravity/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.rd/bin:/Users/bkoo/.antigravity/antigravity/bin:/opt/homebrew/opt/python@3.9/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.opam/4.14.1/bin:/opt/homebrew/Caskroom/miniconda/base/condabin:/opt/homebrew/bin:/Users/bkoo/.elan/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/pkg/env/global/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bkoo/.local/bin:/Users/bkoo/.cargo/bin",
610
610
  _: "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/node_modules/.bin/astro"
611
611
  }).PUBLIC_MCARD_MAX_SIZE_BYTES ? parseInt(Object.assign({
612
612
  "ASSETS_PREFIX": void 0,
@@ -635,7 +635,7 @@ var envMaxBytes = typeof import.meta !== "undefined" && Object.assign({
635
635
  VITE_WS_PORT: "5321",
636
636
  VLLM_BASE_URL: "http://10.40.14.68:11437",
637
637
  USER: "bkoo",
638
- PATH: "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/MCard_TDD/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/node_modules/.bin:/Users/bkoo/Documents/Development/node_modules/.bin:/Users/bkoo/Documents/node_modules/.bin:/Users/bkoo/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/bkoo/.nvm/versions/node/v24.21.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/bkoo/.opam/4.14.1/bin:/Users/bkoo/.nvm/versions/node/v24.21.0/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity/antigravity/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.rd/bin:/Users/bkoo/.antigravity/antigravity/bin:/opt/homebrew/opt/python@3.9/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/opt/homebrew/bin:/Users/bkoo/.elan/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/pkg/env/global/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bkoo/.local/bin:/Users/bkoo/.nvm/versions/node/v24.21.0/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.antigravity/antigravity/bin:/Users/bkoo/.rd/bin:/opt/homebrew/opt/python@3.9/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.opam/4.14.1/bin:/opt/homebrew/Caskroom/miniconda/base/condabin:/Users/bkoo/.elan/bin:/Users/bkoo/.cargo/bin:/Users/bkoo/.devin/extensions/ms-python.debugpy-2025.18.0-darwin-arm64/bundled/scripts/noConfigScripts",
638
+ PATH: "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/MCard_TDD/node_modules/.bin:/Users/bkoo/Documents/Development/GovTech/node_modules/.bin:/Users/bkoo/Documents/Development/node_modules/.bin:/Users/bkoo/Documents/node_modules/.bin:/Users/bkoo/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bkoo/.local/bin:/Users/bkoo/.gemini/antigravity-ide/bin:/Users/bkoo/.nvm/versions/node/v24.21.0/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.antigravity-ide/antigravity-ide/bin:/Users/bkoo/.antigravity/antigravity/bin:/Users/bkoo/.opencode/bin:/Users/bkoo/.rd/bin:/Users/bkoo/.antigravity/antigravity/bin:/opt/homebrew/opt/python@3.9/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.ghcup/bin:/Users/bkoo/.opam/4.14.1/bin:/opt/homebrew/Caskroom/miniconda/base/condabin:/opt/homebrew/bin:/Users/bkoo/.elan/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/pkg/env/global/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/bkoo/.local/bin:/Users/bkoo/.cargo/bin",
639
639
  _: "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/node_modules/.bin/astro"
640
640
  }).PUBLIC_MCARD_MAX_SIZE_BYTES, 10) : 157286400;
641
641
  var SIZE_LIMITS = {
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./chunks/rolldown-runtime_8H4AJuhK.mjs";
2
- import { f as renderTemplate, o as renderComponent } from "./chunks/server_DQgO1z9H.mjs";
2
+ import { f as renderTemplate, g as maybeRenderHead, o as renderComponent } from "./chunks/server_DQgO1z9H.mjs";
3
3
  import { t as createComponent } from "./chunks/compiler_jjPF-nBO.mjs";
4
- import { t as $$StudioLayout } from "./chunks/StudioLayout_D163irJ0.mjs";
4
+ import { n as renderScript, t as $$StudioLayout } from "./chunks/StudioLayout_B5ZnlqjF.mjs";
5
5
  //#region src/pages/index.astro
6
6
  var pages_exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => $$Index,
@@ -9,12 +9,16 @@ var pages_exports = /* @__PURE__ */ __exportAll({
9
9
  url: () => ""
10
10
  });
11
11
  var $$Index = createComponent(($$result, $$props, $$slots) => {
12
- return renderTemplate`${renderComponent($$result, "StudioLayout", $$StudioLayout, { "layoutVariant": "workbench" }, { "default": ($$result) => renderTemplate`${renderComponent($$result, "StudioWorkbench", null, {
12
+ return renderTemplate`${renderComponent($$result, "StudioLayout", $$StudioLayout, {
13
+ "layoutVariant": "workbench",
14
+ "data-astro-cid-lcdefpme": true
15
+ }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div id="hydration-watchdog" class="hydration-loading-state" aria-live="polite" data-astro-cid-lcdefpme><div class="hydration-spinner" data-astro-cid-lcdefpme></div><p class="hydration-label" data-astro-cid-lcdefpme>Initializing MCard Studio Spatial Workbench...</p><noscript><div class="noscript-card" data-astro-cid-lcdefpme><h3 data-astro-cid-lcdefpme>JavaScript Required</h3><p data-astro-cid-lcdefpme>MCard Studio requires JavaScript to run the spatial IDE workbench.</p></div></noscript></div>${renderComponent($$result, "StudioWorkbench", null, {
13
16
  "client:only": "react",
17
+ "data-astro-cid-lcdefpme": true,
14
18
  "client:component-hydration": "only",
15
19
  "client:component-path": "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/src/components/studio/StudioWorkbench.tsx",
16
20
  "client:component-export": "default"
17
- })}` })}`;
21
+ })}` })}${renderScript($$result, "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/src/pages/index.astro?astro&type=script&index=0&lang.ts")}`;
18
22
  }, "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/src/pages/index.astro", void 0);
19
23
  var $$file = "/Users/bkoo/Documents/Development/GovTech/MCard_TDD/mcard-studio/src/pages/index.astro";
20
24
  var $$url = "";