@powerhousedao/ph-clint-app 0.1.0-dev.106 → 0.1.0-dev.107

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 (36) hide show
  1. package/dist/connect/assets/{ClearStorageModal-DyU-FIgY-BJAb391v.js → ClearStorageModal-DyU-FIgY-Cv-Fjyuf.js} +2 -2
  2. package/dist/connect/assets/{ClearStorageModal-DyU-FIgY-BJAb391v.js.map → ClearStorageModal-DyU-FIgY-Cv-Fjyuf.js.map} +1 -1
  3. package/dist/connect/assets/{DebugSettingsModal-CwUN9gIr-BHtXVwZu.js → DebugSettingsModal-CwUN9gIr-CXybqnnl.js} +2 -2
  4. package/dist/connect/assets/{DebugSettingsModal-CwUN9gIr-BHtXVwZu.js.map → DebugSettingsModal-CwUN9gIr-CXybqnnl.js.map} +1 -1
  5. package/dist/connect/assets/{InspectorModal-Cd8kbCV8-wCEPH9Q6.js → InspectorModal-Cd8kbCV8-HwWTmWMU.js} +2 -2
  6. package/dist/connect/assets/{InspectorModal-Cd8kbCV8-wCEPH9Q6.js.map → InspectorModal-Cd8kbCV8-HwWTmWMU.js.map} +1 -1
  7. package/dist/connect/assets/{OpenFileDocumentsModal-BQsaBP4x-D0QTl2mc.js → OpenFileDocumentsModal-BQsaBP4x-DrXQ7KP_.js} +2 -2
  8. package/dist/connect/assets/{OpenFileDocumentsModal-BQsaBP4x-D0QTl2mc.js.map → OpenFileDocumentsModal-BQsaBP4x-DrXQ7KP_.js.map} +1 -1
  9. package/dist/connect/assets/{SettingsModal-CgjW-M2a-BKJzJ25U.js → SettingsModal-CgjW-M2a-DGpVrhR1.js} +2 -2
  10. package/dist/connect/assets/{SettingsModal-CgjW-M2a-BKJzJ25U.js.map → SettingsModal-CgjW-M2a-DGpVrhR1.js.map} +1 -1
  11. package/dist/connect/assets/{app-loader-l5wtQh5z-CYQpkwjk.js → app-loader-l5wtQh5z-bWtqX25O.js} +4 -4
  12. package/dist/connect/assets/{app-loader-l5wtQh5z-CYQpkwjk.js.map → app-loader-l5wtQh5z-bWtqX25O.js.map} +1 -1
  13. package/dist/connect/assets/{components-BH57lxCU-BZ_0YIzo.js → components-BH57lxCU-Eruh92Ls.js} +2 -2
  14. package/dist/connect/assets/{components-BH57lxCU-BZ_0YIzo.js.map → components-BH57lxCU-Eruh92Ls.js.map} +1 -1
  15. package/dist/connect/assets/{connect.config-CaXMoB42-Dbb5nzkI.js → connect.config-CaXMoB42-D2BeV43I.js} +2 -2
  16. package/dist/connect/assets/{connect.config-CaXMoB42-Dbb5nzkI.js.map → connect.config-CaXMoB42-D2BeV43I.js.map} +1 -1
  17. package/dist/connect/assets/{connection-state-Eqc2izmt-CZj5x6c0.js → connection-state-Eqc2izmt-C-KzrbY1.js} +2 -2
  18. package/dist/connect/assets/{connection-state-Eqc2izmt-CZj5x6c0.js.map → connection-state-Eqc2izmt-C-KzrbY1.js.map} +1 -1
  19. package/dist/connect/assets/{cookie-banner-BxXvPdIY-DwJZO4Kr.js → cookie-banner-BxXvPdIY-Blpa2FD0.js} +2 -2
  20. package/dist/connect/assets/{cookie-banner-BxXvPdIY-DwJZO4Kr.js.map → cookie-banner-BxXvPdIY-Blpa2FD0.js.map} +1 -1
  21. package/dist/connect/assets/{index-ypRDyz0_.js → index-DJjc4BDx.js} +3 -3
  22. package/dist/connect/assets/{index-ypRDyz0_.js.map → index-DJjc4BDx.js.map} +1 -1
  23. package/dist/connect/assets/{load-ftpCX1HI-CPPnPa1h.js → load-ftpCX1HI-Dexlo14X.js} +2 -2
  24. package/dist/connect/assets/{load-ftpCX1HI-CPPnPa1h.js.map → load-ftpCX1HI-Dexlo14X.js.map} +1 -1
  25. package/dist/connect/assets/{pglite-seed-Cl2d-iyl-Dm71yfXU.js → pglite-seed-Cl2d-iyl-B2jdiHFc.js} +2 -2
  26. package/dist/connect/assets/{pglite-seed-Cl2d-iyl-Dm71yfXU.js.map → pglite-seed-Cl2d-iyl-B2jdiHFc.js.map} +1 -1
  27. package/dist/connect/assets/{preferences-store-DZUIAkHE-DMBWFJbj.js → preferences-store-DZUIAkHE-Cc5P2Ff8.js} +2 -2
  28. package/dist/connect/assets/{preferences-store-DZUIAkHE-DMBWFJbj.js.map → preferences-store-DZUIAkHE-Cc5P2Ff8.js.map} +1 -1
  29. package/dist/connect/assets/{reactor-CItc8KaF-2ruIW1vZ.js → reactor-CItc8KaF-B-r7zrGd.js} +2 -2
  30. package/dist/connect/assets/{reactor-CItc8KaF-2ruIW1vZ.js.map → reactor-CItc8KaF-B-r7zrGd.js.map} +1 -1
  31. package/dist/connect/assets/{registerServiceWorker-smkROQhm-K2kHougF.js → registerServiceWorker-smkROQhm-CJA_w_O4.js} +2 -2
  32. package/dist/connect/assets/{registerServiceWorker-smkROQhm-K2kHougF.js.map → registerServiceWorker-smkROQhm-CJA_w_O4.js.map} +1 -1
  33. package/dist/connect/index.html +1 -1
  34. package/dist/connect/powerhouse.config.json +1 -1
  35. package/dist/connect/service-worker.js +1 -1
  36. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{a as e,c as t,d as n,f as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m}from"./app-loader-l5wtQh5z-CYQpkwjk.js";import{t as h}from"./app-skeleton--Me5zlSz-v-w_hTKL.js";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`6dd74711-4760-5603-947c-27cad41e800d`)}catch{}})();export{p as Analytics,c as App,d as AppContainer,a as AppLoader,h as AppSkeleton,e as DocumentEditor,l as DocumentEditorContainer,f as DotsLoader,t as DriveIcon,o as EditorLoader,m as Footer,n as OpenPanel,r as Root,u as Router,s as SearchBar,i as Sidebar};
