apiuikit 1.12.0 → 2.0.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 (160) hide show
  1. package/README.md +2 -52
  2. package/dist/{CodeSamples-BzQONJ_W.js → CodeSamples-DqJT72uU.js} +648 -636
  3. package/dist/{CodeSamples-BpMwzCbt.cjs → CodeSamples-ILzruYIb.cjs} +33 -33
  4. package/dist/{LogoExtension-NutcLQ6T.cjs → LogoExtension-pwW1l7NO.cjs} +1 -1
  5. package/dist/{LogoExtension-DyWnBQ1M.js → LogoExtension-yx9jporL.js} +1 -1
  6. package/dist/apiuikit.cjs.js +1 -1
  7. package/dist/apiuikit.css +1 -1
  8. package/dist/apiuikit.es.js +1 -1
  9. package/dist/c-B4BAHWS4.cjs +1 -0
  10. package/dist/{c-Bz1-FJiA.js → c-C0DTNf68.js} +122 -63
  11. package/dist/components/AsyncCodeSample.d.ts +1 -1
  12. package/dist/components/Authorization.d.ts +5 -5
  13. package/dist/components/Bindings.d.ts +1 -1
  14. package/dist/components/ChannelAddress.d.ts +1 -1
  15. package/dist/components/CodeBlock.d.ts +1 -1
  16. package/dist/components/CodeSamples.d.ts +1 -1
  17. package/dist/components/CollapsiblePanel.d.ts +1 -1
  18. package/dist/components/ContentTab.d.ts +1 -1
  19. package/dist/components/CopyButton.d.ts +1 -1
  20. package/dist/components/DefinitionListItem.d.ts +1 -1
  21. package/dist/components/DocumentTopBar.d.ts +1 -1
  22. package/dist/components/ErrorBoundary.d.ts +1 -1
  23. package/dist/components/Examples.d.ts +1 -1
  24. package/dist/components/InfoMetadata.d.ts +1 -1
  25. package/dist/components/MarkdownExportMenu.d.ts +1 -1
  26. package/dist/components/MethodBadge.d.ts +1 -1
  27. package/dist/components/Navigation/AsyncAPINavigation.d.ts +1 -1
  28. package/dist/components/Navigation/Navigation.d.ts +1 -1
  29. package/dist/components/Navigation/OpenAPINavigation.d.ts +1 -1
  30. package/dist/components/Navigation/SpecNavigation.d.ts +1 -1
  31. package/dist/components/QueryParameters.d.ts +1 -1
  32. package/dist/components/RenderExtensions.d.ts +1 -1
  33. package/dist/components/Reply.d.ts +1 -1
  34. package/dist/components/SearchPanel.d.ts +1 -1
  35. package/dist/components/Section.d.ts +8 -1
  36. package/dist/components/ServerAddressBanner.d.ts +1 -1
  37. package/dist/components/TabToggle.d.ts +1 -1
  38. package/dist/components/Tabs.d.ts +2 -2
  39. package/dist/components/Tag.d.ts +1 -1
  40. package/dist/components/VerticalNavigation.d.ts +1 -1
  41. package/dist/components/schema/ExpandToggle.d.ts +1 -1
  42. package/dist/components/schema/SchemaCaseDetail.d.ts +1 -1
  43. package/dist/components/schema/SchemaConstraints.d.ts +1 -1
  44. package/dist/components/schema/SchemaFieldMeta.d.ts +1 -1
  45. package/dist/components/schema/SchemaIfThenElseBranch.d.ts +1 -1
  46. package/dist/components/schema/SchemaMapBranch.d.ts +1 -1
  47. package/dist/components/schema/SchemaNode.d.ts +1 -1
  48. package/dist/components/schema/SchemaNotBranch.d.ts +2 -2
  49. package/dist/components/schema/SchemaTab.d.ts +1 -1
  50. package/dist/components/schema/SchemaTree.d.ts +1 -1
  51. package/dist/components/schema/SchemaTreeBranch.d.ts +1 -1
  52. package/dist/components/schema/SchemaTreeRow.d.ts +1 -1
  53. package/dist/components/schema/SchemaTypeLabel.d.ts +1 -1
  54. package/dist/components/schema/SchemaUnionBranch.d.ts +1 -1
  55. package/dist/config/config.d.ts +17 -0
  56. package/dist/containers/AsyncAPI/AsyncAPI.d.ts +1 -1
  57. package/dist/containers/AsyncAPI/AsyncAPIDocumentProvider.d.ts +1 -1
  58. package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +1 -1
  59. package/dist/containers/AsyncAPI/Layout.d.ts +1 -1
  60. package/dist/containers/Information/InformationSection.d.ts +2 -2
  61. package/dist/containers/Information/OpenAPIInformation.d.ts +1 -1
  62. package/dist/containers/Messages/Message.d.ts +1 -1
  63. package/dist/containers/Messages/MessageDetails.d.ts +1 -1
  64. package/dist/containers/Messages/Messages.d.ts +1 -1
  65. package/dist/containers/OpenAPI/Layout.d.ts +1 -1
  66. package/dist/containers/OpenAPI/OpenAPI.d.ts +1 -1
  67. package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +1 -1
  68. package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +1 -1
  69. package/dist/containers/Operation/Operation.d.ts +1 -1
  70. package/dist/containers/Operation/Operations.d.ts +1 -1
  71. package/dist/containers/Path/OperationCallbacks.d.ts +1 -1
  72. package/dist/containers/Path/PathOperation.d.ts +1 -1
  73. package/dist/containers/Path/Paths.d.ts +1 -1
  74. package/dist/containers/Path/ResponseLinks.d.ts +1 -1
  75. package/dist/containers/Schema/Schemas.d.ts +1 -1
  76. package/dist/containers/Server/OpenAPIServer.d.ts +1 -1
  77. package/dist/containers/Server/OpenAPIServers.d.ts +1 -1
  78. package/dist/containers/Server/Server.d.ts +1 -1
  79. package/dist/containers/Server/Servers.d.ts +1 -1
  80. package/dist/contexts/useSpec.d.ts +5 -0
  81. package/dist/{crystal-BcGgviMR.cjs → crystal-BA1RB3o9.cjs} +1 -1
  82. package/dist/{crystal-BtD5fR4q.js → crystal-C5EKc8oK.js} +29 -18
  83. package/dist/{csharp-AnFv7wyC.js → csharp-B6YWt0KR.js} +47 -47
  84. package/dist/csharp-IihVQN8U.cjs +1 -0
  85. package/dist/{go-BpetKc7b.cjs → go-By8nj0Vi.cjs} +1 -1
  86. package/dist/{go-CkZ9_bn0.js → go-C8VcBUsu.js} +7 -2
  87. package/dist/helpers/openapiParser.d.ts +1 -1
  88. package/dist/helpers/parser.d.ts +1 -1
  89. package/dist/hooks/useDocumentProviderValue.d.ts +1 -0
  90. package/dist/icons/ArrowDown.d.ts +1 -1
  91. package/dist/icons/ArrowRight.d.ts +1 -1
  92. package/dist/icons/AtSymbol.d.ts +1 -1
  93. package/dist/icons/BookOpen.d.ts +1 -1
  94. package/dist/icons/Check.d.ts +1 -1
  95. package/dist/icons/Clipboard.d.ts +1 -1
  96. package/dist/icons/Connection.d.ts +1 -1
  97. package/dist/icons/Copy.d.ts +1 -1
  98. package/dist/icons/ExternalLink.d.ts +1 -1
  99. package/dist/icons/Globe.d.ts +1 -1
  100. package/dist/icons/IconWrapper.d.ts +1 -1
  101. package/dist/icons/Info.d.ts +1 -1
  102. package/dist/icons/Link.d.ts +1 -1
  103. package/dist/icons/Message.d.ts +1 -1
  104. package/dist/icons/Operation.d.ts +1 -1
  105. package/dist/icons/Scale.d.ts +1 -1
  106. package/dist/icons/Schema.d.ts +1 -1
  107. package/dist/icons/Server.d.ts +1 -1
  108. package/dist/icons/ShieldCheck.d.ts +1 -1
  109. package/dist/icons/Tag.d.ts +1 -1
  110. package/dist/icons/Variable.d.ts +1 -1
  111. package/dist/index-1SEMQuYi.js +1704 -0
  112. package/dist/{index-ByyWsuPc.js → index-6q1VqGzf.js} +10357 -10196
  113. package/dist/{index-Zmu_k8_1.js → index-BI2__AB3.js} +3637 -3400
  114. package/dist/index-CI3MIo1V.cjs +137 -0
  115. package/dist/index-Ccy_JZ0T.cjs +4 -0
  116. package/dist/index-CfELqow6.cjs +107 -0
  117. package/dist/index-DNsQrlh-.cjs +178 -0
  118. package/dist/{index-CxOoKEXt.js → index-Dbr8eb7Z.js} +3118 -3026
  119. package/dist/{java-BicX26Pg.js → java-BoRJOXvw.js} +48 -39
  120. package/dist/java-DFXAwvvK.cjs +1 -0
  121. package/dist/{kotlin-kGuORR5a.cjs → kotlin-B3HlgtFq.cjs} +2 -2
  122. package/dist/{kotlin-BwB8b-YX.js → kotlin-CIEA64JZ.js} +3 -1
  123. package/dist/markdown-assets/protoToJsonSchema-B7uaS_Ic.js +83 -0
  124. package/dist/markdown-assets/{protoToJsonSchema-CBPWaboT.js → protoToJsonSchema-CWtEPUyE.js} +1807 -1788
  125. package/dist/markdown.cjs +37 -37
  126. package/dist/markdown.es.js +927 -900
  127. package/dist/{php-DF4zG2hq.cjs → php-BMUCoWpx.cjs} +2 -2
  128. package/dist/{php-BL35ZHWM.js → php-DJ7KS8rT.js} +39 -33
  129. package/dist/plugins/OperationPluginTabs.d.ts +1 -1
  130. package/dist/plugins/PluginSlot.d.ts +2 -2
  131. package/dist/{protoToJsonSchema-DYct0Ubq.js → protoToJsonSchema-CbZrqF4-.js} +787 -769
  132. package/dist/protoToJsonSchema-QVW5EW0-.cjs +83 -0
  133. package/dist/{protobufSchemaParser-AhCAnBeA.cjs → protobufSchemaParser-BEVutm25.cjs} +1 -1
  134. package/dist/{protobufSchemaParser-DDehPdy5.js → protobufSchemaParser-CtnNrHbS.js} +2 -2
  135. package/dist/public/createSectionRoot.d.ts +1 -1
  136. package/dist/public/openapiSections.d.ts +5 -5
  137. package/dist/public/schemasSection.d.ts +1 -1
  138. package/dist/public/sections.d.ts +5 -5
  139. package/dist/{ruby-nPcbuC2a.cjs → ruby-CGL4kvvH.cjs} +1 -1
  140. package/dist/{ruby-CvOid-1s.js → ruby-t1jbZ0Fv.js} +2 -2
  141. package/dist/{rust-BocnJ3Ns.js → rust-DY-oA2gr.js} +40 -26
  142. package/dist/rust-_vvcEGSJ.cjs +1 -0
  143. package/dist/swift-BAji1QIq.cjs +1 -0
  144. package/dist/{swift-C35Eof-I.js → swift-CdDIFB_j.js} +25 -11
  145. package/dist/utils/theme.d.ts +14 -0
  146. package/package.json +4 -4
  147. package/dist/App.d.ts +0 -2
  148. package/dist/c-C_Sx7N-F.cjs +0 -1
  149. package/dist/csharp-yuAGIuP4.cjs +0 -1
  150. package/dist/index-BKvXpIUY.cjs +0 -107
  151. package/dist/index-DCDYBZcY.js +0 -1461
  152. package/dist/index-DgKIIH6w.cjs +0 -139
  153. package/dist/index-DwDyiZr3.cjs +0 -178
  154. package/dist/index-d8kJa7YD.cjs +0 -4
  155. package/dist/java-BIk0G-rH.cjs +0 -1
  156. package/dist/main.d.ts +0 -0
  157. package/dist/markdown-assets/protoToJsonSchema-CgkcluFJ.js +0 -83
  158. package/dist/protoToJsonSchema-B86Gpg5n.cjs +0 -83
  159. package/dist/rust-DKnYCg2f.cjs +0 -1
  160. package/dist/swift-CAnH__EC.cjs +0 -1
@@ -1,16 +1,16 @@
1
1
  var Yr = Object.defineProperty;
