@vite-hub/queue 0.3.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +22 -20
  2. package/dist/{client-Cj50hQYp.js → client-DYE_ZV8c.js} +11 -10
  3. package/dist/{cloudflare-client-DYsAjM8B.js → cloudflare-client-BasaJ68s.js} +22 -9
  4. package/dist/{cloudflare-resource-name-BJHYRCMQ.js → cloudflare-resource-name-BUNNqgkg.js} +1 -1
  5. package/dist/{config-BcTDeQIP.js → config-YEuaeQVq.js} +1 -3
  6. package/dist/definition-BL_3WHNu.js +27 -0
  7. package/dist/{errors-DL3pcNO4.js → duration-CshzgSSx.js} +48 -6
  8. package/dist/{error-diagnostics-DSkCJC_L.js → error-diagnostics-C0KyI408.js} +10 -2
  9. package/dist/{error-diagnostics-BRartC1z.js → error-diagnostics-DukggGP6.js} +14 -10
  10. package/dist/{handler-response-By0Fpspv.js → handler-response-ChtAjPNo.js} +8 -3
  11. package/dist/index.d.ts +7 -3
  12. package/dist/index.js +4 -12
  13. package/dist/internal/runtime/cloudflare-client.d.ts +1 -1
  14. package/dist/internal/runtime/cloudflare-client.js +1 -1
  15. package/dist/internal/runtime/cloudflare-vite.d.ts +1 -1
  16. package/dist/internal/runtime/cloudflare-vite.js +10 -9
  17. package/dist/internal/runtime/local-client.d.ts +3 -3
  18. package/dist/internal/runtime/local-client.js +4 -4
  19. package/dist/internal/runtime/postgres-client.d.ts +5 -4
  20. package/dist/internal/runtime/postgres-client.js +34 -17
  21. package/dist/internal/runtime/state.d.ts +2 -2
  22. package/dist/internal/runtime/state.js +1 -1
  23. package/dist/internal/runtime/vercel-client.d.ts +1 -1
  24. package/dist/internal/runtime/vercel-client.js +23 -12
  25. package/dist/internal/runtime/worker-client.d.ts +2 -2
  26. package/dist/internal/runtime/worker-client.js +1 -1
  27. package/dist/{local-CGckW5nr.js → local-CnBd5jdm.js} +50 -31
  28. package/dist/{local-CVVRVWeR.d.ts → local-DAL5ZgDg.d.ts} +2 -1
  29. package/dist/{operation-definition-8gOe-ubD.d.ts → operation-definition-CI2PJGqu.d.ts} +13 -2
  30. package/dist/{operations-Crwjca91.js → operations-BL0b9pte.js} +10 -11
  31. package/dist/operations.d.ts +5 -4
  32. package/dist/operations.js +16 -48
  33. package/dist/runtime/hosted.d.ts +1 -1
  34. package/dist/runtime/hosted.js +4 -4
  35. package/dist/scan-module-BbqyaLl6.js +311 -0
  36. package/dist/{state-mVA2X_wa.js → state-ER1YdCBF.js} +1 -1
  37. package/dist/{types-DS_rqu9l.d.ts → types-D6hDNcMY.d.ts} +1 -2
  38. package/dist/{types-BD-8U9zS.d.ts → types-klaR79hV.d.ts} +50 -24
  39. package/dist/{vercel-region-D1CivgdA.js → vercel-region-DOciq2kx.js} +1 -1
  40. package/dist/vite.d.ts +10 -4
  41. package/dist/vite.js +123 -94
  42. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { Result } from "@vite-hub/runtime";
1
+ import { Duration, Result } from "@vite-hub/runtime";
2
2
  //#region src/types.d.ts
3
3
  type QueueDriver = "cloudflare" | "local" | "postgres" | "vercel";
4
4
  /** The Queue drivers that run jobs in a Node server process. */
