@powerhousedao/connect 1.0.21-staging.0 → 1.0.22-staging.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-B2txMMB6.js","assets/main.D6_W-5oY.js","assets/app-CDOWlDp2.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-BIg_-piZ.js","assets/main.DfFOgz9f.js","assets/app-CSCydE8J.css"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -11,7 +11,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
11
11
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
12
12
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
13
13
  var _tags, _levelString, _errorHandler, _ConsoleLogger_instances, levelValue_get, _getDocumentModelModule, _drives, _ReadModeService_instances, parseGraphQLErrors_fn, fetchDrive_fn, _a, _ServiceWorkerManager_instances, handleServiceWorkerMessage_fn, handleServiceWorker_fn;
14
- import { _ as __vitePreload } from "./main.D6_W-5oY.js";
14
+ import { _ as __vitePreload } from "./main.DfFOgz9f.js";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
16
16
  import { useState, useEffect, Suspense, lazy } from "react";
17
17
  function _mergeNamespaces(n, m) {
@@ -9891,6 +9891,7 @@ const types = {
9891
9891
  "application/dash+xml": ["mpd"],
9892
9892
  "application/dash-patch+xml": ["mpp"],
9893
9893
  "application/davmount+xml": ["davmount"],
9894
+ "application/dicom": ["dcm"],
9894
9895
  "application/docbook+xml": ["dbk"],
9895
9896
  "application/dssc+der": ["dssc"],
9896
9897
  "application/dssc+xml": ["xdssc"],
@@ -9977,7 +9978,14 @@ const types = {
9977
9978
  "application/oebps-package+xml": ["opf"],
9978
9979
  "application/ogg": ["ogx"],
9979
9980
  "application/omdoc+xml": ["omdoc"],
9980
- "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"],
9981
+ "application/onenote": [
9982
+ "onetoc",
9983
+ "onetoc2",
9984
+ "onetmp",
9985
+ "onepkg",
9986
+ "one",
9987
+ "onea"
9988
+ ],
9981
9989
  "application/oxps": ["oxps"],
9982
9990
  "application/p2p-overlay+xml": ["relo"],
9983
9991
  "application/patch-ops-error+xml": ["xer"],
@@ -10073,6 +10081,7 @@ const types = {
10073
10081
  "application/yang": ["yang"],
10074
10082
  "application/yin+xml": ["yin"],
10075
10083
  "application/zip": ["zip"],
10084
+ "application/zip+dotlottie": ["lottie"],
10076
10085
  "audio/3gpp": ["*3gpp"],
10077
10086
  "audio/aac": ["adts", "aac"],
10078
10087
  "audio/adpcm": ["adp"],
@@ -10081,7 +10090,7 @@ const types = {
10081
10090
  "audio/midi": ["mid", "midi", "kar", "rmi"],
10082
10091
  "audio/mobile-xmf": ["mxmf"],
10083
10092
  "audio/mp3": ["*mp3"],
10084
- "audio/mp4": ["m4a", "mp4a"],
10093
+ "audio/mp4": ["m4a", "mp4a", "m4b"],
10085
10094
  "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"],
10086
10095
  "audio/ogg": ["oga", "ogg", "spx", "opus"],
10087
10096
  "audio/s3m": ["s3m"],
@@ -10113,11 +10122,12 @@ const types = {
10113
10122
  "image/heif": ["heif"],
10114
10123
  "image/heif-sequence": ["heifs"],
10115
10124
  "image/hej2k": ["hej2"],
10116
- "image/hsj2": ["hsj2"],
10117
10125
  "image/ief": ["ief"],
10126
+ "image/jaii": ["jaii"],
10127
+ "image/jais": ["jais"],
10118
10128
  "image/jls": ["jls"],
10119
10129
  "image/jp2": ["jp2", "jpg2"],
10120
- "image/jpeg": ["jpeg", "jpg", "jpe"],
10130
+ "image/jpeg": ["jpg", "jpeg", "jpe"],
10121
10131
  "image/jph": ["jph"],
10122
10132
  "image/jphc": ["jhc"],
10123
10133
  "image/jpm": ["jpm", "jpgm"],
@@ -10132,6 +10142,7 @@ const types = {
10132
10142
  "image/jxss": ["jxss"],
10133
10143
  "image/ktx": ["ktx"],
10134
10144
  "image/ktx2": ["ktx2"],
10145
+ "image/pjpeg": ["jfif"],
10135
10146
  "image/png": ["png"],
10136
10147
  "image/sgi": ["sgi"],
10137
10148
  "image/svg+xml": ["svg", "svgz"],
@@ -10145,7 +10156,7 @@ const types = {
10145
10156
  "message/global-delivery-status": ["u8dsn"],
10146
10157
  "message/global-disposition-notification": ["u8mdn"],
10147
10158
  "message/global-headers": ["u8hdr"],
10148
- "message/rfc822": ["eml", "mime"],
10159
+ "message/rfc822": ["eml", "mime", "mht", "mhtml"],
10149
10160
  "model/3mf": ["3mf"],
10150
10161
  "model/gltf+json": ["gltf"],
10151
10162
  "model/gltf-binary": ["glb"],
@@ -10155,6 +10166,7 @@ const types = {
10155
10166
  "model/mtl": ["mtl"],
10156
10167
  "model/obj": ["obj"],
10157
10168
  "model/prc": ["prc"],
10169
+ "model/step": ["step", "stp", "stpnc", "p21", "210"],
10158
10170
  "model/step+xml": ["stpx"],
10159
10171
  "model/step+zip": ["stpz"],
10160
10172
  "model/step-xml+zip": ["stpxz"],
@@ -10260,8 +10272,8 @@ class Mime {
10260
10272
  getType(path) {
10261
10273
  if (typeof path !== "string")
10262
10274
  return null;
10263
- const last = path.replace(/^.*[/\\]/, "").toLowerCase();
10264
- const ext = last.replace(/^.*\./, "").toLowerCase();
10275
+ const last = path.replace(/^.*[/\\]/s, "").toLowerCase();
10276
+ const ext = last.replace(/^.*\./s, "").toLowerCase();
10265
10277
  const hasPath = last.length < path.length;
10266
10278
  const hasDot = ext.length < last.length - 1;
10267
10279
  if (!hasDot && hasPath)
@@ -23423,6 +23435,7 @@ class BaseDocumentDriveServer {
23423
23435
  this.cache.deleteDrive(driveId),
23424
23436
  this.legacyStorage.deleteDrive(driveId)
23425
23437
  ]);
23438
+ this.eventEmitter.emit("driveDeleted", driveId);
23426
23439
  result.forEach((r) => {
23427
23440
  if (r.status === "rejected") {
23428
23441
  throw r.reason;
@@ -25817,7 +25830,7 @@ const nodeOptionsMap = {
25817
25830
  };
25818
25831
  const name = "@powerhousedao/connect";
25819
25832
  const productName = "Powerhouse-Connect";
25820
- const version$1 = "1.0.21-staging.0";
25833
+ const version$1 = "1.0.22-staging.1";
25821
25834
  const description = "Powerhouse Connect";
25822
25835
  const main = "./dist/index.html";
25823
25836
  const type = "module";
@@ -25829,7 +25842,7 @@ const repository = { "type": "git", "url": "git+https://github.com/powerhouse-in
25829
25842
  const bugs = { "url": "https://github.com/powerhouse-inc/document-model-electron/issues" };
25830
25843
  const homepage = "https://github.com/powerhouse-inc/document-model-electron#readme";
25831
25844
  const scripts = { "build:tsc": "tsc --build", "start": "electron-forge start", "package": "electron-forge package", "make": "PH_CONNECT_BASE_HREF=./ electron-forge make", "make:mac": "PH_CONNECT_BASE_HREF=./ electron-forge make -p darwin", "make:linux": "PH_CONNECT_BASE_HREF=./ electron-forge make -p linux", "make:windows": "PH_CONNECT_BASE_HREF=./ electron-forge make -p win32", "publish:electron": "electron-forge publish", "prepublishOnly": "npm run build", "lint": "eslint .", "lint:fix": "eslint --fix .", "lint:nx": "eslint --quiet --fix .", "format": 'prettier --write "**/*.+(js|ts|jsx|tsx|json)"', "dev": "vite -c vite.renderer.config.mts", "dev:nocache": "rm -rf node_modules/.vite && rm -rf node_modules/.cache && npm run dev", "prebuild": "tsc --build --noEmit", "build": "NODE_OPTIONS=--max-old-space-size=6144 vite build -c vite.renderer.config.mts", "preview:web": "vite preview -c vite.renderer.config.mts", "e2e": "playwright test", "cy:open": "cypress open", "build:service-worker": "tsc --build ./tsconfig.sw.json", "clean": "rimraf dist", "clean:node_modules": "rimraf node_modules" };
25832
- const devDependencies = { "@electron-forge/cli": "^6.1.1", "@electron-forge/maker-deb": "^6.1.1", "@electron-forge/maker-rpm": "^6.1.1", "@electron-forge/maker-squirrel": "^6.1.1", "@electron-forge/maker-zip": "^6.1.1", "@electron-forge/plugin-vite": "^6.1.1", "@electron-forge/publisher-electron-release-server": "^6.2.1", "@electron-forge/publisher-github": "^7.2.0", "@electron-forge/shared-types": "^7.7.0", "@playwright/test": "^1.41.2", "@powerhousedao/builder-tools": "workspace:*", "@powerhousedao/common": "workspace:*", "@powerhousedao/config": "workspace:*", "@powerhousedao/design-system": "workspace:*", "@powerhousedao/reactor-browser": "workspace:*", "@powerhousedao/scalars": "workspace:*", "@rollup/plugin-node-resolve": "^15.2.3", "@sentry/browser": "^9.1.0", "@sentry/react": "^7.109.0", "@sentry/vite-plugin": "^2.22.2", "@tailwindcss/vite": "^4.0.9", "@tanstack/react-virtual": "^3.8.1", "@types/node": "^22.13.10", "@types/react": "^18.2.79", "@types/react-dom": "^18.2.18", "@types/uuid": "^9.0.7", "@types/wicg-file-system-access": "^2020.9.6", "@vitejs/plugin-basic-ssl": "^1.2.0", "@vitejs/plugin-react": "^4.2.1", "asar": "^3.2.0", "did-key-creator": "^1.2.0", "document-drive": "workspace:*", "document-model": "workspace:*", "electron": "30.0.0", "electron-is-dev": "^3.0.1", "electron-playwright-helpers": "^1.7.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", "esbuild": "^0.24.0", "graphql": "^16.8.1", "graphql-request": "^6.1.0", "i18next": "^23.7.6", "jotai": "^2.1.0", "jotai-effect": "^1.1.6", "localforage": "^1.10.0", "lz-string": "^1.5.0", "playwright": "^1.41.2", "playwright-core": "^1.41.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-error-boundary": "^4.0.11", "react-hotkeys-hook": "^4.5.0", "react-i18next": "^13.5.0", "react-router-dom": "^6.11.2", "tailwind-merge": "^3.0.2", "tailwindcss": "^4.0.9", "uuid": "^9.0.1", "viem": "^2.8.13", "vite": "^6.2.2", "vite-envs": "^4.4.11", "vite-plugin-html": "^3.2.2", "vite-plugin-node-polyfills": "^0.23.0", "vite-plugin-svgr": "^4.2.0", "vite-tsconfig-paths": "^4.3.2", "xvfb-maybe": "^0.2.1" };
25845
+ const devDependencies = { "@electron-forge/cli": "^6.1.1", "@electron-forge/maker-deb": "^6.1.1", "@electron-forge/maker-rpm": "^6.1.1", "@electron-forge/maker-squirrel": "^6.1.1", "@electron-forge/maker-zip": "^6.1.1", "@electron-forge/plugin-vite": "^6.1.1", "@electron-forge/publisher-electron-release-server": "^6.2.1", "@electron-forge/publisher-github": "^7.2.0", "@electron-forge/shared-types": "^7.7.0", "@playwright/test": "^1.41.2", "@powerhousedao/builder-tools": "workspace:*", "@powerhousedao/common": "workspace:*", "@powerhousedao/config": "workspace:*", "@powerhousedao/design-system": "workspace:*", "@powerhousedao/reactor-browser": "workspace:*", "@powerhousedao/scalars": "workspace:*", "@rollup/plugin-node-resolve": "^15.2.3", "@sentry/browser": "^9.1.0", "@sentry/react": "^7.109.0", "@sentry/vite-plugin": "^2.23.0", "@tailwindcss/vite": "^4.1.4", "@tanstack/react-virtual": "^3.8.1", "@types/node": "^22.13.10", "@types/react": "^18.2.79", "@types/react-dom": "^18.2.18", "@types/uuid": "^9.0.7", "@types/wicg-file-system-access": "^2020.9.6", "@vitejs/plugin-basic-ssl": "^2.0.0", "@vitejs/plugin-react": "^4.4.1", "asar": "^3.2.0", "did-key-creator": "^1.2.0", "document-drive": "workspace:*", "document-model": "workspace:*", "electron": "30.0.0", "electron-is-dev": "^3.0.1", "electron-playwright-helpers": "^1.7.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", "esbuild": "^0.24.0", "graphql": "^16.8.1", "graphql-request": "^6.1.0", "i18next": "^23.7.6", "jotai": "^2.1.0", "jotai-effect": "^1.1.6", "localforage": "^1.10.0", "lz-string": "^1.5.0", "playwright": "^1.41.2", "playwright-core": "^1.41.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-error-boundary": "^4.0.11", "react-hotkeys-hook": "^4.5.0", "react-i18next": "^13.5.0", "react-router-dom": "^6.11.2", "tailwind-merge": "^3.0.2", "tailwindcss": "^4.1.4", "uuid": "^9.0.1", "viem": "^2.8.13", "vite": "^6.3.3", "vite-envs": "^4.6.0", "vite-plugin-html": "^3.2.2", "vite-plugin-node-polyfills": "^0.23.0", "vite-plugin-svgr": "^4.3.0", "vite-tsconfig-paths": "^5.1.4", "xvfb-maybe": "^0.2.1" };
25833
25846
  const optionalDependencies = { "@esbuild/linux-x64": "^0.21.4", "@rollup/rollup-linux-x64-musl": "4.14.3" };
25834
25847
  const packageJson = {
25835
25848
  name,
@@ -31441,7 +31454,7 @@ if (window.__VITE_ENVS.MODE === "development") {
31441
31454
  } else {
31442
31455
  serviceWorkerManager.registerServiceWorker(false);
31443
31456
  }
31444
- const App = lazy(() => __vitePreload(() => import("./app-B2txMMB6.js").then((n) => n.aY), true ? __vite__mapDeps([0,1,2]) : void 0));
31457
+ const App = lazy(() => __vitePreload(() => import("./app-BIg_-piZ.js").then((n) => n.a_), true ? __vite__mapDeps([0,1,2]) : void 0));
31445
31458
  const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
31446
31459
  const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31447
31460
  __proto__: null,
@@ -1,7 +1,7 @@
1
- import { aO as BaseError, aP as getUrl, aQ as stringify, aR as decodeErrorResult, aS as isAddressEqual, aT as call, aU as concat, aV as encodeAbiParameters, aW as HttpRequestError, aX as isHex } from "./app-B2txMMB6.js";
2
- import "./main.D6_W-5oY.js";
1
+ import { aO as BaseError, aP as getUrl, aQ as stringify, aR as decodeErrorResult, aS as isAddressEqual, aT as localBatchGatewayUrl, aU as localBatchGatewayRequest, aV as call, aW as concat, aX as encodeAbiParameters, aY as HttpRequestError, aZ as isHex } from "./app-BIg_-piZ.js";
2
+ import "./main.DfFOgz9f.js";
3
3
  import "react/jsx-runtime";
4
- import "./app-loader-uTr5bb-C.js";
4
+ import "./app-loader-mwZgOVwV.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  class OffchainLookupError extends BaseError {
@@ -86,7 +86,10 @@ async function offchainLookup(client, { blockNumber, blockTag, data, to }) {
86
86
  try {
87
87
  if (!isAddressEqual(to, sender))
88
88
  throw new OffchainLookupSenderMismatchError({ sender, to });
89
- const result = await ccipRequest_({ data: callData, sender, urls });
89
+ const result = urls.includes(localBatchGatewayUrl) ? await localBatchGatewayRequest({
90
+ data: callData,
91
+ ccipRequest: ccipRequest_
92
+ }) : await ccipRequest_({ data: callData, sender, urls });
90
93
  const { data: data_ } = await call(client, {
91
94
  blockNumber,
92
95
  blockTag,
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
2
- import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, k as SYNCING, I as INITIAL_SYNC, l as ConnectDropdownMenu, u as useOnClickOutside, n as useEventListener, o as useCopyToClipboard, p as Select, q as ENSAvatar, P as Provider, v as Root3, T as Trigger, w as Portal, x as Content2, y as validateInitialState, z as validateStateSchemaName, A as validateModules, D as useDocumentDrives, F as useUiNodesContext, G as useDriveContext, H as FILE$1, J as useUnwrappedReactor, K as useConnectDid, L as useConnectCrypto, N as useTranslation, O as useModal, Q as useAtomValue, U as themeAtom, V as useUser, W as useUserPermissions$1, X as useUiNodes, Y as exportFile, Z as useGetDocumentModelModule, _ as addActionContext$1, $ as signOperation$1, a0 as useDocumentDriveServer, a1 as useHotkeys, a2 as useGetEditor, a3 as isSameDocument, a4 as useNavigate, a5 as ErrorBoundary, a6 as DriveLayout, a7 as DriveContextProvider, a8 as SearchBar, a9 as useAsyncReactor, aa as useFilteredDocumentModels, ab as useDriveEditor, ac as useDocumentDriveById, ad as useParams, ae as useDocumentDrives$1, af as toast } from "./app-B2txMMB6.js";
2
+ import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, k as SYNCING, I as INITIAL_SYNC, l as ConnectDropdownMenu, u as useOnClickOutside, n as useEventListener, o as useCopyToClipboard, p as Select, q as ENSAvatar, P as Provider, v as Root3, T as Trigger, w as Portal, x as Content2, y as validateInitialState, z as validateStateSchemaName, A as validateModules, D as useDocumentDrives, F as useUiNodesContext, G as useDriveContext, H as FILE$1, J as useUnwrappedReactor, K as useConnectDid, L as useConnectCrypto, N as useTranslation, O as useModal, Q as useAtomValue, U as themeAtom, V as useUser, W as useUserPermissions$1, X as useUiNodes, Y as exportFile, Z as useGetDocumentModelModule, _ as addActionContext$1, $ as signOperation$1, a0 as useDocumentDriveServer, a1 as useHotkeys, a2 as useGetEditor, a3 as isSameDocument, a4 as useNavigate, a5 as ErrorBoundary, a6 as DriveLayout, a7 as DriveContextProvider, a8 as SearchBar, a9 as useAsyncReactor, aa as useFilteredDocumentModels, ab as useDriveEditor, ac as useDocumentDriveById, ad as useParams, ae as useDocumentDrives$1, af as toast } from "./app-BIg_-piZ.js";
3
3
  import * as React from "react";
4
4
  import React__default, { useState, useCallback, useMemo, useEffect, Fragment, useRef, useLayoutEffect, memo as memo$1, createElement, useSyncExternalStore, Suspense } from "react";
5
- import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aP as DRIVE, az as FILE, ae as buildSignedOperation, b7 as generateId$1, aw as isFolderNode, aB as generateNodesCopy, aC as copyNode, aA as moveNode, ay as updateNode, ax as deleteNode, ar as generateAddNodeAction, as as isFileNode, av as addFolder, b8 as undo, b9 as redo, ac as logger, ba as useDocumentDispatch$1, aQ as FOLDER, al as driveDocumentModelModule } from "./app-loader-uTr5bb-C.js";
5
+ import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aP as DRIVE, az as FILE, ae as buildSignedOperation, b7 as generateId$1, aw as isFolderNode, aB as generateNodesCopy, aC as copyNode, aA as moveNode, ay as updateNode, ax as deleteNode, ar as generateAddNodeAction, as as isFileNode, av as addFolder, b8 as undo, b9 as redo, ac as logger, ba as useDocumentDispatch$1, aQ as FOLDER, al as driveDocumentModelModule } from "./app-loader-mwZgOVwV.js";
6
6
  import { flushSync } from "react-dom";
7
- import "./main.D6_W-5oY.js";
7
+ import "./main.DfFOgz9f.js";
8
8
  const PaginationButton = ({ active = false, ...props }) => {
9
9
  const className = twMerge("h-8 min-w-8 border border-solid border-gray-300 bg-white px-3 py-1 text-xs text-gray-900 hover:bg-gray-100", !active && "border-0");
10
10
  return jsx(Button, { color: "light", size: "small", ...mergeClassNameProps(props, className), children: props.children });
@@ -2516,7 +2516,7 @@ class Virtualizer {
2516
2516
  } else {
2517
2517
  const endByLane = Array(this.options.lanes).fill(null);
2518
2518
  let endIndex = measurements.length - 1;
2519
- while (endIndex > 0 && endByLane.some((val) => val === null)) {
2519
+ while (endIndex >= 0 && endByLane.some((val) => val === null)) {
2520
2520
  const item = measurements[endIndex];
2521
2521
  if (endByLane[item.lane] === null) {
2522
2522
  endByLane[item.lane] = item.end;
@@ -2594,7 +2594,7 @@ function calculateRange({
2594
2594
  endIndex++;
2595
2595
  }
2596
2596
  const startPerLane = Array(lanes).fill(scrollOffset + outerSize);
2597
- while (startIndex > 0 && startPerLane.some((pos) => pos >= scrollOffset)) {
2597
+ while (startIndex >= 0 && startPerLane.some((pos) => pos >= scrollOffset)) {
2598
2598
  const item = measurements[startIndex];
2599
2599
  startPerLane[item.lane] = item.start;
2600
2600
  startIndex--;
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { t as twMerge, ag as clsx, ah as get, ai as set, aj as appendErrors, ak as useFormContext, al as Primitive, am as cva, an as FormProvider, ao as Controller, ap as Slot, aq as useForm, ar as Root2, as as List, at as Trigger, au as Content, av as setModelName, aw as setModelId, ax as setModelDescription, ay as setModelExtension, az as setAuthorName, aA as setAuthorWebsite, aB as setStateSchema, aC as setInitialState, aD as addModule, aE as setModuleName, aF as deleteModule, aG as addOperation, aH as setOperationName, aI as setOperationSchema, aJ as setOperationDescription, aK as deleteOperation, aL as addOperationError, aM as deleteOperationError, aN as setOperationErrorName } from "./app-B2txMMB6.js";
3
- import { bb as inspect$1, bc as GraphQLError$1, bd as getNamedType, be as invariant$2, bf as isInputObjectType, bg as isScalarType, bh as isObjectType, bi as isInterfaceType, bj as isUnionType, bk as isEnumType, bl as print, bm as isPrintableAsBlockString, bn as Kind, bo as astFromValue$1, bp as DEFAULT_DEPRECATION_REASON, bq as isSpecifiedDirective, br as isSpecifiedScalarType, bs as isIntrospectionType, bt as z, bu as GraphQLScalarType, Z as pascalCase, bv as parse, bw as visit, bx as buildASTSchema, by as extendSchema, bz as getNullableType, bA as isListType, $ as getDefaultExportFromCjs, bB as snakeCase, bC as constantCase, bD as isAbstractType, bE as BREAK, bF as GraphQLInputObjectType, bG as GraphQLList, bH as GraphQLEnumType, bI as GraphQLObjectType, bJ as GraphQLInterfaceType, bK as SchemaMetaFieldDef, bL as TypeMetaFieldDef, bM as TypeNameMetaFieldDef, bN as isCompositeType, bO as isOutputType, bP as isInputType, bQ as GraphQLBoolean, bR as assertAbstractType, bS as doTypesOverlap, bT as DirectiveLocation, bU as specifiedRules$1, bV as NoUnusedFragmentsRule$1, bW as ExecutableDefinitionsRule$1, bX as validate$2, bY as validateSchema, bZ as GraphQLID, b_ as GraphQLString, b$ as GraphQLFloat, c0 as GraphQLInt, c1 as GraphQLDirective, c2 as GraphQLUnionType, c3 as isNonNullType, c4 as GraphQLNonNull, c5 as isNamedType, c6 as isLeafType, c7 as GraphQLSchema, c8 as buildSchema, c9 as sentenceCase, an as hashKey } from "./app-loader-uTr5bb-C.js";
2
+ import { t as twMerge, ag as clsx, ah as get, ai as set, aj as appendErrors, ak as useFormContext, al as Primitive, am as cva, an as FormProvider, ao as Controller, ap as Slot, aq as useForm, ar as Root2, as as List, at as Trigger, au as Content, av as setModelName, aw as setModelId, ax as setModelDescription, ay as setModelExtension, az as setAuthorName, aA as setAuthorWebsite, aB as setStateSchema, aC as setInitialState, aD as addModule, aE as setModuleName, aF as deleteModule, aG as addOperation, aH as setOperationName, aI as setOperationSchema, aJ as setOperationDescription, aK as deleteOperation, aL as addOperationError, aM as deleteOperationError, aN as setOperationErrorName } from "./app-BIg_-piZ.js";
3
+ import { bb as inspect$1, bc as GraphQLError$1, bd as getNamedType, be as invariant$2, bf as isInputObjectType, bg as isScalarType, bh as isObjectType, bi as isInterfaceType, bj as isUnionType, bk as isEnumType, bl as print, bm as isPrintableAsBlockString, bn as Kind, bo as astFromValue$1, bp as DEFAULT_DEPRECATION_REASON, bq as isSpecifiedDirective, br as isSpecifiedScalarType, bs as isIntrospectionType, bt as z, bu as GraphQLScalarType, Z as pascalCase, bv as parse, bw as visit, bx as buildASTSchema, by as extendSchema, bz as getNullableType, bA as isListType, $ as getDefaultExportFromCjs, bB as snakeCase, bC as constantCase, bD as isAbstractType, bE as BREAK, bF as GraphQLInputObjectType, bG as GraphQLList, bH as GraphQLEnumType, bI as GraphQLObjectType, bJ as GraphQLInterfaceType, bK as SchemaMetaFieldDef, bL as TypeMetaFieldDef, bM as TypeNameMetaFieldDef, bN as isCompositeType, bO as isOutputType, bP as isInputType, bQ as GraphQLBoolean, bR as assertAbstractType, bS as doTypesOverlap, bT as DirectiveLocation, bU as specifiedRules$1, bV as NoUnusedFragmentsRule$1, bW as ExecutableDefinitionsRule$1, bX as validate$2, bY as validateSchema, bZ as GraphQLID, b_ as GraphQLString, b$ as GraphQLFloat, c0 as GraphQLInt, c1 as GraphQLDirective, c2 as GraphQLUnionType, c3 as isNonNullType, c4 as GraphQLNonNull, c5 as isNamedType, c6 as isLeafType, c7 as GraphQLSchema, c8 as buildSchema, c9 as sentenceCase, an as hashKey } from "./app-loader-mwZgOVwV.js";
4
4
  import * as React from "react";
5
- import React__default, { forwardRef, useRef, useCallback, useImperativeHandle, useEffect, useState, createContext, useContext, memo, useId, useMemo } from "react";
6
- import "./main.D6_W-5oY.js";
5
+ import React__default, { forwardRef, useRef, useCallback, useImperativeHandle, useId, useEffect, useState, createContext, useContext, memo, useMemo } from "react";
6
+ import "./main.DfFOgz9f.js";
7
7
  import "react-dom";
8
8
  const versionInfo = Object.freeze({
9
9
  major: 16,
@@ -1286,69 +1286,76 @@ function handleModelNameChange(params) {
1286
1286
  }
1287
1287
  updateModelSchemaNames(params);
1288
1288
  }
1289
- const s = (e, s2, o2) => {
1290
- if (e && "reportValidity" in e) {
1291
- const r2 = get(o2, s2);
1292
- e.setCustomValidity(r2 && r2.message || ""), e.reportValidity();
1293
- }
1294
- }, o = (t2, e) => {
1295
- for (const o2 in e.fields) {
1296
- const r2 = e.fields[o2];
1297
- r2 && r2.ref && "reportValidity" in r2.ref ? s(r2.ref, o2, t2) : r2.refs && r2.refs.forEach((e2) => s(e2, o2, t2));
1298
- }
1299
- }, r = (s2, r2) => {
1300
- r2.shouldUseNativeValidation && o(s2, r2);
1301
- const f = {};
1302
- for (const o2 in s2) {
1303
- const n2 = get(r2.fields, o2), a = Object.assign(s2[o2] || {}, { ref: n2 && n2.ref });
1304
- if (i$1(r2.names || Object.keys(s2), o2)) {
1305
- const s3 = Object.assign({}, get(f, o2));
1306
- set(s3, "root", a), set(f, o2, s3);
1307
- } else set(f, o2, a);
1308
- }
1309
- return f;
1310
- }, i$1 = (t2, e) => t2.some((t3) => t3.startsWith(e + "."));
1311
- var n = function(r2, e) {
1289
+ const r = (t2, r2, o2) => {
1290
+ if (t2 && "reportValidity" in t2) {
1291
+ const s2 = get(o2, r2);
1292
+ t2.setCustomValidity(s2 && s2.message || ""), t2.reportValidity();
1293
+ }
1294
+ }, o = (e, t2) => {
1295
+ for (const o2 in t2.fields) {
1296
+ const s2 = t2.fields[o2];
1297
+ s2 && s2.ref && "reportValidity" in s2.ref ? r(s2.ref, o2, e) : s2 && s2.refs && s2.refs.forEach((t3) => r(t3, o2, e));
1298
+ }
1299
+ }, s$1 = (r2, s2) => {
1300
+ s2.shouldUseNativeValidation && o(r2, s2);
1301
+ const n2 = {};
1302
+ for (const o2 in r2) {
1303
+ const f = get(s2.fields, o2), c = Object.assign(r2[o2] || {}, { ref: f && f.ref });
1304
+ if (i$1(s2.names || Object.keys(r2), o2)) {
1305
+ const r3 = Object.assign({}, get(n2, o2));
1306
+ set(r3, "root", c), set(n2, o2, r3);
1307
+ } else set(n2, o2, c);
1308
+ }
1309
+ return n2;
1310
+ }, i$1 = (e, t2) => {
1311
+ const r2 = n$1(t2);
1312
+ return e.some((e2) => n$1(e2).match(`^${r2}\\.\\d+`));
1313
+ };
1314
+ function n$1(e) {
1315
+ return e.replace(/\]|\[/g, "");
1316
+ }
1317
+ function n(r2, e) {
1312
1318
  for (var n2 = {}; r2.length; ) {
1313
- var t2 = r2[0], s2 = t2.code, i = t2.message, a = t2.path.join(".");
1314
- if (!n2[a]) if ("unionErrors" in t2) {
1315
- var u = t2.unionErrors[0].errors[0];
1319
+ var s2 = r2[0], t2 = s2.code, i = s2.message, a = s2.path.join(".");
1320
+ if (!n2[a]) if ("unionErrors" in s2) {
1321
+ var u = s2.unionErrors[0].errors[0];
1316
1322
  n2[a] = { message: u.message, type: u.code };
1317
- } else n2[a] = { message: i, type: s2 };
1318
- if ("unionErrors" in t2 && t2.unionErrors.forEach(function(e2) {
1323
+ } else n2[a] = { message: i, type: t2 };
1324
+ if ("unionErrors" in s2 && s2.unionErrors.forEach(function(e2) {
1319
1325
  return e2.errors.forEach(function(e3) {
1320
1326
  return r2.push(e3);
1321
1327
  });
1322
1328
  }), e) {
1323
- var c = n2[a].types, f = c && c[t2.code];
1324
- n2[a] = appendErrors(a, e, n2, s2, f ? [].concat(f, t2.message) : t2.message);
1329
+ var c = n2[a].types, f = c && c[s2.code];
1330
+ n2[a] = appendErrors(a, e, n2, t2, f ? [].concat(f, s2.message) : s2.message);
1325
1331
  }
1326
1332
  r2.shift();
1327
1333
  }
1328
1334
  return n2;
1329
- }, t$2 = function(o$1, t2, s2) {
1330
- return void 0 === s2 && (s2 = {}), function(i, a, u) {
1335
+ }
1336
+ function s(o$1, s2, t2) {
1337
+ return void 0 === t2 && (t2 = {}), function(i, a, u) {
1331
1338
  try {
1332
1339
  return Promise.resolve(function(e, n2) {
1333
1340
  try {
1334
- var a2 = Promise.resolve(o$1["sync" === s2.mode ? "parse" : "parseAsync"](i, t2)).then(function(e2) {
1335
- return u.shouldUseNativeValidation && o({}, u), { errors: {}, values: s2.raw ? i : e2 };
1341
+ var a2 = Promise.resolve(o$1["sync" === t2.mode ? "parse" : "parseAsync"](i, s2)).then(function(e2) {
1342
+ return u.shouldUseNativeValidation && o({}, u), { errors: {}, values: t2.raw ? Object.assign({}, i) : e2 };
1336
1343
  });
1337
1344
  } catch (r2) {
1338
1345
  return n2(r2);
1339
1346
  }
1340
1347
  return a2 && a2.then ? a2.then(void 0, n2) : a2;
1341
- }(0, function(r$1) {
1342
- if (function(r2) {
1343
- return Array.isArray(null == r2 ? void 0 : r2.errors);
1344
- }(r$1)) return { values: {}, errors: r(n(r$1.errors, !u.shouldUseNativeValidation && "all" === u.criteriaMode), u) };
1345
- throw r$1;
1348
+ }(0, function(r2) {
1349
+ if (function(r3) {
1350
+ return Array.isArray(null == r3 ? void 0 : r3.errors);
1351
+ }(r2)) return { values: {}, errors: s$1(n(r2.errors, !u.shouldUseNativeValidation && "all" === u.criteriaMode), u) };
1352
+ throw r2;
1346
1353
  }));
1347
1354
  } catch (r2) {
1348
1355
  return Promise.reject(r2);
1349
1356
  }
1350
1357
  };
1351
- };
1358
+ }
1352
1359
  var validator$1 = { exports: {} };
1353
1360
  var toDate = { exports: {} };
1354
1361
  var assertString = { exports: {} };
@@ -8316,6 +8323,7 @@ const Textarea = forwardRef(({ className, ...props }, ref) => {
8316
8323
  Textarea.displayName = "Textarea";
8317
8324
  const TextField = forwardRef(({ name: name2, value, onSubmit, label, placeholder, unique, className = "", rows = 1, focusOnMount = false, required = false, allowEmpty = false, shouldReset = false, onChange }, ref) => {
8318
8325
  const textareaRef = useRef(null);
8326
+ const id = useId();
8319
8327
  useEffect(() => {
8320
8328
  if (focusOnMount && textareaRef.current) {
8321
8329
  textareaRef.current.focus();
@@ -8325,7 +8333,7 @@ const TextField = forwardRef(({ name: name2, value, onSubmit, label, placeholder
8325
8333
  [name2]: createNameSchema({ required, allowEmpty, unique })
8326
8334
  });
8327
8335
  const form = useForm({
8328
- resolver: t$2(fieldSchema),
8336
+ resolver: s(fieldSchema),
8329
8337
  defaultValues: {
8330
8338
  [name2]: value ?? ""
8331
8339
  }
@@ -8373,7 +8381,7 @@ const TextField = forwardRef(({ name: name2, value, onSubmit, label, placeholder
8373
8381
  useEffect(() => {
8374
8382
  form.reset({ [name2]: value ?? "" });
8375
8383
  }, [form, name2, value]);
8376
- return jsx(Form, { ...form, children: jsx(FormField, { control: form.control, name: name2, render: ({ field }) => jsxs(FormItem, { className: "grid h-full grid-rows-[auto,1fr] gap-2 overflow-visible", children: [!!label && jsx(FormLabel, { htmlFor: name2, className: "text-sm font-medium text-gray-700", children: label }), jsx(FormControl, { children: jsx(Textarea, { ...field, id: name2, ref: (node) => {
8384
+ return jsx(Form, { ...form, children: jsx(FormField, { control: form.control, name: name2, render: ({ field }) => jsxs(FormItem, { className: "grid h-full grid-rows-[auto,1fr] gap-2 overflow-visible", children: [!!label && jsx(FormLabel, { htmlFor: name2, className: "text-sm font-medium text-gray-700", children: label }), jsx(FormControl, { children: jsx(Textarea, { ...field, id, name: name2, ref: (node) => {
8377
8385
  if (node) {
8378
8386
  field.ref(node.element);
8379
8387
  textareaRef.current = node;
@@ -12849,7 +12857,6 @@ var browser = {
12849
12857
  chrome_version: chrome ? +chrome[1] : 0,
12850
12858
  ios,
12851
12859
  android: /* @__PURE__ */ /Android\b/.test(nav.userAgent),
12852
- webkit,
12853
12860
  safari,
12854
12861
  webkit_version: webkit ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
12855
12862
  tabSize: doc.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
@@ -13190,7 +13197,7 @@ function coordsInChildren(view, pos, side) {
13190
13197
  if (end >= pos2) {
13191
13198
  if (child.children.length) {
13192
13199
  scan(child, pos2 - off);
13193
- } else if ((!after || after.isHidden && side > 0) && (end > pos2 || off == end && child.getSide() > 0)) {
13200
+ } else if ((!after || after.isHidden && (side > 0 || onSameLine(after, child))) && (end > pos2 || off == end && child.getSide() > 0)) {
13194
13201
  after = child;
13195
13202
  afterPos = pos2 - off;
13196
13203
  } else if (off < pos2 || off == end && child.getSide() < 0 && !child.isHidden) {
@@ -13214,6 +13221,10 @@ function fallbackRect(view) {
13214
13221
  let rects = clientRectsFor(last);
13215
13222
  return rects[rects.length - 1] || null;
13216
13223
  }
13224
+ function onSameLine(a, b) {
13225
+ let posA = a.coordsAt(0, 1), posB = b.coordsAt(0, 1);
13226
+ return posA && posB && posB.top < posA.bottom;
13227
+ }
13217
13228
  function combineAttrs(source, target) {
13218
13229
  for (let name2 in source) {
13219
13230
  if (name2 == "class" && target.class)
@@ -15466,17 +15477,26 @@ function isSuspiciousChromeCaretResult(node, offset, x) {
15466
15477
  let rect = node.nodeType == 1 ? node.getBoundingClientRect() : textRange(node, 0, Math.max(node.nodeValue.length, 1)).getBoundingClientRect();
15467
15478
  return x - rect.left > 5;
15468
15479
  }
15469
- function blockAt(view, pos) {
15480
+ function blockAt(view, pos, side) {
15470
15481
  let line = view.lineBlockAt(pos);
15471
- if (Array.isArray(line.type))
15482
+ if (Array.isArray(line.type)) {
15483
+ let best;
15472
15484
  for (let l of line.type) {
15473
- if (l.to > pos || l.to == pos && (l.to == line.to || l.type == BlockType.Text))
15485
+ if (l.from > pos)
15486
+ break;
15487
+ if (l.to < pos)
15488
+ continue;
15489
+ if (l.from < pos && l.to > pos)
15474
15490
  return l;
15491
+ if (!best || l.type == BlockType.Text && (best.type != l.type || (side < 0 ? l.from < pos : l.to > pos)))
15492
+ best = l;
15475
15493
  }
15494
+ return best || line;
15495
+ }
15476
15496
  return line;
15477
15497
  }
15478
15498
  function moveToLineBoundary(view, start, forward, includeWrap) {
15479
- let line = blockAt(view, start.head);
15499
+ let line = blockAt(view, start.head, start.assoc || -1);
15480
15500
  let coords = !includeWrap || line.type != BlockType.Text || !(view.lineWrapping || line.widgetLineBreaks) ? null : view.coordsAtPos(start.assoc < 0 && start.head > line.from ? start.head - 1 : start.head);
15481
15501
  if (coords) {
15482
15502
  let editorRect = view.dom.getBoundingClientRect();
@@ -16565,7 +16585,7 @@ function focusChangeTransaction(state, focus) {
16565
16585
  if (effect)
16566
16586
  effects.push(effect);
16567
16587
  }
16568
- return effects ? state.update({ effects, annotations: isFocusChange.of(true) }) : null;
16588
+ return effects.length ? state.update({ effects, annotations: isFocusChange.of(true) }) : null;
16569
16589
  }
16570
16590
  function updateForFocusChange(view) {
16571
16591
  setTimeout(() => {
@@ -17526,7 +17546,7 @@ class ViewState {
17526
17546
  this.scrollAnchorHeight = scrollAnchor.top;
17527
17547
  } else {
17528
17548
  this.scrollAnchorPos = -1;
17529
- this.scrollAnchorHeight = this.heightMap.height;
17549
+ this.scrollAnchorHeight = prevHeight;
17530
17550
  }
17531
17551
  let viewport = heightChanges.length ? this.mapViewport(this.viewport, update.changes) : this.viewport;
17532
17552
  if (scrollTarget && (scrollTarget.range.head < viewport.from || scrollTarget.range.head > viewport.to) || !this.viewportIsAppropriate(viewport))
@@ -18192,7 +18212,8 @@ const baseTheme$1$2 = /* @__PURE__ */ buildTheme("." + baseThemeID, {
18192
18212
  ".cm-placeholder": {
18193
18213
  color: "#888",
18194
18214
  display: "inline-block",
18195
- verticalAlign: "top"
18215
+ verticalAlign: "top",
18216
+ userSelect: "none"
18196
18217
  },
18197
18218
  ".cm-highlightSpace": {
18198
18219
  backgroundImage: "radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",
@@ -20122,7 +20143,7 @@ function rectanglesForRange(view, className, range) {
20122
20143
  let lineElt = content2.querySelector(".cm-line"), lineStyle = lineElt && window.getComputedStyle(lineElt);
20123
20144
  let leftSide = contentRect.left + (lineStyle ? parseInt(lineStyle.paddingLeft) + Math.min(0, parseInt(lineStyle.textIndent)) : 0);
20124
20145
  let rightSide = contentRect.right - (lineStyle ? parseInt(lineStyle.paddingRight) : 0);
20125
- let startBlock = blockAt(view, from), endBlock = blockAt(view, to);
20146
+ let startBlock = blockAt(view, from, 1), endBlock = blockAt(view, to, -1);
20126
20147
  let visualStart = startBlock.type == BlockType.Text ? startBlock : null;
20127
20148
  let visualEnd = endBlock.type == BlockType.Text ? endBlock : null;
20128
20149
  if (visualStart && (view.lineWrapping || startBlock.widgetLineBreaks))
@@ -20275,7 +20296,6 @@ function layer(config2) {
20275
20296
  layerOrder.of(config2)
20276
20297
  ];
20277
20298
  }
20278
- const CanHidePrimary = !(browser.ios && browser.webkit && browser.webkit_version < 534);
20279
20299
  const selectionConfig = /* @__PURE__ */ Facet.define({
20280
20300
  combine(configs) {
20281
20301
  return combineConfig(configs, {
@@ -20306,7 +20326,7 @@ const cursorLayer = /* @__PURE__ */ layer({
20306
20326
  let cursors = [];
20307
20327
  for (let r2 of state.selection.ranges) {
20308
20328
  let prim = r2 == state.selection.main;
20309
- if (r2.empty ? !prim || CanHidePrimary : conf.drawRangeCursor) {
20329
+ if (r2.empty || conf.drawRangeCursor) {
20310
20330
  let className = prim ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary";
20311
20331
  let cursor = r2.empty ? r2 : EditorSelection.cursor(r2.head, r2.head > r2.anchor ? -1 : 1);
20312
20332
  for (let piece of RectangleMarker.forRange(view, className, cursor))
@@ -20341,11 +20361,13 @@ const selectionLayer = /* @__PURE__ */ layer({
20341
20361
  },
20342
20362
  class: "cm-selectionLayer"
20343
20363
  });
20344
- const themeSpec = {
20364
+ const hideNativeSelection = /* @__PURE__ */ Prec.highest(/* @__PURE__ */ EditorView.theme({
20345
20365
  ".cm-line": {
20346
- "& ::selection, &::selection": { backgroundColor: "transparent !important" }
20366
+ "& ::selection, &::selection": { backgroundColor: "transparent !important" },
20367
+ caretColor: "transparent !important"
20347
20368
  },
20348
20369
  ".cm-content": {
20370
+ caretColor: "transparent !important",
20349
20371
  "& :focus": {
20350
20372
  caretColor: "initial !important",
20351
20373
  "&::selection, & ::selection": {
@@ -20353,10 +20375,7 @@ const themeSpec = {
20353
20375
  }
20354
20376
  }
20355
20377
  }
20356
- };
20357
- if (CanHidePrimary)
20358
- themeSpec[".cm-line"].caretColor = themeSpec[".cm-content"].caretColor = "transparent !important";
20359
- const hideNativeSelection = /* @__PURE__ */ Prec.highest(/* @__PURE__ */ EditorView.theme(themeSpec));
20378
+ }));
20360
20379
  const setDropCursorPos = /* @__PURE__ */ StateEffect.define({
20361
20380
  map(pos, mapping) {
20362
20381
  return pos == null ? null : mapping.mapPos(pos);
@@ -34958,7 +34977,7 @@ const toggleBlockCommentByLine = /* @__PURE__ */ command(
34958
34977
  /* CommentOption.Toggle */
34959
34978
  );
34960
34979
  function getConfig(state, pos) {
34961
- let data = state.languageDataAt("commentTokens", pos);
34980
+ let data = state.languageDataAt("commentTokens", pos, 1);
34962
34981
  return data.length ? data[0] : {};
34963
34982
  }
34964
34983
  const SearchMargin = 50;
@@ -1,8 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-loader-uTr5bb-C.js","assets/main.D6_W-5oY.js","assets/app-loader-DiF8OhX3.css"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./main.D6_W-5oY.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-loader-mwZgOVwV.js","assets/main.DfFOgz9f.js","assets/app-loader-3ipafc56.css"])))=>i.map(i=>d[i]);
2
+ import { _ as __vitePreload } from "./main.DfFOgz9f.js";
3
3
  import { createRoot } from "react-dom/client";
4
4
  async function renderApp(element) {
5
- const AppLoader = await __vitePreload(() => import("./app-loader-uTr5bb-C.js").then((n) => n.ca), true ? __vite__mapDeps([0,1,2]) : void 0);
5
+ const AppLoader = await __vitePreload(() => import("./app-loader-mwZgOVwV.js").then((n) => n.ca), true ? __vite__mapDeps([0,1,2]) : void 0);
6
6
  createRoot(element).render(AppLoader.default);
7
7
  }
8
8
  const AppElement = document.getElementById("app");
@@ -10,10 +10,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
10
10
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
11
11
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
12
12
  var _DB_NAME, _STORE_NAME, _KEY, _db, _BrowserKeyStorage_instances, useStore_fn, _subtleCrypto, _keyPair, _keyPairStorage, _did, _ConnectCrypto_instances, initCrypto_fn, initialize_fn, parseDid_fn, generateECDSAKeyPair_fn, exportKeyPair_fn, importKeyPair_fn, _sign, _verify, _store, _namespace, _BaseStorage_instances, buildKey_fn, _baseUrl, _store2, _connectId, _eventEmitter, _Renown_instances, updateUser_fn, getCredential_fn;
13
- import { _ as __vitePreload } from "./main.D6_W-5oY.js";
14
- import { r as rawKeyInHexfromUncompressed, c as compressedKeyInHexfromRaw, e as encodeDIDfromHexString, a as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-B2txMMB6.js";
15
- import { i, h, d, j, b, f, s } from "./app-B2txMMB6.js";
16
- import { ah as connectConfig, ac as logger } from "./app-loader-uTr5bb-C.js";
13
+ import { _ as __vitePreload } from "./main.DfFOgz9f.js";
14
+ import { r as rawKeyInHexfromUncompressed, c as compressedKeyInHexfromRaw, e as encodeDIDfromHexString, a as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-BIg_-piZ.js";
15
+ import { i, h, d, j, b, f, s } from "./app-BIg_-piZ.js";
16
+ import { ah as connectConfig, ac as logger } from "./app-loader-mwZgOVwV.js";
17
17
  import "react/jsx-runtime";
18
18
  import "react";
19
19
  import "react-dom";
@@ -43,12 +43,22 @@ const seen = {};
43
43
  const __vitePreload = function preload(baseModule, deps, importerUrl) {
44
44
  let promise = Promise.resolve();
45
45
  if (deps && deps.length > 0) {
46
+ let allSettled2 = function(promises) {
47
+ return Promise.all(
48
+ promises.map(
49
+ (p) => Promise.resolve(p).then(
50
+ (value) => ({ status: "fulfilled", value }),
51
+ (reason) => ({ status: "rejected", reason })
52
+ )
53
+ )
54
+ );
55
+ };
46
56
  document.getElementsByTagName("link");
47
57
  const cspNonceMeta = document.querySelector(
48
58
  "meta[property=csp-nonce]"
49
59
  );
50
60
  const cspNonce = (cspNonceMeta == null ? void 0 : cspNonceMeta.nonce) || (cspNonceMeta == null ? void 0 : cspNonceMeta.getAttribute("nonce"));
51
- promise = Promise.allSettled(
61
+ promise = allSettled2(
52
62
  deps.map((dep) => {
53
63
  dep = assetsURL(dep);
54
64
  if (dep in seen) return;
@@ -99,7 +109,7 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
99
109
  return baseModule().catch(handlePreloadError);
100
110
  });
101
111
  };
102
- __vitePreload(() => import("./index-CdCNoFiu.js"), true ? [] : void 0);
112
+ __vitePreload(() => import("./index-BOWJSJaO.js"), true ? [] : void 0);
103
113
  export {
104
114
  __vitePreload as _
105
115
  };