2
- var Xr = (a, e, i) => e in a ? Yr(a, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[e] = i;
3
- var ve = (a, e, i) => Xr(a, typeof e != "symbol" ? e + "" : e, i);
4
- import { c as Ne, a as Kr } from "./index-CxOoKEXt.js";
2
+ var Xr = (a, e, r) => e in a ? Yr(a, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[e] = r;
3
+ var ve = (a, e, r) => Xr(a, typeof e != "symbol" ? e + "" : e, r);
4
+ import { c as Ne, a as Kr } from "./index-Dbr8eb7Z.js";
5
5
  var Er = { exports: {} }, Ar = { exports: {} }, Tr = {}, Ue = {}, Rr = Qr;
6
6
  function Qr(a, e) {
7
- for (var i = new Array(arguments.length - 1), f = 0, s = 2, u = !0; s < arguments.length; )
8
- i[f++] = arguments[s++];
9
- return new Promise(function(o, r) {
10
- i[f] = function(c) {
7
+ for (var r = new Array(arguments.length - 1), f = 0, s = 2, u = !0; s < arguments.length; )
8
+ r[f++] = arguments[s++];
9
+ return new Promise(function(o, i) {
10
+ r[f] = function(c) {
11
11
  if (u)
12
12
  if (u = !1, c)
13
- r(c);
13
+ i(c);
14
14
  else {
15
15
  for (var l = new Array(arguments.length - 1), d = 0; d < l.length; )
16
16
  l[d++] = arguments[d];
@@ -18,9 +18,9 @@ function Qr(a, e) {
18
18
  }
19
19
  };
20
20
  try {
21
- a.apply(e || null, i);
21
+ a.apply(e || null, r);
22
22
  } catch (n) {
23
- u && (u = !1, r(n));
23
+ u && (u = !1, i(n));
24
24
  }
25
25
  });
26
26
  }
@@ -28,35 +28,35 @@ var Nr = {};
28
28
  (function(a) {
29
29
  var e = a;
30
30
  e.length = function(o) {
31
- var r = o.length;
32
- if (!r)
31
+ var i = o.length;
32
+ if (!i)
33
33
  return 0;
34
- for (var n = 0; --r % 4 > 1 && o.charAt(r) === "="; )
34
+ for (var n = 0; --i % 4 > 1 && o.charAt(i) === "="; )
35
35
  ++n;
36
36
  return Math.ceil(o.length * 3) / 4 - n;
37
37
  };
38
- for (var i = new Array(64), f = new Array(123), s = 0; s < 64; )
39
- f[i[s] = s < 26 ? s + 65 : s < 52 ? s + 71 : s < 62 ? s - 4 : s - 59 | 43] = s++;
40
- e.encode = function(o, r, n) {
41
- for (var c = null, l = [], d = 0, p = 0, m; r < n; ) {
42
- var g = o[r++];
38
+ for (var r = new Array(64), f = new Array(123), s = 0; s < 64; )
39
+ f[r[s] = s < 26 ? s + 65 : s < 52 ? s + 71 : s < 62 ? s - 4 : s - 59 | 43] = s++;
40
+ e.encode = function(o, i, n) {
41
+ for (var c = null, l = [], d = 0, p = 0, m; i < n; ) {
42
+ var g = o[i++];
43
43
  switch (p) {
44
44
  case 0:
45
- l[d++] = i[g >> 2], m = (g & 3) << 4, p = 1;
45
+ l[d++] = r[g >> 2], m = (g & 3) << 4, p = 1;
46
46
  break;
47
47
  case 1:
48
- l[d++] = i[m | g >> 4], m = (g & 15) << 2, p = 2;
48
+ l[d++] = r[m | g >> 4], m = (g & 15) << 2, p = 2;
49
49
  break;
50
50
  case 2:
51
- l[d++] = i[m | g >> 6], l[d++] = i[g & 63], p = 0;
51
+ l[d++] = r[m | g >> 6], l[d++] = r[g & 63], p = 0;
52
52
  break;
53
53
  }
54
54
  d > 8191 && ((c || (c = [])).push(String.fromCharCode.apply(String, l)), d = 0);
55
55
  }
56
- return p && (l[d++] = i[m], l[d++] = 61, p === 1 && (l[d++] = 61)), c ? (d && c.push(String.fromCharCode.apply(String, l.slice(0, d))), c.join("")) : String.fromCharCode.apply(String, l.slice(0, d));
56
+ return p && (l[d++] = r[m], l[d++] = 61, p === 1 && (l[d++] = 61)), c ? (d && c.push(String.fromCharCode.apply(String, l.slice(0, d))), c.join("")) : String.fromCharCode.apply(String, l.slice(0, d));
57
57
  };
58
58
  var u = "invalid encoding";
59
- e.decode = function(o, r, n) {
59
+ e.decode = function(o, i, n) {
60
60
  for (var c = n, l = 0, d, p = 0; p < o.length; ) {
61
61
  var m = o.charCodeAt(p++);
62
62
  if (m === 61 && l > 1)
@@ -68,13 +68,13 @@ var Nr = {};
68
68
  d = m, l = 1;
69
69
  break;
70
70
  case 1:
71
- r[n++] = d << 2 | (m & 48) >> 4, d = m, l = 2;
71
+ i[n++] = d << 2 | (m & 48) >> 4, d = m, l = 2;
72
72
  break;
73
73
  case 2:
74
- r[n++] = (d & 15) << 4 | (m & 60) >> 2, d = m, l = 3;
74
+ i[n++] = (d & 15) << 4 | (m & 60) >> 2, d = m, l = 3;
75
75
  break;
76
76
  case 3:
77
- r[n++] = (d & 3) << 6 | m, l = 0;
77
+ i[n++] = (d & 3) << 6 | m, l = 0;
78
78
  break;
79
79
  }
80
80
  }
@@ -89,52 +89,52 @@ var ei = ze;
89
89
  function ze() {
90
90
  this._listeners = /* @__PURE__ */ Object.create(null);
91
91
  }
92
- ze.prototype.on = function(e, i, f) {
92
+ ze.prototype.on = function(e, r, f) {
93
93
  return (this._listeners[e] || (this._listeners[e] = [])).push({
94
- fn: i,
94
+ fn: r,
95
95
  ctx: f || this
96
96
  }), this;
97
97
  };
98
- ze.prototype.off = function(e, i) {
98
+ ze.prototype.off = function(e, r) {
99
99
  if (e === void 0)
100
100
  this._listeners = /* @__PURE__ */ Object.create(null);
101
- else if (i === void 0)
101
+ else if (r === void 0)
102
102
  this._listeners[e] = [];
103
103
  else {
104
104
  var f = this._listeners[e];
105
105
  if (!f)
106
106
  return this;
107
107
  for (var s = 0; s < f.length; )
108
- f[s].fn === i ? f.splice(s, 1) : ++s;
108
+ f[s].fn === r ? f.splice(s, 1) : ++s;
109
109
  }
110
110
  return this;
111
111
  };
112
112
  ze.prototype.emit = function(e) {
113
- var i = this._listeners[e];
114
- if (i) {
113
+ var r = this._listeners[e];
114
+ if (r) {
115
115
  for (var f = [], s = 1; s < arguments.length; )
116
116
  f.push(arguments[s++]);
117
- for (s = 0; s < i.length; )
118
- i[s].fn.apply(i[s++].ctx, f);
117
+ for (s = 0; s < r.length; )
118
+ r[s].fn.apply(r[s++].ctx, f);
119
119
  }
120
120
  return this;
121
121
  };
122
122
  var ti = Ct(Ct);
123
123
  function Ct(a) {
124
124
  return typeof Float32Array < "u" ? (function() {
125
- var e = new Float32Array([-0]), i = new Uint8Array(e.buffer), f = i[3] === 128;
126
- function s(r, n, c) {
127
- e[0] = r, n[c] = i[0], n[c + 1] = i[1], n[c + 2] = i[2], n[c + 3] = i[3];
125
+ var e = new Float32Array([-0]), r = new Uint8Array(e.buffer), f = r[3] === 128;
126
+ function s(i, n, c) {
127
+ e[0] = i, n[c] = r[0], n[c + 1] = r[1], n[c + 2] = r[2], n[c + 3] = r[3];
128
128
  }
129
- function u(r, n, c) {
130
- e[0] = r, n[c] = i[3], n[c + 1] = i[2], n[c + 2] = i[1], n[c + 3] = i[0];
129
+ function u(i, n, c) {
130
+ e[0] = i, n[c] = r[3], n[c + 1] = r[2], n[c + 2] = r[1], n[c + 3] = r[0];
131
131
  }
132
132
  a.writeFloatLE = f ? s : u, a.writeFloatBE = f ? u : s;
133
- function t(r, n) {
134
- return i[0] = r[n], i[1] = r[n + 1], i[2] = r[n + 2], i[3] = r[n + 3], e[0];
133
+ function t(i, n) {
134
+ return r[0] = i[n], r[1] = i[n + 1], r[2] = i[n + 2], r[3] = i[n + 3], e[0];
135
135
  }
136
- function o(r, n) {
137
- return i[3] = r[n], i[2] = r[n + 1], i[1] = r[n + 2], i[0] = r[n + 3], e[0];
136
+ function o(i, n) {
137
+ return r[3] = i[n], r[2] = i[n + 1], r[1] = i[n + 2], r[0] = i[n + 3], e[0];
138
138
  }
139
139
  a.readFloatLE = f ? t : o, a.readFloatBE = f ? o : t;
140
140
  })() : (function() {
@@ -155,70 +155,70 @@ function Ct(a) {
155
155
  else if (s < 11754943508222875e-54)
156
156
  f((o << 31 | Math.round(s / 1401298464324817e-60)) >>> 0, u, t);
157
157
  else {
158
- var r = Math.floor(Math.log(s) / Math.LN2), n = Math.round(s * Math.pow(2, -r) * 8388608) & 8388607;
159
- f((o << 31 | r + 127 << 23 | n) >>> 0, u, t);
158
+ var i = Math.floor(Math.log(s) / Math.LN2), n = Math.round(s * Math.pow(2, -i) * 8388608) & 8388607;
159
+ f((o << 31 | i + 127 << 23 | n) >>> 0, u, t);
160
160
  }
161
161
  }
162
162
  a.writeFloatLE = e.bind(null, Bt), a.writeFloatBE = e.bind(null, Pt);
163
- function i(f, s, u) {
164
- var t = f(s, u), o = (t >> 31) * 2 + 1, r = t >>> 23 & 255, n = t & 8388607;
165
- return r === 255 ? n ? NaN : o * (1 / 0) : r === 0 ? o * 1401298464324817e-60 * n : o * Math.pow(2, r - 150) * (n + 8388608);
163
+ function r(f, s, u) {
164
+ var t = f(s, u), o = (t >> 31) * 2 + 1, i = t >>> 23 & 255, n = t & 8388607;
165
+ return i === 255 ? n ? NaN : o * (1 / 0) : i === 0 ? o * 1401298464324817e-60 * n : o * Math.pow(2, i - 150) * (n + 8388608);
166
166
  }
167
- a.readFloatLE = i.bind(null, qt), a.readFloatBE = i.bind(null, jt);
167
+ a.readFloatLE = r.bind(null, qt), a.readFloatBE = r.bind(null, jt);
168
168
  })(), typeof Float64Array < "u" ? (function() {
169
- var e = new Float64Array([-0]), i = new Uint8Array(e.buffer), f = i[7] === 128;
170
- function s(r, n, c) {
171
- e[0] = r, n[c] = i[0], n[c + 1] = i[1], n[c + 2] = i[2], n[c + 3] = i[3], n[c + 4] = i[4], n[c + 5] = i[5], n[c + 6] = i[6], n[c + 7] = i[7];
169
+ var e = new Float64Array([-0]), r = new Uint8Array(e.buffer), f = r[7] === 128;
170
+ function s(i, n, c) {
171
+ e[0] = i, n[c] = r[0], n[c + 1] = r[1], n[c + 2] = r[2], n[c + 3] = r[3], n[c + 4] = r[4], n[c + 5] = r[5], n[c + 6] = r[6], n[c + 7] = r[7];
172
172
  }
173
- function u(r, n, c) {
174
- e[0] = r, n[c] = i[7], n[c + 1] = i[6], n[c + 2] = i[5], n[c + 3] = i[4], n[c + 4] = i[3], n[c + 5] = i[2], n[c + 6] = i[1], n[c + 7] = i[0];
173
+ function u(i, n, c) {
174
+ e[0] = i, n[c] = r[7], n[c + 1] = r[6], n[c + 2] = r[5], n[c + 3] = r[4], n[c + 4] = r[3], n[c + 5] = r[2], n[c + 6] = r[1], n[c + 7] = r[0];
175
175
  }
176
176
  a.writeDoubleLE = f ? s : u, a.writeDoubleBE = f ? u : s;
177
- function t(r, n) {
178
- return i[0] = r[n], i[1] = r[n + 1], i[2] = r[n + 2], i[3] = r[n + 3], i[4] = r[n + 4], i[5] = r[n + 5], i[6] = r[n + 6], i[7] = r[n + 7], e[0];
177
+ function t(i, n) {
178
+ return r[0] = i[n], r[1] = i[n + 1], r[2] = i[n + 2], r[3] = i[n + 3], r[4] = i[n + 4], r[5] = i[n + 5], r[6] = i[n + 6], r[7] = i[n + 7], e[0];
179
179
  }
180
- function o(r, n) {
181
- return i[7] = r[n], i[6] = r[n + 1], i[5] = r[n + 2], i[4] = r[n + 3], i[3] = r[n + 4], i[2] = r[n + 5], i[1] = r[n + 6], i[0] = r[n + 7], e[0];
180
+ function o(i, n) {
181
+ return r[7] = i[n], r[6] = i[n + 1], r[5] = i[n + 2], r[4] = i[n + 3], r[3] = i[n + 4], r[2] = i[n + 5], r[1] = i[n + 6], r[0] = i[n + 7], e[0];
182
182
  }
183
183
  a.readDoubleLE = f ? t : o, a.readDoubleBE = f ? o : t;
184
184
  })() : (function() {
185
- function e(f, s, u, t, o, r) {
185
+ function e(f, s, u, t, o, i) {
186
186
  var n = t < 0 ? 1 : 0;
187
187
  if (n && (t = -t), t === 0)
188
- f(0, o, r + s), f(1 / t > 0 ? (
188
+ f(0, o, i + s), f(1 / t > 0 ? (
189
189
  /* positive */
190
190
  0
191
191
  ) : (
192
192
  /* negative 0 */
193
193
  2147483648
194
- ), o, r + u);
194
+ ), o, i + u);
195
195
  else if (isNaN(t))
196
- f(0, o, r + s), f(2146959360, o, r + u);
196
+ f(0, o, i + s), f(2146959360, o, i + u);
197
197
  else if (t > 17976931348623157e292)
198
- f(0, o, r + s), f((n << 31 | 2146435072) >>> 0, o, r + u);
198
+ f(0, o, i + s), f((n << 31 | 2146435072) >>> 0, o, i + u);
199
199
  else {
200
200
  var c;
201
201
  if (t < 22250738585072014e-324)
202
- c = t / 5e-324, f(c >>> 0, o, r + s), f((n << 31 | c / 4294967296) >>> 0, o, r + u);
202
+ c = t / 5e-324, f(c >>> 0, o, i + s), f((n << 31 | c / 4294967296) >>> 0, o, i + u);
203
203
  else {
204
204
  var l = Math.floor(Math.log(t) / Math.LN2);
205
- l === 1024 && (l = 1023), c = t * Math.pow(2, -l), f(c * 4503599627370496 >>> 0, o, r + s), f((n << 31 | l + 1023 << 20 | c * 1048576 & 1048575) >>> 0, o, r + u);
205
+ l === 1024 && (l = 1023), c = t * Math.pow(2, -l), f(c * 4503599627370496 >>> 0, o, i + s), f((n << 31 | l + 1023 << 20 | c * 1048576 & 1048575) >>> 0, o, i + u);
206
206
  }
207
207
  }
208
208
  }
209
209
  a.writeDoubleLE = e.bind(null, Bt, 0, 4), a.writeDoubleBE = e.bind(null, Pt, 4, 0);
210
- function i(f, s, u, t, o) {
211
- var r = f(t, o + s), n = f(t, o + u), c = (n >> 31) * 2 + 1, l = n >>> 20 & 2047, d = 4294967296 * (n & 1048575) + r;
210
+ function r(f, s, u, t, o) {
211
+ var i = f(t, o + s), n = f(t, o + u), c = (n >> 31) * 2 + 1, l = n >>> 20 & 2047, d = 4294967296 * (n & 1048575) + i;
212
212
  return l === 2047 ? d ? NaN : c * (1 / 0) : l === 0 ? c * 5e-324 * d : c * Math.pow(2, l - 1075) * (d + 4503599627370496);
213
213
  }
214
- a.readDoubleLE = i.bind(null, qt, 0, 4), a.readDoubleBE = i.bind(null, jt, 4, 0);
214
+ a.readDoubleLE = r.bind(null, qt, 0, 4), a.readDoubleBE = r.bind(null, jt, 4, 0);
215
215
  })(), a;
216
216
  }
217
- function Bt(a, e, i) {
218
- e[i] = a & 255, e[i + 1] = a >>> 8 & 255, e[i + 2] = a >>> 16 & 255, e[i + 3] = a >>> 24;
217
+ function Bt(a, e, r) {
218
+ e[r] = a & 255, e[r + 1] = a >>> 8 & 255, e[r + 2] = a >>> 16 & 255, e[r + 3] = a >>> 24;
219
219
  }
220
- function Pt(a, e, i) {
221
- e[i] = a >>> 24, e[i + 1] = a >>> 16 & 255, e[i + 2] = a >>> 8 & 255, e[i + 3] = a & 255;
220
+ function Pt(a, e, r) {
221
+ e[r] = a >>> 24, e[r + 1] = a >>> 16 & 255, e[r + 2] = a >>> 8 & 255, e[r + 3] = a & 255;
222
222
  }
223
223
  function qt(a, e) {
224
224
  return (a[e] | a[e + 1] << 8 | a[e + 2] << 16 | a[e + 3] << 24) >>> 0;
@@ -228,7 +228,7 @@ function jt(a, e) {
228
228
  }
229
229
  var kr = {};
230
230
  (function(a) {
231
- var e = a, i = 65533;
231
+ var e = a, r = 65533;
232
232
  e.length = function(s) {
233
233
  for (var u = 0, t = 0, o = 0; o < s.length; ++o)
234
234
  t = s.charCodeAt(o), t < 128 ? u += 1 : t < 2048 ? u += 2 : (t & 64512) === 55296 && (s.charCodeAt(o + 1) & 64512) === 56320 ? (++o, u += 4) : u += 3;
@@ -236,23 +236,23 @@ var kr = {};
236
236
  }, e.read = function(s, u, t) {
237
237
  if (t - u < 1)
238
238
  return "";
239
- for (var o = null, r = [], n = 0, c, l, d, p; u < t; )
240
- c = s[u++], c <= 127 ? r[n++] = c : c >= 192 && c < 224 ? (d = (c & 31) << 6 | s[u++] & 63, r[n++] = d >= 128 ? d : i) : c >= 224 && c < 240 ? (p = (c & 15) << 12 | (s[u++] & 63) << 6 | s[u++] & 63, r[n++] = p >= 2048 ? p : i) : c >= 240 && (l = (c & 7) << 18 | (s[u++] & 63) << 12 | (s[u++] & 63) << 6 | s[u++] & 63, l < 65536 || l > 1114111 ? r[n++] = i : (l -= 65536, r[n++] = 55296 + (l >> 10), r[n++] = 56320 + (l & 1023))), n > 8191 && ((o || (o = [])).push(String.fromCharCode.apply(String, r.slice(0, n))), n = 0);
241
- return o ? (n && o.push(String.fromCharCode.apply(String, r.slice(0, n))), o.join("")) : String.fromCharCode.apply(String, r.slice(0, n));
239
+ for (var o = null, i = [], n = 0, c, l, d, p; u < t; )
240
+ c = s[u++], c <= 127 ? i[n++] = c : c >= 192 && c < 224 ? (d = (c & 31) << 6 | s[u++] & 63, i[n++] = d >= 128 ? d : r) : c >= 224 && c < 240 ? (p = (c & 15) << 12 | (s[u++] & 63) << 6 | s[u++] & 63, i[n++] = p >= 2048 ? p : r) : c >= 240 && (l = (c & 7) << 18 | (s[u++] & 63) << 12 | (s[u++] & 63) << 6 | s[u++] & 63, l < 65536 || l > 1114111 ? i[n++] = r : (l -= 65536, i[n++] = 55296 + (l >> 10), i[n++] = 56320 + (l & 1023))), n > 8191 && ((o || (o = [])).push(String.fromCharCode.apply(String, i.slice(0, n))), n = 0);
241
+ return o ? (n && o.push(String.fromCharCode.apply(String, i.slice(0, n))), o.join("")) : String.fromCharCode.apply(String, i.slice(0, n));
242
242
  }, e.write = function(s, u, t) {
243
- for (var o = t, r, n, c = 0; c < s.length; ++c)
244
- r = s.charCodeAt(c), r < 128 ? u[t++] = r : r < 2048 ? (u[t++] = r >> 6 | 192, u[t++] = r & 63 | 128) : (r & 64512) === 55296 && ((n = s.charCodeAt(c + 1)) & 64512) === 56320 ? (r = 65536 + ((r & 1023) << 10) + (n & 1023), ++c, u[t++] = r >> 18 | 240, u[t++] = r >> 12 & 63 | 128, u[t++] = r >> 6 & 63 | 128, u[t++] = r & 63 | 128) : (u[t++] = r >> 12 | 224, u[t++] = r >> 6 & 63 | 128, u[t++] = r & 63 | 128);
243
+ for (var o = t, i, n, c = 0; c < s.length; ++c)
244
+ i = s.charCodeAt(c), i < 128 ? u[t++] = i : i < 2048 ? (u[t++] = i >> 6 | 192, u[t++] = i & 63 | 128) : (i & 64512) === 55296 && ((n = s.charCodeAt(c + 1)) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n & 1023), ++c, u[t++] = i >> 18 | 240, u[t++] = i >> 12 & 63 | 128, u[t++] = i >> 6 & 63 | 128, u[t++] = i & 63 | 128) : (u[t++] = i >> 12 | 224, u[t++] = i >> 6 & 63 | 128, u[t++] = i & 63 | 128);
245
245
  return t - o;
246
246
  };
247
247
  })(kr);
248
248
  var ri = ii;
249
- function ii(a, e, i) {
250
- var f = i || 8192, s = f >>> 1, u = null, t = f;
251
- return function(r) {
252
- if (r < 1 || r > s)
253
- return a(r);
254
- t + r > f && (u = a(f), t = 0);
255
- var n = e.call(u, t, t += r);
249
+ function ii(a, e, r) {
250
+ var f = r || 8192, s = f >>> 1, u = null, t = f;
251
+ return function(i) {
252
+ if (i < 1 || i > s)
253
+ return a(i);
254
+ t + i > f && (u = a(f), t = 0);
255
+ var n = e.call(u, t, t += i);
256
256
  return t & 7 && (t = (t | 7) + 1), n;
257
257
  };
258
258
  }
@@ -264,22 +264,22 @@ function ni() {
264
264
  function e(u, t) {
265
265
  this.lo = u >>> 0, this.hi = t >>> 0;
266
266
  }
267
- var i = e.zero = new e(0, 0);
268
- i.toNumber = function() {
267
+ var r = e.zero = new e(0, 0);
268
+ r.toNumber = function() {
269
269
  return 0;
270
- }, i.zzEncode = i.zzDecode = function() {
270
+ }, r.zzEncode = r.zzDecode = function() {
271
271
  return this;
272
- }, i.length = function() {
272
+ }, r.length = function() {
273
273
  return 1;
274
274
  };
275
275
  var f = e.zeroHash = "\0\0\0\0\0\0\0\0";
276
276
  e.fromNumber = function(t) {
277
277
  if (t === 0)
278
- return i;
278
+ return r;
279
279
  var o = t < 0;
280
280
  o && (t = -t);
281
- var r = t >>> 0, n = (t - r) / 4294967296 >>> 0;
282
- return o && (n = ~n >>> 0, r = ~r >>> 0, ++r > 4294967295 && (r = 0, ++n > 4294967295 && (n = 0))), new e(r, n);
281
+ var i = t >>> 0, n = (t - i) / 4294967296 >>> 0;
282
+ return o && (n = ~n >>> 0, i = ~i >>> 0, ++i > 4294967295 && (i = 0, ++n > 4294967295 && (n = 0))), new e(i, n);
283
283
  }, e.from = function(t) {
284
284
  if (typeof t == "number")
285
285
  return e.fromNumber(t);
@@ -288,11 +288,11 @@ function ni() {
288
288
  t = a.Long.fromString(t);
289
289
  else
290
290
  return e.fromNumber(parseInt(t, 10));
291
- return t.low || t.high ? new e(t.low >>> 0, t.high >>> 0) : i;
291
+ return t.low || t.high ? new e(t.low >>> 0, t.high >>> 0) : r;
292
292
  }, e.prototype.toNumber = function(t) {
293
293
  if (!t && this.hi >>> 31) {
294
- var o = ~this.lo + 1 >>> 0, r = ~this.hi >>> 0;
295
- return o || (r = r + 1 >>> 0), -(o + r * 4294967296);
294
+ var o = ~this.lo + 1 >>> 0, i = ~this.hi >>> 0;
295
+ return o || (i = i + 1 >>> 0), -(o + i * 4294967296);
296
296
  }
297
297
  return this.lo + this.hi * 4294967296;
298
298
  }, e.prototype.toLong = function(t) {
@@ -300,7 +300,7 @@ function ni() {
300
300
  };
301
301
  var s = String.prototype.charCodeAt;
302
302
  return e.fromHash = function(t) {
303
- return t === f ? i : new e(
303
+ return t === f ? r : new e(
304
304
  (s.call(t, 0) | s.call(t, 1) << 8 | s.call(t, 2) << 16 | s.call(t, 3) << 24) >>> 0,
305
305
  (s.call(t, 4) | s.call(t, 5) << 8 | s.call(t, 6) << 16 | s.call(t, 7) << 24) >>> 0
306
306
  );
@@ -322,24 +322,24 @@ function ni() {
322
322
  var t = -(this.lo & 1);
323
323
  return this.lo = ((this.lo >>> 1 | this.hi << 31) ^ t) >>> 0, this.hi = (this.hi >>> 1 ^ t) >>> 0, this;
324
324
  }, e.prototype.length = function() {
325
- var t = this.lo, o = (this.lo >>> 28 | this.hi << 4) >>> 0, r = this.hi >>> 24;
326
- return r === 0 ? o === 0 ? t < 16384 ? t < 128 ? 1 : 2 : t < 2097152 ? 3 : 4 : o < 16384 ? o < 128 ? 5 : 6 : o < 2097152 ? 7 : 8 : r < 128 ? 9 : 10;
325
+ var t = this.lo, o = (this.lo >>> 28 | this.hi << 4) >>> 0, i = this.hi >>> 24;
326
+ return i === 0 ? o === 0 ? t < 16384 ? t < 128 ? 1 : 2 : t < 2097152 ? 3 : 4 : o < 16384 ? o < 128 ? 5 : 6 : o < 2097152 ? 7 : 8 : i < 128 ? 9 : 10;
327
327
  }, Ze;
328
328
  }
329
329
  var De = { exports: {} }, si = De.exports, Ut;
330
330
  function oi() {
331
331
  return Ut || (Ut = 1, (function(a, e) {
332
- (function(i, f) {
332
+ (function(r, f) {
333
333
  function s(u) {
334
334
  return u.default || u;
335
335
  }
336
336
  f(e), a.exports = s(e);
337
337
  })(
338
338
  typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : si,
339
- function(i) {
340
- Object.defineProperty(i, "__esModule", {
339
+ function(r) {
340
+ Object.defineProperty(r, "__esModule", {
341
341
  value: !0
342
- }), i.default = void 0;
342
+ }), r.default = void 0;
343
343
  /**
344
344
  * @license
345
345
  * Copyright 2009 The Closure Library Authors
@@ -698,10 +698,10 @@ function oi() {
698
698
  return _ ? 31 - h : h;
699
699
  }
700
700
  s.isLong = u;
701
- var o = {}, r = {};
701
+ var o = {}, i = {};
702
702
  function n(_, h) {
703
703
  var T, D, J;
704
- return h ? (_ >>>= 0, (J = 0 <= _ && _ < 256) && (D = r[_], D) ? D : (T = l(_, 0, !0), J && (r[_] = T), T)) : (_ |= 0, (J = -128 <= _ && _ < 128) && (D = o[_], D) ? D : (T = l(_, _ < 0 ? -1 : 0, !1), J && (o[_] = T), T));
704
+ return h ? (_ >>>= 0, (J = 0 <= _ && _ < 256) && (D = i[_], D) ? D : (T = l(_, 0, !0), J && (i[_] = T), T)) : (_ |= 0, (J = -128 <= _ && _ < 128) && (D = o[_], D) ? D : (T = l(_, _ < 0 ? -1 : 0, !1), J && (o[_] = T), T));
705
705
  }
706
706
  s.fromInt = n;
707
707
  function c(_, h) {
@@ -1049,7 +1049,7 @@ function oi() {
1049
1049
  }, O.toBigInt = function() {
1050
1050
  var h = BigInt(this.low >>> 0), T = BigInt(this.unsigned ? this.high >>> 0 : this.high);
1051
1051
  return T << BigInt(32) | h;
1052
- }), i.default = s;
1052
+ }), r.default = s;
1053
1053
  }
1054
1054
  );
1055
1055
  })(De, De.exports)), De.exports;
@@ -1059,10 +1059,10 @@ function me() {
1059
1059
  return Vt || (Vt = 1, (function(a) {
1060
1060
  var e = a;
1061
1061
  e.asPromise = Rr, e.base64 = Nr, e.EventEmitter = ei, e.float = ti, e.utf8 = kr, e.pool = ri, e.LongBits = ni();
1062
- function i(u) {
1062
+ function r(u) {
1063
1063
  return u === "__proto__" || u === "prototype" || u === "constructor";
1064
1064
  }
1065
- e.isUnsafeProperty = i, e.isNode = !!(typeof Ne < "u" && Ne && Ne.process && Ne.process.versions && Ne.process.versions.node), e.global = e.isNode && Ne || typeof window < "u" && window || typeof self < "u" && self || Ue, e.emptyArray = Object.freeze ? Object.freeze([]) : (
1065
+ e.isUnsafeProperty = r, e.isNode = !!(typeof Ne < "u" && Ne && Ne.process && Ne.process.versions && Ne.process.versions.node), e.global = e.isNode && Ne || typeof window < "u" && window || typeof self < "u" && self || Ue, e.emptyArray = Object.freeze ? Object.freeze([]) : (
1066
1066
  /* istanbul ignore next */
1067
1067
  []
1068
1068
  ), e.emptyObject = Object.freeze ? Object.freeze({}) : (
@@ -1082,8 +1082,8 @@ function me() {
1082
1082
  * @returns {boolean} `true` if considered to be present, otherwise `false`
1083
1083
  */
1084
1084
  e.isSet = function(t, o) {
1085
- var r = t[o];
1086
- return r != null && Object.hasOwnProperty.call(t, o) ? typeof r != "object" || (Array.isArray(r) ? r.length : Object.keys(r).length) > 0 : !1;
1085
+ var i = t[o];
1086
+ return i != null && Object.hasOwnProperty.call(t, o) ? typeof i != "object" || (Array.isArray(i) ? i.length : Object.keys(i).length) > 0 : !1;
1087
1087
  }, e.Buffer = (function() {
1088
1088
  try {
1089
1089
  var u = e.global.Buffer;
@@ -1109,17 +1109,17 @@ function me() {
1109
1109
  })(), e.key2Re = /^true|false|0|1$/, e.key32Re = /^-?(?:0|[1-9][0-9]*)$/, e.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/, e.longToHash = function(t) {
1110
1110
  return t ? e.LongBits.from(t).toHash() : e.LongBits.zeroHash;
1111
1111
  }, e.longFromHash = function(t, o) {
1112
- var r = e.LongBits.fromHash(t);
1113
- return e.Long ? e.Long.fromBits(r.lo, r.hi, o) : r.toNumber(!!o);
1112
+ var i = e.LongBits.fromHash(t);
1113
+ return e.Long ? e.Long.fromBits(i.lo, i.hi, o) : i.toNumber(!!o);
1114
1114
  };
1115
1115
  function f(u) {
1116
1116
  var t = typeof arguments[arguments.length - 1] == "boolean", o = t ? arguments.length - 1 : arguments.length;
1117
1117
  t = t && arguments[arguments.length - 1];
1118
- for (var r = 1; r < o; ++r) {
1119
- var n = arguments[r];
1118
+ for (var i = 1; i < o; ++i) {
1119
+ var n = arguments[i];
1120
1120
  if (n)
1121
1121
  for (var c = Object.keys(n), l = 0; l < c.length; ++l)
1122
- !i(c[l]) && (u[c[l]] === void 0 || !t) && (u[c[l]] = n[c[l]]);
1122
+ !r(c[l]) && (u[c[l]] === void 0 || !t) && (u[c[l]] = n[c[l]]);
1123
1123
  }
1124
1124
  return u;
1125
1125
  }
@@ -1133,12 +1133,12 @@ function me() {
1133
1133
  return t.charAt(0).toLowerCase() + t.substring(1);
1134
1134
  };
1135
1135
  function s(u) {
1136
- function t(o, r) {
1136
+ function t(o, i) {
1137
1137
  if (!(this instanceof t))
1138
- return new t(o, r);
1138
+ return new t(o, i);
1139
1139
  Object.defineProperty(this, "message", { get: function() {
1140
1140
  return o;
1141
- } }), Error.captureStackTrace ? Error.captureStackTrace(this, t) : Object.defineProperty(this, "stack", { value: new Error().stack || "" }), r && f(this, r);
1141
+ } }), Error.captureStackTrace ? Error.captureStackTrace(this, t) : Object.defineProperty(this, "stack", { value: new Error().stack || "" }), i && f(this, i);
1142
1142
  }
1143
1143
  return t.prototype = Object.create(Error.prototype, {
1144
1144
  constructor: {
@@ -1170,8 +1170,8 @@ function me() {
1170
1170
  }), t;
1171
1171
  }
1172
1172
  e.newError = s, e.ProtocolError = s("ProtocolError"), e.oneOfGetter = function(t) {
1173
- for (var o = {}, r = 0; r < t.length; ++r)
1174
- o[t[r]] = 1;
1173
+ for (var o = {}, i = 0; i < t.length; ++i)
1174
+ o[t[i]] = 1;
1175
1175
  return function() {
1176
1176
  for (var n = Object.keys(this), c = n.length - 1; c > -1; --c)
1177
1177
  if (o[n[c]] === 1 && this[n[c]] !== void 0 && this[n[c]] !== null)
@@ -1179,8 +1179,8 @@ function me() {
1179
1179
  };
1180
1180
  }, e.oneOfSetter = function(t) {
1181
1181
  return function(o) {
1182
- for (var r = 0; r < t.length; ++r)
1183
- t[r] !== o && delete this[t[r]];
1182
+ for (var i = 0; i < t.length; ++i)
1183
+ t[i] !== o && delete this[t[i]];
1184
1184
  };
1185
1185
  }, e.toJSONOptions = {
1186
1186
  longs: String,
@@ -1194,8 +1194,8 @@ function me() {
1194
1194
  return;
1195
1195
  }
1196
1196
  e._Buffer_from = u.from !== Uint8Array.from && u.from || /* istanbul ignore next */
1197
- function(o, r) {
1198
- return new u(o, r);
1197
+ function(o, i) {
1198
+ return new u(o, i);
1199
1199
  }, e._Buffer_allocUnsafe = u.allocUnsafe || /* istanbul ignore next */
1200
1200
  function(o) {
1201
1201
  return new u(o);
@@ -1203,9 +1203,9 @@ function me() {
1203
1203
  };
1204
1204
  })(Ue)), Ue;
1205
1205
  }
1206
- var vt = j, ae = me(), mt, We = ae.LongBits, Jt = ae.base64, zt = ae.utf8;
1207
- function je(a, e, i) {
1208
- this.fn = a, this.len = e, this.next = void 0, this.val = i;
1206
+ var vt = j, ue = me(), mt, We = ue.LongBits, Jt = ue.base64, zt = ue.utf8;
1207
+ function je(a, e, r) {
1208
+ this.fn = a, this.len = e, this.next = void 0, this.val = r;
1209
1209
  }
1210
1210
  function _t() {
1211
1211
  }
@@ -1216,7 +1216,7 @@ function j() {
1216
1216
  this.len = 0, this.head = new je(_t, 0, 0), this.tail = this.head, this.states = null;
1217
1217
  }
1218
1218
  var Ir = function() {
1219
- return ae.Buffer ? function() {
1219
+ return ue.Buffer ? function() {
1220
1220
  return (j.create = function() {
1221
1221
  return new mt();
1222
1222
  })();
@@ -1226,19 +1226,19 @@ var Ir = function() {
1226
1226
  };
1227
1227
  j.create = Ir();
1228
1228
  j.alloc = function(e) {
1229
- return new ae.Array(e);
1229
+ return new ue.Array(e);
1230
1230
  };
1231
- ae.Array !== Array && (j.alloc = ae.pool(j.alloc, ae.Array.prototype.subarray));
1232
- j.prototype._push = function(e, i, f) {
1233
- return this.tail = this.tail.next = new je(e, i, f), this.len += i, this;
1231
+ ue.Array !== Array && (j.alloc = ue.pool(j.alloc, ue.Array.prototype.subarray));
1232
+ j.prototype._push = function(e, r, f) {
1233
+ return this.tail = this.tail.next = new je(e, r, f), this.len += r, this;
1234
1234
  };
1235
- function wt(a, e, i) {
1236
- e[i] = a & 255;
1235
+ function wt(a, e, r) {
1236
+ e[r] = a & 255;
1237
1237
  }
1238
- function ui(a, e, i) {
1238
+ function ui(a, e, r) {
1239
1239
  for (; a > 127; )
1240
- e[i++] = a & 127 | 128, a >>>= 7;
1241
- e[i] = a;
1240
+ e[r++] = a & 127 | 128, a >>>= 7;
1241
+ e[r] = a;
1242
1242
  }
1243
1243
  function bt(a, e) {
1244
1244
  this.len = a, this.next = void 0, this.val = e;
@@ -1257,62 +1257,62 @@ j.prototype.int32 = function(e) {
1257
1257
  j.prototype.sint32 = function(e) {
1258
1258
  return this.uint32((e << 1 ^ e >> 31) >>> 0);
1259
1259
  };
1260
- function Ot(a, e, i) {
1260
+ function Ot(a, e, r) {
1261
1261
  for (var f = a.lo, s = a.hi; s; )
1262
- e[i++] = f & 127 | 128, f = (f >>> 7 | s << 25) >>> 0, s >>>= 7;
1262
+ e[r++] = f & 127 | 128, f = (f >>> 7 | s << 25) >>> 0, s >>>= 7;
1263
1263
  for (; f > 127; )
1264
- e[i++] = f & 127 | 128, f = f >>> 7;
1265
- e[i++] = f;
1264
+ e[r++] = f & 127 | 128, f = f >>> 7;
1265
+ e[r++] = f;
1266
1266
  }
1267
1267
  j.prototype.uint64 = function(e) {
1268
- var i = We.from(e);
1269
- return this._push(Ot, i.length(), i);
1268
+ var r = We.from(e);
1269
+ return this._push(Ot, r.length(), r);
1270
1270
  };
1271
1271
  j.prototype.int64 = j.prototype.uint64;
1272
1272
  j.prototype.sint64 = function(e) {
1273
- var i = We.from(e).zzEncode();
1274
- return this._push(Ot, i.length(), i);
1273
+ var r = We.from(e).zzEncode();
1274
+ return this._push(Ot, r.length(), r);
1275
1275
  };
1276
1276
  j.prototype.bool = function(e) {
1277
1277
  return this._push(wt, 1, e ? 1 : 0);
1278
1278
  };
1279
- function gt(a, e, i) {
1280
- e[i] = a & 255, e[i + 1] = a >>> 8 & 255, e[i + 2] = a >>> 16 & 255, e[i + 3] = a >>> 24;
1279
+ function gt(a, e, r) {
1280
+ e[r] = a & 255, e[r + 1] = a >>> 8 & 255, e[r + 2] = a >>> 16 & 255, e[r + 3] = a >>> 24;
1281
1281
  }
1282
1282
  j.prototype.fixed32 = function(e) {
1283
1283
  return this._push(gt, 4, e >>> 0);
1284
1284
  };
1285
1285
  j.prototype.sfixed32 = j.prototype.fixed32;
1286
1286
  j.prototype.fixed64 = function(e) {
1287
- var i = We.from(e);
1288
- return this._push(gt, 4, i.lo)._push(gt, 4, i.hi);
1287
+ var r = We.from(e);
1288
+ return this._push(gt, 4, r.lo)._push(gt, 4, r.hi);
1289
1289
  };
1290
1290
  j.prototype.sfixed64 = j.prototype.fixed64;
1291
1291
  j.prototype.float = function(e) {
1292
- return this._push(ae.float.writeFloatLE, 4, e);
1292
+ return this._push(ue.float.writeFloatLE, 4, e);
1293
1293
  };
1294
1294
  j.prototype.double = function(e) {
1295
- return this._push(ae.float.writeDoubleLE, 8, e);
1295
+ return this._push(ue.float.writeDoubleLE, 8, e);
1296
1296
  };
1297
- var fi = ae.Array.prototype.set ? function(e, i, f) {
1298
- i.set(e, f);
1299
- } : function(e, i, f) {
1297
+ var fi = ue.Array.prototype.set ? function(e, r, f) {
1298
+ r.set(e, f);
1299
+ } : function(e, r, f) {
1300
1300
  for (var s = 0; s < e.length; ++s)
1301
- i[f + s] = e[s];
1301
+ r[f + s] = e[s];
1302
1302
  };
1303
1303
  j.prototype.bytes = function(e) {
1304
- var i = e.length >>> 0;
1305
- if (!i)
1304
+ var r = e.length >>> 0;
1305
+ if (!r)
1306
1306
  return this._push(wt, 1, 0);
1307
- if (ae.isString(e)) {
1308
- var f = j.alloc(i = Jt.length(e));
1307
+ if (ue.isString(e)) {
1308
+ var f = j.alloc(r = Jt.length(e));
1309
1309
  Jt.decode(e, f, 0), e = f;
1310
1310
  }
1311
- return this.uint32(i)._push(fi, i, e);
1311
+ return this.uint32(r)._push(fi, r, e);
1312
1312
  };
1313
1313
  j.prototype.string = function(e) {
1314
- var i = zt.length(e);
1315
- return i ? this.uint32(i)._push(zt.write, i, e) : this._push(wt, 1, 0);
1314
+ var r = zt.length(e);
1315
+ return r ? this.uint32(r)._push(zt.write, r, e) : this._push(wt, 1, 0);
1316
1316
  };
1317
1317
  j.prototype.fork = function() {
1318
1318
  return this.states = new ai(this), this.head = this.tail = new je(_t, 0, 0), this.len = 0, this;
@@ -1321,13 +1321,13 @@ j.prototype.reset = function() {
1321
1321
  return this.states ? (this.head = this.states.head, this.tail = this.states.tail, this.len = this.states.len, this.states = this.states.next) : (this.head = this.tail = new je(_t, 0, 0), this.len = 0), this;
1322
1322
  };
1323
1323
  j.prototype.ldelim = function() {
1324
- var e = this.head, i = this.tail, f = this.len;
1325
- return this.reset().uint32(f), f && (this.tail.next = e.next, this.tail = i, this.len += f), this;
1324
+ var e = this.head, r = this.tail, f = this.len;
1325
+ return this.reset().uint32(f), f && (this.tail.next = e.next, this.tail = r, this.len += f), this;
1326
1326
  };
1327
1327
  j.prototype.finish = function() {
1328
- for (var e = this.head.next, i = this.constructor.alloc(this.len), f = 0; e; )
1329
- e.fn(e.val, i, f), f += e.len, e = e.next;
1330
- return i;
1328
+ for (var e = this.head.next, r = this.constructor.alloc(this.len), f = 0; e; )
1329
+ e.fn(e.val, r, f), f += e.len, e = e.next;
1330
+ return r;
1331
1331
  };
1332
1332
  j._configure = function(a) {
1333
1333
  mt = a, j.create = Ir(), mt._configure();
@@ -1339,30 +1339,30 @@ function pe() {
1339
1339
  Sr.call(this);
1340
1340
  }
1341
1341
  pe._configure = function() {
1342
- pe.alloc = be._Buffer_allocUnsafe, pe.writeBytesBuffer = be.Buffer && be.Buffer.prototype instanceof Uint8Array && be.Buffer.prototype.set.name === "set" ? function(e, i, f) {
1343
- i.set(e, f);
1344
- } : function(e, i, f) {
1342
+ pe.alloc = be._Buffer_allocUnsafe, pe.writeBytesBuffer = be.Buffer && be.Buffer.prototype instanceof Uint8Array && be.Buffer.prototype.set.name === "set" ? function(e, r, f) {
1343
+ r.set(e, f);
1344
+ } : function(e, r, f) {
1345
1345
  if (e.copy)
1346
- e.copy(i, f, 0, e.length);
1346
+ e.copy(r, f, 0, e.length);
1347
1347
  else for (var s = 0; s < e.length; )
1348
- i[f++] = e[s++];
1348
+ r[f++] = e[s++];
1349
1349
  };
1350
1350
  };
1351
1351
  pe.prototype.bytes = function(e) {
1352
1352
  be.isString(e) && (e = be._Buffer_from(e, "base64"));
1353
- var i = e.length >>> 0;
1354
- return this.uint32(i), i && this._push(pe.writeBytesBuffer, i, e), this;
1353
+ var r = e.length >>> 0;
1354
+ return this.uint32(r), r && this._push(pe.writeBytesBuffer, r, e), this;
1355
1355
  };
1356
- function ci(a, e, i) {
1357
- a.length < 40 ? be.utf8.write(a, e, i) : e.utf8Write ? e.utf8Write(a, i) : e.write(a, i);
1356
+ function ci(a, e, r) {
1357
+ a.length < 40 ? be.utf8.write(a, e, r) : e.utf8Write ? e.utf8Write(a, r) : e.write(a, r);
1358
1358
  }
1359
1359
  pe.prototype.string = function(e) {
1360
- var i = be.Buffer.byteLength(e);
1361
- return this.uint32(i), i && this._push(ci, i, e), this;
1360
+ var r = be.Buffer.byteLength(e);
1361
+ return this.uint32(r), r && this._push(ci, r, e), this;
1362
1362
  };
1363
1363
  pe._configure();
1364
- var xt = Z, ue = me(), yt, Fr = ue.LongBits, hi = ue.utf8;
1365
- function fe(a, e) {
1364
+ var xt = Z, fe = me(), yt, Fr = fe.LongBits, hi = fe.utf8;
1365
+ function ae(a, e) {
1366
1366
  return RangeError("index out of range: " + a.pos + " + " + (e || 1) + " > " + a.len);
1367
1367
  }
1368
1368
  function Z(a) {
@@ -1377,21 +1377,37 @@ var Wt = typeof Uint8Array < "u" ? function(e) {
1377
1377
  return new Z(e);
1378
1378
  throw Error("illegal buffer");
1379
1379
  }, Lr = function() {
1380
- return ue.Buffer ? function(i) {
1380
+ return fe.Buffer ? function(r) {
1381
1381
  return (Z.create = function(s) {
1382
- return ue.Buffer.isBuffer(s) ? new yt(s) : Wt(s);
1383
- })(i);
1382
+ return fe.Buffer.isBuffer(s) ? new yt(s) : Wt(s);
1383
+ })(r);
1384
1384
  } : Wt;
1385
1385
  };
1386
1386
  Z.create = Lr();
1387
- Z.prototype._slice = ue.Array.prototype.subarray || /* istanbul ignore next */
1388
- ue.Array.prototype.slice;
1387
+ Z.prototype._slice = fe.Array.prototype.subarray || /* istanbul ignore next */
1388
+ fe.Array.prototype.slice;
1389
+ function di(a) {
1390
+ for (var e = 0, r = 0; r < 4; ++r) {
1391
+ if (a.pos >= a.len)
1392
+ throw ae(a);
1393
+ var f = a.buf[a.pos++];
1394
+ if (e = (e | (f & 127) << r * 7) >>> 0, f < 128)
1395
+ return e;
1396
+ }
1397
+ throw ae(a);
1398
+ }
1389
1399
  Z.prototype.uint32 = /* @__PURE__ */ (function() {
1390
1400
  var e = 4294967295;
1391
1401
  return function() {
1402
+ if (this.len - this.pos < 5) {
1403
+ if (this.pos >= this.len)
1404
+ throw ae(this);
1405
+ if (this.buf[this.pos] >= 128)
1406
+ return di(this);
1407
+ }
1392
1408
  if (e = (this.buf[this.pos] & 127) >>> 0, this.buf[this.pos++] < 128 || (e = (e | (this.buf[this.pos] & 127) << 7) >>> 0, this.buf[this.pos++] < 128) || (e = (e | (this.buf[this.pos] & 127) << 14) >>> 0, this.buf[this.pos++] < 128) || (e = (e | (this.buf[this.pos] & 127) << 21) >>> 0, this.buf[this.pos++] < 128) || (e = (e | (this.buf[this.pos] & 15) << 28) >>> 0, this.buf[this.pos++] < 128)) return e;
1393
1409
  if ((this.pos += 5) > this.len)
1394
- throw this.pos = this.len, fe(this, 10);
1410
+ throw this.pos = this.len, ae(this, 10);
1395
1411
  return e;
1396
1412
  };
1397
1413
  })();
@@ -1414,7 +1430,7 @@ function Ge() {
1414
1430
  } else {
1415
1431
  for (; e < 3; ++e) {
1416
1432
  if (this.pos >= this.len)
1417
- throw fe(this);
1433
+ throw ae(this);
1418
1434
  if (a.lo = (a.lo | (this.buf[this.pos] & 127) << e * 7) >>> 0, this.buf[this.pos++] < 128)
1419
1435
  return a;
1420
1436
  }
@@ -1427,7 +1443,7 @@ function Ge() {
1427
1443
  } else
1428
1444
  for (; e < 5; ++e) {
1429
1445
  if (this.pos >= this.len)
1430
- throw fe(this);
1446
+ throw ae(this);
1431
1447
  if (a.hi = (a.hi | (this.buf[this.pos] & 127) << e * 7 + 3) >>> 0, this.buf[this.pos++] < 128)
1432
1448
  return a;
1433
1449
  }
@@ -1441,42 +1457,42 @@ function Je(a, e) {
1441
1457
  }
1442
1458
  Z.prototype.fixed32 = function() {
1443
1459
  if (this.pos + 4 > this.len)
1444
- throw fe(this, 4);
1460
+ throw ae(this, 4);
1445
1461
  return Je(this.buf, this.pos += 4);
1446
1462
  };
1447
1463
  Z.prototype.sfixed32 = function() {
1448
1464
  if (this.pos + 4 > this.len)
1449
- throw fe(this, 4);
1465
+ throw ae(this, 4);
1450
1466
  return Je(this.buf, this.pos += 4) | 0;
1451
1467
  };
1452
1468
  function Ht() {
1453
1469
  if (this.pos + 8 > this.len)
1454
- throw fe(this, 8);
1470
+ throw ae(this, 8);
1455
1471
  return new Fr(Je(this.buf, this.pos += 4), Je(this.buf, this.pos += 4));
1456
1472
  }
1457
1473
  Z.prototype.float = function() {
1458
1474
  if (this.pos + 4 > this.len)
1459
- throw fe(this, 4);
1460
- var e = ue.float.readFloatLE(this.buf, this.pos);
1475
+ throw ae(this, 4);
1476
+ var e = fe.float.readFloatLE(this.buf, this.pos);
1461
1477
  return this.pos += 4, e;
1462
1478
  };
1463
1479
  Z.prototype.double = function() {
1464
1480
  if (this.pos + 8 > this.len)
1465
- throw fe(this, 4);
1466
- var e = ue.float.readDoubleLE(this.buf, this.pos);
1481
+ throw ae(this, 4);
1482
+ var e = fe.float.readDoubleLE(this.buf, this.pos);
1467
1483
  return this.pos += 8, e;
1468
1484
  };
1469
1485
  Z.prototype.bytes = function() {
1470
- var e = this.uint32(), i = this.pos, f = this.pos + e;
1486
+ var e = this.uint32(), r = this.pos, f = this.pos + e;
1471
1487
  if (f > this.len)
1472
- throw fe(this, e);
1488
+ throw ae(this, e);
1473
1489
  if (this.pos += e, Array.isArray(this.buf))
1474
- return this.buf.slice(i, f);
1475
- if (i === f) {
1476
- var s = ue.Buffer;
1490
+ return this.buf.slice(r, f);
1491
+ if (r === f) {
1492
+ var s = fe.Buffer;
1477
1493
  return s ? s.alloc(0) : new this.buf.constructor(0);
1478
1494
  }
1479
- return this._slice.call(this.buf, i, f);
1495
+ return this._slice.call(this.buf, r, f);
1480
1496
  };
1481
1497
  Z.prototype.string = function() {
1482
1498
  var e = this.bytes();
@@ -1485,16 +1501,16 @@ Z.prototype.string = function() {
1485
1501
  Z.prototype.skip = function(e) {
1486
1502
  if (typeof e == "number") {
1487
1503
  if (this.pos + e > this.len)
1488
- throw fe(this, e);
1504
+ throw ae(this, e);
1489
1505
  this.pos += e;
1490
1506
  } else
1491
1507
  do
1492
1508
  if (this.pos >= this.len)
1493
- throw fe(this);
1509
+ throw ae(this);
1494
1510
  while (this.buf[this.pos++] & 128);
1495
1511
  return this;
1496
1512
  };
1497
- Z.recursionLimit = ue.recursionLimit;
1513
+ Z.recursionLimit = fe.recursionLimit;
1498
1514
  Z.prototype.skipType = function(a, e) {
1499
1515
  if (e === void 0 && (e = 0), e > Z.recursionLimit)
1500
1516
  throw Error("maximum nesting depth exceeded");
@@ -1523,11 +1539,11 @@ Z.prototype.skipType = function(a, e) {
1523
1539
  };
1524
1540
  Z._configure = function(a) {
1525
1541
  yt = a, Z.create = Lr(), yt._configure();
1526
- var e = ue.Long ? "toLong" : (
1542
+ var e = fe.Long ? "toLong" : (
1527
1543
  /* istanbul ignore next */
1528
1544
  "toNumber"
1529
1545
  );
1530
- ue.merge(Z.prototype, {
1546
+ fe.merge(Z.prototype, {
1531
1547
  int64: function() {
1532
1548
  return Ge.call(this)[e](!1);
1533
1549
  },
@@ -1545,7 +1561,7 @@ Z._configure = function(a) {
1545
1561
  }
1546
1562
  });
1547
1563
  };
1548
- var di = Ee, Mr = xt;
1564
+ var pi = Ee, Mr = xt;
1549
1565
  (Ee.prototype = Object.create(Mr.prototype)).constructor = Ee;
1550
1566
  var Zt = me();
1551
1567
  function Ee(a) {
@@ -1559,19 +1575,19 @@ Ee.prototype.string = function() {
1559
1575
  return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + e, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + e, this.len));
1560
1576
  };
1561
1577
  Ee._configure();
1562
- var Et = {}, pi = qe, At = me();
1578
+ var Et = {}, mi = qe, At = me();
1563
1579
  (qe.prototype = Object.create(At.EventEmitter.prototype)).constructor = qe;
1564
- function qe(a, e, i) {
1580
+ function qe(a, e, r) {
1565
1581
  if (typeof a != "function")
1566
1582
  throw TypeError("rpcImpl must be a function");
1567
- At.EventEmitter.call(this), this.rpcImpl = a, this.requestDelimited = !!e, this.responseDelimited = !!i;
1583
+ At.EventEmitter.call(this), this.rpcImpl = a, this.requestDelimited = !!e, this.responseDelimited = !!r;
1568
1584
  }
1569
- qe.prototype.rpcCall = function a(e, i, f, s, u) {
1585
+ qe.prototype.rpcCall = function a(e, r, f, s, u) {
1570
1586
  if (!s)
1571
1587
  throw TypeError("request must be specified");
1572
1588
  var t = this;
1573
1589
  if (!u)
1574
- return At.asPromise(a, t, e, i, f, s);
1590
+ return At.asPromise(a, t, e, r, f, s);
1575
1591
  if (!t.rpcImpl) {
1576
1592
  setTimeout(function() {
1577
1593
  u(Error("already ended"));
@@ -1581,10 +1597,10 @@ qe.prototype.rpcCall = function a(e, i, f, s, u) {
1581
1597
  try {
1582
1598
  return t.rpcImpl(
1583
1599
  e,
1584
- i[t.requestDelimited ? "encodeDelimited" : "encode"](s).finish(),
1585
- function(r, n) {
1586
- if (r)
1587
- return t.emit("error", r, e), u(r);
1600
+ r[t.requestDelimited ? "encodeDelimited" : "encode"](s).finish(),
1601
+ function(i, n) {
1602
+ if (i)
1603
+ return t.emit("error", i, e), u(i);
1588
1604
  if (n === null) {
1589
1605
  t.end(
1590
1606
  /* endedByRPC */
@@ -1613,28 +1629,28 @@ qe.prototype.end = function(e) {
1613
1629
  };
1614
1630
  (function(a) {
1615
1631
  var e = a;
1616
- e.Service = pi;
1632
+ e.Service = mi;
1617
1633
  })(Et);
1618
1634
  var Dr = /* @__PURE__ */ Object.create(null);
1619
1635
  (function(a) {
1620
1636
  var e = a;
1621
- e.build = "minimal", e.Writer = vt, e.BufferWriter = li, e.Reader = xt, e.BufferReader = di, e.util = me(), e.rpc = Et, e.roots = Dr, e.configure = i;
1622
- function i() {
1637
+ e.build = "minimal", e.Writer = vt, e.BufferWriter = li, e.Reader = xt, e.BufferReader = pi, e.util = me(), e.rpc = Et, e.roots = Dr, e.configure = r;
1638
+ function r() {
1623
1639
  e.util._configure(), e.Writer._configure(e.BufferWriter), e.Reader._configure(e.BufferReader);
1624
1640
  }
1625
- i();
1641
+ r();
1626
1642
  })(Tr);
1627
- var Ye = {}, Xe = { exports: {} }, mi = Tt, gi = /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;
1643
+ var Ye = {}, Xe = { exports: {} }, gi = Tt, yi = /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;
1628
1644
  function Tt(a, e) {
1629
1645
  typeof a == "string" && (e = a, a = void 0);
1630
- var i = [];
1646
+ var r = [];
1631
1647
  function f(u) {
1632
1648
  if (typeof u != "string") {
1633
1649
  var t = s();
1634
1650
  if (Tt.verbose && console.log("codegen: " + t), t = "return " + t, u) {
1635
- for (var o = Object.keys(u), r = new Array(o.length + 1), n = new Array(o.length), c = 0; c < o.length; )
1636
- r[c] = o[c], n[c] = u[o[c++]];
1637
- return r[c] = t, Function.apply(null, r).apply(null, n);
1651
+ for (var o = Object.keys(u), i = new Array(o.length + 1), n = new Array(o.length), c = 0; c < o.length; )
1652
+ i[c] = o[c], n[c] = u[o[c++]];
1653
+ return i[c] = t, Function.apply(null, i).apply(null, n);
1638
1654
  }
1639
1655
  return Function(t)();
1640
1656
  }
@@ -1656,42 +1672,42 @@ function Tt(a, e) {
1656
1672
  return "%";
1657
1673
  }), d !== l.length)
1658
1674
  throw Error("parameter count mismatch");
1659
- return i.push(u), f;
1675
+ return r.push(u), f;
1660
1676
  }
1661
1677
  function s(u) {
1662
- return "function " + yi(u || e) + "(" + (a && a.join(",") || "") + `){
1663
- ` + i.join(`
1678
+ return "function " + vi(u || e) + "(" + (a && a.join(",") || "") + `){
1679
+ ` + r.join(`
1664
1680
  `) + `
1665
1681
  }`;
1666
1682
  }
1667
1683
  return f.toString = s, f;
1668
1684
  }
1669
1685
  Tt.verbose = !1;
1670
- function yi(a) {
1671
- return !a || (a = String(a).replace(/[^\w$]/g, ""), !a) ? "" : (/^\d/.test(a) && (a = "_" + a), gi.test(a) ? a + "_" : a);
1686
+ function vi(a) {
1687
+ return !a || (a = String(a).replace(/[^\w$]/g, ""), !a) ? "" : (/^\d/.test(a) && (a = "_" + a), yi.test(a) ? a + "_" : a);
1672
1688
  }
1673
- const vi = {}, _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1689
+ const _i = {}, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1674
1690
  __proto__: null,
1675
- default: vi
1676
- }, Symbol.toStringTag, { value: "Module" })), Cr = /* @__PURE__ */ Kr(_i);
1691
+ default: _i
1692
+ }, Symbol.toStringTag, { value: "Module" })), Cr = /* @__PURE__ */ Kr(wi);
1677
1693
  var ke = null;
1678
1694
  try {
1679
1695
  ke = Cr, (!ke || !ke.readFile || !ke.readFileSync) && (ke = null);
1680
1696
  } catch {
1681
1697
  }
1682
- var wi = ke, bi = Ce, Oi = Rr, Ke = wi;
1683
- function Ce(a, e, i) {
1684
- return typeof e == "function" ? (i = e, e = {}) : e || (e = {}), i ? !e.xhr && Ke && Ke.readFile ? Ke.readFile(a, function(s, u) {
1685
- return s && typeof XMLHttpRequest < "u" ? Ce.xhr(a, e, i) : s ? i(s) : i(null, e.binary ? u : u.toString("utf8"));
1686
- }) : Ce.xhr(a, e, i) : Oi(Ce, this, a, e);
1698
+ var bi = ke, Oi = Ce, xi = Rr, Ke = bi;
1699
+ function Ce(a, e, r) {
1700
+ return typeof e == "function" ? (r = e, e = {}) : e || (e = {}), r ? !e.xhr && Ke && Ke.readFile ? Ke.readFile(a, function(s, u) {
1701
+ return s && typeof XMLHttpRequest < "u" ? Ce.xhr(a, e, r) : s ? r(s) : r(null, e.binary ? u : u.toString("utf8"));
1702
+ }) : Ce.xhr(a, e, r) : xi(Ce, this, a, e);
1687
1703
  }
1688
- Ce.xhr = function(e, i, f) {
1704
+ Ce.xhr = function(e, r, f) {
1689
1705
  var s = new XMLHttpRequest();
1690
1706
  s.onreadystatechange = function() {
1691
1707
  if (s.readyState === 4) {
1692
1708
  if (s.status !== 0 && s.status !== 200)
1693
1709
  return f(Error("status " + s.status));
1694
- if (i.binary) {
1710
+ if (r.binary) {
1695
1711
  var t = s.response;
1696
1712
  if (!t) {
1697
1713
  t = [];
@@ -1702,11 +1718,11 @@ Ce.xhr = function(e, i, f) {
1702
1718
  }
1703
1719
  return f(null, s.responseText);
1704
1720
  }
1705
- }, i.binary && ("overrideMimeType" in s && s.overrideMimeType("text/plain; charset=x-user-defined"), s.responseType = "arraybuffer"), s.open("GET", e), s.send();
1721
+ }, r.binary && ("overrideMimeType" in s && s.overrideMimeType("text/plain; charset=x-user-defined"), s.responseType = "arraybuffer"), s.open("GET", e), s.send();
1706
1722
  };
1707
1723
  var Br = {};
1708
1724
  (function(a) {
1709
- var e = a, i = (
1725
+ var e = a, r = (
1710
1726
  /**
1711
1727
  * Tests if the specified path is absolute.
1712
1728
  * @param {string} path Path to test
@@ -1723,15 +1739,15 @@ var Br = {};
1723
1739
  */
1724
1740
  e.normalize = function(u) {
1725
1741
  u = u.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
1726
- var t = u.split("/"), o = i(u), r = "";
1727
- o && (r = t.shift() + "/");
1742
+ var t = u.split("/"), o = r(u), i = "";
1743
+ o && (i = t.shift() + "/");
1728
1744
  for (var n = 0; n < t.length; )
1729
1745
  t[n] === ".." ? n > 0 && t[n - 1] !== ".." ? t.splice(--n, 2) : o ? t.splice(n, 1) : ++n : t[n] === "." ? t.splice(n, 1) : ++n;
1730
- return r + t.join("/");
1746
+ return i + t.join("/");
1731
1747
  }
1732
1748
  );
1733
1749
  e.resolve = function(u, t, o) {
1734
- return o || (t = f(t)), i(t) ? t : (o || (u = f(u)), (u = u.replace(/(?:\/|^)[^/]+$/, "")).length ? f(u + "/" + t) : t);
1750
+ return o || (t = f(t)), r(t) ? t : (o || (u = f(u)), (u = u.replace(/(?:\/|^)[^/]+$/, "")).length ? f(u + "/" + t) : t);
1735
1751
  };
1736
1752
  })(Br);
1737
1753
  var Pr = {};
@@ -1744,15 +1760,15 @@ try {
1744
1760
  Ie = Cr, (!Ie || !Ie.readFile || !Ie.readFileSync) && (Ie = null);
1745
1761
  } catch {
1746
1762
  }
1747
- var xi = Ie, Qe, Gt;
1763
+ var Ei = Ie, Qe, Gt;
1748
1764
  function $e() {
1749
1765
  if (Gt) return Qe;
1750
- Gt = 1, Qe = r;
1766
+ Gt = 1, Qe = i;
1751
1767
  var a = Te();
1752
- ((r.prototype = Object.create(a.prototype)).constructor = r).className = "Namespace";
1753
- var e = Ae(), i = re(), f = Me(), s, u, t;
1754
- r.fromJSON = function(l, d, p) {
1755
- return p = i.checkDepth(p), new r(l, d.options).addJSON(d.nested, p);
1768
+ ((i.prototype = Object.create(a.prototype)).constructor = i).className = "Namespace";
1769
+ var e = Ae(), r = re(), f = Me(), s, u, t;
1770
+ i.fromJSON = function(l, d, p) {
1771
+ return p = r.checkDepth(p), new i(l, d.options).addJSON(d.nested, p);
1756
1772
  };
1757
1773
  function o(c, l) {
1758
1774
  if (c && c.length) {
@@ -1761,14 +1777,14 @@ function $e() {
1761
1777
  return d;
1762
1778
  }
1763
1779
  }
1764
- r.arrayToJSON = o, r.isReservedId = function(l, d) {
1780
+ i.arrayToJSON = o, i.isReservedId = function(l, d) {
1765
1781
  if (l) {
1766
1782
  for (var p = 0; p < l.length; ++p)
1767
1783
  if (typeof l[p] != "string" && l[p][0] <= d && l[p][1] > d)
1768
1784
  return !0;
1769
1785
  }
1770
1786
  return !1;
1771
- }, r.isReservedName = function(l, d) {
1787
+ }, i.isReservedName = function(l, d) {
1772
1788
  if (l) {
1773
1789
  for (var p = 0; p < l.length; ++p)
1774
1790
  if (l[p] === d)
@@ -1776,7 +1792,7 @@ function $e() {
1776
1792
  }
1777
1793
  return !1;
1778
1794
  };
1779
- function r(c, l) {
1795
+ function i(c, l) {
1780
1796
  a.call(this, c, l), this.nested = void 0, this._nestedArray = null, this._lookupCache = /* @__PURE__ */ Object.create(null), this._needsRecursiveFeatureResolution = !0, this._needsRecursiveResolve = !0;
1781
1797
  }
1782
1798
  function n(c) {
@@ -1785,35 +1801,35 @@ function $e() {
1785
1801
  l._lookupCache = /* @__PURE__ */ Object.create(null);
1786
1802
  return c;
1787
1803
  }
1788
- return Object.defineProperty(r.prototype, "nestedArray", {
1804
+ return Object.defineProperty(i.prototype, "nestedArray", {
1789
1805
  get: function() {
1790
- return this._nestedArray || (this._nestedArray = i.toArray(this.nested));
1806
+ return this._nestedArray || (this._nestedArray = r.toArray(this.nested));
1791
1807
  }
1792
- }), r.prototype.toJSON = function(l) {
1793
- return i.toObject([
1808
+ }), i.prototype.toJSON = function(l) {
1809
+ return r.toObject([
1794
1810
  "options",
1795
1811
  this.options,
1796
1812
  "nested",
1797
1813
  o(this.nestedArray, l)
1798
1814
  ]);
1799
- }, r.prototype.addJSON = function(l, d) {
1800
- d = i.checkDepth(d);
1815
+ }, i.prototype.addJSON = function(l, d) {
1816
+ d = r.checkDepth(d);
1801
1817
  var p = this;
1802
1818
  if (l)
1803
1819
  for (var m = Object.keys(l), g = 0, I; g < m.length; ++g)
1804
1820
  I = l[m[g]], p.add(
1805
1821
  // most to least likely
1806
- (I.fields !== void 0 ? s.fromJSON : I.values !== void 0 ? t.fromJSON : I.methods !== void 0 ? u.fromJSON : I.id !== void 0 ? e.fromJSON : r.fromJSON)(m[g], I, d + 1)
1822
+ (I.fields !== void 0 ? s.fromJSON : I.values !== void 0 ? t.fromJSON : I.methods !== void 0 ? u.fromJSON : I.id !== void 0 ? e.fromJSON : i.fromJSON)(m[g], I, d + 1)
1807
1823
  );
1808
1824
  return this;
1809
- }, r.prototype.get = function(l) {
1825
+ }, i.prototype.get = function(l) {
1810
1826
  return this.nested && Object.prototype.hasOwnProperty.call(this.nested, l) ? this.nested[l] : null;
1811
- }, r.prototype.getEnum = function(l) {
1827
+ }, i.prototype.getEnum = function(l) {
1812
1828
  if (this.nested && Object.prototype.hasOwnProperty.call(this.nested, l) && this.nested[l] instanceof t)
1813
1829
  return this.nested[l].values;
1814
1830
  throw Error("no such enum: " + l);
1815
- }, r.prototype.add = function(l) {
1816
- if (!(l instanceof e && l.extend !== void 0 || l instanceof s || l instanceof f || l instanceof t || l instanceof u || l instanceof r))
1831
+ }, i.prototype.add = function(l) {
1832
+ if (!(l instanceof e && l.extend !== void 0 || l instanceof s || l instanceof f || l instanceof t || l instanceof u || l instanceof i))
1817
1833
  throw TypeError("object must be a valid nested object");
1818
1834
  if (l.name === "__proto__")
1819
1835
  return this;
@@ -1822,7 +1838,7 @@ function $e() {
1822
1838
  else {
1823
1839
  var d = this.get(l.name);
1824
1840
  if (d)
1825
- if (d instanceof r && l instanceof r && !(d instanceof s || d instanceof u)) {
1841
+ if (d instanceof i && l instanceof i && !(d instanceof s || d instanceof u)) {
1826
1842
  for (var p = d.nestedArray, m = 0; m < p.length; ++m)
1827
1843
  l.add(p[m]);
1828
1844
  this.remove(d), this.nested || (this.nested = {}), l.setOptions(d.options, !0);
@@ -1833,43 +1849,43 @@ function $e() {
1833
1849
  for (var g = this; g = g.parent; )
1834
1850
  g._needsRecursiveFeatureResolution = !0, g._needsRecursiveResolve = !0;
1835
1851
  return l.onAdd(this), n(this);
1836
- }, r.prototype.remove = function(l) {
1852
+ }, i.prototype.remove = function(l) {
1837
1853
  if (!(l instanceof a))
1838
1854
  throw TypeError("object must be a ReflectionObject");
1839
1855
  if (l.parent !== this)
1840
1856
  throw Error(l + " is not a member of " + this);
1841
1857
  return delete this.nested[l.name], Object.keys(this.nested).length || (this.nested = void 0), l.onRemove(this), n(this);
1842
- }, r.prototype.define = function(l, d) {
1843
- if (i.isString(l))
1858
+ }, i.prototype.define = function(l, d) {
1859
+ if (r.isString(l))
1844
1860
  l = l.split(".");
1845
1861
  else if (!Array.isArray(l))
1846
1862
  throw TypeError("illegal path");
1847
1863
  if (l && l.length && l[0] === "")
1848
1864
  throw Error("path must be relative");
1849
- if (l.length > i.recursionLimit)
1865
+ if (l.length > r.recursionLimit)
1850
1866
  throw Error("max depth exceeded");
1851
1867
  for (var p = this; l.length > 0; ) {
1852
1868
  var m = l.shift();
1853
1869
  if (p.nested && p.nested[m]) {
1854
- if (p = p.nested[m], !(p instanceof r))
1870
+ if (p = p.nested[m], !(p instanceof i))
1855
1871
  throw Error("path conflicts with non-namespace objects");
1856
1872
  } else
1857
- p.add(p = new r(m));
1873
+ p.add(p = new i(m));
1858
1874
  }
1859
1875
  return d && p.addJSON(d), p;
1860
- }, r.prototype.resolveAll = function() {
1876
+ }, i.prototype.resolveAll = function() {
1861
1877
  if (!this._needsRecursiveResolve) return this;
1862
1878
  this._resolveFeaturesRecursive(this._edition);
1863
1879
  var l = this.nestedArray, d = 0;
1864
1880
  for (this.resolve(); d < l.length; )
1865
- l[d] instanceof r ? l[d++].resolveAll() : l[d++].resolve();
1881
+ l[d] instanceof i ? l[d++].resolveAll() : l[d++].resolve();
1866
1882
  return this._needsRecursiveResolve = !1, this;
1867
- }, r.prototype._resolveFeaturesRecursive = function(l) {
1883
+ }, i.prototype._resolveFeaturesRecursive = function(l) {
1868
1884
  return this._needsRecursiveFeatureResolution ? (this._needsRecursiveFeatureResolution = !1, l = this._edition || l, a.prototype._resolveFeaturesRecursive.call(this, l), this.nestedArray.forEach((d) => {
1869
1885
  d._resolveFeaturesRecursive(l);
1870
1886
  }), this) : this;
1871
- }, r.prototype.lookup = function(l, d, p) {
1872
- if (typeof d == "boolean" ? (p = d, d = void 0) : d && !Array.isArray(d) && (d = [d]), i.isString(l) && l.length) {
1887
+ }, i.prototype.lookup = function(l, d, p) {
1888
+ if (typeof d == "boolean" ? (p = d, d = void 0) : d && !Array.isArray(d) && (d = [d]), r.isString(l) && l.length) {
1873
1889
  if (l === ".")
1874
1890
  return this.root;
1875
1891
  l = l.split(".");
@@ -1889,40 +1905,40 @@ function $e() {
1889
1905
  I = I.parent;
1890
1906
  }
1891
1907
  return null;
1892
- }, r.prototype._lookupImpl = function(l, d) {
1908
+ }, i.prototype._lookupImpl = function(l, d) {
1893
1909
  if (Object.prototype.hasOwnProperty.call(this._lookupCache, d))
1894
1910
  return this._lookupCache[d];
1895
1911
  var p = this.get(l[0]), m = null;
1896
1912
  if (p)
1897
- l.length === 1 ? m = p : p instanceof r && (l = l.slice(1), m = p._lookupImpl(l, l.join(".")));
1913
+ l.length === 1 ? m = p : p instanceof i && (l = l.slice(1), m = p._lookupImpl(l, l.join(".")));
1898
1914
  else
1899
1915
  for (var g = 0; g < this.nestedArray.length; ++g)
1900
- if (this._nestedArray[g] instanceof r && (p = this._nestedArray[g]._lookupImpl(l, d))) {
1916
+ if (this._nestedArray[g] instanceof i && (p = this._nestedArray[g]._lookupImpl(l, d))) {
1901
1917
  m = p;
1902
1918
  break;
1903
1919
  }
1904
1920
  return this._lookupCache[d] = m, m;
1905
- }, r.prototype.lookupType = function(l) {
1921
+ }, i.prototype.lookupType = function(l) {
1906
1922
  var d = this.lookup(l, [s]);
1907
1923
  if (!d)
1908
1924
  throw Error("no such type: " + l);
1909
1925
  return d;
1910
- }, r.prototype.lookupEnum = function(l) {
1926
+ }, i.prototype.lookupEnum = function(l) {
1911
1927
  var d = this.lookup(l, [t]);
1912
1928
  if (!d)
1913
1929
  throw Error("no such Enum '" + l + "' in " + this);
1914
1930
  return d;
1915
- }, r.prototype.lookupTypeOrEnum = function(l) {
1931
+ }, i.prototype.lookupTypeOrEnum = function(l) {
1916
1932
  var d = this.lookup(l, [s, t]);
1917
1933
  if (!d)
1918
1934
  throw Error("no such Type or Enum '" + l + "' in " + this);
1919
1935
  return d;
1920
- }, r.prototype.lookupService = function(l) {
1936
+ }, i.prototype.lookupService = function(l) {
1921
1937
  var d = this.lookup(l, [u]);
1922
1938
  if (!d)
1923
1939
  throw Error("no such Service '" + l + "' in " + this);
1924
1940
  return d;
1925
- }, r._configure = function(c, l, d) {
1941
+ }, i._configure = function(c, l, d) {
1926
1942
  s = c, u = l, t = d;
1927
1943
  }, Qe;
1928
1944
  }
@@ -1932,9 +1948,9 @@ function Rt() {
1932
1948
  Yt = 1, et = f;
1933
1949
  var a = Ae();
1934
1950
  ((f.prototype = Object.create(a.prototype)).constructor = f).className = "MapField";
1935
- var e = Le(), i = re();
1936
- function f(s, u, t, o, r, n) {
1937
- if (a.call(this, s, u, o, void 0, void 0, r, n), !i.isString(t))
1951
+ var e = Le(), r = re();
1952
+ function f(s, u, t, o, i, n) {
1953
+ if (a.call(this, s, u, o, void 0, void 0, i, n), !r.isString(t))
1938
1954
  throw TypeError("keyType must be a string");
1939
1955
  this.keyType = t, this.resolvedKeyType = null, this.map = !0;
1940
1956
  }
@@ -1942,7 +1958,7 @@ function Rt() {
1942
1958
  return new f(u, t.id, t.keyType, t.type, t.options, t.comment);
1943
1959
  }, f.prototype.toJSON = function(u) {
1944
1960
  var t = u ? !!u.keepComments : !1;
1945
- return i.toObject([
1961
+ return r.toObject([
1946
1962
  "keyType",
1947
1963
  this.keyType,
1948
1964
  "type",
@@ -1963,30 +1979,30 @@ function Rt() {
1963
1979
  throw Error("invalid key type: " + this.keyType);
1964
1980
  return a.prototype.resolve.call(this);
1965
1981
  }, f.d = function(u, t, o) {
1966
- return typeof o == "function" ? o = i.decorateType(o).name : o && typeof o == "object" && (o = i.decorateEnum(o).name), function(n, c) {
1967
- i.decorateType(n.constructor).add(new f(c, u, t, o));
1982
+ return typeof o == "function" ? o = r.decorateType(o).name : o && typeof o == "object" && (o = r.decorateEnum(o).name), function(n, c) {
1983
+ r.decorateType(n.constructor).add(new f(c, u, t, o));
1968
1984
  };
1969
1985
  }, et;
1970
1986
  }
1971
1987
  var tt, Xt;
1972
1988
  function Nt() {
1973
1989
  if (Xt) return tt;
1974
- Xt = 1, tt = i;
1990
+ Xt = 1, tt = r;
1975
1991
  var a = Te();
1976
- ((i.prototype = Object.create(a.prototype)).constructor = i).className = "Method";
1992
+ ((r.prototype = Object.create(a.prototype)).constructor = r).className = "Method";
1977
1993
  var e = re();
1978
- function i(f, s, u, t, o, r, n, c, l) {
1979
- if (e.isObject(o) ? (n = o, o = r = void 0) : e.isObject(r) && (n = r, r = void 0), !(s === void 0 || e.isString(s)))
1994
+ function r(f, s, u, t, o, i, n, c, l) {
1995
+ if (e.isObject(o) ? (n = o, o = i = void 0) : e.isObject(i) && (n = i, i = void 0), !(s === void 0 || e.isString(s)))
1980
1996
  throw TypeError("type must be a string");
1981
1997
  if (!e.isString(u))
1982
1998
  throw TypeError("requestType must be a string");
1983
1999
  if (!e.isString(t))
1984
2000
  throw TypeError("responseType must be a string");
1985
- a.call(this, f, n), this.type = s || "rpc", this.requestType = u, this.requestStream = o ? !0 : void 0, this.responseType = t, this.responseStream = r ? !0 : void 0, this.resolvedRequestType = null, this.resolvedResponseType = null, this.comment = c, this.parsedOptions = l;
2001
+ a.call(this, f, n), this.type = s || "rpc", this.requestType = u, this.requestStream = o ? !0 : void 0, this.responseType = t, this.responseStream = i ? !0 : void 0, this.resolvedRequestType = null, this.resolvedResponseType = null, this.comment = c, this.parsedOptions = l;
1986
2002
  }
1987
- return i.fromJSON = function(s, u) {
1988
- return new i(s, u.type, u.requestType, u.responseType, u.requestStream, u.responseStream, u.options, u.comment, u.parsedOptions);
1989
- }, i.prototype.toJSON = function(s) {
2003
+ return r.fromJSON = function(s, u) {
2004
+ return new r(s, u.type, u.requestType, u.responseType, u.requestStream, u.responseStream, u.options, u.comment, u.parsedOptions);
2005
+ }, r.prototype.toJSON = function(s) {
1990
2006
  var u = s ? !!s.keepComments : !1;
1991
2007
  return e.toObject([
1992
2008
  "type",
@@ -2007,7 +2023,7 @@ function Nt() {
2007
2023
  "parsedOptions",
2008
2024
  this.parsedOptions
2009
2025
  ]);
2010
- }, i.prototype.resolve = function() {
2026
+ }, r.prototype.resolve = function() {
2011
2027
  return this.resolved ? this : (this.resolvedRequestType = this.parent.lookupType(this.requestType), this.resolvedResponseType = this.parent.lookupType(this.responseType), a.prototype.resolve.call(this));
2012
2028
  }, tt;
2013
2029
  }
@@ -2017,35 +2033,35 @@ function kt() {
2017
2033
  Kt = 1, rt = s;
2018
2034
  var a = $e();
2019
2035
  ((s.prototype = Object.create(a.prototype)).constructor = s).className = "Service";
2020
- var e = Nt(), i = re(), f = Et;
2036
+ var e = Nt(), r = re(), f = Et;
2021
2037
  function s(t, o) {
2022
2038
  a.call(this, t, o), this.methods = {}, this._methodsArray = null;
2023
2039
  }
2024
- s.fromJSON = function(o, r, n) {
2025
- n = i.checkDepth(n);
2026
- var c = new s(o, r.options);
2027
- if (r.methods)
2028
- for (var l = Object.keys(r.methods), d = 0; d < l.length; ++d)
2029
- c.add(e.fromJSON(l[d], r.methods[l[d]]));
2030
- return r.nested && c.addJSON(r.nested, n), r.edition && (c._edition = r.edition), c.comment = r.comment, c._defaultEdition = "proto3", c;
2040
+ s.fromJSON = function(o, i, n) {
2041
+ n = r.checkDepth(n);
2042
+ var c = new s(o, i.options);
2043
+ if (i.methods)
2044
+ for (var l = Object.keys(i.methods), d = 0; d < l.length; ++d)
2045
+ c.add(e.fromJSON(l[d], i.methods[l[d]]));
2046
+ return i.nested && c.addJSON(i.nested, n), i.edition && (c._edition = i.edition), c.comment = i.comment, c._defaultEdition = "proto3", c;
2031
2047
  }, s.prototype.toJSON = function(o) {
2032
- var r = a.prototype.toJSON.call(this, o), n = o ? !!o.keepComments : !1;
2033
- return i.toObject([
2048
+ var i = a.prototype.toJSON.call(this, o), n = o ? !!o.keepComments : !1;
2049
+ return r.toObject([
2034
2050
  "edition",
2035
2051
  this._editionToJSON(),
2036
2052
  "options",
2037
- r && r.options || void 0,
2053
+ i && i.options || void 0,
2038
2054
  "methods",
2039
2055
  a.arrayToJSON(this.methodsArray, o) || /* istanbul ignore next */
2040
2056
  {},
2041
2057
  "nested",
2042
- r && r.nested || void 0,
2058
+ i && i.nested || void 0,
2043
2059
  "comment",
2044
2060
  n ? this.comment : void 0
2045
2061
  ]);
2046
2062
  }, Object.defineProperty(s.prototype, "methodsArray", {
2047
2063
  get: function() {
2048
- return this._methodsArray || (this._methodsArray = i.toArray(this.methods));
2064
+ return this._methodsArray || (this._methodsArray = r.toArray(this.methods));
2049
2065
  }
2050
2066
  });
2051
2067
  function u(t) {
@@ -2056,12 +2072,12 @@ function kt() {
2056
2072
  }, s.prototype.resolveAll = function() {
2057
2073
  if (!this._needsRecursiveResolve) return this;
2058
2074
  a.prototype.resolve.call(this);
2059
- for (var o = this.methodsArray, r = 0; r < o.length; ++r)
2060
- o[r].resolve();
2075
+ for (var o = this.methodsArray, i = 0; i < o.length; ++i)
2076
+ o[i].resolve();
2061
2077
  return this;
2062
2078
  }, s.prototype._resolveFeaturesRecursive = function(o) {
2063
- return this._needsRecursiveFeatureResolution ? (o = this._edition || o, a.prototype._resolveFeaturesRecursive.call(this, o), this.methodsArray.forEach((r) => {
2064
- r._resolveFeaturesRecursive(o);
2079
+ return this._needsRecursiveFeatureResolution ? (o = this._edition || o, a.prototype._resolveFeaturesRecursive.call(this, o), this.methodsArray.forEach((i) => {
2080
+ i._resolveFeaturesRecursive(o);
2065
2081
  }), this) : this;
2066
2082
  }, s.prototype.add = function(o) {
2067
2083
  if (this.get(o.name))
@@ -2074,10 +2090,10 @@ function kt() {
2074
2090
  return delete this.methods[o.name], o.parent = null, u(this);
2075
2091
  }
2076
2092
  return a.prototype.remove.call(this, o);
2077
- }, s.prototype.create = function(o, r, n) {
2078
- for (var c = new f.Service(o, r, n), l = 0, d; l < /* initializes */
2093
+ }, s.prototype.create = function(o, i, n) {
2094
+ for (var c = new f.Service(o, i, n), l = 0, d; l < /* initializes */
2079
2095
  this.methodsArray.length; ++l) {
2080
- var p = i.lcFirst((d = this._methodsArray[l]).resolve().name).replace(/[^$\w_]/g, "");
2096
+ var p = r.lcFirst((d = this._methodsArray[l]).resolve().name).replace(/[^$\w_]/g, "");
2081
2097
  c[p] = /* @__PURE__ */ (function(m, g, I) {
2082
2098
  return function(y, E) {
2083
2099
  return f.Service.prototype.rpcCall.call(this, m, g, I, y, E);
@@ -2087,22 +2103,22 @@ function kt() {
2087
2103
  return c;
2088
2104
  }, rt;
2089
2105
  }
2090
- var It = ge, Ei = me();
2106
+ var It = ge, Ai = me();
2091
2107
  function ge(a) {
2092
2108
  if (a)
2093
- for (var e = Object.keys(a), i = 0; i < e.length; ++i) {
2094
- var f = e[i];
2109
+ for (var e = Object.keys(a), r = 0; r < e.length; ++r) {
2110
+ var f = e[r];
2095
2111
  f !== "__proto__" && (this[f] = a[f]);
2096
2112
  }
2097
2113
  }
2098
2114
  ge.create = function(e) {
2099
2115
  return this.$type.create(e);
2100
2116
  };
2101
- ge.encode = function(e, i) {
2102
- return this.$type.encode(e, i);
2117
+ ge.encode = function(e, r) {
2118
+ return this.$type.encode(e, r);
2103
2119
  };
2104
- ge.encodeDelimited = function(e, i) {
2105
- return this.$type.encodeDelimited(e, i);
2120
+ ge.encodeDelimited = function(e, r) {
2121
+ return this.$type.encodeDelimited(e, r);
2106
2122
  };
2107
2123
  ge.decode = function(e) {
2108
2124
  return this.$type.decode(e);
@@ -2116,29 +2132,29 @@ ge.verify = function(e) {
2116
2132
  ge.fromObject = function(e) {
2117
2133
  return this.$type.fromObject(e);
2118
2134
  };
2119
- ge.toObject = function(e, i) {
2120
- return this.$type.toObject(e, i);
2135
+ ge.toObject = function(e, r) {
2136
+ return this.$type.toObject(e, r);
2121
2137
  };
2122
2138
  ge.prototype.toJSON = function() {
2123
- return this.$type.toObject(this, Ei.toJSONOptions);
2139
+ return this.$type.toObject(this, Ai.toJSONOptions);
2124
2140
  };
2125
2141
  var it, Qt;
2126
2142
  function qr() {
2127
2143
  if (Qt) return it;
2128
2144
  Qt = 1, it = s;
2129
- var a = ye(), e = Le(), i = re();
2145
+ var a = ye(), e = Le(), r = re();
2130
2146
  function f(u) {
2131
2147
  return "missing required '" + u.name + "'";
2132
2148
  }
2133
2149
  function s(u) {
2134
- for (var t = i.codegen(["r", "l", "e", "n"], u.name + "$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(n===undefined)n=0")("if(n>Reader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (u.fieldsArray.filter(function(d) {
2150
+ for (var t = r.codegen(["r", "l", "e", "n"], u.name + "$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(n===undefined)n=0")("if(n>Reader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c,m" + (u.fieldsArray.filter(function(d) {
2135
2151
  return d.map;
2136
- }).length ? ",k,value" : ""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"), o = 0; o < /* initializes */
2152
+ }).length ? ",k,value" : ""))("if(l===undefined)")("c=r.len")("else{")("c=r.pos+l")("if(c>r.len)")('throw RangeError("index out of range")')("l=r.len")("r.len=c")("}")("m=new this.ctor")("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"), o = 0; o < /* initializes */
2137
2153
  u.fieldsArray.length; ++o) {
2138
- var r = u._fieldsArray[o].resolve(), n = r.resolvedType instanceof a ? "int32" : r.type, c = "m" + i.safeProp(r.name);
2139
- t("case %i: {", r.id), r.map ? (t("if(%s===util.emptyObject)", c)("%s={}", c)("var c2 = r.uint32()+r.pos"), e.defaults[r.keyType] !== void 0 ? t("k=%j", e.defaults[r.keyType]) : t("k=null"), e.defaults[n] !== void 0 ? t("value=%j", e.defaults[n]) : t("value=null"), t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break", r.keyType)("case 2:"), e.basic[n] === void 0 ? t("value=types[%i].decode(r,r.uint32(),undefined,n+1)", o) : t("value=r.%s()", n), t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"), e.long[r.keyType] !== void 0 ? t('%s[typeof k==="object"?util.longToHash(k):k]=value', c) : (r.keyType === "string" && t('if(k==="__proto__")')("util.makeProp(%s,k)", c), t("%s[k]=value", c))) : r.repeated ? (t("if(!(%s&&%s.length))", c, c)("%s=[]", c), e.packed[n] !== void 0 && t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())", c, n)("}else"), e.basic[n] === void 0 ? t(r.delimited ? "%s.push(types[%i].decode(r,undefined,((t&~7)|4),n+1))" : "%s.push(types[%i].decode(r,r.uint32(),undefined,n+1))", c, o) : t("%s.push(r.%s())", c, n)) : e.basic[n] === void 0 ? t(r.delimited ? "%s=types[%i].decode(r,undefined,((t&~7)|4),n+1)" : "%s=types[%i].decode(r,r.uint32(),undefined,n+1)", c, o) : t("%s=r.%s()", c, n), t("break")("}");
2154
+ var i = u._fieldsArray[o].resolve(), n = i.resolvedType instanceof a ? "int32" : i.type, c = "m" + r.safeProp(i.name);
2155
+ t("case %i: {", i.id), i.map ? (t("if(%s===util.emptyObject)", c)("%s={}", c)("var c2=r.uint32()+r.pos")("if(c2>r.len)")('throw RangeError("index out of range")')("r.len=c2"), e.defaults[i.keyType] !== void 0 ? t("k=%j", e.defaults[i.keyType]) : t("k=null"), e.defaults[n] !== void 0 ? t("value=%j", e.defaults[n]) : t("value=null"), t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break", i.keyType)("case 2:"), e.basic[n] === void 0 ? t("value=types[%i].decode(r,r.uint32(),undefined,n+1)", o) : t("value=r.%s()", n), t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}")("if(r.pos!==c2)")('throw RangeError("index out of range")')("r.len=c"), e.long[i.keyType] !== void 0 ? t('%s[typeof k==="object"?util.longToHash(k):k]=value', c) : (i.keyType === "string" && t('if(k==="__proto__")')("util.makeProp(%s,k)", c), t("%s[k]=value", c))) : i.repeated ? (t("if(!(%s&&%s.length))", c, c)("%s=[]", c), e.packed[n] !== void 0 && t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("if(c2>r.len)")('throw RangeError("index out of range")')("r.len=c2")("while(r.pos<c2)")("%s.push(r.%s())", c, n)("if(r.pos!==c2)")('throw RangeError("index out of range")')("r.len=c")("}else"), e.basic[n] === void 0 ? t(i.delimited ? "%s.push(types[%i].decode(r,undefined,((t&~7)|4),n+1))" : "%s.push(types[%i].decode(r,r.uint32(),undefined,n+1))", c, o) : t("%s.push(r.%s())", c, n)) : e.basic[n] === void 0 ? t(i.delimited ? "%s=types[%i].decode(r,undefined,((t&~7)|4),n+1)" : "%s=types[%i].decode(r,r.uint32(),undefined,n+1)", c, o) : t("%s=r.%s()", c, n), t("break")("}");
2140
2156
  }
2141
- for (t("default:")("r.skipType(t&7,n)")("break")("}")("}"), o = 0; o < u._fieldsArray.length; ++o) {
2157
+ for (t("default:")("r.skipType(t&7,n)")("break")("}")("}"), t("if(l!==undefined){")("if(r.pos!==c)")('throw RangeError("index out of range")')("r.len=l")("}"), o = 0; o < u._fieldsArray.length; ++o) {
2142
2158
  var l = u._fieldsArray[o];
2143
2159
  l.required && t("if(!Object.hasOwnProperty.call(m,%j))", l.name)("throw util.ProtocolError(%j,{instance:m})", f(l));
2144
2160
  }
@@ -2151,17 +2167,17 @@ function jr() {
2151
2167
  if (er) return nt;
2152
2168
  er = 1, nt = u;
2153
2169
  var a = ye(), e = re();
2154
- function i(t, o) {
2170
+ function r(t, o) {
2155
2171
  return t.name + ": " + o + (t.repeated && o !== "array" ? "[]" : t.map && o !== "object" ? "{k:" + t.keyType + "}" : "") + " expected";
2156
2172
  }
2157
- function f(t, o, r, n) {
2173
+ function f(t, o, i, n) {
2158
2174
  if (o.resolvedType)
2159
2175
  if (o.resolvedType instanceof a) {
2160
- t("switch(%s){", n)("default:")("return%j", i(o, "enum value"));
2176
+ t("switch(%s){", n)("default:")("return%j", r(o, "enum value"));
2161
2177
  for (var c = Object.keys(o.resolvedType.values), l = 0; l < c.length; ++l) t("case %i:", o.resolvedType.values[c[l]]);
2162
2178
  t("break")("}");
2163
2179
  } else
2164
- t("{")("var e=types[%i].verify(%s,n+1);", r, n)("if(e)")("return%j+e", o.name + ".")("}");
2180
+ t("{")("var e=types[%i].verify(%s,n+1);", i, n)("if(e)")("return%j+e", o.name + ".")("}");
2165
2181
  else
2166
2182
  switch (o.type) {
2167
2183
  case "int32":
@@ -2169,63 +2185,63 @@ function jr() {
2169
2185
  case "sint32":
2170
2186
  case "fixed32":
2171
2187
  case "sfixed32":
2172
- t("if(!util.isInteger(%s))", n)("return%j", i(o, "integer"));
2188
+ t("if(!util.isInteger(%s))", n)("return%j", r(o, "integer"));
2173
2189
  break;
2174
2190
  case "int64":
2175
2191
  case "uint64":
2176
2192
  case "sint64":
2177
2193
  case "fixed64":
2178
2194
  case "sfixed64":
2179
- t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))", n, n, n, n)("return%j", i(o, "integer|Long"));
2195
+ t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))", n, n, n, n)("return%j", r(o, "integer|Long"));
2180
2196
  break;
2181
2197
  case "float":
2182
2198
  case "double":
2183
- t('if(typeof %s!=="number")', n)("return%j", i(o, "number"));
2199
+ t('if(typeof %s!=="number")', n)("return%j", r(o, "number"));
2184
2200
  break;
2185
2201
  case "bool":
2186
- t('if(typeof %s!=="boolean")', n)("return%j", i(o, "boolean"));
2202
+ t('if(typeof %s!=="boolean")', n)("return%j", r(o, "boolean"));
2187
2203
  break;
2188
2204
  case "string":
2189
- t("if(!util.isString(%s))", n)("return%j", i(o, "string"));
2205
+ t("if(!util.isString(%s))", n)("return%j", r(o, "string"));
2190
2206
  break;
2191
2207
  case "bytes":
2192
- t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))', n, n, n)("return%j", i(o, "buffer"));
2208
+ t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))', n, n, n)("return%j", r(o, "buffer"));
2193
2209
  break;
2194
2210
  }
2195
2211
  return t;
2196
2212
  }
2197
- function s(t, o, r) {
2213
+ function s(t, o, i) {
2198
2214
  switch (o.keyType) {
2199
2215
  case "int32":
2200
2216
  case "uint32":
2201
2217
  case "sint32":
2202
2218
  case "fixed32":
2203
2219
  case "sfixed32":
2204
- t("if(!util.key32Re.test(%s))", r)("return%j", i(o, "integer key"));
2220
+ t("if(!util.key32Re.test(%s))", i)("return%j", r(o, "integer key"));
2205
2221
  break;
2206
2222
  case "int64":
2207
2223
  case "uint64":
2208
2224
  case "sint64":
2209
2225
  case "fixed64":
2210
2226
  case "sfixed64":
2211
- t("if(!util.key64Re.test(%s))", r)("return%j", i(o, "integer|Long key"));
2227
+ t("if(!util.key64Re.test(%s))", i)("return%j", r(o, "integer|Long key"));
2212
2228
  break;
2213
2229
  case "bool":
2214
- t("if(!util.key2Re.test(%s))", r)("return%j", i(o, "boolean key"));
2230
+ t("if(!util.key2Re.test(%s))", i)("return%j", r(o, "boolean key"));
2215
2231
  break;
2216
2232
  }
2217
2233
  return t;
2218
2234
  }
2219
2235
  function u(t) {
2220
- var o = e.codegen(["m", "n"], t.name + "$verify")('if(typeof m!=="object"||m===null)')("return%j", "object expected")("if(n===undefined)n=0")("if(n>util.recursionLimit)")("return%j", "maximum nesting depth exceeded"), r = t.oneofsArray, n = {};
2221
- r.length && o("var p={}");
2236
+ var o = e.codegen(["m", "n"], t.name + "$verify")('if(typeof m!=="object"||m===null)')("return%j", "object expected")("if(n===undefined)n=0")("if(n>util.recursionLimit)")("return%j", "maximum nesting depth exceeded"), i = t.oneofsArray, n = {};
2237
+ i.length && o("var p={}");
2222
2238
  for (var c = 0; c < /* initializes */
2223
2239
  t.fieldsArray.length; ++c) {
2224
2240
  var l = t._fieldsArray[c].resolve(), d = "m" + e.safeProp(l.name);
2225
2241
  if (l.optional && o("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", d, l.name), l.map)
2226
- o("if(!util.isObject(%s))", d)("return%j", i(l, "object"))("var k=Object.keys(%s)", d)("for(var i=0;i<k.length;++i){"), s(o, l, "k[i]"), f(o, l, c, d + "[k[i]]")("}");
2242
+ o("if(!util.isObject(%s))", d)("return%j", r(l, "object"))("var k=Object.keys(%s)", d)("for(var i=0;i<k.length;++i){"), s(o, l, "k[i]"), f(o, l, c, d + "[k[i]]")("}");
2227
2243
  else if (l.repeated)
2228
- o("if(!Array.isArray(%s))", d)("return%j", i(l, "array"))("for(var i=0;i<%s.length;++i){", d), f(o, l, c, d + "[i]")("}");
2244
+ o("if(!Array.isArray(%s))", d)("return%j", r(l, "array"))("for(var i=0;i<%s.length;++i){", d), f(o, l, c, d + "[i]")("}");
2229
2245
  else {
2230
2246
  if (l.partOf) {
2231
2247
  var p = e.safeProp(l.partOf.name);
@@ -2242,16 +2258,16 @@ function jr() {
2242
2258
  var st = {}, tr;
2243
2259
  function $r() {
2244
2260
  return tr || (tr = 1, (function(a) {
2245
- var e = a, i = ye(), f = re();
2246
- function s(t, o, r, n) {
2261
+ var e = a, r = ye(), f = re();
2262
+ function s(t, o, i, n) {
2247
2263
  var c = !1;
2248
2264
  if (o.resolvedType)
2249
- if (o.resolvedType instanceof i) {
2265
+ if (o.resolvedType instanceof r) {
2250
2266
  t("switch(d%s){", n);
2251
2267
  for (var l = o.resolvedType.values, d = Object.keys(l), p = 0; p < d.length; ++p)
2252
2268
  l[d[p]] === o.typeDefault && !c && (t("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}', n, n, n), o.repeated || t("break"), c = !0), t("case%j:", d[p])("case %i:", l[d[p]])("m%s=%j", n, l[d[p]])("break");
2253
2269
  t("}");
2254
- } else t("if(!util.isObject(d%s))", n)("throw TypeError(%j)", o.fullName + ": object expected")("m%s=types[%i].fromObject(d%s,n+1)", n, r, n);
2270
+ } else t("if(!util.isObject(d%s))", n)("throw TypeError(%j)", o.fullName + ": object expected")("m%s=types[%i].fromObject(d%s,n+1)", n, i, n);
2255
2271
  else {
2256
2272
  var m = !1;
2257
2273
  switch (o.type) {
@@ -2291,11 +2307,11 @@ function $r() {
2291
2307
  return t;
2292
2308
  }
2293
2309
  e.fromObject = function(o) {
2294
- var r = o.fieldsArray, n = f.codegen(["d", "n"], o.name + "$fromObject")("if(d instanceof this.ctor)")("return d");
2295
- if (!r.length) return n("return new this.ctor");
2310
+ var i = o.fieldsArray, n = f.codegen(["d", "n"], o.name + "$fromObject")("if(d instanceof this.ctor)")("return d");
2311
+ if (!i.length) return n("return new this.ctor");
2296
2312
  n("if(!util.isObject(d))")("throw TypeError(%j)", o.fullName + ": object expected")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")'), n("var m=new this.ctor");
2297
- for (var c = 0; c < r.length; ++c) {
2298
- var l = r[c].resolve(), d = f.safeProp(l.name);
2313
+ for (var c = 0; c < i.length; ++c) {
2314
+ var l = i[c].resolve(), d = f.safeProp(l.name);
2299
2315
  l.map ? (n("if(d%s){", d)("if(!util.isObject(d%s))", d)("throw TypeError(%j)", l.fullName + ": object expected")("m%s={}", d)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", d), n('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])", d), s(
2300
2316
  n,
2301
2317
  l,
@@ -2308,19 +2324,19 @@ function $r() {
2308
2324
  /* not sorted */
2309
2325
  c,
2310
2326
  d + "[i]"
2311
- )("}")("}")) : (l.resolvedType instanceof i || n("if(d%s!=null){", d), s(
2327
+ )("}")("}")) : (l.resolvedType instanceof r || n("if(d%s!=null){", d), s(
2312
2328
  n,
2313
2329
  l,
2314
2330
  /* not sorted */
2315
2331
  c,
2316
2332
  d
2317
- ), l.resolvedType instanceof i || n("}"));
2333
+ ), l.resolvedType instanceof r || n("}"));
2318
2334
  }
2319
2335
  return n("return m");
2320
2336
  };
2321
- function u(t, o, r, n) {
2337
+ function u(t, o, i, n) {
2322
2338
  if (o.resolvedType)
2323
- o.resolvedType instanceof i ? t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", n, r, n, n, r, n, n) : t("d%s=types[%i].toObject(m%s,o,q+1)", n, r, n);
2339
+ o.resolvedType instanceof r ? t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", n, i, n, n, i, n, n) : t("d%s=types[%i].toObject(m%s,o,q+1)", n, i, n);
2324
2340
  else {
2325
2341
  var c = !1;
2326
2342
  switch (o.type) {
@@ -2348,11 +2364,11 @@ function $r() {
2348
2364
  return t;
2349
2365
  }
2350
2366
  e.toObject = function(o) {
2351
- var r = o.fieldsArray.slice().sort(f.compareFieldsById);
2352
- if (!r.length)
2367
+ var i = o.fieldsArray.slice().sort(f.compareFieldsById);
2368
+ if (!i.length)
2353
2369
  return f.codegen()("return {}");
2354
- for (var n = f.codegen(["m", "o", "q"], o.name + "$toObject")("if(!o)")("o={}")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")')("var d={}"), c = [], l = [], d = [], p = 0; p < r.length; ++p)
2355
- r[p].partOf || (r[p].resolve().repeated ? c : r[p].map ? l : d).push(r[p]);
2370
+ for (var n = f.codegen(["m", "o", "q"], o.name + "$toObject")("if(!o)")("o={}")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")')("var d={}"), c = [], l = [], d = [], p = 0; p < i.length; ++p)
2371
+ i[p].partOf || (i[p].resolve().repeated ? c : i[p].map ? l : d).push(i[p]);
2356
2372
  if (c.length) {
2357
2373
  for (n("if(o.arrays||o.defaults){"), p = 0; p < c.length; ++p) n("d%s=[]", f.safeProp(c[p].name));
2358
2374
  n("}");
@@ -2364,7 +2380,7 @@ function $r() {
2364
2380
  if (d.length) {
2365
2381
  for (n("if(o.defaults){"), p = 0; p < d.length; ++p) {
2366
2382
  var m = d[p], g = f.safeProp(m.name);
2367
- if (m.resolvedType instanceof i) n("d%s=o.enums===String?%j:%j", g, m.resolvedType.valuesById[m.typeDefault], m.typeDefault);
2383
+ if (m.resolvedType instanceof r) n("d%s=o.enums===String?%j:%j", g, m.resolvedType.valuesById[m.typeDefault], m.typeDefault);
2368
2384
  else if (m.long) n("if(util.Long){")("var n=new util.Long(%i,%i,%j)", m.typeDefault.low, m.typeDefault.high, m.typeDefault.unsigned)('d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():typeof BigInt!=="undefined"&&o.longs===BigInt?n.toBigInt():n', g)("}else")('d%s=o.longs===String?%j:typeof BigInt!=="undefined"&&o.longs===BigInt?BigInt(%j):%i', g, m.typeDefault.toString(), m.typeDefault.toString(), m.typeDefault.toNumber());
2369
2385
  else if (m.bytes) {
2370
2386
  var I = Array.prototype.slice.call(m.typeDefault);
@@ -2374,8 +2390,8 @@ function $r() {
2374
2390
  n("}");
2375
2391
  }
2376
2392
  var R = !1;
2377
- for (p = 0; p < r.length; ++p) {
2378
- var m = r[p], y = o._fieldsArray.indexOf(m), g = f.safeProp(m.name);
2393
+ for (p = 0; p < i.length; ++p) {
2394
+ var m = i[p], y = o._fieldsArray.indexOf(m), g = f.safeProp(m.name);
2379
2395
  m.map ? (R || (R = !0, n("var ks2")), n("if(m%s&&(ks2=Object.keys(m%s)).length){", g, g)("d%s={}", g)("for(var j=0;j<ks2.length;++j){"), n('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])", g), u(
2380
2396
  n,
2381
2397
  m,
@@ -2402,16 +2418,18 @@ function $r() {
2402
2418
  }
2403
2419
  var St = {};
2404
2420
  (function(a) {
2405
- var e = a, i = It, f = me();
2421
+ var e = a, r = It, f = me();
2406
2422
  e[".google.protobuf.Any"] = {
2407
2423
  fromObject: function(s, u) {
2424
+ if (u === void 0 && (u = 0), u > f.recursionLimit)
2425
+ throw Error("max depth exceeded");
2408
2426
  if (s && s["@type"]) {
2409
2427
  var t = s["@type"].substring(s["@type"].lastIndexOf("/") + 1), o = this.lookup(t);
2410
2428
  if (o) {
2411
- var r = s["@type"].charAt(0) === "." ? s["@type"].slice(1) : s["@type"];
2412
- return r.indexOf("/") === -1 && (r = "/" + r), this.create({
2413
- type_url: r,
2414
- value: o.encode(o.fromObject(s, u === void 0 ? 1 : u + 1)).finish()
2429
+ var i = s["@type"].charAt(0) === "." ? s["@type"].slice(1) : s["@type"];
2430
+ return i.indexOf("/") === -1 && (i = "/" + i), this.create({
2431
+ type_url: i,
2432
+ value: o.encode(o.fromObject(s, u + 1)).finish()
2415
2433
  });
2416
2434
  }
2417
2435
  }
@@ -2420,15 +2438,15 @@ var St = {};
2420
2438
  toObject: function(s, u, t) {
2421
2439
  if (t === void 0 && (t = 0), t > f.recursionLimit)
2422
2440
  throw Error("max depth exceeded");
2423
- var o = "type.googleapis.com/", r = "", n = "";
2441
+ var o = "type.googleapis.com/", i = "", n = "";
2424
2442
  if (u && u.json && s.type_url && s.value) {
2425
- n = s.type_url.substring(s.type_url.lastIndexOf("/") + 1), r = s.type_url.substring(0, s.type_url.lastIndexOf("/") + 1);
2443
+ n = s.type_url.substring(s.type_url.lastIndexOf("/") + 1), i = s.type_url.substring(0, s.type_url.lastIndexOf("/") + 1);
2426
2444
  var c = this.lookup(n);
2427
2445
  c && (s = c.decode(s.value, void 0, void 0, t + 1));
2428
2446
  }
2429
- if (!(s instanceof this.ctor) && s instanceof i) {
2447
+ if (!(s instanceof this.ctor) && s instanceof r) {
2430
2448
  var l = s.$type.toObject(s, u, t + 1), d = s.$type.fullName[0] === "." ? s.$type.fullName.slice(1) : s.$type.fullName;
2431
- return r === "" && (r = o), n = r + d, l["@type"] = n, l;
2449
+ return i === "" && (i = o), n = i + d, l["@type"] = n, l;
2432
2450
  }
2433
2451
  return this.toObject(s, u, t);
2434
2452
  }
@@ -2440,7 +2458,7 @@ function Ft() {
2440
2458
  rr = 1, ot = g;
2441
2459
  var a = $e();
2442
2460
  ((g.prototype = Object.create(a.prototype)).constructor = g).className = "Type";
2443
- var e = ye(), i = Me(), f = Ae(), s = Rt(), u = kt(), t = It, o = xt, r = vt, n = re(), c = Ur(), l = qr(), d = jr(), p = $r(), m = St;
2461
+ var e = ye(), r = Me(), f = Ae(), s = Rt(), u = kt(), t = It, o = xt, i = vt, n = re(), c = Ur(), l = qr(), d = jr(), p = $r(), m = St;
2444
2462
  function g(R, y) {
2445
2463
  R = R.replace(/\W/g, ""), a.call(this, R, y), this.fields = {}, this.oneofs = void 0, this.extensions = void 0, this.reserved = void 0, this.group = void 0, this._fieldsById = null, this._fieldsArray = null, this._oneofsArray = null, this._ctor = null;
2446
2464
  }
@@ -2532,7 +2550,7 @@ function Ft() {
2532
2550
  );
2533
2551
  if (E.oneofs)
2534
2552
  for (k = Object.keys(E.oneofs), L = 0; L < k.length; ++L)
2535
- N.add(i.fromJSON(k[L], E.oneofs[k[L]]));
2553
+ N.add(r.fromJSON(k[L], E.oneofs[k[L]]));
2536
2554
  if (E.nested)
2537
2555
  for (k = Object.keys(E.nested), L = 0; L < k.length; ++L) {
2538
2556
  var z = E.nested[k[L]];
@@ -2598,7 +2616,7 @@ function Ft() {
2598
2616
  throw Error("name '" + y.name + "' is reserved in " + this);
2599
2617
  return y.name === "__proto__" ? this : (y.parent && y.parent.remove(y), this.fields[y.name] = y, y.message = this, y.onAdd(this), I(this));
2600
2618
  }
2601
- if (y instanceof i) {
2619
+ if (y instanceof r) {
2602
2620
  if (y.name.charAt(0) === "$")
2603
2621
  throw Error("name '" + y.name + "' is reserved in " + this);
2604
2622
  return y.name === "__proto__" ? this : (this.oneofs || (this.oneofs = {}), this.oneofs[y.name] = y, y.onAdd(this), I(this));
@@ -2610,7 +2628,7 @@ function Ft() {
2610
2628
  throw Error(y + " is not a member of " + this);
2611
2629
  return delete this.fields[y.name], y.parent = null, y.onRemove(this), I(this);
2612
2630
  }
2613
- if (y instanceof i) {
2631
+ if (y instanceof r) {
2614
2632
  if (!this.oneofs || this.oneofs[y.name] !== y)
2615
2633
  throw Error(y + " is not a member of " + this);
2616
2634
  return delete this.oneofs[y.name], y.parent = null, y.onRemove(this), I(this);
@@ -2627,7 +2645,7 @@ function Ft() {
2627
2645
  this.fieldsArray.length; ++v)
2628
2646
  E.push(this._fieldsArray[v].resolve().resolvedType);
2629
2647
  this.encode = c(this)({
2630
- Writer: r,
2648
+ Writer: i,
2631
2649
  types: E,
2632
2650
  util: n
2633
2651
  }), this.decode = l(this)({
@@ -2673,19 +2691,19 @@ function Ft() {
2673
2691
  var at, ir;
2674
2692
  function Lt() {
2675
2693
  if (ir) return at;
2676
- ir = 1, at = r;
2694
+ ir = 1, at = i;
2677
2695
  var a = $e();
2678
- ((r.prototype = Object.create(a.prototype)).constructor = r).className = "Root";
2679
- var e = Ae(), i = ye(), f = Me(), s = re(), u, t, o;
2680
- function r(d) {
2696
+ ((i.prototype = Object.create(a.prototype)).constructor = i).className = "Root";
2697
+ var e = Ae(), r = ye(), f = Me(), s = re(), u, t, o;
2698
+ function i(d) {
2681
2699
  a.call(this, "", d), this.deferred = [], this.files = [], this._edition = "proto2", this._fullyQualifiedObjects = {};
2682
2700
  }
2683
- r.fromJSON = function(p, m, g) {
2684
- return g = s.checkDepth(g), m || (m = new r()), p.options && m.setOptions(p.options), m.addJSON(p.nested, g).resolveAll();
2685
- }, r.prototype.resolvePath = s.path.resolve, r.prototype.fetch = s.fetch;
2701
+ i.fromJSON = function(p, m, g) {
2702
+ return g = s.checkDepth(g), m || (m = new i()), p.options && m.setOptions(p.options), m.addJSON(p.nested, g).resolveAll();
2703
+ }, i.prototype.resolvePath = s.path.resolve, i.prototype.fetch = s.fetch;
2686
2704
  function n() {
2687
2705
  }
2688
- r.prototype.load = function d(p, m, g) {
2706
+ i.prototype.load = function d(p, m, g) {
2689
2707
  typeof m == "function" && (g = m, m = void 0);
2690
2708
  var I = this;
2691
2709
  if (!g)
@@ -2764,11 +2782,11 @@ function Lt() {
2764
2782
  for (var L = 0, z; L < p.length; ++L)
2765
2783
  (z = I.resolvePath("", p[L])) && N(z);
2766
2784
  return R ? (I.resolveAll(), I) : (k || y(null, I), I);
2767
- }, r.prototype.loadSync = function(p, m) {
2785
+ }, i.prototype.loadSync = function(p, m) {
2768
2786
  if (!s.isNode)
2769
2787
  throw Error("not supported");
2770
2788
  return this.load(p, m, n);
2771
- }, r.prototype.resolveAll = function() {
2789
+ }, i.prototype.resolveAll = function() {
2772
2790
  if (!this._needsRecursiveResolve) return this;
2773
2791
  if (this.deferred.length)
2774
2792
  throw Error("unresolvable extensions: " + this.deferred.map(function(p) {
@@ -2785,12 +2803,12 @@ function Lt() {
2785
2803
  }
2786
2804
  return !1;
2787
2805
  }
2788
- return r.prototype._handleAdd = function(p) {
2806
+ return i.prototype._handleAdd = function(p) {
2789
2807
  if (p instanceof e)
2790
2808
  /* an extension field (implies not part of a oneof) */
2791
2809
  p.extend !== void 0 && /* not already handled */
2792
2810
  !p.extensionField && (l(this, p) || this.deferred.push(p));
2793
- else if (p instanceof i)
2811
+ else if (p instanceof r)
2794
2812
  c.test(p.name) && (p.parent[p.name] = p.values);
2795
2813
  else if (!(p instanceof f)) {
2796
2814
  if (p instanceof u)
@@ -2801,8 +2819,8 @@ function Lt() {
2801
2819
  this._handleAdd(p._nestedArray[g]);
2802
2820
  c.test(p.name) && (p.parent[p.name] = p);
2803
2821
  }
2804
- (p instanceof u || p instanceof i || p instanceof e) && (this._fullyQualifiedObjects[p.fullName] = p);
2805
- }, r.prototype._handleRemove = function(p) {
2822
+ (p instanceof u || p instanceof r || p instanceof e) && (this._fullyQualifiedObjects[p.fullName] = p);
2823
+ }, i.prototype._handleRemove = function(p) {
2806
2824
  if (p instanceof e) {
2807
2825
  if (
2808
2826
  /* an extension field */
@@ -2817,7 +2835,7 @@ function Lt() {
2817
2835
  var m = this.deferred.indexOf(p);
2818
2836
  m > -1 && this.deferred.splice(m, 1);
2819
2837
  }
2820
- } else if (p instanceof i)
2838
+ } else if (p instanceof r)
2821
2839
  c.test(p.name) && delete p.parent[p.name];
2822
2840
  else if (p instanceof a) {
2823
2841
  for (var g = 0; g < /* initializes */
@@ -2826,7 +2844,7 @@ function Lt() {
2826
2844
  c.test(p.name) && delete p.parent[p.name];
2827
2845
  }
2828
2846
  delete this._fullyQualifiedObjects[p.fullName];
2829
- }, r._configure = function(d, p, m) {
2847
+ }, i._configure = function(d, p, m) {
2830
2848
  u = d, t = p, o = m;
2831
2849
  }, at;
2832
2850
  }
@@ -2834,55 +2852,55 @@ var nr;
2834
2852
  function re() {
2835
2853
  if (nr) return Xe.exports;
2836
2854
  nr = 1;
2837
- var a = Xe.exports = me(), e = Dr, i, f;
2838
- a.codegen = mi, a.fetch = bi, a.path = Br, a.patterns = Pr;
2855
+ var a = Xe.exports = me(), e = Dr, r, f;
2856
+ a.codegen = gi, a.fetch = Oi, a.path = Br, a.patterns = Pr;
2839
2857
  var s = a.patterns.reservedRe;
2840
- a.fs = xi, a.checkDepth = function(r) {
2841
- if (r === void 0 && (r = 0), r > a.recursionLimit)
2858
+ a.fs = Ei, a.checkDepth = function(i) {
2859
+ if (i === void 0 && (i = 0), i > a.recursionLimit)
2842
2860
  throw Error("max depth exceeded");
2843
- return r;
2844
- }, a.toArray = function(r) {
2845
- if (r) {
2846
- for (var n = Object.keys(r), c = new Array(n.length), l = 0; l < n.length; )
2847
- c[l] = r[n[l++]];
2861
+ return i;
2862
+ }, a.toArray = function(i) {
2863
+ if (i) {
2864
+ for (var n = Object.keys(i), c = new Array(n.length), l = 0; l < n.length; )
2865
+ c[l] = i[n[l++]];
2848
2866
  return c;
2849
2867
  }
2850
2868
  return [];
2851
- }, a.toObject = function(r) {
2852
- for (var n = {}, c = 0; c < r.length; ) {
2853
- var l = r[c++], d = r[c++];
2869
+ }, a.toObject = function(i) {
2870
+ for (var n = {}, c = 0; c < i.length; ) {
2871
+ var l = i[c++], d = i[c++];
2854
2872
  d !== void 0 && (n[l] = d);
2855
2873
  }
2856
2874
  return n;
2857
- }, a.isReserved = function(r) {
2858
- return s.test(r);
2859
- }, a.safeProp = function(r) {
2860
- return !/^[$\w_]+$/.test(r) || s.test(r) ? "[" + JSON.stringify(r) + "]" : "." + r;
2861
- }, a.ucFirst = function(r) {
2862
- return r.charAt(0).toUpperCase() + r.substring(1);
2875
+ }, a.isReserved = function(i) {
2876
+ return s.test(i);
2877
+ }, a.safeProp = function(i) {
2878
+ return !/^[$\w_]+$/.test(i) || s.test(i) ? "[" + JSON.stringify(i) + "]" : "." + i;
2879
+ }, a.ucFirst = function(i) {
2880
+ return i.charAt(0).toUpperCase() + i.substring(1);
2863
2881
  };
2864
2882
  var u = /_([a-z])/g;
2865
- a.camelCase = function(r) {
2866
- return r.substring(0, 1) + r.substring(1).replace(u, function(n, c) {
2883
+ a.camelCase = function(i) {
2884
+ return i.substring(0, 1) + i.substring(1).replace(u, function(n, c) {
2867
2885
  return c.toUpperCase();
2868
2886
  });
2869
- }, a.compareFieldsById = function(r, n) {
2870
- return r.id - n.id;
2871
- }, a.decorateType = function(r, n) {
2872
- if (r.$type)
2873
- return n && r.$type.name !== n && (a.decorateRoot.remove(r.$type), r.$type.name = n, a.decorateRoot.add(r.$type)), r.$type;
2874
- i || (i = Ft());
2875
- var c = new i(n || r.name);
2876
- return a.decorateRoot.add(c), c.ctor = r, Object.defineProperty(r, "$type", { value: c, enumerable: !1 }), Object.defineProperty(r.prototype, "$type", { value: c, enumerable: !1 }), c;
2887
+ }, a.compareFieldsById = function(i, n) {
2888
+ return i.id - n.id;
2889
+ }, a.decorateType = function(i, n) {
2890
+ if (i.$type)
2891
+ return n && i.$type.name !== n && (a.decorateRoot.remove(i.$type), i.$type.name = n, a.decorateRoot.add(i.$type)), i.$type;
2892
+ r || (r = Ft());
2893
+ var c = new r(n || i.name);
2894
+ return a.decorateRoot.add(c), c.ctor = i, Object.defineProperty(i, "$type", { value: c, enumerable: !1 }), Object.defineProperty(i.prototype, "$type", { value: c, enumerable: !1 }), c;
2877
2895
  };
2878
2896
  var t = 0;
2879
- return a.decorateEnum = function(r) {
2880
- if (r.$type)
2881
- return r.$type;
2897
+ return a.decorateEnum = function(i) {
2898
+ if (i.$type)
2899
+ return i.$type;
2882
2900
  f || (f = ye());
2883
- var n = new f("Enum" + t++, r);
2884
- return a.decorateRoot.add(n), Object.defineProperty(r, "$type", { value: n, enumerable: !1 }), n;
2885
- }, a.setProperty = function(r, n, c, l) {
2901
+ var n = new f("Enum" + t++, i);
2902
+ return a.decorateRoot.add(n), Object.defineProperty(i, "$type", { value: n, enumerable: !1 }), n;
2903
+ }, a.setProperty = function(i, n, c, l) {
2886
2904
  function d(p, m, g) {
2887
2905
  var I = m.shift();
2888
2906
  if (a.isUnsafeProperty(I))
@@ -2897,13 +2915,13 @@ function re() {
2897
2915
  }
2898
2916
  return p;
2899
2917
  }
2900
- if (typeof r != "object")
2918
+ if (typeof i != "object")
2901
2919
  throw TypeError("dst must be an object");
2902
2920
  if (!n)
2903
2921
  throw TypeError("path must be specified");
2904
2922
  if (n = n.split("."), n.length > a.recursionLimit)
2905
2923
  throw Error("max depth exceeded");
2906
- return d(r, n, c);
2924
+ return d(i, n, c);
2907
2925
  }, Object.defineProperty(a, "decorateRoot", {
2908
2926
  get: function() {
2909
2927
  return e.decorated || (e.decorated = new (Lt())());
@@ -2913,7 +2931,7 @@ function re() {
2913
2931
  var sr;
2914
2932
  function Le() {
2915
2933
  return sr || (sr = 1, (function(a) {
2916
- var e = a, i = re(), f = [
2934
+ var e = a, r = re(), f = [
2917
2935
  "double",
2918
2936
  // 0
2919
2937
  "float",
@@ -2946,9 +2964,9 @@ function Le() {
2946
2964
  // 14
2947
2965
  ];
2948
2966
  function s(u, t) {
2949
- var o = 0, r = /* @__PURE__ */ Object.create(null);
2950
- for (t |= 0; o < u.length; ) r[f[o + t]] = u[o++];
2951
- return r;
2967
+ var o = 0, i = /* @__PURE__ */ Object.create(null);
2968
+ for (t |= 0; o < u.length; ) i[f[o + t]] = u[o++];
2969
+ return i;
2952
2970
  }
2953
2971
  e.basic = s([
2954
2972
  /* double */
@@ -3011,7 +3029,7 @@ function Le() {
3011
3029
  /* string */
3012
3030
  "",
3013
3031
  /* bytes */
3014
- i.emptyArray,
3032
+ r.emptyArray,
3015
3033
  /* message */
3016
3034
  null
3017
3035
  ]), e.long = s([
@@ -3086,13 +3104,13 @@ function Ae() {
3086
3104
  or = 1, ut = t;
3087
3105
  var a = Te();
3088
3106
  ((t.prototype = Object.create(a.prototype)).constructor = t).className = "Field";
3089
- var e = ye(), i = Le(), f = re(), s, u = /^required|optional|repeated$/;
3090
- t.fromJSON = function(r, n) {
3091
- var c = new t(r, n.id, n.type, n.rule, n.extend, n.options, n.comment);
3107
+ var e = ye(), r = Le(), f = re(), s, u = /^required|optional|repeated$/;
3108
+ t.fromJSON = function(i, n) {
3109
+ var c = new t(i, n.id, n.type, n.rule, n.extend, n.options, n.comment);
3092
3110
  return n.edition && (c._edition = n.edition), c._defaultEdition = "proto3", c;
3093
3111
  };
3094
- function t(o, r, n, c, l, d, p) {
3095
- if (f.isObject(c) ? (p = l, d = c, c = l = void 0) : f.isObject(l) && (p = d, d = l, l = void 0), a.call(this, o, d), !f.isInteger(r) || r < 0)
3112
+ function t(o, i, n, c, l, d, p) {
3113
+ if (f.isObject(c) ? (p = l, d = c, c = l = void 0) : f.isObject(l) && (p = d, d = l, l = void 0), a.call(this, o, d), !f.isInteger(i) || i < 0)
3096
3114
  throw TypeError("id must be a non-negative integer");
3097
3115
  if (!f.isString(n))
3098
3116
  throw TypeError("type must be a string");
@@ -3100,7 +3118,7 @@ function Ae() {
3100
3118
  throw TypeError("rule must be a string rule");
3101
3119
  if (l !== void 0 && !f.isString(l))
3102
3120
  throw TypeError("extend must be a string");
3103
- c === "proto3_optional" && (c = "optional"), this.rule = c && c !== "optional" ? c : void 0, this.type = n, this.id = r, this.extend = l || void 0, this.repeated = c === "repeated", this.map = !1, this.message = null, this.partOf = null, this.typeDefault = null, this.defaultValue = null, this.long = f.Long ? i.long[n] !== void 0 : (
3121
+ c === "proto3_optional" && (c = "optional"), this.rule = c && c !== "optional" ? c : void 0, this.type = n, this.id = i, this.extend = l || void 0, this.repeated = c === "repeated", this.map = !1, this.message = null, this.partOf = null, this.typeDefault = null, this.defaultValue = null, this.long = f.Long ? r.long[n] !== void 0 : (
3104
3122
  /* istanbul ignore next */
3105
3123
  !1
3106
3124
  ), this.bytes = n === "bytes", this.resolvedType = null, this.extensionField = null, this.declaringField = null, this.comment = p;
@@ -3127,10 +3145,10 @@ function Ae() {
3127
3145
  this.declaringField || this.extensionField || // extensions
3128
3146
  this._features.field_presence !== "IMPLICIT";
3129
3147
  }
3130
- }), t.prototype.setOption = function(r, n, c) {
3131
- return a.prototype.setOption.call(this, r, n, c);
3132
- }, t.prototype.toJSON = function(r) {
3133
- var n = r ? !!r.keepComments : !1;
3148
+ }), t.prototype.setOption = function(i, n, c) {
3149
+ return a.prototype.setOption.call(this, i, n, c);
3150
+ }, t.prototype.toJSON = function(i) {
3151
+ var n = i ? !!i.keepComments : !1;
3134
3152
  return f.toObject([
3135
3153
  "edition",
3136
3154
  this._editionToJSON(),
@@ -3150,30 +3168,30 @@ function Ae() {
3150
3168
  }, t.prototype.resolve = function() {
3151
3169
  if (this.resolved)
3152
3170
  return this;
3153
- if ((this.typeDefault = i.defaults[this.type]) === void 0 ? (this.resolvedType = (this.declaringField ? this.declaringField.parent : this.parent).lookupTypeOrEnum(this.type), this.resolvedType instanceof s ? this.typeDefault = null : this.typeDefault = this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]) : this.options && this.options.proto3_optional && (this.typeDefault = null), this.options && this.options.default != null && (this.typeDefault = this.options.default, this.resolvedType instanceof e && typeof this.typeDefault == "string" && (this.typeDefault = this.resolvedType.values[this.typeDefault])), this.options && (this.options.packed !== void 0 && this.resolvedType && !(this.resolvedType instanceof e) && delete this.options.packed, Object.keys(this.options).length || (this.options = void 0)), this.long)
3171
+ if ((this.typeDefault = r.defaults[this.type]) === void 0 ? (this.resolvedType = (this.declaringField ? this.declaringField.parent : this.parent).lookupTypeOrEnum(this.type), this.resolvedType instanceof s ? this.typeDefault = null : this.typeDefault = this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]) : this.options && this.options.proto3_optional && (this.typeDefault = null), this.options && this.options.default != null && (this.typeDefault = this.options.default, this.resolvedType instanceof e && typeof this.typeDefault == "string" && (this.typeDefault = this.resolvedType.values[this.typeDefault])), this.options && (this.options.packed !== void 0 && this.resolvedType && !(this.resolvedType instanceof e) && delete this.options.packed, Object.keys(this.options).length || (this.options = void 0)), this.long)
3154
3172
  this.typeDefault = f.Long.fromNumber(this.typeDefault, this.type === "uint64" || this.type === "fixed64"), Object.freeze && Object.freeze(this.typeDefault);
3155
3173
  else if (this.bytes && typeof this.typeDefault == "string") {
3156
- var r;
3157
- f.base64.test(this.typeDefault) ? f.base64.decode(this.typeDefault, r = f.newBuffer(f.base64.length(this.typeDefault)), 0) : f.utf8.write(this.typeDefault, r = f.newBuffer(f.utf8.length(this.typeDefault)), 0), this.typeDefault = r;
3174
+ var i;
3175
+ f.base64.test(this.typeDefault) ? f.base64.decode(this.typeDefault, i = f.newBuffer(f.base64.length(this.typeDefault)), 0) : f.utf8.write(this.typeDefault, i = f.newBuffer(f.utf8.length(this.typeDefault)), 0), this.typeDefault = i;
3158
3176
  }
3159
3177
  return this.map ? this.defaultValue = f.emptyObject : this.repeated ? this.defaultValue = f.emptyArray : this.defaultValue = this.typeDefault, this.parent instanceof s && (this.parent.ctor.prototype[this.name] = this.defaultValue), a.prototype.resolve.call(this);
3160
- }, t.prototype._inferLegacyProtoFeatures = function(r) {
3161
- if (r !== "proto2" && r !== "proto3")
3178
+ }, t.prototype._inferLegacyProtoFeatures = function(i) {
3179
+ if (i !== "proto2" && i !== "proto3")
3162
3180
  return {};
3163
3181
  var n = {};
3164
- if (this.rule === "required" && (n.field_presence = "LEGACY_REQUIRED"), this.parent && i.defaults[this.type] === void 0) {
3182
+ if (this.rule === "required" && (n.field_presence = "LEGACY_REQUIRED"), this.parent && r.defaults[this.type] === void 0) {
3165
3183
  var c = this.parent.get(this.type.split(".").pop());
3166
3184
  c && c instanceof s && c.group && (n.message_encoding = "DELIMITED");
3167
3185
  }
3168
3186
  return this.getOption("packed") === !0 ? n.repeated_field_encoding = "PACKED" : this.getOption("packed") === !1 && (n.repeated_field_encoding = "EXPANDED"), n;
3169
- }, t.prototype._resolveFeatures = function(r) {
3170
- return a.prototype._resolveFeatures.call(this, this._edition || r);
3171
- }, t.d = function(r, n, c, l) {
3187
+ }, t.prototype._resolveFeatures = function(i) {
3188
+ return a.prototype._resolveFeatures.call(this, this._edition || i);
3189
+ }, t.d = function(i, n, c, l) {
3172
3190
  return typeof n == "function" ? n = f.decorateType(n).name : n && typeof n == "object" && (n = f.decorateEnum(n).name), function(p, m) {
3173
- f.decorateType(p.constructor).add(new t(m, r, n, c, { default: l }));
3191
+ f.decorateType(p.constructor).add(new t(m, i, n, c, { default: l }));
3174
3192
  };
3175
- }, t._configure = function(r) {
3176
- s = r;
3193
+ }, t._configure = function(i) {
3194
+ s = i;
3177
3195
  }, ut;
3178
3196
  }
3179
3197
  var ft, ar;
@@ -3182,17 +3200,17 @@ function Me() {
3182
3200
  ar = 1, ft = f;
3183
3201
  var a = Te();
3184
3202
  ((f.prototype = Object.create(a.prototype)).constructor = f).className = "OneOf";
3185
- var e = Ae(), i = re();
3186
- function f(u, t, o, r) {
3203
+ var e = Ae(), r = re();
3204
+ function f(u, t, o, i) {
3187
3205
  if (Array.isArray(t) || (o = t, t = void 0), a.call(this, u, o), !(t === void 0 || Array.isArray(t)))
3188
3206
  throw TypeError("fieldNames must be an Array");
3189
- this.oneof = t || [], this.fieldsArray = [], this.comment = r;
3207
+ this.oneof = t || [], this.fieldsArray = [], this.comment = i;
3190
3208
  }
3191
3209
  f.fromJSON = function(t, o) {
3192
3210
  return new f(t, o.oneof, o.options, o.comment);
3193
3211
  }, f.prototype.toJSON = function(t) {
3194
3212
  var o = t ? !!t.keepComments : !1;
3195
- return i.toObject([
3213
+ return r.toObject([
3196
3214
  "options",
3197
3215
  this.options,
3198
3216
  "oneof",
@@ -3219,14 +3237,14 @@ function Me() {
3219
3237
  return this.fieldsArray.splice(o, 1), o = this.oneof.indexOf(t.name), o > -1 && this.oneof.splice(o, 1), t.partOf = null, this;
3220
3238
  }, f.prototype.onAdd = function(t) {
3221
3239
  a.prototype.onAdd.call(this, t);
3222
- for (var o = this, r = 0; r < this.oneof.length; ++r) {
3223
- var n = t.get(this.oneof[r]);
3240
+ for (var o = this, i = 0; i < this.oneof.length; ++i) {
3241
+ var n = t.get(this.oneof[i]);
3224
3242
  n && !n.partOf && (n.partOf = o, o.fieldsArray.push(n));
3225
3243
  }
3226
3244
  s(this);
3227
3245
  }, f.prototype.onRemove = function(t) {
3228
- for (var o = 0, r; o < this.fieldsArray.length; ++o)
3229
- (r = this.fieldsArray[o]).parent && r.parent.remove(r);
3246
+ for (var o = 0, i; o < this.fieldsArray.length; ++o)
3247
+ (i = this.fieldsArray[o]).parent && i.parent.remove(i);
3230
3248
  a.prototype.onRemove.call(this, t);
3231
3249
  }, Object.defineProperty(f.prototype, "isProto3Optional", {
3232
3250
  get: function() {
@@ -3239,9 +3257,9 @@ function Me() {
3239
3257
  for (var t = new Array(arguments.length), o = 0; o < arguments.length; )
3240
3258
  t[o] = arguments[o++];
3241
3259
  return function(n, c) {
3242
- i.decorateType(n.constructor).add(new f(c, t)), Object.defineProperty(n, c, {
3243
- get: i.oneOfGetter(t),
3244
- set: i.oneOfSetter(t)
3260
+ r.decorateType(n.constructor).add(new f(c, t)), Object.defineProperty(n, c, {
3261
+ get: r.oneOfGetter(t),
3262
+ set: r.oneOfSetter(t)
3245
3263
  });
3246
3264
  };
3247
3265
  }, ft;
@@ -3251,13 +3269,13 @@ function Te() {
3251
3269
  if (ur) return lt;
3252
3270
  ur = 1, lt = t, t.className = "ReflectionObject";
3253
3271
  const a = Me();
3254
- var e = re(), i, f = { enum_type: "OPEN", field_presence: "EXPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" }, s = { enum_type: "CLOSED", field_presence: "EXPLICIT", json_format: "LEGACY_BEST_EFFORT", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "EXPANDED", utf8_validation: "NONE" }, u = { enum_type: "OPEN", field_presence: "IMPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" };
3255
- function t(o, r) {
3272
+ var e = re(), r, f = { enum_type: "OPEN", field_presence: "EXPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" }, s = { enum_type: "CLOSED", field_presence: "EXPLICIT", json_format: "LEGACY_BEST_EFFORT", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "EXPANDED", utf8_validation: "NONE" }, u = { enum_type: "OPEN", field_presence: "IMPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" };
3273
+ function t(o, i) {
3256
3274
  if (!e.isString(o))
3257
3275
  throw TypeError("name must be a string");
3258
- if (r && !e.isObject(r))
3276
+ if (i && !e.isObject(i))
3259
3277
  throw TypeError("options must be an object");
3260
- this.options = r, this.parsedOptions = null, this.name = o, this._edition = null, this._defaultEdition = "proto2", this._features = {}, this._featuresResolved = !1, this.parent = null, this.resolved = !1, this.comment = null, this.filename = null;
3278
+ this.options = i, this.parsedOptions = null, this.name = o, this._edition = null, this._defaultEdition = "proto2", this._features = {}, this._featuresResolved = !1, this.parent = null, this.resolved = !1, this.comment = null, this.filename = null;
3261
3279
  }
3262
3280
  return Object.defineProperties(t.prototype, {
3263
3281
  /**
@@ -3281,44 +3299,44 @@ function Te() {
3281
3299
  */
3282
3300
  fullName: {
3283
3301
  get: function() {
3284
- for (var o = [this.name], r = this.parent; r; )
3285
- o.unshift(r.name), r = r.parent;
3302
+ for (var o = [this.name], i = this.parent; i; )
3303
+ o.unshift(i.name), i = i.parent;
3286
3304
  return o.join(".");
3287
3305
  }
3288
3306
  }
3289
3307
  }), t.prototype.toJSON = /* istanbul ignore next */
3290
3308
  function() {
3291
3309
  throw Error();
3292
- }, t.prototype.onAdd = function(r) {
3293
- this.parent && this.parent !== r && this.parent.remove(this), this.parent = r, this.resolved = !1;
3294
- var n = r.root;
3295
- n instanceof i && n._handleAdd(this);
3296
- }, t.prototype.onRemove = function(r) {
3297
- var n = r.root;
3298
- n instanceof i && n._handleRemove(this), this.parent = null, this.resolved = !1;
3310
+ }, t.prototype.onAdd = function(i) {
3311
+ this.parent && this.parent !== i && this.parent.remove(this), this.parent = i, this.resolved = !1;
3312
+ var n = i.root;
3313
+ n instanceof r && n._handleAdd(this);
3314
+ }, t.prototype.onRemove = function(i) {
3315
+ var n = i.root;
3316
+ n instanceof r && n._handleRemove(this), this.parent = null, this.resolved = !1;
3299
3317
  }, t.prototype.resolve = function() {
3300
- return this.resolved ? this : (this.root instanceof i && (this.resolved = !0), this);
3301
- }, t.prototype._resolveFeaturesRecursive = function(r) {
3302
- return this._resolveFeatures(this._edition || r);
3303
- }, t.prototype._resolveFeatures = function(r) {
3318
+ return this.resolved ? this : (this.root instanceof r && (this.resolved = !0), this);
3319
+ }, t.prototype._resolveFeaturesRecursive = function(i) {
3320
+ return this._resolveFeatures(this._edition || i);
3321
+ }, t.prototype._resolveFeatures = function(i) {
3304
3322
  if (!this._featuresResolved) {
3305
3323
  var n = {};
3306
- if (!r)
3324
+ if (!i)
3307
3325
  throw new Error("Unknown edition for " + this.fullName);
3308
3326
  var c = e.merge(
3309
3327
  {},
3310
3328
  this.options && this.options.features,
3311
- this._inferLegacyProtoFeatures(r)
3329
+ this._inferLegacyProtoFeatures(i)
3312
3330
  );
3313
3331
  if (this._edition) {
3314
- if (r === "proto2")
3332
+ if (i === "proto2")
3315
3333
  n = Object.assign({}, s);
3316
- else if (r === "proto3")
3334
+ else if (i === "proto3")
3317
3335
  n = Object.assign({}, u);
3318
- else if (r === "2023")
3336
+ else if (i === "2023")
3319
3337
  n = Object.assign({}, f);
3320
3338
  else
3321
- throw new Error("Unknown edition: " + r);
3339
+ throw new Error("Unknown edition: " + i);
3322
3340
  this._features = e.merge(n, c), this._featuresResolved = !0;
3323
3341
  return;
3324
3342
  }
@@ -3334,43 +3352,43 @@ function Te() {
3334
3352
  }
3335
3353
  }, t.prototype._inferLegacyProtoFeatures = function() {
3336
3354
  return {};
3337
- }, t.prototype.getOption = function(r) {
3355
+ }, t.prototype.getOption = function(i) {
3338
3356
  if (this.options)
3339
- return this.options[r];
3340
- }, t.prototype.setOption = function(r, n, c) {
3341
- return r === "__proto__" ? this : (this.options || (this.options = {}), /^features\./.test(r) ? e.setProperty(this.options, r, n, c) : (!c || this.options[r] === void 0) && (this.getOption(r) !== n && (this.resolved = !1), this.options[r] = n), this);
3342
- }, t.prototype.setParsedOption = function(r, n, c) {
3343
- if (r === "__proto__")
3357
+ return this.options[i];
3358
+ }, t.prototype.setOption = function(i, n, c) {
3359
+ return i === "__proto__" ? this : (this.options || (this.options = {}), /^features\./.test(i) ? e.setProperty(this.options, i, n, c) : (!c || this.options[i] === void 0) && (this.getOption(i) !== n && (this.resolved = !1), this.options[i] = n), this);
3360
+ }, t.prototype.setParsedOption = function(i, n, c) {
3361
+ if (i === "__proto__")
3344
3362
  return this;
3345
3363
  this.parsedOptions || (this.parsedOptions = []);
3346
3364
  var l = this.parsedOptions;
3347
3365
  if (c) {
3348
3366
  var d = l.find(function(g) {
3349
- return Object.prototype.hasOwnProperty.call(g, r);
3367
+ return Object.prototype.hasOwnProperty.call(g, i);
3350
3368
  });
3351
3369
  if (d) {
3352
- var p = d[r];
3370
+ var p = d[i];
3353
3371
  e.setProperty(p, c, n);
3354
3372
  } else
3355
- d = {}, d[r] = e.setProperty({}, c, n), l.push(d);
3373
+ d = {}, d[i] = e.setProperty({}, c, n), l.push(d);
3356
3374
  } else {
3357
3375
  var m = {};
3358
- m[r] = n, l.push(m);
3376
+ m[i] = n, l.push(m);
3359
3377
  }
3360
3378
  return this;
3361
- }, t.prototype.setOptions = function(r, n) {
3362
- if (r)
3363
- for (var c = Object.keys(r), l = 0; l < c.length; ++l)
3364
- this.setOption(c[l], r[c[l]], n);
3379
+ }, t.prototype.setOptions = function(i, n) {
3380
+ if (i)
3381
+ for (var c = Object.keys(i), l = 0; l < c.length; ++l)
3382
+ this.setOption(c[l], i[c[l]], n);
3365
3383
  return this;
3366
3384
  }, t.prototype.toString = function() {
3367
- var r = this.constructor.className, n = this.fullName;
3368
- return n.length ? r + " " + n : r;
3385
+ var i = this.constructor.className, n = this.fullName;
3386
+ return n.length ? i + " " + n : i;
3369
3387
  }, t.prototype._editionToJSON = function() {
3370
3388
  if (!(!this._edition || this._edition === "proto3"))
3371
3389
  return this._edition;
3372
3390
  }, t._configure = function(o) {
3373
- i = o;
3391
+ r = o;
3374
3392
  }, lt;
3375
3393
  }
3376
3394
  var ct, fr;
@@ -3379,25 +3397,25 @@ function ye() {
3379
3397
  fr = 1, ct = f;
3380
3398
  var a = Te();
3381
3399
  ((f.prototype = Object.create(a.prototype)).constructor = f).className = "Enum";
3382
- var e = $e(), i = re();
3383
- function f(s, u, t, o, r, n) {
3400
+ var e = $e(), r = re();
3401
+ function f(s, u, t, o, i, n) {
3384
3402
  if (a.call(this, s, t), u && typeof u != "object")
3385
3403
  throw TypeError("values must be an object");
3386
- if (this.valuesById = {}, this.values = Object.create(this.valuesById), this.comment = o, this.comments = r || {}, this.valuesOptions = n, this._valuesFeatures = {}, this.reserved = void 0, u)
3404
+ if (this.valuesById = {}, this.values = Object.create(this.valuesById), this.comment = o, this.comments = i || {}, this.valuesOptions = n, this._valuesFeatures = {}, this.reserved = void 0, u)
3387
3405
  for (var c = Object.keys(u), l = 0; l < c.length; ++l)
3388
3406
  c[l] !== "__proto__" && typeof u[c[l]] == "number" && (this.valuesById[this.values[c[l]] = u[c[l]]] = c[l]);
3389
3407
  }
3390
3408
  return f.prototype._resolveFeatures = function(u) {
3391
3409
  return u = this._edition || u, a.prototype._resolveFeatures.call(this, u), Object.keys(this.values).forEach((t) => {
3392
- var o = i.merge({}, this._features);
3393
- this._valuesFeatures[t] = i.merge(o, this.valuesOptions && this.valuesOptions[t] && this.valuesOptions[t].features || {});
3410
+ var o = r.merge({}, this._features);
3411
+ this._valuesFeatures[t] = r.merge(o, this.valuesOptions && this.valuesOptions[t] && this.valuesOptions[t].features || {});
3394
3412
  }), this;
3395
3413
  }, f.fromJSON = function(u, t) {
3396
3414
  var o = new f(u, t.values, t.options, t.comment, t.comments);
3397
3415
  return o.reserved = t.reserved, t.edition && (o._edition = t.edition), o._defaultEdition = "proto3", o;
3398
3416
  }, f.prototype.toJSON = function(u) {
3399
3417
  var t = u ? !!u.keepComments : !1;
3400
- return i.toObject([
3418
+ return r.toObject([
3401
3419
  "edition",
3402
3420
  this._editionToJSON(),
3403
3421
  "options",
@@ -3413,10 +3431,10 @@ function ye() {
3413
3431
  "comments",
3414
3432
  t ? this.comments : void 0
3415
3433
  ]);
3416
- }, f.prototype.add = function(u, t, o, r) {
3417
- if (!i.isString(u))
3434
+ }, f.prototype.add = function(u, t, o, i) {
3435
+ if (!r.isString(u))
3418
3436
  throw TypeError("name must be a string");
3419
- if (!i.isInteger(t))
3437
+ if (!r.isInteger(t))
3420
3438
  throw TypeError("id must be an integer");
3421
3439
  if (u === "__proto__")
3422
3440
  return this;
@@ -3432,9 +3450,9 @@ function ye() {
3432
3450
  this.values[u] = t;
3433
3451
  } else
3434
3452
  this.valuesById[this.values[u] = t] = u;
3435
- return r && (this.valuesOptions === void 0 && (this.valuesOptions = {}), this.valuesOptions[u] = r || null), this.comments[u] = o || null, this;
3453
+ return i && (this.valuesOptions === void 0 && (this.valuesOptions = {}), this.valuesOptions[u] = i || null), this.comments[u] = o || null, this;
3436
3454
  }, f.prototype.remove = function(u) {
3437
- if (!i.isString(u))
3455
+ if (!r.isString(u))
3438
3456
  throw TypeError("name must be a string");
3439
3457
  var t = this.values[u];
3440
3458
  if (t == null)
@@ -3450,17 +3468,17 @@ var ht, lr;
3450
3468
  function Ur() {
3451
3469
  if (lr) return ht;
3452
3470
  lr = 1, ht = s;
3453
- var a = ye(), e = Le(), i = re();
3454
- function f(u, t, o, r) {
3455
- return t.delimited ? u("types[%i].encode(%s,w.uint32(%i),q+1).uint32(%i)", o, r, (t.id << 3 | 3) >>> 0, (t.id << 3 | 4) >>> 0) : u("types[%i].encode(%s,w.uint32(%i).fork(),q+1).ldelim()", o, r, (t.id << 3 | 2) >>> 0);
3471
+ var a = ye(), e = Le(), r = re();
3472
+ function f(u, t, o, i) {
3473
+ return t.delimited ? u("types[%i].encode(%s,w.uint32(%i),q+1).uint32(%i)", o, i, (t.id << 3 | 3) >>> 0, (t.id << 3 | 4) >>> 0) : u("types[%i].encode(%s,w.uint32(%i).fork(),q+1).ldelim()", o, i, (t.id << 3 | 2) >>> 0);
3456
3474
  }
3457
3475
  function s(u) {
3458
- for (var t = i.codegen(["m", "w", "q"], u.name + "$encode")("if(!w)")("w=Writer.create()")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")'), o, r, n = (
3476
+ for (var t = r.codegen(["m", "w", "q"], u.name + "$encode")("if(!w)")("w=Writer.create()")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")'), o, i, n = (
3459
3477
  /* initializes */
3460
- u.fieldsArray.slice().sort(i.compareFieldsById)
3478
+ u.fieldsArray.slice().sort(r.compareFieldsById)
3461
3479
  ), o = 0; o < n.length; ++o) {
3462
3480
  var c = n[o].resolve(), l = u._fieldsArray.indexOf(c), d = c.resolvedType instanceof a ? "int32" : c.type, p = e.basic[d];
3463
- r = "m" + i.safeProp(c.name), c.map ? (t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", r, c.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", r)("w.uint32(%i).fork().uint32(%i).%s(ks[i])", (c.id << 3 | 2) >>> 0, 8 | e.mapKey[c.keyType], c.keyType), p === void 0 ? t("types[%i].encode(%s[ks[i]],w.uint32(18).fork(),q+1).ldelim().ldelim()", l, r) : t(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | p, d, r), t("}")("}")) : c.repeated ? (t("if(%s!=null&&%s.length){", r, r), c.packed && e.packed[d] !== void 0 ? t("w.uint32(%i).fork()", (c.id << 3 | 2) >>> 0)("for(var i=0;i<%s.length;++i)", r)("w.%s(%s[i])", d, r)("w.ldelim()") : (t("for(var i=0;i<%s.length;++i)", r), p === void 0 ? f(t, c, l, r + "[i]") : t("w.uint32(%i).%s(%s[i])", (c.id << 3 | p) >>> 0, d, r)), t("}")) : (c.optional && t("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", r, c.name), p === void 0 ? f(t, c, l, r) : t("w.uint32(%i).%s(%s)", (c.id << 3 | p) >>> 0, d, r));
3481
+ i = "m" + r.safeProp(c.name), c.map ? (t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", i, c.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", i)("w.uint32(%i).fork().uint32(%i).%s(ks[i])", (c.id << 3 | 2) >>> 0, 8 | e.mapKey[c.keyType], c.keyType), p === void 0 ? t("types[%i].encode(%s[ks[i]],w.uint32(18).fork(),q+1).ldelim().ldelim()", l, i) : t(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | p, d, i), t("}")("}")) : c.repeated ? (t("if(%s!=null&&%s.length){", i, i), c.packed && e.packed[d] !== void 0 ? t("w.uint32(%i).fork()", (c.id << 3 | 2) >>> 0)("for(var i=0;i<%s.length;++i)", i)("w.%s(%s[i])", d, i)("w.ldelim()") : (t("for(var i=0;i<%s.length;++i)", i), p === void 0 ? f(t, c, l, i + "[i]") : t("w.uint32(%i).%s(%s[i])", (c.id << 3 | p) >>> 0, d, i)), t("}")) : (c.optional && t("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", i, c.name), p === void 0 ? f(t, c, l, i) : t("w.uint32(%i).%s(%s)", (c.id << 3 | p) >>> 0, d, i));
3464
3482
  }
3465
3483
  return t("return w");
3466
3484
  }
@@ -3468,14 +3486,14 @@ function Ur() {
3468
3486
  }
3469
3487
  var P = Ar.exports = Tr;
3470
3488
  P.build = "light";
3471
- function Ai(a, e, i) {
3472
- return typeof e == "function" ? (i = e, e = new P.Root()) : e || (e = new P.Root()), e.load(a, i);
3489
+ function Ti(a, e, r) {
3490
+ return typeof e == "function" ? (r = e, e = new P.Root()) : e || (e = new P.Root()), e.load(a, r);
3473
3491
  }
3474
- P.load = Ai;
3475
- function Ti(a, e) {
3492
+ P.load = Ti;
3493
+ function Ri(a, e) {
3476
3494
  return e || (e = new P.Root()), e.loadSync(a);
3477
3495
  }
3478
- P.loadSync = Ti;
3496
+ P.loadSync = Ri;
3479
3497
  P.encoder = Ur();
3480
3498
  P.decoder = qr();
3481
3499
  P.verifier = jr();
@@ -3498,7 +3516,7 @@ P.ReflectionObject._configure(P.Root);
3498
3516
  P.Namespace._configure(P.Type, P.Service, P.Enum);
3499
3517
  P.Root._configure(P.Type);
3500
3518
  P.Field._configure(P.Type);
3501
- var Ri = Ar.exports, Vr = zr, dt = /[\s{}=;:[\],'"()<>]/g, Ni = /(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g, ki = /(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g, Ii = /^ *[*/]+ */, Si = /^\s*\*?\/*/, Fi = /\n/g, Li = /\s/, Mi = /\\(.?)/g, Di = {
3519
+ var Ni = Ar.exports, Vr = zr, dt = /[\s{}=;:[\],'"()<>]/g, ki = /(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g, Ii = /(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g, Si = /^ *[*/]+ */, Fi = /^\s*\*?\/*/, Li = /\n/g, Mi = /\s/, Di = /\\(.?)/g, Ci = {
3502
3520
  0: "\0",
3503
3521
  r: "\r",
3504
3522
  n: `
@@ -3506,30 +3524,30 @@ var Ri = Ar.exports, Vr = zr, dt = /[\s{}=;:[\],'"()<>]/g, Ni = /(?:"([^"\\]*(?:
3506
3524
  t: " "
3507
3525
  };
3508
3526
  function Jr(a) {
3509
- return a.replace(Mi, function(e, i) {
3510
- switch (i) {
3527
+ return a.replace(Di, function(e, r) {
3528
+ switch (r) {
3511
3529
  case "\\":
3512
3530
  case "":
3513
- return i;
3531
+ return r;
3514
3532
  default:
3515
- return Di[i] || "";
3533
+ return Ci[r] || "";
3516
3534
  }
3517
3535
  });
3518
3536
  }
3519
3537
  zr.unescape = Jr;
3520
3538
  function zr(a, e) {
3521
3539
  a = a.toString();
3522
- var i = 0, f = a.length, s = 1, u = 0, t = {}, o = [], r = null;
3540
+ var r = 0, f = a.length, s = 1, u = 0, t = {}, o = [], i = null;
3523
3541
  function n(v) {
3524
3542
  return Error("illegal " + v + " (line " + s + ")");
3525
3543
  }
3526
3544
  function c() {
3527
- var v = r === "'" ? ki : Ni;
3528
- v.lastIndex = i - 1;
3545
+ var v = i === "'" ? Ii : ki;
3546
+ v.lastIndex = r - 1;
3529
3547
  var N = v.exec(a);
3530
3548
  if (!N)
3531
3549
  throw n("string");
3532
- return i = v.lastIndex, I(r), r = null, Jr(N[1]);
3550
+ return r = v.lastIndex, I(i), i = null, Jr(N[1]);
3533
3551
  }
3534
3552
  function l(v) {
3535
3553
  return a.charAt(v);
@@ -3549,8 +3567,8 @@ function zr(a, e) {
3549
3567
  break;
3550
3568
  }
3551
3569
  while (q === " " || q === " ");
3552
- for (var $ = a.substring(v, N).split(Fi), B = 0; B < $.length; ++B)
3553
- $[B] = $[B].replace(e ? Si : Ii, "").trim();
3570
+ for (var $ = a.substring(v, N).split(Li), B = 0; B < $.length; ++B)
3571
+ $[B] = $[B].replace(e ? Fi : Si, "").trim();
3554
3572
  L.text = $.join(`
3555
3573
  `).trim(), t[s] = L, u = s;
3556
3574
  }
@@ -3567,58 +3585,58 @@ function zr(a, e) {
3567
3585
  function g() {
3568
3586
  if (o.length > 0)
3569
3587
  return o.shift();
3570
- if (r)
3588
+ if (i)
3571
3589
  return c();
3572
- var v, N, k, L, z, M = i === 0;
3590
+ var v, N, k, L, z, M = r === 0;
3573
3591
  do {
3574
- if (i === f)
3592
+ if (r === f)
3575
3593
  return null;
3576
- for (v = !1; Li.test(k = l(i)); )
3594
+ for (v = !1; Mi.test(k = l(r)); )
3577
3595
  if (k === `
3578
- ` && (M = !0, ++s), ++i === f)
3596
+ ` && (M = !0, ++s), ++r === f)
3579
3597
  return null;
3580
- if (l(i) === "/") {
3581
- if (++i === f)
3598
+ if (l(r) === "/") {
3599
+ if (++r === f)
3582
3600
  throw n("comment");
3583
- if (l(i) === "/")
3601
+ if (l(r) === "/")
3584
3602
  if (e) {
3585
- if (L = i, z = !1, p(i - 1)) {
3603
+ if (L = r, z = !1, p(r - 1)) {
3586
3604
  z = !0;
3587
3605
  do
3588
- if (i = m(i), i === f || (i++, !M))
3606
+ if (r = m(r), r === f || (r++, !M))
3589
3607
  break;
3590
- while (p(i));
3608
+ while (p(r));
3591
3609
  } else
3592
- i = Math.min(f, m(i) + 1);
3593
- z && (d(L, i, M), M = !0), s++, v = !0;
3610
+ r = Math.min(f, m(r) + 1);
3611
+ z && (d(L, r, M), M = !0), s++, v = !0;
3594
3612
  } else {
3595
- for (z = l(L = i + 1) === "/"; l(++i) !== `
3613
+ for (z = l(L = r + 1) === "/"; l(++r) !== `
3596
3614
  `; )
3597
- if (i === f)
3615
+ if (r === f)
3598
3616
  return null;
3599
- ++i, z && (d(L, i - 1, M), M = !0), ++s, v = !0;
3617
+ ++r, z && (d(L, r - 1, M), M = !0), ++s, v = !0;
3600
3618
  }
3601
- else if ((k = l(i)) === "*") {
3602
- L = i + 1, z = e || l(L) === "*";
3619
+ else if ((k = l(r)) === "*") {
3620
+ L = r + 1, z = e || l(L) === "*";
3603
3621
  do {
3604
3622
  if (k === `
3605
- ` && ++s, ++i === f)
3623
+ ` && ++s, ++r === f)
3606
3624
  throw n("comment");
3607
- N = k, k = l(i);
3625
+ N = k, k = l(r);
3608
3626
  } while (N !== "*" || k !== "/");
3609
- ++i, z && (d(L, i - 2, M), M = !0), v = !0;
3627
+ ++r, z && (d(L, r - 2, M), M = !0), v = !0;
3610
3628
  } else
3611
3629
  return "/";
3612
3630
  }
3613
3631
  } while (v);
3614
- var q = i;
3632
+ var q = r;
3615
3633
  dt.lastIndex = 0;
3616
3634
  var $ = dt.test(l(q++));
3617
3635
  if (!$)
3618
3636
  for (; q < f && !dt.test(l(q)); )
3619
3637
  ++q;
3620
- var B = a.substring(i, i = q);
3621
- return (B === '"' || B === "'") && (r = B), B;
3638
+ var B = a.substring(r, r = q);
3639
+ return (B === '"' || B === "'") && (i = B), B;
3622
3640
  }
3623
3641
  function I(v) {
3624
3642
  o.push(v);
@@ -3656,13 +3674,13 @@ function zr(a, e) {
3656
3674
  }
3657
3675
  });
3658
3676
  }
3659
- var Ci = we;
3677
+ var Bi = we;
3660
3678
  we.filename = null;
3661
3679
  we.defaults = { keepCase: !1 };
3662
- var Bi = Vr, cr = Lt(), hr = Ft(), dr = Ae(), Pi = Rt(), pr = Me(), qi = ye(), ji = kt(), $i = Nt(), Ui = Te(), Vi = Le(), _e = re(), Ji = /^[1-9][0-9]*$/, zi = /^-?[1-9][0-9]*$/, Wi = /^0[x][0-9a-fA-F]+$/, Hi = /^-?0[x][0-9a-fA-F]+$/, Zi = /^0[0-7]+$/, Gi = /^-?0[0-7]+$/, Yi = _e.patterns.numberRe, he = /^[a-zA-Z_][a-zA-Z_0-9]*$/, de = _e.patterns.typeRefRe;
3663
- function we(a, e, i) {
3664
- e instanceof cr || (i = e, e = new cr()), i || (i = we.defaults);
3665
- var f = i.preferTrailingComment || !1, s = Bi(a, i.alternateCommentMode || !1), u = s.next, t = s.push, o = s.peek, r = s.skip, n = s.cmnt, c = !0, l, d, p, m = "proto2", g = e, I = [], R = {}, y = i.keepCase ? function(b) {
3680
+ var Pi = Vr, cr = Lt(), hr = Ft(), dr = Ae(), qi = Rt(), pr = Me(), ji = ye(), $i = kt(), Ui = Nt(), Vi = Te(), Ji = Le(), _e = re(), zi = /^[1-9][0-9]*$/, Wi = /^-?[1-9][0-9]*$/, Hi = /^0[x][0-9a-fA-F]+$/, Zi = /^-?0[x][0-9a-fA-F]+$/, Gi = /^0[0-7]+$/, Yi = /^-?0[0-7]+$/, Xi = _e.patterns.numberRe, he = /^[a-zA-Z_][a-zA-Z_0-9]*$/, de = _e.patterns.typeRefRe;
3681
+ function we(a, e, r) {
3682
+ e instanceof cr || (r = e, e = new cr()), r || (r = we.defaults);
3683
+ var f = r.preferTrailingComment || !1, s = Pi(a, r.alternateCommentMode || !1), u = s.next, t = s.push, o = s.peek, i = s.skip, n = s.cmnt, c = !0, l, d, p, m = "proto2", g = e, I = [], R = {}, y = r.keepCase ? function(b) {
3666
3684
  return b;
3667
3685
  } : _e.camelCase;
3668
3686
  function E() {
@@ -3681,7 +3699,7 @@ function we(a, e, i) {
3681
3699
  do {
3682
3700
  if ((w = u()) !== '"' && w !== "'")
3683
3701
  throw v(w);
3684
- b.push(u()), r(w), w = o();
3702
+ b.push(u()), i(w), w = o();
3685
3703
  } while (w === '"' || w === "'");
3686
3704
  return b.join("");
3687
3705
  }
@@ -3719,14 +3737,14 @@ function we(a, e, i) {
3719
3737
  throw v(F, "id");
3720
3738
  } else
3721
3739
  try {
3722
- b.push([A = M(u()), r("to", !0) ? M(u()) : A]);
3740
+ b.push([A = M(u()), i("to", !0) ? M(u()) : A]);
3723
3741
  } catch (C) {
3724
3742
  if (w && de.test(x) && m >= 2023)
3725
3743
  b.push(x);
3726
3744
  else
3727
3745
  throw C;
3728
3746
  }
3729
- while (r(",", !0));
3747
+ while (i(",", !0));
3730
3748
  var S = { options: void 0 };
3731
3749
  S.setOption = function(C, X) {
3732
3750
  this.options === void 0 && (this.options = {}), this.options[C] = X;
@@ -3734,7 +3752,7 @@ function we(a, e, i) {
3734
3752
  S,
3735
3753
  function(X) {
3736
3754
  if (X === "option")
3737
- U(S, X), r(";");
3755
+ U(S, X), i(";");
3738
3756
  else
3739
3757
  throw v(X);
3740
3758
  },
@@ -3758,13 +3776,13 @@ function we(a, e, i) {
3758
3776
  case "0":
3759
3777
  return 0;
3760
3778
  }
3761
- if (Ji.test(b))
3779
+ if (zi.test(b))
3762
3780
  return x * parseInt(b, 10);
3763
- if (Wi.test(b))
3781
+ if (Hi.test(b))
3764
3782
  return x * parseInt(b, 16);
3765
- if (Zi.test(b))
3783
+ if (Gi.test(b))
3766
3784
  return x * parseInt(b, 8);
3767
- if (Yi.test(b))
3785
+ if (Xi.test(b))
3768
3786
  return x * parseFloat(b);
3769
3787
  throw v(b, "number", w);
3770
3788
  }
@@ -3779,11 +3797,11 @@ function we(a, e, i) {
3779
3797
  }
3780
3798
  if (!w && b.charAt(0) === "-")
3781
3799
  throw v(b, "id");
3782
- if (zi.test(b))
3800
+ if (Wi.test(b))
3783
3801
  return parseInt(b, 10);
3784
- if (Hi.test(b))
3802
+ if (Zi.test(b))
3785
3803
  return parseInt(b, 16);
3786
- if (Gi.test(b))
3804
+ if (Yi.test(b))
3787
3805
  return parseInt(b, 8);
3788
3806
  throw v(b, "id");
3789
3807
  }
@@ -3792,7 +3810,7 @@ function we(a, e, i) {
3792
3810
  throw v("package");
3793
3811
  if (l = u(), !de.test(l))
3794
3812
  throw v(l, "name");
3795
- g = g.define(l), r(";");
3813
+ g = g.define(l), i(";");
3796
3814
  }
3797
3815
  function $() {
3798
3816
  var b = o(), w;
@@ -3807,22 +3825,22 @@ function we(a, e, i) {
3807
3825
  w = d || (d = []);
3808
3826
  break;
3809
3827
  }
3810
- b = N(), r(";"), w.push(b);
3828
+ b = N(), i(";"), w.push(b);
3811
3829
  }
3812
3830
  function B() {
3813
- if (r("="), m = N(), m < 2023)
3831
+ if (i("="), m = N(), m < 2023)
3814
3832
  throw v(m, "syntax");
3815
- r(";");
3833
+ i(";");
3816
3834
  }
3817
3835
  function O() {
3818
- if (r("="), m = N(), !["2023"].includes(m))
3836
+ if (i("="), m = N(), !["2023"].includes(m))
3819
3837
  throw v(m, "edition");
3820
- r(";");
3838
+ i(";");
3821
3839
  }
3822
3840
  function _(b, w, x) {
3823
3841
  switch (x === void 0 && (x = 0), w) {
3824
3842
  case "option":
3825
- return U(b, w), r(";"), !0;
3843
+ return U(b, w), i(";"), !0;
3826
3844
  case "message":
3827
3845
  return T(b, w, x + 1), !0;
3828
3846
  case "enum":
@@ -3836,12 +3854,12 @@ function we(a, e, i) {
3836
3854
  }
3837
3855
  function h(b, w, x) {
3838
3856
  var A = s.line;
3839
- if (b && (typeof b.comment != "string" && (b.comment = n()), b.filename = we.filename), r("{", !0)) {
3857
+ if (b && (typeof b.comment != "string" && (b.comment = n()), b.filename = we.filename), i("{", !0)) {
3840
3858
  for (var F; (F = u()) !== "}"; )
3841
3859
  w(F);
3842
- r(";", !0);
3860
+ i(";", !0);
3843
3861
  } else
3844
- x && x(), r(";"), b && (typeof b.comment != "string" || f) && (b.comment = n(A) || b.comment);
3862
+ x && x(), i(";"), b && (typeof b.comment != "string" || f) && (b.comment = n(A) || b.comment);
3845
3863
  }
3846
3864
  function T(b, w, x) {
3847
3865
  if (x === void 0 && (x = 0), x > _e.nestingLimit)
@@ -3901,11 +3919,11 @@ function we(a, e, i) {
3901
3919
  var S = u();
3902
3920
  if (!he.test(S))
3903
3921
  throw v(S, "name");
3904
- S = y(S), r("=");
3922
+ S = y(S), i("=");
3905
3923
  var C = new dr(S, M(u()), F, w, x);
3906
3924
  if (h(C, function(ne) {
3907
3925
  if (ne === "option")
3908
- U(C, ne), r(";");
3926
+ U(C, ne), i(";");
3909
3927
  else
3910
3928
  throw v(ne);
3911
3929
  }, function() {
@@ -3926,14 +3944,14 @@ function we(a, e, i) {
3926
3944
  if (!he.test(A))
3927
3945
  throw v(A, "name");
3928
3946
  var F = _e.lcFirst(A);
3929
- A === F && (A = _e.ucFirst(A)), r("=");
3947
+ A === F && (A = _e.ucFirst(A)), i("=");
3930
3948
  var S = M(u()), C = new hr(A);
3931
3949
  C.group = !0;
3932
3950
  var X = new dr(F, S, A, w);
3933
3951
  X.filename = we.filename, h(C, function(ne) {
3934
3952
  switch (ne) {
3935
3953
  case "option":
3936
- U(C, ne), r(";");
3954
+ U(C, ne), i(";");
3937
3955
  break;
3938
3956
  case "required":
3939
3957
  case "repeated":
@@ -3958,23 +3976,23 @@ function we(a, e, i) {
3958
3976
  }), b.add(C).add(X);
3959
3977
  }
3960
3978
  function V(b) {
3961
- r("<");
3979
+ i("<");
3962
3980
  var w = u();
3963
- if (Vi.mapKey[w] === void 0)
3981
+ if (Ji.mapKey[w] === void 0)
3964
3982
  throw v(w, "type");
3965
- r(",");
3983
+ i(",");
3966
3984
  var x = u();
3967
3985
  if (!de.test(x))
3968
3986
  throw v(x, "type");
3969
- r(">");
3987
+ i(">");
3970
3988
  var A = u();
3971
3989
  if (!he.test(A))
3972
3990
  throw v(A, "name");
3973
- r("=");
3974
- var F = new Pi(y(A), M(u()), w, x);
3991
+ i("=");
3992
+ var F = new qi(y(A), M(u()), w, x);
3975
3993
  h(F, function(C) {
3976
3994
  if (C === "option")
3977
- U(F, C), r(";");
3995
+ U(F, C), i(";");
3978
3996
  else
3979
3997
  throw v(C);
3980
3998
  }, function() {
@@ -3986,17 +4004,17 @@ function we(a, e, i) {
3986
4004
  throw v(w, "name");
3987
4005
  var A = new pr(y(w));
3988
4006
  h(A, function(S) {
3989
- S === "option" ? (U(A, S), r(";")) : (t(S), D(A, "optional", void 0, x));
4007
+ S === "option" ? (U(A, S), i(";")) : (t(S), D(A, "optional", void 0, x));
3990
4008
  }), b.add(A);
3991
4009
  }
3992
4010
  function Q(b, w) {
3993
4011
  if (!he.test(w = u()))
3994
4012
  throw v(w, "name");
3995
- var x = new qi(w);
4013
+ var x = new ji(w);
3996
4014
  h(x, function(F) {
3997
4015
  switch (F) {
3998
4016
  case "option":
3999
- U(x, F), r(";");
4017
+ U(x, F), i(";");
4000
4018
  break;
4001
4019
  case "reserved":
4002
4020
  L(x.reserved || (x.reserved = []), !0), x.reserved === void 0 && (x.reserved = []);
@@ -4009,18 +4027,18 @@ function we(a, e, i) {
4009
4027
  function se(b, w) {
4010
4028
  if (!he.test(w))
4011
4029
  throw v(w, "name");
4012
- r("=");
4030
+ i("=");
4013
4031
  var x = M(u(), !0), A = {
4014
4032
  options: void 0
4015
4033
  };
4016
4034
  A.getOption = function(F) {
4017
4035
  return this.options[F];
4018
4036
  }, A.setOption = function(F, S) {
4019
- Ui.prototype.setOption.call(A, F, S);
4037
+ Vi.prototype.setOption.call(A, F, S);
4020
4038
  }, A.setParsedOption = function() {
4021
4039
  }, h(A, function(S) {
4022
4040
  if (S === "option")
4023
- U(A, S), r(";");
4041
+ U(A, S), i(";");
4024
4042
  else
4025
4043
  throw v(S);
4026
4044
  }, function() {
@@ -4034,7 +4052,7 @@ function we(a, e, i) {
4034
4052
  throw v(w, "end of input");
4035
4053
  if (w === "(") {
4036
4054
  var S = u();
4037
- r(")"), w = "(" + S + ")";
4055
+ i(")"), w = "(" + S + ")";
4038
4056
  }
4039
4057
  if (F) {
4040
4058
  if (F = !1, w.includes(".") && !w.includes("(")) {
@@ -4053,28 +4071,28 @@ function we(a, e, i) {
4053
4071
  function W(b, w, x) {
4054
4072
  if (x === void 0 && (x = 0), x > _e.recursionLimit)
4055
4073
  throw Error("max depth exceeded");
4056
- if (r("{", !0)) {
4057
- for (var A = {}; !r("}", !0); ) {
4074
+ if (i("{", !0)) {
4075
+ for (var A = {}; !i("}", !0); ) {
4058
4076
  if (!he.test(ee = u()))
4059
4077
  throw v(ee, "name");
4060
4078
  if (ee === null)
4061
4079
  throw v(ee, "end of input");
4062
4080
  var F, S = ee;
4063
- if (r(":", !0), o() === "{")
4081
+ if (i(":", !0), o() === "{")
4064
4082
  F = W(b, w + "." + ee, x + 1);
4065
4083
  else if (o() === "[") {
4066
4084
  F = [];
4067
4085
  var C;
4068
- if (r("[", !0)) {
4086
+ if (i("[", !0)) {
4069
4087
  do
4070
4088
  C = k(), F.push(C);
4071
- while (r(",", !0));
4072
- r("]"), typeof C < "u" && ie(b, w + "." + ee, C);
4089
+ while (i(",", !0));
4090
+ i("]"), typeof C < "u" && ie(b, w + "." + ee, C);
4073
4091
  }
4074
4092
  } else
4075
4093
  F = k(), ie(b, w + "." + ee, F);
4076
4094
  var X = A[S];
4077
- X && (F = [].concat(X).concat(F)), S !== "__proto__" && (A[S] = F), r(",", !0), r(";", !0);
4095
+ X && (F = [].concat(X).concat(F)), S !== "__proto__" && (A[S] = F), i(",", !0), i(";", !0);
4078
4096
  }
4079
4097
  return A;
4080
4098
  }
@@ -4092,11 +4110,11 @@ function we(a, e, i) {
4092
4110
  b.setParsedOption && b.setParsedOption(w, x, A);
4093
4111
  }
4094
4112
  function K(b) {
4095
- if (r("[", !0)) {
4113
+ if (i("[", !0)) {
4096
4114
  do
4097
4115
  U(b, "option");
4098
- while (r(",", !0));
4099
- r("]");
4116
+ while (i(",", !0));
4117
+ i("]");
4100
4118
  }
4101
4119
  return b;
4102
4120
  }
@@ -4105,7 +4123,7 @@ function we(a, e, i) {
4105
4123
  throw Error("max depth exceeded");
4106
4124
  if (!he.test(w = u()))
4107
4125
  throw v(w, "service name");
4108
- var A = new ji(w);
4126
+ var A = new $i(w);
4109
4127
  h(A, function(S) {
4110
4128
  if (!_(A, S, x))
4111
4129
  if (S === "rpc")
@@ -4119,13 +4137,13 @@ function we(a, e, i) {
4119
4137
  if (!he.test(w = u()))
4120
4138
  throw v(w, "name");
4121
4139
  var F = w, S, C, X, ce;
4122
- if (r("("), r("stream", !0) && (C = !0), !de.test(w = u()) || (S = w, r(")"), r("returns"), r("("), r("stream", !0) && (ce = !0), !de.test(w = u())))
4140
+ if (i("("), i("stream", !0) && (C = !0), !de.test(w = u()) || (S = w, i(")"), i("returns"), i("("), i("stream", !0) && (ce = !0), !de.test(w = u())))
4123
4141
  throw v(w);
4124
- X = w, r(")");
4125
- var ne = new $i(F, A, S, X, C, ce);
4142
+ X = w, i(")");
4143
+ var ne = new Ui(F, A, S, X, C, ce);
4126
4144
  ne.comment = x, h(ne, function(He) {
4127
4145
  if (He === "option")
4128
- U(ne, He), r(";");
4146
+ U(ne, He), i(";");
4129
4147
  else
4130
4148
  throw v(He);
4131
4149
  }), b.add(ne);
@@ -4174,7 +4192,7 @@ function we(a, e, i) {
4174
4192
  O();
4175
4193
  break;
4176
4194
  case "option":
4177
- U(g, ee), r(";", !0);
4195
+ U(g, ee), i(";", !0);
4178
4196
  break;
4179
4197
  default:
4180
4198
  if (_(g, ee, 0)) {
@@ -4190,9 +4208,9 @@ function we(a, e, i) {
4190
4208
  root: e
4191
4209
  };
4192
4210
  }
4193
- var Xi = le, Ki = /\/|\./;
4211
+ var Ki = le, Qi = /\/|\./;
4194
4212
  function le(a, e) {
4195
- Ki.test(a) || (a = "google/protobuf/" + a + ".proto", e = { nested: { google: { nested: { protobuf: { nested: e } } } } }), le[a] = e;
4213
+ Qi.test(a) || (a = "google/protobuf/" + a + ".proto", e = { nested: { google: { nested: { protobuf: { nested: e } } } } }), le[a] = e;
4196
4214
  }
4197
4215
  le("any", {
4198
4216
  /**
@@ -4510,13 +4528,13 @@ le("field_mask", {
4510
4528
  le.get = function(e) {
4511
4529
  return le[e] || null;
4512
4530
  };
4513
- var Oe = Er.exports = Ri;
4531
+ var Oe = Er.exports = Ni;
4514
4532
  Oe.build = "full";
4515
4533
  Oe.tokenize = Vr;
4516
- Oe.parse = Ci;
4517
- Oe.common = Xi;
4534
+ Oe.parse = Bi;
4535
+ Oe.common = Ki;
4518
4536
  Oe.Root._configure(Oe.Type, Oe.parse, Oe.common);
4519
- var Qi = Er.exports, Se = Qi;
4537
+ var en = Er.exports, Se = en;
4520
4538
  const te = "com.google.type", pt = {
4521
4539
  "google/type/calendar_period.proto": {
4522
4540
  nested: {
@@ -5423,14 +5441,14 @@ const te = "com.google.type", pt = {
5423
5441
  "validate/validate.proto": {},
5424
5442
  "buf/validate/validate.proto": {}
5425
5443
  };
5426
- class en {
5444
+ class tn {
5427
5445
  static isAbsolute(e) {
5428
5446
  return /^(?:\/|\w+:|\\\\\w+)/.test(e);
5429
5447
  }
5430
5448
  static normalize(e) {
5431
- const i = e.substring(0, 2);
5449
+ const r = e.substring(0, 2);
5432
5450
  let f = "";
5433
- i === "\\\\" && (f = i, e = e.substring(2)), e = e.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
5451
+ r === "\\\\" && (f = r, e = e.substring(2)), e = e.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
5434
5452
  const s = e.split("/"), u = this.isAbsolute(e);
5435
5453
  let t = "";
5436
5454
  u && (t = `${s.shift()}/`);
@@ -5438,18 +5456,18 @@ class en {
5438
5456
  s[o] === ".." ? o > 0 && s[o - 1] !== ".." ? s.splice(--o, 2) : u ? s.splice(o, 1) : ++o : s[o] === "." ? s.splice(o, 1) : ++o;
5439
5457
  return f + t + s.join("/");
5440
5458
  }
5441
- static resolve(e, i, f = !1) {
5442
- return f || (i = this.normalize(i)), this.isAbsolute(i) ? i : (f || (e = this.normalize(e)), (e = e.replace(/(?:\/|^)[^/]+$/, "")).length ? this.normalize(`${e}/${i}`) : i);
5459
+ static resolve(e, r, f = !1) {
5460
+ return f || (r = this.normalize(r)), this.isAbsolute(r) ? r : (f || (e = this.normalize(e)), (e = e.replace(/(?:\/|^)[^/]+$/, "")).length ? this.normalize(`${e}/${r}`) : r);
5443
5461
  }
5444
5462
  }
5445
5463
  const oe = class oe {
5446
5464
  static withoutRangeLimits(e) {
5447
- const i = {};
5465
+ const r = {};
5448
5466
  for (const f of Object.keys(e)) {
5449
5467
  const s = { ...e[f] };
5450
- delete s.minimum, delete s.maximum, i[f] = s;
5468
+ delete s.minimum, delete s.maximum, r[f] = s;
5451
5469
  }
5452
- return i;
5470
+ return r;
5453
5471
  }
5454
5472
  };
5455
5473
  ve(oe, "MAX_SAFE_INTEGER", Math.pow(2, 53) - 1), ve(oe, "MIN_SAFE_INTEGER", -oe.MAX_SAFE_INTEGER), ve(oe, "PRIMITIVE_TYPES_WITH_LIMITS", {
@@ -5547,23 +5565,23 @@ ve(oe, "PRIMITIVE_TYPES_MINIMAL", oe.withoutRangeLimits(oe.PRIMITIVE_TYPES_WITH_
5547
5565
  let Be = oe;
5548
5566
  const Hr = "(buf.validate.field)", mr = (a) => typeof a == "object" && a !== null && !Array.isArray(a);
5549
5567
  function gr(a, e) {
5550
- const i = Mt(e, Hr);
5551
- i !== null && Dt(i, a);
5568
+ const r = Mt(e, Hr);
5569
+ r !== null && Dt(r, a);
5552
5570
  }
5553
5571
  function Mt(a, e) {
5554
- const i = a.parsedOptions;
5555
- if (i && !Array.isArray(i) && i[e])
5556
- return i[e];
5557
- if (i && Array.isArray(i)) {
5558
- for (const f of i)
5572
+ const r = a.parsedOptions;
5573
+ if (r && !Array.isArray(r) && r[e])
5574
+ return r[e];
5575
+ if (r && Array.isArray(r)) {
5576
+ for (const f of r)
5559
5577
  if (f[e])
5560
5578
  return f[e];
5561
5579
  }
5562
5580
  return null;
5563
5581
  }
5564
5582
  function Dt(a, e) {
5565
- for (const [i, f] of Object.entries(a))
5566
- switch (i) {
5583
+ for (const [r, f] of Object.entries(a))
5584
+ switch (r) {
5567
5585
  case "float":
5568
5586
  case "double":
5569
5587
  case "int32":
@@ -5579,7 +5597,7 @@ function Dt(a, e) {
5579
5597
  Fe.handle(e, f);
5580
5598
  break;
5581
5599
  case "bool":
5582
- tn.handle(e, f);
5600
+ rn.handle(e, f);
5583
5601
  break;
5584
5602
  case "string":
5585
5603
  case "bytes":
@@ -5591,8 +5609,8 @@ function Dt(a, e) {
5591
5609
  }
5592
5610
  }
5593
5611
  class Fe {
5594
- static handle(e, i) {
5595
- for (const [f, s] of Object.entries(i))
5612
+ static handle(e, r) {
5613
+ for (const [f, s] of Object.entries(r))
5596
5614
  switch (f) {
5597
5615
  case "const":
5598
5616
  xe.constValue(e, s);
@@ -5620,25 +5638,25 @@ class Fe {
5620
5638
  }
5621
5639
  }
5622
5640
  // x must equal `value` less than
5623
- static lessThan(e, i) {
5624
- delete e.maximum, e.exclusiveMaximum = i;
5641
+ static lessThan(e, r) {
5642
+ delete e.maximum, e.exclusiveMaximum = r;
5625
5643
  }
5626
5644
  // x must be greater less or equal to `value`
5627
- static lessEqualThan(e, i) {
5628
- e.maximum = i;
5645
+ static lessEqualThan(e, r) {
5646
+ e.maximum = r;
5629
5647
  }
5630
5648
  // x must equal `value` greater than
5631
- static greaterThan(e, i) {
5632
- delete e.minimum, e.exclusiveMinimum = i;
5649
+ static greaterThan(e, r) {
5650
+ delete e.minimum, e.exclusiveMinimum = r;
5633
5651
  }
5634
5652
  // x must be greater than or equal to `value`
5635
- static greaterEqualThan(e, i) {
5636
- e.minimum = i;
5653
+ static greaterEqualThan(e, r) {
5654
+ e.minimum = r;
5637
5655
  }
5638
5656
  }
5639
- class tn {
5640
- static handle(e, i) {
5641
- for (const [f, s] of Object.entries(i))
5657
+ class rn {
5658
+ static handle(e, r) {
5659
+ for (const [f, s] of Object.entries(r))
5642
5660
  switch (f) {
5643
5661
  case "const":
5644
5662
  xe.constValue(e, s);
@@ -5647,8 +5665,8 @@ class tn {
5647
5665
  }
5648
5666
  }
5649
5667
  class H {
5650
- static handle(e, i) {
5651
- for (const [f, s] of Object.entries(i))
5668
+ static handle(e, r) {
5669
+ for (const [f, s] of Object.entries(r))
5652
5670
  switch (f) {
5653
5671
  case "const":
5654
5672
  xe.constValue(e, s);
@@ -5724,29 +5742,29 @@ class H {
5724
5742
  break;
5725
5743
  }
5726
5744
  }
5727
- static len(e, i) {
5728
- e.minLength = i, e.maxLength = i;
5745
+ static len(e, r) {
5746
+ e.minLength = r, e.maxLength = r;
5729
5747
  }
5730
- static minLen(e, i) {
5731
- e.minLength = i;
5748
+ static minLen(e, r) {
5749
+ e.minLength = r;
5732
5750
  }
5733
- static maxLen(e, i) {
5734
- e.maxLength = i;
5751
+ static maxLen(e, r) {
5752
+ e.maxLength = r;
5735
5753
  }
5736
- static pattern(e, i) {
5737
- e.pattern = i;
5754
+ static pattern(e, r) {
5755
+ e.pattern = r;
5738
5756
  }
5739
- static prefix(e, i) {
5740
- e.pattern = `^${Ve(i)}.*`;
5757
+ static prefix(e, r) {
5758
+ e.pattern = `^${Ve(r)}.*`;
5741
5759
  }
5742
- static contains(e, i) {
5743
- e.pattern = `.*${Ve(i)}.*`;
5760
+ static contains(e, r) {
5761
+ e.pattern = `.*${Ve(r)}.*`;
5744
5762
  }
5745
- static notContains(e, i) {
5746
- e.pattern = `^((?!${Ve(i)}).)*$`;
5763
+ static notContains(e, r) {
5764
+ e.pattern = `^((?!${Ve(r)}).)*$`;
5747
5765
  }
5748
- static suffix(e, i) {
5749
- e.pattern = `.*${Ve(i)}$`;
5766
+ static suffix(e, r) {
5767
+ e.pattern = `.*${Ve(r)}$`;
5750
5768
  }
5751
5769
  static email(e) {
5752
5770
  e.format = "email";
@@ -5775,8 +5793,8 @@ class H {
5775
5793
  static uuid(e) {
5776
5794
  e.format = "uuid";
5777
5795
  }
5778
- static wellKnownRegex(e, i) {
5779
- switch (i) {
5796
+ static wellKnownRegex(e, r) {
5797
+ switch (r) {
5780
5798
  case "HTTP_HEADER_NAME":
5781
5799
  e.pattern = "^:?[0-9a-zA-Z!#$%&'*+-.^_|~`]+$";
5782
5800
  break;
@@ -5787,8 +5805,8 @@ class H {
5787
5805
  }
5788
5806
  }
5789
5807
  class Pe {
5790
- static handle(e, i) {
5791
- for (const [f, s] of Object.entries(i))
5808
+ static handle(e, r) {
5809
+ for (const [f, s] of Object.entries(r))
5792
5810
  switch (f) {
5793
5811
  case "min_items":
5794
5812
  Pe.minLen(e, s);
@@ -5804,11 +5822,11 @@ class Pe {
5804
5822
  break;
5805
5823
  }
5806
5824
  }
5807
- static minLen(e, i) {
5808
- e.minItems = i;
5825
+ static minLen(e, r) {
5826
+ e.minItems = r;
5809
5827
  }
5810
- static maxLen(e, i) {
5811
- e.maxItems = i;
5828
+ static maxLen(e, r) {
5829
+ e.maxItems = r;
5812
5830
  }
5813
5831
  static unique(e) {
5814
5832
  e.uniqueItems = !0;
@@ -5816,32 +5834,32 @@ class Pe {
5816
5834
  }
5817
5835
  class xe {
5818
5836
  // x must equal `value` exactly
5819
- static constValue(e, i) {
5820
- e.const = i, delete e.maximum, delete e.minimum;
5837
+ static constValue(e, r) {
5838
+ e.const = r, delete e.maximum, delete e.minimum;
5821
5839
  }
5822
- static inArray(e, i) {
5823
- if (!Array.isArray(i))
5824
- throw new Error(`Expect value to be an array: ${i}`);
5825
- e.oneOf = i.map((f) => ({
5840
+ static inArray(e, r) {
5841
+ if (!Array.isArray(r))
5842
+ throw new Error(`Expect value to be an array: ${r}`);
5843
+ e.oneOf = r.map((f) => ({
5826
5844
  const: f
5827
5845
  }));
5828
5846
  }
5829
- static notInArray(e, i) {
5830
- if (!Array.isArray(i))
5831
- throw new Error(`Expect value to be an array: ${i}`);
5847
+ static notInArray(e, r) {
5848
+ if (!Array.isArray(r))
5849
+ throw new Error(`Expect value to be an array: ${r}`);
5832
5850
  e.not = {
5833
- oneOf: i.map((f) => ({
5851
+ oneOf: r.map((f) => ({
5834
5852
  const: f
5835
5853
  }))
5836
5854
  };
5837
5855
  }
5838
5856
  }
5839
- function rn(a) {
5857
+ function nn(a) {
5840
5858
  const e = Mt(a, Hr);
5841
5859
  if (e !== null) {
5842
- for (const [i, f] of Object.entries(e))
5860
+ for (const [r, f] of Object.entries(e))
5843
5861
  if (mr(f)) {
5844
- if (i === "repeated") {
5862
+ if (r === "repeated") {
5845
5863
  if (mr(f.items)) {
5846
5864
  for (const [s, u] of Object.entries(f.items))
5847
5865
  if (s === "ignore_empty" && u)
@@ -5858,13 +5876,13 @@ function rn(a) {
5858
5876
  function Ve(a) {
5859
5877
  return a.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
5860
5878
  }
5861
- const nn = "(validate.rules)";
5879
+ const sn = "(validate.rules)";
5862
5880
  function yr(a, e) {
5863
- const i = Mt(e, nn);
5864
- i !== null && Dt(i, a);
5881
+ const r = Mt(e, sn);
5882
+ r !== null && Dt(r, a);
5865
5883
  }
5866
- const vr = "root", _r = "@RootNode", sn = "@Option", wr = "@Example", br = "@Default", Or = Se.common;
5867
- class on {
5884
+ const vr = "root", _r = "@RootNode", on = "@Option", wr = "@Example", br = "@Default", Or = Se.common;
5885
+ class an {
5868
5886
  constructor(e) {
5869
5887
  ve(this, "root", new Se.Root());
5870
5888
  ve(this, "proto3");
@@ -5878,17 +5896,17 @@ class on {
5878
5896
  this.proto3 = /syntax\s*=\s*['"]proto3['"]/.test(e), this.parseOptionsAnnotation(e), this.process(vr, e);
5879
5897
  }
5880
5898
  parseOptionsAnnotation(e) {
5881
- const i = /(\/\/|\*)\s*@Option\s+(?<key>\w{1,50})\s+(?<value>\S[^\r\n]{0,199})/g;
5899
+ const r = /(\/\/|\*)\s*@Option\s+(?<key>\w{1,50})\s+(?<value>\S[^\r\n]{0,199})/g;
5882
5900
  let f;
5883
- for (; (f = i.exec(e)) !== null && (f.index === i.lastIndex && i.lastIndex++, f.groups !== void 0); )
5901
+ for (; (f = r.exec(e)) !== null && (f.index === r.lastIndex && r.lastIndex++, f.groups !== void 0); )
5884
5902
  f.groups.value === "true" ? this.mapperOptions[f.groups.key] = !0 : f.groups.value === "false" ? this.mapperOptions[f.groups.key] = !1 : this.mapperOptions[f.groups.key] = f.groups.value;
5885
5903
  }
5886
- process(e, i) {
5887
- if (typeof i != "string")
5888
- this.root.setOptions(i.options), this.root.addJSON(i.nested);
5904
+ process(e, r) {
5905
+ if (typeof r != "string")
5906
+ this.root.setOptions(r.options), this.root.addJSON(r.nested);
5889
5907
  else {
5890
5908
  Se.parse.filename = e;
5891
- const f = Se.parse(i, this.root, this.protoParseOptions);
5909
+ const f = Se.parse(r, this.root, this.protoParseOptions);
5892
5910
  let s = 0;
5893
5911
  if (f.imports)
5894
5912
  for (; s < f.imports.length; ++s)
@@ -5904,20 +5922,20 @@ class on {
5904
5922
  return "validate/validate.proto";
5905
5923
  if (e === "buf/validate/validate.proto" || e === "/buf/validate/validate.proto")
5906
5924
  return "buf/validate/validate.proto";
5907
- let i = e.lastIndexOf("google/protobuf/");
5908
- if (i > -1) {
5909
- const f = e.substring(i);
5925
+ let r = e.lastIndexOf("google/protobuf/");
5926
+ if (r > -1) {
5927
+ const f = e.substring(r);
5910
5928
  if (f in Or)
5911
5929
  return f;
5912
5930
  }
5913
- if (i = e.lastIndexOf("google/type/"), i > -1) {
5914
- const f = e.substring(i);
5931
+ if (r = e.lastIndexOf("google/type/"), r > -1) {
5932
+ const f = e.substring(r);
5915
5933
  if (f in pt)
5916
5934
  return f;
5917
5935
  }
5918
5936
  return null;
5919
5937
  }
5920
- fetch(e, i, f) {
5938
+ fetch(e, r, f) {
5921
5939
  const s = this.getBundledFileName(e) || e;
5922
5940
  if (this.root.files.indexOf(s) > -1)
5923
5941
  return;
@@ -5931,10 +5949,10 @@ class on {
5931
5949
  this.process(s, pt[s]);
5932
5950
  return;
5933
5951
  }
5934
- const t = en.resolve(i, s);
5952
+ const t = tn.resolve(r, s);
5935
5953
  if (!f)
5936
5954
  throw new Error(
5937
- `Imports are currently not implemented. Can not load: ${t} defined in as ${e} in ${i}`
5955
+ `Imports are currently not implemented. Can not load: ${t} defined in as ${e} in ${r}`
5938
5956
  );
5939
5957
  }
5940
5958
  compile() {
@@ -5942,13 +5960,13 @@ class on {
5942
5960
  const e = this.resolveByFilename(
5943
5961
  vr,
5944
5962
  this.root.nested
5945
- ), i = this.findRootItem(e);
5946
- return this.compileMessage(i, []);
5963
+ ), r = this.findRootItem(e);
5964
+ return this.compileMessage(r, []);
5947
5965
  }
5948
- resolveByFilename(e, i) {
5966
+ resolveByFilename(e, r) {
5949
5967
  const f = [];
5950
- for (const s in i) {
5951
- const u = i[s];
5968
+ for (const s in r) {
5969
+ const u = r[s];
5952
5970
  u.filename === e && u instanceof Se.Type && f.push(u);
5953
5971
  const t = u.nested;
5954
5972
  t && f.push(...this.resolveByFilename(e, t));
@@ -5957,16 +5975,16 @@ class on {
5957
5975
  }
5958
5976
  findRootItem(e) {
5959
5977
  var u;
5960
- const i = /* @__PURE__ */ new Map();
5978
+ const r = /* @__PURE__ */ new Map();
5961
5979
  for (const t of e)
5962
5980
  for (const o in t.fields)
5963
- i.has(t.fields[o].type) ? (u = i.get(t.fields[o].type)) == null || u.add(t.name) : i.set(
5981
+ r.has(t.fields[o].type) ? (u = r.get(t.fields[o].type)) == null || u.add(t.name) : r.set(
5964
5982
  t.fields[o].type,
5965
5983
  /* @__PURE__ */ new Set([t.name])
5966
5984
  );
5967
5985
  const f = [];
5968
5986
  for (const t of e) {
5969
- const o = i.get(t.name);
5987
+ const o = r.get(t.name);
5970
5988
  o && ((o == null ? void 0 : o.size) > 1 || !o.has(t.name)) || f.push(t);
5971
5989
  }
5972
5990
  if (f.length < 1)
@@ -5983,8 +6001,8 @@ class on {
5983
6001
  return this.proto3;
5984
6002
  }
5985
6003
  isProto3Required(e) {
5986
- var i;
5987
- return rn(e) ? !1 : ((i = e.options) == null ? void 0 : i.proto3_optional) !== !0 && this.isProto3();
6004
+ var r;
6005
+ return nn(e) ? !1 : ((r = e.options) == null ? void 0 : r.proto3_optional) !== !0 && this.isProto3();
5988
6006
  }
5989
6007
  hasRequiredAnnotation(e) {
5990
6008
  return e !== null && /@Required\b/i.test(e);
@@ -5992,24 +6010,24 @@ class on {
5992
6010
  /**
5993
6011
  * Compiles a protobuf message to JSON schema
5994
6012
  */
5995
- compileMessage(e, i) {
5996
- var o, r;
6013
+ compileMessage(e, r) {
6014
+ var o, i;
5997
6015
  const f = {}, s = {
5998
6016
  title: e.name,
5999
6017
  type: "object",
6000
6018
  required: [],
6001
6019
  properties: f
6002
6020
  }, u = this.extractDescription(e.comment);
6003
- if (u !== null && u.length > 0 && (s.description = u), i.filter((n) => n === e.name).length >= 2)
6021
+ if (u !== null && u.length > 0 && (s.description = u), r.filter((n) => n === e.name).length >= 2)
6004
6022
  return s;
6005
- i.push(e.name);
6023
+ r.push(e.name);
6006
6024
  for (const n in e.fields) {
6007
6025
  const c = e.fields[n];
6008
6026
  if (!(c.partOf && c.partOf.oneof.length > 1))
6009
6027
  if ((c.required || this.isProto3Required(c) || this.hasRequiredAnnotation(c.comment)) && ((o = s.required) == null || o.push(n)), c.repeated) {
6010
6028
  f[c.name] = {
6011
6029
  type: "array",
6012
- items: this.compileField(c, e, i.slice())
6030
+ items: this.compileField(c, e, r.slice())
6013
6031
  };
6014
6032
  const l = this.extractDescription(c.comment);
6015
6033
  if (l !== null && l.length > 0 && (f[c.name].description = l), c.comment) {
@@ -6019,7 +6037,7 @@ class on {
6019
6037
  }
6020
6038
  yr(f[c.name], c), gr(f[c.name], c);
6021
6039
  } else
6022
- f[c.name] = this.compileField(c, e, i.slice());
6040
+ f[c.name] = this.compileField(c, e, r.slice());
6023
6041
  }
6024
6042
  for (const n of e.oneofsArray) {
6025
6043
  if (n.fieldsArray.length < 2)
@@ -6029,28 +6047,28 @@ class on {
6029
6047
  });
6030
6048
  const c = f[n.name].oneOf;
6031
6049
  for (const l of n.oneof) {
6032
- const d = this.compileField(e.fields[l], e, i.slice());
6050
+ const d = this.compileField(e.fields[l], e, r.slice());
6033
6051
  d["x-oneof-item"] = l, c.push(d);
6034
6052
  }
6035
6053
  }
6036
- return (((r = s.required) == null ? void 0 : r.length) ?? 0) < 1 && delete s.required, s;
6054
+ return (((i = s.required) == null ? void 0 : i.length) ?? 0) < 1 && delete s.required, s;
6037
6055
  }
6038
6056
  /**
6039
6057
  * Compiles a protobuf enum to JSON schema
6040
6058
  */
6041
6059
  compileEnum(e) {
6042
- const i = {};
6060
+ const r = {};
6043
6061
  for (const s of Object.keys(e.values))
6044
- i[s] = e.values[s];
6062
+ r[s] = e.values[s];
6045
6063
  const f = {
6046
6064
  title: e.name,
6047
6065
  type: "string",
6048
6066
  enum: Object.keys(e.values),
6049
- "x-enum-mapping": i
6067
+ "x-enum-mapping": r
6050
6068
  };
6051
6069
  return this.addDefaultFromCommentAnnotations(f, e.comment), f;
6052
6070
  }
6053
- compileField(e, i, f) {
6071
+ compileField(e, r, f) {
6054
6072
  let s = {};
6055
6073
  if (Be.PRIMITIVE_TYPES_WITH_LIMITS[e.type.toLowerCase()])
6056
6074
  s = this.mapperOptions.primitiveTypesWithLimits ? Object.assign(
@@ -6061,10 +6079,10 @@ class on {
6061
6079
  Be.PRIMITIVE_TYPES_MINIMAL[e.type.toLowerCase()]
6062
6080
  ), s["x-primitive"] = e.type;
6063
6081
  else {
6064
- const o = i.lookupTypeOrEnum(e.type);
6082
+ const o = r.lookupTypeOrEnum(e.type);
6065
6083
  if (!o)
6066
6084
  throw new Error(
6067
- `Unable to resolve type "${e.type}" @ ${i.fullName}`
6085
+ `Unable to resolve type "${e.type}" @ ${r.fullName}`
6068
6086
  );
6069
6087
  o instanceof Se.Enum ? s = Object.assign(s, this.compileEnum(o)) : s = Object.assign(s, this.compileMessage(o, f)), e.type && (s["x-type"] = e.type);
6070
6088
  }
@@ -6076,7 +6094,7 @@ ${s.description}`.trim() : s.description = u);
6076
6094
  return t !== null && (s.examples = t), s;
6077
6095
  }
6078
6096
  extractDescription(e) {
6079
- return !e || (e == null ? void 0 : e.length) < 1 || (e = e.replace(new RegExp(`\\s{0,15}${wr}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${br}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${sn}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${_r}`, "ig"), "").replace(/\s{0,15}@Required/gi, "").replace(/\s{0,15}@Pattern\s{0,15}[^\r\n]{1,200}/gi, "").replace(
6097
+ return !e || (e == null ? void 0 : e.length) < 1 || (e = e.replace(new RegExp(`\\s{0,15}${wr}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${br}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${on}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${_r}`, "ig"), "").replace(/\s{0,15}@Required/gi, "").replace(/\s{0,15}@Pattern\s{0,15}[^\r\n]{1,200}/gi, "").replace(
6080
6098
  /\s{0,15}@(Min|Max|Minimum|Maximum|ExclusiveMinimum|ExclusiveMaximum|MultipleOf|MaxLength|MinLength|MaxItems|MinItems)\s{0,15}[\d.]{1,20}/gi,
6081
6099
  ""
6082
6100
  ).trim(), e.length < 1) ? null : e;
@@ -6084,16 +6102,16 @@ ${s.description}`.trim() : s.description = u);
6084
6102
  extractExamples(e) {
6085
6103
  if (!e)
6086
6104
  return null;
6087
- const i = [];
6105
+ const r = [];
6088
6106
  let f;
6089
6107
  const s = new RegExp(`\\s*${wr}\\s(.+)$`, "i");
6090
6108
  for (const u of e.split(`
6091
6109
  `))
6092
- (f = s.exec(u)) !== null && i.push(xr(f[1].trim()));
6093
- return i.length < 1 ? null : i;
6110
+ (f = s.exec(u)) !== null && r.push(xr(f[1].trim()));
6111
+ return r.length < 1 ? null : r;
6094
6112
  }
6095
- addValidatorFromCommentAnnotations(e, i) {
6096
- if (i === null || (i == null ? void 0 : i.length) < 1)
6113
+ addValidatorFromCommentAnnotations(e, r) {
6114
+ if (r === null || (r == null ? void 0 : r.length) < 1)
6097
6115
  return;
6098
6116
  const f = /@Min\s([+-]?\d+(\.\d+)?)/i, s = /@Max\s([+-]?\d+(\.\d+)?)/i, u = /@Pattern\s([^\n]+)/i, t = /* @__PURE__ */ new Map([
6099
6117
  ["minimum", /@Minimum\s([+-]?\d+(\.\d+)?)/i],
@@ -6105,20 +6123,20 @@ ${s.description}`.trim() : s.description = u);
6105
6123
  ["minLength", /@MinLength\s(\d+)/i]
6106
6124
  ]);
6107
6125
  let o;
6108
- (o = f.exec(i)) !== null && (e.minimum = parseFloat(o[1])), (o = s.exec(i)) !== null && (e.maximum = parseFloat(o[1])), (o = u.exec(i)) !== null && (e.pattern = o[1].trim());
6109
- for (const r of t.entries())
6110
- (o = r[1].exec(i)) !== null && (e[r[0]] = parseFloat(o[1]));
6126
+ (o = f.exec(r)) !== null && (e.minimum = parseFloat(o[1])), (o = s.exec(r)) !== null && (e.maximum = parseFloat(o[1])), (o = u.exec(r)) !== null && (e.pattern = o[1].trim());
6127
+ for (const i of t.entries())
6128
+ (o = i[1].exec(r)) !== null && (e[i[0]] = parseFloat(o[1]));
6111
6129
  }
6112
- addDefaultFromCommentAnnotations(e, i) {
6113
- if (i === null || (i == null ? void 0 : i.length) < 1)
6130
+ addDefaultFromCommentAnnotations(e, r) {
6131
+ if (r === null || (r == null ? void 0 : r.length) < 1)
6114
6132
  return;
6115
6133
  const f = new RegExp(`\\s*${br}\\s(.+)$`, "i");
6116
6134
  let s;
6117
- (s = f.exec(i)) !== null && (e.default = xr(s[1]));
6135
+ (s = f.exec(r)) !== null && (e.default = xr(s[1]));
6118
6136
  }
6119
6137
  }
6120
- function ln(a) {
6121
- return new on(a).compile();
6138
+ function cn(a) {
6139
+ return new an(a).compile();
6122
6140
  }
6123
6141
  function xr(a) {
6124
6142
  if (a.charAt(0) === "{")
@@ -6131,5 +6149,5 @@ function xr(a) {
6131
6149
  return a;
6132
6150
  }
6133
6151
  export {
6134
- ln as protoToJsonSchema
6152
+ cn as protoToJsonSchema
6135
6153
  };