2
- //# sourceMappingURL=components-BH57lxCU-BZ_0YIzo.js.map
1
+ import{a as e,c as t,d as n,f as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m}from"./app-loader-l5wtQh5z-bWtqX25O.js";import{t as h}from"./app-skeleton--Me5zlSz-v-w_hTKL.js";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`6dd74711-4760-5603-947c-27cad41e800d`)}catch{}})();export{p as Analytics,c as App,d as AppContainer,a as AppLoader,h as AppSkeleton,e as DocumentEditor,l as DocumentEditorContainer,f as DotsLoader,t as DriveIcon,o as EditorLoader,m as Footer,n as OpenPanel,r as Root,u as Router,s as SearchBar,i as Sidebar};
2
+ //# sourceMappingURL=components-BH57lxCU-Eruh92Ls.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components-BH57lxCU-BZ_0YIzo.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/components-BH57lxCU.js"],"sourcesContent":["import { t as AppSkeleton } from \"./app-skeleton--Me5zlSz.js\";\nimport { _ as EditorLoader, a as Root, b as Analytics, c as DriveIcon, g as AppContainer, i as Router, l as DotsLoader, n as Sidebar, o as Footer, r as SearchBar, s as DocumentEditor, t as AppLoader, u as App, v as DocumentEditorContainer, y as OpenPanel } from \"./app-loader-l5wtQh5z.js\";\nexport { Analytics, App, AppContainer, AppLoader, AppSkeleton, DocumentEditor, DocumentEditorContainer, DotsLoader, DriveIcon, EditorLoader, Footer, OpenPanel, Root, Router, SearchBar, Sidebar };\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"6dd74711-4760-5603-947c-27cad41e800d\")}catch(e){}}();\n//# debugId=6dd74711-4760-5603-947c-27cad41e800d\n"],"x_google_ignoreList":[0],"mappings":"iNAGC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,EAAA,CAAE"}
1
+ {"version":3,"file":"components-BH57lxCU-Eruh92Ls.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/components-BH57lxCU.js"],"sourcesContent":["import { t as AppSkeleton } from \"./app-skeleton--Me5zlSz.js\";\nimport { _ as EditorLoader, a as Root, b as Analytics, c as DriveIcon, g as AppContainer, i as Router, l as DotsLoader, n as Sidebar, o as Footer, r as SearchBar, s as DocumentEditor, t as AppLoader, u as App, v as DocumentEditorContainer, y as OpenPanel } from \"./app-loader-l5wtQh5z.js\";\nexport { Analytics, App, AppContainer, AppLoader, AppSkeleton, DocumentEditor, DocumentEditorContainer, DotsLoader, DriveIcon, EditorLoader, Footer, OpenPanel, Root, Router, SearchBar, Sidebar };\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"6dd74711-4760-5603-947c-27cad41e800d\")}catch(e){}}();\n//# debugId=6dd74711-4760-5603-947c-27cad41e800d\n"],"x_google_ignoreList":[0],"mappings":"iNAGC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,EAAA,CAAE"}
@@ -1,2 +1,2 @@
1
- import{n as e}from"./runtime-config-DtJIUgYw-yncHpou3.js";import{loadRuntimeEnv as t,normalizeBasePath as n}from"@powerhousedao/shared/connect";import{logger as r}from"document-model";import{setLogLevel as i}from"@powerhousedao/reactor-browser";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`393ad854-91a3-56dd-a42b-613d747ff54e`)}catch{}})();function a(e,t){return{clientId:e?.clientId||t.PH_CONNECT_OPENPANEL_CLIENT_ID||``,apiUrl:e?.apiUrl||t.PH_CONNECT_OPENPANEL_API_URL||void 0,trackUiEvents:e?.trackUiEvents??t.PH_CONNECT_OPENPANEL_TRACK_UI_EVENTS,trackOperations:e?.trackOperations??t.PH_CONNECT_OPENPANEL_TRACK_OPERATIONS}}var o=t({processEnv:{BASE_URL:`/`,DEV:!1,MODE:`production`,PH_CONNECT_DIFF_ANALYTICS_ENABLED:`false`,PH_CONNECT_DRIVE_ANALYTICS_ENABLED:`true`,PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED:`true`,PH_CONNECT_OPENPANEL_TRACK_OPERATIONS:`true`,PH_CONNECT_OPENPANEL_TRACK_UI_EVENTS:`true`,PH_CONNECT_VERSION:`unknown`,PROD:!0,SSR:!1}}),s=e().connect;function c(e){return e.endsWith(`/`)?e:e+`/`}function l(){return typeof globalThis<`u`&&globalThis.__PH_DYNAMIC_BASE__?`/`:s.app?.basePath||`/`}function u(){let e=s.app?.studioMode??!1;return{allowList:void 0,allowedDocumentTypes:[],isDragAndDropEnabled:!0,isEditorDebugModeEnabled:!1,isEditorReadModeEnabled:!1,isExternalControlsEnabled:!1,version:o.PH_CONNECT_VERSION,logLevel:s.app?.logLevel,requiresHardRefresh:!0,warnOutdatedApp:!0,studioMode:e,versionCheckInterval:36e5,cliVersion:o.PH_CONNECT_CLI_VERSION,fileUploadOperationsChunkSize:50,gaTrackingId:void 0,defaultDrivesUrl:s.drives?.defaultDrives?.find(e=>`url`in e)?.url,drivesPreserveStrategy:s.drives?.preserveStrategy,enabledEditors:void 0,disabledEditors:[`powerhouse/document-drive`,`powerhouse/reactor-drive`,`powerhouse/document-model`,`powerhouse/app`,`powerhouse/document-editor`,`powerhouse/processor`,`powerhouse/subgraph`,`powerhouse/package`],isExternalProcessorsEnabled:!0,isAnalyticsEnabled:!1,isAnalyticsExternalProcessorsEnabled:o.PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED,analyticsDatabaseName:void 0,isRelationalProcessorsEnabled:!0,isExternalRelationalProcessorsEnabled:!0,renownUrl:s.renown?.url,renownNetworkId:s.renown?.networkId,renownChainId:s.renown?.chainId,switchboardUrl:s.renown?.switchboardUrl,renownAdapters:s.renown?.adapters,sentryRelease:`0.1.0-dev.106`,sentryDsn:s.sentry?.dsn??void 0,sentryEnv:s.sentry?.env,isDiffAnalyticsEnabled:o.PH_CONNECT_DIFF_ANALYTICS_ENABLED,isDriveAnalyticsEnabled:o.PH_CONNECT_DRIVE_ANALYTICS_ENABLED,isPublicDrivesEnabled:s.drives?.sections?.remote?.enabled,isCloudDrivesEnabled:s.drives?.sections?.remote?.enabled??!0,isLocalDrivesEnabled:s.drives?.sections?.local?.enabled,isSentryTracingEnabled:s.sentry?.tracing,isDocumentModelSelectionSettingsEnabled:!1,isAddDriveEnabled:s.drives?.allowAddDrive,isAddPublicDrivesEnabled:s.drives?.sections?.remote?.allowAdd,isDeletePublicDrivesEnabled:s.drives?.sections?.remote?.allowDelete,isAddCloudDrivesEnabled:s.drives?.sections?.remote?.allowAdd??!0,isDeleteCloudDrivesEnabled:s.drives?.sections?.remote?.allowDelete??!0,isAddLocalDrivesEnabled:s.drives?.sections?.local?.allowAdd,isDeleteLocalDrivesEnabled:s.drives?.sections?.local?.allowDelete,isAnalyticsDatabaseWorkerEnabled:!1,isExternalPackagesEnabled:s.packages?.externalEnabled}}function d(e,t,n){let r=u(),i={};return n.drives?.allowAddDrive!==void 0&&(i.isAddDriveEnabled=n.drives.allowAddDrive),{basePath:e,routerBasename:t,...r,...i}}function f(){let e=l()??`/`;return d(e,c(e),s)}var p=f(),m={isExternalControlsEnabled:p.isExternalControlsEnabled},h={allowedDocumentTypes:p.allowedDocumentTypes,isDragAndDropEnabled:p.isDragAndDropEnabled},g=s.app?.logLevel;g&&i(g),r.debug(`Setting log level to @level.`,g);var _=n(l()??`/`),v=`${_.replace(/\//g,``)}:analytics`,y={appVersion:o.PH_CONNECT_VERSION,studioMode:s.app?.studioMode??!1,workflowsEnabled:s.app?.workflowsEnabled??!1,warnOutdatedApp:p.warnOutdatedApp,appVersionCheckInterval:36e5,routerBasename:_,offline:s.app?.offline??!0,aiAssistantEnabled:s.ai?.assistantEnabled??!1,externalPackagesEnabled:s.packages?.externalEnabled,processors:{enabled:!0,externalProcessorsEnabled:!0},analytics:{enabled:!0,databaseName:v,useWorker:!1,driveAnalyticsEnabled:o.PH_CONNECT_DRIVE_ANALYTICS_ENABLED,diffProcessorEnabled:o.PH_CONNECT_DIFF_ANALYTICS_ENABLED,externalProcessorsEnabled:!0},relational:{enabled:!0,externalProcessorsEnabled:!0},openPanel:a(s.openPanel,o),renown:{url:s.renown?.url,networkId:s.renown?.networkId,chainId:s.renown?.chainId,namespace:s.renown?.namespace,switchboardUrl:s.renown?.switchboardUrl,adapters:s.renown?.adapters},sentry:{release:`0.1.0-dev.106`,dsn:s.sentry?.dsn??null,env:s.sentry?.env,tracing:s.sentry?.tracing??!1},content:{showSearchBar:!1,showDocumentModelSelectionSetting:!1},drives:{addDriveEnabled:s.drives?.allowAddDrive,preserveStrategy:s.drives?.preserveStrategy,sections:(()=>{let e={enabled:s.drives?.sections?.remote?.enabled,allowAdd:s.drives?.sections?.remote?.allowAdd,allowDelete:s.drives?.sections?.remote?.allowDelete};return{LOCAL:{enabled:s.drives?.sections?.local?.enabled,allowAdd:s.drives?.sections?.local?.allowAdd,allowDelete:s.drives?.sections?.local?.allowDelete},PUBLIC:e,CLOUD:e}})()},gaTrackingId:void 0,phCliVersion:o.PH_CONNECT_CLI_VERSION};export{m as a,h as i,d as n,p as o,y as r,_ as t};
2
- //# sourceMappingURL=connect.config-CaXMoB42-Dbb5nzkI.js.map
1
+ import{n as e}from"./runtime-config-DtJIUgYw-yncHpou3.js";import{loadRuntimeEnv as t,normalizeBasePath as n}from"@powerhousedao/shared/connect";import{logger as r}from"document-model";import{setLogLevel as i}from"@powerhousedao/reactor-browser";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`393ad854-91a3-56dd-a42b-613d747ff54e`)}catch{}})();function a(e,t){return{clientId:e?.clientId||t.PH_CONNECT_OPENPANEL_CLIENT_ID||``,apiUrl:e?.apiUrl||t.PH_CONNECT_OPENPANEL_API_URL||void 0,trackUiEvents:e?.trackUiEvents??t.PH_CONNECT_OPENPANEL_TRACK_UI_EVENTS,trackOperations:e?.trackOperations??t.PH_CONNECT_OPENPANEL_TRACK_OPERATIONS}}var o=t({processEnv:{BASE_URL:`/`,DEV:!1,MODE:`production`,PH_CONNECT_DIFF_ANALYTICS_ENABLED:`false`,PH_CONNECT_DRIVE_ANALYTICS_ENABLED:`true`,PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED:`true`,PH_CONNECT_OPENPANEL_TRACK_OPERATIONS:`true`,PH_CONNECT_OPENPANEL_TRACK_UI_EVENTS:`true`,PH_CONNECT_VERSION:`unknown`,PROD:!0,SSR:!1}}),s=e().connect;function c(e){return e.endsWith(`/`)?e:e+`/`}function l(){return typeof globalThis<`u`&&globalThis.__PH_DYNAMIC_BASE__?`/`:s.app?.basePath||`/`}function u(){let e=s.app?.studioMode??!1;return{allowList:void 0,allowedDocumentTypes:[],isDragAndDropEnabled:!0,isEditorDebugModeEnabled:!1,isEditorReadModeEnabled:!1,isExternalControlsEnabled:!1,version:o.PH_CONNECT_VERSION,logLevel:s.app?.logLevel,requiresHardRefresh:!0,warnOutdatedApp:!0,studioMode:e,versionCheckInterval:36e5,cliVersion:o.PH_CONNECT_CLI_VERSION,fileUploadOperationsChunkSize:50,gaTrackingId:void 0,defaultDrivesUrl:s.drives?.defaultDrives?.find(e=>`url`in e)?.url,drivesPreserveStrategy:s.drives?.preserveStrategy,enabledEditors:void 0,disabledEditors:[`powerhouse/document-drive`,`powerhouse/reactor-drive`,`powerhouse/document-model`,`powerhouse/app`,`powerhouse/document-editor`,`powerhouse/processor`,`powerhouse/subgraph`,`powerhouse/package`],isExternalProcessorsEnabled:!0,isAnalyticsEnabled:!1,isAnalyticsExternalProcessorsEnabled:o.PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED,analyticsDatabaseName:void 0,isRelationalProcessorsEnabled:!0,isExternalRelationalProcessorsEnabled:!0,renownUrl:s.renown?.url,renownNetworkId:s.renown?.networkId,renownChainId:s.renown?.chainId,switchboardUrl:s.renown?.switchboardUrl,renownAdapters:s.renown?.adapters,sentryRelease:`0.1.0-dev.107`,sentryDsn:s.sentry?.dsn??void 0,sentryEnv:s.sentry?.env,isDiffAnalyticsEnabled:o.PH_CONNECT_DIFF_ANALYTICS_ENABLED,isDriveAnalyticsEnabled:o.PH_CONNECT_DRIVE_ANALYTICS_ENABLED,isPublicDrivesEnabled:s.drives?.sections?.remote?.enabled,isCloudDrivesEnabled:s.drives?.sections?.remote?.enabled??!0,isLocalDrivesEnabled:s.drives?.sections?.local?.enabled,isSentryTracingEnabled:s.sentry?.tracing,isDocumentModelSelectionSettingsEnabled:!1,isAddDriveEnabled:s.drives?.allowAddDrive,isAddPublicDrivesEnabled:s.drives?.sections?.remote?.allowAdd,isDeletePublicDrivesEnabled:s.drives?.sections?.remote?.allowDelete,isAddCloudDrivesEnabled:s.drives?.sections?.remote?.allowAdd??!0,isDeleteCloudDrivesEnabled:s.drives?.sections?.remote?.allowDelete??!0,isAddLocalDrivesEnabled:s.drives?.sections?.local?.allowAdd,isDeleteLocalDrivesEnabled:s.drives?.sections?.local?.allowDelete,isAnalyticsDatabaseWorkerEnabled:!1,isExternalPackagesEnabled:s.packages?.externalEnabled}}function d(e,t,n){let r=u(),i={};return n.drives?.allowAddDrive!==void 0&&(i.isAddDriveEnabled=n.drives.allowAddDrive),{basePath:e,routerBasename:t,...r,...i}}function f(){let e=l()??`/`;return d(e,c(e),s)}var p=f(),m={isExternalControlsEnabled:p.isExternalControlsEnabled},h={allowedDocumentTypes:p.allowedDocumentTypes,isDragAndDropEnabled:p.isDragAndDropEnabled},g=s.app?.logLevel;g&&i(g),r.debug(`Setting log level to @level.`,g);var _=n(l()??`/`),v=`${_.replace(/\//g,``)}:analytics`,y={appVersion:o.PH_CONNECT_VERSION,studioMode:s.app?.studioMode??!1,workflowsEnabled:s.app?.workflowsEnabled??!1,warnOutdatedApp:p.warnOutdatedApp,appVersionCheckInterval:36e5,routerBasename:_,offline:s.app?.offline??!0,aiAssistantEnabled:s.ai?.assistantEnabled??!1,externalPackagesEnabled:s.packages?.externalEnabled,processors:{enabled:!0,externalProcessorsEnabled:!0},analytics:{enabled:!0,databaseName:v,useWorker:!1,driveAnalyticsEnabled:o.PH_CONNECT_DRIVE_ANALYTICS_ENABLED,diffProcessorEnabled:o.PH_CONNECT_DIFF_ANALYTICS_ENABLED,externalProcessorsEnabled:!0},relational:{enabled:!0,externalProcessorsEnabled:!0},openPanel:a(s.openPanel,o),renown:{url:s.renown?.url,networkId:s.renown?.networkId,chainId:s.renown?.chainId,namespace:s.renown?.namespace,switchboardUrl:s.renown?.switchboardUrl,adapters:s.renown?.adapters},sentry:{release:`0.1.0-dev.107`,dsn:s.sentry?.dsn??null,env:s.sentry?.env,tracing:s.sentry?.tracing??!1},content:{showSearchBar:!1,showDocumentModelSelectionSetting:!1},drives:{addDriveEnabled:s.drives?.allowAddDrive,preserveStrategy:s.drives?.preserveStrategy,sections:(()=>{let e={enabled:s.drives?.sections?.remote?.enabled,allowAdd:s.drives?.sections?.remote?.allowAdd,allowDelete:s.drives?.sections?.remote?.allowDelete};return{LOCAL:{enabled:s.drives?.sections?.local?.enabled,allowAdd:s.drives?.sections?.local?.allowAdd,allowDelete:s.drives?.sections?.local?.allowDelete},PUBLIC:e,CLOUD:e}})()},gaTrackingId:void 0,phCliVersion:o.PH_CONNECT_CLI_VERSION};export{m as a,h as i,d as n,p as o,y as r,_ as t};
2
+ //# sourceMappingURL=connect.config-CaXMoB42-D2BeV43I.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connect.config-CaXMoB42-Dbb5nzkI.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/connect.config-CaXMoB42.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"393ad854-91a3-56dd-a42b-613d747ff54e\")}catch(e){}}();\nimport { n as getRuntimeConfig } from \"./runtime-config-DtJIUgYw.js\";\nimport { loadRuntimeEnv, normalizeBasePath } from \"@powerhousedao/shared/connect\";\nimport { setLogLevel } from \"@powerhousedao/reactor-browser\";\nimport { logger } from \"document-model\";\n//#region src/utils/openpanel-config.ts\n/**\n* Resolve Connect's OpenPanel settings. The runtime config\n* (`connect.openPanel`, settable per deploy via PH_CONNECT_CONFIG_JSON) wins;\n* the build-time PH_CONNECT_OPENPANEL_* env is the fallback so builds that\n* bake it keep working. An empty clientId leaves OpenPanel disabled.\n*/\nfunction resolveOpenPanelConfig(runtime, env) {\n\treturn {\n\t\tclientId: runtime?.clientId || env.PH_CONNECT_OPENPANEL_CLIENT_ID || \"\",\n\t\tapiUrl: runtime?.apiUrl || env.PH_CONNECT_OPENPANEL_API_URL || void 0,\n\t\ttrackUiEvents: runtime?.trackUiEvents ?? env.PH_CONNECT_OPENPANEL_TRACK_UI_EVENTS,\n\t\ttrackOperations: runtime?.trackOperations ?? env.PH_CONNECT_OPENPANEL_TRACK_OPERATIONS\n\t};\n}\n//#endregion\n//#region src/connect.config.ts\nconst env = loadRuntimeEnv({ processEnv: import.meta.env });\nconst runtime = getRuntimeConfig().connect;\nfunction getRouterBasenameFromBasePath(basePath) {\n\treturn basePath.endsWith(\"/\") ? basePath : basePath + \"/\";\n}\nfunction getDeployBasePath() {\n\tif (typeof globalThis !== \"undefined\" && globalThis.__PH_DYNAMIC_BASE__) return import.meta.env.BASE_URL;\n\treturn runtime.app?.basePath || import.meta.env.BASE_URL;\n}\nfunction getBuiltInDefaults() {\n\tconst studioMode = runtime.app?.studioMode ?? false;\n\treturn {\n\t\tallowList: void 0,\n\t\tallowedDocumentTypes: [],\n\t\tisDragAndDropEnabled: true,\n\t\tisEditorDebugModeEnabled: false,\n\t\tisEditorReadModeEnabled: false,\n\t\tisExternalControlsEnabled: false,\n\t\tversion: env.PH_CONNECT_VERSION,\n\t\tlogLevel: runtime.app?.logLevel,\n\t\trequiresHardRefresh: true,\n\t\twarnOutdatedApp: true,\n\t\tstudioMode,\n\t\tversionCheckInterval: 36e5,\n\t\tcliVersion: env.PH_CONNECT_CLI_VERSION,\n\t\tfileUploadOperationsChunkSize: 50,\n\t\tgaTrackingId: void 0,\n\t\tdefaultDrivesUrl: runtime.drives?.defaultDrives?.find((drive) => \"url\" in drive)?.url,\n\t\tdrivesPreserveStrategy: runtime.drives?.preserveStrategy,\n\t\tenabledEditors: void 0,\n\t\tdisabledEditors: [\n\t\t\t\"powerhouse/document-drive\",\n\t\t\t\"powerhouse/reactor-drive\",\n\t\t\t\"powerhouse/document-model\",\n\t\t\t\"powerhouse/app\",\n\t\t\t\"powerhouse/document-editor\",\n\t\t\t\"powerhouse/processor\",\n\t\t\t\"powerhouse/subgraph\",\n\t\t\t\"powerhouse/package\"\n\t\t],\n\t\tisExternalProcessorsEnabled: true,\n\t\tisAnalyticsEnabled: false,\n\t\tisAnalyticsExternalProcessorsEnabled: env.PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED,\n\t\tanalyticsDatabaseName: void 0,\n\t\tisRelationalProcessorsEnabled: true,\n\t\tisExternalRelationalProcessorsEnabled: true,\n\t\trenownUrl: runtime.renown?.url,\n\t\trenownNetworkId: runtime.renown?.networkId,\n\t\trenownChainId: runtime.renown?.chainId,\n\t\tswitchboardUrl: runtime.renown?.switchboardUrl,\n\t\trenownAdapters: runtime.renown?.adapters,\n\t\tsentryRelease: PH_CONNECT_SENTRY_RELEASE,\n\t\tsentryDsn: runtime.sentry?.dsn ?? void 0,\n\t\tsentryEnv: runtime.sentry?.env,\n\t\tisDiffAnalyticsEnabled: env.PH_CONNECT_DIFF_ANALYTICS_ENABLED,\n\t\tisDriveAnalyticsEnabled: env.PH_CONNECT_DRIVE_ANALYTICS_ENABLED,\n\t\tisPublicDrivesEnabled: runtime.drives?.sections?.remote?.enabled,\n\t\tisCloudDrivesEnabled: runtime.drives?.sections?.remote?.enabled ?? true,\n\t\tisLocalDrivesEnabled: runtime.drives?.sections?.local?.enabled,\n\t\tisSentryTracingEnabled: runtime.sentry?.tracing,\n\t\tisDocumentModelSelectionSettingsEnabled: false,\n\t\tisAddDriveEnabled: runtime.drives?.allowAddDrive,\n\t\tisAddPublicDrivesEnabled: runtime.drives?.sections?.remote?.allowAdd,\n\t\tisDeletePublicDrivesEnabled: runtime.drives?.sections?.remote?.allowDelete,\n\t\tisAddCloudDrivesEnabled: runtime.drives?.sections?.remote?.allowAdd ?? true,\n\t\tisDeleteCloudDrivesEnabled: runtime.drives?.sections?.remote?.allowDelete ?? true,\n\t\tisAddLocalDrivesEnabled: runtime.drives?.sections?.local?.allowAdd,\n\t\tisDeleteLocalDrivesEnabled: runtime.drives?.sections?.local?.allowDelete,\n\t\tisAnalyticsDatabaseWorkerEnabled: false,\n\t\tisExternalPackagesEnabled: runtime.packages?.externalEnabled\n\t};\n}\nfunction buildPHGlobalConfig(basePath, routerBasename, connectFromConfig) {\n\tconst defaults = getBuiltInDefaults();\n\tconst fileOverrides = {};\n\tif (connectFromConfig.drives?.allowAddDrive !== void 0) fileOverrides.isAddDriveEnabled = connectFromConfig.drives.allowAddDrive;\n\treturn {\n\t\tbasePath,\n\t\trouterBasename,\n\t\t...defaults,\n\t\t...fileOverrides\n\t};\n}\nfunction getPHGlobalConfigFromRuntime() {\n\tconst basePath = getDeployBasePath() ?? \"/\";\n\treturn buildPHGlobalConfig(basePath, getRouterBasenameFromBasePath(basePath), runtime);\n}\nconst phGlobalConfig = getPHGlobalConfigFromRuntime();\nconst defaultPHDocumentEditorConfig = { isExternalControlsEnabled: phGlobalConfig.isExternalControlsEnabled };\nconst defaultPHAppConfig = {\n\tallowedDocumentTypes: phGlobalConfig.allowedDocumentTypes,\n\tisDragAndDropEnabled: phGlobalConfig.isDragAndDropEnabled\n};\nconst RESOLVED_LOG_LEVEL = runtime.app?.logLevel;\nif (RESOLVED_LOG_LEVEL) setLogLevel(RESOLVED_LOG_LEVEL);\nlogger.debug(\"Setting log level to @level.\", RESOLVED_LOG_LEVEL);\nconst PH_CONNECT_BASE_PATH = normalizeBasePath(getDeployBasePath() ?? \"/\");\nconst PH_CONNECT_ANALYTICS_DATABASE_NAME = `${PH_CONNECT_BASE_PATH.replace(/\\//g, \"\")}:analytics`;\nconst connectConfig = {\n\tappVersion: env.PH_CONNECT_VERSION,\n\tstudioMode: runtime.app?.studioMode ?? false,\n\tworkflowsEnabled: runtime.app?.workflowsEnabled ?? false,\n\twarnOutdatedApp: phGlobalConfig.warnOutdatedApp,\n\tappVersionCheckInterval: 36e5,\n\trouterBasename: PH_CONNECT_BASE_PATH,\n\toffline: runtime.app?.offline ?? true,\n\taiAssistantEnabled: runtime.ai?.assistantEnabled ?? false,\n\texternalPackagesEnabled: runtime.packages?.externalEnabled,\n\tprocessors: {\n\t\tenabled: true,\n\t\texternalProcessorsEnabled: true\n\t},\n\tanalytics: {\n\t\tenabled: true,\n\t\tdatabaseName: PH_CONNECT_ANALYTICS_DATABASE_NAME,\n\t\tuseWorker: false,\n\t\tdriveAnalyticsEnabled: env.PH_CONNECT_DRIVE_ANALYTICS_ENABLED,\n\t\tdiffProcessorEnabled: env.PH_CONNECT_DIFF_ANALYTICS_ENABLED,\n\t\texternalProcessorsEnabled: true\n\t},\n\trelational: {\n\t\tenabled: true,\n\t\texternalProcessorsEnabled: true\n\t},\n\topenPanel: resolveOpenPanelConfig(runtime.openPanel, env),\n\trenown: {\n\t\turl: runtime.renown?.url,\n\t\tnetworkId: runtime.renown?.networkId,\n\t\tchainId: runtime.renown?.chainId,\n\t\tnamespace: runtime.renown?.namespace,\n\t\tswitchboardUrl: runtime.renown?.switchboardUrl,\n\t\tadapters: runtime.renown?.adapters\n\t},\n\tsentry: {\n\t\trelease: PH_CONNECT_SENTRY_RELEASE,\n\t\tdsn: runtime.sentry?.dsn ?? null,\n\t\tenv: runtime.sentry?.env,\n\t\ttracing: runtime.sentry?.tracing ?? false\n\t},\n\tcontent: {\n\t\tshowSearchBar: false,\n\t\tshowDocumentModelSelectionSetting: false\n\t},\n\tdrives: {\n\t\taddDriveEnabled: runtime.drives?.allowAddDrive,\n\t\tpreserveStrategy: runtime.drives?.preserveStrategy,\n\t\tsections: (() => {\n\t\t\tconst remote = {\n\t\t\t\tenabled: runtime.drives?.sections?.remote?.enabled,\n\t\t\t\tallowAdd: runtime.drives?.sections?.remote?.allowAdd,\n\t\t\t\tallowDelete: runtime.drives?.sections?.remote?.allowDelete\n\t\t\t};\n\t\t\treturn {\n\t\t\t\tLOCAL: {\n\t\t\t\t\tenabled: runtime.drives?.sections?.local?.enabled,\n\t\t\t\t\tallowAdd: runtime.drives?.sections?.local?.allowAdd,\n\t\t\t\t\tallowDelete: runtime.drives?.sections?.local?.allowDelete\n\t\t\t\t},\n\t\t\t\tPUBLIC: remote,\n\t\t\t\tCLOUD: remote\n\t\t\t};\n\t\t})()\n\t},\n\tgaTrackingId: void 0,\n\tphCliVersion: env.PH_CONNECT_CLI_VERSION\n};\n//#endregion\nexport { defaultPHDocumentEditorConfig as a, defaultPHAppConfig as i, buildPHGlobalConfig as n, phGlobalConfig as o, connectConfig as r, PH_CONNECT_BASE_PATH as t };\n\n//# sourceMappingURL=connect.config-CaXMoB42.js.map\n//# debugId=393ad854-91a3-56dd-a42b-613d747ff54e\n"],"x_google_ignoreList":[0],"mappings":"sPACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,EAAA,CAAE,EAYhT,SAAS,EAAuB,EAAS,EAAK,CAC7C,MAAO,CACN,SAAU,GAAS,UAAY,EAAI,gCAAkC,GACrE,OAAQ,GAAS,QAAU,EAAI,8BAAgC,IAAK,GACpE,cAAe,GAAS,eAAiB,EAAI,qCAC7C,gBAAiB,GAAS,iBAAmB,EAAI,qCAClD,CACD,CAGA,IAAM,EAAM,EAAe,CAAE,WAAA,uTAA4B,CAAA,CAAC,EACpD,EAAU,EAAiB,CAAC,CAAC,QACnC,SAAS,EAA8B,EAAU,CAChD,OAAO,EAAS,SAAS,GAAG,EAAI,EAAW,EAAW,GACvD,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B,EAAI,mCAC3B,qBAAsB,EAAI,kCAC1B,0BAA2B,EAC5B,EACA,WAAY,CACX,QAAS,GACT,0BAA2B,EAC5B,EACA,UAAW,EAAuB,EAAQ,UAAW,CAAG,EACxD,OAAQ,CACP,IAAK,EAAQ,QAAQ,IACrB,UAAW,EAAQ,QAAQ,UAC3B,QAAS,EAAQ,QAAQ,QACzB,UAAW,EAAQ,QAAQ,UAC3B,eAAgB,EAAQ,QAAQ,eAChC,SAAU,EAAQ,QAAQ,QAC3B,EACA,OAAQ,CACP,QAAA,gBACA,IAAK,EAAQ,QAAQ,KAAO,KAC5B,IAAK,EAAQ,QAAQ,IACrB,QAAS,EAAQ,QAAQ,SAAW,EACrC,EACA,QAAS,CACR,cAAe,GACf,kCAAmC,EACpC,EACA,OAAQ,CACP,gBAAiB,EAAQ,QAAQ,cACjC,iBAAkB,EAAQ,QAAQ,iBAClC,cAAiB,CAChB,IAAM,EAAS,CACd,QAAS,EAAQ,QAAQ,UAAU,QAAQ,QAC3C,SAAU,EAAQ,QAAQ,UAAU,QAAQ,SAC5C,YAAa,EAAQ,QAAQ,UAAU,QAAQ,WAChD,EACA,MAAO,CACN,MAAO,CACN,QAAS,EAAQ,QAAQ,UAAU,OAAO,QAC1C,SAAU,EAAQ,QAAQ,UAAU,OAAO,SAC3C,YAAa,EAAQ,QAAQ,UAAU,OAAO,WAC/C,EACA,OAAQ,EACR,MAAO,CACR,CACD,EAAA,CAAG,CACJ,EACA,aAAc,IAAK,GACnB,aAAc,EAAI,sBACnB"}
1
+ {"version":3,"file":"connect.config-CaXMoB42-D2BeV43I.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/connect.config-CaXMoB42.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"393ad854-91a3-56dd-a42b-613d747ff54e\")}catch(e){}}();\nimport { n as getRuntimeConfig } from \"./runtime-config-DtJIUgYw.js\";\nimport { loadRuntimeEnv, normalizeBasePath } from \"@powerhousedao/shared/connect\";\nimport { setLogLevel } from \"@powerhousedao/reactor-browser\";\nimport { logger } from \"document-model\";\n//#region src/utils/openpanel-config.ts\n/**\n* Resolve Connect's OpenPanel settings. The runtime config\n* (`connect.openPanel`, settable per deploy via PH_CONNECT_CONFIG_JSON) wins;\n* the build-time PH_CONNECT_OPENPANEL_* env is the fallback so builds that\n* bake it keep working. An empty clientId leaves OpenPanel disabled.\n*/\nfunction resolveOpenPanelConfig(runtime, env) {\n\treturn {\n\t\tclientId: runtime?.clientId || env.PH_CONNECT_OPENPANEL_CLIENT_ID || \"\",\n\t\tapiUrl: runtime?.apiUrl || env.PH_CONNECT_OPENPANEL_API_URL || void 0,\n\t\ttrackUiEvents: runtime?.trackUiEvents ?? env.PH_CONNECT_OPENPANEL_TRACK_UI_EVENTS,\n\t\ttrackOperations: runtime?.trackOperations ?? env.PH_CONNECT_OPENPANEL_TRACK_OPERATIONS\n\t};\n}\n//#endregion\n//#region src/connect.config.ts\nconst env = loadRuntimeEnv({ processEnv: import.meta.env });\nconst runtime = getRuntimeConfig().connect;\nfunction getRouterBasenameFromBasePath(basePath) {\n\treturn basePath.endsWith(\"/\") ? basePath : basePath + \"/\";\n}\nfunction getDeployBasePath() {\n\tif (typeof globalThis !== \"undefined\" && globalThis.__PH_DYNAMIC_BASE__) return import.meta.env.BASE_URL;\n\treturn runtime.app?.basePath || import.meta.env.BASE_URL;\n}\nfunction getBuiltInDefaults() {\n\tconst studioMode = runtime.app?.studioMode ?? false;\n\treturn {\n\t\tallowList: void 0,\n\t\tallowedDocumentTypes: [],\n\t\tisDragAndDropEnabled: true,\n\t\tisEditorDebugModeEnabled: false,\n\t\tisEditorReadModeEnabled: false,\n\t\tisExternalControlsEnabled: false,\n\t\tversion: env.PH_CONNECT_VERSION,\n\t\tlogLevel: runtime.app?.logLevel,\n\t\trequiresHardRefresh: true,\n\t\twarnOutdatedApp: true,\n\t\tstudioMode,\n\t\tversionCheckInterval: 36e5,\n\t\tcliVersion: env.PH_CONNECT_CLI_VERSION,\n\t\tfileUploadOperationsChunkSize: 50,\n\t\tgaTrackingId: void 0,\n\t\tdefaultDrivesUrl: runtime.drives?.defaultDrives?.find((drive) => \"url\" in drive)?.url,\n\t\tdrivesPreserveStrategy: runtime.drives?.preserveStrategy,\n\t\tenabledEditors: void 0,\n\t\tdisabledEditors: [\n\t\t\t\"powerhouse/document-drive\",\n\t\t\t\"powerhouse/reactor-drive\",\n\t\t\t\"powerhouse/document-model\",\n\t\t\t\"powerhouse/app\",\n\t\t\t\"powerhouse/document-editor\",\n\t\t\t\"powerhouse/processor\",\n\t\t\t\"powerhouse/subgraph\",\n\t\t\t\"powerhouse/package\"\n\t\t],\n\t\tisExternalProcessorsEnabled: true,\n\t\tisAnalyticsEnabled: false,\n\t\tisAnalyticsExternalProcessorsEnabled: env.PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED,\n\t\tanalyticsDatabaseName: void 0,\n\t\tisRelationalProcessorsEnabled: true,\n\t\tisExternalRelationalProcessorsEnabled: true,\n\t\trenownUrl: runtime.renown?.url,\n\t\trenownNetworkId: runtime.renown?.networkId,\n\t\trenownChainId: runtime.renown?.chainId,\n\t\tswitchboardUrl: runtime.renown?.switchboardUrl,\n\t\trenownAdapters: runtime.renown?.adapters,\n\t\tsentryRelease: PH_CONNECT_SENTRY_RELEASE,\n\t\tsentryDsn: runtime.sentry?.dsn ?? void 0,\n\t\tsentryEnv: runtime.sentry?.env,\n\t\tisDiffAnalyticsEnabled: env.PH_CONNECT_DIFF_ANALYTICS_ENABLED,\n\t\tisDriveAnalyticsEnabled: env.PH_CONNECT_DRIVE_ANALYTICS_ENABLED,\n\t\tisPublicDrivesEnabled: runtime.drives?.sections?.remote?.enabled,\n\t\tisCloudDrivesEnabled: runtime.drives?.sections?.remote?.enabled ?? true,\n\t\tisLocalDrivesEnabled: runtime.drives?.sections?.local?.enabled,\n\t\tisSentryTracingEnabled: runtime.sentry?.tracing,\n\t\tisDocumentModelSelectionSettingsEnabled: false,\n\t\tisAddDriveEnabled: runtime.drives?.allowAddDrive,\n\t\tisAddPublicDrivesEnabled: runtime.drives?.sections?.remote?.allowAdd,\n\t\tisDeletePublicDrivesEnabled: runtime.drives?.sections?.remote?.allowDelete,\n\t\tisAddCloudDrivesEnabled: runtime.drives?.sections?.remote?.allowAdd ?? true,\n\t\tisDeleteCloudDrivesEnabled: runtime.drives?.sections?.remote?.allowDelete ?? true,\n\t\tisAddLocalDrivesEnabled: runtime.drives?.sections?.local?.allowAdd,\n\t\tisDeleteLocalDrivesEnabled: runtime.drives?.sections?.local?.allowDelete,\n\t\tisAnalyticsDatabaseWorkerEnabled: false,\n\t\tisExternalPackagesEnabled: runtime.packages?.externalEnabled\n\t};\n}\nfunction buildPHGlobalConfig(basePath, routerBasename, connectFromConfig) {\n\tconst defaults = getBuiltInDefaults();\n\tconst fileOverrides = {};\n\tif (connectFromConfig.drives?.allowAddDrive !== void 0) fileOverrides.isAddDriveEnabled = connectFromConfig.drives.allowAddDrive;\n\treturn {\n\t\tbasePath,\n\t\trouterBasename,\n\t\t...defaults,\n\t\t...fileOverrides\n\t};\n}\nfunction getPHGlobalConfigFromRuntime() {\n\tconst basePath = getDeployBasePath() ?? \"/\";\n\treturn buildPHGlobalConfig(basePath, getRouterBasenameFromBasePath(basePath), runtime);\n}\nconst phGlobalConfig = getPHGlobalConfigFromRuntime();\nconst defaultPHDocumentEditorConfig = { isExternalControlsEnabled: phGlobalConfig.isExternalControlsEnabled };\nconst defaultPHAppConfig = {\n\tallowedDocumentTypes: phGlobalConfig.allowedDocumentTypes,\n\tisDragAndDropEnabled: phGlobalConfig.isDragAndDropEnabled\n};\nconst RESOLVED_LOG_LEVEL = runtime.app?.logLevel;\nif (RESOLVED_LOG_LEVEL) setLogLevel(RESOLVED_LOG_LEVEL);\nlogger.debug(\"Setting log level to @level.\", RESOLVED_LOG_LEVEL);\nconst PH_CONNECT_BASE_PATH = normalizeBasePath(getDeployBasePath() ?? \"/\");\nconst PH_CONNECT_ANALYTICS_DATABASE_NAME = `${PH_CONNECT_BASE_PATH.replace(/\\//g, \"\")}:analytics`;\nconst connectConfig = {\n\tappVersion: env.PH_CONNECT_VERSION,\n\tstudioMode: runtime.app?.studioMode ?? false,\n\tworkflowsEnabled: runtime.app?.workflowsEnabled ?? false,\n\twarnOutdatedApp: phGlobalConfig.warnOutdatedApp,\n\tappVersionCheckInterval: 36e5,\n\trouterBasename: PH_CONNECT_BASE_PATH,\n\toffline: runtime.app?.offline ?? true,\n\taiAssistantEnabled: runtime.ai?.assistantEnabled ?? false,\n\texternalPackagesEnabled: runtime.packages?.externalEnabled,\n\tprocessors: {\n\t\tenabled: true,\n\t\texternalProcessorsEnabled: true\n\t},\n\tanalytics: {\n\t\tenabled: true,\n\t\tdatabaseName: PH_CONNECT_ANALYTICS_DATABASE_NAME,\n\t\tuseWorker: false,\n\t\tdriveAnalyticsEnabled: env.PH_CONNECT_DRIVE_ANALYTICS_ENABLED,\n\t\tdiffProcessorEnabled: env.PH_CONNECT_DIFF_ANALYTICS_ENABLED,\n\t\texternalProcessorsEnabled: true\n\t},\n\trelational: {\n\t\tenabled: true,\n\t\texternalProcessorsEnabled: true\n\t},\n\topenPanel: resolveOpenPanelConfig(runtime.openPanel, env),\n\trenown: {\n\t\turl: runtime.renown?.url,\n\t\tnetworkId: runtime.renown?.networkId,\n\t\tchainId: runtime.renown?.chainId,\n\t\tnamespace: runtime.renown?.namespace,\n\t\tswitchboardUrl: runtime.renown?.switchboardUrl,\n\t\tadapters: runtime.renown?.adapters\n\t},\n\tsentry: {\n\t\trelease: PH_CONNECT_SENTRY_RELEASE,\n\t\tdsn: runtime.sentry?.dsn ?? null,\n\t\tenv: runtime.sentry?.env,\n\t\ttracing: runtime.sentry?.tracing ?? false\n\t},\n\tcontent: {\n\t\tshowSearchBar: false,\n\t\tshowDocumentModelSelectionSetting: false\n\t},\n\tdrives: {\n\t\taddDriveEnabled: runtime.drives?.allowAddDrive,\n\t\tpreserveStrategy: runtime.drives?.preserveStrategy,\n\t\tsections: (() => {\n\t\t\tconst remote = {\n\t\t\t\tenabled: runtime.drives?.sections?.remote?.enabled,\n\t\t\t\tallowAdd: runtime.drives?.sections?.remote?.allowAdd,\n\t\t\t\tallowDelete: runtime.drives?.sections?.remote?.allowDelete\n\t\t\t};\n\t\t\treturn {\n\t\t\t\tLOCAL: {\n\t\t\t\t\tenabled: runtime.drives?.sections?.local?.enabled,\n\t\t\t\t\tallowAdd: runtime.drives?.sections?.local?.allowAdd,\n\t\t\t\t\tallowDelete: runtime.drives?.sections?.local?.allowDelete\n\t\t\t\t},\n\t\t\t\tPUBLIC: remote,\n\t\t\t\tCLOUD: remote\n\t\t\t};\n\t\t})()\n\t},\n\tgaTrackingId: void 0,\n\tphCliVersion: env.PH_CONNECT_CLI_VERSION\n};\n//#endregion\nexport { defaultPHDocumentEditorConfig as a, defaultPHAppConfig as i, buildPHGlobalConfig as n, phGlobalConfig as o, connectConfig as r, PH_CONNECT_BASE_PATH as t };\n\n//# sourceMappingURL=connect.config-CaXMoB42.js.map\n//# debugId=393ad854-91a3-56dd-a42b-613d747ff54e\n"],"x_google_ignoreList":[0],"mappings":"sPACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,EAAA,CAAE,EAYhT,SAAS,EAAuB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CACR,CACD,EAAA,CAAG,CACJ,EACA,aAAc,IAAK,GACnB,aAAc,EAAI,sBACnB"}
@@ -1,3 +1,3 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-16wyYGXK.js","assets/rolldown-runtime-BcKkbAw3.js","assets/preload-helper-BZ1Pz5am.js","assets/chunk-BTBUZ646--Q_mGPOy.js","assets/chunk-WGR4JCLS-BXpTqGmk.js","assets/chunk-EADU5A67-BqqDB7-A.js","assets/dist-ndVYYR-C.js","assets/chunk-3WWIVTCY-1OR_t9Fm.js","assets/chunk-QY3QWFKW--Q_mGPOy.js","assets/dist-BUqafLq7.js","assets/chunk-VBDAOXYI-blTJx48l.js","assets/pg_dump-C8BPA2zs.js","assets/pg_dump-RSvq0zIR.js"])))=>i.map(i=>d[i]);
2
- import{n as e}from"./runtime-config-DtJIUgYw-yncHpou3.js";import{t}from"./preload-helper-BZ1Pz5am.js";import{t as n}from"./connect.config-CaXMoB42-Dbb5nzkI.js";import{ROOT_STORAGE_NAMESPACE as r,getStorageNamespace as i}from"@powerhousedao/shared/connect";import{DOCUMENT_SCOPE_ACTION_TYPES as a,DowngradeNotSupportedError as o}from"@powerhousedao/shared/document-model";import{DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as s,hashNamespace as c}from"@powerhousedao/shared/processors";var ee={JOB_PENDING:10001,JOB_RUNNING:10002,JOB_WRITE_READY:10003,JOB_READ_READY:10004,JOB_FAILED:10005,READMODEL_BATCH_COMPLETED:10006,READMODEL_INDEXED:10007,MODEL_LOADED:10008,SIGNATURE_REFUSED:10009,CATCHUP_SWEPT:10010},l=class e extends Error{versions;documents;constructor(t,n){let r=t.map(({protocol:e,version:t})=>`${e} ${t}`).join(`, `);super(`${n} stored document(s) require ${r}, which this reactor does not run. Start a build that runs them, or accept them read-only with withUnsupportedStoredDocuments("read-only")`),this.name=`UnsupportedStoredProtocolError`,this.versions=t,this.documents=n,Error.captureStackTrace(this,e)}static isError(e){return Error.isError(e)&&e.name===`UnsupportedStoredProtocolError`}},u=`drive.`,d=class e{driveId;branch;constructor(e,t){this.driveId=e,this.branch=t}static forDrive(t,n=`main`){return new e(t,n)}static fromKey(t){if(!t.startsWith(u))throw Error(`Unsupported collection id: ${t}`);let n=t.slice(6),r=n.lastIndexOf(`.`);if(r===-1||r===n.length-1)throw Error(`Malformed drive collection id: ${t}`);return new e(n.slice(r+1),n.slice(0,r))}get key(){return`${u}${this.branch}.${this.driveId}`}toString(){return this.key}equals(e){return this.driveId===e.driveId&&this.branch===e.branch}};new Set([...a].filter(e=>e!==`CREATE_DOCUMENT`));var f=class extends Error{documentType;requestedVersion;constructor(e,t){let n=t===void 0?``:` version ${t}`;super(`Document model module not found for type: ${e}${n}`),this.name=`ModuleNotFoundError`,this.documentType=e,this.requestedVersion=t}static isError(e){return Error.isError(e)&&e.name===`ModuleNotFoundError`}},p=class extends Error{constructor(e,t){let n=t===void 0?``:` (version ${t})`;super(`Document model module already registered for type: ${e}${n}`),this.name=`DuplicateModuleError`}static isError(e){return Error.isError(e)&&e.name===`DuplicateModuleError`}},m=class extends Error{constructor(e){super(`Upgrade manifest already registered for type: ${e}`),this.name=`DuplicateManifestError`}static isError(e){return Error.isError(e)&&e.name===`DuplicateManifestError`}},h=class extends Error{constructor(e){super(`Upgrade manifest not found for type: ${e}`),this.name=`ManifestNotFoundError`}},g=class extends Error{constructor(e,t,n){super(`Missing upgrade transition for ${e}: v${t} to v${n}`),this.name=`MissingUpgradeTransitionError`}},_=class extends Error{constructor(e,t,n){super(`Invalid upgrade step for ${e}: must be single version increment, got v${t} to v${n}`),this.name=`InvalidUpgradeStepError`}},v=class{modules=[];manifests=[];registerModules(...e){return e.map(e=>{try{let t=e.documentModel.global.id,n=e.version??1;for(let e=0;e<this.modules.length;e++){let r=this.modules[e],i=r.documentModel.global.id,a=r.version??1;if(i===t&&a===n)throw new p(t,n)}return this.modules.push(e),{status:`success`,item:e}}catch(t){return{status:`error`,item:e,error:t instanceof Error?t:Error(String(t))}}})}unregisterModules(...e){let t=!0;for(let n of e)this.modules.some(e=>e.documentModel.global.id===n)||(t=!1),this.modules=this.modules.filter(e=>e.documentModel.global.id!==n);return t}getModule(e,t){let n,r=-1;for(let i=0;i<this.modules.length;i++){let a=this.modules[i],o=a.documentModel.global.id,s=a.version??1;if(o===e){if(t!==void 0&&s===t)return a;s>r&&(n=a,r=s)}}if(t===void 0&&n!==void 0)return n;throw new f(e,t)}getAllModules(){return[...this.modules]}clear(){this.modules=[],this.manifests=[]}getSupportedVersions(e){let t=[];for(let n of this.modules)n.documentModel.global.id===e&&t.push(n.version??1);if(t.length===0)throw new f(e);return t.sort((e,t)=>e-t)}getLatestVersion(e){let t=-1,n=!1;for(let r of this.modules)if(r.documentModel.global.id===e){n=!0;let e=r.version??1;e>t&&(t=e)}if(!n)throw new f(e);return t}registerUpgradeManifests(...e){return e.map(e=>{try{if(!e.documentType)throw Error(`Upgrade manifest is missing a documentType`);for(let t of this.manifests)if(t.documentType===e.documentType)throw new m(e.documentType);return this.manifests.push(e),{status:`success`,item:e}}catch(t){return{status:`error`,item:e,error:t instanceof Error?t:Error(String(t))}}})}unregisterUpgradeManifests(...e){let t=!0;for(let n of e)this.manifests.some(e=>e.documentType===n)||(t=!1),this.manifests=this.manifests.filter(e=>e.documentType!==n);return t}getUpgradeManifest(e){for(let t=0;t<this.manifests.length;t++)if(this.manifests[t].documentType===e)return this.manifests[t];throw new h(e)}computeUpgradePath(e,t,n){if(t===n)return[];if(n<t)throw new o(e,t,n);let r=this.getUpgradeManifest(e),i=[];for(let a=t+1;a<=n;a++){let t=`v${a}`;if(!(t in r.upgrades))throw new g(e,a-1,a);let n=r.upgrades[t];i.push(n)}return i}getUpgradeReducer(e,t,n){if(n!==t+1)throw new _(e,t,n);let r=this.getUpgradeManifest(e),i=`v${n}`;if(!(i in r.upgrades))throw new g(e,t,n);return r.upgrades[i].upgradeReducer}};(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`bf83be21-3f86-55bd-ae14-c4aa466d5a81`)}catch{}})();var y=`StoredDocumentsRefusedError`,b=class extends Error{constructor(e){let t=e.versions.map(({protocol:e,version:t})=>`${e} ${t}`).join(`, `);super(`This browser holds ${e.documents} document(s) that require ${t}, which this version of Connect does not run. Open them with a Connect build that runs ${t}, or set connect.reactor.unsupportedStoredDocuments to "read-only" in powerhouse.config.json to open them read-only.`,{cause:e}),this.name=y}};function x(e){return l.isError(e)?new b(e):e}function te(e){return e instanceof Error&&e.name===`StoredDocumentsRefusedError`}var S=`FILE_DATA`;function C(e,t){let n=e.error??Error(`unknown IDB error`);return Error(`${t}: ${n.message}`,{cause:n})}function w(e){return typeof indexedDB.databases==`function`?indexedDB.databases().then(t=>t.some(t=>t.name===e)).catch(()=>!0):Promise.resolve(!0)}function T(e,t,n){return new Promise((r,i)=>{let a=indexedDB.open(e,t);a.onerror=()=>i(C(a,`IDB open failed for ${e}`)),a.onblocked=()=>i(Error(`IDB open blocked for ${e}`)),a.onupgradeneeded=()=>n?.(a.result),a.onsuccess=()=>r(a.result)})}function E(e){e.objectStoreNames.contains(`FILE_DATA`)||e.createObjectStore(S).createIndex(`timestamp`,`timestamp`,{unique:!1})}async function D(e){if(!await w(e))return null;let t;try{t=await T(e,21,E)}catch{return null}try{if(!t.objectStoreNames.contains(`FILE_DATA`))return null;let n=t.transaction(S,`readonly`).objectStore(S),r=await new Promise((t,r)=>{let i=n.openCursor();i.onerror=()=>r(C(i,`FILE_DATA cursor failed for ${e}`)),i.onsuccess=()=>{let e=i.result;if(!e)return t(null);(typeof e.key==`string`?e.key:``).endsWith(`/PG_VERSION`)?t(e.value):e.continue()}});if(!r)return null;let i=r.contents instanceof Uint8Array?r.contents:new Uint8Array(r.contents),a=new TextDecoder().decode(i).trim(),o=parseInt(a,10);return Number.isFinite(o)?o:null}finally{t.close()}}var O=[16,17];function k(e){return e===null?null:O.includes(e)?e:null}function A(e){let t=k(e);return t!==null&&t!==17}function j(e){return e??17}async function M(e){if(e===16)return await t(()=>import(`./dist-16wyYGXK.js`),__vite__mapDeps([0,1,2,3,4,5]));if(e===17)return t(()=>import(`./dist-ndVYYR-C.js`),__vite__mapDeps([6,7,1,2,8,9,10]));throw Error(`Unsupported PGlite major: ${String(e)}`)}async function N(e){if(e===16)return(await t(async()=>{let{pgDump:e}=await import(`./pg_dump-C8BPA2zs.js`);return{pgDump:e}},__vite__mapDeps([11,1,2]))).pgDump;if(e===17)return(await t(async()=>{let{pgDump:e}=await import(`./pg_dump-RSvq0zIR.js`);return{pgDump:e}},__vite__mapDeps([12,1,2]))).pgDump;throw Error(`Unsupported PGlite major: ${String(e)}`)}(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b00fd9bd-6ddd-571e-9f85-f37bdef2f520`)}catch{}})();function P(e){let t=e.explicit?.trim();if(t)return t;let n=i(e.basePath),r=e.endpoint?.trim();return r?`${n}--${c(r,8)}`:n}var F=P({basePath:n,explicit:e().connect.instance?.namespace??void 0}),I=F,L=F===r?s:`${F}-${s}`,R=`/pglite/${I}`,z=`/pglite/${L}`,B=[R,z],V,H,U=new Set,W,G,K=new Set;function q(){for(let e of U)e()}function J(){for(let e of K)e()}function Y(e){return U.add(e),()=>{U.delete(e)}}async function X(){if(V!==void 0)return V;if(H)return H;H=(async()=>{let e=k(await D(R));return V=e,q(),e})();try{return await H}finally{H=void 0}}function Z(){return V}function ne(){V=void 0,W=void 0,q(),J()}async function re(){return k(await D(z))}function ie(e){return K.add(e),()=>{K.delete(e)}}function ae(){return W}async function oe(){if(W!==void 0)return W;if(G)return G;G=(async()=>{let e=(await Promise.all([D(R),D(z)])).find(A)??null;return W=e,J(),e})();try{return await G}finally{G=void 0}}var Q=`connected`,$=new Set;function se(){return Q}function ce(e){if(Q!==e){Q=e;for(let e of[...$])e()}}function le(e){return $.add(e),()=>{$.delete(e)}}export{f as A,T as C,v as D,x as E,d as O,N as S,j as T,E as _,oe as a,te as b,ae as c,ne as d,ce as f,S as g,le as h,L as i,ee as j,p as k,Z as l,Y as m,F as n,X as o,ie as p,I as r,re as s,B as t,se as u,C as v,D as w,M as x,A as y};
3
- //# sourceMappingURL=connection-state-Eqc2izmt-CZj5x6c0.js.map
2
+ import{n as e}from"./runtime-config-DtJIUgYw-yncHpou3.js";import{t}from"./preload-helper-BZ1Pz5am.js";import{t as n}from"./connect.config-CaXMoB42-D2BeV43I.js";import{ROOT_STORAGE_NAMESPACE as r,getStorageNamespace as i}from"@powerhousedao/shared/connect";import{DOCUMENT_SCOPE_ACTION_TYPES as a,DowngradeNotSupportedError as o}from"@powerhousedao/shared/document-model";import{DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as s,hashNamespace as c}from"@powerhousedao/shared/processors";var ee={JOB_PENDING:10001,JOB_RUNNING:10002,JOB_WRITE_READY:10003,JOB_READ_READY:10004,JOB_FAILED:10005,READMODEL_BATCH_COMPLETED:10006,READMODEL_INDEXED:10007,MODEL_LOADED:10008,SIGNATURE_REFUSED:10009,CATCHUP_SWEPT:10010},l=class e extends Error{versions;documents;constructor(t,n){let r=t.map(({protocol:e,version:t})=>`${e} ${t}`).join(`, `);super(`${n} stored document(s) require ${r}, which this reactor does not run. Start a build that runs them, or accept them read-only with withUnsupportedStoredDocuments("read-only")`),this.name=`UnsupportedStoredProtocolError`,this.versions=t,this.documents=n,Error.captureStackTrace(this,e)}static isError(e){return Error.isError(e)&&e.name===`UnsupportedStoredProtocolError`}},u=`drive.`,d=class e{driveId;branch;constructor(e,t){this.driveId=e,this.branch=t}static forDrive(t,n=`main`){return new e(t,n)}static fromKey(t){if(!t.startsWith(u))throw Error(`Unsupported collection id: ${t}`);let n=t.slice(6),r=n.lastIndexOf(`.`);if(r===-1||r===n.length-1)throw Error(`Malformed drive collection id: ${t}`);return new e(n.slice(r+1),n.slice(0,r))}get key(){return`${u}${this.branch}.${this.driveId}`}toString(){return this.key}equals(e){return this.driveId===e.driveId&&this.branch===e.branch}};new Set([...a].filter(e=>e!==`CREATE_DOCUMENT`));var f=class extends Error{documentType;requestedVersion;constructor(e,t){let n=t===void 0?``:` version ${t}`;super(`Document model module not found for type: ${e}${n}`),this.name=`ModuleNotFoundError`,this.documentType=e,this.requestedVersion=t}static isError(e){return Error.isError(e)&&e.name===`ModuleNotFoundError`}},p=class extends Error{constructor(e,t){let n=t===void 0?``:` (version ${t})`;super(`Document model module already registered for type: ${e}${n}`),this.name=`DuplicateModuleError`}static isError(e){return Error.isError(e)&&e.name===`DuplicateModuleError`}},m=class extends Error{constructor(e){super(`Upgrade manifest already registered for type: ${e}`),this.name=`DuplicateManifestError`}static isError(e){return Error.isError(e)&&e.name===`DuplicateManifestError`}},h=class extends Error{constructor(e){super(`Upgrade manifest not found for type: ${e}`),this.name=`ManifestNotFoundError`}},g=class extends Error{constructor(e,t,n){super(`Missing upgrade transition for ${e}: v${t} to v${n}`),this.name=`MissingUpgradeTransitionError`}},_=class extends Error{constructor(e,t,n){super(`Invalid upgrade step for ${e}: must be single version increment, got v${t} to v${n}`),this.name=`InvalidUpgradeStepError`}},v=class{modules=[];manifests=[];registerModules(...e){return e.map(e=>{try{let t=e.documentModel.global.id,n=e.version??1;for(let e=0;e<this.modules.length;e++){let r=this.modules[e],i=r.documentModel.global.id,a=r.version??1;if(i===t&&a===n)throw new p(t,n)}return this.modules.push(e),{status:`success`,item:e}}catch(t){return{status:`error`,item:e,error:t instanceof Error?t:Error(String(t))}}})}unregisterModules(...e){let t=!0;for(let n of e)this.modules.some(e=>e.documentModel.global.id===n)||(t=!1),this.modules=this.modules.filter(e=>e.documentModel.global.id!==n);return t}getModule(e,t){let n,r=-1;for(let i=0;i<this.modules.length;i++){let a=this.modules[i],o=a.documentModel.global.id,s=a.version??1;if(o===e){if(t!==void 0&&s===t)return a;s>r&&(n=a,r=s)}}if(t===void 0&&n!==void 0)return n;throw new f(e,t)}getAllModules(){return[...this.modules]}clear(){this.modules=[],this.manifests=[]}getSupportedVersions(e){let t=[];for(let n of this.modules)n.documentModel.global.id===e&&t.push(n.version??1);if(t.length===0)throw new f(e);return t.sort((e,t)=>e-t)}getLatestVersion(e){let t=-1,n=!1;for(let r of this.modules)if(r.documentModel.global.id===e){n=!0;let e=r.version??1;e>t&&(t=e)}if(!n)throw new f(e);return t}registerUpgradeManifests(...e){return e.map(e=>{try{if(!e.documentType)throw Error(`Upgrade manifest is missing a documentType`);for(let t of this.manifests)if(t.documentType===e.documentType)throw new m(e.documentType);return this.manifests.push(e),{status:`success`,item:e}}catch(t){return{status:`error`,item:e,error:t instanceof Error?t:Error(String(t))}}})}unregisterUpgradeManifests(...e){let t=!0;for(let n of e)this.manifests.some(e=>e.documentType===n)||(t=!1),this.manifests=this.manifests.filter(e=>e.documentType!==n);return t}getUpgradeManifest(e){for(let t=0;t<this.manifests.length;t++)if(this.manifests[t].documentType===e)return this.manifests[t];throw new h(e)}computeUpgradePath(e,t,n){if(t===n)return[];if(n<t)throw new o(e,t,n);let r=this.getUpgradeManifest(e),i=[];for(let a=t+1;a<=n;a++){let t=`v${a}`;if(!(t in r.upgrades))throw new g(e,a-1,a);let n=r.upgrades[t];i.push(n)}return i}getUpgradeReducer(e,t,n){if(n!==t+1)throw new _(e,t,n);let r=this.getUpgradeManifest(e),i=`v${n}`;if(!(i in r.upgrades))throw new g(e,t,n);return r.upgrades[i].upgradeReducer}};(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`bf83be21-3f86-55bd-ae14-c4aa466d5a81`)}catch{}})();var y=`StoredDocumentsRefusedError`,b=class extends Error{constructor(e){let t=e.versions.map(({protocol:e,version:t})=>`${e} ${t}`).join(`, `);super(`This browser holds ${e.documents} document(s) that require ${t}, which this version of Connect does not run. Open them with a Connect build that runs ${t}, or set connect.reactor.unsupportedStoredDocuments to "read-only" in powerhouse.config.json to open them read-only.`,{cause:e}),this.name=y}};function x(e){return l.isError(e)?new b(e):e}function te(e){return e instanceof Error&&e.name===`StoredDocumentsRefusedError`}var S=`FILE_DATA`;function C(e,t){let n=e.error??Error(`unknown IDB error`);return Error(`${t}: ${n.message}`,{cause:n})}function w(e){return typeof indexedDB.databases==`function`?indexedDB.databases().then(t=>t.some(t=>t.name===e)).catch(()=>!0):Promise.resolve(!0)}function T(e,t,n){return new Promise((r,i)=>{let a=indexedDB.open(e,t);a.onerror=()=>i(C(a,`IDB open failed for ${e}`)),a.onblocked=()=>i(Error(`IDB open blocked for ${e}`)),a.onupgradeneeded=()=>n?.(a.result),a.onsuccess=()=>r(a.result)})}function E(e){e.objectStoreNames.contains(`FILE_DATA`)||e.createObjectStore(S).createIndex(`timestamp`,`timestamp`,{unique:!1})}async function D(e){if(!await w(e))return null;let t;try{t=await T(e,21,E)}catch{return null}try{if(!t.objectStoreNames.contains(`FILE_DATA`))return null;let n=t.transaction(S,`readonly`).objectStore(S),r=await new Promise((t,r)=>{let i=n.openCursor();i.onerror=()=>r(C(i,`FILE_DATA cursor failed for ${e}`)),i.onsuccess=()=>{let e=i.result;if(!e)return t(null);(typeof e.key==`string`?e.key:``).endsWith(`/PG_VERSION`)?t(e.value):e.continue()}});if(!r)return null;let i=r.contents instanceof Uint8Array?r.contents:new Uint8Array(r.contents),a=new TextDecoder().decode(i).trim(),o=parseInt(a,10);return Number.isFinite(o)?o:null}finally{t.close()}}var O=[16,17];function k(e){return e===null?null:O.includes(e)?e:null}function A(e){let t=k(e);return t!==null&&t!==17}function j(e){return e??17}async function M(e){if(e===16)return await t(()=>import(`./dist-16wyYGXK.js`),__vite__mapDeps([0,1,2,3,4,5]));if(e===17)return t(()=>import(`./dist-ndVYYR-C.js`),__vite__mapDeps([6,7,1,2,8,9,10]));throw Error(`Unsupported PGlite major: ${String(e)}`)}async function N(e){if(e===16)return(await t(async()=>{let{pgDump:e}=await import(`./pg_dump-C8BPA2zs.js`);return{pgDump:e}},__vite__mapDeps([11,1,2]))).pgDump;if(e===17)return(await t(async()=>{let{pgDump:e}=await import(`./pg_dump-RSvq0zIR.js`);return{pgDump:e}},__vite__mapDeps([12,1,2]))).pgDump;throw Error(`Unsupported PGlite major: ${String(e)}`)}(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b00fd9bd-6ddd-571e-9f85-f37bdef2f520`)}catch{}})();function P(e){let t=e.explicit?.trim();if(t)return t;let n=i(e.basePath),r=e.endpoint?.trim();return r?`${n}--${c(r,8)}`:n}var F=P({basePath:n,explicit:e().connect.instance?.namespace??void 0}),I=F,L=F===r?s:`${F}-${s}`,R=`/pglite/${I}`,z=`/pglite/${L}`,B=[R,z],V,H,U=new Set,W,G,K=new Set;function q(){for(let e of U)e()}function J(){for(let e of K)e()}function Y(e){return U.add(e),()=>{U.delete(e)}}async function X(){if(V!==void 0)return V;if(H)return H;H=(async()=>{let e=k(await D(R));return V=e,q(),e})();try{return await H}finally{H=void 0}}function Z(){return V}function ne(){V=void 0,W=void 0,q(),J()}async function re(){return k(await D(z))}function ie(e){return K.add(e),()=>{K.delete(e)}}function ae(){return W}async function oe(){if(W!==void 0)return W;if(G)return G;G=(async()=>{let e=(await Promise.all([D(R),D(z)])).find(A)??null;return W=e,J(),e})();try{return await G}finally{G=void 0}}var Q=`connected`,$=new Set;function se(){return Q}function ce(e){if(Q!==e){Q=e;for(let e of[...$])e()}}function le(e){return $.add(e),()=>{$.delete(e)}}export{f as A,T as C,v as D,x as E,d as O,N as S,j as T,E as _,oe as a,te as b,ae as c,ne as d,ce as f,S as g,le as h,L as i,ee as j,p as k,Z as l,Y as m,F as n,X as o,ie as p,I as r,re as s,B as t,se as u,C as v,D as w,M as x,A as y};
3
+ //# sourceMappingURL=connection-state-Eqc2izmt-C-KzrbY1.js.map