1/*! 2 * protobuf.js v7.5.4 (c) 2016, daniel wirtz 3 * compiled fri, 15 aug 2025 23:28:55 utc 4 * licensed under the bsd-3-clause license 5 * see: https://github.com/dcodeio/protobuf.js for details 6 */ 7!(function (rt) { 8 "use strict"; 9 !(function (r, e, t) { 10 var i = (function t(i) { 11 var n = e[i]; 12 return ( 13 n || r[i][0].call((n = e[i] = { exports: {} }), t, n, n.exports), 14 n.exports 15 ); 16 })(t[0]); 17 (i.util.global.protobuf = i), 18 "function" == typeof define && 19 define.amd && 20 define(["long"], function (t) { 21 return t && t.isLong && ((i.util.Long = t), i.configure()), i; 22 }), 23 "object" == typeof module && 24 module && 25 module.exports && 26 (module.exports = i); 27 })( 28 { 29 1: [ 30 function (t, i, n) { 31 i.exports = function (t, i) { 32 var n = Array(arguments.length - 1), 33 s = 0, 34 r = 2, 35 o = !0; 36 for (; r < arguments.length; ) n[s++] = arguments[r++]; 37 return new Promise(function (r, e) { 38 n[s] = function (t) { 39 if (o) 40 if (((o = !1), t)) e(t); 41 else { 42 for ( 43 var i = Array(arguments.length - 1), n = 0; 44 n < i.length; 45 46 ) 47 i[n++] = arguments[n]; 48 r.apply(null, i); 49 } 50 }; 51 try { 52 t.apply(i || null, n); 53 } catch (t) { 54 o && ((o = !1), e(t)); 55 } 56 }); 57 }; 58 }, 59 {}, 60 ], 61 2: [ 62 function (t, i, n) { 63 n.length = function (t) { 64 var i = t.length; 65 if (!i) return 0; 66 for (var n = 0; 1 < --i % 4 && "=" == (t[0 | i] || ""); ) ++n; 67 return Math.ceil(3 * t.length) / 4 - n; 68 }; 69 for (var h = Array(64), f = Array(123), r = 0; r < 64; ) 70 f[ 71 (h[r] = 72 r < 26 73 ? r + 65 74 : r < 52 75 ? r + 71 76 : r < 62 77 ? r - 4 78 : (r - 59) | 43) 79 ] = r++; 80 n.encode = function (t, i, n) { 81 for (var r, e = null, s = [], o = 0, u = 0; i < n; ) { 82 var f = t[i++]; 83 switch (u) { 84 case 0: 85 (s[o++] = h[f >> 2]), (r = (3 & f) << 4), (u = 1); 86 break; 87 case 1: 88 (s[o++] = h[r | (f >> 4)]), (r = (15 & f) << 2), (u = 2); 89 break; 90 case 2: 91 (s[o++] = h[r | (f >> 6)]), (s[o++] = h[63 & f]), (u = 0); 92 } 93 8191 < o && 94 ((e = e || []).push(String.fromCharCode.apply(String, s)), 95 (o = 0)); 96 } 97 return ( 98 u && ((s[o++] = h[r]), (s[o++] = 61), 1 === u && (s[o++] = 61)), 99 e 100 ? (o && 101 e.push(String.fromCharCode.apply(String, s.slice(0, o))), 102 e.join("")) 103 : String.fromCharCode.apply(String, s.slice(0, o)) 104 ); 105 }; 106 var a = "invalid encoding"; 107 (n.decode = function (t, i, n) { 108 for (var r, e = n, s = 0, o = 0; o < t.length; ) { 109 var u = t.charCodeAt(o++); 110 if (61 == u && 1 < s) break; 111 if ((u = f[u]) === rt) throw Error(a); 112 switch (s) { 113 case 0: 114 (r = u), (s = 1); 115 break; 116 case 1: 117 (i[n++] = (r << 2) | ((48 & u) >> 4)), (r = u), (s = 2); 118 break; 119 case 2: 120 (i[n++] = ((15 & r) << 4) | ((60 & u) >> 2)), 121 (r = u), 122 (s = 3); 123 break; 124 case 3: 125 (i[n++] = ((3 & r) << 6) | u), (s = 0); 126 } 127 } 128 if (1 === s) throw Error(a); 129 return n - e; 130 }), 131 (n.test = function (t) { 132 return /^(?:[A-Za-z0-9+/]{4}
132)*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test( 133 t 134 ); 135 }); 136 }, 137 {}, 138 ], 139 3: [ 140 function (t, i, n) { 141 function c(i, n) { 142 "string" == typeof i && ((n = i), (i = rt)); 143 var f = []; 144 function h(t) { 145 if ("string" != typeof t) { 146 var i = a(); 147 if ( 148 (c.verbose && console.log("codegen: " + i), 149 (i = "return " + i), 150 t) 151 ) { 152 for ( 153 var n = Object.keys(t), 154 r = Array(n.length + 1), 155 e = Array(n.length), 156 s = 0; 157 s < n.length; 158 159 ) 160 (r[s] = n[s]), (e[s] = t[n[s++]]); 161 return (r[s] = i), Function.apply(null, r).apply(null, e); 162 } 163 return Function(i)(); 164 } 165 for (var o = Array(arguments.length - 1), u = 0; u < o.length; ) 166 o[u] = arguments[++u]; 167 if ( 168 ((u = 0), 169 (t = t.replace(/%([%dfijs])/g, function (t, i) { 170 var n = o[u++]; 171 switch (i) { 172 case "d": 173 case "f": 174 return "" + +("" + n); 175 case "i": 176 return "" + Math.floor(n); 177 case "j": 178 return JSON.stringify(n); 179 case "s": 180 return "" + n; 181 } 182 return "%"; 183 })), 184 u !== o.length) 185 ) 186 throw Error("parameter count mismatch"); 187 return f.push(t), h; 188 } 189 function a(t) { 190 return ( 191 "function " + 192 (t || n || "") + 193 "(" + 194 ((i && i.join(",")) || "") + 195 "){\n " + 196 f.join("\n ") + 197 "\n}" 198 ); 199 } 200 return (h.toString = a), h; 201 } 202 (i.exports = c).verbose = !1; 203 }, 204 {}, 205 ], 206 4: [ 207 function (t, i, n) { 208 function r() { 209 this.i = {}; 210 } 211 ((i.exports = r).prototype.on = function (t, i, n) { 212 return ( 213 (this.i[t] || (this.i[t] = [])).push({ fn: i, ctx: n || this }), 214 this 215 ); 216 }), 217 (r.prototype.off = function (t, i) { 218 if (t === rt) this.i = {}; 219 else if (i === rt) this.i[t] = []; 220 else 221 for (var n = this.i[t], r = 0; r < n.length; ) 222 n[r].fn === i ? n.splice(r, 1) : ++r; 223 return this; 224 }), 225 (r.prototype.emit = function (t) { 226 var i = this.i[t]; 227 if (i) { 228 for (var n = [], r = 1; r < arguments.length; ) 229 n.push(arguments[r++]); 230 for (r = 0; r < i.length; ) i[r].fn.apply(i[r++].ctx, n); 231 } 232 return this; 233 }); 234 }, 235 {}, 236 ], 237 5: [ 238 function (t, i, n) { 239 i.exports = u; 240 var s = t(1), 241 o = t(7)("fs"); 242 function u(n, r, e) { 243 return ( 244 (r = "function" == typeof r ? ((e = r), {}) : r || {}), 245 e 246 ? !r.xhr && o && o.readFile 247 ? o.readFile(n, function (t, i) { 248 return t && "undefined" != typeof XMLHttpRequest 249 ? u.xhr(n, r, e) 250 : t 251 ? e(t) 252 : e(null, r.binary ? i : i.toString("utf8")); 253 }) 254 : u.xhr(n, r, e) 255 : s(u, this, n, r) 256 ); 257 } 258 u.xhr = function (t, n, r) { 259 var e = new XMLHttpRequest(); 260 (e.onreadystatechange = function () { 261 if (4 !== e.readyState) return rt; 262 if (0 !== e.status && 200 !== e.status) 263 return r(Error("status " + e.status)); 264 if (n.binary) { 265 if (!(t = e.response)) 266 for (var t = [], i = 0; i < e.responseText.length; ++i) 267 t.push(255 & e.responseText.charCodeAt(i)); 268 return r( 269 null, 270 "undefined" != typeof Uint8Array ? new Uint8Array(t) : t 271 ); 272 } 273 return r(null, e.responseText); 274 }), 275 n.binary && 276 ("overrideMimeType" in e && 277 e.overrideMimeType("text/plain;
277 charset=x-user-defined"), 278 (e.responseType = "arraybuffer")), 279 e.open("GET", t), 280 e.send(); 281 }; 282 }, 283 { 1: 1, 7: 7 }, 284 ], 285 6: [ 286 function (t, i, n) { 287 function r(t) { 288 function i(t, i, n, r) { 289 var e = i < 0 ? 1 : 0; 290 t( 291 0 === (i = e ? -i : i) 292 ? 0 < 1 / i 293 ? 0 294 : 2147483648 295 : isNaN(i) 296 ? 2143289344 297 : 34028234663852886e22 < i 298 ? ((e << 31) | 2139095040) >>> 0 299 : i < 11754943508222875e-54 300 ? ((e << 31) | Math.round(i / 1401298464324817e-60)) >>> 0 301 : ((e << 31) | 302 ((127 + (t = Math.floor(Math.log(i) / Math.LN2))) << 23) | 303 (8388607 & Math.round(i * Math.pow(2, -t) * 8388608))) >>> 304 0, 305 n, 306 r 307 ); 308 } 309 function n(t, i, n) { 310 (t = t(i, n)), 311 (i = 2 * (t >> 31) + 1), 312 (n = (t >>> 23) & 255), 313 (t &= 8388607); 314 return 255 == n 315 ? t 316 ? NaN 317 : (1 / 0) * i 318 : 0 == n 319 ? 1401298464324817e-60 * i * t 320 : i * Math.pow(2, n - 150) * (8388608 + t); 321 } 322 function r(t, i, n) { 323 (u[0] = t), 324 (i[n] = f[0]), 325 (i[n + 1] = f[1]), 326 (i[n + 2] = f[2]), 327 (i[n + 3] = f[3]); 328 } 329 function e(t, i, n) { 330 (u[0] = t), 331 (i[n] = f[3]), 332 (i[n + 1] = f[2]), 333 (i[n + 2] = f[1]), 334 (i[n + 3] = f[0]); 335 } 336 function s(t, i) { 337 return ( 338 (f[0] = t[i]), 339 (f[1] = t[i + 1]), 340 (f[2] = t[i + 2]), 341 (f[3] = t[i + 3]), 342 u[0] 343 ); 344 } 345 function o(t, i) { 346 return ( 347 (f[3] = t[i]), 348 (f[2] = t[i + 1]), 349 (f[1] = t[i + 2]), 350 (f[0] = t[i + 3]), 351 u[0] 352 ); 353 } 354 var u, f, h, a, c; 355 function l(t, i, n, r, e, s) { 356 var o, 357 u = r < 0 ? 1 : 0; 358 0 === (r = u ? -r : r) 359 ? (t(0, e, s + i), t(0 < 1 / r ? 0 : 2147483648, e, s + n)) 360 : isNaN(r) 361 ? (t(0, e, s + i), t(2146959360, e, s + n)) 362 : 17976931348623157e292 < r 363 ? (t(0, e, s + i), t(((u << 31) | 2146435072) >>> 0, e, s + n)) 364 : r < 22250738585072014e-324 365 ? (t((o = r / 5e-324) >>> 0, e, s + i), 366 t(((u << 31) | (o / 4294967296)) >>> 0, e, s + n)) 367 : (t( 368 (4503599627370496 * 369 (o = 370 r * 371 Math.pow( 372 2, 373 -(r = 374 1024 === (r = Math.floor(Math.log(r) / Math.LN2)) 375 ? 1023 376 : r) 377 ))) >>> 378 0, 379 e, 380 s + i 381 ), 382 t( 383 ((u << 31) | 384 ((r + 1023) << 20) | 385 ((1048576 * o) & 1048575)) >>> 386 0, 387 e, 388 s + n 389 )); 390 } 391 function d(t, i, n, r, e) { 392 (i = t(r, e + i)), 393 (t = t(r, e + n)), 394 (r = 2 * (t >> 31) + 1), 395 (e = (t >>> 20) & 2047), 396 (n = 4294967296 * (1048575 & t) + i); 397 return 2047 == e 398 ? n 399 ? NaN 400 : (1 / 0) * r 401 : 0 == e 402 ? 5e-324 * r * n 403 : r * Math.pow(2, e - 1075) * (n + 4503599627370496); 404 } 405 function p(t, i, n) { 406 (h[0] = t), 407 (i[n] = a[0]), 408 (i[n + 1] = a[1]), 409 (i[n + 2] = a[2]), 410 (i[n + 3] = a[3]), 411 (i[n + 4] = a[4]), 412 (i[n + 5] = a[5]), 413 (i[n + 6] = a[6]), 414 (i[n + 7] = a[7]); 415 } 416 function v(t, i, n) { 417 (h[0] = t), 418 (i[n] = a[7]), 419 (i[n + 1] = a[6]), 420 (i[n + 2] = a[5]), 421 (i[n + 3] = a[4]), 422 (i[n + 4] = a[3]), 423 (i[n + 5] = a[2]), 424 (i[n + 6] = a[1]), 425 (i[n + 7] = a[0]); 426 } 427 function b(t, i) { 428 return ( 429 (a[0] = t[i]), 430 (a[1] = t[i + 1]), 431 (a[2] = t[i + 2]), 432 (a[3] = t[i + 3]), 433 (a[4] = t[i + 4]), 434 (a[5] = t[i + 5]), 435 (a[6] = t[i + 6]), 436 (a[7] = t[i + 7]), 437 h[0] 438 ); 439 } 440 function w(t, i) { 441 return ( 442 (a[7] = t[i]), 443 (a[6] = t[i + 1]), 444 (a[5] = t[i + 2]), 445 (a[4] = t[i + 3]), 446 (a[3] = t[i + 4]), 447 (a[2] = t[i + 5]), 448 (a[1] = t[i + 6]), 449 (a[0] = t[i + 7]), 450 h[0] 451 ); 452 } 453 return ( 454 "undefined" != typeof Float32Array 455 ? ((u = new Float32Array([-0])), 456 (f = new Uint8Array(u.buffer)), 457 (c = 128 === f[3]), 458 (t.writeFloatLE = c ? r : e), 459 (t.writeFloatBE = c ? e : r), 460 (t.readFloatLE = c ? s : o), 461 (t.readFloatBE = c ? o : s)) 462 : ((t.writeFloatLE = i.bind(null, y)), 463 (t.writeFloatBE = i.bind(null, m)), 464 (t.readFloatLE = n.bind(null, g)), 465 (t.readFloatBE = n.bind(null, j))), 466 "undefined" != typeof Float64Array 467 ? ((h = new Float64Array([-0])), 468 (a = new Uint8Array(h.buffer)), 469 (c = 128 === a[7]), 470 (t.writeDoubleLE = c ? p : v), 471 (t.writeDoubleBE = c ? v : p), 472 (t.readDoubleLE = c ? b : w), 473 (t.readDoubleBE = c ? w : b)) 474 : ((t.writeDoubleLE = l.bind(null, y, 0, 4)), 475 (t.writeDoubleBE = l.bind(null, m, 4, 0)), 476 (t.readDoubleLE = d.bind(null, g, 0, 4)), 477 (t.readDoubleBE = d.bind(null, j, 4, 0))), 478 t 479 ); 480 } 481 function y(t, i, n) { 482 (i[n] = 255 & t), 483 (i[n + 1] = (t >>> 8) & 255), 484 (i[n + 2] = (t >>> 16) & 255), 485 (i[n + 3] = t >>> 24); 486 } 487 function m(t, i, n) { 488 (i[n] = t >>> 24), 489 (i[n + 1] = (t >>> 16) & 255), 490 (i[n + 2] = (t >>> 8) & 255), 491 (i[n + 3] = 255 & t); 492 } 493 function g(t, i) { 494 return ( 495 (t[i] | (t[i + 1] << 8) | (t[i + 2] << 16) | (t[i + 3] << 24)) >>> 496 0 497 ); 498 } 499 function j(t, i) { 500 return ( 501 ((t[i] << 24) | (t[i + 1] << 16) | (t[i + 2] << 8) | t[i + 3]) >>> 502 0 503 ); 504 } 505 i.exports = r(r); 506 }, 507 {}, 508 ], 509 7: [ 510 function (t, i, n) { 511 function r(t) { 512 try { 513 var i = eval("require")(t); 514 if (i && (i.length || Object.keys(i).length)) return i; 515 } catch (t) {} 516 return null; 517 } 518 i.exports = r; 519 }, 520 {}, 521 ], 522 8: [ 523 function (t, i, n) { 524 var e = (n.isAbsolute = function (t) { 525 return /^(?:\/|\w+:)/.test(t); 526 }), 527 r = (n.normalize = function (t) { 528 var i = (t = t.replace(/\\/g, "/").replace(/\/{2,}/g, "/")).split( 529 "/" 530 ), 531 n = e(t), 532 t = ""; 533 n && (t = i.shift() + "/"); 534 for (var r = 0; r < i.length; ) 535 ".." === i[r] 536 ? 0 < r && ".." !== i[r - 1] 537 ? i.splice(--r, 2) 538 : n 539 ? i.splice(r, 1) 540 : ++r 541 : "." === i[r] 542 ? i.splice(r, 1) 543 : ++r; 544 return t + i.join("/"); 545 }); 546 n.resolve = function (t, i, n) { 547 return ( 548 n || (i = r(i)), 549 !e(i) && 550 (t = (t = n ? t : r(t)).replace(/(?:\/|^)[^/]+$/, "")).length 551 ? r(t + "/" + i) 552 : i 553 ); 554 }; 555 }, 556 {}, 557 ], 558 9: [ 559 function (t, i, n) { 560 i.exports = function (i, n, t) { 561 var r = t || 8192, 562 e = r >>> 1, 563 s = null, 564 o = r; 565 return function (t) { 566 if (t < 1 || e < t) return i(t);
567 r < o + t && ((s = i(r)), (o = 0)); 568 t = n.call(s, o, (o += t)); 569 return 7 & o && (o = 1 + (7 | o)), t; 570 }; 571 }; 572 }, 573 {}, 574 ], 575 10: [ 576 function (t, i, n) { 577 (n.length = function (t) { 578 for (var i, n = 0, r = 0; r < t.length; ++r) 579 (i = t.charCodeAt(r)) < 128 580 ? (n += 1) 581 : i < 2048 582 ? (n += 2) 583 : 55296 == (64512 & i) && 56320 == (64512 & t.charCodeAt(r + 1)) 584 ? (++r, (n += 4)) 585 : (n += 3); 586 return n; 587 }), 588 (n.read = function (t, i, n) { 589 if (n - i < 1) return ""; 590 for (var r, e = null, s = [], o = 0; i < n; ) 591 (r = t[i++]) < 128 592 ? (s[o++] = r) 593 : 191 < r && r < 224 594 ? (s[o++] = ((31 & r) << 6) | (63 & t[i++])) 595 : 239 < r && r < 365 596 ? ((r = 597 (((7 & r) << 18) | 598 ((63 & t[i++]) << 12) | 599 ((63 & t[i++]) << 6) | 600 (63 & t[i++])) - 601 65536), 602 (s[o++] = 55296 + (r >> 10)), 603 (s[o++] = 56320 + (1023 & r))) 604 : (s[o++] = 605 ((15 & r) << 12) | ((63 & t[i++]) << 6) | (63 & t[i++])), 606 8191 < o && 607 ((e = e || []).push(String.fromCharCode.apply(String, s)), 608 (o = 0)); 609 return e 610 ? (o && 611 e.push(String.fromCharCode.apply(String, s.slice(0, o))), 612 e.join("")) 613 : String.fromCharCode.apply(String, s.slice(0, o)); 614 }), 615 (n.write = function (t, i, n) { 616 for (var r, e, s = n, o = 0; o < t.length; ++o) 617 (r = t.charCodeAt(o)) < 128 618 ? (i[n++] = r) 619 : (r < 2048 620 ? (i[n++] = (r >> 6) | 192) 621 : (55296 == (64512 & r) && 622 56320 == (64512 & (e = t.charCodeAt(o + 1))) 623 ? (++o, 624 (i[n++] = 625 ((r = 65536 + ((1023 & r) << 10) + (1023 & e)) >> 626 18) | 627 240), 628 (i[n++] = ((r >> 12) & 63) | 128)) 629 : (i[n++] = (r >> 12) | 224), 630 (i[n++] = ((r >> 6) & 63) | 128)), 631 (i[n++] = (63 & r) | 128)); 632 return n - s; 633 }); 634 }, 635 {}, 636 ], 637 11: [ 638 function (t, i, n) { 639 i.exports = e; 640 var r = /\/|\./; 641 function e(t, i) { 642 r.test(t) || 643 ((t = "google/protobuf/" + t + ".proto"), 644 (i = { 645 nested: { google: { nested: { protobuf: { nested: i } } } }, 646 })), 647 (e[t] = i); 648 } 649 e("any", { 650 Any: { 651 fields: { 652 type_url: { type: "string", id: 1 }, 653 value: { type: "bytes", id: 2 }, 654 }, 655 }, 656 }), 657 e("duration", { 658 Duration: (i = { 659 fields: { 660 seconds: { type: "int64", id: 1 }, 661 nanos: { type: "int32", id: 2 }, 662 }, 663 }), 664 }), 665 e("timestamp", { Timestamp: i }), 666 e("empty", { Empty: { fields: {} } }), 667 e("struct", { 668 Struct: { 669 fields: { fields: { keyType: "string", type: "Value", id: 1 } }, 670 }, 671 Value: { 672 oneofs: { 673 kind: { 674 oneof: [ 675 "nullValue", 676 "numberValue", 677 "stringValue", 678 "boolValue", 679 "structValue", 680 "listValue", 681 ], 682 }, 683 }, 684 fields: { 685 nullValue: { type: "NullValue", id: 1 }, 686 numberValue: { type: "double", id: 2 },
687 stringValue: { type: "string", id: 3 }, 688 boolValue: { type: "bool", id: 4 }, 689 structValue: { type: "Struct", id: 5 }, 690 listValue: { type: "ListValue", id: 6 }, 691 }, 692 }, 693 NullValue: { values: { NULL_VALUE: 0 } }, 694 ListValue: { 695 fields: { values: { rule: "repeated", type: "Value", id: 1 } }, 696 }, 697 }), 698 e("wrappers", { 699 DoubleValue: { fields: { value: { type: "double", id: 1 } } }, 700 FloatValue: { fields: { value: { type: "float", id: 1 } } }, 701 Int64Value: { fields: { value: { type: "int64", id: 1 } } }, 702 UInt64Value: { fields: { value: { type: "uint64", id: 1 } } }, 703 Int32Value: { fields: { value: { type: "int32", id: 1 } } }, 704 UInt32Value: { fields: { value: { type: "uint32", id: 1 } } }, 705 BoolValue: { fields: { value: { type: "bool", id: 1 } } }, 706 StringValue: { fields: { value: { type: "string", id: 1 } } }, 707 BytesValue: { fields: { value: { type: "bytes", id: 1 } } }, 708 }), 709 e("field_mask", { 710 FieldMask: { 711 fields: { paths: { rule: "repeated", type: "string", id: 1 } }, 712 }, 713 }), 714 (e.get = function (t) { 715 return e[t] || null; 716 }); 717 }, 718 {}, 719 ], 720 12: [ 721 function (t, i, n) { 722 var l = t(15), 723 d = t(37); 724 function o(t, i, n, r) { 725 var e = !1; 726 if (i.resolvedType) 727 if (i.resolvedType instanceof l) { 728 t("switch(d%s){", r); 729 for ( 730 var s = i.resolvedType.values, o = Object.keys(s), u = 0; 731 u < o.length; 732 ++u 733 ) 734 s[o[u]] !== i.typeDefault || 735 e || 736 (t("default:")( 737 'if(typeof(d%s)==="number"){m%s=d%s;break}', 738 r, 739 r, 740 r 741 ), 742 i.repeated || t("break"), 743 (e = !0)), 744 t("case%j:", o[u])("case %i:", s[o[u]])( 745 "m%s=%j", 746 r, 747 s[o[u]] 748 )("break"); 749 t("}"); 750 } else 751 t('if(typeof d%s!=="object")', r)( 752 "throw TypeError(%j)", 753 i.fullName + ": object expected" 754 )("m%s=types[%i].fromObject(d%s)", r, n, r); 755 else { 756 var f = !1; 757 switch (i.type) { 758 case "double": 759 case "float": 760 t("m%s=Number(d%s)", r, r); 761 break; 762 case "uint32": 763 case "fixed32": 764 t("m%s=d%s>>>0", r, r); 765 break; 766 case "int32": 767 case "sint32": 768 case "sfixed32": 769 t("m%s=d%s|0", r, r); 770 break; 771 case "uint64": 772 f = !0; 773 case "int64": 774 case "sint64": 775 case "fixed64": 776 case "sfixed64": 777 t("if(util.Long)")( 778 "(m%s=util.Long.fromValue(d%s)).unsigned=%j", 779 r, 780 r, 781 f 782 )('else if(typeof d%s==="string")', r)( 783 "m%s=parseInt(d%s,10)", 784 r, 785 r 786 )('else if(typeof d%s==="number")', r)( 787 "m%s=d%s", 788 r, 789 r 790 )('else if(typeof d%s==="object")', r)( 791 "m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)", 792 r, 793 r, 794 r, 795 f ? "true" : "" 796 ); 797 break; 798 case "bytes": 799 t('if(typeof d%s==="string")', r)( 800 "util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)", 801 r, 802 r, 803 r 804 )("else if(d%s.length >= 0)", r)("m%s=d%s", r, r); 805 break; 806 case "string": 807 t("m%s=String(d%s)", r, r); 808 break; 809 case "bool": 810 t("m%s=Boolean(d%s)", r, r); 811 } 812 } 813 return t; 814 } 815 function p(t, i, n, r) { 816 if (i.resolvedType) 817 i.resolvedType instanceof l 818 ? t(
819 "d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", 820 r, 821 n, 822 r, 823 r, 824 n, 825 r, 826 r 827 ) 828 : t("d%s=types[%i].toObject(m%s,o)", r, n, r); 829 else { 830 var e = !1; 831 switch (i.type) { 832 case "double": 833 case "float": 834 t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s", r, r, r, r); 835 break; 836 case "uint64": 837 e = !0; 838 case "int64": 839 case "sint64": 840 case "fixed64": 841 case "sfixed64": 842 t('if(typeof m%s==="number")', r)( 843 "d%s=o.longs===String?String(m%s):m%s", 844 r, 845 r, 846 r 847 )("else")( 848 "d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s", 849 r, 850 r, 851 r, 852 r, 853 e ? "true" : "", 854 r 855 ); 856 break; 857 case "bytes": 858 t( 859 "d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s", 860 r, 861 r, 862 r, 863 r, 864 r 865 ); 866 break; 867 default: 868 t("d%s=m%s", r, r); 869 } 870 } 871 return t; 872 } 873 (n.fromObject = function (t) { 874 var i = t.fieldsArray, 875 n = d.codegen( 876 ["d"], 877 t.name + "$fromObject" 878 )("if(d instanceof this.ctor)")("return d"); 879 if (!i.length) return n("return new this.ctor"); 880 n("var m=new this.ctor"); 881 for (var r = 0; r < i.length; ++r) { 882 var e = i[r].resolve(), 883 s = d.safeProp(e.name); 884 e.map 885 ? (n("if(d%s){", s)('if(typeof d%s!=="object")', s)( 886 "throw TypeError(%j)", 887 e.fullName + ": object expected" 888 )("m%s={}", s)( 889 "for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", 890 s 891 ), 892 o(n, e, r, s + "[ks[i]]")("}")("}")) 893 : e.repeated 894 ? (n("if(d%s){", s)("if(!Array.isArray(d%s))", s)( 895 "throw TypeError(%j)", 896 e.fullName + ": array expected" 897 )("m%s=[]", s)("for(var i=0;i<d%s.length;++i){", s), 898 o(n, e, r, s + "[i]")("}")("}")) 899 : (e.resolvedType instanceof l || n("if(d%s!=null){", s), 900 o(n, e, r, s), 901 e.resolvedType instanceof l || n("}")); 902 } 903 return n("return m"); 904 }), 905 (n.toObject = function (t) { 906 var i = t.fieldsArray.slice().sort(d.compareFieldsById); 907 if (!i.length) return d.codegen()("return {}"); 908 for ( 909 var n = d.codegen(["m", "o"], t.name + "$toObject")("if(!o)")( 910 "o={}" 911 )("var d={}"), 912 r = [], 913 e = [], 914 s = [], 915 o = 0; 916 o < i.length; 917 ++o 918 ) 919 i[o].partOf || 920 (i[o].resolve().repeated ? r : i[o].map ? e : s).push(i[o]); 921 if (r.length) { 922 for (n("if(o.arrays||o.defaults){"), o = 0; o < r.length; ++o) 923 n("d%s=[]", d.safeProp(r[o].name)); 924 n("}"); 925 } 926 if (e.length) { 927 for (n("if(o.objects||o.defaults){"), o = 0; o < e.length; ++o) 928 n("d%s={}", d.safeProp(e[o].name)); 929 n("}"); 930 } 931 if (s.length) { 932 for (n("if(o.defaults){"), o = 0; o < s.length; ++o) { 933 var u, 934 f = s[o], 935 h = d.safeProp(f.name); 936 f.resolvedType instanceof l 937 ? n( 938 "d%s=o.enums===String?%j:%j", 939 h, 940 f.resolvedType.valuesById[f.typeDefault], 941 f.typeDefault 942 ) 943 : f.long 944 ? n("if(util.Long){")( 945 "var n=new util.Long(%i,%i,%j)", 946 f.typeDefault.low, 947 f.typeDefault.high, 948 f.typeDefault.unsigned 949 )( 950 "d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", 951 h 952 )("}else")( 953 "d%s=o.longs===String?%j:%i", 954 h, 955 f.typeDefault.toString(), 956 f.typeDefault.toNumber() 957 ) 958 : f.bytes 959 ? ((u = 960 "[" + 961 Array.prototype.slice.call(f.typeDefault).join(",") + 962 "]"), 963 n( 964 "if(o.bytes===String)d%s=%j", 965 h, 966 String.fromCharCode.apply(String, f.typeDefault) 967 )("else{")("d%s=%s", h, u)( 968 "if(o.bytes!==Array)d%s=util.newBuffer(d%s)", 969 h, 970 h 971 )("}")) 972 : n("d%s=%j", h, f.typeDefault); 973 } 974 n("}"); 975 } 976 for (var a = !1, o = 0; o < i.length; ++o) { 977 var f = i[o], 978 c = t.e.indexOf(f), 979 h = d.safeProp(f.name); 980 f.map 981 ? (a || ((a = !0), n("var ks2")), 982 n( 983 "if(m%s&&(ks2=Object.keys(m%s)).length){", 984 h, 985 h 986 )( 987 "d%s={}", 988 h 989 )("for(var j=0;j<ks2.length;++j){"), 990 p(n, f, c, h + "[ks2[j]]")("}")) 991 : f.repeated 992 ? (n("if(m%s&&m%s.length){", h, h)("d%s=[]", h)( 993 "for(var j=0;j<m%s.length;++j){", 994 h 995 ), 996 p(n, f, c, h + "[j]")("}")) 997 : (n("if(m%s!=null&&m.hasOwnProperty(%j)){", h, f.n
997ame), 998 p(n, f, c, h), 999 f.partOf && 1000 n("if(o.oneofs)")( 1001 "d%s=%j", 1002 d.safeProp(f.partOf.name), 1003 f.name 1004 )), 1005 n("}"); 1006 } 1007 return n("return d"); 1008 }); 1009 }, 1010 { 15: 15, 37: 37 }, 1011 ], 1012 13: [ 1013 function (t, i, n) { 1014 i.exports = function (t) { 1015 for ( 1016 var i = h.codegen( 1017 ["r", "l", "e"], 1018 t.name + "$decode" 1019 )("if(!(r instanceof Reader))")("r=Reader.create(r)")( 1020 "var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + 1021 (t.fieldsArray.filter(function (t) { 1022 return t.map; 1023 }).length 1024 ? ",k,value" 1025 : "") 1026 )("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")( 1027 "switch(t>>>3){" 1028 ), 1029 n = 0; 1030 n < t.fieldsArray.length; 1031 ++n 1032 ) { 1033 var r = t.e[n].resolve(), 1034 e = r.resolvedType instanceof u ? "int32" : r.type, 1035 s = "m" + h.safeProp(r.name); 1036 i("case %i: {", r.id), 1037 r.map 1038 ? (i("if(%s===util.emptyObject)", s)("%s={}", s)( 1039 "var c2 = r.uint32()+r.pos" 1040 ), 1041 f.defaults[r.keyType] !== rt 1042 ? i("k=%j", f.defaults[r.keyType]) 1043 : i("k=null"), 1044 f.defaults[e] !== rt 1045 ? i("value=%j", f.defaults[e]) 1046 : i("value=null"), 1047 i("while(r.pos<c2){")("var tag2=r.uint32()")( 1048 "switch(tag2>>>3){" 1049 )( 1050 "case 1: k=r.%s(); break", 1051 r.keyType 1052 )("case 2:"), 1053 f.basic[e] === rt 1054 ? i("value=types[%i].decode(r,r.uint32())", n) 1055 : i("value=r.%s()", e), 1056 i("break")("default:")("r.skipType(tag2&7)")("break")("}")( 1057 "}" 1058 ), 1059 f.long[r.keyType] !== rt 1060 ? i( 1061 '%s[typeof k==="object"?util.longToHash(k):k]=value', 1062 s 1063 ) 1064 : i("%s[k]=value", s)) 1065 : r.repeated 1066 ? (i("if(!(%s&&%s.length))", s, s)("%s=[]", s), 1067 f.packed[e] !== rt && 1068 i("if((t&7)===2){")("var c2=r.uint32()+r.pos")( 1069 "while(r.pos<c2)" 1070 )( 1071 "%s.push(r.%s())", 1072 s, 1073 e 1074 )("}else"), 1075 f.basic[e] === rt 1076 ? i( 1077 r.delimited 1078 ? "%s.push(types[%i].decode(r,undefined,((t&~7)|4)))" 1079 : "%s.push(types[%i].decode(r,r.uint32()))", 1080 s, 1081 n 1082 ) 1083 : i("%s.push(r.%s())", s, e)) 1084 : f.basic[e] === rt 1085 ? i( 1086 r.delimited 1087 ? "%s=types[%i].decode(r,undefined,((t&~7)|4))" 1088 : "%s=types[%i].decode(r,r.uint32())", 1089 s, 1090 n 1091 ) 1092 : i("%s=r.%s()", s, e), 1093 i("break")("}"); 1094 } 1095 for ( 1096 i("default:")("r.skipType(t&7)")("break")("}")("}"), n = 0; 1097 n < t.e.length; 1098 ++n 1099 ) { 1100 var o = t.e[n]; 1101 o.required && 1102 i("if(!m.hasOwnProperty(%j))", o.name)( 1103 "throw util.ProtocolError(%j,{instance:m})", 1104 "missing required '" + o.name + "'" 1105 ); 1106 } 1107 return i("return m"); 1108 }; 1109 var u = t(15), 1110 f = t(36), 1111 h = t(37); 1112 }, 1113 { 15: 15, 36: 36, 37: 37 }, 1114 ], 1115 14: [ 1116 function (t, i, n) { 1117 i.exports = function (t) { 1118 for ( 1119 var i,
1120 n = c.codegen(["m", "w"], t.name + "$encode")("if(!w)")( 1121 "w=Writer.create()" 1122 ), 1123 r = t.fieldsArray.slice().sort(c.compareFieldsById), 1124 e = 0; 1125 e < r.length; 1126 ++e 1127 ) { 1128 var s = r[e].resolve(), 1129 o = t.e.indexOf(s), 1130 u = s.resolvedType instanceof h ? "int32" : s.type, 1131 f = a.basic[u]; 1132 (i = "m" + c.safeProp(s.name)), 1133 s.map 1134 ? (n( 1135 "if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", 1136 i, 1137 s.name 1138 )("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", i)( 1139 "w.uint32(%i).fork().uint32(%i).%s(ks[i])", 1140 ((s.id << 3) | 2) >>> 0, 1141 8 | a.mapKey[s.keyType], 1142 s.keyType 1143 ), 1144 f === rt 1145 ? n( 1146 "types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", 1147 o, 1148 i 1149 ) 1150 : n(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | f, u, i), 1151 n("}")("}")) 1152 : s.repeated 1153 ? (n("if(%s!=null&&%s.length){", i, i), 1154 s.packed && a.packed[u] !== rt 1155 ? n("w.uint32(%i).fork()", ((s.id << 3) | 2) >>> 0)( 1156 "for(var i=0;i<%s.length;++i)", 1157 i 1158 )( 1159 "w.%s(%s[i])", 1160 u, 1161 i 1162 )("w.ldelim()") 1163 : (n("for(var i=0;i<%s.length;++i)", i), 1164 f === rt 1165 ? l(n, s, o, i + "[i]") 1166 : n( 1167 "w.uint32(%i).%s(%s[i])", 1168 ((s.id << 3) | f) >>> 0, 1169 u, 1170 i 1171 )), 1172 n("}")) 1173 : (s.optional && 1174 n( 1175 "if(%s!=null&&Object.hasOwnProperty.call(m,%j))", 1176 i, 1177 s.name 1178 ), 1179 f === rt 1180 ? l(n, s, o, i) 1181 : n( 1182 "w.uint32(%i).%s(%s)", 1183 ((s.id << 3) | f) >>> 0, 1184 u, 1185 i 1186 )); 1187 } 1188 return n("return w"); 1189 }; 1190 var h = t(15), 1191 a = t(36), 1192 c = t(37); 1193 function l(t, i, n, r) { 1194 i.delimited 1195 ? t( 1196 "types[%i].encode(%s,w.uint32(%i)).uint32(%i)", 1197 n, 1198 r, 1199 ((i.id << 3) | 3) >>> 0, 1200 ((i.id << 3) | 4) >>> 0 1201 ) 1202 : t( 1203 "types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", 1204 n, 1205 r, 1206 ((i.id << 3) | 2) >>> 0 1207 ); 1208 } 1209 }, 1210 { 15: 15, 36: 36, 37: 37 }, 1211 ], 1212 15: [ 1213 function (t, i, n) { 1214 i.exports = s; 1215 var f = t(24), 1216 r = 1217 ((((s.prototype = Object.create(f.prototype)).constructor = 1218 s).className = "Enum"), 1219 t(23)), 1220 e = t(37); 1221 function s(t, i, n, r, e, s) { 1222 if ((f.call(this, t, n), i && "object" != typeof i)) 1223 throw TypeError("values must be an object"); 1224 if ( 1225 ((this.valuesById = {}), 1226 (this.values = Object.create(this.valuesById)), 1227 (this.comment = r), 1228 (this.comments = e || {}), 1229 (this.valuesOptions = s), 1230 (this.o = {}), 1231 (this.reserved = rt), 1232 i) 1233 ) 1234 for (var o = Object.keys(i), u = 0; u < o.length; ++u) 1235 "number" == typeof i[o[u]] && 1236 (this.valuesById[(this.values[o[u]] = i[o[u]])] = o[u]); 1237 } 1238 (s.prototype.u = function (t) { 1239 return ( 1240 (t = this.f || t), 1241 f.prototype.u.call(this, t),
1242 Object.keys(this.values).forEach((t) => { 1243 var i = Object.assign({}, this.h); 1244 this.o[t] = Object.assign( 1245 i, 1246 this.valuesOptions && 1247 this.valuesOptions[t] && 1248 this.valuesOptions[t].features 1249 ); 1250 }), 1251 this 1252 ); 1253 }), 1254 (s.fromJSON = function (t, i) { 1255 t = new s(t, i.values, i.options, i.comment, i.comments); 1256 return ( 1257 (t.reserved = i.reserved), 1258 i.edition && (t.f = i.edition), 1259 (t.a = "proto3"), 1260 t 1261 ); 1262 }), 1263 (s.prototype.toJSON = function (t) { 1264 t = !!t && !!t.keepComments; 1265 return e.toObject([ 1266 "edition", 1267 this.c(), 1268 "options", 1269 this.options, 1270 "valuesOptions", 1271 this.valuesOptions, 1272 "values", 1273 this.values, 1274 "reserved", 1275 this.reserved && this.reserved.length ? this.reserved : rt, 1276 "comment", 1277 t ? this.comment : rt, 1278 "comments", 1279 t ? this.comments : rt, 1280 ]); 1281 }), 1282 (s.prototype.add = function (t, i, n, r) { 1283 if (!e.isString(t)) throw TypeError("name must be a string"); 1284 if (!e.isInteger(i)) throw TypeError("id must be an integer"); 1285 if (this.values[t] !== rt) 1286 throw Error("duplicate name '" + t + "' in " + this); 1287 if (this.isReservedId(i)) 1288 throw Error("id " + i + " is reserved in " + this); 1289 if (this.isReservedName(t)) 1290 throw Error("name '" + t + "' is reserved in " + this); 1291 if (this.valuesById[i] !== rt) { 1292 if (!this.options || !this.options.allow_alias) 1293 throw Error("duplicate id " + i + " in " + this); 1294 this.values[t] = i; 1295 } else this.valuesById[(this.values[t] = i)] = t; 1296 return ( 1297 r && 1298 (this.valuesOptions === rt && (this.valuesOptions = {}), 1299 (this.valuesOptions[t] = r || null)), 1300 (this.comments[t] = n || null), 1301 this 1302 ); 1303 }), 1304 (s.prototype.remove = function (t) { 1305 if (!e.isString(t)) throw TypeError("name must be a string"); 1306 var i = this.values[t]; 1307 if (null == i) 1308 throw Error("name '" + t + "' does not exist in " + this); 1309 return ( 1310 delete this.valuesById[i], 1311 delete this.values[t], 1312 delete this.comments[t], 1313 this.valuesOptions && delete this.valuesOptions[t], 1314 this 1315 ); 1316 }), 1317 (s.prototype.isReservedId = function (t) { 1318 return r.isReservedId(this.reserved, t); 1319 }), 1320 (s.prototype.isReservedName = function (t) { 1321 return r.isReservedName(this.reserved, t); 1322 }); 1323 }, 1324 { 23: 23, 24: 24, 37: 37 }, 1325 ], 1326 16: [ 1327 function (t, i, n) { 1328 i.exports = o; 1329 var r, 1330 u = t(24), 1331 e = 1332 ((((o.prototype = Object.create(u.prototype)).constructor = 1333 o).className = "Field"), 1334 t(15)), 1335 f = t(36), 1336 h = t(37), 1337 a = /^required|optional|repeated$/; 1338 function o(t, i, n, r, e, s, o) { 1339 if ( 1340 (h.isObject(r) 1341 ? ((o = e), (s = r), (r = e = rt)) 1342 : h.isObject(e) && ((o = s), (s = e), (e = rt)), 1343 u.call(this, t, s), 1344 !h.isInteger(i) || i < 0) 1345 ) 1346 throw TypeError("id must be a non-negative integer"); 1347 if (!h.isString(n)) throw TypeError("type must be a string"); 1348 if (r !== rt && !a.test((r = r.toString().toLowerCase()))) 1349 throw TypeError("rule must be a string rule"); 1350 if (e !== rt && !h.isString(e)) 1351 throw TypeError("extend must be a string"); 1352 (this.rule = 1353 (r = "proto3_optional" === r ? "optional" : r) && "optional" !== r 1354 ? r 1355 : rt),
1356 (this.type = n), 1357 (this.id = i), 1358 (this.extend = e || rt), 1359 (this.repeated = "repeated" === r), 1360 (this.map = !1), 1361 (this.message = null), 1362 (this.partOf = null), 1363 (this.typeDefault = null), 1364 (this.defaultValue = null), 1365 (this.long = !!h.Long && f.long[n] !== rt), 1366 (this.bytes = "bytes" === n), 1367 (this.resolvedType = null), 1368 (this.extensionField = null), 1369 (this.declaringField = null), 1370 (this.comment = o); 1371 } 1372 (o.fromJSON = function (t, i) { 1373 t = new o(t, i.id, i.type, i.rule, i.extend, i.options, i.comment); 1374 return i.edition && (t.f = i.edition), (t.a = "proto3"), t; 1375 }), 1376 Object.defineProperty(o.prototype, "required", { 1377 get: function () { 1378 return "LEGACY_REQUIRED" === this.h.field_presence; 1379 }, 1380 }), 1381 Object.defineProperty(o.prototype, "optional", { 1382 get: function () { 1383 return !this.required; 1384 }, 1385 }), 1386 Object.defineProperty(o.prototype, "delimited", { 1387 get: function () { 1388 return ( 1389 this.resolvedType instanceof r && 1390 "DELIMITED" === this.h.message_encoding 1391 ); 1392 }, 1393 }), 1394 Object.defineProperty(o.prototype, "packed", { 1395 get: function () { 1396 return "PACKED" === this.h.repeated_field_encoding; 1397 }, 1398 }), 1399 Object.defineProperty(o.prototype, "hasPresence", { 1400 get: function () { 1401 return ( 1402 !this.repeated && 1403 !this.map && 1404 (this.partOf || 1405 this.declaringField || 1406 this.extensionField || 1407 "IMPLICIT" !== this.h.field_presence) 1408 ); 1409 }, 1410 }), 1411 (o.prototype.setOption = function (t, i, n) { 1412 return u.prototype.setOption.call(this, t, i, n); 1413 }), 1414 (o.prototype.toJSON = function (t) { 1415 t = !!t && !!t.keepComments; 1416 return h.toObject([ 1417 "edition", 1418 this.c(), 1419 "rule", 1420 ("optional" !== this.rule && this.rule) || rt, 1421 "type", 1422 this.type, 1423 "id", 1424 this.id, 1425 "extend", 1426 this.extend, 1427 "options", 1428 this.options, 1429 "comment", 1430 t ? this.comment : rt, 1431 ]); 1432 }), 1433 (o.prototype.resolve = function () { 1434 var t; 1435 return this.resolved 1436 ? this 1437 : ((this.typeDefault = f.defaults[this.type]) === rt 1438 ? ((this.resolvedType = ( 1439 this.declaringField || this 1440 ).parent.lookupTypeOrEnum(this.type)), 1441 this.resolvedType instanceof r 1442 ? (this.typeDefault = null) 1443 : (this.typeDefault = 1444 this.resolvedType.values[ 1445 Object.keys(this.resolvedType.values)[0] 1446 ])) 1447 : this.options && 1448 this.options.proto3_optional && 1449 (this.typeDefault = null), 1450 this.options && 1451 null != this.options.default && 1452 ((this.typeDefault = this.options.default), 1453 this.resolvedType instanceof e && 1454 "string" == typeof this.typeDefault && 1455 (this.typeDefault = 1456 this.resolvedType.values[this.typeDefault])), 1457 this.options &&
1458 (this.options.packed === rt || 1459 !this.resolvedType || 1460 this.resolvedType instanceof e || 1461 delete this.options.packed, 1462 Object.keys(this.options).length || (this.options = rt)), 1463 this.long 1464 ? ((this.typeDefault = h.Long.fromNumber( 1465 this.typeDefault, 1466 "u" == (this.type[0] || "") 1467 )), 1468 Object.freeze && Object.freeze(this.typeDefault)) 1469 : this.bytes && 1470 "string" == typeof this.typeDefault && 1471 (h.base64.test(this.typeDefault) 1472 ? h.base64.decode( 1473 this.typeDefault, 1474 (t = h.newBuffer( 1475 h.base64.length(this.typeDefault) 1476 )), 1477 0 1478 ) 1479 : h.utf8.write( 1480 this.typeDefault, 1481 (t = h.newBuffer(h.utf8.length(this.typeDefault))), 1482 0 1483 ), 1484 (this.typeDefault = t)), 1485 this.map 1486 ? (this.defaultValue = h.emptyObject) 1487 : this.repeated 1488 ? (this.defaultValue = h.emptyArray) 1489 : (this.defaultValue = this.typeDefault), 1490 this.parent instanceof r && 1491 (this.parent.ctor.prototype[this.name] = this.defaultValue), 1492 u.prototype.resolve.call(this)); 1493 }), 1494 (o.prototype.l = function (t) { 1495 var i; 1496 return "proto2" !== t && "proto3" !== t 1497 ? {} 1498 : ((t = {}), 1499 "required" === this.rule && 1500 (t.field_presence = "LEGACY_REQUIRED"), 1501 this.parent && 1502 f.defaults[this.type] === rt && 1503 (i = this.parent.get(this.type.split(".").pop())) && 1504 i instanceof r && 1505 i.group && 1506 (t.message_encoding = "DELIMITED"), 1507 !0 === this.getOption("packed") 1508 ? (t.repeated_field_encoding = "PACKED") 1509 : !1 === this.getOption("packed") && 1510 (t.repeated_field_encoding = "EXPANDED"), 1511 t); 1512 }), 1513 (o.prototype.u = function (t) { 1514 return u.prototype.u.call(this, this.f || t); 1515 }), 1516 (o.d = function (n, r, e, s) { 1517 return ( 1518 "function" == typeof r 1519 ? (r = h.decorateType(r).name) 1520 : r && "object" == typeof r && (r = h.decorateEnum(r).name), 1521 function (t, i) { 1522 h.decorateType(t.constructor).add( 1523 new o(i, n, r, e, { default: s }) 1524 ); 1525 } 1526 ); 1527 }), 1528 (o.p = function (t) { 1529 r = t; 1530 }); 1531 }, 1532 { 15: 15, 24: 24, 36: 36, 37: 37 }, 1533 ], 1534 17: [ 1535 function (t, i, n) { 1536 var r = (i.exports = t(18)); 1537 (r.build = "light"), 1538 (r.load = function (t, i, n) { 1539 return (i = 1540 "function" == typeof i 1541 ? ((n = i), new r.Root()) 1542 : i || new r.Root()).load(t, n); 1543 }), 1544 (r.loadSync = function (t, i) { 1545 return (i = i || new r.Root()).loadSync(t); 1546 }), 1547 (r.encoder = t(14)), 1548 (r.decoder = t(13)), 1549 (r.verifier = t(40)), 1550 (r.converter = t(12)), 1551 (r.ReflectionObject = t(24)), 1552 (r.Namespace = t(23)), 1553 (r.Root = t(29)), 1554 (r.Enum = t(15)), 1555 (r.Type = t(35)), 1556 (r.Field = t(16)), 1557 (r.OneOf = t(25)), 1558 (r.MapField = t(20)), 1559 (r.Service = t(33)), 1560 (r.Method = t(22)), 1561 (r.Message = t(21)), 1562 (r.wrappers = t(41)), 1563 (r.types = t(36)), 1564 (r.util = t(37)), 1565 r.ReflectionObject.p(r.Root), 1566 r.Namespace.p(r.Type, r.Service, r.Enum), 1567 r.Root.p(r.Type), 1568 r.Field.p(r.Type); 1569 }, 1570 { 1571 12: 12, 1572 13: 13, 1573 14: 14, 1574 15: 15, 1575 16: 16, 1576 18: 18, 1577 20: 20, 1578 21: 21, 1579 22: 22, 1580 23: 23, 1581 24: 24, 1582 25: 25, 1583 29: 29, 1584 33: 33, 1585 35: 35, 1586 36: 36, 1587 37: 37, 1588 40: 40, 1589 41: 41, 1590 }, 1591 ], 1592 18: [ 1593 function (t, i, n) { 1594 var r = n; 1595 function e() { 1596 r.util.p(), r.Writer.p(r.BufferWriter), r.Reader.p(r.BufferReader); 1597 } 1598 (r.build = "minimal"), 1599 (r.Writer = t(42)), 1600 (r.BufferWriter = t(43)), 1601 (r.Reader = t(27)), 1602 (r.BufferReader = t(28)), 1603 (r.util = t(39)), 1604 (r.rpc = t(31)), 1605 (r.roots = t(30)), 1606 (r.configure = e), 1607 e(); 1608 }, 1609 { 27: 27, 28: 28, 30: 30, 31: 31, 39: 39, 42: 42, 43: 43 }, 1610 ], 1611 19: [ 1612 function (t, i, n) { 1613 i = i.exports = t(17); 1614 (i.build = "full"), 1615 (i.tokenize = t(34)), 1616 (i.parse = t(26)), 1617 (i.common = t(11)), 1618 i.Root.p(i.Type, i.parse, i.common); 1619 }, 1620 { 11: 11, 17: 17, 26: 26, 34: 34 }, 1621 ], 1622 20: [ 1623 function (t, i, n) { 1624 i.exports = s; 1625 var o = t(16), 1626 r = 1627 ((((s.prototype = Object.create(o.prototype)).constructor = 1628 s).className = "MapField"), 1629 t(36)), 1630 u = t(37); 1631 function s(t, i, n, r, e, s) { 1632 if ((o.call(this, t, i, r, rt, rt, e, s), !u.isString(n))) 1633 throw TypeError("keyType must be a string"); 1634 (this.keyType = n), (this.resolvedKeyType = null), (this.map = !0);
1635 } 1636 (s.fromJSON = function (t, i) { 1637 return new s(t, i.id, i.keyType, i.type, i.options, i.comment); 1638 }), 1639 (s.prototype.toJSON = function (t) { 1640 t = !!t && !!t.keepComments; 1641 return u.toObject([ 1642 "keyType", 1643 this.keyType, 1644 "type", 1645 this.type, 1646 "id", 1647 this.id, 1648 "extend", 1649 this.extend, 1650 "options", 1651 this.options, 1652 "comment", 1653 t ? this.comment : rt, 1654 ]); 1655 }), 1656 (s.prototype.resolve = function () { 1657 if (this.resolved) return this; 1658 if (r.mapKey[this.keyType] === rt) 1659 throw Error("invalid key type: " + this.keyType); 1660 return o.prototype.resolve.call(this); 1661 }), 1662 (s.d = function (n, r, e) { 1663 return ( 1664 "function" == typeof e 1665 ? (e = u.decorateType(e).name) 1666 : e && "object" == typeof e && (e = u.decorateEnum(e).name), 1667 function (t, i) { 1668 u.decorateType(t.constructor).add(new s(i, n, r, e)); 1669 } 1670 ); 1671 }); 1672 }, 1673 { 16: 16, 36: 36, 37: 37 }, 1674 ], 1675 21: [ 1676 function (t, i, n) { 1677 i.exports = e; 1678 var r = t(39); 1679 function e(t) { 1680 if (t) 1681 for (var i = Object.keys(t), n = 0; n < i.length; ++n) 1682 this[i[n]] = t[i[n]]; 1683 } 1684 (e.create = function (t) { 1685 return this.$type.create(t); 1686 }), 1687 (e.encode = function (t, i) { 1688 return this.$type.encode(t, i); 1689 }), 1690 (e.encodeDelimited = function (t, i) { 1691 return this.$type.encodeDelimited(t, i); 1692 }), 1693 (e.decode = function (t) { 1694 return this.$type.decode(t); 1695 }), 1696 (e.decodeDelimited = function (t) { 1697 return this.$type.decodeDelimited(t); 1698 }), 1699 (e.verify = function (t) { 1700 return this.$type.verify(t); 1701 }), 1702 (e.fromObject = function (t) { 1703 return this.$type.fromObject(t); 1704 }), 1705 (e.toObject = function (t, i) { 1706 return this.$type.toObject(t, i); 1707 }), 1708 (e.prototype.toJSON = function () { 1709 return this.$type.toObject(this, r.toJSONOptions); 1710 }); 1711 }, 1712 { 39: 39 }, 1713 ], 1714 22: [ 1715 function (t, i, n) { 1716 i.exports = r; 1717 var h = t(24), 1718 a = 1719 ((((r.prototype = Object.create(h.prototype)).constructor = 1720 r).className = "Method"), 1721 t(37)); 1722 function r(t, i, n, r, e, s, o, u, f) { 1723 if ( 1724 (a.isObject(e) 1725 ? ((o = e), (e = s = rt)) 1726 : a.isObject(s) && ((o = s), (s = rt)), 1727 i !== rt && !a.isString(i)) 1728 ) 1729 throw TypeError("type must be a string"); 1730 if (!a.isString(n)) throw TypeError("requestType must be a string"); 1731 if (!a.isString(r)) 1732 throw TypeError("responseType must be a string"); 1733 h.call(this, t, o), 1734 (this.type = i || "rpc"), 1735 (this.requestType = n), 1736 (this.requestStream = !!e || rt), 1737 (this.responseType = r), 1738 (this.responseStream = !!s || rt), 1739 (this.resolvedRequestType = null), 1740 (this.resolvedResponseType = null), 1741 (this.comment = u), 1742 (this.parsedOptions = f); 1743 } 1744 (r.fromJSON = function (t, i) { 1745 return new r( 1746 t, 1747 i.type, 1748 i.requestType, 1749 i.responseType, 1750 i.requestStream, 1751 i.responseStream, 1752 i.options, 1753 i.comment, 1754 i.parsedOptions 1755 ); 1756 }), 1757 (r.prototype.toJSON = function (t) { 1758 t = !!t && !!t.keepComments; 1759 return a.toObject([ 1760 "type", 1761 ("rpc" !== this.type && this.type) || rt, 1762 "requestType", 1763 this.requestType, 1764 "requestStream", 1765 this.requestStream, 1766 "responseType", 1767 this.responseType, 1768 "responseStream", 1769 this.responseStream, 1770 "options", 1771 this.options, 1772 "comment", 1773 t ? this.comment : rt, 1774 "parsedOptions", 1775 this.parsedOptions, 1776 ]); 1777 }), 1778 (r.prototype.resolve = function () { 1779 return this.resolved 1780 ? this 1781 : ((this.resolvedRequestType = this.parent.lookupType( 1782 this.requestType 1783 )), 1784 (this.resolvedResponseType = this.parent.lookupType( 1785 this.responseType 1786 )), 1787 h.prototype.resolve.call(this)); 1788 }); 1789 }, 1790 { 24: 24, 37: 37 }, 1791 ], 1792 23: [ 1793 function (t, i, n) { 1794 i.exports = c; 1795 var s, 1796 o, 1797 u, 1798 r = t(24), 1799 f = 1800 ((((c.prototype = Object.create(r.prototype)).constructor = 1801 c).className = "Namespace"), 1802 t(16)), 1803 h = t(37), 1804 a = t(25); 1805 function e(t, i) { 1806 if (!t || !t.length) return rt; 1807 for (var n = {}, r = 0; r < t.length; ++r) 1808 n[t[r].name] = t[r].toJSON(i); 1809 return n; 1810 } 1811 function c(t, i) { 1812 r.call(this, t, i), 1813 (this.nested = rt), 1814 (this.v = null), 1815 (this.b = {}), 1816 (this.w = !0), 1817 (this.y = !0);
1818 } 1819 function l(t) { 1820 (t.v = null), (t.b = {}); 1821 for (var i = t; (i = i.parent); ) i.b = {}; 1822 return t; 1823 } 1824 (c.fromJSON = function (t, i) { 1825 return new c(t, i.options).addJSON(i.nested); 1826 }), 1827 (c.arrayToJSON = e), 1828 (c.isReservedId = function (t, i) { 1829 if (t) 1830 for (var n = 0; n < t.length; ++n) 1831 if ("string" != typeof t[n] && t[n][0] <= i && t[n][1] > i) 1832 return !0; 1833 return !1; 1834 }), 1835 (c.isReservedName = function (t, i) { 1836 if (t) 1837 for (var n = 0; n < t.length; ++n) if (t[n] === i) return !0; 1838 return !1; 1839 }), 1840 Object.defineProperty(c.prototype, "nestedArray", { 1841 get: function () { 1842 return this.v || (this.v = h.toArray(this.nested)); 1843 }, 1844 }), 1845 (c.prototype.toJSON = function (t) { 1846 return h.toObject([ 1847 "options", 1848 this.options, 1849 "nested", 1850 e(this.nestedArray, t), 1851 ]); 1852 }), 1853 (c.prototype.addJSON = function (t) { 1854 if (t) 1855 for (var i, n = Object.keys(t), r = 0; r < n.length; ++r) 1856 (i = t[n[r]]), 1857 this.add( 1858 (i.fields !== rt 1859 ? s 1860 : i.values !== rt 1861 ? u 1862 : i.methods !== rt 1863 ? o 1864 : i.id !== rt 1865 ? f 1866 : c 1867 ).fromJSON(n[r], i) 1868 ); 1869 return this; 1870 }), 1871 (c.prototype.get = function (t) { 1872 return (this.nested && this.nested[t]) || null; 1873 }), 1874 (c.prototype.getEnum = function (t) { 1875 if (this.nested && this.nested[t] instanceof u) 1876 return this.nested[t].values; 1877 throw Error("no such enum: " + t); 1878 }), 1879 (c.prototype.add = function (t) { 1880 if ( 1881 !( 1882 (t instanceof f && t.extend !== rt) || 1883 t instanceof s || 1884 t instanceof a || 1885 t instanceof u || 1886 t instanceof o || 1887 t instanceof c 1888 ) 1889 ) 1890 throw TypeError("object must be a valid nested object"); 1891 if (this.nested) { 1892 var i = this.get(t.name); 1893 if (i) { 1894 if ( 1895 !(i instanceof c && t instanceof c) || 1896 i instanceof s || 1897 i instanceof o 1898 ) 1899 throw Error("duplicate name '" + t.name + "' in " + this); 1900 for (var n = i.nestedArray, r = 0; r < n.length; ++r) 1901 t.add(n[r]); 1902 this.remove(i), 1903 this.nested || (this.nested = {}), 1904 t.setOptions(i.options, !0); 1905 } 1906 } else this.nested = {}; 1907 (this.nested[t.name] = t), 1908 this instanceof s || 1909 this instanceof o || 1910 this instanceof u || 1911 this instanceof f || 1912 t.f || 1913 (t.f = t.a), 1914 (this.w = !0), 1915 (this.y = !0); 1916 for (var e = this; (e = e.parent); ) (e.w = !0), (e.y = !0); 1917 return t.onAdd(this), l(this); 1918 }), 1919 (c.prototype.remove = function (t) { 1920 if (!(t instanceof r)) 1921 throw TypeError("object must be a ReflectionObject"); 1922 if (t.parent !== this) 1923 throw Error(t + " is not a member of " + this); 1924 return ( 1925 delete this.nested[t.name], 1926 Object.keys(this.nested).length || (this.nested = rt), 1927 t.onRemove(this), 1928 l(this) 1929 ); 1930 }), 1931 (c.prototype.define = function (t, i) { 1932 if (h.isString(t)) t = t.split("."); 1933 else if (!Array.isArray(t)) throw TypeError("illegal path"); 1934 if (t && t.length && "" === t[0]) 1935 throw Error("path must be relative"); 1936 for (var n = this; 0 < t.length; ) { 1937 var r = t.shift(); 1938 if (n.nested && n.nested[r]) { 1939 if (!((n = n.nested[r]) instanceof c)) 1940 throw Error("path conflicts with non-namespace objects"); 1941 } else n.add((n = new c(r))); 1942 } 1943 return i && n.addJSON(i), n; 1944 }), 1945 (c.prototype.resolveAll = function () { 1946 if (this.y) { 1947 this.g(this.f); 1948 var t = this.nestedArray, 1949 i = 0; 1950 for (this.resolve(); i < t.length; ) 1951 t[i] instanceof c ? t[i++].resolveAll() : t[i++].resolve(); 1952 this.y = !1; 1953 } 1954 return this; 1955 }), 1956 (c.prototype.g = function (i) { 1957 return ( 1958 this.w && 1959 ((this.w = !1), 1960 (i = this.f || i), 1961 r.prototype.g.call(this, i), 1962 this.nestedArray.forEach((t) => { 1963 t.g(i); 1964 })), 1965 this 1966 ); 1967 }), 1968 (c.prototype.lookup = function (t, i, n) { 1969 if ( 1970 ("boolean" == typeof i 1971 ? ((n = i), (i = rt)) 1972 : i && !Array.isArray(i) && (i = [i]), 1973 h.isString(t) && t.length) 1974 ) { 1975 if ("." === t) return this.root; 1976 t = t.split("."); 1977 } else if (!t.length) return this; 1978 var r = t.join("."); 1979 if ("" === t[0]) return this.root.lookup(t.slice(1), i); 1980 var e = this.root.j && this.root.j["." + r]; 1981 if (e && (!i || ~i.indexOf(e.constructor))) return e; 1982 if ((e = this.k(t, r)) && (!i || ~i.indexOf(e.constructor))) 1983 return e; 1984 if (!n) 1985 for (var s = this; s.parent; ) { 1986 if ( 1987 (e = s.parent.k(t, r)) && 1988 (!i || ~i.indexOf(e.constructor)) 1989 ) 1990 return e; 1991 s = s.parent; 1992 } 1993 return null; 1994 }), 1995 (c.prototype.k = function (t, i) { 1996 if (Object.prototype.hasOwnProperty.call(this.b, i)) 1997 return this.b[i]; 1998 var n = this.get(t[0]), 1999 r = null; 2000 if (n) 2001 1 === t.length 2002 ? (r = n) 2003 : n instanceof c && 2004 ((t = t.slice(1)), (r = n.k(t, t.join(".")))); 2005 else 2006 for (var e = 0; e < this.nestedArray.length; ++e) 2007 this.v[e] instanceof c && (n = this.v[e].k(t, i)) && (r = n); 2008 return (this.b[i] = r); 2009 }), 2010 (c.prototype.lookupType = function (t) { 2011 var i = this.lookup(t, [s]); 2012 if (i) return i; 2013 throw Error("no such type: " + t); 2014 }), 2015 (c.prototype.lookupEnum = function (t) { 2016 var i = this.lookup(t, [u]);
2017 if (i) return i; 2018 throw Error("no such Enum '" + t + "' in " + this); 2019 }), 2020 (c.prototype.lookupTypeOrEnum = function (t) { 2021 var i = this.lookup(t, [s, u]); 2022 if (i) return i; 2023 throw Error("no such Type or Enum '" + t + "' in " + this); 2024 }), 2025 (c.prototype.lookupService = function (t) { 2026 var i = this.lookup(t, [o]); 2027 if (i) return i; 2028 throw Error("no such Service '" + t + "' in " + this); 2029 }), 2030 (c.p = function (t, i, n) { 2031 (s = t), (o = i), (u = n); 2032 }); 2033 }, 2034 { 16: 16, 24: 24, 25: 25, 37: 37 }, 2035 ], 2036 24: [ 2037 function (t, i, n) { 2038 (i.exports = h).className = "ReflectionObject"; 2039 const r = t(25); 2040 var e, 2041 o = t(37), 2042 s = { 2043 enum_type: "OPEN", 2044 field_presence: "EXPLICIT", 2045 json_format: "ALLOW", 2046 message_encoding: "LENGTH_PREFIXED", 2047 repeated_field_encoding: "PACKED", 2048 utf8_validation: "VERIFY", 2049 }, 2050 u = { 2051 enum_type: "CLOSED", 2052 field_presence: "EXPLICIT", 2053 json_format: "LEGACY_BEST_EFFORT", 2054 message_encoding: "LENGTH_PREFIXED", 2055 repeated_field_encoding: "EXPANDED", 2056 utf8_validation: "NONE", 2057 }, 2058 f = { 2059 enum_type: "OPEN", 2060 field_presence: "IMPLICIT", 2061 json_format: "ALLOW", 2062 message_encoding: "LENGTH_PREFIXED", 2063 repeated_field_encoding: "PACKED", 2064 utf8_validation: "VERIFY", 2065 }; 2066 function h(t, i) { 2067 if (!o.isString(t)) throw TypeError("name must be a string"); 2068 if (i && !o.isObject(i)) 2069 throw TypeError("options must be an object"); 2070 (this.options = i), 2071 (this.parsedOptions = null), 2072 (this.name = t), 2073 (this.f = null), 2074 (this.a = "proto2"), 2075 (this.h = {}), 2076 (this.O = !1), 2077 (this.parent = null), 2078 (this.resolved = !1), 2079 (this.comment = null), 2080 (this.filename = null); 2081 } 2082 Object.defineProperties(h.prototype, { 2083 root: { 2084 get: function () { 2085 for (var t = this; null !== t.parent; ) t = t.parent; 2086 return t; 2087 }, 2088 }, 2089 fullName: { 2090 get: function () { 2091 for (var t = [this.name], i = this.parent; i; ) 2092 t.unshift(i.name), (i = i.parent); 2093 return t.join("."); 2094 }, 2095 }, 2096 }), 2097 (h.prototype.toJSON = function () { 2098 throw Error(); 2099 }), 2100 (h.prototype.onAdd = function (t) { 2101 this.parent && this.parent !== t && this.parent.remove(this), 2102 (this.parent = t), 2103 (this.resolved = !1); 2104 t = t.root; 2105 t instanceof e && t.A(this); 2106 }), 2107 (h.prototype.onRemove = function (t) { 2108 t = t.root; 2109 t instanceof e && t.T(this), 2110 (this.parent = null), 2111 (this.resolved = !1); 2112 }), 2113 (h.prototype.resolve = function () { 2114 return ( 2115 this.resolved || 2116 (this.root instanceof e && (this.resolved = !0)), 2117 this 2118 ); 2119 }), 2120 (h.prototype.g = function (t) { 2121 return this.u(this.f || t); 2122 }), 2123 (h.prototype.u = function (t) { 2124 if (!this.O) { 2125 var i = {}; 2126 if (!t) throw Error("Unknown edition for " + this.fullName); 2127 var n = Object.assign( 2128 this.options ? Object.assign({}, this.options.features) : {}, 2129 this.l(t) 2130 ); 2131 if (this.f) { 2132 if ("proto2" === t) i = Object.assign({}, u); 2133 else if ("proto3" === t) i = Object.assign({}, f); 2134 else { 2135 if ("2023" !== t) throw Error("Unknown edition: " + t); 2136 i = Object.assign({}, s); 2137 } 2138 this.h = Object.assign(i, n || {}); 2139 } else { 2140 if (this.partOf instanceof r) { 2141 t = Object.assign({}, this.partOf.h); 2142 this.h = Object.assign(t, n || {}); 2143 } else if (!this.declaringField) { 2144 if (!this.parent) 2145 throw Error( 2146 "Unable to find a parent for " + this.fullName 2147 ); 2148 i = Object.assign({}, this.parent.h); 2149 this.h = Object.assign(i, n || {}); 2150 } 2151 this.extensionField && (this.extensionField.h = this.h); 2152 } 2153 this.O = !0; 2154 } 2155 }), 2156 (h.prototype.l = function () { 2157 return {}; 2158 }), 2159 (h.prototype.getOption = function (t) { 2160 return this.options ? this.options[t] : rt; 2161 }), 2162 (h.prototype.setOption = function (t, i, n) { 2163 return ( 2164 this.options || (this.options = {}), 2165 /^features\./.test(t) 2166 ? o.setProperty(this.options, t, i, n) 2167 : (n && this.options[t] !== rt) || 2168 (this.getOption(t) !== i && (this.resolved = !1), 2169 (this.options[t] = i)), 2170 this 2171 ); 2172 }), 2173 (h.prototype.setParsedOption = function (i, t, n) { 2174 this.parsedOptions || (this.parsedOptions = []); 2175 var r, 2176 e, 2177 s = this.parsedOptions; 2178 return ( 2179 n 2180 ? (r = s.find(function (t) { 2181 return Object.prototype.hasOwnProperty.call(t, i); 2182 })) 2183 ? ((e = r[i]), o.setProperty(e, n, t)) 2184 : (((r = {})[i] = o.setProperty({}, n, t)), s.push(r)) 2185 : (((e = {})[i] = t), s.push(e)), 2186 this 2187 ); 2188 }), 2189 (h.prototype.setOptions = function (t, i) { 2190 if (t) 2191 for (var n = Object.keys(t), r = 0; r < n.length; ++r) 2192 this.setOption(n[r], t[n[r]], i); 2193 return this; 2194 }), 2195 (h.prototype.toString = function () { 2196 var t = this.constructor.className, 2197 i = this.fullName; 2198 return i.length ? t + " " + i : t; 2199 }), 2200 (h.prototype.c = function () { 2201 return this.f && "proto3" !== this.f ? this.f : rt; 2202 }), 2203 (h.p = function (t) { 2204 e = t; 2205 }); 2206 }, 2207 { 25: 25, 37: 37 }, 2208 ], 2209 25: [ 2210 function (t, i, n) { 2211 i.exports = o; 2212 var e = t(24), 2213 r = 2214 ((((o.prototype = Object.create(e.prototype)).constructor = 2215 o).className = "OneOf"), 2216 t(16)), 2217 s = t(37); 2218 function o(t, i, n, r) { 2219 if ( 2220 (Array.isArray(i) || ((n = i), (i = rt)), 2221 e.call(this, t, n), 2222 i !== rt && !Array.isArray(i)) 2223 ) 2224 throw TypeError("fieldNames must be an Array"); 2225 (this.oneof = i || []), (this.fieldsArray = []), (this.comment = r); 2226 } 2227 function u(t) { 2228 if (t.parent) 2229 for (var i = 0; i < t.fieldsArray.length; ++i) 2230 t.fieldsArray[i].parent || t.parent.add(t.fieldsArray[i]); 2231 } 2232 (o.fromJSON = function (t, i) { 2233 return new o(t, i.oneof, i.options, i.comment); 2234 }), 2235 (o.prototype.toJSON = function (t) { 2236 t = !!t && !!t.keepComments; 2237 return s.toObject([ 2238 "options", 2239 this.options, 2240 "oneof", 2241 this.oneof, 2242 "comment", 2243 t ? this.comment : rt, 2244 ]); 2245 }), 2246 (o.prototype.add = function (t) { 2247 if (t instanceof r) 2248 return ( 2249 t.parent && t.parent !== this.parent && t.parent.remove(t), 2250 this.oneof.push(t.name), 2251 this.fieldsArray.push(t), 2252 u((t.partOf = this)), 2253 this 2254 ); 2255 throw TypeError("field must be a Field"); 2256 }), 2257 (o.prototype.remove = function (t) { 2258 if (!(t instanceof r)) throw TypeError("field must be a Field"); 2259 var i = this.fieldsArray.indexOf(t); 2260 if (i < 0) throw Error(t + " is not a member of " + this); 2261 return ( 2262 this.fieldsArray.splice(i, 1), 2263 -1 < (i = this.oneof.indexOf(t.name)) && 2264 this.oneof.splice(i, 1), 2265 (t.partOf = null), 2266 this 2267 ); 2268 }), 2269 (o.prototype.onAdd = function (t) { 2270 e.prototype.onAdd.call(this, t); 2271 for (var i = 0; i < this.oneof.length; ++i) { 2272 var n = t.get(this.oneof[i]); 2273 n && !n.partOf && (n.partOf = this).fieldsArray.push(n); 2274 } 2275 u(this); 2276 }), 2277 (o.prototype.onRemove = function (t) { 2278 for (var i, n = 0; n < this.fieldsArray.length; ++n) 2279 (i = this.fieldsArray[n]).parent && i.parent.remove(i); 2280 e.prototype.onRemove.call(this, t); 2281 }), 2282 Object.defineProperty(o.prototype, "isProto3Optional", { 2283 get: function () { 2284 var t; 2285 return ( 2286 null != this.fieldsArray && 2287 1 === this.fieldsArray.length && 2288 null != (t = this.fieldsArray[0]).options && 2289 !0 === t.options.proto3_optional 2290 ); 2291 }, 2292 }), 2293 (o.d = function () { 2294 for ( 2295 var n = Array(arguments.length), t = 0; 2296 t < arguments.length; 2297 2298 ) 2299 n[t] = arguments[t++]; 2300 return function (t, i) { 2301 s.decorateType(t.constructor).add(new o(i, n)), 2302 Object.defineProperty(t, i, { 2303 get: s.oneOfGetter(n), 2304 set: s.oneOfSetter(n), 2305 }); 2306 }; 2307 }); 2308 }, 2309 { 16: 16, 24: 24, 37: 37 }, 2310 ], 2311 26: [ 2312 function (t, i, n) { 2313 ((i.exports = nt).filename = null), (nt.defaults = { keepCase: !1 }); 2314 var $ = t(34), 2315 F = t(29), 2316 P = t(35), 2317 R = t(16), 2318 U = t(20), 2319 D = t(25), 2320 q = t(15), 2321 C = t(33), 2322 z = t(22), 2323 X = t(24), 2324 Z = t(36), 2325 B = t(37), 2326 G = /^[1-9][0-9]*$/, 2327 H = /^-?[1-9][0-9]*$/, 2328 Y = /^0[x][0-9a-fA-F]+$/, 2329 K = /^-?0[x][0-9a-fA-F]+$/, 2330 W = /^0[0-7]+$/, 2331 J = /^-?0[0-7]+$/, 2332 Q = /^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/, 2333 tt = /^[a-zA-Z_][a-zA-Z_0-9]*$/, 2334 it = /^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/; 2335 function nt(t, i, n) { 2336 i instanceof F || ((n = i), (i = new F())); 2337 var r, 2338 e, 2339 s, 2340 h, 2341 o, 2342 u, 2343 f = (n = n || nt.defaults).preferTrailingComment || !1, 2344 a = $(t, n.alternateCommentMode || !1), 2345 c = a.next, 2346 l = a.push, 2347 d = a.peek, 2348 p = a.skip, 2349 v = a.cmnt, 2350 b = !0, 2351 w = "proto2", 2352 y = i, 2353 m = [], 2354 g = {}, 2355 j = n.keepCase 2356 ? function (t) { 2357 return t; 2358 } 2359 : B.camelCase; 2360 function k(t, i, n) { 2361 var r = nt.filename; 2362 return ( 2363 n || (nt.filename = null), 2364 Error( 2365 "illegal " + 2366 (i || "token") + 2367 " '" + 2368 t + 2369 "' (" + 2370 (r ? r + ", " : "") + 2371 "line " + 2372 a.line + 2373 ")" 2374 ) 2375 ); 2376 } 2377 function E() { 2378 var t, 2379 i = []; 2380 do { 2381 if ('"' !== (t = c()) && "'" !== t) throw k(t); 2382 } while ((i.push(c()), p(t), '"' === (t = d()) || "'" === t)); 2383 return i.join(""); 2384 } 2385 function O(i) { 2386 var n = c(); 2387 switch (n) {
2388 case "'": 2389 case '"': 2390 return l(n), E(); 2391 case "true": 2392 case "TRUE": 2393 return !0; 2394 case "false": 2395 case "FALSE": 2396 return !1; 2397 } 2398 try { 2399 var t = n, 2400 r = !0, 2401 e = 1; 2402 switch ( 2403 ("-" == (t[0] || "") && ((e = -1), (t = t.substring(1))), t) 2404 ) { 2405 case "inf": 2406 case "INF": 2407 case "Inf": 2408 return e * (1 / 0); 2409 case "nan": 2410 case "NAN": 2411 case "Nan": 2412 case "NaN": 2413 return NaN; 2414 case "0": 2415 return 0; 2416 } 2417 if (G.test(t)) return e * parseInt(t, 10); 2418 if (Y.test(t)) return e * parseInt(t, 16); 2419 if (W.test(t)) return e * parseInt(t, 8); 2420 if (Q.test(t)) return e * parseFloat(t); 2421 throw k(t, "number", r); 2422 } catch (t) { 2423 if (i && it.test(n)) return n; 2424 throw k(n, "value"); 2425 } 2426 } 2427 function A(i, n) { 2428 var t; 2429 do { 2430 if (!n || ('"' !== (r = d()) && "'" !== r)) 2431 try { 2432 i.push([(t = T(c())), p("to", !0) ? T(c()) : t]); 2433 } catch (t) { 2434 if (!(n && it.test(r) && 2023 <= w)) throw t; 2435 i.push(r); 2436 } 2437 else { 2438 var r = E(); 2439 if ((i.push(r), 2023 <= w)) throw k(r, "id"); 2440 } 2441 } while (p(",", !0)); 2442 var e = { 2443 options: rt, 2444 setOption: function (t, i) { 2445 this.options === rt && (this.options = {}), 2446 (this.options[t] = i); 2447 }, 2448 }; 2449 x( 2450 e, 2451 function (t) { 2452 if ("option" !== t) throw k(t); 2453 L(e, t), p(";"); 2454 }, 2455 function () { 2456 M(e); 2457 } 2458 ); 2459 } 2460 function T(t, i) { 2461 switch (t) { 2462 case "max": 2463 case "MAX": 2464 case "Max": 2465 return 536870911; 2466 case "0": 2467 return 0; 2468 } 2469 if (i || "-" != (t[0] || "")) { 2470 if (H.test(t)) return parseInt(t, 10); 2471 if (K.test(t)) return parseInt(t, 16); 2472 if (J.test(t)) return parseInt(t, 8); 2473 } 2474 throw k(t, "id"); 2475 } 2476 function _(t, i) { 2477 switch (i) { 2478 case "option": 2479 return L(t, i), p(";"), 1; 2480 case "message": 2481 return S(t), 1; 2482 case "enum": 2483 return N(t), 1; 2484 case "service": 2485 var h, 2486 n = t, 2487 r = i; 2488 if (tt.test((r = c()))) 2489 return ( 2490 x((h = new C(r)), function (t) { 2491 if (!_(h, t)) { 2492 if ("rpc" !== t) throw k(t); 2493 var i = h, 2494 n = v(), 2495 r = t; 2496 if (!tt.test((t = c()))) throw k(t, "name"); 2497 var e, 2498 s, 2499 o, 2500 u = t; 2501 if ( 2502 (p("("), 2503 p("stream", !0) && (s = !0), 2504 !it.test((t = c()))) 2505 ) 2506 throw k(t); 2507 if ( 2508 ((e = t), 2509 p(")"), 2510 p("returns"), 2511 p("("), 2512 p("stream", !0) && (o = !0), 2513 !it.test((t = c()))) 2514 ) 2515 throw k(t); 2516 (t = t), p(")"); 2517 var f = new z(u, r, e, t, s, o); 2518 (f.comment = n), 2519 x(f, function (t) { 2520 if ("option" !== t) throw k(t); 2521 L(f, t), p(";"); 2522 }), 2523 i.add(f); 2524 } 2525 }), 2526 n.add(h), 2527 n === y && m.push(h), 2528 1 2529 ); 2530 throw k(r, "service name"); 2531 case "extend": 2532 var e, 2533 s = t, 2534 n = i; 2535 if (it.test((n = c()))) 2536 return ( 2537 (e = n), 2538 x(null, function (t) { 2539 switch (t) { 2540 case "required": 2541 case "repeated": 2542 I(s, t, e); 2543 break; 2544 case "optional": 2545 I( 2546 s, 2547 "proto3" === w ? "proto3_optional" : "optional", 2548 e 2549 ); 2550 break; 2551 default: 2552 if ("proto2" === w || !it.test(t)) throw k(t); 2553 l(t), I(s, "optional", e); 2554 } 2555 }), 2556 1 2557 ); 2558 throw k(n, "reference"); 2559 } 2560 } 2561 function x(t, i, n) { 2562 var r, 2563 e = a.line; 2564 if ( 2565 (t && 2566 ("string" != typeof t.comment && (t.comment = v()), 2567 (t.filename = nt.filename)), 2568 p("{", !0)) 2569 ) { 2570 for (; "}" !== (r = c()); ) i(r); 2571 p(";", !0); 2572 } else 2573 n && n(), 2574 p(";"), 2575 t && 2576 ("string" != typeof t.comment || f) && 2577 (t.comment = v(e) || t.comment); 2578 } 2579 function S(t, i) { 2580 if (!tt.test((i = c()))) throw k(i, "type name"); 2581 var u = new P(i); 2582 x(u, function (t) { 2583 if (!_(u, t)) 2584 switch (t) { 2585 case "map": 2586 var i = u, 2587 n = (p("<"), c()); 2588 if (Z.mapKey[n] === rt) throw k(n, "type"); 2589 p(","); 2590 var r = c(); 2591 if (!it.test(r)) throw k(r, "type"); 2592 p(">"); 2593 var e = c(); 2594 if (!tt.test(e)) throw k(e, "name"); 2595 p("="); 2596 var s = new U(j(e), T(c()), n, r); 2597 x( 2598 s, 2599 function (t) { 2600 if ("option" !== t) throw k(t); 2601 L(s, t), p(";"); 2602 }, 2603 function () { 2604 M(s); 2605 } 2606 ), 2607 i.add(s); 2608 break; 2609 case "required": 2610 if ("proto2" !== w) throw k(t); 2611 case "repeated": 2612 I(u, t); 2613 break; 2614 case "optional": 2615 if ("proto3" === w) I(u, "proto3_optional"); 2616 else { 2617 if ("proto2" !== w) throw k(t); 2618 I(u, "optional"); 2619 } 2620 break; 2621 case "oneof": 2622 (e = u), (n = t); 2623 if (!tt.test((n = c()))) throw k(n, "name"); 2624 var o = new D(j(n)); 2625 x(o, function (t) { 2626 "option" === t 2627 ? (L(o, t), p(";")) 2628 : (l(t), I(o, "optional")); 2629 }), 2630 e.add(o); 2631 break; 2632 case "extensions": 2633 A(u.extensions || (u.extensions = [])); 2634 break; 2635 case "reserved": 2636 A(u.reserved || (u.reserved = []), !0); 2637 break; 2638 default: 2639 if ("proto2" === w || !it.test(t)) throw k(t); 2640 l(t), I(u, "optional"); 2641 } 2642 }), 2643 t.add(u), 2644 t === y && m.push(u); 2645 } 2646 function I(t, i, n) { 2647 var r = c(); 2648 if ("group" === r) { 2649 var e = t, 2650 s = i; 2651 if (2023 <= w) throw k("group"); 2652 var o, 2653 u, 2654 f = c(); 2655 if (tt.test(f)) 2656 return ( 2657 (u = B.lcFirst(f)), 2658 f === u && (f = B.ucFirst(f)), 2659 p("="), 2660 (h = T(c())), 2661 ((o = new P(f)).group = !0), 2662 ((u = new R(u, h, f, s)).filename = nt.filename), 2663 x(o, function (t) { 2664 switch (t) { 2665 case "option": 2666 L(o, t), p(";"); 2667 break; 2668 case "required": 2669 case "repeated": 2670 I(o, t); 2671 break; 2672 case "optional": 2673 I(o, "proto3" === w ? "proto3_optional" : "optional"); 2674 break; 2675 case "message": 2676 S(o); 2677 break; 2678 case "enum": 2679 N(o); 2680 break; 2681 case "reserved": 2682 A(o.reserved || (o.reserved = []), !0); 2683 break; 2684 default: 2685 throw k(t); 2686 } 2687 }), 2688 void e.add(o).add(u) 2689 ); 2690 throw k(f, "name"); 2691 } 2692 for (; r.endsWith(".") || d().startsWith("."); ) r += c(); 2693 if (!it.test(r)) throw k(r, "type"); 2694 var h = c(); 2695 if (!tt.test(h)) throw k(h, "name"); 2696 (h = j(h)), p("="); 2697 var a = new R(h, T(c()), r, i, n); 2698 x( 2699 a, 2700 function (t) { 2701 if ("option" !== t) throw k(t); 2702 L(a, t), p(";"); 2703 }, 2704 function () { 2705 M(a); 2706 } 2707 ), 2708 "proto3_optional" === i 2709 ? ((s = new D("_" + h)), 2710 a.setOption("proto3_optional", !0), 2711 s.add(a), 2712 t.add(s)) 2713 : t.add(a), 2714 t === y && m.push(a); 2715 } 2716 function N(t, i) { 2717 if (!tt.test((i = c()))) throw k(i, "name"); 2718 var s = new q(i); 2719 x(s, function (t) { 2720 switch (t) { 2721 case "option": 2722 L(s, t), p(";"); 2723 break; 2724 case "reserved": 2725 A(s.reserved || (s.reserved = []), !0), 2726 s.reserved === rt && (s.reserved = []); 2727 break; 2728 default: 2729 var i = s, 2730 n = t; 2731 if (!tt.test(n)) throw k(n, "name"); 2732 p("="); 2733 var r = T(c(), !0), 2734 e = { 2735 options: rt, 2736 getOption: function (t) { 2737 return this.options[t]; 2738 }, 2739 setOption: function (t, i) { 2740 X.prototype.setOption.call(e, t, i); 2741 }, 2742 setParsedOption: function () { 2743 return rt; 2744 }, 2745 }; 2746 return ( 2747 x( 2748 e, 2749 function (t) { 2750 if ("option" !== t) throw k(t); 2751 L(e, t), p(";"); 2752 }, 2753 function () { 2754 M(e); 2755 } 2756 ), 2757 void i.add(n, r, e.comment, e.parsedOptions || e.options) 2758 ); 2759 } 2760 }), 2761 t.add(s), 2762 t === y && m.push(s); 2763 } 2764 function L(t, i) { 2765 var n = !0; 2766 for ("option" === i && (i = c()); "=" !== i; ) { 2767 if ( 2768 ("(" === i && ((r = c()), p(")"), (i = "(" + r + ")")), n) 2769 ) { 2770 if (((n = !1), i.includes(".") && !i.includes("("))) { 2771 var r = i.split("."), 2772 e = r[0] + "."; 2773 i = r[1]; 2774 continue; 2775 } 2776 e = i; 2777 } else f = f ? f + i : i; 2778 i = c(); 2779 } 2780 var s, 2781 o, 2782 u = f ? e.concat(f) : e, 2783 u = (function t(i, n) { 2784 if (p("{", !0)) { 2785 for (var r = {}; !p("}", !0); ) { 2786 if (!tt.test((h = c()))) throw k(h, "name"); 2787 if (null === h) throw k(h, "end of input"); 2788 var e, 2789 s, 2790 o = h; 2791 if ((p(":", !0), "{" === d())) e = t(i, n + "." + h); 2792 else if ("[" === d()) { 2793 if (((e = []), p("[", !0))) { 2794 for (; (s = O(!0)), e.push(s), p(",", !0); ); 2795 p("]"), void 0 !== s && V(i, n + "." + h, s); 2796 } 2797 } else (e = O(!0)), V(i, n + "." + h, e); 2798 var u = r[o];
2799 u && (e = [].concat(u).concat(e)), 2800 (r[o] = e), 2801 p(",", !0), 2802 p(";", !0); 2803 } 2804 return r; 2805 } 2806 var f = O(!0); 2807 V(i, n, f); 2808 return f; 2809 })(t, u), 2810 f = f && "." === f[0] ? f.slice(1) : f; 2811 (e = e && "." === e[e.length - 1] ? e.slice(0, -1) : e), 2812 (s = e), 2813 (u = u), 2814 (o = f), 2815 (t = t).setParsedOption && t.setParsedOption(s, u, o); 2816 } 2817 function V(t, i, n) { 2818 y === t && /^features\./.test(i) 2819 ? (g[i] = n) 2820 : t.setOption && t.setOption(i, n); 2821 } 2822 function M(t) { 2823 if (p("[", !0)) { 2824 for (; L(t, "option"), p(",", !0); ); 2825 p("]"); 2826 } 2827 } 2828 for (; null !== (h = c()); ) 2829 switch (h) { 2830 case "package": 2831 if (!b) throw k(h); 2832 if (r !== rt) throw k("package"); 2833 if (((r = c()), !it.test(r))) throw k(r, "name"); 2834 (y = y.define(r)), p(";"); 2835 break; 2836 case "import": 2837 if (!b) throw k(h); 2838 switch (((u = o = void 0), d())) { 2839 case "weak": 2840 (u = s = s || []), c(); 2841 break; 2842 case "public": 2843 c(); 2844 default: 2845 u = e = e || []; 2846 } 2847 (o = E()), p(";"), u.push(o); 2848 break; 2849 case "syntax": 2850 if (!b) throw k(h); 2851 if ((p("="), (w = E()) < 2023)) throw k(w, "syntax"); 2852 p(";"); 2853 break; 2854 case "edition": 2855 if (!b) throw k(h); 2856 if ((p("="), (w = E()), !["2023"].includes(w))) 2857 throw k(w, "edition"); 2858 p(";"); 2859 break; 2860 case "option": 2861 L(y, h), p(";", !0); 2862 break; 2863 default: 2864 if (_(y, h)) { 2865 b = !1; 2866 continue; 2867 } 2868 throw k(h); 2869 } 2870 return ( 2871 m.forEach((i) => { 2872 (i.f = w), 2873 Object.keys(g).forEach((t) => { 2874 i.getOption(t) === rt && i.setOption(t, g[t], !0); 2875 }); 2876 }), 2877 (nt.filename = null), 2878 { package: r, imports: e, weakImports: s, root: i } 2879 ); 2880 } 2881 }, 2882 { 2883 15: 15, 2884 16: 16, 2885 20: 20, 2886 22: 22, 2887 24: 24, 2888 25: 25, 2889 29: 29, 2890 33: 33, 2891 34: 34, 2892 35: 35, 2893 36: 36, 2894 37: 37, 2895 }, 2896 ], 2897 27: [ 2898 function (t, i, n) { 2899 i.exports = f; 2900 var r, 2901 e = t(39), 2902 s = e.LongBits, 2903 o = e.utf8; 2904 function u(t, i) { 2905 return RangeError( 2906 "index out of range: " + t.pos + " + " + (i || 1) + " > " + t.len 2907 ); 2908 } 2909 function f(t) { 2910 (this.buf = t), (this.pos = 0), (this.len = t.length); 2911 } 2912 function h() { 2913 return e.Buffer 2914 ? function (t) { 2915 return (f.create = function (t) { 2916 return e.Buffer.isBuffer(t) ? new r(t) : c(t); 2917 })(t); 2918 } 2919 : c; 2920 } 2921 var a, 2922 c = 2923 "undefined" != typeof Uint8Array 2924 ? function (t) { 2925 if (t instanceof Uint8Array || Array.isArray(t)) 2926 return new f(t); 2927 throw Error("illegal buffer"); 2928 } 2929 : function (t) { 2930 if (Array.isArray(t)) return new f(t); 2931 throw Error("illegal buffer"); 2932 }; 2933 function l() { 2934 var t = new s(0, 0), 2935 i = 0; 2936 if (!(4 < this.len - this.pos)) { 2937 for (; i < 3; ++i) { 2938 if (this.pos >= this.len) throw u(this); 2939 if ( 2940 ((t.lo = 2941 (t.lo | ((127 & this.buf[this.pos]) << (7 * i))) >>> 0), 2942 this.buf[this.pos++] < 128) 2943 ) 2944 return t; 2945 } 2946 return ( 2947 (t.lo = 2948 (t.lo | ((127 & this.buf[this.pos++]) << (7 * i))) >>> 0), 2949 t 2950 ); 2951 } 2952 for (; i < 4; ++i) 2953 if ( 2954 ((t.lo = 2955 (t.lo | ((127 & this.buf[this.pos]) << (7 * i))) >>> 0), 2956 this.buf[this.pos++] < 128) 2957 ) 2958 return t; 2959 if ( 2960 ((t.lo = (t.lo | ((127 & this.buf[this.pos]) << 28)) >>> 0), 2961 (t.hi = (t.hi | ((127 & this.buf[this.pos]) >> 4)) >>> 0), 2962 this.buf[this.pos++] < 128) 2963 ) 2964 return t; 2965 if (((i = 0), 4 < this.len - this.pos)) { 2966 for (; i < 5; ++i) 2967 if ( 2968 ((t.hi = 2969 (t.hi | ((127 & this.buf[this.pos]) << (7 * i + 3))) >>> 0), 2970 this.buf[this.pos++] < 128) 2971 ) 2972 return t; 2973 } else 2974 for (; i < 5; ++i) { 2975 if (this.pos >= this.len) throw u(this); 2976 if ( 2977 ((t.hi = 2978 (t.hi | ((127 & this.buf[this.pos]) << (7 * i + 3))) >>> 0), 2979 this.buf[this.pos++] < 128) 2980 ) 2981 return t; 2982 } 2983 throw Error("invalid varint encoding"); 2984 } 2985 function d(t, i) { 2986 return ( 2987 (t[i - 4] | 2988 (t[i - 3] << 8) | 2989 (t[i - 2] << 16) | 2990 (t[i - 1] << 24)) >>> 2991 0 2992 ); 2993 } 2994 function p() { 2995 if (this.pos + 8 > this.len) throw u(this, 8); 2996 return new s( 2997 d(this.buf, (this.pos += 4)), 2998 d(this.buf, (this.pos += 4)) 2999 ); 3000 } 3001 (f.create = h()), 3002 (f.prototype._ = 3003 e.Array.prototype.subarray || e.Array.prototype.slice), 3004 (f.prototype.uint32 = 3005 ((a = 4294967295), 3006 function () { 3007 if ( 3008 ((a = (127 & this.buf[this.pos]) >>> 0), 3009 this.buf[this.pos++] < 128 || 3010 ((a = (a | ((127 & this.buf[this.pos]) << 7)) >>> 0), 3011 this.buf[this.pos++] < 128 || 3012 ((a = (a | ((127 & this.buf[this.pos]) << 14)) >>> 0), 3013 this.buf[this.pos++] < 128 || 3014 ((a = (a | ((127 & this.buf[this.pos]) << 21)
3014) >>> 0), 3015 this.buf[this.pos++] < 128 || 3016 ((a = (a | ((15 & this.buf[this.pos]) << 28)) >>> 0), 3017 this.buf[this.pos++] < 128 || 3018 !((this.pos += 5) > this.len)))))) 3019 ) 3020 return a; 3021 throw ((this.pos = this.len), u(this, 10)); 3022 })), 3023 (f.prototype.int32 = function () { 3024 return 0 | this.uint32(); 3025 }), 3026 (f.prototype.sint32 = function () { 3027 var t = this.uint32(); 3028 return ((t >>> 1) ^ -(1 & t)) | 0; 3029 }), 3030 (f.prototype.bool = function () { 3031 return 0 !== this.uint32(); 3032 }), 3033 (f.prototype.fixed32 = function () { 3034 if (this.pos + 4 > this.len) throw u(this, 4); 3035 return d(this.buf, (this.pos += 4)); 3036 }), 3037 (f.prototype.sfixed32 = function () { 3038 if (this.pos + 4 > this.len) throw u(this, 4); 3039 return 0 | d(this.buf, (this.pos += 4)); 3040 }), 3041 (f.prototype.float = function () { 3042 if (this.pos + 4 > this.len) throw u(this, 4); 3043 var t = e.float.readFloatLE(this.buf, this.pos); 3044 return (this.pos += 4), t; 3045 }), 3046 (f.prototype.double = function () { 3047 if (this.pos + 8 > this.len) throw u(this, 4); 3048 var t = e.float.readDoubleLE(this.buf, this.pos); 3049 return (this.pos += 8), t; 3050 }), 3051 (f.prototype.bytes = function () { 3052 var t = this.uint32(), 3053 i = this.pos, 3054 n = this.pos + t; 3055 if (n > this.len) throw u(this, t); 3056 return ( 3057 (this.pos += t), 3058 Array.isArray(this.buf) 3059 ? this.buf.slice(i, n) 3060 : i === n 3061 ? (t = e.Buffer) 3062 ? t.alloc(0) 3063 : new this.buf.constructor(0) 3064 : this._.call(this.buf, i, n) 3065 ); 3066 }), 3067 (f.prototype.string = function () { 3068 var t = this.bytes(); 3069 return o.read(t, 0, t.length); 3070 }), 3071 (f.prototype.skip = function (t) { 3072 if ("number" == typeof t) { 3073 if (this.pos + t > this.len) throw u(this, t); 3074 this.pos += t; 3075 } else 3076 do { 3077 if (this.pos >= this.len) throw u(this); 3078 } while (128 & this.buf[this.pos++]); 3079 return this; 3080 }), 3081 (f.prototype.skipType = function (t) { 3082 switch (t) { 3083 case 0: 3084 this.skip(); 3085 break; 3086 case 1: 3087 this.skip(8); 3088 break; 3089 case 2: 3090 this.skip(this.uint32()); 3091 break; 3092 case 3: 3093 for (; 4 != (t = 7 & this.uint32()); ) this.skipType(t); 3094 break; 3095 case 5: 3096 this.skip(4); 3097 break; 3098 default: 3099 throw Error( 3100 "invalid wire type " + t + " at offset " + this.pos 3101 ); 3102 } 3103 return this; 3104 }), 3105 (f.p = function (t) { 3106 (r = t), (f.create = h()), r.p(); 3107 var i = e.Long ? "toLong" : "toNumber"; 3108 e.merge(f.prototype, { 3109 int64: function () { 3110 return l.call(this)[i](!1); 3111 }, 3112 uint64: function () { 3113 return l.call(this)[i](!0); 3114 }, 3115 sint64: function () { 3116 return l.call(this).zzDecode()[i](!1); 3117 }, 3118 fixed64: function () { 3119 return p.call(this)[i](!0); 3120 }, 3121 sfixed64: function () { 3122 return p.call(this)[i](!1); 3123 }, 3124 }); 3125 }); 3126 }, 3127 { 39: 39 }, 3128 ], 3129 28: [ 3130 function (t, i, n) { 3131 i.exports = s; 3132 var r = t(27), 3133 e = 3134 (((s.prototype = Object.create(r.prototype)).constructor = s), 3135 t(39)); 3136 function s(t) { 3137 r.call(this, t); 3138 } 3139 (s.p = function () { 3140 e.Buffer && (s.prototype._ = e.Buffer.prototype.slice); 3141 }), 3142 (s.prototype.string = function () { 3143 var t = this.uint32(); 3144 return this.buf.utf8Slice 3145 ? this.buf.utf8Slice( 3146 this.pos, 3147 (this.pos = Math.min(this.pos + t, this.len)) 3148 ) 3149 : this.buf.toString( 3150 "utf-8", 3151 this.pos, 3152 (this.pos = Math.min(this.pos + t, this.len)) 3153 ); 3154 }), 3155 s.p(); 3156 }, 3157 { 27: 27, 39: 39 }, 3158 ], 3159 29: [ 3160 function (t, i, n) { 3161 i.exports = f; 3162 var r, 3163 d, 3164 p, 3165 e = t(23), 3166 s = 3167 ((((f.prototype = Object.create(e.prototype)).constructor = 3168 f).className = "Root"), 3169 t(16)), 3170 o = t(15), 3171 u = t(25), 3172 v = t(37); 3173 function f(t) { 3174 e.call(this, "", t), 3175 (this.deferred = []), 3176 (this.files = []), 3177 (this.f = "proto2"), 3178 (this.j = {}); 3179 } 3180 function b() {} 3181 (f.fromJSON = function (t, i) { 3182 return ( 3183 (i = i || new f()), 3184 t.options && i.setOptions(t.options), 3185 i.addJSON(t.nested).resolveAll() 3186 ); 3187 }),
3188 (f.prototype.resolvePath = v.path.resolve), 3189 (f.prototype.fetch = v.fetch), 3190 (f.prototype.load = function t(i, s, e) { 3191 "function" == typeof s && ((e = s), (s = rt)); 3192 var o = this; 3193 if (!e) return v.asPromise(t, o, i, s); 3194 var u = e === b; 3195 function f(t, i) { 3196 if (e) { 3197 if (u) throw t; 3198 i && i.resolveAll(); 3199 var n = e; 3200 (e = null), n(t, i); 3201 } 3202 } 3203 function h(t) { 3204 var i = t.lastIndexOf("google/protobuf/"); 3205 if (-1 < i) { 3206 t = t.substring(i); 3207 if (t in p) return t; 3208 } 3209 return null; 3210 } 3211 function a(t, i) { 3212 try { 3213 if ( 3214 (v.isString(i) && 3215 "{" == (i[0] || "") && 3216 (i = JSON.parse(i)), 3217 v.isString(i)) 3218 ) { 3219 d.filename = t; 3220 var n, 3221 r = d(i, o, s), 3222 e = 0; 3223 if (r.imports) 3224 for (; e < r.imports.length; ++e) 3225 (n = 3226 h(r.imports[e]) || o.resolvePath(t, r.imports[e])) && 3227 c(n); 3228 if (r.weakImports) 3229 for (e = 0; e < r.weakImports.length; ++e) 3230 (n = 3231 h(r.weakImports[e]) || 3232 o.resolvePath(t, r.weakImports[e])) && c(n, !0); 3233 } else o.setOptions(i.options).addJSON(i.nested); 3234 } catch (t) { 3235 f(t); 3236 } 3237 u || l || f(null, o); 3238 } 3239 function c(n, r) { 3240 if (((n = h(n) || n), !~o.files.indexOf(n))) 3241 if ((o.files.push(n), n in p)) 3242 u 3243 ? a(n, p[n]) 3244 : (++l, 3245 setTimeout(function () { 3246 --l, a(n, p[n]); 3247 })); 3248 else if (u) { 3249 var t; 3250 try {
3251 t = v.fs.readFileSync(n).toString("utf8"); 3252 } catch (t) { 3253 return void (r || f(t)); 3254 } 3255 a(n, t); 3256 } else 3257 ++l, 3258 o.fetch(n, function (t, i) { 3259 --l, e && (t ? (r ? l || f(null, o) : f(t)) : a(n, i)); 3260 }); 3261 } 3262 var l = 0; 3263 v.isString(i) && (i = [i]); 3264 for (var n, r = 0; r < i.length; ++r) 3265 (n = o.resolvePath("", i[r])) && c(n); 3266 return u ? o.resolveAll() : l || f(null, o), o; 3267 }), 3268 (f.prototype.loadSync = function (t, i) { 3269 if (v.isNode) return this.load(t, i, b); 3270 throw Error("not supported"); 3271 }), 3272 (f.prototype.resolveAll = function () { 3273 if (!this.y) return this; 3274 if (this.deferred.length) 3275 throw Error( 3276 "unresolvable extensions: " + 3277 this.deferred 3278 .map(function (t) { 3279 return ( 3280 "'extend " + t.extend + "' in " + t.parent.fullName 3281 ); 3282 }) 3283 .join(", ") 3284 ); 3285 return e.prototype.resolveAll.call(this); 3286 }); 3287 var h = /^[A-Z]/; 3288 function a(t, i) { 3289 var n, 3290 r = i.parent.lookup(i.extend); 3291 if (r) 3292 return ( 3293 (n = new s(i.fullName, i.id, i.type, i.rule, rt, i.options)), 3294 r.get(n.name) || 3295 (((n.declaringField = i).extensionField = n), r.add(n)), 3296 1 3297 ); 3298 } 3299 (f.prototype.A = function (t) { 3300 if (t instanceof s) 3301 t.extend === rt || 3302 t.extensionField || 3303 a(0, t) || 3304 this.deferred.push(t); 3305 else if (t instanceof o) 3306 h.test(t.name) && (t.parent[t.name] = t.values); 3307 else if (!(t instanceof u)) { 3308 if (t instanceof r) 3309 for (var i = 0; i < this.deferred.length; ) 3310 a(0, this.deferred[i]) ? this.deferred.splice(i, 1) : ++i; 3311 for (var n = 0; n < t.nestedArray.length; ++n) this.A(t.v[n]); 3312 h.test(t.name) && (t.parent[t.name] = t); 3313 } 3314 (t instanceof r || t instanceof o || t instanceof s) && 3315 (this.j[t.fullName] = t); 3316 }), 3317 (f.prototype.T = function (t) { 3318 var i; 3319 if (t instanceof s) 3320 t.extend !== rt && 3321 (t.extensionField 3322 ? (t.extensionField.parent.remove(t.extensionField), 3323 (t.extensionField = null)) 3324 : -1 < (i = this.deferred.indexOf(t)) && 3325 this.deferred.splice(i, 1)); 3326 else if (t instanceof o) 3327 h.test(t.name) && delete t.parent[t.name]; 3328 else if (t instanceof e) { 3329 for (var n = 0; n < t.nestedArray.length; ++n) this.T(t.v[n]); 3330 h.test(t.name) && delete t.parent[t.name]; 3331 } 3332 delete this.j[t.fullName]; 3333 }), 3334 (f.p = function (t, i, n) { 3335 (r = t), (d = i), (p = n); 3336 }); 3337 }, 3338 { 15: 15, 16: 16, 23: 23, 25: 25, 37: 37 }, 3339 ], 3340 30: [ 3341 function (t, i, n) { 3342 i.exports = {}; 3343 }, 3344 {}, 3345 ], 3346 31: [ 3347 function (t, i, n) { 3348 n.Service = t(32); 3349 }, 3350 { 32: 32 }, 3351 ], 3352 32: [ 3353 function (t, i, n) { 3354 i.exports = r; 3355 var u = t(39); 3356 function r(t, i, n) { 3357 if ("function" != typeof t) 3358 throw TypeError("rpcImpl must be a function"); 3359 u.EventEmitter.call(this), 3360 (this.rpcImpl = t), 3361 (this.requestDelimited = !!i), 3362 (this.responseDelimited = !!n); 3363 } 3364 (((r.prototype = Object.create( 3365 u.EventEmitter.prototype 3366 )).constructor = r).prototype.rpcCall = function t(n, i, r, e, s) { 3367 if (!e) throw TypeError("request must be specified"); 3368 var o = this; 3369 if (!s) return u.asPromise(t, o, n, i, r, e); 3370 if (!o.rpcImpl) 3371 return ( 3372 setTimeout(function () { 3373 s(Error("already ended")); 3374 }, 0), 3375 rt 3376 ); 3377 try { 3378 return o.rpcImpl( 3379 n, 3380 i[o.requestDelimited ? "encodeDelimited" : "encode"]( 3381 e 3382 ).finish(), 3383 function (t, i) { 3384 if (t) return o.emit("error", t, n), s(t); 3385 if (null === i) return o.end(!0), rt; 3386 if (!(i instanceof r)) 3387 try { 3388 i = 3389 r[o.responseDelimited ? "decodeDelimited" : "decode"]( 3390 i 3391 ); 3392 } catch (t) { 3393 return o.emit("error", t, n), s(t); 3394 } 3395 return o.emit("data", i, n), s(null, i); 3396 } 3397 ); 3398 } catch (t) { 3399 return ( 3400 o.emit("error", t, n), 3401 setTimeout(function () { 3402 s(t); 3403 }, 0), 3404 rt 3405 ); 3406 } 3407 }), 3408 (r.prototype.end = function (t) { 3409 return ( 3410 this.rpcImpl && 3411 (t || this.rpcImpl(null, null, null), 3412 (this.rpcImpl = null),
3413 this.emit("end").off()), 3414 this 3415 ); 3416 }); 3417 }, 3418 { 39: 39 }, 3419 ], 3420 33: [ 3421 function (t, i, n) { 3422 i.exports = o; 3423 var r = t(23), 3424 s = 3425 ((((o.prototype = Object.create(r.prototype)).constructor = 3426 o).className = "Service"), 3427 t(22)), 3428 u = t(37), 3429 f = t(31); 3430 function o(t, i) { 3431 r.call(this, t, i), (this.methods = {}), (this.x = null); 3432 } 3433 function e(t) { 3434 return (t.x = null), t; 3435 } 3436 (o.fromJSON = function (t, i) { 3437 var n = new o(t, i.options); 3438 if (i.methods) 3439 for (var r = Object.keys(i.methods), e = 0; e < r.length; ++e) 3440 n.add(s.fromJSON(r[e], i.methods[r[e]])); 3441 return ( 3442 i.nested && n.addJSON(i.nested), 3443 i.edition && (n.f = i.edition), 3444 (n.comment = i.comment), 3445 (n.a = "proto3"), 3446 n 3447 ); 3448 }), 3449 (o.prototype.toJSON = function (t) { 3450 var i = r.prototype.toJSON.call(this, t), 3451 n = !!t && !!t.keepComments; 3452 return u.toObject([ 3453 "edition", 3454 this.c(), 3455 "options", 3456 (i && i.options) || rt, 3457 "methods", 3458 r.arrayToJSON(this.methodsArray, t) || {}, 3459 "nested", 3460 (i && i.nested) || rt, 3461 "comment", 3462 n ? this.comment : rt, 3463 ]); 3464 }), 3465 Object.defineProperty(o.prototype, "methodsArray", { 3466 get: function () { 3467 return this.x || (this.x = u.toArray(this.methods)); 3468 }, 3469 }), 3470 (o.prototype.get = function (t) { 3471 return this.methods[t] || r.prototype.get.call(this, t); 3472 }), 3473 (o.prototype.resolveAll = function () { 3474 if (this.y) { 3475 r.prototype.resolve.call(this); 3476 for (var t = this.methodsArray, i = 0; i < t.length; ++i) 3477 t[i].resolve(); 3478 } 3479 return this; 3480 }), 3481 (o.prototype.g = function (i) { 3482 return ( 3483 this.w && 3484 ((i = this.f || i), 3485 r.prototype.g.call(this, i), 3486 this.methodsArray.forEach((t) => { 3487 t.g(i); 3488 })), 3489 this 3490 ); 3491 }), 3492 (o.prototype.add = function (t) { 3493 if (this.get(t.name)) 3494 throw Error("duplicate name '" + t.name + "' in " + this); 3495 return t instanceof s 3496 ? e(((this.methods[t.name] = t).parent = this)) 3497 : r.prototype.add.call(this, t); 3498 }), 3499 (o.prototype.remove = function (t) { 3500 if (t instanceof s) { 3501 if (this.methods[t.name] !== t) 3502 throw Error(t + " is not a member of " + this); 3503 return delete this.methods[t.name], (t.parent = null), e(this); 3504 } 3505 return r.prototype.remove.call(this, t); 3506 }), 3507 (o.prototype.create = function (t, i, n) { 3508 for ( 3509 var r, e = new f.Service(t, i, n), s = 0; 3510 s < this.methodsArray.length; 3511 ++s 3512 ) { 3513 var o = u 3514 .lcFirst((r = this.x[s]).resolve().name) 3515 .replace(/[^$\w_]/g, ""); 3516 e[o] = u.codegen( 3517 ["r", "c"], 3518 u.isReserved(o) ? o + "_" : o 3519 )("return this.rpcCall(m,q,s,r,c)")({ 3520 m: r, 3521 q: r.resolvedRequestType.ctor, 3522 s: r.resolvedResponseType.ctor, 3523 }); 3524 } 3525 return e; 3526 }); 3527 }, 3528 { 22: 22, 23: 23, 31: 31, 37: 37 }, 3529 ], 3530 34: [ 3531 function (t, i, n) { 3532 i.exports = s;
3533 var E = /[\s{}=;:[\],'"()<>]/g, 3534 O = /(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g, 3535 A = /(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g, 3536 T = /^ *[*/]+ */, 3537 _ = /^\s*\*?\/*/, 3538 x = /\n/g, 3539 S = /\s/, 3540 r = /\\(.?)/g, 3541 e = { 0: "\0", r: "\r", n: "\n", t: "\t" }; 3542 function I(t) { 3543 return t.replace(r, function (t, i) { 3544 switch (i) { 3545 case "\\": 3546 case "": 3547 return i; 3548 default: 3549 return e[i] || ""; 3550 } 3551 }); 3552 } 3553 function s(h, a) { 3554 h = h.toString(); 3555 var c = 0, 3556 l = h.length, 3557 d = 1, 3558 f = 0, 3559 p = {}, 3560 v = [], 3561 b = null; 3562 function w(t) { 3563 return Error("illegal " + t + " (line " + d + ")"); 3564 } 3565 function y(t) { 3566 return h[0 | t] || ""; 3567 } 3568 function m(t, i, n) { 3569 var r, 3570 e = { type: h[0 | t++] || "", lineEmpty: !1, leading: n }, 3571 n = a ? 2 : 3, 3572 s = t - n; 3573 do { 3574 if (--s < 0 || "\n" == (r = h[0 | s] || "")) { 3575 e.lineEmpty = !0; 3576 break; 3577 } 3578 } while (" " === r || "\t" === r); 3579 for (var o = h.substring(t, i).split(x), u = 0; u < o.length; ++u) 3580 o[u] = o[u].replace(a ? _ : T, "").trim(); 3581 (e.text = o.join("\n").trim()), (p[d] = e), (f = d); 3582 } 3583 function g(t) { 3584 var i = j(t), 3585 t = h.substring(t, i); 3586 return /^\s*\/\//.test(t); 3587 } 3588 function j(t) { 3589 for (var i = t; i < l && "\n" !== y(i); ) i++; 3590 return i; 3591 } 3592 function r() { 3593 if (0 < v.length) return v.shift(); 3594 if (b) { 3595 var t = "'" === b ? A : O, 3596 i = ((t.lastIndex = c - 1), t.exec(h)); 3597 if (i) return (c = t.lastIndex), k(b), (b = null), I(i[1]); 3598 throw w("string"); 3599 } 3600 var n, 3601 r, 3602 e, 3603 s, 3604 o, 3605 u = 0 === c; 3606 do { 3607 if (c === l) return null; 3608 for (n = !1; S.test((e = y(c))); ) 3609 if (("\n" === e && ((u = !0), ++d), ++c === l)) return null; 3610 if ("/" === y(c)) { 3611 if (++c === l) throw w("comment"); 3612 if ("/" === y(c)) 3613 if (a) { 3614 if (((o = !1), g((s = c) - 1))) 3615 for (o = !0; (c = j(c)) !== l && (c++, u && g(c)); ); 3616 else c = Math.min(l, j(c) + 1); 3617 o && (m(s, c, u), (u = !0)), d++; 3618 } else { 3619 for (o = "/" === y((s = c + 1)); "\n" !== y(++c); ) 3620 if (c === l) return null; 3621 ++c, o && (m(s, c - 1, u), (u = !0)), ++d; 3622 } 3623 else { 3624 if ("*" !== (e = y(c))) return "/"; 3625 (s = c + 1), (o = a || "*" === y(s)); 3626 do { 3627 if (("\n" === e && ++d, ++c === l)) throw w("comment"); 3628 } while (((r = e), (e = y(c)), "*" !== r || "/" !== e)); 3629 ++c, o && (m(s, c - 2, u), (u = !0)); 3630 } 3631 n = !0; 3632 } 3633 } while (n); 3634 var f = c; 3635 if (((E.lastIndex = 0), !E.test(y(f++)))) 3636 for (; f < l && !E.test(y(f)); ) ++f; 3637 t = h.substring(c, (c = f)); 3638 return ('"' != t && "'" != t) || (b = t), t; 3639 } 3640 function k(t) { 3641 v.push(t); 3642 } 3643 function e() { 3644 if (!v.length) { 3645 var t = r(); 3646 if (null === t) return null; 3647 k(t); 3648 } 3649 return v[0];
3650 } 3651 return Object.defineProperty( 3652 { 3653 next: r, 3654 peek: e, 3655 push: k, 3656 skip: function (t, i) { 3657 var n = e(); 3658 if (n === t) return r(), !0; 3659 if (i) return !1; 3660 throw w("token '" + n + "', '" + t + "' expected"); 3661 }, 3662 cmnt: function (t) { 3663 var i, 3664 n = null; 3665 return ( 3666 t === rt 3667 ? ((i = p[d - 1]), 3668 delete p[d - 1], 3669 i && 3670 (a || "*" === i.type || i.lineEmpty) && 3671 (n = i.leading ? i.text : null)) 3672 : (f < t && e(), 3673 (i = p[t]), 3674 delete p[t], 3675 !i || 3676 i.lineEmpty || 3677 (!a && "/" !== i.type) || 3678 (n = i.leading ? null : i.text)), 3679 n 3680 ); 3681 }, 3682 }, 3683 "line", 3684 { 3685 get: function () { 3686 return d; 3687 }, 3688 } 3689 ); 3690 } 3691 s.unescape = I; 3692 }, 3693 {}, 3694 ], 3695 35: [ 3696 function (t, i, n) { 3697 i.exports = m; 3698 var o = t(23), 3699 u = 3700 ((((m.prototype = Object.create(o.prototype)).constructor = 3701 m).className = "Type"), 3702 t(15)), 3703 f = t(25), 3704 h = t(16), 3705 a = t(20), 3706 c = t(33), 3707 e = t(21), 3708 s = t(27), 3709 l = t(42), 3710 d = t(37), 3711 p = t(14), 3712 v = t(13), 3713 b = t(40), 3714 w = t(12), 3715 y = t(41); 3716 function m(t, i) { 3717 o.call(this, t, i), 3718 (this.fields = {}), 3719 (this.oneofs = rt), 3720 (this.extensions = rt), 3721 (this.reserved = rt), 3722 (this.group = rt), 3723 (this.S = null), 3724 (this.e = null), 3725 (this.I = null), 3726 (this.N = null); 3727 } 3728 function r(t) { 3729 return ( 3730 (t.S = t.e = t.I = null), 3731 delete t.encode, 3732 delete t.decode, 3733 delete t.verify, 3734 t 3735 ); 3736 } 3737 Object.defineProperties(m.prototype, { 3738 fieldsById: { 3739 get: function () { 3740 if (!this.S) { 3741 this.S = {}; 3742 for ( 3743 var t = Object.keys(this.fields), i = 0; 3744 i < t.length; 3745 ++i 3746 ) { 3747 var n = this.fields[t[i]], 3748 r = n.id; 3749 if (this.S[r]) 3750 throw Error("duplicate id " + r + " in " + this); 3751 this.S[r] = n; 3752 } 3753 } 3754 return this.S; 3755 }, 3756 }, 3757 fieldsArray: { 3758 get: function () { 3759 return this.e || (this.e = d.toArray(this.fields)); 3760 }, 3761 }, 3762 oneofsArray: { 3763 get: function () { 3764 return this.I || (this.I = d.toArray(this.oneofs)); 3765 }, 3766 }, 3767 ctor: { 3768 get: function () { 3769 return this.N || (this.ctor = m.generateConstructor(this)()); 3770 }, 3771 set: function (t) { 3772 for ( 3773 var i = t.prototype, 3774 n = 3775 (i instanceof e || 3776 (((t.prototype = new e()).constructor = t), 3777 d.merge(t.prototype, i)), 3778 (t.$type = t.prototype.$type = this), 3779 d.merge(t, e, !0), 3780 (this.N = t), 3781 0); 3782 n < this.fieldsArray.length; 3783 ++n 3784 ) 3785 this.e[n].resolve(); 3786 for (var r = {}, n = 0; n < this.oneofsArray.length; ++n) 3787 r[this.I[n].resolve().name] = { 3788 get: d.oneOfGetter(this.I[n].oneof), 3789 set: d.oneOfSetter(this.I[n].oneof), 3790 }; 3791 n && Object.defineProperties(t.prototype, r); 3792 }, 3793 }, 3794 }), 3795 (m.generateConstructor = function (t) { 3796 for ( 3797 var i, n = d.codegen(["p"], t.name), r = 0; 3798 r < t.fieldsArray.length; 3799 ++r 3800 ) 3801 (i = t.e[r]).map 3802 ? n("this%s={}", d.safeProp(i.name)) 3803 : i.repeated && n("this%s=[]", d.safeProp(i.name)); 3804 return n( 3805 "if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)" 3806 )("this[ks[i]]=p[ks[i]]"); 3807 }), 3808 (m.fromJSON = function (t, i) { 3809 for ( 3810 var n = new m(t, i.options), 3811 r = 3812 ((n.extensions = i.extensions), 3813 (n.reserved = i.reserved), 3814 Object.keys(i.fields)), 3815 e = 0; 3816 e < r.length; 3817 ++e 3818 ) 3819 n.add( 3820 (void 0 !== i.fields[r[e]].keyType ? a : h).fromJSON( 3821 r[e], 3822 i.fields[r[e]] 3823 ) 3824 ); 3825 if (i.oneofs) 3826 for (r = Object.keys(i.oneofs), e = 0; e < r.length; ++e) 3827 n.add(f.fromJSON(r[e], i.oneofs[r[e]])); 3828 if (i.nested) 3829 for (r = Object.keys(i.nested), e = 0; e < r.length; ++e) { 3830 var s = i.nested[r[e]]; 3831 n.add( 3832 (s.id !== rt 3833 ? h 3834 : s.fields !== rt 3835 ? m 3836 : s.values !== rt 3837 ? u 3838 : s.methods !== rt 3839 ? c 3840 : o 3841 ).fromJSON(r[e], s) 3842 ); 3843 } 3844 return ( 3845 i.extensions && 3846 i.extensions.length && 3847 (n.extensions = i.extensions), 3848 i.reserved && i.reserved.length && (n.reserved = i.reserved), 3849 i.group && (n.group = !0), 3850 i.comment && (n.comment = i.comment), 3851 i.edition && (n.f = i.edition), 3852 (n.a = "proto3"), 3853 n 3854 ); 3855 }), 3856 (m.prototype.toJSON = function (t) { 3857 var i = o.prototype.toJSON.call(this, t), 3858 n = !!t && !!t.keepComments; 3859 return d.toObject([ 3860 "edition", 3861 this.c(), 3862 "options", 3863 (i && i.options) || rt, 3864 "oneofs", 3865 o.arrayToJSON(this.oneofsArray, t), 3866 "fields", 3867 o.arrayToJSON( 3868 this.fieldsArray.filter(function (t) { 3869 return !t.declaringField; 3870 }), 3871 t 3872 ) || {}, 3873 "extensions", 3874 this.extensions && this.extensions.length 3875 ? this.extensions 3876 : rt, 3877 "reserved", 3878 this.reserved && this.reserved.length ? this.reserved : rt, 3879 "group", 3880 this.group || rt, 3881 "nested", 3882 (i && i.nested) || rt, 3883 "comment", 3884 n ? this.comment : rt, 3885 ]); 3886 }), 3887 (m.prototype.resolveAll = function () { 3888 if (this.y) { 3889 o.prototype.resolveAll.call(this); 3890 for (var t = this.oneofsArray, i = 0; i < t.length; ) 3891 t[i++].resolve(); 3892 for (var n = this.fieldsArray, i = 0; i < n.length; ) 3893 n[i++].resolve(); 3894 } 3895 return this; 3896 }), 3897 (m.prototype.g = function (i) { 3898 return ( 3899 this.w && 3900 ((i = this.f || i), 3901 o.prototype.g.call(this, i), 3902 this.oneofsArray.forEach((t) => { 3903 t.u(i); 3904 }), 3905 this.fieldsArray.forEach((t) => { 3906 t.u(i); 3907 })), 3908 this 3909 ); 3910 }), 3911 (m.prototype.get = function (t) { 3912 return ( 3913 this.fields[t] || 3914 (this.oneofs && this.oneofs[t]) || 3915 (this.nested && this.nested[t]) || 3916 null 3917 ); 3918 }), 3919 (m.prototype.add = function (t) { 3920 if (this.get(t.name)) 3921 throw Error("duplicate name '" + t.name + "' in " + this); 3922 if (t instanceof h && t.extend === rt) { 3923 if ((this.S || this.fieldsById)[t.id]) 3924 throw Error("duplicate id " + t.id + " in " + this); 3925 if (this.isReservedId(t.id)) 3926 throw Error("id " + t.id + " is reserved in " + this); 3927 if (this.isReservedName(t.name)) 3928 throw Error("name '" + t.name + "' is reserved in " + this); 3929 return ( 3930 t.parent && t.parent.remove(t), 3931 ((this.fields[t.name] = t).message = this), 3932 t.onAdd(this), 3933 r(this) 3934 ); 3935 } 3936 return t instanceof f 3937 ? (this.oneofs || (this.oneofs = {}), 3938 (this.oneofs[t.name] = t).onAdd(this), 3939 r(this)) 3940 : o.prototype.add.call(this, t); 3941 }), 3942 (m.prototype.remove = function (t) { 3943 if (t instanceof h && t.extend === rt) { 3944 if (this.fields && this.fields[t.name] === t) 3945 return ( 3946 delete this.fields[t.name], 3947 (t.parent = null), 3948 t.onRemove(this), 3949 r(this) 3950 ); 3951 throw Error(t + " is not a member of " + this); 3952 } 3953 if (t instanceof f) { 3954 if (this.oneofs && this.oneofs[t.name] === t) 3955 return ( 3956 delete this.oneofs[t.name], 3957 (t.parent = null), 3958 t.onRemove(this), 3959 r(this) 3960 ); 3961 throw Error(t + " is not a member of " + this); 3962 } 3963 return o.prototype.remove.call(this, t); 3964 }), 3965 (m.prototype.isReservedId = function (t) { 3966 return o.isReservedId(this.reserved, t); 3967 }), 3968 (m.prototype.isReservedName = function (t) { 3969 return o.isReservedName(this.reserved, t); 3970 }), 3971 (m.prototype.create = function (t) { 3972 return new this.ctor(t); 3973 }), 3974 (m.prototype.setup = function () { 3975 for ( 3976 var t = this.fullName, i = [], n = 0; 3977 n < this.fieldsArray.length; 3978 ++n 3979 ) 3980 i.push(this.e[n].resolve().resolvedType); 3981 (this.encode = p(this)({ Writer: l, types: i, util: d })), 3982 (this.decode = v(this)({ Reader: s, types: i, util: d })), 3983 (this.verify = b(this)({ types: i, util: d })), 3984 (this.fromObject = w.fromObject(this)({ types: i, util: d })), 3985 (this.toObject = w.toObject(this)({ types: i, util: d })); 3986 var r, 3987 t = y[t]; 3988 return ( 3989 t && 3990 (((r = Object.create(this)).fromObject = this.fromObject), 3991 (this.fromObject = t.fromObject.bind(r)), 3992 (r.toObject = this.toObject), 3993 (this.toObject = t.toObject.bind(r))), 3994 this 3995 ); 3996 }), 3997 (m.prototype.encode = function (t, i) { 3998 return this.setup().encode(t, i); 3999 }), 4000 (m.prototype.encodeDelimited = function (t, i) { 4001 return this.encode(t, i && i.len ? i.fork() : i).ldelim(); 4002 }), 4003 (m.prototype.decode = function (t, i) { 4004 return this.setup().decode(t, i); 4005 }), 4006 (m.prototype.decodeDelimited = function (t) { 4007 return ( 4008 t instanceof s || (t = s.create(t)), this.decode(t, t.uint32()) 4009 ); 4010 }), 4011 (m.prototype.verify = function (t) { 4012 return this.setup().verify(t); 4013 }), 4014 (m.prototype.fromObject = function (t) { 4015 return this.setup().fromObject(t); 4016 }), 4017 (m.prototype.toObject = function (t, i) { 4018 return this.setup().toObject(t, i); 4019 }), 4020 (m.d = function (i) { 4021 return function (t) { 4022 d.decorateType(t, i); 4023 }; 4024 }); 4025 }, 4026 { 4027 12: 12, 4028 13: 13, 4029 14: 14, 4030 15: 15, 4031 16: 16, 4032 20: 20, 4033 21: 21, 4034 23: 23, 4035 25: 25, 4036 27: 27, 4037 33: 33, 4038 37: 37, 4039 40: 40, 4040 41: 41, 4041 42: 42, 4042 }, 4043 ], 4044 36: [ 4045 function (t, i, n) { 4046 var t = t(37), 4047 e = [ 4048 "double", 4049 "float", 4050 "int32", 4051 "uint32", 4052 "sint32", 4053 "fixed32", 4054 "sfixed32", 4055 "int64", 4056 "uint64", 4057 "sint64", 4058 "fixed64", 4059 "sfixed64", 4060 "bool", 4061 "string", 4062 "bytes", 4063 ]; 4064 function r(t, i) { 4065 var n = 0, 4066 r = {}; 4067 for (i |= 0; n < t.length; ) r[e[n + i]] = t[n++]; 4068 return r; 4069 } 4070 (n.basic = r([1, 5, 0, 0, 0, 5, 5, 0, 0, 0, 1, 1, 0, 2, 2])), 4071 (n.defaults = r([ 4072 0, 4073 0, 4074 0, 4075 0, 4076 0, 4077 0, 4078 0, 4079 0, 4080 0, 4081 0, 4082 0, 4083 0, 4084 !1, 4085 "", 4086 t.emptyArray, 4087 null, 4088 ])), 4089 (n.long = r([0, 0, 0, 1, 1], 7)), 4090 (n.mapKey = r([0, 0, 0, 5, 5, 0, 0, 0, 1, 1, 0, 2], 2)),
4091 (n.packed = r([1, 5, 0, 0, 0, 5, 5, 0, 0, 0, 1, 1, 0])); 4092 }, 4093 { 37: 37 }, 4094 ], 4095 37: [ 4096 function (n, t, i) { 4097 var r, 4098 e, 4099 s = (t.exports = n(39)), 4100 o = n(30), 4101 u = 4102 ((s.codegen = n(3)), 4103 (s.fetch = n(5)), 4104 (s.path = n(8)), 4105 (s.fs = s.inquire("fs")), 4106 (s.toArray = function (t) { 4107 if (t) { 4108 for ( 4109 var i = Object.keys(t), n = Array(i.length), r = 0; 4110 r < i.length; 4111 4112 ) 4113 n[r] = t[i[r++]]; 4114 return n; 4115 } 4116 return []; 4117 }), 4118 (s.toObject = function (t) { 4119 for (var i = {}, n = 0; n < t.length; ) { 4120 var r = t[n++], 4121 e = t[n++]; 4122 e !== rt && (i[r] = e); 4123 } 4124 return i; 4125 }), 4126 /\\/g), 4127 f = /"/g, 4128 h = 4129 ((s.isReserved = function (t) { 4130 return /^(?: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)$/.test( 4131 t 4132 ); 4133 }), 4134 (s.safeProp = function (t) { 4135 return !/^[$\w_]+$/.test(t) || s.isReserved(t) 4136 ? '["' + t.replace(u, "\\\\").replace(f, '\\"') + '"]' 4137 : "." + t; 4138 }), 4139 (s.ucFirst = function (t) { 4140 return (t[0] || "").toUpperCase() + t.substring(1); 4141 }), 4142 /_([a-z])/g), 4143 a = 4144 ((s.camelCase = function (t) { 4145 return ( 4146 t.substring(0, 1) + 4147 t.substring(1).replace(h, function (t, i) { 4148 return i.toUpperCase(); 4149 }) 4150 ); 4151 }), 4152 (s.compareFieldsById = function (t, i) { 4153 return t.id - i.id; 4154 }), 4155 (s.decorateType = function (t, i) { 4156 return t.$type 4157 ? (i && 4158 t.$type.name !== i && 4159 (s.decorateRoot.remove(t.$type), 4160 (t.$type.name = i), 4161 s.decorateRoot.add(t.$type)), 4162 t.$type) 4163 : ((i = new (r = r || n(35))(i || t.name)), 4164 s.decorateRoot.add(i), 4165 (i.ctor = t), 4166 Object.defineProperty(t, "$type", { 4167 value: i, 4168 enumerable: !1, 4169 }), 4170 Object.defineProperty(t.prototype, "$type", { 4171 value: i, 4172 enumerable: !1, 4173 }), 4174 i); 4175 }), 4176 0); 4177 (s.decorateEnum = function (t) { 4178 var i; 4179 return ( 4180 t.$type || 4181 ((i = new (e = e || n(15))("Enum" + a++, t)), 4182 s.decorateRoot.add(i), 4183 Object.defineProperty(t, "$type", { value: i, enumerable: !1 }), 4184 i) 4185 ); 4186 }), 4187 (s.setProperty = function (t, i, n, s) { 4188 if ("object" != typeof t) 4189 throw TypeError("dst must be an object"); 4190 if (i) 4191 return (function t(i, n, r) { 4192 var e = n.shift(); 4193 if ("__proto__" !== e && "prototype" !== e) 4194 if (0 < n.length) i[e] = t(i[e] || {}, n, r); 4195 else { 4196 if ((n = i[e]) && s) return i; 4197 n && (r = [].concat(n).concat(r)), (i[e] = r); 4198 } 4199 return i; 4200 })(t, (i = i.split(".")), n); 4201 throw TypeError("path must be specified"); 4202 }), 4203 Object.defineProperty(s, "decorateRoot", { 4204 get: function () { 4205 return o.decorated || (o.decorated = new (n(29))()); 4206 }, 4207 }); 4208 }, 4209 { 15: 15, 29: 29, 3: 3, 30: 30, 35: 35, 39: 39, 5: 5, 8: 8 }, 4210 ], 4211 38: [ 4212 function (t, i, n) { 4213 i.exports = e; 4214 var r = t(39); 4215 function e(t, i) { 4216 (this.lo = t >>> 0), (this.hi = i >>> 0); 4217 } 4218 var s = (e.zero = new e(0, 0)), 4219 o = 4220 ((s.toNumber = function () { 4221 return 0; 4222 }), 4223 (s.zzEncode = s.zzDecode = 4224 function () { 4225 return this; 4226 }), 4227 (s.length = function () { 4228 return 1; 4229 }), 4230 (e.zeroHash = "\0\0\0\0\0\0\0\0"), 4231 (e.fromNumber = function (t) { 4232 var i, n; 4233 return 0 === t 4234 ? s 4235 : ((n = (t = (i = t < 0) ? -t : t) >>> 0), 4236 (t = ((t - n) / 4294967296) >>> 0), 4237 i && 4238 ((t = ~t >>> 0), 4239 (n = ~n >>> 0), 4240 4294967295 < ++n && 4241 ((n = 0), 4294967295 < ++t && (t = 0))), 4242 new e(n, t));
4243 }), 4244 (e.from = function (t) { 4245 if ("number" == typeof t) return e.fromNumber(t); 4246 if (r.isString(t)) { 4247 if (!r.Long) return e.fromNumber(parseInt(t, 10)); 4248 t = r.Long.fromString(t); 4249 } 4250 return t.low || t.high ? new e(t.low >>> 0, t.high >>> 0) : s; 4251 }), 4252 (e.prototype.toNumber = function (t) { 4253 var i; 4254 return !t && this.hi >>> 31 4255 ? ((t = (1 + ~this.lo) >>> 0), 4256 (i = ~this.hi >>> 0), 4257 -(t + 4294967296 * (i = t ? i : (i + 1) >>> 0))) 4258 : this.lo + 4294967296 * this.hi; 4259 }), 4260 (e.prototype.toLong = function (t) { 4261 return r.Long 4262 ? new r.Long(0 | this.lo, 0 | this.hi, !!t) 4263 : { low: 0 | this.lo, high: 0 | this.hi, unsigned: !!t }; 4264 }), 4265 String.prototype.charCodeAt); 4266 (e.fromHash = function (t) { 4267 return "\0\0\0\0\0\0\0\0" === t 4268 ? s 4269 : new e( 4270 (o.call(t, 0) | 4271 (o.call(t, 1) << 8) | 4272 (o.call(t, 2) << 16) | 4273 (o.call(t, 3) << 24)) >>> 4274 0, 4275 (o.call(t, 4) | 4276 (o.call(t, 5) << 8) | 4277 (o.call(t, 6) << 16) | 4278 (o.call(t, 7) << 24)) >>> 4279 0 4280 ); 4281 }), 4282 (e.prototype.toHash = function () { 4283 return String.fromCharCode( 4284 255 & this.lo, 4285 (this.lo >>> 8) & 255, 4286 (this.lo >>> 16) & 255, 4287 this.lo >>> 24, 4288 255 & this.hi, 4289 (this.hi >>> 8) & 255, 4290 (this.hi >>> 16) & 255, 4291 this.hi >>> 24 4292 ); 4293 }), 4294 (e.prototype.zzEncode = function () { 4295 var t = this.hi >> 31; 4296 return ( 4297 (this.hi = (((this.hi << 1) | (this.lo >>> 31)) ^ t) >>> 0), 4298 (this.lo = ((this.lo << 1) ^ t) >>> 0), 4299 this 4300 ); 4301 }), 4302 (e.prototype.zzDecode = function () { 4303 var t = -(1 & this.lo); 4304 return ( 4305 (this.lo = (((this.lo >>> 1) | (this.hi << 31)) ^ t) >>> 0), 4306 (this.hi = ((this.hi >>> 1) ^ t) >>> 0), 4307 this 4308 ); 4309 }), 4310 (e.prototype.length = function () { 4311 var t = this.lo, 4312 i = ((this.lo >>> 28) | (this.hi << 4)) >>> 0, 4313 n = this.hi >>> 24; 4314 return 0 == n 4315 ? 0 == i 4316 ? t < 16384 4317 ? t < 128 4318 ? 1 4319 : 2 4320 : t < 2097152 4321 ? 3 4322 : 4 4323 : i < 16384 4324 ? i < 128 4325 ? 5 4326 : 6 4327 : i < 2097152 4328 ? 7 4329 : 8 4330 : n < 128 4331 ? 9 4332 : 10; 4333 }); 4334 }, 4335 { 39: 39 }, 4336 ], 4337 39: [ 4338 function (t, i, n) { 4339 var r = n; 4340 function e(t, i, n) { 4341 for (var r = Object.keys(i), e = 0; e < r.length; ++e) 4342 (t[r[e]] !== rt && n) || (t[r[e]] = i[r[e]]); 4343 return t; 4344 } 4345 function s(t) { 4346 function n(t, i) { 4347 if (!(this instanceof n)) return new n(t, i); 4348 Object.defineProperty(this, "message", { 4349 get: function () { 4350 return t; 4351 }, 4352 }), 4353 Error.captureStackTrace 4354 ? Error.captureStackTrace(this, n) 4355 : Object.defineProperty(this, "stack", { 4356 value: Error().stack || "", 4357 }), 4358 i && e(this, i); 4359 } 4360 return ( 4361 (n.prototype = Object.create(Error.prototype, { 4362 constructor: { 4363 value: n, 4364 writable: !0, 4365 enumerable: !1, 4366 configurable: !0, 4367 }, 4368 name: { 4369 get: function () { 4370 return t; 4371 }, 4372 set: rt, 4373 enumerable: !1, 4374 configurable: !0, 4375 }, 4376 toString: { 4377 value: function () { 4378 return this.name + ": " + this.message; 4379 }, 4380 writable: !0, 4381 enumerable: !1, 4382 configurable: !0, 4383 }, 4384 })), 4385 n 4386 ); 4387 } 4388 (r.asPromise = t(1)), 4389 (r.base64 = t(2)), 4390 (r.EventEmitter = t(4)), 4391 (r.float = t(6)), 4392 (r.inquire = t(7)), 4393 (r.utf8 = t(10)), 4394 (r.pool = t(9)), 4395 (r.LongBits = t(38)), 4396 (r.isNode = !!( 4397 "undefined" != typeof global && 4398 global && 4399 global.process && 4400 global.process.versions && 4401 global.process.versions.node 4402 )), 4403 (r.global = 4404 (r.isNode && global) || 4405 ("undefined" != typeof window && window) || 4406 ("undefined" != typeof self && self) || 4407 this), 4408 (r.emptyArray = Object.freeze ? Object.freeze([]) : []), 4409 (r.emptyObject = Object.freeze ? Object.freeze({}) : {}), 4410 (r.isInteger = 4411 Number.isInteger || 4412 function (t) { 4413 return ( 4414 "number" == typeof t && isFinite(t) && Math.floor(t) === t 4415 ); 4416 }), 4417 (r.isString = function (t) { 4418 return "string" == typeof t || t instanceof String; 4419 }), 4420 (r.isObject = function (t) { 4421 return t && "object" == typeof t; 4422 }), 4423 (r.isset = r.isSet = 4424 function (t, i) { 4425 var n = t[i]; 4426 return ( 4427 null != n && 4428 t.hasOwnProperty(i) && 4429 ("object" != typeof n || 4430 0 < (Array.isArray(n) ? n : Object.keys(n)).length) 4431 ); 4432 }), 4433 (r.Buffer = (function () { 4434 try { 4435 var t = r.inquire("buffer").Buffer; 4436 return t.prototype.utf8Write ? t : null; 4437 } catch (t) { 4438 return null; 4439 } 4440 })()), 4441 (r.L = null), 4442 (r.V = null), 4443 (r.newBuffer = function (t) { 4444 return "number" == typeof t 4445 ? r.Buffer 4446 ? r.V(t) 4447 : new r.Array(t) 4448 : r.Buffer 4449 ? r.L(t) 4450 : "undefined" == typeof Uint8Array 4451 ? t 4452 : new Uint8Array(t); 4453 }), 4454 (r.Array = "undefined" != typeof Uint8Array ? Uint8Array : Array), 4455 (r.Long = 4456 (r.global.dcodeIO && r.global.dcodeIO.Long) || 4457 r.global.Long || 4458 r.inquire("long")), 4459 (r.key2Re = /^true|false|0|1$/), 4460 (r.key32Re = /^-?(?:0|[1-9][0-9]*)$/), 4461 (r.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/), 4462 (r.longToHash = function (t) { 4463 return t ? r.LongBits.from(t).toHash() : r.LongBits.zeroHash; 4464 }), 4465 (r.longFromHash = function (t, i) { 4466 t = r.LongBits.fromHash(t); 4467 return r.Long ? r.Long.fromBits(t.lo, t.hi, i) : t.toNumber(!!i); 4468 }), 4469 (r.merge = e), 4470 (r.lcFirst = function (t) { 4471 return (t[0] || "").toLowerCase() + t.substring(1); 4472 }), 4473 (r.newError = s), 4474 (r.ProtocolError = s("ProtocolError")), 4475 (r.oneOfGetter = function (t) { 4476 for (var n = {}, i = 0; i < t.length; ++i) n[t[i]] = 1; 4477 return function () { 4478 for (var t = Object.keys(this), i = t.length - 1; -1 < i; --i) 4479 if (1 === n[t[i]] && this[t[i]] !== rt && null !== this[t[i]]) 4480 return t[i]; 4481 }; 4482 }), 4483 (r.oneOfSetter = function (n) { 4484 return function (t) { 4485 for (var i = 0; i < n.length; ++i) 4486 n[i] !== t && delete this[n[i]]; 4487 }; 4488 }), 4489 (r.toJSONOptions = { 4490 longs: String, 4491 enums: String, 4492 bytes: String, 4493 json: !0, 4494 }), 4495 (r.p = function () { 4496 var n = r.Buffer; 4497 n 4498 ? ((r.L = 4499 (n.from !== Uint8Array.from && n.from) || 4500 function (t, i) { 4501 return new n(t, i); 4502 }), 4503 (r.V = 4504 n.allocUnsafe || 4505 function (t) { 4506 return new n(t); 4507 })) 4508 : (r.L = r.V = null); 4509 }); 4510 }, 4511 { 1: 1, 10: 10, 2: 2, 38: 38, 4: 4, 6: 6, 7: 7, 9: 9 }, 4512 ], 4513 40: [ 4514 function (t, i, n) { 4515 i.exports = function (t) { 4516 var i = f.codegen( 4517 ["m"], 4518 t.name + "$verify" 4519 )('if(typeof m!=="object"||m===null)')( 4520 "return%j", 4521 "object expected" 4522 ), 4523 n = t.oneofsArray, 4524 r = {}; 4525 n.length && i("var p={}"); 4526 for (var e = 0; e < t.fieldsArray.length; ++e) { 4527 var s, 4528 o = t.e[e].resolve(), 4529 u = "m" + f.safeProp(o.name); 4530 o.optional && i("if(%s!=null&&m.hasOwnProperty(%j)){", u, o.name), 4531 o.map 4532 ? (i("if(!util.isObject(%s))", u)("return%j", h(o, "object"))( 4533 "var k=Object.keys(%s)", 4534 u 4535 )("for(var i=0;i<k.length;++i){"), 4536 (function (t, i, n) { 4537 switch (i.keyType) { 4538 case "int32": 4539 case "uint32": 4540 case "sint32": 4541 case "fixed32": 4542 case "sfixed32": 4543 t("if(!util.key32Re.test(%s))", n)( 4544 "return%j", 4545 h(i, "integer key") 4546 ); 4547 break; 4548 case "int64": 4549 case "uint64": 4550 case "sint64": 4551 case "fixed64": 4552 case "sfixed64": 4553 t("if(!util.key64Re.test(%s))", n)( 4554 "return%j", 4555 h(i, "integer|Long key") 4556 ); 4557 break; 4558 case "bool": 4559 t("if(!util.key2Re.test(%s))", n)( 4560 "return%j", 4561 h(i, "boolean key") 4562 ); 4563 } 4564 })(i, o, "k[i]"), 4565 a(i, o, e, u + "[k[i]]")("}")) 4566 : o.repeated 4567 ? (i("if(!Array.isArray(%s))", u)("return%j", h(o, "array"))( 4568 "for(var i=0;i<%s.length;++i){", 4569 u 4570 ), 4571 a(i, o, e, u + "[i]")("}")) 4572 : (o.partOf && 4573 ((s = f.safeProp(o.partOf.name)), 4574 1 === r[o.partOf.name] && 4575 i("if(p%s===1)", s)( 4576 "return%j", 4577 o.partOf.name + ": multiple values" 4578 ), 4579 (r[o.partOf.name] = 1), 4580 i("p%s=1", s)), 4581 a(i, o, e, u)), 4582 o.optional && i("}"); 4583 } 4584 return i("return null"); 4585 }; 4586 var o = t(15), 4587 f = t(37); 4588 function h(t, i) { 4589 return ( 4590 t.name + 4591 ": " + 4592 i + 4593 (t.repeated && "array" !== i 4594 ? "[]" 4595 : t.map && "object" !== i 4596 ? "{k:" + t.keyType + "}" 4597 : "") + 4598 " expected" 4599 ); 4600 } 4601 function a(t, i, n, r) { 4602 if (i.resolvedType) 4603 if (i.resolvedType instanceof o) { 4604 t("switch(%s){", r)("default:")("return%j", h(i, "enum value")); 4605 for ( 4606 var e = Object.keys(i.resolvedType.values), s = 0; 4607 s < e.length; 4608 ++s 4609 ) 4610 t("case %i:", i.resolvedType.values[e[s]]); 4611 t("break")("}"); 4612 } else 4613 t("{")("var e=types[%i].verify(%s);", n, r)("if(e)")( 4614 "return%j+e", 4615 i.name + "." 4616 )("}"); 4617 else 4618 switch (i.type) { 4619 case "int32": 4620 case "uint32": 4621 case "sint32": 4622 case "fixed32": 4623 case "sfixed32": 4624 t("if(!util.isInteger(%s))", r)("return%j", h(i, "integer")); 4625 break; 4626 case "int64": 4627 case "uint64": 4628 case "sint64": 4629 case "fixed64": 4630 case "sfixed64": 4631 t( 4632 "if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))", 4633 r, 4634 r, 4635 r, 4636 r 4637 )("return%j", h(i, "integer|Long")); 4638 break; 4639 case "float": 4640 case "double": 4641 t('if(typeof %s!=="number")', r)("return%j", h(i, "number")); 4642 break; 4643 case "bool": 4644 t('if(typeof %s!=="boolean")', r)( 4645 "return%j", 4646 h(i, "boolean") 4647 ); 4648 break; 4649 case "string": 4650 t("if(!util.isString(%s))", r)("return%j", h(i, "string")); 4651 break; 4652 case "bytes": 4653 t( 4654 'if(!(%s&&typeof %s.length==="number"||util.isString(%s)))', 4655 r, 4656 r, 4657 r 4658 )("return%j", h(i, "buffer")); 4659 } 4660 return t; 4661 } 4662 }, 4663 { 15: 15, 37: 37 }, 4664 ], 4665 41: [ 4666 function (t, i, n) { 4667 var o = t(21); 4668 n[".google.protobuf.Any"] = { 4669 fromObject: function (t) { 4670 if (t && t["@type"]) { 4671 var i, 4672 n = t["@type"].substring(1 + t["@type"].lastIndexOf("/")), 4673 n = this.lookup(n); 4674 if (n) 4675 return ( 4676 ~(i = 4677 "." == (t["@type"][0] || "") 4678 ? t["@type"].slice(1) 4679 : t["@type"]).indexOf("/") || (i = "/" + i), 4680 this.create({ 4681 type_url: i, 4682 value: n.encode(n.fromObject(t)).finish(), 4683 }) 4684 ); 4685 } 4686 return this.fromObject(t); 4687 }, 4688 toObject: function (t, i) { 4689 var n, 4690 r, 4691 e = "", 4692 s = ""; 4693 r
4693eturn ( 4694 i && 4695 i.json && 4696 t.type_url && 4697 t.value && 4698 ((s = t.type_url.substring(1 + t.type_url.lastIndexOf("/"))), 4699 (e = t.type_url.substring( 4700 0, 4701 1 + t.type_url.lastIndexOf("/") 4702 )), 4703 (n = this.lookup(s)) && (t = n.decode(t.value))), 4704 !(t instanceof this.ctor) && t instanceof o 4705 ? ((n = t.$type.toObject(t, i)), 4706 (r = 4707 "." === t.$type.fullName[0] 4708 ? t.$type.fullName.slice(1) 4709 : t.$type.fullName), 4710 (n["@type"] = s = 4711 (e = "" === e ? "type.googleapis.com/" : e) + r), 4712 n) 4713 : this.toObject(t, i) 4714 ); 4715 }, 4716 }; 4717 }, 4718 { 21: 21 }, 4719 ], 4720 42: [ 4721 function (t, i, n) { 4722 i.exports = c; 4723 var r, 4724 e = t(39), 4725 s = e.LongBits, 4726 o = e.base64, 4727 u = e.utf8; 4728 function f(t, i, n) { 4729 (this.fn = t), (this.len = i), (this.next = rt), (this.val = n); 4730 } 4731 function h() {} 4732 function a(t) { 4733 (this.head = t.head), 4734 (this.tail = t.tail), 4735 (this.len = t.len), 4736 (this.next = t.states); 4737 } 4738 function c() { 4739 (this.len = 0), 4740 (this.head = new f(h, 0, 0)), 4741 (this.tail = this.head), 4742 (this.states = null); 4743 } 4744 function l() { 4745 return e.Buffer 4746 ? function () { 4747 return (c.create = function () { 4748 return new r(); 4749 })(); 4750 } 4751 : function () { 4752 return new c(); 4753 }; 4754 } 4755 function d(t, i, n) { 4756 i[n] = 255 & t; 4757 } 4758 function p(t, i) { 4759 (this.len = t), (this.next = rt), (this.val = i); 4760 } 4761 function v(t, i, n) { 4762 for (; t.hi; ) 4763 (i[n++] = (127 & t.lo) | 128), 4764 (t.lo = ((t.lo >>> 7) | (t.hi << 25)) >>> 0), 4765 (t.hi >>>= 7); 4766 for (; 127 < t.lo; ) 4767 (i[n++] = (127 & t.lo) | 128), (t.lo = t.lo >>> 7); 4768 i[n++] = t.lo; 4769 } 4770 function b(t, i, n) { 4771 (i[n] = 255 & t), 4772 (i[n + 1] = (t >>> 8) & 255), 4773 (i[n + 2] = (t >>> 16) & 255), 4774 (i[n + 3] = t >>> 24); 4775 } 4776 (c.create = l()), 4777 (c.alloc = function (t) { 4778 return new e.Array(t); 4779 }), 4780 e.Array !== Array && 4781 (c.alloc = e.pool(c.alloc, e.Array.prototype.subarray)), 4782 (c.prototype.M = function (t, i, n) { 4783 return ( 4784 (this.tail = this.tail.next = new f(t, i, n)), 4785 (this.len += i), 4786 this 4787 ); 4788 }), 4789 ((p.prototype = Object.create(f.prototype)).fn = function ( 4790 t, 4791 i, 4792 n 4793 ) { 4794 for (; 127 < t; ) (i[n++] = (127 & t) | 128), (t >>>= 7); 4795 i[n] = t; 4796 }), 4797 (c.prototype.uint32 = function (t) { 4798 return ( 4799 (this.len += (this.tail = this.tail.next = 4800 new p( 4801 (t >>>= 0) < 128 4802 ? 1 4803 : t < 16384 4804 ? 2 4805 : t < 2097152 4806 ? 3 4807 : t < 268435456 4808 ? 4 4809 : 5, 4810 t 4811 )).len), 4812 this 4813 ); 4814 }), 4815 (c.prototype.int32 = function (t) { 4816 return t < 0 ? this.M(v, 10, s.fromNumber(t)) : this.uint32(t); 4817 }), 4818 (c.prototype.sint32 = function (t) { 4819 return this.uint32(((t << 1) ^ (t >> 31)) >>> 0); 4820 }), 4821 (c.prototype.int64 = c.prototype.uint64 = 4822 function (t) { 4823 t = s.from(t); 4824 return this.M(v, t.length(), t); 4825 }), 4826 (c.prototype.sint64 = function (t) { 4827 t = s.from(t).zzEncode(); 4828 return this.M(v, t.length(), t); 4829 }), 4830 (c.prototype.bool = function (t) { 4831 return this.M(d, 1, t ? 1 : 0); 4832 }), 4833 (c.prototype.sfixed32 = c.prototype.fixed32 = 4834 function (t) { 4835 return this.M(b, 4, t >>> 0); 4836 }), 4837 (c.prototype.sfixed64 = c.prototype.fixed64 = 4838 function (t) { 4839 t = s.from(t); 4840 return this.M(b, 4, t.lo).M(b, 4, t.hi); 4841 }), 4842 (c.prototype.float = function (t) { 4843 return this.M(e.float.writeFloatLE, 4, t); 4844 }), 4845 (c.prototype.double = function (t) { 4846 return this.M(e.float.writeDoubleLE, 8, t); 4847 }); 4848 var w = e.Array.prototype.set 4849 ? function (t, i, n) { 4850 i.set(t, n); 4851 } 4852 : function (t, i, n) { 4853 for (var r = 0; r < t.length; ++r) i[n + r] = t[r]; 4854 }; 4855 (c.prototype.bytes = function (t) { 4856 var i, 4857 n = t.length >>> 0; 4858 return n 4859 ? (e.isString(t) && 4860 ((i = c.alloc((n = o.length(t)))), 4861 o.decode(t, i, 0), 4862 (t = i)), 4863 this.uint32(n).M(w, n, t)) 4864 : this.M(d, 1, 0); 4865 }), 4866 (c.prototype.string = function (t) { 4867 var i = u.length(t); 4868 return i ? this.uint32(i).M(u.write, i, t) : this.M(d, 1, 0); 4869 }), 4870 (c.prototype.fork = function () { 4871 return ( 4872 (this.states = new a(this)), 4873 (this.head = this.tail = new f(h, 0, 0)), 4874 (this.len = 0), 4875 this 4876 ); 4877 }), 4878 (c.prototype.reset = function () { 4879 return ( 4880 this.states 4881 ? ((this.head = this.states.head), 4882 (this.tail = this.states.tail), 4883 (this.len = this.states.len), 4884 (this.states = this.states.next)) 4885 : ((this.head = this.tail = new f(h, 0, 0)), (this.len = 0)), 4886 this 4887 ); 4888 }), 4889 (c.prototype.ldelim = function () { 4890 var t = this.head, 4891 i = this.tail, 4892 n = this.len; 4893 return ( 4894 this.reset().uint32(n), 4895 n && 4896 ((this.tail.next = t.next), (this.tail = i), (this.len += n)), 4897 this 4898 ); 4899 }), 4900 (c.prototype.finish = function () { 4901 for ( 4902 var t = this.head.next, 4903 i = this.constructor.alloc(this.len), 4904 n = 0; 4905 t; 4906 4907 ) 4908 t.fn(t.val, i, n), (n += t.len), (t = t.next); 4909 return i; 4910 }), 4911 (c.p = function (t) { 4912 (r = t), (c.create = l()), r.p(); 4913 }); 4914 }, 4915 { 39: 39 }, 4916 ], 4917 43: [ 4918 function (t, i, n) { 4919 i.exports = s; 4920 var r = t(42), 4921 e = 4922 (((s.prototype = Object.create(r.prototype)).constructor = s), 4923 t(39)); 4924 function s() { 4925 r.call(this); 4926 } 4927 function o(t, i, n) { 4928 t.length < 40 4929 ? e.utf8.write(t, i, n) 4930 : i.utf8Write 4931 ? i.utf8Write(t, n) 4932 : i.write(t, n); 4933 } 4934 (s.p = function () { 4935 (s.alloc = e.V), 4936 (s.writeBytesBuffer = 4937 e.Buffer && 4938 e.Buffer.prototype instanceof Uint8Array && 4939 "set" === e.Buffer.prototype.set.name 4940 ? function (t, i, n) { 4941 i.set(t, n); 4942 } 4943 : function (t, i, n) { 4944 if (t.copy) t.copy(i, n, 0, t.length); 4945 else for (var r = 0; r < t.length; ) i[n++] = t[r++]; 4946 }); 4947 }), 4948 (s.prototype.bytes = function (t) { 4949 var i = (t = e.isString(t) ? e.L(t, "base64") : t).length >>> 0; 4950 return ( 4951 this.uint32(i), i && this.M(s.writeBytesBuffer, i, t), this 4952 ); 4953 }), 4954 (s.prototype.string = function (t) { 4955 var i = e.Buffer.byteLength(t); 4956 return this.uint32(i), i && this.M(o, i, t), this; 4957 }), 4958 s.p(); 4959 }, 4960 { 39: 39, 42: 42 }, 4961 ], 4962 }, 4963 {}, 4964 [19] 4965 ); 4966})(); 4967//# sourceMappingURL=protobuf.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.