@powerhousedao/powerhouse-vetra-packages 6.2.3-dev.9 → 6.2.3-dev.90

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 (117) hide show
  1. package/dist/browser/document-models/index.js +2 -1
  2. package/dist/browser/documents-cxt8RRxe.js +18 -0
  3. package/dist/browser/documents-cxt8RRxe.js.map +1 -0
  4. package/dist/browser/{editor-DWqW8FJ2.js → editor-DXAJ8Mqb.js} +761 -277
  5. package/dist/browser/editor-DXAJ8Mqb.js.map +1 -0
  6. package/dist/browser/{editor-CbGnfPVs.js → editor-Dmpkd8pQ.js} +4 -5
  7. package/dist/browser/{editor-CbGnfPVs.js.map → editor-Dmpkd8pQ.js.map} +1 -1
  8. package/dist/browser/editors/document-model-editor/module.js +1 -1
  9. package/dist/browser/editors/document-model-editor/module.js.map +1 -1
  10. package/dist/browser/editors/generic-drive-explorer/index.js +4 -324
  11. package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
  12. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  13. package/dist/browser/editors/generic-drive-explorer/module.js.map +1 -1
  14. package/dist/{node/folder-view-DrRUOAcf.mjs → browser/folder-view-CwIU4XEe.js} +17 -12
  15. package/dist/browser/folder-view-CwIU4XEe.js.map +1 -0
  16. package/dist/browser/graphql-editor-CGxwONKl.js +103 -0
  17. package/dist/browser/graphql-editor-CGxwONKl.js.map +1 -0
  18. package/dist/browser/hooks-D15NCia0.js +126 -0
  19. package/dist/browser/hooks-D15NCia0.js.map +1 -0
  20. package/dist/browser/index.js +6 -703
  21. package/dist/browser/index.js.map +1 -1
  22. package/dist/browser/json-editor--jgLEwP2.js +55 -0
  23. package/dist/browser/json-editor--jgLEwP2.js.map +1 -0
  24. package/dist/browser/{schema-context-ZyeclQwy.js → schema-context-CC_WFs1x.js} +10 -6
  25. package/dist/browser/schema-context-CC_WFs1x.js.map +1 -0
  26. package/dist/browser/{state-schemas-DZB9PFEk.js → state-schemas-DSY44MOd.js} +28 -19
  27. package/dist/browser/state-schemas-DSY44MOd.js.map +1 -0
  28. package/dist/{browser/dist-BAJ5nRDl.js → node/bundle-mjs-Cuu3DEfT.mjs} +1251 -822
  29. package/dist/node/bundle-mjs-Cuu3DEfT.mjs.map +1 -0
  30. package/dist/node/document-models/index.mjs +2 -1
  31. package/dist/node/{graphql-BfAoPeWM.mjs → documents-DH2fyf7U.mjs} +80 -50
  32. package/dist/node/documents-DH2fyf7U.mjs.map +1 -0
  33. package/dist/node/editor-BcvUeBW7.mjs +4761 -0
  34. package/dist/node/editor-BcvUeBW7.mjs.map +1 -0
  35. package/dist/node/editor-DJCghViS.mjs +983 -0
  36. package/dist/node/editor-DJCghViS.mjs.map +1 -0
  37. package/dist/node/editors/index.mjs +23 -2
  38. package/dist/node/editors/index.mjs.map +1 -0
  39. package/dist/node/{graphql-editor-C38uott6.mjs → graphql-editor-u9NStKLL.mjs} +5129 -63
  40. package/dist/node/graphql-editor-u9NStKLL.mjs.map +1 -0
  41. package/dist/node/{hooks-D0DcS3MV.mjs → hooks-BiLz75cj.mjs} +824 -444
  42. package/dist/node/{hooks-D0DcS3MV.mjs.map → hooks-BiLz75cj.mjs.map} +1 -1
  43. package/dist/node/index.mjs +46 -100
  44. package/dist/node/index.mjs.map +1 -1
  45. package/dist/{browser/json-editor-DqRiIY49.js → node/json-editor-BfcrckeT.mjs} +8 -9
  46. package/dist/node/{json-editor-BM2wc5Zz.mjs.map → json-editor-BfcrckeT.mjs.map} +1 -1
  47. package/dist/node/{schema-context-DL8jhi_d.mjs → schema-context-r0MTQnRC.mjs} +9 -6
  48. package/dist/node/schema-context-r0MTQnRC.mjs.map +1 -0
  49. package/dist/node/state-schemas-o3PZdBW2.mjs +1071 -0
  50. package/dist/node/state-schemas-o3PZdBW2.mjs.map +1 -0
  51. package/package.json +26 -23
  52. package/style.css +2 -0
  53. package/dist/browser/assets/entry-DSBtQnit.js +0 -314
  54. package/dist/browser/assets/projection-entry-Bem3exmO.js +0 -404
  55. package/dist/browser/button-CuO8Gh3v.js +0 -696
  56. package/dist/browser/button-CuO8Gh3v.js.map +0 -1
  57. package/dist/browser/connect-CDHt0LA4.js +0 -14328
  58. package/dist/browser/connect-CDHt0LA4.js.map +0 -1
  59. package/dist/browser/dist-B4FWbuEM.js +0 -4148
  60. package/dist/browser/dist-B4FWbuEM.js.map +0 -1
  61. package/dist/browser/dist-BAJ5nRDl.js.map +0 -1
  62. package/dist/browser/dist-Csb8sxU2.js +0 -4641
  63. package/dist/browser/dist-Csb8sxU2.js.map +0 -1
  64. package/dist/browser/document-drive-fcQ4o8i3.js +0 -8320
  65. package/dist/browser/document-drive-fcQ4o8i3.js.map +0 -1
  66. package/dist/browser/documents-J_l59mSV.js +0 -6188
  67. package/dist/browser/documents-J_l59mSV.js.map +0 -1
  68. package/dist/browser/editor-DWqW8FJ2.js.map +0 -1
  69. package/dist/browser/folder-view-DxzbfZuY.js +0 -232
  70. package/dist/browser/folder-view-DxzbfZuY.js.map +0 -1
  71. package/dist/browser/graphql-editor-CuiExsfF.js +0 -11698
  72. package/dist/browser/graphql-editor-CuiExsfF.js.map +0 -1
  73. package/dist/browser/hooks-KKcNp2X0.js +0 -24213
  74. package/dist/browser/hooks-KKcNp2X0.js.map +0 -1
  75. package/dist/browser/json-editor-DqRiIY49.js.map +0 -1
  76. package/dist/browser/lib-CPkPeg_u.js +0 -209
  77. package/dist/browser/lib-CPkPeg_u.js.map +0 -1
  78. package/dist/browser/parser-CkF6Qt8V.js +0 -2553
  79. package/dist/browser/parser-CkF6Qt8V.js.map +0 -1
  80. package/dist/browser/printer-CEYr4JOg.js +0 -604
  81. package/dist/browser/printer-CEYr4JOg.js.map +0 -1
  82. package/dist/browser/schema-context-ZyeclQwy.js.map +0 -1
  83. package/dist/browser/state-schemas-DZB9PFEk.js.map +0 -1
  84. package/dist/node/button-Da7CxMn7.mjs +0 -678
  85. package/dist/node/button-Da7CxMn7.mjs.map +0 -1
  86. package/dist/node/connect-D7y1D5hm.mjs +0 -15022
  87. package/dist/node/connect-D7y1D5hm.mjs.map +0 -1
  88. package/dist/node/dist-CTcqTvC6.mjs +0 -4649
  89. package/dist/node/dist-CTcqTvC6.mjs.map +0 -1
  90. package/dist/node/dist-CzYOpeXN.mjs +0 -2711
  91. package/dist/node/dist-CzYOpeXN.mjs.map +0 -1
  92. package/dist/node/dist-DT7jI9ol.mjs +0 -4148
  93. package/dist/node/dist-DT7jI9ol.mjs.map +0 -1
  94. package/dist/node/document-drive-DuGBBYw5.mjs +0 -8337
  95. package/dist/node/document-drive-DuGBBYw5.mjs.map +0 -1
  96. package/dist/node/documents-DCf53bzO.mjs +0 -747
  97. package/dist/node/documents-DCf53bzO.mjs.map +0 -1
  98. package/dist/node/editor-BU3YRt7c.mjs +0 -1809
  99. package/dist/node/editor-BU3YRt7c.mjs.map +0 -1
  100. package/dist/node/editor-DCN8dGJA.mjs +0 -25
  101. package/dist/node/editor-DCN8dGJA.mjs.map +0 -1
  102. package/dist/node/editors/document-model-editor/index.mjs +0 -1
  103. package/dist/node/editors/document-model-editor/module.mjs +0 -14
  104. package/dist/node/editors/document-model-editor/module.mjs.map +0 -1
  105. package/dist/node/editors/generic-drive-explorer/index.mjs +0 -456
  106. package/dist/node/editors/generic-drive-explorer/index.mjs.map +0 -1
  107. package/dist/node/editors/generic-drive-explorer/module.mjs +0 -14
  108. package/dist/node/editors/generic-drive-explorer/module.mjs.map +0 -1
  109. package/dist/node/folder-view-DrRUOAcf.mjs.map +0 -1
  110. package/dist/node/graphql-BfAoPeWM.mjs.map +0 -1
  111. package/dist/node/graphql-editor-C38uott6.mjs.map +0 -1
  112. package/dist/node/json-editor-BM2wc5Zz.mjs +0 -154
  113. package/dist/node/main-BhH_ajBM.mjs +0 -745
  114. package/dist/node/main-BhH_ajBM.mjs.map +0 -1
  115. package/dist/node/schema-context-DL8jhi_d.mjs.map +0 -1
  116. package/dist/node/state-schemas--x-Yb4EP.mjs +0 -299
  117. package/dist/node/state-schemas--x-Yb4EP.mjs.map +0 -1
