@vocdoni/proto 1.15.3 → 1.15.4

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.
@@ -1201,7 +1201,11 @@ var require_reader = __commonJS({
1201
1201
  this.pos += length;
1202
1202
  if (Array.isArray(this.buf))
1203
1203
  return this.buf.slice(start, end);
1204
- return start === end ? new this.buf.constructor(0) : this._slice.call(this.buf, start, end);
1204
+ if (start === end) {
1205
+ var nativeBuffer = util.Buffer;
1206
+ return nativeBuffer ? nativeBuffer.alloc(0) : new this.buf.constructor(0);
1207
+ }
1208
+ return this._slice.call(this.buf, start, end);
1205
1209
  };
1206
1210
  Reader.prototype.string = function read_string() {
1207
1211
  var bytes = this.bytes();
@@ -1489,7 +1493,9 @@ var EntityMetadataStore = {
1489
1493
  return message;
1490
1494
  },
1491
1495
  fromJSON(object) {
1492
- return { items: Array.isArray(object?.items) ? object.items.map((e) => EntityMetadata.fromJSON(e)) : [] };
1496
+ return {
1497
+ items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => EntityMetadata.fromJSON(e)) : []
1498
+ };
1493
1499
  },
1494
1500
  toJSON(message) {
1495
1501
  const obj = {};
@@ -1674,8 +1680,8 @@ var EntityMetadata = {
1674
1680
  },
1675
1681
  fromJSON(object) {
1676
1682
  return {
1677
- version: isSet(object.version) ? String(object.version) : "",
1678
- languages: Array.isArray(object?.languages) ? object.languages.map((e) => String(e)) : [],
1683
+ version: isSet(object.version) ? globalThis.String(object.version) : "",
1684
+ languages: globalThis.Array.isArray(object?.languages) ? object.languages.map((e) => globalThis.String(e)) : [],
1679
1685
  name: isObject(object.name) ? Object.entries(object.name).reduce((acc, [key, value]) => {
1680
1686
  acc[key] = String(value);
1681
1687
  return acc;
@@ -1690,11 +1696,11 @@ var EntityMetadata = {
1690
1696
  return acc;
1691
1697
  }, {}) : {},
1692
1698
  media: isSet(object.media) ? EntityMetadata_Media.fromJSON(object.media) : void 0,
1693
- actions: Array.isArray(object?.actions) ? object.actions.map((e) => EntityMetadata_Action.fromJSON(e)) : [],
1694
- bootEntities: Array.isArray(object?.bootEntities) ? object.bootEntities.map((e) => EntityReference.fromJSON(e)) : [],
1695
- fallbackBootNodeEntities: Array.isArray(object?.fallbackBootNodeEntities) ? object.fallbackBootNodeEntities.map((e) => EntityReference.fromJSON(e)) : [],
1696
- trustedEntities: Array.isArray(object?.trustedEntities) ? object.trustedEntities.map((e) => EntityReference.fromJSON(e)) : [],
1697
- censusServiceManagedEntities: Array.isArray(object?.censusServiceManagedEntities) ? object.censusServiceManagedEntities.map((e) => EntityReference.fromJSON(e)) : [],
1699
+ actions: globalThis.Array.isArray(object?.actions) ? object.actions.map((e) => EntityMetadata_Action.fromJSON(e)) : [],
1700
+ bootEntities: globalThis.Array.isArray(object?.bootEntities) ? object.bootEntities.map((e) => EntityReference.fromJSON(e)) : [],
1701
+ fallbackBootNodeEntities: globalThis.Array.isArray(object?.fallbackBootNodeEntities) ? object.fallbackBootNodeEntities.map((e) => EntityReference.fromJSON(e)) : [],
1702
+ trustedEntities: globalThis.Array.isArray(object?.trustedEntities) ? object.trustedEntities.map((e) => EntityReference.fromJSON(e)) : [],
1703
+ censusServiceManagedEntities: globalThis.Array.isArray(object?.censusServiceManagedEntities) ? object.censusServiceManagedEntities.map((e) => EntityReference.fromJSON(e)) : [],
1698
1704
  meta: isObject(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
1699
1705
  acc[key] = String(value);
1700
1706
  return acc;
@@ -1777,14 +1783,14 @@ var EntityMetadata = {
1777
1783
  message.languages = object.languages?.map((e) => e) || [];
1778
1784
  message.name = Object.entries(object.name ?? {}).reduce((acc, [key, value]) => {
1779
1785
  if (value !== void 0) {
1780
- acc[key] = String(value);
1786
+ acc[key] = globalThis.String(value);
1781
1787
  }
1782
1788
  return acc;
1783
1789
  }, {});
1784
1790
  message.description = Object.entries(object.description ?? {}).reduce(
1785
1791
  (acc, [key, value]) => {
1786
1792
  if (value !== void 0) {
1787
- acc[key] = String(value);
1793
+ acc[key] = globalThis.String(value);
1788
1794
  }
1789
1795
  return acc;
1790
1796
  },
@@ -1793,7 +1799,7 @@ var EntityMetadata = {
1793
1799
  message.votingProcesses = object.votingProcesses !== void 0 && object.votingProcesses !== null ? EntityMetadata_VotingProcesses.fromPartial(object.votingProcesses) : void 0;
1794
1800
  message.newsFeed = Object.entries(object.newsFeed ?? {}).reduce((acc, [key, value]) => {
1795
1801
  if (value !== void 0) {
1796
- acc[key] = String(value);
1802
+ acc[key] = globalThis.String(value);
1797
1803
  }
1798
1804
  return acc;
1799
1805
  }, {});
@@ -1805,7 +1811,7 @@ var EntityMetadata = {
1805
1811
  message.censusServiceManagedEntities = object.censusServiceManagedEntities?.map((e) => EntityReference.fromPartial(e)) || [];
1806
1812
  message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
1807
1813
  if (value !== void 0) {
1808
- acc[key] = String(value);
1814
+ acc[key] = globalThis.String(value);
1809
1815
  }
1810
1816
  return acc;
1811
1817
  }, {});
@@ -1853,7 +1859,10 @@ var EntityMetadata_NameEntry = {
1853
1859
  return message;
1854
1860
  },
1855
1861
  fromJSON(object) {
1856
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
1862
+ return {
1863
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
1864
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
1865
+ };
1857
1866
  },
1858
1867
  toJSON(message) {
1859
1868
  const obj = {};
@@ -1916,7 +1925,10 @@ var EntityMetadata_DescriptionEntry = {
1916
1925
  return message;
1917
1926
  },
1918
1927
  fromJSON(object) {
1919
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
1928
+ return {
1929
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
1930
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
1931
+ };
1920
1932
  },
1921
1933
  toJSON(message) {
1922
1934
  const obj = {};
@@ -1980,8 +1992,8 @@ var EntityMetadata_VotingProcesses = {
1980
1992
  },
1981
1993
  fromJSON(object) {
1982
1994
  return {
1983
- active: Array.isArray(object?.active) ? object.active.map((e) => String(e)) : [],
1984
- ended: Array.isArray(object?.ended) ? object.ended.map((e) => String(e)) : []
1995
+ active: globalThis.Array.isArray(object?.active) ? object.active.map((e) => globalThis.String(e)) : [],
1996
+ ended: globalThis.Array.isArray(object?.ended) ? object.ended.map((e) => globalThis.String(e)) : []
1985
1997
  };
1986
1998
  },
1987
1999
  toJSON(message) {
@@ -2045,7 +2057,10 @@ var EntityMetadata_NewsFeedEntry = {
2045
2057
  return message;
2046
2058
  },
2047
2059
  fromJSON(object) {
2048
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
2060
+ return {
2061
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2062
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
2063
+ };
2049
2064
  },
2050
2065
  toJSON(message) {
2051
2066
  const obj = {};
@@ -2109,8 +2124,8 @@ var EntityMetadata_Media = {
2109
2124
  },
2110
2125
  fromJSON(object) {
2111
2126
  return {
2112
- avatar: isSet(object.avatar) ? String(object.avatar) : "",
2113
- header: isSet(object.header) ? String(object.header) : ""
2127
+ avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
2128
+ header: isSet(object.header) ? globalThis.String(object.header) : ""
2114
2129
  };
2115
2130
  },
2116
2131
  toJSON(message) {
@@ -2214,15 +2229,15 @@ var EntityMetadata_Action = {
2214
2229
  },
2215
2230
  fromJSON(object) {
2216
2231
  return {
2217
- type: isSet(object.type) ? String(object.type) : "",
2218
- actionKey: isSet(object.actionKey) ? String(object.actionKey) : "",
2232
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
2233
+ actionKey: isSet(object.actionKey) ? globalThis.String(object.actionKey) : "",
2219
2234
  name: isObject(object.name) ? Object.entries(object.name).reduce((acc, [key, value]) => {
2220
2235
  acc[key] = String(value);
2221
2236
  return acc;
2222
2237
  }, {}) : {},
2223
- visible: isSet(object.visible) ? String(object.visible) : "",
2224
- url: isSet(object.url) ? String(object.url) : "",
2225
- imageSources: Array.isArray(object?.imageSources) ? object.imageSources.map((e) => EntityMetadata_Action_ImageSource.fromJSON(e)) : []
2238
+ visible: isSet(object.visible) ? globalThis.String(object.visible) : "",
2239
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
2240
+ imageSources: globalThis.Array.isArray(object?.imageSources) ? object.imageSources.map((e) => EntityMetadata_Action_ImageSource.fromJSON(e)) : []
2226
2241
  };
2227
2242
  },
2228
2243
  toJSON(message) {
@@ -2262,7 +2277,7 @@ var EntityMetadata_Action = {
2262
2277
  message.actionKey = object.actionKey ?? "";
2263
2278
  message.name = Object.entries(object.name ?? {}).reduce((acc, [key, value]) => {
2264
2279
  if (value !== void 0) {
2265
- acc[key] = String(value);
2280
+ acc[key] = globalThis.String(value);
2266
2281
  }
2267
2282
  return acc;
2268
2283
  }, {});
@@ -2313,7 +2328,10 @@ var EntityMetadata_Action_NameEntry = {
2313
2328
  return message;
2314
2329
  },
2315
2330
  fromJSON(object) {
2316
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
2331
+ return {
2332
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2333
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
2334
+ };
2317
2335
  },
2318
2336
  toJSON(message) {
2319
2337
  const obj = {};
@@ -2407,10 +2425,10 @@ var EntityMetadata_Action_ImageSource = {
2407
2425
  },
2408
2426
  fromJSON(object) {
2409
2427
  return {
2410
- type: isSet(object.type) ? String(object.type) : "",
2411
- name: isSet(object.name) ? String(object.name) : "",
2412
- orientation: isSet(object.orientation) ? String(object.orientation) : "",
2413
- overlay: isSet(object.overlay) ? String(object.overlay) : "",
2428
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
2429
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
2430
+ orientation: isSet(object.orientation) ? globalThis.String(object.orientation) : "",
2431
+ overlay: isSet(object.overlay) ? globalThis.String(object.overlay) : "",
2414
2432
  caption: isObject(object.caption) ? Object.entries(object.caption).reduce((acc, [key, value]) => {
2415
2433
  acc[key] = String(value);
2416
2434
  return acc;
@@ -2453,7 +2471,7 @@ var EntityMetadata_Action_ImageSource = {
2453
2471
  message.overlay = object.overlay ?? "";
2454
2472
  message.caption = Object.entries(object.caption ?? {}).reduce((acc, [key, value]) => {
2455
2473
  if (value !== void 0) {
2456
- acc[key] = String(value);
2474
+ acc[key] = globalThis.String(value);
2457
2475
  }
2458
2476
  return acc;
2459
2477
  }, {});
@@ -2501,7 +2519,10 @@ var EntityMetadata_Action_ImageSource_CaptionEntry = {
2501
2519
  return message;
2502
2520
  },
2503
2521
  fromJSON(object) {
2504
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
2522
+ return {
2523
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2524
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
2525
+ };
2505
2526
  },
2506
2527
  toJSON(message) {
2507
2528
  const obj = {};
@@ -2564,7 +2585,10 @@ var EntityMetadata_MetaEntry = {
2564
2585
  return message;
2565
2586
  },
2566
2587
  fromJSON(object) {
2567
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
2588
+ return {
2589
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2590
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
2591
+ };
2568
2592
  },
2569
2593
  toJSON(message) {
2570
2594
  const obj = {};
@@ -2628,8 +2652,8 @@ var EntityReference = {
2628
2652
  },
2629
2653
  fromJSON(object) {
2630
2654
  return {
2631
- entityId: isSet(object.entityId) ? String(object.entityId) : "",
2632
- entryPoints: Array.isArray(object?.entryPoints) ? object.entryPoints.map((e) => String(e)) : []
2655
+ entityId: isSet(object.entityId) ? globalThis.String(object.entityId) : "",
2656
+ entryPoints: globalThis.Array.isArray(object?.entryPoints) ? object.entryPoints.map((e) => globalThis.String(e)) : []
2633
2657
  };
2634
2658
  },
2635
2659
  toJSON(message) {
@@ -2693,7 +2717,7 @@ var FeedStore = {
2693
2717
  return message;
2694
2718
  },
2695
2719
  fromJSON(object) {
2696
- return { items: Array.isArray(object?.items) ? object.items.map((e) => Feed.fromJSON(e)) : [] };
2720
+ return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => Feed.fromJSON(e)) : [] };
2697
2721
  },
2698
2722
  toJSON(message) {
2699
2723
  const obj = {};
@@ -2839,15 +2863,15 @@ var Feed = {
2839
2863
  },
2840
2864
  fromJSON(object) {
2841
2865
  return {
2842
- version: isSet2(object.version) ? String(object.version) : "",
2843
- title: isSet2(object.title) ? String(object.title) : "",
2844
- homePageUrl: isSet2(object.homePageUrl) ? String(object.homePageUrl) : "",
2845
- description: isSet2(object.description) ? String(object.description) : "",
2846
- feedUrl: isSet2(object.feedUrl) ? String(object.feedUrl) : "",
2847
- icon: isSet2(object.icon) ? String(object.icon) : "",
2848
- favicon: isSet2(object.favicon) ? String(object.favicon) : "",
2849
- expired: isSet2(object.expired) ? Boolean(object.expired) : false,
2850
- items: Array.isArray(object?.items) ? object.items.map((e) => FeedPost.fromJSON(e)) : [],
2866
+ version: isSet2(object.version) ? globalThis.String(object.version) : "",
2867
+ title: isSet2(object.title) ? globalThis.String(object.title) : "",
2868
+ homePageUrl: isSet2(object.homePageUrl) ? globalThis.String(object.homePageUrl) : "",
2869
+ description: isSet2(object.description) ? globalThis.String(object.description) : "",
2870
+ feedUrl: isSet2(object.feedUrl) ? globalThis.String(object.feedUrl) : "",
2871
+ icon: isSet2(object.icon) ? globalThis.String(object.icon) : "",
2872
+ favicon: isSet2(object.favicon) ? globalThis.String(object.favicon) : "",
2873
+ expired: isSet2(object.expired) ? globalThis.Boolean(object.expired) : false,
2874
+ items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => FeedPost.fromJSON(e)) : [],
2851
2875
  meta: isObject2(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
2852
2876
  acc[key] = String(value);
2853
2877
  return acc;
@@ -2910,7 +2934,7 @@ var Feed = {
2910
2934
  message.items = object.items?.map((e) => FeedPost.fromPartial(e)) || [];
2911
2935
  message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
2912
2936
  if (value !== void 0) {
2913
- acc[key] = String(value);
2937
+ acc[key] = globalThis.String(value);
2914
2938
  }
2915
2939
  return acc;
2916
2940
  }, {});
@@ -2958,7 +2982,10 @@ var Feed_MetaEntry = {
2958
2982
  return message;
2959
2983
  },
2960
2984
  fromJSON(object) {
2961
- return { key: isSet2(object.key) ? String(object.key) : "", value: isSet2(object.value) ? String(object.value) : "" };
2985
+ return {
2986
+ key: isSet2(object.key) ? globalThis.String(object.key) : "",
2987
+ value: isSet2(object.value) ? globalThis.String(object.value) : ""
2988
+ };
2962
2989
  },
2963
2990
  toJSON(message) {
2964
2991
  const obj = {};
@@ -3115,16 +3142,16 @@ var FeedPost = {
3115
3142
  },
3116
3143
  fromJSON(object) {
3117
3144
  return {
3118
- id: isSet2(object.id) ? String(object.id) : "",
3119
- title: isSet2(object.title) ? String(object.title) : "",
3120
- summary: isSet2(object.summary) ? String(object.summary) : "",
3121
- contentText: isSet2(object.contentText) ? String(object.contentText) : "",
3122
- contentHtml: isSet2(object.contentHtml) ? String(object.contentHtml) : "",
3123
- url: isSet2(object.url) ? String(object.url) : "",
3124
- image: isSet2(object.image) ? String(object.image) : "",
3125
- tags: Array.isArray(object?.tags) ? object.tags.map((e) => String(e)) : [],
3126
- datePublished: isSet2(object.datePublished) ? String(object.datePublished) : "",
3127
- dateModified: isSet2(object.dateModified) ? String(object.dateModified) : "",
3145
+ id: isSet2(object.id) ? globalThis.String(object.id) : "",
3146
+ title: isSet2(object.title) ? globalThis.String(object.title) : "",
3147
+ summary: isSet2(object.summary) ? globalThis.String(object.summary) : "",
3148
+ contentText: isSet2(object.contentText) ? globalThis.String(object.contentText) : "",
3149
+ contentHtml: isSet2(object.contentHtml) ? globalThis.String(object.contentHtml) : "",
3150
+ url: isSet2(object.url) ? globalThis.String(object.url) : "",
3151
+ image: isSet2(object.image) ? globalThis.String(object.image) : "",
3152
+ tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
3153
+ datePublished: isSet2(object.datePublished) ? globalThis.String(object.datePublished) : "",
3154
+ dateModified: isSet2(object.dateModified) ? globalThis.String(object.dateModified) : "",
3128
3155
  author: isSet2(object.author) ? FeedPost_Author.fromJSON(object.author) : void 0
3129
3156
  };
3130
3157
  },
@@ -3225,7 +3252,10 @@ var FeedPost_Author = {
3225
3252
  return message;
3226
3253
  },
3227
3254
  fromJSON(object) {
3228
- return { name: isSet2(object.name) ? String(object.name) : "", url: isSet2(object.url) ? String(object.url) : "" };
3255
+ return {
3256
+ name: isSet2(object.name) ? globalThis.String(object.name) : "",
3257
+ url: isSet2(object.url) ? globalThis.String(object.url) : ""
3258
+ };
3229
3259
  },
3230
3260
  toJSON(message) {
3231
3261
  const obj = {};
@@ -3288,7 +3318,9 @@ var ProcessMetadataStore = {
3288
3318
  return message;
3289
3319
  },
3290
3320
  fromJSON(object) {
3291
- return { items: Array.isArray(object?.items) ? object.items.map((e) => ProcessMetadata.fromJSON(e)) : [] };
3321
+ return {
3322
+ items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => ProcessMetadata.fromJSON(e)) : []
3323
+ };
3292
3324
  },
3293
3325
  toJSON(message) {
3294
3326
  const obj = {};
@@ -3405,7 +3437,7 @@ var ProcessMetadata = {
3405
3437
  },
3406
3438
  fromJSON(object) {
3407
3439
  return {
3408
- version: isSet3(object.version) ? String(object.version) : "",
3440
+ version: isSet3(object.version) ? globalThis.String(object.version) : "",
3409
3441
  title: isObject3(object.title) ? Object.entries(object.title).reduce((acc, [key, value]) => {
3410
3442
  acc[key] = String(value);
3411
3443
  return acc;
@@ -3418,7 +3450,7 @@ var ProcessMetadata = {
3418
3450
  acc[key] = String(value);
3419
3451
  return acc;
3420
3452
  }, {}) : {},
3421
- questions: Array.isArray(object?.questions) ? object.questions.map((e) => ProcessMetadata_Question.fromJSON(e)) : [],
3453
+ questions: globalThis.Array.isArray(object?.questions) ? object.questions.map((e) => ProcessMetadata_Question.fromJSON(e)) : [],
3422
3454
  results: isSet3(object.results) ? ProcessMetadata_Results.fromJSON(object.results) : void 0,
3423
3455
  meta: isObject3(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
3424
3456
  acc[key] = String(value);
@@ -3483,14 +3515,14 @@ var ProcessMetadata = {
3483
3515
  message.version = object.version ?? "";
3484
3516
  message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
3485
3517
  if (value !== void 0) {
3486
- acc[key] = String(value);
3518
+ acc[key] = globalThis.String(value);
3487
3519
  }
3488
3520
  return acc;
3489
3521
  }, {});
3490
3522
  message.description = Object.entries(object.description ?? {}).reduce(
3491
3523
  (acc, [key, value]) => {
3492
3524
  if (value !== void 0) {
3493
- acc[key] = String(value);
3525
+ acc[key] = globalThis.String(value);
3494
3526
  }
3495
3527
  return acc;
3496
3528
  },
@@ -3498,7 +3530,7 @@ var ProcessMetadata = {
3498
3530
  );
3499
3531
  message.media = Object.entries(object.media ?? {}).reduce((acc, [key, value]) => {
3500
3532
  if (value !== void 0) {
3501
- acc[key] = String(value);
3533
+ acc[key] = globalThis.String(value);
3502
3534
  }
3503
3535
  return acc;
3504
3536
  }, {});
@@ -3506,7 +3538,7 @@ var ProcessMetadata = {
3506
3538
  message.results = object.results !== void 0 && object.results !== null ? ProcessMetadata_Results.fromPartial(object.results) : void 0;
3507
3539
  message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
3508
3540
  if (value !== void 0) {
3509
- acc[key] = String(value);
3541
+ acc[key] = globalThis.String(value);
3510
3542
  }
3511
3543
  return acc;
3512
3544
  }, {});
@@ -3554,7 +3586,10 @@ var ProcessMetadata_TitleEntry = {
3554
3586
  return message;
3555
3587
  },
3556
3588
  fromJSON(object) {
3557
- return { key: isSet3(object.key) ? String(object.key) : "", value: isSet3(object.value) ? String(object.value) : "" };
3589
+ return {
3590
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
3591
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
3592
+ };
3558
3593
  },
3559
3594
  toJSON(message) {
3560
3595
  const obj = {};
@@ -3617,7 +3652,10 @@ var ProcessMetadata_DescriptionEntry = {
3617
3652
  return message;
3618
3653
  },
3619
3654
  fromJSON(object) {
3620
- return { key: isSet3(object.key) ? String(object.key) : "", value: isSet3(object.value) ? String(object.value) : "" };
3655
+ return {
3656
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
3657
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
3658
+ };
3621
3659
  },
3622
3660
  toJSON(message) {
3623
3661
  const obj = {};
@@ -3680,7 +3718,10 @@ var ProcessMetadata_MediaEntry = {
3680
3718
  return message;
3681
3719
  },
3682
3720
  fromJSON(object) {
3683
- return { key: isSet3(object.key) ? String(object.key) : "", value: isSet3(object.value) ? String(object.value) : "" };
3721
+ return {
3722
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
3723
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
3724
+ };
3684
3725
  },
3685
3726
  toJSON(message) {
3686
3727
  const obj = {};
@@ -3767,7 +3808,7 @@ var ProcessMetadata_Question = {
3767
3808
  acc[key] = String(value);
3768
3809
  return acc;
3769
3810
  }, {}) : {},
3770
- choices: Array.isArray(object?.choices) ? object.choices.map((e) => ProcessMetadata_Question_VoteOption.fromJSON(e)) : []
3811
+ choices: globalThis.Array.isArray(object?.choices) ? object.choices.map((e) => ProcessMetadata_Question_VoteOption.fromJSON(e)) : []
3771
3812
  };
3772
3813
  },
3773
3814
  toJSON(message) {
@@ -3802,14 +3843,14 @@ var ProcessMetadata_Question = {
3802
3843
  const message = createBaseProcessMetadata_Question();
3803
3844
  message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
3804
3845
  if (value !== void 0) {
3805
- acc[key] = String(value);
3846
+ acc[key] = globalThis.String(value);
3806
3847
  }
3807
3848
  return acc;
3808
3849
  }, {});
3809
3850
  message.description = Object.entries(object.description ?? {}).reduce(
3810
3851
  (acc, [key, value]) => {
3811
3852
  if (value !== void 0) {
3812
- acc[key] = String(value);
3853
+ acc[key] = globalThis.String(value);
3813
3854
  }
3814
3855
  return acc;
3815
3856
  },
@@ -3860,7 +3901,10 @@ var ProcessMetadata_Question_TitleEntry = {
3860
3901
  return message;
3861
3902
  },
3862
3903
  fromJSON(object) {
3863
- return { key: isSet3(object.key) ? String(object.key) : "", value: isSet3(object.value) ? String(object.value) : "" };
3904
+ return {
3905
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
3906
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
3907
+ };
3864
3908
  },
3865
3909
  toJSON(message) {
3866
3910
  const obj = {};
@@ -3923,7 +3967,10 @@ var ProcessMetadata_Question_DescriptionEntry = {
3923
3967
  return message;
3924
3968
  },
3925
3969
  fromJSON(object) {
3926
- return { key: isSet3(object.key) ? String(object.key) : "", value: isSet3(object.value) ? String(object.value) : "" };
3970
+ return {
3971
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
3972
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
3973
+ };
3927
3974
  },
3928
3975
  toJSON(message) {
3929
3976
  const obj = {};
@@ -3994,7 +4041,7 @@ var ProcessMetadata_Question_VoteOption = {
3994
4041
  acc[key] = String(value);
3995
4042
  return acc;
3996
4043
  }, {}) : {},
3997
- value: isSet3(object.value) ? Number(object.value) : 0
4044
+ value: isSet3(object.value) ? globalThis.Number(object.value) : 0
3998
4045
  };
3999
4046
  },
4000
4047
  toJSON(message) {
@@ -4020,7 +4067,7 @@ var ProcessMetadata_Question_VoteOption = {
4020
4067
  const message = createBaseProcessMetadata_Question_VoteOption();
4021
4068
  message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
4022
4069
  if (value !== void 0) {
4023
- acc[key] = String(value);
4070
+ acc[key] = globalThis.String(value);
4024
4071
  }
4025
4072
  return acc;
4026
4073
  }, {});
@@ -4069,7 +4116,10 @@ var ProcessMetadata_Question_VoteOption_TitleEntry = {
4069
4116
  return message;
4070
4117
  },
4071
4118
  fromJSON(object) {
4072
- return { key: isSet3(object.key) ? String(object.key) : "", value: isSet3(object.value) ? String(object.value) : "" };
4119
+ return {
4120
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
4121
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
4122
+ };
4073
4123
  },
4074
4124
  toJSON(message) {
4075
4125
  const obj = {};
@@ -4133,8 +4183,8 @@ var ProcessMetadata_Results = {
4133
4183
  },
4134
4184
  fromJSON(object) {
4135
4185
  return {
4136
- aggregation: isSet3(object.aggregation) ? String(object.aggregation) : "",
4137
- display: isSet3(object.display) ? String(object.display) : ""
4186
+ aggregation: isSet3(object.aggregation) ? globalThis.String(object.aggregation) : "",
4187
+ display: isSet3(object.display) ? globalThis.String(object.display) : ""
4138
4188
  };
4139
4189
  },
4140
4190
  toJSON(message) {
@@ -4198,7 +4248,10 @@ var ProcessMetadata_MetaEntry = {
4198
4248
  return message;
4199
4249
  },
4200
4250
  fromJSON(object) {
4201
- return { key: isSet3(object.key) ? String(object.key) : "", value: isSet3(object.value) ? String(object.value) : "" };
4251
+ return {
4252
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
4253
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
4254
+ };
4202
4255
  },
4203
4256
  toJSON(message) {
4204
4257
  const obj = {};