@@ -14,6 +14,13 @@ interface CloudflareQueueSendBatchOptions {
14
14
  interface CloudflareQueueSendBatchMessage<T = unknown> extends CloudflareQueueSendOptions {
15
15
  body: T;
16
16
  }
17
+ /** One job in `sendBatch()` of a Cloudflare QueueClient. */
18
+ interface CloudflareQueueSendBatchItem<T = unknown> {
19
+ body: T;
20
+ contentType?: CloudflareQueueContentType;
21
+ /** Time before delivery, such as `"1m"`. */
22
+ delay?: Duration;
23
+ }
17
24
  interface CloudflareQueueRetryOptions {
18
25
  delaySeconds?: number;
19
26
  }
@@ -35,13 +42,18 @@ interface CloudflareQueueMessageBatch<T = unknown> {
35
42
  queue: string;
36
43
  retryAll: (options?: CloudflareQueueRetryOptions) => void;
37
44
  }
45
+ /** What `onError` returns: `"ack"`, `"retry"`, or `{ retry: { delay: "30s" } }` to retry after a time. */
38
46
  type CloudflareQueueBatchErrorAction = "ack" | "retry" | {
39
- retry: CloudflareQueueRetryOptions;
47
+ retry: {
48
+ delay?: Duration;
49
+ };
40
50
  };
41
51
  interface CloudflareQueueBatchHandlerOptions<T = unknown> {
42
52
  concurrency?: number;
43
53
  onError?: (error: unknown, message: CloudflareQueueMessage<T>, batch: CloudflareQueueMessageBatch<T>) => CloudflareQueueBatchErrorAction | void | Promise<CloudflareQueueBatchErrorAction | void>;
44
54
  onMessage: (message: CloudflareQueueMessage<T>, batch: CloudflareQueueMessageBatch<T>) => unknown | Promise<unknown>;
55
+ /** The Queue Definition name in delivery error reports. Defaults to the name that `batch.queue` encodes. */
56
+ queue?: string;
45
57
  }
46
58
  type VercelQueueRetryDirective = {
47
59
  acknowledge: true;
@@ -85,14 +97,16 @@ type VercelQueueBatchSendResult = {
85
97
  */
86
98
  interface VercelQueueSendBatchMessage<T = unknown> {
87
99
  body: T;
88
- delaySeconds?: number;
100
+ /** Time before delivery, such as `"1m"`. */
101
+ delay?: Duration;
89
102
  idempotencyKey?: string;
90
- retentionSeconds?: number;
103
+ /** How long Vercel keeps the job: a duration such as `"1h"`, or a number of seconds. */
104
+ retention?: Duration | number;
91
105
  }
92
106
  /** Options that apply to every job of a Vercel `sendBatch()` unless the job sets its own. */
93
107
  interface VercelQueueSendBatchOptions {
94
- delaySeconds?: number;
95
- retentionSeconds?: number;
108
+ delay?: Duration;
109
+ retention?: Duration | number;
96
110
  }
97
111
  type VercelQueueMessageHandler<T = unknown> = (payload: T, metadata?: unknown) => unknown | Promise<unknown>;
98
112
  type VercelQueueCallbackReturn = (request: Request) => Promise<unknown> | unknown;
@@ -144,7 +158,6 @@ interface LocalQueueDriverOptions extends QueueSharedOptions {
144
158
  */
145
159
  type LocalQueueRules = QueueDriver;
146
160
  interface LocalQueueModuleDriverOptions extends QueueSharedOptions {
147
- /** Directory of the stored jobs, relative to the working directory. Defaults to `.vitehub/data/queue`. */
148
161
  base?: string;
149
162
  driver: "local";
150
163
  }
@@ -179,25 +192,35 @@ interface ResolvedLocalQueueOptions extends LocalQueueModuleDriverOptions {
179
192
  rules?: LocalQueueRules;
180
193
  }
181
194
  type ResolvedQueueOptions = CloudflareQueueModuleDriverOptions | ResolvedLocalQueueOptions | ResolvedPostgresQueueOptions | VercelQueueModuleDriverOptions;
195
+ /** The one object that a Queue handler receives: the `payload` that was sent, and the delivery details. */
182
196
  interface QueueJob<TPayload = unknown> {
197
+ /** Delivery count of this job, from 1. */
183
198
  attempts: number;
199
+ /** Message ID of this job. */
184
200
  id: string;
201
+ /** Delivery metadata of the provider, when it gives some. */
185
202
  metadata?: unknown;
186
203
  payload: TPayload;
187
204
  }
188
205
  type QueueHandler<TPayload = unknown, TResult = unknown> = (job: QueueJob<TPayload>) => TResult;
206
+ /** Options of `defineQueue()`, next to `handler`. */
189
207
  interface QueueDefinitionOptions {
190
208
  cache?: boolean;
191
209
  callbackOptions?: VercelQueueCallbackOptions;
192
210
  concurrency?: number;
211
+ /**
212
+ * Cloudflare: the most messages in one batch, from 1 to 100. Cloudflare's default is 10. Write it as a number literal,
213
+ * because the build reads it from the file to configure the consumer.
214
+ */
215
+ maxBatchSize?: number;
193
216
  onDispatchError?: (error: unknown, context: {
194
217
  name: string;
195
218
  }) => unknown | Promise<unknown>;
196
219
  onError?: CloudflareQueueBatchHandlerOptions["onError"];
197
220
  }
198
- interface QueueDefinition<TPayload = unknown, TResult = unknown> {
221
+ /** A Queue Definition: `defineQueue({ handler, ...options })`. */
222
+ interface QueueDefinition<TPayload = unknown, TResult = unknown> extends QueueDefinitionOptions {
199
223
  handler: QueueHandler<TPayload, TResult>;
200
- options?: QueueDefinitionOptions;
201
224
  }
202
225
  /**
203
226
  * Options of `sendQueue()` and `send()`. ViteHub generates the message ID. To deduplicate sends, pass `idempotencyKey`
@@ -205,27 +228,30 @@ interface QueueDefinition<TPayload = unknown, TResult = unknown> {
205
228
  */
206
229
  interface QueueEnqueueOptions {
207
230
  contentType?: CloudflareQueueContentType;
208
- delaySeconds?: number;
231
+ /** Time before delivery, such as `"30s"`, `"5m"`, or `"1 day"`. A number fails with `RUNTIME_DURATION_INVALID`. */
232
+ delay?: Duration;
209
233
  idempotencyKey?: string;
210
234
  region?: string;
211
- retentionSeconds?: number;
235
+ /** How long the provider keeps the job: a duration such as `"1h"`, or a number of seconds. */
236
+ retention?: Duration | number;
212
237
  }
213
238
  type QueueSendResult = {
214
239
  messageId?: string;
215
240
  status: "queued";
216
241
  };
217
242
  /** Codes that Queue operations return in the `[error, data]` tuple. Config errors throw instead. */
218
- type QueueErrorCode = "QUEUE_PROVIDER_FAILED" | "QUEUE_PROVIDER_INVALID_RESPONSE" | "QUEUE_UNSUPPORTED_OPTION";
243
+ type QueueErrorCode = "QUEUE_PROVIDER_FAILED" | "QUEUE_PROVIDER_INVALID_RESPONSE" | "QUEUE_UNSUPPORTED_OPTION" | "RUNTIME_DURATION_INVALID";
219
244
  /** Codes that `send()` and `sendBatch()` of a Cloudflare QueueClient return. */
220
- type CloudflareQueueErrorCode = "QUEUE_PROVIDER_FAILED" | "QUEUE_UNSUPPORTED_OPTION";
245
+ type CloudflareQueueErrorCode = "QUEUE_PROVIDER_FAILED" | "QUEUE_UNSUPPORTED_OPTION" | "RUNTIME_DURATION_INVALID";
221
246
  /** Codes that `send()` and `sendBatch()` of a local QueueClient return. */
222
- type LocalQueueErrorCode = "QUEUE_PROVIDER_FAILED" | "QUEUE_UNSUPPORTED_OPTION";
247
+ type LocalQueueErrorCode = "QUEUE_PROVIDER_FAILED" | "QUEUE_UNSUPPORTED_OPTION" | "RUNTIME_DURATION_INVALID";
223
248
  /** Codes that `send()` and `sendBatch()` of a postgres QueueClient return. */
224
- type PostgresQueueErrorCode = "QUEUE_PROVIDER_FAILED" | "QUEUE_UNSUPPORTED_OPTION";
249
+ type PostgresQueueErrorCode = "QUEUE_PROVIDER_FAILED" | "QUEUE_UNSUPPORTED_OPTION" | "RUNTIME_DURATION_INVALID";
225
250
  /** One job in `sendBatch()` of a local or postgres QueueClient. */
226
251
  interface LocalQueueSendBatchMessage<T = unknown> {
227
252
  body: T;
228
- delaySeconds?: number;
253
+ /** Time before delivery, such as `"1m"`. */
254
+ delay?: Duration;
229
255
  idempotencyKey?: string;
230
256
  }
231
257
  /** Codes that `send()` and `sendBatch()` of a Vercel QueueClient return. */
@@ -241,7 +267,7 @@ interface CloudflareQueueClient<TPayload = unknown> extends QueueClientBase<"clo
241
267
  readonly binding: CloudflareQueueBinding;
242
268
  createBatchHandler: <TMessage = unknown>(options: CloudflareQueueBatchHandlerOptions<TMessage>) => (batch: CloudflareQueueMessageBatch<TMessage>) => Promise<void>;
243
269
  send: (payload: TPayload, options?: QueueEnqueueOptions) => Promise<Result<QueueSendResult, CloudflareQueueErrorCode>>;
244
- sendBatch: (items: CloudflareQueueSendBatchMessage<TPayload>[], options?: QueueEnqueueOptions) => Promise<Result<QueueSendResult[], CloudflareQueueErrorCode>>;
270
+ sendBatch: (items: CloudflareQueueSendBatchItem<TPayload>[], options?: QueueEnqueueOptions) => Promise<Result<QueueSendResult[], CloudflareQueueErrorCode>>;
245
271
  }
246
272
  /**
247
273
  * `send()` and `sendBatch()` return `[error, data]`. `error.code` is one of the codes in the method type.
@@ -266,7 +292,7 @@ interface LocalQueueClient<TPayload = unknown> extends QueueClientBase<"local">
266
292
  readonly queue: string;
267
293
  send: (payload: TPayload, options?: QueueEnqueueOptions) => Promise<Result<QueueSendResult, LocalQueueErrorCode>>;
268
294
  sendBatch: (items: LocalQueueSendBatchMessage<TPayload>[], options?: {
269
- delaySeconds?: number;
295
+ delay?: Duration;
270
296
  }) => Promise<Result<QueueSendResult[], LocalQueueErrorCode>>;
271
297
  }
272
298
  /**
@@ -278,7 +304,7 @@ interface PostgresQueueClient<TPayload = unknown> extends QueueClientBase<"postg
278
304
  send: (payload: TPayload, options?: QueueEnqueueOptions) => Promise<Result<QueueSendResult, PostgresQueueErrorCode>>;
279
305
  /** Inserts all jobs in one transaction. When one insert fails, no job of the batch is stored. */
280
306
  sendBatch: (items: LocalQueueSendBatchMessage<TPayload>[], options?: {
281
- delaySeconds?: number;
307
+ delay?: Duration;
282
308
  }) => Promise<Result<QueueSendResult[], PostgresQueueErrorCode>>;
283
309
  }
284
310
  interface QueueClientMap<TPayload> {
@@ -322,7 +348,7 @@ interface QueueDeliveryErrorDetails {
322
348
  interface LocalQueueDeliveryRules {
323
349
  /** Deliveries before a failing job becomes a dead job. `Infinity` retries until the job expires. */
324
350
  maxAttempts: number;
325
- /** Largest `delaySeconds` that a send accepts. */
351
+ /** Largest `delay`, in seconds, that a send accepts. */
326
352
  maxDelaySeconds?: number;
327
353
  /** Largest number of jobs in one `sendBatch()`. */
328
354
  maxBatchJobs?: number;
@@ -330,7 +356,7 @@ interface LocalQueueDeliveryRules {
330
356
  maxBatchBytes?: number;
331
357
  /** Largest JSON size in bytes of one payload. */
332
358
  maxPayloadBytes?: number;
333
- /** Accepted `retentionSeconds`. A job expires at the end of its retention, whether it ran or not. */
359
+ /** Accepted `retention`, in seconds. A job expires at the end of its retention, whether it ran or not. */
334
360
  retention?: {
335
361
  defaultSeconds: number;
336
362
  maxSeconds: number;
@@ -341,7 +367,7 @@ interface LocalQueueDeliveryRules {
341
367
  /** The provider whose documented rules these are. */
342
368
  rules: LocalQueueRules;
343
369
  /** Enqueue options that fail with `QUEUE_UNSUPPORTED_OPTION`. */
344
- unsupportedOptions: readonly ("contentType" | "idempotencyKey" | "region" | "retentionSeconds")[];
370
+ unsupportedOptions: readonly ("contentType" | "idempotencyKey" | "region" | "retention")[];
345
371
  }
346
372
  interface LocalQueueStatus {
347
373
  /** Absolute directory of the local provider, or the Postgres table and database, without the password. */
@@ -376,7 +402,7 @@ interface LocalQueueJob {
376
402
  queue: string;
377
403
  state: "dead" | "pending" | "running";
378
404
  }
379
- /** One stored job with its payload, as `vitehub queue jobs show` shows it. */
405
+ /** One stored job with its payload, as `vitehub queue jobs get` shows it. */
380
406
  interface LocalQueueJobDetail extends LocalQueueJob {
381
407
  /** The local provider only: the file of the job. */
382
408
  file?: string;
@@ -417,4 +443,4 @@ interface QueueJobStore {
417
443
  status: () => Promise<LocalQueueStatus>;
418
444
  }
419
445
  //#endregion
420
- export { QueueModuleDriverOptions as A, VercelQueueClient as B, QueueDriver as C, QueueHandler as D, QueueErrorCode as E, QueueSendResult as F, VercelQueueSendBatchOptions as G, VercelQueueRetryDirective as H, ResolvedLocalQueueOptions as I, VercelQueueSendResult as K, ResolvedQueueOptions as L, QueueOptions as M, QueuePayload as N, QueueJob as O, QueueRegistry as P, VercelQueueBatchSendResult as R, QueueDefinitionRegistry as S, QueueEnqueueOptions as T, VercelQueueRetryHandler as U, VercelQueueErrorCode as V, VercelQueueSendBatchMessage as W, PostgresQueueDriverOptions as _, CloudflareQueueMessageBatch as a, QueueDefinition as b, LocalQueueDriverOptions as c, LocalQueueJobDetail as d, LocalQueueRules as f, PostgresQueueClient as g, NodeQueueDriver as h, CloudflareQueueMessage as i, QueueName as j, QueueJobStore as k, LocalQueueErrorCode as l, LocalQueueStatus as m, CloudflareQueueClient as n, DiscoveredQueueDefinition as o, LocalQueueSendBatchMessage as p, CloudflareQueueErrorCode as r, LocalQueueClient as s, CloudflareQueueBatchHandlerOptions as t, LocalQueueJob as u, PostgresQueueErrorCode as v, QueueDriverOptions as w, QueueDefinitionOptions as x, QueueClient as y, VercelQueueCallbackOptions as z };
446
+ export { QueueJobStore as A, VercelQueueCallbackOptions as B, QueueDefinitionRegistry as C, QueueErrorCode as D, QueueEnqueueOptions as E, QueueRegistry as F, VercelQueueSendBatchMessage as G, VercelQueueErrorCode as H, QueueSendResult as I, VercelQueueSendBatchOptions as K, ResolvedLocalQueueOptions as L, QueueName as M, QueueOptions as N, QueueHandler as O, QueuePayload as P, ResolvedQueueOptions as R, QueueDefinitionOptions as S, QueueDriverOptions as T, VercelQueueRetryDirective as U, VercelQueueClient as V, VercelQueueRetryHandler as W, PostgresQueueClient as _, CloudflareQueueMessageBatch as a, QueueClient as b, LocalQueueClient as c, LocalQueueJob as d, LocalQueueJobDetail as f, NodeQueueDriver as g, LocalQueueStatus as h, CloudflareQueueMessage as i, QueueModuleDriverOptions as j, QueueJob as k, LocalQueueDriverOptions as l, LocalQueueSendBatchMessage as m, CloudflareQueueClient as n, CloudflareQueueSendBatchItem as o, LocalQueueRules as p, VercelQueueSendResult as q, CloudflareQueueErrorCode as r, DiscoveredQueueDefinition as s, CloudflareQueueBatchHandlerOptions as t, LocalQueueErrorCode as u, PostgresQueueDriverOptions as v, QueueDriver as w, QueueDefinition as x, PostgresQueueErrorCode as y, VercelQueueBatchSendResult as z };
@@ -1,4 +1,4 @@
1
- import { a as getQueueRuntimeEvent } from "./state-mVA2X_wa.js";
1
+ import { a as getQueueRuntimeEvent } from "./state-ER1YdCBF.js";
2
2
  //#region src/internal/vercel-region.ts
3
3
  function readHeader(headers, name) {
4
4
  const get = headers?.get;
package/dist/vite.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as QueueOptions, o as DiscoveredQueueDefinition } from "./types-BD-8U9zS.js";
2
- import { n as OperationContributionEntry } from "./operation-definition-8gOe-ubD.js";
1
+ import { N as QueueOptions, s as DiscoveredQueueDefinition } from "./types-klaR79hV.js";
2
+ import { n as OperationContributionEntry } from "./operation-definition-CI2PJGqu.js";
3
3
  import "nostics";
4
4
  import { Plugin, UserConfig } from "vite";
5
5
  //#region ../internal/src/deployment.d.ts
@@ -56,6 +56,8 @@ interface ViteHubResourceSummary {
56
56
  owner: string;
57
57
  /** Absent when no id is known yet. */
58
58
  source?: ViteHubResourceIdSource;
59
+ /** The resource is in the Wrangler config of a standalone Provider Output Worker, not in Nitro's. */
60
+ standalone?: boolean;
59
61
  }
60
62
  interface ViteHubInspectionContributor {
61
63
  definitions?: readonly ViteHubDefinitionInspector[];
@@ -122,6 +124,7 @@ interface DurabilityPluginMetadata {
122
124
  interface HostCliRunResult {
123
125
  exitCode: number | null;
124
126
  stdout: string;
127
+ stderr?: string;
125
128
  }
126
129
  /** Runs a host CLI with an argument array and no shell, and returns its stdout. */
127
130
  type HostCliRun = (command: string, args: readonly string[], options: {
@@ -305,6 +308,8 @@ interface ContributionContext {
305
308
  projectRoot: string;
306
309
  /** Server directories that the host forwards, for example Nuxt's `serverDir` and the server directories of layers. */
307
310
  serverDirs?: readonly string[];
311
+ /** The flat list of Vite plugins, so a factory can read what sibling plugins declare. */
312
+ plugins?: readonly unknown[];
308
313
  }
309
314
  /**
310
315
  * Returns the contributions of a plugin. It runs once per discovery pass, so it must be idempotent and must not depend
@@ -356,7 +361,6 @@ export declare function collectQueueContributions(plugins: readonly unknown[] |
356
361
  /** Discovery source of Queue Definitions that Vite plugins contribute through `vitehub.queues`. */
357
362
  export declare const contributedQueueSource = "vite-plugin-contribution";
358
363
  interface QueueContributionOptions {
359
- /** Queue Definitions that Vite plugins contribute. See `collectQueueContributions()`. */
360
364
  contributions?: readonly CollectedQueueContribution[];
361
365
  }
362
366
  export declare function discoverQueueDefinitions(options: QueueContributionOptions & {
@@ -683,6 +687,8 @@ interface ViteHubConsoleDocumentHint {
683
687
  * failing without a reason.
684
688
  */
685
689
  interface ViteHubConsoleDocumentSetup {
690
+ /** The project has GitHub Sources but no document collections. */
691
+ sourceHeadsOnly?: true;
686
692
  /** Present when no user can read anything because the owner has no access policy. */
687
693
  access?: ViteHubConsoleDocumentHint;
688
694
  /**
@@ -710,7 +716,7 @@ interface QueueInspectionOptions {
710
716
  serverDirs?: string[];
711
717
  }
712
718
  /** Summarizes discovered Queue Definitions for the CLI and Console. */
713
- export declare function inspectQueueDefinitions(options: QueueInspectionOptions): ViteHubDefinitionSummary[];
719
+ export declare function inspectQueueDefinitions(options: QueueInspectionOptions, definitions?: readonly DiscoveredQueueDefinition[]): ViteHubDefinitionSummary[];
714
720
  /** Console section that lists discovered Queue Definitions. `vitehub inspect definitions` reads the same data. */
715
721
  export declare const queueConsoleSection: ViteHubConsoleSectionContribution<QueueInspectionOptions>;
716
722
  //#endregion