@@ -1,745 +0,0 @@
1
- import { D as __commonJSMin, O as __esmMin, j as __toCommonJS, k as __exportAll } from "./dist-DT7jI9ol.mjs";
2
- import { t as require_graphql } from "./graphql-BfAoPeWM.mjs";
3
- //#region ../reactor/dist/drive-container-types-aO-PASn7.js
4
- /** Actions the reactor reduces itself, onto the document scope. */
5
- const DOCUMENT_SCOPE_ACTIONS = new Set([
6
- "CREATE_DOCUMENT",
7
- "DELETE_DOCUMENT",
8
- "UPGRADE_DOCUMENT",
9
- "ADD_RELATIONSHIP",
10
- "REMOVE_RELATIONSHIP",
11
- "UPDATE_RELATIONSHIP"
12
- ]);
13
- new Set([...DOCUMENT_SCOPE_ACTIONS].filter((type) => type !== "CREATE_DOCUMENT"));
14
- /**
15
- * Error thrown when a document model module is not found in the registry.
16
- */
17
- var ModuleNotFoundError = class extends Error {
18
- documentType;
19
- requestedVersion;
20
- constructor(documentType, version) {
21
- const versionSuffix = version !== void 0 ? ` version ${version}` : "";
22
- super(`Document model module not found for type: ${documentType}${versionSuffix}`);
23
- this.name = "ModuleNotFoundError";
24
- this.documentType = documentType;
25
- this.requestedVersion = version;
26
- }
27
- static isError(error) {
28
- return Error.isError(error) && error.name === "ModuleNotFoundError";
29
- }
30
- };
31
- const DRIVE_COLLECTION_PREFIX = "drive.";
32
- /**
33
- * Identifies the collection a remote synchronizes. Collections are drive-level
34
- * abstractions (document-drive and reactor-drive), so a collection id is the
35
- * drive document id plus the branch it scopes to rather than an opaque string.
36
- *
37
- * The canonical string form (`drive.${branch}.${driveId}`) is produced only by
38
- * `key` and parsed only by `fromKey`; that string is the wire and storage
39
- * representation and is byte-for-byte identical to the legacy
40
- * `driveCollectionId(branch, driveId)` output, so existing `document_collections`
41
- * rows and persisted remotes remain valid without migration.
42
- */
43
- var DriveCollectionId = class DriveCollectionId {
44
- constructor(driveId, branch) {
45
- this.driveId = driveId;
46
- this.branch = branch;
47
- }
48
- static forDrive(driveId, branch = "main") {
49
- return new DriveCollectionId(driveId, branch);
50
- }
51
- /**
52
- * The single deserializer for the wire/storage form. `branch` may contain
53
- * dots, while `driveId` is a dot-free document id, so the drive id is the
54
- * final dot-delimited segment.
55
- */
56
- static fromKey(key) {
57
- if (!key.startsWith(DRIVE_COLLECTION_PREFIX)) throw new Error(`Unsupported collection id: ${key}`);
58
- const rest = key.slice(6);
59
- const lastDot = rest.lastIndexOf(".");
60
- if (lastDot === -1 || lastDot === rest.length - 1) throw new Error(`Malformed drive collection id: ${key}`);
61
- return new DriveCollectionId(rest.slice(lastDot + 1), rest.slice(0, lastDot));
62
- }
63
- get key() {
64
- return `${DRIVE_COLLECTION_PREFIX}${this.branch}.${this.driveId}`;
65
- }
66
- toString() {
67
- return this.key;
68
- }
69
- equals(other) {
70
- return this.driveId === other.driveId && this.branch === other.branch;
71
- }
72
- };
73
- new Set(Object.values({ malformedStoredOperation: "MALFORMED_STORED_OPERATION" }));
74
- let SyncStatus = /* @__PURE__ */ function(SyncStatus) {
75
- SyncStatus["Synced"] = "SYNCED";
76
- SyncStatus["Outgoing"] = "OUTGOING";
77
- SyncStatus["Incoming"] = "INCOMING";
78
- SyncStatus["OutgoingAndIncoming"] = "OUTGOING_AND_INCOMING";
79
- SyncStatus["Error"] = "ERROR";
80
- return SyncStatus;
81
- }({});
82
- //#endregion
83
- //#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
84
- var tslib_es6_exports = /* @__PURE__ */ __exportAll({
85
- __addDisposableResource: () => __addDisposableResource,
86
- __assign: () => __assign,
87
- __asyncDelegator: () => __asyncDelegator,
88
- __asyncGenerator: () => __asyncGenerator,
89
- __asyncValues: () => __asyncValues,
90
- __await: () => __await,
91
- __awaiter: () => __awaiter,
92
- __classPrivateFieldGet: () => __classPrivateFieldGet,
93
- __classPrivateFieldIn: () => __classPrivateFieldIn,
94
- __classPrivateFieldSet: () => __classPrivateFieldSet,
95
- __createBinding: () => __createBinding,
96
- __decorate: () => __decorate,
97
- __disposeResources: () => __disposeResources,
98
- __esDecorate: () => __esDecorate,
99
- __exportStar: () => __exportStar,
100
- __extends: () => __extends,
101
- __generator: () => __generator,
102
- __importDefault: () => __importDefault,
103
- __importStar: () => __importStar,
104
- __makeTemplateObject: () => __makeTemplateObject,
105
- __metadata: () => __metadata,
106
- __param: () => __param,
107
- __propKey: () => __propKey,
108
- __read: () => __read,
109
- __rest: () => __rest,
110
- __rewriteRelativeImportExtension: () => __rewriteRelativeImportExtension,
111
- __runInitializers: () => __runInitializers,
112
- __setFunctionName: () => __setFunctionName,
113
- __spread: () => __spread,
114
- __spreadArray: () => __spreadArray,
115
- __spreadArrays: () => __spreadArrays,
116
- __values: () => __values,
117
- default: () => tslib_es6_default
118
- });
119
- function __extends(d, b) {
120
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
121
- extendStatics(d, b);
122
- function __() {
123
- this.constructor = d;
124
- }
125
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
126
- }
127
- function __rest(s, e) {
128
- var t = {};
129
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
130
- if (s != null && typeof Object.getOwnPropertySymbols === "function") {
131
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
132
- }
133
- return t;
134
- }
135
- function __decorate(decorators, target, key, desc) {
136
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
137
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
138
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
139
- return c > 3 && r && Object.defineProperty(target, key, r), r;
140
- }
141
- function __param(paramIndex, decorator) {
142
- return function(target, key) {
143
- decorator(target, key, paramIndex);
144
- };
145
- }
146
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
147
- function accept(f) {
148
- if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
149
- return f;
150
- }
151
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
152
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
153
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
154
- var _, done = false;
155
- for (var i = decorators.length - 1; i >= 0; i--) {
156
- var context = {};
157
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
158
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
159
- context.addInitializer = function(f) {
160
- if (done) throw new TypeError("Cannot add initializers after decoration has completed");
161
- extraInitializers.push(accept(f || null));
162
- };
163
- var result = (0, decorators[i])(kind === "accessor" ? {
164
- get: descriptor.get,
165
- set: descriptor.set
166
- } : descriptor[key], context);
167
- if (kind === "accessor") {
168
- if (result === void 0) continue;
169
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
170
- if (_ = accept(result.get)) descriptor.get = _;
171
- if (_ = accept(result.set)) descriptor.set = _;
172
- if (_ = accept(result.init)) initializers.unshift(_);
173
- } else if (_ = accept(result)) if (kind === "field") initializers.unshift(_);
174
- else descriptor[key] = _;
175
- }
176
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
177
- done = true;
178
- }
179
- function __runInitializers(thisArg, initializers, value) {
180
- var useValue = arguments.length > 2;
181
- for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
182
- return useValue ? value : void 0;
183
- }
184
- function __propKey(x) {
185
- return typeof x === "symbol" ? x : "".concat(x);
186
- }
187
- function __setFunctionName(f, name, prefix) {
188
- if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
189
- return Object.defineProperty(f, "name", {
190
- configurable: true,
191
- value: prefix ? "".concat(prefix, " ", name) : name
192
- });
193
- }
194
- function __metadata(metadataKey, metadataValue) {
195
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
196
- }
197
- function __awaiter(thisArg, _arguments, P, generator) {
198
- function adopt(value) {
199
- return value instanceof P ? value : new P(function(resolve) {
200
- resolve(value);
201
- });
202
- }
203
- return new (P || (P = Promise))(function(resolve, reject) {
204
- function fulfilled(value) {
205
- try {
206
- step(generator.next(value));
207
- } catch (e) {
208
- reject(e);
209
- }
210
- }
211
- function rejected(value) {
212
- try {
213
- step(generator["throw"](value));
214
- } catch (e) {
215
- reject(e);
216
- }
217
- }
218
- function step(result) {
219
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
220
- }
221
- step((generator = generator.apply(thisArg, _arguments || [])).next());
222
- });
223
- }
224
- function __generator(thisArg, body) {
225
- var _ = {
226
- label: 0,
227
- sent: function() {
228
- if (t[0] & 1) throw t[1];
229
- return t[1];
230
- },
231
- trys: [],
232
- ops: []
233
- }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
234
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
235
- return this;
236
- }), g;
237
- function verb(n) {
238
- return function(v) {
239
- return step([n, v]);
240
- };
241
- }
242
- function step(op) {
243
- if (f) throw new TypeError("Generator is already executing.");
244
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
245
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
246
- if (y = 0, t) op = [op[0] & 2, t.value];
247
- switch (op[0]) {
248
- case 0:
249
- case 1:
250
- t = op;
251
- break;
252
- case 4:
253
- _.label++;
254
- return {
255
- value: op[1],
256
- done: false
257
- };
258
- case 5:
259
- _.label++;
260
- y = op[1];
261
- op = [0];
262
- continue;
263
- case 7:
264
- op = _.ops.pop();
265
- _.trys.pop();
266
- continue;
267
- default:
268
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
269
- _ = 0;
270
- continue;
271
- }
272
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
273
- _.label = op[1];
274
- break;
275
- }
276
- if (op[0] === 6 && _.label < t[1]) {
277
- _.label = t[1];
278
- t = op;
279
- break;
280
- }
281
- if (t && _.label < t[2]) {
282
- _.label = t[2];
283
- _.ops.push(op);
284
- break;
285
- }
286
- if (t[2]) _.ops.pop();
287
- _.trys.pop();
288
- continue;
289
- }
290
- op = body.call(thisArg, _);
291
- } catch (e) {
292
- op = [6, e];
293
- y = 0;
294
- } finally {
295
- f = t = 0;
296
- }
297
- if (op[0] & 5) throw op[1];
298
- return {
299
- value: op[0] ? op[1] : void 0,
300
- done: true
301
- };
302
- }
303
- }
304
- function __exportStar(m, o) {
305
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
306
- }
307
- function __values(o) {
308
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
309
- if (m) return m.call(o);
310
- if (o && typeof o.length === "number") return { next: function() {
311
- if (o && i >= o.length) o = void 0;
312
- return {
313
- value: o && o[i++],
314
- done: !o
315
- };
316
- } };
317
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
318
- }
319
- function __read(o, n) {
320
- var m = typeof Symbol === "function" && o[Symbol.iterator];
321
- if (!m) return o;
322
- var i = m.call(o), r, ar = [], e;
323
- try {
324
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
325
- } catch (error) {
326
- e = { error };
327
- } finally {
328
- try {
329
- if (r && !r.done && (m = i["return"])) m.call(i);
330
- } finally {
331
- if (e) throw e.error;
332
- }
333
- }
334
- return ar;
335
- }
336
- /** @deprecated */
337
- function __spread() {
338
- for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
339
- return ar;
340
- }
341
- /** @deprecated */
342
- function __spreadArrays() {
343
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
344
- for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
345
- return r;
346
- }
347
- function __spreadArray(to, from, pack) {
348
- if (pack || arguments.length === 2) {
349
- for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
350
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
351
- ar[i] = from[i];
352
- }
353
- }
354
- return to.concat(ar || Array.prototype.slice.call(from));
355
- }
356
- function __await(v) {
357
- return this instanceof __await ? (this.v = v, this) : new __await(v);
358
- }
359
- function __asyncGenerator(thisArg, _arguments, generator) {
360
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
361
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
362
- return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
363
- return this;
364
- }, i;
365
- function awaitReturn(f) {
366
- return function(v) {
367
- return Promise.resolve(v).then(f, reject);
368
- };
369
- }
370
- function verb(n, f) {
371
- if (g[n]) {
372
- i[n] = function(v) {
373
- return new Promise(function(a, b) {
374
- q.push([
375
- n,
376
- v,
377
- a,
378
- b
379
- ]) > 1 || resume(n, v);
380
- });
381
- };
382
- if (f) i[n] = f(i[n]);
383
- }
384
- }
385
- function resume(n, v) {
386
- try {
387
- step(g[n](v));
388
- } catch (e) {
389
- settle(q[0][3], e);
390
- }
391
- }
392
- function step(r) {
393
- r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
394
- }
395
- function fulfill(value) {
396
- resume("next", value);
397
- }
398
- function reject(value) {
399
- resume("throw", value);
400
- }
401
- function settle(f, v) {
402
- if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
403
- }
404
- }
405
- function __asyncDelegator(o) {
406
- var i, p;
407
- return i = {}, verb("next"), verb("throw", function(e) {
408
- throw e;
409
- }), verb("return"), i[Symbol.iterator] = function() {
410
- return this;
411
- }, i;
412
- function verb(n, f) {
413
- i[n] = o[n] ? function(v) {
414
- return (p = !p) ? {
415
- value: __await(o[n](v)),
416
- done: false
417
- } : f ? f(v) : v;
418
- } : f;
419
- }
420
- }
421
- function __asyncValues(o) {
422
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
423
- var m = o[Symbol.asyncIterator], i;
424
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
425
- return this;
426
- }, i);
427
- function verb(n) {
428
- i[n] = o[n] && function(v) {
429
- return new Promise(function(resolve, reject) {
430
- v = o[n](v), settle(resolve, reject, v.done, v.value);
431
- });
432
- };
433
- }
434
- function settle(resolve, reject, d, v) {
435
- Promise.resolve(v).then(function(v) {
436
- resolve({
437
- value: v,
438
- done: d
439
- });
440
- }, reject);
441
- }
442
- }
443
- function __makeTemplateObject(cooked, raw) {
444
- if (Object.defineProperty) Object.defineProperty(cooked, "raw", { value: raw });
445
- else cooked.raw = raw;
446
- return cooked;
447
- }
448
- function __importStar(mod) {
449
- if (mod && mod.__esModule) return mod;
450
- var result = {};
451
- if (mod != null) {
452
- for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
453
- }
454
- __setModuleDefault(result, mod);
455
- return result;
456
- }
457
- function __importDefault(mod) {
458
- return mod && mod.__esModule ? mod : { default: mod };
459
- }
460
- function __classPrivateFieldGet(receiver, state, kind, f) {
461
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
462
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
463
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
464
- }
465
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
466
- if (kind === "m") throw new TypeError("Private method is not writable");
467
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
468
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
469
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
470
- }
471
- function __classPrivateFieldIn(state, receiver) {
472
- if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
473
- return typeof state === "function" ? receiver === state : state.has(receiver);
474
- }
475
- function __addDisposableResource(env, value, async) {
476
- if (value !== null && value !== void 0) {
477
- if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
478
- var dispose, inner;
479
- if (async) {
480
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
481
- dispose = value[Symbol.asyncDispose];
482
- }
483
- if (dispose === void 0) {
484
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
485
- dispose = value[Symbol.dispose];
486
- if (async) inner = dispose;
487
- }
488
- if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
489
- if (inner) dispose = function() {
490
- try {
491
- inner.call(this);
492
- } catch (e) {
493
- return Promise.reject(e);
494
- }
495
- };
496
- env.stack.push({
497
- value,
498
- dispose,
499
- async
500
- });
501
- } else if (async) env.stack.push({ async: true });
502
- return value;
503
- }
504
- function __disposeResources(env) {
505
- function fail(e) {
506
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
507
- env.hasError = true;
508
- }
509
- var r, s = 0;
510
- function next() {
511
- while (r = env.stack.pop()) try {
512
- if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
513
- if (r.dispose) {
514
- var result = r.dispose.call(r.value);
515
- if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {
516
- fail(e);
517
- return next();
518
- });
519
- } else s |= 1;
520
- } catch (e) {
521
- fail(e);
522
- }
523
- if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
524
- if (env.hasError) throw env.error;
525
- }
526
- return next();
527
- }
528
- function __rewriteRelativeImportExtension(path, preserveJsx) {
529
- if (typeof path === "string" && /^\.\.?\//.test(path)) return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
530
- return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
531
- });
532
- return path;
533
- }
534
- var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
535
- var init_tslib_es6 = __esmMin((() => {
536
- extendStatics = function(d, b) {
537
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
538
- d.__proto__ = b;
539
- } || function(d, b) {
540
- for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
541
- };
542
- return extendStatics(d, b);
543
- };
544
- __assign = function() {
545
- __assign = Object.assign || function __assign(t) {
546
- for (var s, i = 1, n = arguments.length; i < n; i++) {
547
- s = arguments[i];
548
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
549
- }
550
- return t;
551
- };
552
- return __assign.apply(this, arguments);
553
- };
554
- __createBinding = Object.create ? (function(o, m, k, k2) {
555
- if (k2 === void 0) k2 = k;
556
- var desc = Object.getOwnPropertyDescriptor(m, k);
557
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
558
- enumerable: true,
559
- get: function() {
560
- return m[k];
561
- }
562
- };
563
- Object.defineProperty(o, k2, desc);
564
- }) : (function(o, m, k, k2) {
565
- if (k2 === void 0) k2 = k;
566
- o[k2] = m[k];
567
- });
568
- __setModuleDefault = Object.create ? (function(o, v) {
569
- Object.defineProperty(o, "default", {
570
- enumerable: true,
571
- value: v
572
- });
573
- }) : function(o, v) {
574
- o["default"] = v;
575
- };
576
- ownKeys = function(o) {
577
- ownKeys = Object.getOwnPropertyNames || function(o) {
578
- var ar = [];
579
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
580
- return ar;
581
- };
582
- return ownKeys(o);
583
- };
584
- _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
585
- var e = new Error(message);
586
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
587
- };
588
- tslib_es6_default = {
589
- __extends,
590
- __assign,
591
- __rest,
592
- __decorate,
593
- __param,
594
- __esDecorate,
595
- __runInitializers,
596
- __propKey,
597
- __setFunctionName,
598
- __metadata,
599
- __awaiter,
600
- __generator,
601
- __createBinding,
602
- __exportStar,
603
- __values,
604
- __read,
605
- __spread,
606
- __spreadArrays,
607
- __spreadArray,
608
- __await,
609
- __asyncGenerator,
610
- __asyncDelegator,
611
- __asyncValues,
612
- __makeTemplateObject,
613
- __importStar,
614
- __importDefault,
615
- __classPrivateFieldGet,
616
- __classPrivateFieldSet,
617
- __classPrivateFieldIn,
618
- __addDisposableResource,
619
- __disposeResources,
620
- __rewriteRelativeImportExtension
621
- };
622
- }));
623
- //#endregion
624
- //#region ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.12.0/node_modules/graphql-tag/lib/graphql-tag.umd.js
625
- var require_graphql_tag_umd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
626
- (function(global, factory) {
627
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, (init_tslib_es6(), __toCommonJS(tslib_es6_exports)), require_graphql()) : typeof define === "function" && define.amd ? define([
628
- "exports",
629
- "tslib",
630
- "graphql"
631
- ], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["graphql-tag"] = {}, global.tslib, global.graphql));
632
- })(exports, (function(exports$1, tslib, graphql) {
633
- "use strict";
634
- var docCache = /* @__PURE__ */ new Map();
635
- var fragmentSourceMap = /* @__PURE__ */ new Map();
636
- var printFragmentWarnings = true;
637
- var experimentalFragmentVariables = false;
638
- function normalize(string) {
639
- return string.replace(/[\s,]+/g, " ").trim();
640
- }
641
- function cacheKeyFromLoc(loc) {
642
- return normalize(loc.source.body.substring(loc.start, loc.end));
643
- }
644
- function processFragments(ast) {
645
- var seenKeys = /* @__PURE__ */ new Set();
646
- var definitions = [];
647
- ast.definitions.forEach(function(fragmentDefinition) {
648
- if (fragmentDefinition.kind === "FragmentDefinition") {
649
- var fragmentName = fragmentDefinition.name.value;
650
- var sourceKey = cacheKeyFromLoc(fragmentDefinition.loc);
651
- var sourceKeySet = fragmentSourceMap.get(fragmentName);
652
- if (sourceKeySet && !sourceKeySet.has(sourceKey)) {
653
- if (printFragmentWarnings) console.warn("Warning: fragment with name " + fragmentName + " already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names");
654
- } else if (!sourceKeySet) fragmentSourceMap.set(fragmentName, sourceKeySet = /* @__PURE__ */ new Set());
655
- sourceKeySet.add(sourceKey);
656
- if (!seenKeys.has(sourceKey)) {
657
- seenKeys.add(sourceKey);
658
- definitions.push(fragmentDefinition);
659
- }
660
- } else definitions.push(fragmentDefinition);
661
- });
662
- return tslib.__assign(tslib.__assign({}, ast), { definitions });
663
- }
664
- function stripLoc(doc) {
665
- var workSet = new Set(doc.definitions);
666
- workSet.forEach(function(node) {
667
- if (node.loc) delete node.loc;
668
- Object.keys(node).forEach(function(key) {
669
- var value = node[key];
670
- if (value && typeof value === "object") workSet.add(value);
671
- });
672
- });
673
- var loc = doc.loc;
674
- if (loc) {
675
- delete loc.startToken;
676
- delete loc.endToken;
677
- }
678
- return doc;
679
- }
680
- function parseDocument(source) {
681
- var cacheKey = normalize(source);
682
- if (!docCache.has(cacheKey)) {
683
- var parsed = graphql.parse(source, {
684
- experimentalFragmentVariables,
685
- allowLegacyFragmentVariables: experimentalFragmentVariables
686
- });
687
- if (!parsed || parsed.kind !== "Document") throw new Error("Not a valid GraphQL document.");
688
- docCache.set(cacheKey, stripLoc(processFragments(parsed)));
689
- }
690
- return docCache.get(cacheKey);
691
- }
692
- function gql(literals) {
693
- var args = [];
694
- for (var _i = 1; _i < arguments.length; _i++) args[_i - 1] = arguments[_i];
695
- if (typeof literals === "string") literals = [literals];
696
- var result = literals[0];
697
- args.forEach(function(arg, i) {
698
- if (arg && arg.kind === "Document") result += arg.loc.source.body;
699
- else result += arg;
700
- result += literals[i + 1];
701
- });
702
- return parseDocument(result);
703
- }
704
- function resetCaches() {
705
- docCache.clear();
706
- fragmentSourceMap.clear();
707
- }
708
- function disableFragmentWarnings() {
709
- printFragmentWarnings = false;
710
- }
711
- function enableExperimentalFragmentVariables() {
712
- experimentalFragmentVariables = true;
713
- }
714
- function disableExperimentalFragmentVariables() {
715
- experimentalFragmentVariables = false;
716
- }
717
- var extras = {
718
- gql,
719
- resetCaches,
720
- disableFragmentWarnings,
721
- enableExperimentalFragmentVariables,
722
- disableExperimentalFragmentVariables
723
- };
724
- (function(gql_1) {
725
- gql_1.gql = extras.gql, gql_1.resetCaches = extras.resetCaches, gql_1.disableFragmentWarnings = extras.disableFragmentWarnings, gql_1.enableExperimentalFragmentVariables = extras.enableExperimentalFragmentVariables, gql_1.disableExperimentalFragmentVariables = extras.disableExperimentalFragmentVariables;
726
- })(gql || (gql = {}));
727
- gql["default"] = gql;
728
- exports$1.default = gql;
729
- exports$1.disableExperimentalFragmentVariables = disableExperimentalFragmentVariables;
730
- exports$1.disableFragmentWarnings = disableFragmentWarnings;
731
- exports$1.enableExperimentalFragmentVariables = enableExperimentalFragmentVariables;
732
- exports$1.gql = gql;
733
- exports$1.resetCaches = resetCaches;
734
- Object.defineProperty(exports$1, "__esModule", { value: true });
735
- }));
736
- }));
737
- //#endregion
738
- //#region ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.12.0/node_modules/graphql-tag/main.js
739
- var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
740
- module.exports = require_graphql_tag_umd().gql;
741
- }));
742
- //#endregion
743
- export { DriveCollectionId as a, SyncStatus as i, init_tslib_es6 as n, ModuleNotFoundError as o, tslib_es6_exports as r, require_main as t };
744
-
745
- //# sourceMappingURL=main-BhH_ajBM.mjs.map