/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@feedobell/core-lit@0.0.3/dist/index.cjs.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lit=require("lit"),tailwindcss='/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n  :root, :host {\n    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",\n      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",\n      "Courier New", monospace;\n    --color-red-100: oklch(93.6% 0.032 17.717);\n    --color-red-300: oklch(80.8% 0.114 19.571);\n    --color-red-500: oklch(63.7% 0.237 25.331);\n    --color-red-700: oklch(50.5% 0.213 27.518);\n    --color-red-800: oklch(44.4% 0.177 26.899);\n    --color-blue-300: oklch(80.9% 0.105 251.813);\n    --color-blue-400: oklch(70.7% 0.165 254.624);\n    --color-blue-500: oklch(62.3% 0.214 259.815);\n    --color-blue-600: oklch(54.6% 0.245 262.881);\n    --color-blue-700: oklch(48.8% 0.243 264.376);\n    --color-blue-800: oklch(42.4% 0.199 265.638);\n    --color-gray-100: oklch(96.7% 0.003 264.542);\n    --color-gray-500: oklch(55.1% 0.027 264.364);\n    --color-gray-700: oklch(37.3% 0.034 259.733);\n    --color-gray-800: oklch(27.8% 0.033 256.848);\n    --color-white: #fff;\n    --spacing: 0.25rem;\n    --text-xs: 0.75rem;\n    --text-xs--line-height: calc(1 / 0.75);\n    --text-sm: 0.875rem;\n    --text-sm--line-height: calc(1.25 / 0.875);\n    --text-lg: 1.125rem;\n    --text-lg--line-height: calc(1.75 / 1.125);\n    --text-xl: 1.25rem;\n    --text-xl--line-height: calc(1.75 / 1.25);\n    --text-3xl: 1.875rem;\n    --text-3xl--line-height: calc(2.25 / 1.875);\n    --font-weight-medium: 500;\n    --font-weight-semibold: 600;\n    --font-weight-bold: 700;\n    --radius-md: 0.375rem;\n    --radius-lg: 0.5rem;\n    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);\n    --default-transition-duration: 150ms;\n    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    --default-font-family: var(--font-sans);\n    --default-mono-font-family: var(--font-mono);\n  }\n}\n@layer base {\n  *, ::after, ::before, ::backdrop, ::file-selector-button {\n    box-sizing: border-box;\n    margin: 0;\n    padding: 0;\n    border: 0 solid;\n  }\n  html, :host {\n    line-height: 1.5;\n    -webkit-text-size-adjust: 100%;\n    tab-size: 4;\n    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");\n    font-feature-settings: var(--default-font-feature-settings, normal);\n    font-variation-settings: var(--default-font-variation-settings, normal);\n    -webkit-tap-highlight-color: transparent;\n  }\n  hr {\n    height: 0;\n    color: inherit;\n    border-top-width: 1px;\n  }\n  abbr:where([title]) {\n    -webkit-text-decoration: underline dotted;\n    text-decoration: underline dotted;\n  }\n  h1, h2, h3, h4, h5, h6 {\n    font-size: inherit;\n    font-weight: inherit;\n  }\n  a {\n    color: inherit;\n    -webkit-text-decoration: inherit;\n    text-decoration: inherit;\n  }\n  b, strong {\n    font-weight: bolder;\n  }\n  code, kbd, samp, pre {\n    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);\n    font-feature-settings: var(--default-mono-font-feature-settings, normal);\n    font-variation-settings: var(--default-mono-font-variation-settings, normal);\n    font-size: 1em;\n  }\n  small {\n    font-size: 80%;\n  }\n  sub, sup {\n    font-size: 75%;\n    line-height: 0;\n    position: relative;\n    vertical-align: baseline;\n  }\n  sub {\n    bottom: -0.25em;\n  }\n  sup {\n    top: -0.5em;\n  }\n  table {\n    text-indent: 0;\n    border-color: inherit;\n    border-collapse: collapse;\n  }\n  :-moz-focusring {\n    outline: auto;\n  }\n  progress {\n    vertical-align: baseline;\n  }\n  summary {\n    display: list-item;\n  }\n  ol, ul, menu {\n    list-style: none;\n  }\n  img, svg, video, canvas, audio, iframe, embed, object {\n    display: block;\n    vertical-align: middle;\n  }\n  img, video {\n    max-width: 100%;\n    height: auto;\n  }\n  button, input, select, optgroup, textarea, ::file-selector-button {\n    font: inherit;\n    font-feature-settings: inherit;\n    font-variation-settings: inherit;\n    letter-spacing: inherit;\n    color: inherit;\n    border-radius: 0;\n    background-color: transparent;\n    opacity: 1;\n  }\n  :where(select:is([multiple], [size])) optgroup {\n    font-weight: bolder;\n  }\n  :where(select:is([multiple], [size])) optgroup option {\n    padding-inline-start: 20px;\n  }\n  ::file-selector-button {\n    margin-inline-end: 4px;\n  }\n  ::placeholder {\n    opacity: 1;\n  }\n  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {\n    ::placeholder {\n      color: currentcolor;\n      @supports (color: color-mix(in lab, red, red)) {\n        color: color-mix(in oklab, currentcolor 50%, transparent);\n      }\n    }\n  }\n  textarea {\n    resize: vertical;\n  }\n  ::-webkit-search-decoration {\n    -webkit-appearance: none;\n  }\n  ::-webkit-date-and-time-value {\n    min-height: 1lh;\n    text-align: inherit;\n  }\n  ::-webkit-datetime-edit {\n    display: inline-flex;\n  }\n  ::-webkit-datetime-edit-fields-wrapper {\n    padding: 0;\n  }\n  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {\n    padding-block: 0;\n  }\n  ::-webkit-calendar-picker-indicator {\n    line-height: 1;\n  }\n  :-moz-ui-invalid {\n    box-shadow: none;\n  }\n  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {\n    appearance: button;\n  }\n  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {\n    height: auto;\n  }\n  [hidden]:where(:not([hidden="until-found"])) {\n    display: none !important;\n  }\n}\n@layer utilities {\n  .absolute {\n    position: absolute;\n  }\n  .fixed {\n    position: fixed;\n  }\n  .relative {\n    position: relative;\n  }\n  .static {\n    position: static;\n  }\n  .inset-0 {\n    inset: calc(var(--spacing) * 0);\n  }\n  .top-0 {\n    top: calc(var(--spacing) * 0);\n  }\n  .top-1 {\n    top: calc(var(--spacing) * 1);\n  }\n  .right-0 {\n    right: calc(var(--spacing) * 0);\n  }\n  .right-1 {\n    right: calc(var(--spacing) * 1);\n  }\n  .left-0 {\n    left: calc(var(--spacing) * 0);\n  }\n  .z-50 {\n    z-index: 50;\n  }\n  .mx-2 {\n    margin-inline: calc(var(--spacing) * 2);\n  }\n  .my-1 {\n    margin-block: calc(var(--spacing) * 1);\n  }\n  .my-2 {\n    margin-block: calc(var(--spacing) * 2);\n  }\n  .mt-2 {\n    margin-top: calc(var(--spacing) * 2);\n  }\n  .mb-3 {\n    margin-bottom: calc(var(--spacing) * 3);\n  }\n  .mb-4 {\n    margin-bottom: calc(var(--spacing) * 4);\n  }\n  .line-clamp-1 {\n    overflow: hidden;\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: 1;\n  }\n  .flex {\n    display: flex;\n  }\n  .inline-flex {\n    display: inline-flex;\n  }\n  .h-6 {\n    height: calc(var(--spacing) * 6);\n  }\n  .h-8 {\n    height: calc(var(--spacing) * 8);\n  }\n  .h-\\[1rem\\] {\n    height: 1rem;\n  }\n  .h-full {\n    height: 100%;\n  }\n  .w-1\\/4 {\n    width: calc(1/4 * 100%);\n  }\n  .w-6 {\n    width: calc(var(--spacing) * 6);\n  }\n  .w-full {\n    width: 100%;\n  }\n  .max-w-none {\n    max-width: none;\n  }\n  .min-w-\\[1rem\\] {\n    min-width: 1rem;\n  }\n  .flex-1 {\n    flex: 1;\n  }\n  .transform {\n    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);\n  }\n  .cursor-pointer {\n    cursor: pointer;\n  }\n  .flex-col {\n    flex-direction: column;\n  }\n  .items-center {\n    align-items: center;\n  }\n  .justify-between {\n    justify-content: space-between;\n  }\n  .justify-center {\n    justify-content: center;\n  }\n  .gap-1 {\n    gap: calc(var(--spacing) * 1);\n  }\n  .gap-1\\.5 {\n    gap: calc(var(--spacing) * 1.5);\n  }\n  .space-y-3 {\n    :where(& > :not(:last-child)) {\n      --tw-space-y-reverse: 0;\n      margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));\n      margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));\n    }\n  }\n  .truncate {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n  }\n  .overflow-hidden {\n    overflow: hidden;\n  }\n  .overflow-y-auto {\n    overflow-y: auto;\n  }\n  .rounded-full {\n    border-radius: calc(infinity * 1px);\n  }\n  .rounded-lg {\n    border-radius: var(--radius-lg);\n  }\n  .rounded-md {\n    border-radius: var(--radius-md);\n  }\n  .border {\n    border-style: var(--tw-border-style);\n    border-width: 1px;\n  }\n  .border-2 {\n    border-style: var(--tw-border-style);\n    border-width: 2px;\n  }\n  .border-dashed {\n    --tw-border-style: dashed;\n    border-style: dashed;\n  }\n  .border-solid {\n    --tw-border-style: solid;\n    border-style: solid;\n  }\n  .border-blue-500 {\n    border-color: var(--color-blue-500);\n  }\n  .border-red-300 {\n    border-color: var(--color-red-300);\n  }\n  .bg-\\[\\#f9f9f9\\] {\n    background-color: #f9f9f9;\n  }\n  .bg-blue-600 {\n    background-color: var(--color-blue-600);\n  }\n  .bg-gray-100 {\n    background-color: var(--color-gray-100);\n  }\n  .bg-red-100 {\n    background-color: var(--color-red-100);\n  }\n  .bg-red-500 {\n    background-color: var(--color-red-500);\n  }\n  .bg-white {\n    background-color: var(--color-white);\n  }\n  .p-2 {\n    padding: calc(var(--spacing) * 2);\n  }\n  .p-3 {\n    padding: calc(var(--spacing) * 3);\n  }\n  .p-4 {\n    padding: calc(var(--spacing) * 4);\n  }\n  .px-1 {\n    padding-inline: calc(var(--spacing) * 1);\n  }\n  .px-1\\.5 {\n    padding-inline: calc(var(--spacing) * 1.5);\n  }\n  .px-3 {\n    padding-inline: calc(var(--spacing) * 3);\n  }\n  .py-4 {\n    padding-block: calc(var(--spacing) * 4);\n  }\n  .pr-2 {\n    padding-right: calc(var(--spacing) * 2);\n  }\n  .text-center {\n    text-align: center;\n  }\n  .text-lg {\n    font-size: var(--text-lg);\n    line-height: var(--tw-leading, var(--text-lg--line-height));\n  }\n  .text-sm {\n    font-size: var(--text-sm);\n    line-height: var(--tw-leading, var(--text-sm--line-height));\n  }\n  .text-xl {\n    font-size: var(--text-xl);\n    line-height: var(--tw-leading, var(--text-xl--line-height));\n  }\n  .text-xs {\n    font-size: var(--text-xs);\n    line-height: var(--tw-leading, var(--text-xs--line-height));\n  }\n  .leading-none {\n    --tw-leading: 1;\n    line-height: 1;\n  }\n  .font-bold {\n    --tw-font-weight: var(--font-weight-bold);\n    font-weight: var(--font-weight-bold);\n  }\n  .font-medium {\n    --tw-font-weight: var(--font-weight-medium);\n    font-weight: var(--font-weight-medium);\n  }\n  .font-semibold {\n    --tw-font-weight: var(--font-weight-semibold);\n    font-weight: var(--font-weight-semibold);\n  }\n  .text-blue-600 {\n    color: var(--color-blue-600);\n  }\n  .text-blue-700 {\n    color: var(--color-blue-700);\n  }\n  .text-gray-700 {\n    color: var(--color-gray-700);\n  }\n  .text-gray-800 {\n    color: var(--color-gray-800);\n  }\n  .text-red-500 {\n    color: var(--color-red-500);\n  }\n  .text-red-800 {\n    color: var(--color-red-800);\n  }\n  .text-white {\n    color: var(--color-white);\n  }\n  .underline {\n    text-decoration-line: underline;\n  }\n  .shadow-sm {\n    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n  }\n  .shadow-xl {\n    --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n  }\n  .transition {\n    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;\n    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));\n    transition-duration: var(--tw-duration, var(--default-transition-duration));\n  }\n  .transition-all {\n    transition-property: all;\n    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));\n    transition-duration: var(--tw-duration, var(--default-transition-duration));\n  }\n  .transition-shadow {\n    transition-property: box-shadow;\n    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));\n    transition-duration: var(--tw-duration, var(--default-transition-duration));\n  }\n  .transition-transform {\n    transition-property: transform, translate, scale, rotate;\n    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));\n    transition-duration: var(--tw-duration, var(--default-transition-duration));\n  }\n  .duration-200 {\n    --tw-duration: 200ms;\n    transition-duration: 200ms;\n  }\n  .duration-300 {\n    --tw-duration: 300ms;\n    transition-duration: 300ms;\n  }\n  .ease-in-out {\n    --tw-ease: var(--ease-in-out);\n    transition-timing-function: var(--ease-in-out);\n  }\n  .outline-none {\n    --tw-outline-style: none;\n    outline-style: none;\n  }\n  .hover\\:bg-gray-100 {\n    &:hover {\n      @media (hover: hover) {\n        background-color: var(--color-gray-100);\n      }\n    }\n  }\n  .hover\\:text-red-700 {\n    &:hover {\n      @media (hover: hover) {\n        color: var(--color-red-700);\n      }\n    }\n  }\n  .hover\\:underline {\n    &:hover {\n      @media (hover: hover) {\n        text-decoration-line: underline;\n      }\n    }\n  }\n  .hover\\:shadow-lg {\n    &:hover {\n      @media (hover: hover) {\n        --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n      }\n    }\n  }\n  .focus-visible\\:outline-none {\n    &:focus-visible {\n      --tw-outline-style: none;\n      outline-style: none;\n    }\n  }\n  .max-lg\\:w-1\\/3 {\n    @media (width < 64rem) {\n      width: calc(1/3 * 100%);\n    }\n  }\n  .max-md\\:w-full {\n    @media (width < 48rem) {\n      width: 100%;\n    }\n  }\n  .\\[\\&\\>img\\]\\:my-2 {\n    &>img {\n      margin-block: calc(var(--spacing) * 2);\n    }\n  }\n  .\\[\\&\\>img\\]\\:rounded-lg {\n    &>img {\n      border-radius: var(--radius-lg);\n    }\n  }\n}\n@property --tw-rotate-x {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-rotate-y {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-rotate-z {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-skew-x {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-skew-y {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-space-y-reverse {\n  syntax: "*";\n  inherits: false;\n  initial-value: 0;\n}\n@property --tw-border-style {\n  syntax: "*";\n  inherits: false;\n  initial-value: solid;\n}\n@property --tw-leading {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-font-weight {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-shadow {\n  syntax: "*";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --tw-shadow-color {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-shadow-alpha {\n  syntax: "<percentage>";\n  inherits: false;\n  initial-value: 100%;\n}\n@property --tw-inset-shadow {\n  syntax: "*";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --tw-inset-shadow-color {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-inset-shadow-alpha {\n  syntax: "<percentage>";\n  inherits: false;\n  initial-value: 100%;\n}\n@property --tw-ring-color {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-ring-shadow {\n  syntax: "*";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --tw-inset-ring-color {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-inset-ring-shadow {\n  syntax: "*";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --tw-ring-inset {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-ring-offset-width {\n  syntax: "<length>";\n  inherits: false;\n  initial-value: 0px;\n}\n@property --tw-ring-offset-color {\n  syntax: "*";\n  inherits: false;\n  initial-value: #fff;\n}\n@property --tw-ring-offset-shadow {\n  syntax: "*";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --tw-duration {\n  syntax: "*";\n  inherits: false;\n}\n@property --tw-ease {\n  syntax: "*";\n  inherits: false;\n}\n@layer properties {\n  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n    *, ::before, ::after, ::backdrop {\n      --tw-rotate-x: initial;\n      --tw-rotate-y: initial;\n      --tw-rotate-z: initial;\n      --tw-skew-x: initial;\n      --tw-skew-y: initial;\n      --tw-space-y-reverse: 0;\n      --tw-border-style: solid;\n      --tw-leading: initial;\n      --tw-font-weight: initial;\n      --tw-shadow: 0 0 #0000;\n      --tw-shadow-color: initial;\n      --tw-shadow-alpha: 100%;\n      --tw-inset-shadow: 0 0 #0000;\n      --tw-inset-shadow-color: initial;\n      --tw-inset-shadow-alpha: 100%;\n      --tw-ring-color: initial;\n      --tw-ring-shadow: 0 0 #0000;\n      --tw-inset-ring-color: initial;\n      --tw-inset-ring-shadow: 0 0 #0000;\n      --tw-ring-inset: initial;\n      --tw-ring-offset-width: 0px;\n      --tw-ring-offset-color: #fff;\n      --tw-ring-offset-shadow: 0 0 #0000;\n      --tw-duration: initial;\n      --tw-ease: initial;\n    }\n  }\n}\n',t$4=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)}
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,t$3=globalThis,e$5=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1=Symbol(),o$6=new WeakMap;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */let n$5=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==s$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(e$5&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=o$6.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&o$6.set(t,e))}return e}toString(){return this.cssText}};const r$5=e=>new n$5("string"==typeof e?e:e+"",void 0,s$1),S$1=(e,t)=>{if(e$5)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),o=t$3.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=r.cssText,e.appendChild(t)}},c$2=e$5?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return r$5(t)})(e):e
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,{is:i$3,defineProperty:e$4,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$4,getOwnPropertySymbols:o$5,getPrototypeOf:n$4}=Object,a$1=globalThis,c$1=a$1.trustedTypes,l$1=c$1?c$1.emptyScript:"",p$1=a$1.reactiveElementPolyfillSupport,d$1=(e,t)=>e,u$1={toAttribute(e,t){switch(t){case Boolean:e=e?l$1:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},f$1=(e,t)=>!i$3(e,t),b={attribute:!0,type:String,converter:u$1,reflect:!1,useDefault:!1,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$1.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=b){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);void 0!==o&&e$4(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){const{get:o,set:s}=h$1(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:o,set(t){const n=o?.call(this);s?.call(this,t),this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const e=n$4(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const e=this.properties,t=[...r$4(e),...o$5(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(c$2(e))}else void 0!==e&&t.push(c$2(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(void 0!==o&&!0===r.reflect){const s=(void 0!==r.converter?.toAttribute?r.converter:u$1).toAttribute(t,r.type);this._$Em=e,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){const r=this.constructor,o=r._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=r.getPropertyOptions(o),s="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:u$1;this._$Em=o;const n=s.fromAttribute(t,e.type);this[o]=n??this._$Ej?.get(o)??n,this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){const o=this.constructor,s=this[e];if(r??=o.getPropertyOptions(e),!((r.hasChanged??f$1)(s,t)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:s},n){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,n??t??this[e]),!0!==s||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),!0===o&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e){const{wrapped:e}=r,o=this[t];!0!==e||this._$AL.has(t)||void 0===o||this.C(t,void 0,r,o)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d$1("elementProperties")]=new Map,y[d$1("finalized")]=new Map,p$1?.({ReactiveElement:y}),(a$1.reactiveElementVersions??=[]).push("2.1.1");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const o$4={attribute:!0,type:String,converter:u$1,reflect:!1,hasChanged:f$1},r$3=(e=o$4,t,r)=>{const{kind:o,metadata:s}=r;let n=globalThis.litPropertyMetadata.get(s);if(void 0===n&&globalThis.litPropertyMetadata.set(s,n=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),n.set(r.name,e),"accessor"===o){const{name:o}=r;return{set(r){const s=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,s,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){const{name:o}=r;return function(r){const s=this[o];t.call(this,r),this.requestUpdate(o,s,e)}}throw Error("Unsupported decorator location: "+o)};function n$3(e){return(t,r)=>"object"==typeof r?r$3(e,t,r):((e,t,r)=>{const o=t.hasOwnProperty(r);return t.constructor.createProperty(r,e),o?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */}function r$2(e){return n$3({...e,state:!0,attribute:!1})}var __getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__decorateClass$5=(e,t,r,o)=>{for(var s,n=o>1?void 0:o?__getOwnPropDesc$5(t,r):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=s(n)||n);return n};const tailwindElement=lit.unsafeCSS(tailwindcss);let FeedobellElement=class extends lit.LitElement{};FeedobellElement.styles=[tailwindElement],FeedobellElement=__decorateClass$5([t$4("feedobell-element")],FeedobellElement);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),r}var src$1={},cacheClient={},cacheControlClient={},dist={},CacheclientServiceClientPb={},grpcWeb={},hasRequiredGrpcWeb;function requireGrpcWeb(){if(hasRequiredGrpcWeb)return grpcWeb;var e;function t(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}hasRequiredGrpcWeb=1;var r="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)};var o=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof commonjsGlobal&&commonjsGlobal,e];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(grpcWeb);function s(){s=function(){},o.Symbol||(o.Symbol=a)}function n(e,t){this.a=e,r(this,"description",{configurable:!0,writable:!0,value:t})}n.prototype.toString=function(){return this.a};var i,a=(i=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new n("jscomp_symbol_"+(t||"")+"_"+i++,t)});function u(){s();var e=o.Symbol.iterator;e||(e=o.Symbol.iterator=o.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&r(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return u(),e={next:e},e[o.Symbol.iterator]=function(){return this},e}(t(this))}}),u=function(){}}function c(e){var r=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];return r?r.call(e):{next:t(e)}}var l,p="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)l=Object.setPrototypeOf;else{var d;e:{var g={};try{g.__proto__={V:!0},d=g.V;break e}catch{}d=!1}l=d?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var h=l;function f(e,t){if(e.prototype=p(t.prototype),e.prototype.constructor=e,h)h(e,t);else for(var r in t)if("prototype"!=r)if(Object.defineProperties){var o=Object.getOwnPropertyDescriptor(t,r);o&&Object.defineProperty(e,r,o)}else e[r]=t[r];e.O=t.prototype}function y(e,t){if(t){var s=o;e=e.split(".");for(var n=0;n<e.length-1;n++){var i=e[n];i in s||(s[i]={}),s=s[i]}(t=t(n=s[e=e[e.length-1]]))!=n&&null!=t&&r(s,e,{configurable:!0,writable:!0,value:t})}}y("Array.prototype.keys",(function(e){return e||function(){return function(e,t){u(),e instanceof String&&(e+="");var r=0,o={next:function(){if(r<e.length){var s=r++;return{value:t(s,e[s]),done:!1}}return o.next=function(){return{done:!0,value:void 0}},o.next()}};return o[Symbol.iterator]=function(){return o},o}(this,(function(e){return e}))}})),y("Array.prototype.find",(function(e){return e||function(e,t){e:{var r=this;r instanceof String&&(r=String(r));for(var o=r.length,s=0;s<o;s++){var n=r[s];if(e.call(t,n,s,r)){e=n;break e}}e=void 0}return e}})),y("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),y("Array.prototype.includes",(function(e){return e||function(e,t){var r=this;r instanceof String&&(r=String(r));var o=r.length;for(0>(t=t||0)&&(t=Math.max(t+o,0));t<o;t++){var s=r[t];if(s===e||Object.is(s,e))return!0}return!1}})),y("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function r(){this.a=null}function s(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;r.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var n=o.setTimeout;r.prototype.c=function(e){n(e,0)},r.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var r=e[t];e[t]=null;try{r()}catch(e){this.f(e)}}}this.a=null},r.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(o){r||(r=!0,e.call(t,o))}}var t=this,r=!1;return{resolve:e(this.s),reject:e(this.g)}},t.prototype.s=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.v(e);else{e:switch(typeof e){case"object":var r=null!=e;break e;case"function":r=!0;break e;default:r=!1}r?this.m(e):this.h(e)}},t.prototype.m=function(e){var t=void 0;try{t=e.then}catch(e){return void this.g(e)}"function"==typeof t?this.w(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)i.b(this.a[e]);this.a=null}};var i=new r;return t.prototype.v=function(e){var t=this.f();e.F(t.resolve,t.reject)},t.prototype.w=function(e,t){var r=this.f();try{e.call(t,r.resolve,r.reject)}catch(e){r.reject(e)}},t.prototype.then=function(e,r){function o(e,t){return"function"==typeof e?function(t){try{s(e(t))}catch(e){n(e)}}:t}var s,n,i=new t((function(e,t){s=e,n=t}));return this.F(o(e,s),o(r,n)),i},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.F=function(e,t){function r(){switch(o.b){case 1:e(o.c);break;case 2:t(o.c);break;default:throw Error("Unexpected state: "+o.b)}}var o=this;null==this.a?i.b(r):this.a.push(r)},t.resolve=s,t.reject=function(e){return new t((function(t,r){r(e)}))},t.race=function(e){return new t((function(t,r){for(var o=c(e),n=o.next();!n.done;n=o.next())s(n.value).F(t,r)}))},t.all=function(e){var r=c(e),o=r.next();return o.done?s([]):new t((function(e,t){function n(t){return function(r){i[t]=r,0==--a&&e(i)}}var i=[],a=0;do{i.push(void 0),a++,s(o.value).F(n(i.length-1),t),o=r.next()}while(!o.done)}))},t}));var _=_||{},R=grpcWeb||self;function S(e,t){e=e.split("."),t=t||R;for(var r=0;r<e.length;r++)if(null==(t=t[e[r]]))return null;return t}function m(){}function b(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function E(e,t,r){return e.call.apply(e.bind,arguments)}function M(e,t,r){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,o),e.apply(t,r)}}return function(){return e.apply(t,arguments)}}function F(e,t,r){return(F=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?E:M).apply(null,arguments)}function v(e,t){function r(){}r.prototype=t.prototype,e.O=t.prototype,e.prototype=new r,e.prototype.constructor=e}function T(e){this.a=e||{}}function B(e,t,r,o){this.f=e,this.c=t,this.b=r,this.a=o}function C(e,t,r,o){r=void 0===r?{}:r,this.c=e,this.a=r,this.b=t,this.f=void 0===o?null:o}function O(e,t,r,o,s,n){this.name=e,this.a=s,this.b=n}function w(e,t,r){r=void 0===r?{}:r;var o=void 0===o?new T:o;return new B(t,e,r,o)}function L(e,t,r){r=void 0===r?{}:r,t=Error.call(this,t),this.message=t.message,"stack"in t&&(this.stack=t.stack),this.code=e,this.metadata=r}function P(e){this.a=e}function I(e){if(Error.captureStackTrace)Error.captureStackTrace(this,I);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function D(e,t){for(var r="",o=(e=e.split("%s")).length-1,s=0;s<o;s++)r+=e[s]+(s<t.length?t[s]:"%s");I.call(this,r+e[o])}function A(){this.l=null,this.i=[],this.m=0,this.b=q,this.f=this.a=this.h=0,this.c=null,this.g=0}T.prototype.get=function(e){return this.a[e]},T.prototype.G=function(){return Object.keys(this.a)},B.prototype.getRequestMessage=function(){return this.f},B.prototype.getMethodDescriptor=function(){return this.c},B.prototype.getMetadata=function(){return this.b},B.prototype.getCallOptions=function(){return this.a},C.prototype.getResponseMessage=function(){return this.c},C.prototype.getMetadata=function(){return this.a},C.prototype.getMethodDescriptor=function(){return this.b},C.prototype.getStatus=function(){return this.f},O.prototype.getName=function(){return this.name},O.prototype.getName=O.prototype.getName,f(L,Error),L.prototype.name="RpcError",P.prototype.on=function(e,t){return"data"==e||"error"==e?this:this.a.on(e,t)},P.prototype.removeListener=function(e,t){return this.a.removeListener(e,t)},P.prototype.cancel=function(){this.a.cancel()},v(I,Error),I.prototype.name="CustomError",v(D,I),D.prototype.name="AssertionError";var q=0,N=1,j=2,k=3,W=0,G=128;function x(e,t,r,o){throw e.b=k,e.l="The stream is broken @"+e.m+"/"+r+". Error: "+o+". With input:\n"+t,Error(e.l)}var U,z=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var r=0;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},$=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function H(e,t){return-1!=e.indexOf(t)}function V(e,t){return e<t?-1:e>t?1:0}e:{var K=R.navigator;if(K){var J=K.userAgent;if(J){U=J;break e}}U=""}var Y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function X(e){var t=1;e=e.split(":");for(var r=[];0<t&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r}function Z(e){return Z[" "](e),e}Z[" "]=m;var Q,ee,te=H(U,"Opera"),re=H(U,"Trident")||H(U,"MSIE"),oe=H(U,"Edge"),se=H(U,"Gecko")&&!(H(U.toLowerCase(),"webkit")&&!H(U,"Edge"))&&!(H(U,"Trident")||H(U,"MSIE"))&&!H(U,"Edge"),ne=H(U.toLowerCase(),"webkit")&&!H(U,"Edge");e:{var ie="",ae=(ee=U,se?/rv:([^\);]+)(\)|;)/.exec(ee):oe?/Edge\/([\d\.]+)/.exec(ee):re?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(ee):ne?/WebKit\/(\S+)/.exec(ee):te?/(?:Version)[ \/]?(\S+)/.exec(ee):void 0);if(ae&&(ie=ae?ae[1]:""),re){var ue,ce=R.document;if(null!=(ue=ce?ce.documentMode:void 0)&&ue>parseFloat(ie)){Q=String(ue);break e}}Q=ie}var le={};function pe(){return function(e){var t=le;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=e(9)}((function(){for(var e=0,t=$(String(Q)).split("."),r=$("9").split("."),o=Math.max(t.length,r.length),s=0;0==e&&s<o;s++){var n=t[s]||"",i=r[s]||"";do{if(n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""],i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],0==n[0].length&&0==i[0].length)break;e=V(0==n[1].length?0:parseInt(n[1],10),0==i[1].length?0:parseInt(i[1],10))||V(0==n[2].length,0==i[2].length)||V(n[2],i[2]),n=n[3],i=i[3]}while(0==e)}return 0<=e}))}function de(){this.K=this.K}de.prototype.K=!1;var ge=Object.freeze||function(e){return e};function he(e,t){this.type=e,this.a=this.target=t,this.defaultPrevented=!1}he.prototype.b=function(){this.defaultPrevented=!0};var fe=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{R.addEventListener("test",m,t),R.removeEventListener("test",m,t)}catch{}return e}();function ye(e,t){if(he.call(this,e?e.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,e){var r=this.type=e.type,o=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(se){e:{try{Z(t.nodeName);var s=!0;break e}catch{}s=!1}s||(t=null)}}else"mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement);this.relatedTarget=t,o?(this.clientX=void 0!==o.clientX?o.clientX:o.pageX,this.clientY=void 0!==o.clientY?o.clientY:o.pageY,this.screenX=o.screenX||0,this.screenY=o.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:_e[e.pointerType]||"",this.c=e,e.defaultPrevented&&ye.O.b.call(this)}}v(ye,he);var _e=ge({2:"touch",3:"pen",4:"mouse"});ye.prototype.b=function(){ye.O.b.call(this);var e=this.c;e.preventDefault?e.preventDefault():e.returnValue=!1};var Re="closure_listenable_"+(1e6*Math.random()|0),Se=0;function me(e,t,r,o,s){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!o,this.H=s,this.key=++Se,this.A=this.D=!1}function be(e){e.A=!0,e.listener=null,e.proxy=null,e.src=null,e.H=null}function Ee(e){this.src=e,this.a={},this.b=0}function Me(e,t){var r=t.type;if(r in e.a){var o,s=e.a[r],n=z(s,t);(o=0<=n)&&Array.prototype.splice.call(s,n,1),o&&(be(t),0==e.a[r].length&&(delete e.a[r],e.b--))}}function Fe(e,t,r,o){for(var s=0;s<e.length;++s){var n=e[s];if(!n.A&&n.listener==t&&n.capture==!!r&&n.H==o)return s}return-1}Ee.prototype.add=function(e,t,r,o,s){var n=e.toString();(e=this.a[n])||(e=this.a[n]=[],this.b++);var i=Fe(e,t,o,s);return-1<i?(t=e[i],r||(t.D=!1)):((t=new me(t,this.src,n,!!o,s)).D=r,e.push(t)),t},Ee.prototype.remove=function(e,t,r,o){if(!((e=e.toString())in this.a))return!1;var s=this.a[e];return-1<(t=Fe(s,t,r,o))&&(be(s[t]),Array.prototype.splice.call(s,t,1),0==s.length&&(delete this.a[e],this.b--),!0)};var ve="closure_lm_"+(1e6*Math.random()|0),Te={};function Be(e,t,r,o,s){if(o&&o.once)Oe(e,t,r,o,s);else if(Array.isArray(t))for(var n=0;n<t.length;n++)Be(e,t[n],r,o,s);else r=qe(r),e&&e[Re]?e.f.add(String(t),r,!1,b(o)?!!o.capture:!!o,s):Ce(e,t,r,!1,o,s)}function Ce(e,t,r,o,s,n){if(!t)throw Error("Invalid event type");var i=b(s)?!!s.capture:!!s,a=De(e);if(a||(e[ve]=a=new Ee(e)),!(r=a.add(t,r,o,i,n)).proxy)if(o=function(){function e(r){return t.call(e.src,e.listener,r)}var t=Ie;return e}(),r.proxy=o,o.src=e,o.listener=r,e.addEventListener)fe||(s=i),void 0===s&&(s=!1),e.addEventListener(t.toString(),o,s);else if(e.attachEvent)e.attachEvent(Pe(t.toString()),o);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(o)}}function Oe(e,t,r,o,s){if(Array.isArray(t))for(var n=0;n<t.length;n++)Oe(e,t[n],r,o,s);else r=qe(r),e&&e[Re]?e.f.add(String(t),r,!0,b(o)?!!o.capture:!!o,s):Ce(e,t,r,!0,o,s)}function we(e,t,r,o,s){if(Array.isArray(t))for(var n=0;n<t.length;n++)we(e,t[n],r,o,s);else o=b(o)?!!o.capture:!!o,r=qe(r),e&&e[Re]?e.f.remove(String(t),r,o,s):e&&(e=De(e))&&(t=e.a[t.toString()],e=-1,t&&(e=Fe(t,r,o,s)),(r=-1<e?t[e]:null)&&Le(r))}function Le(e){if("number"!=typeof e&&e&&!e.A){var t=e.src;if(t&&t[Re])Me(t.f,e);else{var r=e.type,o=e.proxy;t.removeEventListener?t.removeEventListener(r,o,e.capture):t.detachEvent?t.detachEvent(Pe(r),o):t.addListener&&t.removeListener&&t.removeListener(o),(r=De(t))?(Me(r,e),0==r.b&&(r.src=null,t[ve]=null)):be(e)}}}function Pe(e){return e in Te?Te[e]:Te[e]="on"+e}function Ie(e,t){if(e.A)e=!0;else{t=new ye(t,this);var r=e.listener,o=e.H||e.src;e.D&&Le(e),e=r.call(o,t)}return e}function De(e){return(e=e[ve])instanceof Ee?e:null}var Ae="__closure_events_fn_"+(1e9*Math.random()>>>0);function qe(e){return"function"==typeof e?e:(e[Ae]||(e[Ae]=function(t){return e.handleEvent(t)}),e[Ae])}function Ne(){de.call(this),this.f=new Ee(this),this.U=this}function je(e,t){e=e.U;var r=t.type||t;if("string"==typeof t)t=new he(t,e);else if(t instanceof he)t.target=t.target||e;else{var o=t;(function(e,t){for(var r,o,s=1;s<arguments.length;s++){for(r in o=arguments[s])e[r]=o[r];for(var n=0;n<Y.length;n++)r=Y[n],Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}})(t=new he(r,e),o)}ke(e=t.a=e,r,!0,t),ke(e,r,!1,t)}function ke(e,t,r,o){if(t=e.f.a[String(t)]){t=t.concat();for(var s=!0,n=0;n<t.length;++n){var i=t[n];if(i&&!i.A&&i.capture==r){var a=i.listener,u=i.H||i.src;i.D&&Me(e.f,i),s=!1!==a.call(u,o)&&s}}}}v(Ne,de),Ne.prototype[Re]=!0,Ne.prototype.addEventListener=function(e,t,r,o){Be(this,e,t,r,o)},Ne.prototype.removeEventListener=function(e,t,r,o){we(this,e,t,r,o)};var We=R;function Ge(e,t,r){if("function"==typeof e)r&&(e=F(e,r));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=F(e.handleEvent,e)}return 2147483647<Number(t)?-1:We.setTimeout(e,t||0)}function xe(e,t){this.name=e,this.value=t}xe.prototype.toString=function(){return this.name};var Ue,ze,$e,He=new xe("OFF",1/0),Ve=new xe("SEVERE",1e3),Ke=new xe("CONFIG",700),Je=new xe("FINE",500);function Ye(){this.clear()}function Xe(e,t,r){this.reset(e||He,t,r,void 0,void 0)}function Ze(e,t){this.a=null,this.f=[],this.b=(void 0===t?null:t)||null,this.c=[],this.g={getName:function(){return e}}}function Qe(e){return e.a?e.a:e.b?Qe(e.b):(function(e,t){throw new D("Failure: "+e,Array.prototype.slice.call(arguments,1))}("Root logger has no level set."),He)}function et(){this.entries={};var e=new Ze("");e.a=Ke,this.entries[""]=e}function tt(e,t,r){var o=e.entries[t];if(o)return o;o=tt(e,t.substr(0,t.lastIndexOf(".")));var s=new Ze(t,o);return e.entries[t]=s,o.c.push(s),s}function rt(){return ze||(ze=new et),ze}function ot(e,t,r){var o;(o=e)&&(o=e&&t)&&(o=(o=t.value)>=(e?Qe(tt(rt(),e.getName())):He).value);o&&(t=t||He,o=tt(rt(),e.getName()),"function"==typeof r&&(r=r()),Ue||(Ue=new Ye),function(e,t){for(;e;)e.f.forEach((function(e){e(t)})),e=e.b}(o,e=new Xe(t,r,e=e.getName())))}function st(e,t){e&&ot(e,Je,t)}function nt(){}function it(e){var t;return(t=e.a)||(t={},ct(e)&&(t[0]=!0,t[1]=!0),t=e.a=t),t}function at(){}function ut(e){return(e=ct(e))?new ActiveXObject(e):new XMLHttpRequest}function ct(e){if(!e.b&&typeof XMLHttpRequest>"u"&&typeof ActiveXObject<"u"){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],r=0;r<t.length;r++){var o=t[r];try{return new ActiveXObject(o),e.b=o}catch{}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.b}function lt(e,t){this.b=e[R.Symbol.iterator](),this.c=t,this.f=0}Ye.prototype.clear=function(){},Xe.prototype.reset=function(){},nt.prototype.a=null,v(at,nt),$e=new at,s(),u(),lt.prototype[Symbol.iterator]=function(){return this},lt.prototype.next=function(){var e=this.b.next();return{value:e.done?void 0:this.c.call(void 0,e.value,this.f++),done:e.done}},s(),u(),s(),u();var pt="StopIteration"in R?R.StopIteration:{message:"StopIteration",stack:""};function dt(){}function gt(e){if(e instanceof ft||e instanceof yt||e instanceof _t)return e;if("function"==typeof e.next)return new ft((function(){return ht(e)}));if(s(),u(),"function"==typeof e[Symbol.iterator])return s(),u(),new ft((function(){return e[Symbol.iterator]()}));if("function"==typeof e.u)return new ft((function(){return ht(e.u())}));throw Error("Not an iterator or iterable.")}function ht(e){if(!(e instanceof dt))return e;var t=!1;return{next:function(){for(var r;!t;)try{r=e.a();break}catch(e){if(e!==pt)throw e;t=!0}return{value:r,done:t}}}}function ft(e){this.b=e}function yt(e){this.b=e}function _t(e){ft.call(this,(function(){return e})),this.f=e}function Rt(e,t){this.o={},this.j=[],this.B=this.size=0;var r=arguments.length;if(1<r){if(r%2)throw Error("Uneven number of arguments");for(var o=0;o<r;o+=2)this.set(arguments[o],arguments[o+1])}else e&&this.addAll(e)}function St(e){if(e.size!=e.j.length){for(var t=0,r=0;t<e.j.length;){var o=e.j[t];mt(e.o,o)&&(e.j[r++]=o),t++}e.j.length=r}if(e.size!=e.j.length){var s={};for(r=t=0;t<e.j.length;)mt(s,o=e.j[t])||(e.j[r++]=o,s[o]=1),t++;e.j.length=r}}function mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}dt.prototype.next=function(){return dt.prototype.a.call(this)},dt.prototype.a=function(){throw pt},dt.prototype.u=function(){return this},s(),u(),ft.prototype.u=function(){return new yt(this.b())},ft.prototype[Symbol.iterator]=function(){return new _t(this.b())},ft.prototype.c=function(){return new _t(this.b())},s(),u(),f(yt,dt),yt.prototype.a=function(){var e=this.b.next();if(e.done)throw pt;return e.value},yt.prototype.next=function(){return yt.prototype.a.call(this)},yt.prototype[Symbol.iterator]=function(){return new _t(this.b)},yt.prototype.c=function(){return new _t(this.b)},f(_t,ft),_t.prototype.next=function(){return this.f.next()},(e=Rt.prototype).G=function(){return St(this),this.j.concat()},e.has=function(e){return mt(this.o,e)},e.clear=function(){this.o={},this.B=this.size=this.j.length=0},e.remove=function(e){return this.delete(e)},e.delete=function(e){return!!mt(this.o,e)&&(delete this.o[e],--this.size,this.B++,this.j.length>2*this.size&&St(this),!0)},e.get=function(e,t){return mt(this.o,e)?this.o[e]:t},e.set=function(e,t){mt(this.o,e)||(this.size+=1,this.j.push(e),this.B++),this.o[e]=t},e.addAll=function(e){if(e instanceof Rt)for(var t=e.G(),r=0;r<t.length;r++)this.set(t[r],e.get(t[r]));else for(t in e)this.set(t,e[t])},e.forEach=function(e,t){for(var r=this.G(),o=0;o<r.length;o++){var s=r[o],n=this.get(s);e.call(t,n,s,this)}},e.clone=function(){return new Rt(this)},e.keys=function(){return gt(this.u(!0)).c()},e.values=function(){return gt(this.u(!1)).c()},e.entries=function(){var e=this;return function(e,t){return new lt(e,t)}(this.keys(),(function(t){return[t,e.get(t)]}))},e.u=function(e){St(this);var t=0,r=this.B,o=this,s=new dt;return s.a=function(){if(r!=o.B)throw Error("The map has changed since the iterator was created");if(t>=o.j.length)throw pt;var s=o.j[t++];return e?s:o.o[s]},s.next=s.a.bind(s),s};var bt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Et(e){Ne.call(this),this.headers=new Rt,this.C=e||null,this.c=!1,this.J=this.a=null,this.P=this.v="",this.g=0,this.l="",this.i=this.N=this.s=this.L=!1,this.h=0,this.w=null,this.m=Mt,this.I=this.M=!1}v(Et,Ne);var Mt="";Et.prototype.b=tt(rt(),"goog.net.XhrIo").g;var Ft=/^https?$/i,vt=["POST","PUT"];function Tt(e,t,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.v+"; newUri="+t);e.v=t,e.l="",e.g=0,e.P="POST",e.L=!1,e.c=!0,e.a=e.C?ut(e.C):ut($e),e.J=e.C?it(e.C):it($e),e.a.onreadystatechange=F(e.R,e);try{st(e.b,Dt(e,"Opening Xhr")),e.N=!0,e.a.open("POST",String(t),!0),e.N=!1}catch(t){return st(e.b,Dt(e,"Error opening Xhr: "+t.message)),void Bt(e,t)}t=r||"";var o=(r=e.headers.clone()).G().find((function(e){return"content-type"==e.toLowerCase()})),s=R.FormData&&t instanceof R.FormData;!(0<=z(vt,"POST"))||o||s||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.M&&(e.a.withCredentials=e.M);try{Lt(e),0<e.h&&(e.I=function(e){return re&&pe()&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),st(e.b,Dt(e,"Will abort after "+e.h+"ms if incomplete, xhr2 "+e.I)),e.I?(e.a.timeout=e.h,e.a.ontimeout=F(e.T,e)):e.w=Ge(e.T,e.h,e)),st(e.b,Dt(e,"Sending request")),e.s=!0,e.a.send(t),e.s=!1}catch(t){st(e.b,Dt(e,"Send error: "+t.message)),Bt(e,t)}}function Bt(e,t){e.c=!1,e.a&&(e.i=!0,e.a.abort(),e.i=!1),e.l=t,e.g=5,Ct(e),wt(e)}function Ct(e){e.L||(e.L=!0,je(e,"complete"),je(e,"error"))}function Ot(e){if(e.c&&typeof _<"u")if(e.J[1]&&4==Pt(e)&&2==e.getStatus())st(e.b,Dt(e,"Local request error detected and ignored"));else if(e.s&&4==Pt(e))Ge(e.R,0,e);else if(je(e,"readystatechange"),4==Pt(e)){st(e.b,Dt(e,"Request complete")),e.c=!1;try{var t,r=e.getStatus();e:switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var o=!0;break e;default:o=!1}if(!(t=o)){var s;if(s=0===r){var n=String(e.v).match(bt)[1]||null;if(!n&&R.self&&R.self.location){var i=R.self.location.protocol;n=i.substr(0,i.length-1)}s=!Ft.test(n?n.toLowerCase():"")}t=s}if(t)je(e,"complete"),je(e,"success");else{e.g=6;try{var a=2<Pt(e)?e.a.statusText:""}catch(t){st(e.b,"Can not get status: "+t.message),a=""}e.l=a+" ["+e.getStatus()+"]",Ct(e)}}finally{wt(e)}}}function wt(e){if(e.a){Lt(e);var t=e.a,r=e.J[0]?m:null;e.a=null,e.J=null,je(e,"ready");try{t.onreadystatechange=r}catch(t){(e=e.b)&&ot(e,Ve,"Problem encountered resetting onreadystatechange: "+t.message)}}}function Lt(e){e.a&&e.I&&(e.a.ontimeout=null),e.w&&(We.clearTimeout(e.w),e.w=null)}function Pt(e){return e.a?e.a.readyState:0}function It(e,t){if(e.a&&4==Pt(e))return null===(e=e.a.getResponseHeader(t))?void 0:e}function Dt(e,t){return t+" ["+e.P+" "+e.v+" "+e.getStatus()+"]"}(e=Et.prototype).T=function(){typeof _<"u"&&this.a&&(this.l="Timed out after "+this.h+"ms, aborting",this.g=8,st(this.b,Dt(this,this.l)),je(this,"timeout"),this.abort(8))},e.abort=function(e){this.a&&this.c&&(st(this.b,Dt(this,"Aborting")),this.c=!1,this.i=!0,this.a.abort(),this.i=!1,this.g=e||7,je(this,"complete"),je(this,"abort"),wt(this))},e.R=function(){this.K||(this.N||this.s||this.i?Ot(this):this.W())},e.W=function(){Ot(this)},e.getStatus=function(){try{return 2<Pt(this)?this.a.status:-1}catch{return-1}};var At={},qt=null;function Nt(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):H("=.",e[t-1])&&(r=H("=.",e[t-2])?r-2:r-1);var o=new Uint8Array(r),s=0;return function(e,t){function r(t){for(;o<e.length;){var r=e.charAt(o++),s=qt[r];if(null!=s)return s;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}jt();for(var o=0;;){var s=r(-1),n=r(0),i=r(64),a=r(64);if(64===a&&-1===s)break;t(s<<2|n>>4),64!=i&&(t(n<<4&240|i>>2),64!=a&&t(i<<6&192|a))}}(e,(function(e){o[s++]=e})),o.subarray(0,s)}function jt(){if(!qt){qt={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var o=e.concat(t[r].split(""));At[r]=o;for(var s=0;s<o.length;s++){var n=o[s];void 0===qt[n]&&(qt[n]=s)}}}}var kt=["content-type","grpc-status","grpc-message"];function Wt(e){this.a=e.Z,this.m=null,this.b=[],this.h=[],this.g=[],this.f=[],this.c=[],this.l=!1,this.i=0,this.s=new A;var t=this;Be(this.a,"readystatechange",(function(){var e=t.a;if(e=e.a?e.a.getResponseHeader("Content-Type"):null){if(0==(e=e.toLowerCase()).lastIndexOf("application/grpc-web-text",0)){e=t.a;try{var r=e.a?e.a.responseText:""}catch(t){st(e.b,"Can not get responseText: "+t.message),r=""}if(r=(e=r||"").length-e.length%4,0==(e=e.substr(t.i,r-t.i)).length)return;t.i=r,e=Nt(e)}else{if(0!=e.lastIndexOf("application/grpc",0))return void xt(t,new L(2,"Unknown Content-type received."));e=new Uint8Array(function(e){try{if(!e.a)return null;if("response"in e.a)return e.a.response;switch(e.m){case Mt:case"text":return e.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.a)return e.a.mozResponseArrayBuffer}var t=e.b;return t&&ot(t,Ve,"Response type "+e.m+" is not supported on this browser"),null}catch(t){return st(e.b,"Can not get response: "+t.message),null}}(t.a))}r=null;try{r=function(e,t){function r(e){a.f++,a.a=(a.a<<8)+e,4==a.f&&(a.b=j,a.g=0,typeof Uint8Array<"u"?a.c=new Uint8Array(a.a):a.c=Array(a.a),0==a.a&&s())}function o(e){a.c[a.g++]=e,a.g==a.a&&s()}function s(){var e={};e[a.h]=a.c,a.i.push(e),a.b=q}var n,i,a=e,u=0;for(n=t instanceof Uint8Array||t instanceof Array?t:new Uint8Array(t);u<n.length;){switch(a.b){case k:x(a,n,u,"stream already broken");break;case q:(i=n[u])==W||i==G?a.h=i:x(a,n,u,"invalid frame byte"),a.b=N,a.a=0,a.f=0;break;case N:r(n[u]);break;case j:o(n[u]);break;default:throw Error("unexpected parser state: "+a.b)}a.m++,u++}return e=a.i,a.i=[],0<e.length?e:null}(t.s,e)}catch{xt(t,new L(2,"Error in parsing response body"))}if(r)for(e=0;e<r.length;e++){if(W in r[e]){var o=r[e][W];if(o){var s=!1,n=void 0;try{n=t.m(o),s=!0}catch(e){xt(t,new L(13,"Error when deserializing response data; error: "+e+", response: "+n))}if(s)for(o=n,s=0;s<t.b.length;s++)t.b[s](o)}}if(G in r[e]&&0<r[e][G].length){for(o="",s=0;s<r[e][G].length;s++)o+=String.fromCharCode(r[e][G][s]);for(o=o.trim().split("\r\n"),s={},n=0;n<o.length;n++){var i=o[n].indexOf(":");s[o[n].substring(0,i).trim()]=o[n].substring(i+1).trim()}o=s,s=0,n="","grpc-status"in o&&(s=Number(o["grpc-status"]),delete o["grpc-status"]),"grpc-message"in o&&(n=o["grpc-message"],delete o["grpc-message"]),xt(t,new L(s,n,o))}}}})),Be(this.a,"complete",(function(){var e=t.a.g,r=2,o="",s={},n=function(e){var t={};e=(e.a&&4==Pt(e)&&e.a.getAllResponseHeaders()||"").split("\r\n");for(var r=0;r<e.length;r++)if(!/^[\s\xa0]*$/.test(e[r])){var o=X(e[r]),s=o[0];if("string"==typeof(o=o[1])){o=o.trim();var n=t[s]||[];t[s]=n,n.push(o)}}return function(e,t){var r,o={};for(r in e)o[r]=t.call(void 0,e[r],r,e);return o}(t,(function(e){return e.join(", ")}))}(t.a);Object.keys(n).forEach((function(e){kt.includes(e)||(s[e]=n[e])})),function(e,t){for(var r=0;r<e.g.length;r++)e.g[r](t)}(t,s);var i=-1;if(0!=e){switch(e){case 7:r=10;break;case 8:r=4;break;case 6:r=function(e){switch(e){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:default:return 2;case 501:return 12;case 503:return 14;case 504:return 4}}(i=t.a.getStatus());break;default:r=14}10==r&&t.l||(o=function(e){switch(e){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}(e),-1!=i&&(o+=", http status code: "+i),xt(t,new L(r,o)))}else i=!1,"grpc-status"in n&&(r=Number(It(t.a,"grpc-status")),"grpc-message"in n&&(o=It(t.a,"grpc-message")),0!=r&&(xt(t,new L(r,o||"",n)),i=!0)),i||function(e){for(var t=0;t<e.c.length;t++)e.c[t]()}(t)}))}function Gt(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function xt(e,t){if(0!=t.code)for(var r=new L(t.code,decodeURIComponent(t.message||""),t.metadata),o=0;o<e.f.length;o++)e.f[o](r);for(t={code:t.code,details:decodeURIComponent(t.message||""),metadata:t.metadata},r=0;r<e.h.length;r++)e.h[r](t)}function Ut(e,t){e=void 0===e?{}:e,this.a=e.format||S("format",e)||"text",this.g=e.aa||S("suppressCorsPreflight",e)||!1,this.f=e.withCredentials||S("withCredentials",e)||!1,this.b=e.$||S("streamInterceptors",e)||[],this.h=e.ba||S("unaryInterceptors",e)||[],this.c=t||null}function zt(e,t,r){var o=t.getMethodDescriptor(),s=r+o.getName();(r=e.c?e.c:new Et).M=e.f;var n=new Wt({Z:r});n.m=o.b;var i=t.getMetadata();for(a in i)r.headers.set(a,i[a]);if("text"==e.a?(r.headers.set("Content-Type","application/grpc-web-text"),r.headers.set("Accept","application/grpc-web-text")):r.headers.set("Content-Type","application/grpc-web+proto"),r.headers.set("X-User-Agent","grpc-web-javascript/0.1"),r.headers.set("X-Grpc-Web","1"),r.headers.has("deadline")){var a=Number(r.headers.get("deadline"));a=Math.ceil(a-(new Date).getTime()),r.headers.delete("deadline"),a===1/0&&(a=0),0<a&&(r.headers.set("grpc-timeout",a+"m"),r.h=Math.max(0,Math.max(1e3,Math.ceil(1.1*a))))}if(e.g){a={};for(var u=c((i=r.headers).keys()),l=u.next();!l.done;l=u.next())a[l=l.value]=i.get(l);r.headers.clear();e:{for(p in a){var p=!1;break e}p=!0}p||(a=function(e){var t="";return function(e,t){for(var r in e)t.call(void 0,e[r],r,e)}(e,(function(e,r){t+=r,t+=":",t+=e,t+="\r\n"})),t}(a),"string"==typeof s?(p=encodeURIComponent("$httpHeaders"),(p+=a=null!=a?"="+encodeURIComponent(String(a)):"")&&(0>(a=s.indexOf("#"))&&(a=s.length),0>(i=s.indexOf("?"))||i>a?(i=a,u=""):u=s.substring(i+1,a),a=(s=[s.substr(0,i),u,s.substr(a)])[1],s[1]=p?a?a+"&"+p:p:a,s=s[0]+(s[1]?"?"+s[1]:"")+s[2])):s.a("$httpHeaders",a))}for(o=(t=(0,o.a)(t.getRequestMessage())).length,p=[0,0,0,0],a=new Uint8Array(5+o),i=3;0<=i;i--)p[i]=o%256,o>>>=8;if(a.set(new Uint8Array(p),1),a.set(t,5),t=a,"text"==e.a){var d;for(e=t,void 0===d&&(d=0),jt(),d=At[d],t=Array(Math.floor(e.length/3)),o=d[64]||"",p=a=0;a<e.length-2;a+=3){l=e[a];var g=e[a+1];u=e[a+2],i=d[l>>2],l=d[(3&l)<<4|g>>4],g=d[(15&g)<<2|u>>6],u=d[63&u],t[p++]=i+l+g+u}switch(i=0,u=o,e.length-a){case 2:u=d[(15&(i=e[a+1]))<<2]||o;case 1:e=e[a],t[p]=d[e>>2]+d[(3&e)<<4|i>>4]+u+o}t=t.join("")}else"binary"==e.a&&(r.m="arraybuffer");return Tt(r,s,t),n}function $t(e,t,r){var o=!1,s=null,n=!1;e.on("data",(function(e){o=!0,s=e})),e.on("error",(function(e){0==e.code||n||(n=!0,t(e,null))})),e.on("status",(function(e){0==e.code||n?r&&t(null,null,e):(n=!0,t({code:e.code,message:e.details,metadata:e.metadata},null))})),r&&e.on("metadata",(function(e){t(null,null,null,e)})),e.on("end",(function(){n||(o?r?t(null,s,null,null,!0):t(null,s):t({code:2,message:"Incomplete response"})),r&&t(null,null)}))}function Ht(e,t){var r=e;return t.forEach((function(e){var t=r;r=function(r){return e.intercept(r,t)}})),r}return Wt.prototype.on=function(e,t){return"data"==e?this.b.push(t):"status"==e?this.h.push(t):"metadata"==e?this.g.push(t):"end"==e?this.c.push(t):"error"==e&&this.f.push(t),this},Wt.prototype.removeListener=function(e,t){return"data"==e?Gt(this.b,t):"status"==e?Gt(this.h,t):"metadata"==e?Gt(this.g,t):"end"==e?Gt(this.c,t):"error"==e&&Gt(this.f,t),this},Wt.prototype.cancel=function(){this.l=!0,this.a.abort()},Wt.prototype.cancel=Wt.prototype.cancel,Wt.prototype.removeListener=Wt.prototype.removeListener,Wt.prototype.on=Wt.prototype.on,Ut.prototype.X=function(e,t,r,o,s){var n=this,i=e.substr(0,e.length-o.name.length);return $t(e=Ht((function(e){return zt(n,e,i)}),this.b).call(this,w(o,t,r)),s,!1),new P(e)},Ut.prototype.S=function(e,t,r,o){var s=this,n=e.substr(0,e.length-o.name.length);return Ht((function(e){return new Promise((function(t,r){var o,i,a;$t(zt(s,e,n),(function(s,n,u,c,l){s?r(s):l?a=n:u?i=u:c?o=c:(s=e.getMethodDescriptor(),t(new C(a,s,n=void 0===(n=o)?{}:n,void 0===i?null:i)))}),!0)}))}),this.h).call(this,w(o,t,r)).then((function(e){return e.getResponseMessage()}))},Ut.prototype.unaryCall=function(e,t,r,o){return this.S(e,t,r,o)},Ut.prototype.Y=function(e,t,r,o){var s=this,n=e.substr(0,e.length-o.name.length);return Ht((function(e){return zt(s,e,n)}),this.b).call(this,w(o,t,r))},Ut.prototype.serverStreaming=Ut.prototype.Y,Ut.prototype.unaryCall=Ut.prototype.unaryCall,Ut.prototype.thenableCall=Ut.prototype.S,Ut.prototype.rpcCall=Ut.prototype.X,grpcWeb.CallOptions=T,grpcWeb.MethodDescriptor=O,grpcWeb.GrpcWebClientBase=Ut,grpcWeb.RpcError=L,grpcWeb.StatusCode={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,UNAUTHENTICATED:16,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15},grpcWeb.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming",BIDI_STREAMING:"bidi_streaming"},We=typeof globalThis<"u"&&globalThis||self,grpcWeb}var cacheclient_pb={},googleProtobuf={},hasRequiredGoogleProtobuf;function requireGoogleProtobuf(){return hasRequiredGoogleProtobuf||(hasRequiredGoogleProtobuf=1,function(exports){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var o=e.length,s=0;s<o;s++){var n=e[s];if(t.call(r,n,s,e))return{i:s,v:n}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},$jscomp.getGlobal=function(e){return typeof window<"u"&&window===e?e:typeof commonjsGlobal<"u"&&null!=commonjsGlobal?commonjsGlobal:e},$jscomp.global=$jscomp.getGlobal(googleProtobuf),$jscomp.polyfill=function(e,t,r,o){if(t){for(r=$jscomp.global,e=e.split("."),o=0;o<e.length-1;o++){var s=e[o];s in r||(r[s]={}),r=r[s]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&$jscomp.defineProperty(r,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.findIndex",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).i}}),"es6","es3"),$jscomp.checkStringArgs=function(e,t,r){if(null==e)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""},$jscomp.polyfill("String.prototype.endsWith",(function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"endsWith");e+="",void 0===t&&(t=r.length),t=Math.max(0,Math.min(0|t,r.length));for(var o=e.length;0<o&&0<t;)if(r[--t]!=e[--o])return!1;return 0>=o}}),"es6","es3"),$jscomp.polyfill("Array.prototype.find",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}}),"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",(function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var o=r.length,s=e.length;t=Math.max(0,Math.min(0|t,r.length));for(var n=0;n<s&&t<o;)if(r[t++]!=e[n++])return!1;return n>=s}}),"es6","es3"),$jscomp.polyfill("String.prototype.repeat",(function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var r="";e;)1&e&&(r+=t),(e>>>=1)&&(t+=t);return r}}),"es6","es3");var goog=goog||{};goog.global=googleProtobuf||self,goog.exportPath_=function(e,t,r){e=e.split("."),r=r||goog.global,e[0]in r||typeof r.execScript>"u"||r.execScript("var "+e[0]);for(var o;e.length&&(o=e.shift());)e.length||void 0===t?r=r[o]&&r[o]!==Object.prototype[o]?r[o]:r[o]={}:r[o]=t},goog.define=function(e,t){return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){goog.exportPath_(e,t)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if("string"!=typeof e||!e||-1==e.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=e},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&("function"==typeof e.getCurrentModulePath&&!!e.getCurrentModulePath())},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||"function"!=typeof t.getCurrentModulePath)throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var r=0;r<e.length;r++)if(null==(t=t[e[r]]))return null;return t},goog.globalize=function(e,t){for(var r in t=t||goog.global,e)t[r]=e[r]},goog.addDependency=function(e,t,r,o){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){},goog.requireType=function(e){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!1,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(null==goog.hasBadLetScoping){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(e){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+"\n;})();\n"},goog.loadModule=function(e){var t=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(e))var r=e.call(void 0,{});else{if("string"!=typeof e)throw Error("Invalid module definition");goog.useSafari10Workaround()&&(e=goog.workaroundSafari10EvalBug(e)),r=goog.loadModuleFromSource_.call(void 0,e)}var o=goog.moduleLoaderState_.moduleName;if("string"!=typeof o||!o)throw Error('Invalid module name "'+o+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(o,r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof r&&null!=r&&Object.seal(r),goog.loadedModules_[o]={exports:r,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName}}finally{goog.moduleLoaderState_=t}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(e){e=e.split("/");for(var t=0;t<e.length;)"."==e[t]?e.splice(t,1):t&&".."==e[t]&&e[t-1]&&".."!=e[t-1]?e.splice(--t,2):t++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var t=new goog.global.XMLHttpRequest;return t.open("get",e,!1),t.send(),0==t.status||200==t.status?t.responseText:null}catch{return null}},goog.transpile_=function(e,t,r){var o=goog.global.$jscomp;o||(goog.global.$jscomp=o={});var s=o.transpile;if(!s){var n=goog.basePath+goog.TRANSPILER,i=goog.loadFileSync_(n);if(i){if(function(){(0,eval)(i+"\n//# sourceURL="+n)}.call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,s=(o=goog.global.$jscomp).transpile}}return s||(s=o.transpile=function(e,t){return goog.logToConsole_(t+" requires transpilation but no transpiler was found."),e}),s(e,t,r)},goog.typeOf=function(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof e.length&&typeof e.splice<"u"&&typeof e.propertyIsEnumerable<"u"&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||typeof e.call<"u"&&typeof e.propertyIsEnumerable<"u"&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&typeof e.call>"u")return"object";return t},goog.isArray=function(e){return"array"==goog.typeOf(e)},goog.isArrayLike=function(e){var t=goog.typeOf(e);return"array"==t||"object"==t&&"number"==typeof e.length},goog.isDateLike=function(e){return goog.isObject(e)&&"function"==typeof e.getFullYear},goog.isFunction=function(e){return"function"==goog.typeOf(e)},goog.isObject=function(e){var t=typeof e;return"object"==t&&null!=e||"function"==t},goog.getUid=function(e){return Object.prototype.hasOwnProperty.call(e,goog.UID_PROPERTY_)&&e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){null!==e&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.cloneObject(e[r]);return t}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,o),e.apply(t,r)}}return function(){return e.apply(t,arguments)}},goog.bind=function(e,t,r){return Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}},goog.mixin=function(e,t){for(var r in t)e[r]=t[r]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(e){if(goog.global.execScript)goog.global.execScript(e,"JavaScript");else{if(!goog.global.eval)throw Error("goog.globalEval not available");if(null==goog.evalWorksForGlobals_){try{goog.global.eval("var _evalTest_ = 1;")}catch{}if(typeof goog.global._evalTest_<"u"){try{delete goog.global._evalTest_}catch{}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(e);else{var t=goog.global.document,r=t.createElement("script");r.type="text/javascript",r.defer=!1,r.appendChild(t.createTextNode(e)),t.head.appendChild(r),t.head.removeChild(r)}}},goog.evalWorksForGlobals_=null,goog.getCssName=function(e,t){if("."==String(e).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var r=function(e){return goog.cssNameMapping_[e]||e},o=function(e){e=e.split("-");for(var t=[],o=0;o<e.length;o++)t.push(r(e[o]));return t.join("-")};return o=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?r:o:function(e){return e},e=t?e+"-"+o(t):o(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(e):e},goog.setCssNameMapping=function(e,t){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=t},goog.getMsg=function(e,t,r){return r&&r.html&&(e=e.replace(/</g,"&lt;")),t&&(e=e.replace(/\{\$([^}]+)}/g,(function(e,r){return null!=t&&r in t?t[r]:e}))),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,r){goog.exportPath_(e,t,r)},goog.exportProperty=function(e,t,r){e[t]=r},goog.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.base=function(e,r,o){for(var s=Array(arguments.length-2),n=2;n<arguments.length;n++)s[n-2]=arguments[n];return t.prototype[r].apply(e,s)}},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");e.call(goog.global)},goog.defineClass=function(e,t){var r=t.constructor,o=t.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,e),e&&goog.inherits(r,e),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(r.prototype,t),null!=o&&(o instanceof Function?o(r):goog.defineClass.applyProperties_(r,o)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e,t){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return e;var r=!goog.defineClass.isUnsealable_(t),o=function(){var t=e.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===o&&r&&Object.seal instanceof Function&&Object.seal(t),t};return o},goog.defineClass.isUnsealable_=function(e){return e&&e.prototype&&e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);for(var o=0;o<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;o++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[o],Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},goog.tagUnsealableClass=function(e){},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(e){return e},goog.createTrustedTypesPolicy=function(e){var t=null,r=goog.global.trustedTypes||goog.global.TrustedTypes;if(!r||!r.createPolicy)return t;try{t=r.createPolicy(e,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(e){goog.logToConsole_(e.message)}return t},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null,goog.object={},goog.object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},goog.object.forEach=function(e,t,r){for(var o in e)t.call(r,e[o],o,e)},goog.object.filter=function(e,t,r){var o,s={};for(o in e)t.call(r,e[o],o,e)&&(s[o]=e[o]);return s},goog.object.map=function(e,t,r){var o,s={};for(o in e)s[o]=t.call(r,e[o],o,e);return s},goog.object.some=function(e,t,r){for(var o in e)if(t.call(r,e[o],o,e))return!0;return!1},goog.object.every=function(e,t,r){for(var o in e)if(!t.call(r,e[o],o,e))return!1;return!0},goog.object.getCount=function(e){var t,r=0;for(t in e)r++;return r},goog.object.getAnyKey=function(e){for(var t in e)return t},goog.object.getAnyValue=function(e){for(var t in e)return e[t]},goog.object.contains=function(e,t){return goog.object.containsValue(e,t)},goog.object.getValues=function(e){var t,r=[],o=0;for(t in e)r[o++]=e[t];return r},goog.object.getKeys=function(e){var t,r=[],o=0;for(t in e)r[o++]=t;return r},goog.object.getValueByKeys=function(e,t){var r=goog.isArrayLike(t),o=r?t:arguments;for(r=r?0:1;r<o.length;r++){if(null==e)return;e=e[o[r]]}return e},goog.object.containsKey=function(e,t){return null!==e&&t in e},goog.object.containsValue=function(e,t){for(var r in e)if(e[r]==t)return!0;return!1},goog.object.findKey=function(e,t,r){for(var o in e)if(t.call(r,e[o],o,e))return o},goog.object.findValue=function(e,t,r){return(t=goog.object.findKey(e,t,r))&&e[t]},goog.object.isEmpty=function(e){for(var t in e)return!1;return!0},goog.object.clear=function(e){for(var t in e)delete e[t]},goog.object.remove=function(e,t){var r;return(r=t in e)&&delete e[t],r},goog.object.add=function(e,t,r){if(null!==e&&t in e)throw Error('The object already contains the key "'+t+'"');goog.object.set(e,t,r)},goog.object.get=function(e,t,r){return null!==e&&t in e?e[t]:r},goog.object.set=function(e,t,r){e[t]=r},goog.object.setIfUndefined=function(e,t,r){return t in e?e[t]:e[t]=r},goog.object.setWithReturnValueIfNotSet=function(e,t,r){return t in e?e[t]:(r=r(),e[t]=r)},goog.object.equals=function(e,t){for(var r in e)if(!(r in t)||e[r]!==t[r])return!1;for(var o in t)if(!(o in e))return!1;return!0},goog.object.clone=function(e){var t,r={};for(t in e)r[t]=e[t];return r},goog.object.unsafeClone=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if(goog.isFunction(e.clone))return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.object.unsafeClone(e[r]);return t}return e},goog.object.transpose=function(e){var t,r={};for(t in e)r[e[t]]=t;return r},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(e,t){for(var r,o,s=1;s<arguments.length;s++){for(r in o=arguments[s])e[r]=o[r];for(var n=0;n<goog.object.PROTOTYPE_FIELDS_.length;n++)r=goog.object.PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}},goog.object.create=function(e){var t=arguments.length;if(1==t&&Array.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(t%2)throw Error("Uneven number of arguments");for(var r={},o=0;o<t;o+=2)r[arguments[o]]=arguments[o+1];return r},goog.object.createSet=function(e){var t=arguments.length;if(1==t&&Array.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},o=0;o<t;o++)r[arguments[o]]=!0;return r},goog.object.createImmutableView=function(e){var t=e;return Object.isFrozen&&!Object.isFrozen(e)&&(t=Object.create(e),Object.freeze(t)),t},goog.object.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)},goog.object.getAllPropertyNames=function(e,t,r){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(e);for(var o={};e&&(e!==Object.prototype||t)&&(e!==Function.prototype||r);){for(var s=Object.getOwnPropertyNames(e),n=0;n<s.length;n++)o[s[n]]=!0;e=Object.getPrototypeOf(e)}return goog.object.getKeys(o)},goog.object.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor};var jspb={asserts:{}};jspb.asserts.doAssertFailure=function(e,t,r,o){var s="Assertion failed";if(r){s+=": "+r;var n=o}else e&&(s+=": "+e,n=t);throw Error(""+s,n||[])},jspb.asserts.assert=function(e,t,r){for(var o=[],s=2;s<arguments.length;++s)o[s-2]=arguments[s];return e||jspb.asserts.doAssertFailure("",null,t,o),e},jspb.asserts.assertString=function(e,t,r){for(var o=[],s=2;s<arguments.length;++s)o[s-2]=arguments[s];return"string"!=typeof e&&jspb.asserts.doAssertFailure("Expected string but got %s: %s.",[goog.typeOf(e),e],t,o),e},jspb.asserts.assertArray=function(e,t,r){for(var o=[],s=2;s<arguments.length;++s)o[s-2]=arguments[s];return Array.isArray(e)||jspb.asserts.doAssertFailure("Expected array but got %s: %s.",[goog.typeOf(e),e],t,o),e},jspb.asserts.fail=function(e,t){for(var r=[],o=1;o<arguments.length;++o)r[o-1]=arguments[o];throw Error("Failure"+(e?": "+e:""),r)},jspb.asserts.assertInstanceof=function(e,t,r,o){for(var s=[],n=3;n<arguments.length;++n)s[n-3]=arguments[n];return e instanceof t||jspb.asserts.doAssertFailure("Expected instanceof %s but got %s.",[jspb.asserts.getType(t),jspb.asserts.getType(e)],r,s),e},jspb.asserts.getType=function(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e},jspb.BinaryConstants={},jspb.ConstBinaryMessage=function(){},jspb.BinaryMessage=function(){},jspb.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31},jspb.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5},jspb.BinaryConstants.FieldTypeToWireType=function(e){var t=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(e){case t.INT32:case t.INT64:case t.UINT32:case t.UINT64:case t.SINT32:case t.SINT64:case t.BOOL:case t.ENUM:case t.VHASH64:return r.VARINT;case t.DOUBLE:case t.FIXED64:case t.SFIXED64:case t.FHASH64:return r.FIXED64;case t.STRING:case t.MESSAGE:case t.BYTES:return r.DELIMITED;case t.FLOAT:case t.FIXED32:case t.SFIXED32:return r.FIXED32;default:return r.INVALID}},jspb.BinaryConstants.INVALID_FIELD_NUMBER=-1,jspb.BinaryConstants.FLOAT32_EPS=1401298464324817e-60,jspb.BinaryConstants.FLOAT32_MIN=11754943508222875e-54,jspb.BinaryConstants.FLOAT32_MAX=34028234663852886e22,jspb.BinaryConstants.FLOAT64_EPS=5e-324,jspb.BinaryConstants.FLOAT64_MIN=22250738585072014e-324,jspb.BinaryConstants.FLOAT64_MAX=17976931348623157e292,jspb.BinaryConstants.TWO_TO_20=1048576,jspb.BinaryConstants.TWO_TO_23=8388608,jspb.BinaryConstants.TWO_TO_31=2147483648,jspb.BinaryConstants.TWO_TO_32=4294967296,jspb.BinaryConstants.TWO_TO_52=4503599627370496,jspb.BinaryConstants.TWO_TO_63=0x8000000000000000,jspb.BinaryConstants.TWO_TO_64=0x10000000000000000,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",goog.debug={},goog.debug.Error=function(e){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(e,t){goog.debug.Error.call(this,goog.asserts.subs_(e,t)),this.messagePattern=e},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(e,t){for(var r="",o=(e=e.split("%s")).length-1,s=0;s<o;s++)r+=e[s]+(s<t.length?t[s]:"%s");return r+e[o]},goog.asserts.doAssertFailure_=function(e,t,r,o){var s="Assertion failed";if(r){s+=": "+r;var n=o}else e&&(s+=": "+e,n=t);e=new goog.asserts.AssertionError(""+s,n||[]),goog.asserts.errorHandler_(e)},goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=e)},goog.asserts.assert=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!e&&goog.asserts.doAssertFailure_("",null,t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertExists=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&null==e&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,t){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&"number"!=typeof e&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&"string"!=typeof e&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(e)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(e)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&"boolean"!=typeof e&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,t,r,o){return!goog.asserts.ENABLE_ASSERTS||e instanceof t||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(t),goog.asserts.getType_(e)],r,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertFinite=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||"number"==typeof e&&isFinite(e)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var e in Object.prototype)goog.asserts.fail(e+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(e){return e[e.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.indexOf.call(e,t,r)}:function(e,t,r){if(r=null==r?0:0>r?Math.max(0,e.length+r):r,"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,r);for(;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.lastIndexOf.call(e,t,r??e.length-1)}:function(e,t,r){if(0>(r=r??e.length-1)&&(r=Math.max(0,e.length+r)),"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.lastIndexOf(t,r);for(;0<=r;r--)if(r in e&&e[r]===t)return r;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,r){goog.asserts.assert(null!=e.length),Array.prototype.forEach.call(e,t,r)}:function(e,t,r){for(var o=e.length,s="string"==typeof e?e.split(""):e,n=0;n<o;n++)n in s&&t.call(r,s[n],n,e)},goog.array.forEachRight=function(e,t,r){var o=e.length,s="string"==typeof e?e.split(""):e;for(--o;0<=o;--o)o in s&&t.call(r,s[o],o,e)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.filter.call(e,t,r)}:function(e,t,r){for(var o=e.length,s=[],n=0,i="string"==typeof e?e.split(""):e,a=0;a<o;a++)if(a in i){var u=i[a];t.call(r,u,a,e)&&(s[n++]=u)}return s},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.map.call(e,t,r)}:function(e,t,r){for(var o=e.length,s=Array(o),n="string"==typeof e?e.split(""):e,i=0;i<o;i++)i in n&&(s[i]=t.call(r,n[i],i,e));return s},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(e,t,r,o){return goog.asserts.assert(null!=e.length),o&&(t=goog.bind(t,o)),Array.prototype.reduce.call(e,t,r)}:function(e,t,r,o){var s=r;return goog.array.forEach(e,(function(r,n){s=t.call(o,s,r,n,e)})),s},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(e,t,r,o){return goog.asserts.assert(null!=e.length),goog.asserts.assert(null!=t),o&&(t=goog.bind(t,o)),Array.prototype.reduceRight.call(e,t,r)}:function(e,t,r,o){var s=r;return goog.array.forEachRight(e,(function(r,n){s=t.call(o,s,r,n,e)})),s},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.some.call(e,t,r)}:function(e,t,r){for(var o=e.length,s="string"==typeof e?e.split(""):e,n=0;n<o;n++)if(n in s&&t.call(r,s[n],n,e))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.every.call(e,t,r)}:function(e,t,r){for(var o=e.length,s="string"==typeof e?e.split(""):e,n=0;n<o;n++)if(n in s&&!t.call(r,s[n],n,e))return!1;return!0},goog.array.count=function(e,t,r){var o=0;return goog.array.forEach(e,(function(e,s,n){t.call(r,e,s,n)&&++o}),r),o},goog.array.find=function(e,t,r){return 0>(t=goog.array.findIndex(e,t,r))?null:"string"==typeof e?e.charAt(t):e[t]},goog.array.findIndex=function(e,t,r){for(var o=e.length,s="string"==typeof e?e.split(""):e,n=0;n<o;n++)if(n in s&&t.call(r,s[n],n,e))return n;return-1},goog.array.findRight=function(e,t,r){return 0>(t=goog.array.findIndexRight(e,t,r))?null:"string"==typeof e?e.charAt(t):e[t]},goog.array.findIndexRight=function(e,t,r){var o=e.length,s="string"==typeof e?e.split(""):e;for(--o;0<=o;o--)if(o in s&&t.call(r,s[o],o,e))return o;return-1},goog.array.contains=function(e,t){return 0<=goog.array.indexOf(e,t)},goog.array.isEmpty=function(e){return 0==e.length},goog.array.clear=function(e){if(!Array.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0},goog.array.insert=function(e,t){goog.array.contains(e,t)||e.push(t)},goog.array.insertAt=function(e,t,r){goog.array.splice(e,r,0,t)},goog.array.insertArrayAt=function(e,t,r){goog.partial(goog.array.splice,e,r,0).apply(null,t)},goog.array.insertBefore=function(e,t,r){var o;2==arguments.length||0>(o=goog.array.indexOf(e,r))?e.push(t):goog.array.insertAt(e,t,o)},goog.array.remove=function(e,t){var r;return(r=0<=(t=goog.array.indexOf(e,t)))&&goog.array.removeAt(e,t),r},goog.array.removeLast=function(e,t){return 0<=(t=goog.array.lastIndexOf(e,t))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAt=function(e,t){return goog.asserts.assert(null!=e.length),1==Array.prototype.splice.call(e,t,1).length},goog.array.removeIf=function(e,t,r){return 0<=(t=goog.array.findIndex(e,t,r))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAllIf=function(e,t,r){var o=0;return goog.array.forEachRight(e,(function(s,n){t.call(r,s,n,e)&&goog.array.removeAt(e,n)&&o++})),o},goog.array.concat=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(e){var t=e.length;if(0<t){for(var r=Array(t),o=0;o<t;o++)r[o]=e[o];return r}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(e,t){for(var r=1;r<arguments.length;r++){var o=arguments[r];if(goog.isArrayLike(o)){var s=e.length||0,n=o.length||0;e.length=s+n;for(var i=0;i<n;i++)e[s+i]=o[i]}else e.push(o)}},goog.array.splice=function(e,t,r,o){return goog.asserts.assert(null!=e.length),Array.prototype.splice.apply(e,goog.array.slice(arguments,1))},goog.array.slice=function(e,t,r){return goog.asserts.assert(null!=e.length),2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)},goog.array.removeDuplicates=function(e,t,r){t=t||e;var o=function(e){return goog.isObject(e)?"o"+goog.getUid(e):(typeof e).charAt(0)+e};r=r||o,o={};for(var s=0,n=0;n<e.length;){var i=e[n++],a=r(i);Object.prototype.hasOwnProperty.call(o,a)||(o[a]=!0,t[s++]=i)}t.length=s},goog.array.binarySearch=function(e,t,r){return goog.array.binarySearch_(e,r||goog.array.defaultCompare,!1,t)},goog.array.binarySelect=function(e,t,r){return goog.array.binarySearch_(e,t,!0,void 0,r)},goog.array.binarySearch_=function(e,t,r,o,s){for(var n,i=0,a=e.length;i<a;){var u=i+(a-i>>>1),c=r?t.call(s,e[u],u,e):t(o,e[u]);0<c?i=u+1:(a=u,n=!c)}return n?i:-i-1},goog.array.sort=function(e,t){e.sort(t||goog.array.defaultCompare)},goog.array.stableSort=function(e,t){for(var r=Array(e.length),o=0;o<e.length;o++)r[o]={index:o,value:e[o]};var s=t||goog.array.defaultCompare;for(goog.array.sort(r,(function(e,t){return s(e.value,t.value)||e.index-t.index})),o=0;o<e.length;o++)e[o]=r[o].value},goog.array.sortByKey=function(e,t,r){var o=r||goog.array.defaultCompare;goog.array.sort(e,(function(e,r){return o(t(e),t(r))}))},goog.array.sortObjectsByKey=function(e,t,r){goog.array.sortByKey(e,(function(e){return e[t]}),r)},goog.array.isSorted=function(e,t,r){t=t||goog.array.defaultCompare;for(var o=1;o<e.length;o++){var s=t(e[o-1],e[o]);if(0<s||0==s&&r)return!1}return!0},goog.array.equals=function(e,t,r){if(!goog.isArrayLike(e)||!goog.isArrayLike(t)||e.length!=t.length)return!1;var o=e.length;r=r||goog.array.defaultCompareEquality;for(var s=0;s<o;s++)if(!r(e[s],t[s]))return!1;return!0},goog.array.compare3=function(e,t,r){r=r||goog.array.defaultCompare;for(var o=Math.min(e.length,t.length),s=0;s<o;s++){var n=r(e[s],t[s]);if(0!=n)return n}return goog.array.defaultCompare(e.length,t.length)},goog.array.defaultCompare=function(e,t){return e>t?1:e<t?-1:0},goog.array.inverseDefaultCompare=function(e,t){return-goog.array.defaultCompare(e,t)},goog.array.defaultCompareEquality=function(e,t){return e===t},goog.array.binaryInsert=function(e,t,r){return 0>(r=goog.array.binarySearch(e,t,r))&&(goog.array.insertAt(e,t,-(r+1)),!0)},goog.array.binaryRemove=function(e,t,r){return 0<=(t=goog.array.binarySearch(e,t,r))&&goog.array.removeAt(e,t)},goog.array.bucket=function(e,t,r){for(var o={},s=0;s<e.length;s++){var n=e[s],i=t.call(r,n,s,e);void 0!==i&&(o[i]||(o[i]=[])).push(n)}return o},goog.array.toObject=function(e,t,r){var o={};return goog.array.forEach(e,(function(s,n){o[t.call(r,s,n,e)]=s})),o},goog.array.range=function(e,t,r){var o=[],s=0,n=e;if(void 0!==t&&(s=e,n=t),0>(r=r||1)*(n-s))return[];if(0<r)for(e=s;e<n;e+=r)o.push(e);else for(e=s;e>n;e+=r)o.push(e);return o},goog.array.repeat=function(e,t){for(var r=[],o=0;o<t;o++)r[o]=e;return r},goog.array.flatten=function(e){for(var t=[],r=0;r<arguments.length;r++){var o=arguments[r];if(Array.isArray(o))for(var s=0;s<o.length;s+=8192){var n=goog.array.slice(o,s,s+8192);n=goog.array.flatten.apply(null,n);for(var i=0;i<n.length;i++)t.push(n[i])}else t.push(o)}return t},goog.array.rotate=function(e,t){return goog.asserts.assert(null!=e.length),e.length&&(0<(t%=e.length)?Array.prototype.unshift.apply(e,e.splice(-t,t)):0>t&&Array.prototype.push.apply(e,e.splice(0,-t))),e},goog.array.moveItem=function(e,t,r){goog.asserts.assert(0<=t&&t<e.length),goog.asserts.assert(0<=r&&r<e.length),t=Array.prototype.splice.call(e,t,1),Array.prototype.splice.call(e,r,0,t[0])},goog.array.zip=function(e){if(!arguments.length)return[];for(var t=[],r=arguments[0].length,o=1;o<arguments.length;o++)arguments[o].length<r&&(r=arguments[o].length);for(o=0;o<r;o++){for(var s=[],n=0;n<arguments.length;n++)s.push(arguments[n][o]);t.push(s)}return t},goog.array.shuffle=function(e,t){t=t||Math.random;for(var r=e.length-1;0<r;r--){var o=Math.floor(t()*(r+1)),s=e[r];e[r]=e[o],e[o]=s}},goog.array.copyByIndex=function(e,t){var r=[];return goog.array.forEach(t,(function(t){r.push(e[t])})),r},goog.array.concatMap=function(e,t,r){return goog.array.concat.apply([],goog.array.map(e,t,r))},goog.crypt={},goog.crypt.stringToByteArray=function(e){for(var t=[],r=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);255<s&&(t[r++]=255&s,s>>=8),t[r++]=s}return t},goog.crypt.byteArrayToString=function(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192){var o=goog.array.slice(e,r,r+8192);t+=String.fromCharCode.apply(null,o)}return t},goog.crypt.byteArrayToHex=function(e,t){return goog.array.map(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join(t||"")},goog.crypt.hexToByteArray=function(e){goog.asserts.assert(e.length%2==0,"Key string length must be multiple of 2");for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substring(r,r+2),16));return t},goog.crypt.stringToUtf8ByteArray=function(e){for(var t=[],r=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);128>s?t[r++]=s:(2048>s?t[r++]=s>>6|192:(55296==(64512&s)&&o+1<e.length&&56320==(64512&e.charCodeAt(o+1))?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),t[r++]=s>>18|240,t[r++]=s>>12&63|128):t[r++]=s>>12|224,t[r++]=s>>6&63|128),t[r++]=63&s|128)}return t},goog.crypt.utf8ByteArrayToString=function(e){for(var t=[],r=0,o=0;r<e.length;){var s=e[r++];if(128>s)t[o++]=String.fromCharCode(s);else if(191<s&&224>s){var n=e[r++];t[o++]=String.fromCharCode((31&s)<<6|63&n)}else if(239<s&&365>s){n=e[r++];var i=e[r++];s=((7&s)<<18|(63&n)<<12|(63&i)<<6|63&e[r++])-65536,t[o++]=String.fromCharCode(55296+(s>>10)),t[o++]=String.fromCharCode(56320+(1023&s))}else n=e[r++],i=e[r++],t[o++]=String.fromCharCode((15&s)<<12|(63&n)<<6|63&i)}return t.join("")},goog.crypt.xorByteArray=function(e,t){goog.asserts.assert(e.length==t.length,"XOR array lengths must match");for(var r=[],o=0;o<e.length;o++)r.push(e[o]^t[o]);return r},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(e){if(goog.asserts.ENABLE_ASSERTS){var t=goog.dom.asserts.getWindow_(e);t&&(!e||!(e instanceof t.Location)&&e instanceof t.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(e))}return e},goog.dom.asserts.assertIsElementType_=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(e);r&&typeof r[t]<"u"&&(e&&(e instanceof r[t]||!(e instanceof r.Location||e instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,goog.dom.asserts.debugStringForType_(e)))}return e},goog.dom.asserts.assertIsHTMLAnchorElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(e){if(!goog.isObject(e))return void 0===e?"undefined":null===e?"null":typeof e;try{return e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch{return"<object could not be stringified>"}},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,r=t&&(t.defaultView||t.parentWindow);if((r=r||goog.global).Element&&r.Location)return r}catch{}return null},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(e,t){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=Array.prototype.slice.call(arguments);return t.push.apply(t,r),e.apply(this,t)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(r){return t?e==r:e===r}},goog.functions.compose=function(e,t){var r=arguments,o=r.length;return function(){var e;o&&(e=r[o-1].apply(this,arguments));for(var t=o-2;0<=t;t--)e=r[t].call(this,e);return e}},goog.functions.sequence=function(e){var t=arguments,r=t.length;return function(){for(var e,o=0;o<r;o++)e=t[o].apply(this,arguments);return e}},goog.functions.and=function(e){var t=arguments,r=t.length;return function(){for(var e=0;e<r;e++)if(!t[e].apply(this,arguments))return!1;return!0}},goog.functions.or=function(e){var t=arguments,r=t.length;return function(){for(var e=0;e<r;e++)if(t[e].apply(this,arguments))return!0;return!1}},goog.functions.not=function(e){return function(){return!e.apply(this,arguments)}},goog.functions.create=function(e,t){var r=function(){};return r.prototype=e.prototype,r=new r,e.apply(r,Array.prototype.slice.call(arguments,1)),r},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(e){var t,r=!1;return function(){return goog.functions.CACHE_RETURN_VALUE?(r||(t=e(),r=!0),t):e()}},goog.functions.once=function(e){var t=e;return function(){if(t){var e=t;t=null,e()}}},goog.functions.debounce=function(e,t,r){var o=0;return function(s){goog.global.clearTimeout(o);var n=arguments;o=goog.global.setTimeout((function(){e.apply(r,n)}),t)}},goog.functions.throttle=function(e,t,r){var o=0,s=!1,n=[],i=function(){o=0,s&&(s=!1,a())},a=function(){o=goog.global.setTimeout(i,t),e.apply(r,n)};return function(e){n=arguments,o?s=!0:a()}},goog.functions.rateLimit=function(e,t,r){var o=0,s=function(){o=0};return function(n){o||(o=goog.global.setTimeout(s,t),e.apply(r,arguments))}},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(e){this.tagName_=e},goog.dom.TagName.prototype.toString=function(){return this.tagName_},goog.dom.TagName.A=new goog.dom.TagName("A"),goog.dom.TagName.ABBR=new goog.dom.TagName("ABBR"),goog.dom.TagName.ACRONYM=new goog.dom.TagName("ACRONYM"),goog.dom.TagName.ADDRESS=new goog.dom.TagName("ADDRESS"),goog.dom.TagName.APPLET=new goog.dom.TagName("APPLET"),goog.dom.TagName.AREA=new goog.dom.TagName("AREA"),goog.dom.TagName.ARTICLE=new goog.dom.TagName("ARTICLE"),goog.dom.TagName.ASIDE=new goog.dom.TagName("ASIDE"),goog.dom.TagName.AUDIO=new goog.dom.TagName("AUDIO"),goog.dom.TagName.B=new goog.dom.TagName("B"),goog.dom.TagName.BASE=new goog.dom.TagName("BASE"),goog.dom.TagName.BASEFONT=new goog.dom.TagName("BASEFONT"),goog.dom.TagName.BDI=new goog.dom.TagName("BDI"),goog.dom.TagName.BDO=new goog.dom.TagName("BDO"),goog.dom.TagName.BIG=new goog.dom.TagName("BIG"),goog.dom.TagName.BLOCKQUOTE=new goog.dom.TagName("BLOCKQUOTE"),goog.dom.TagName.BODY=new goog.dom.TagName("BODY"),goog.dom.TagName.BR=new goog.dom.TagName("BR"),goog.dom.TagName.BUTTON=new goog.dom.TagName("BUTTON"),goog.dom.TagName.CANVAS=new goog.dom.TagName("CANVAS"),goog.dom.TagName.CAPTION=new goog.dom.TagName("CAPTION"),goog.dom.TagName.CENTER=new goog.dom.TagName("CENTER"),goog.dom.TagName.CITE=new goog.dom.TagName("CITE"),goog.dom.TagName.CODE=new goog.dom.TagName("CODE"),goog.dom.TagName.COL=new goog.dom.TagName("COL"),goog.dom.TagName.COLGROUP=new goog.dom.TagName("COLGROUP"),goog.dom.TagName.COMMAND=new goog.dom.TagName("COMMAND"),goog.dom.TagName.DATA=new goog.dom.TagName("DATA"),goog.dom.TagName.DATALIST=new goog.dom.TagName("DATALIST"),goog.dom.TagName.DD=new goog.dom.TagName("DD"),goog.dom.TagName.DEL=new goog.dom.TagName("DEL"),goog.dom.TagName.DETAILS=new goog.dom.TagName("DETAILS"),goog.dom.TagName.DFN=new goog.dom.TagName("DFN"),goog.dom.TagName.DIALOG=new goog.dom.TagName("DIALOG"),goog.dom.TagName.DIR=new goog.dom.TagName("DIR"),goog.dom.TagName.DIV=new goog.dom.TagName("DIV"),goog.dom.TagName.DL=new goog.dom.TagName("DL"),goog.dom.TagName.DT=new goog.dom.TagName("DT"),goog.dom.TagName.EM=new goog.dom.TagName("EM"),goog.dom.TagName.EMBED=new goog.dom.TagName("EMBED"),goog.dom.TagName.FIELDSET=new goog.dom.TagName("FIELDSET"),goog.dom.TagName.FIGCAPTION=new goog.dom.TagName("FIGCAPTION"),goog.dom.TagName.FIGURE=new goog.dom.TagName("FIGURE"),goog.dom.TagName.FONT=new goog.dom.TagName("FONT"),goog.dom.TagName.FOOTER=new goog.dom.TagName("FOOTER"),goog.dom.TagName.FORM=new goog.dom.TagName("FORM"),goog.dom.TagName.FRAME=new goog.dom.TagName("FRAME"),goog.dom.TagName.FRAMESET=new goog.dom.TagName("FRAMESET"),goog.dom.TagName.H1=new goog.dom.TagName("H1"),goog.dom.TagName.H2=new goog.dom.TagName("H2"),goog.dom.TagName.H3=new goog.dom.TagName("H3"),goog.dom.TagName.H4=new goog.dom.TagName("H4"),goog.dom.TagName.H5=new goog.dom.TagName("H5"),goog.dom.TagName.H6=new goog.dom.TagName("H6"),goog.dom.TagName.HEAD=new goog.dom.TagName("HEAD"),goog.dom.TagName.HEADER=new goog.dom.TagName("HEADER"),goog.dom.TagName.HGROUP=new goog.dom.TagName("HGROUP"),goog.dom.TagName.HR=new goog.dom.TagName("HR"),goog.dom.TagName.HTML=new goog.dom.TagName("HTML"),goog.dom.TagName.I=new goog.dom.TagName("I"),goog.dom.TagName.IFRAME=new goog.dom.TagName("IFRAME"),goog.dom.TagName.IMG=new goog.dom.TagName("IMG"),goog.dom.TagName.INPUT=new goog.dom.TagName("INPUT"),goog.dom.TagName.INS=new goog.dom.TagName("INS"),goog.dom.TagName.ISINDEX=new goog.dom.TagName("ISINDEX"),goog.dom.TagName.KBD=new goog.dom.TagName("KBD"),goog.dom.TagName.KEYGEN=new goog.dom.TagName("KEYGEN"),goog.dom.TagName.LABEL=new goog.dom.TagName("LABEL"),goog.dom.TagName.LEGEND=new goog.dom.TagName("LEGEND"),goog.dom.TagName.LI=new goog.dom.TagName("LI"),goog.dom.TagName.LINK=new goog.dom.TagName("LINK"),goog.dom.TagName.MAIN=new goog.dom.TagName("MAIN"),goog.dom.TagName.MAP=new goog.dom.TagName("MAP"),goog.dom.TagName.MARK=new goog.dom.TagName("MARK"),goog.dom.TagName.MATH=new goog.dom.TagName("MATH"),goog.dom.TagName.MENU=new goog.dom.TagName("MENU"),goog.dom.TagName.MENUITEM=new goog.dom.TagName("MENUITEM"),goog.dom.TagName.META=new goog.dom.TagName("META"),goog.dom.TagName.METER=new goog.dom.TagName("METER"),goog.dom.TagName.NAV=new goog.dom.TagName("NAV"),goog.dom.TagName.NOFRAMES=new goog.dom.TagName("NOFRAMES"),goog.dom.TagName.NOSCRIPT=new goog.dom.TagName("NOSCRIPT"),goog.dom.TagName.OBJECT=new goog.dom.TagName("OBJECT"),goog.dom.TagName.OL=new goog.dom.TagName("OL"),goog.dom.TagName.OPTGROUP=new goog.dom.TagName("OPTGROUP"),goog.dom.TagName.OPTION=new goog.dom.TagName("OPTION"),goog.dom.TagName.OUTPUT=new goog.dom.TagName("OUTPUT"),goog.dom.TagName.P=new goog.dom.TagName("P"),goog.dom.TagName.PARAM=new goog.dom.TagName("PARAM"),goog.dom.TagName.PICTURE=new goog.dom.TagName("PICTURE"),goog.dom.TagName.PRE=new goog.dom.TagName("PRE"),goog.dom.TagName.PROGRESS=new goog.dom.TagName("PROGRESS"),goog.dom.TagName.Q=new goog.dom.TagName("Q"),goog.dom.TagName.RP=new goog.dom.TagName("RP"),goog.dom.TagName.RT=new goog.dom.TagName("RT"),goog.dom.TagName.RTC=new goog.dom.TagName("RTC"),goog.dom.TagName.RUBY=new goog.dom.TagName("RUBY"),goog.dom.TagName.S=new goog.dom.TagName("S"),goog.dom.TagName.SAMP=new goog.dom.TagName("SAMP"),goog.dom.TagName.SCRIPT=new goog.dom.TagName("SCRIPT"),goog.dom.TagName.SECTION=new goog.dom.TagName("SECTION"),goog.dom.TagName.SELECT=new goog.dom.TagName("SELECT"),goog.dom.TagName.SMALL=new goog.dom.TagName("SMALL"),goog.dom.TagName.SOURCE=new goog.dom.TagName("SOURCE"),goog.dom.TagName.SPAN=new goog.dom.TagName("SPAN"),goog.dom.TagName.STRIKE=new goog.dom.TagName("STRIKE"),goog.dom.TagName.STRONG=new goog.dom.TagName("STRONG"),goog.dom.TagName.STYLE=new goog.dom.TagName("STYLE"),goog.dom.TagName.SUB=new goog.dom.TagName("SUB"),goog.dom.TagName.SUMMARY=new goog.dom.TagName("SUMMARY"),goog.dom.TagName.SUP=new goog.dom.TagName("SUP"),goog.dom.TagName.SVG=new goog.dom.TagName("SVG"),goog.dom.TagName.TABLE=new goog.dom.TagName("TABLE"),goog.dom.TagName.TBODY=new goog.dom.TagName("TBODY"),goog.dom.TagName.TD=new goog.dom.TagName("TD"),goog.dom.TagName.TEMPLATE=new goog.dom.TagName("TEMPLATE"),goog.dom.TagName.TEXTAREA=new goog.dom.TagName("TEXTAREA"),goog.dom.TagName.TFOOT=new goog.dom.TagName("TFOOT"),goog.dom.TagName.TH=new goog.dom.TagName("TH"),goog.dom.TagName.THEAD=new goog.dom.TagName("THEAD"),goog.dom.TagName.TIME=new goog.dom.TagName("TIME"),goog.dom.TagName.TITLE=new goog.dom.TagName("TITLE"),goog.dom.TagName.TR=new goog.dom.TagName("TR"),goog.dom.TagName.TRACK=new goog.dom.TagName("TRACK"),goog.dom.TagName.TT=new goog.dom.TagName("TT"),goog.dom.TagName.U=new goog.dom.TagName("U"),goog.dom.TagName.UL=new goog.dom.TagName("UL"),goog.dom.TagName.VAR=new goog.dom.TagName("VAR"),goog.dom.TagName.VIDEO=new goog.dom.TagName("VIDEO"),goog.dom.TagName.WBR=new goog.dom.TagName("WBR"),goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(e){return!0===goog.dom.tags.VOID_TAGS_[e]},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.string={},goog.string.TypedString=function(){},goog.string.Const=function(e,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(e){return e instanceof goog.string.Const&&e.constructor===goog.string.Const&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+e+"'"),"type_error:Const")},goog.string.Const.from=function(e){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="",this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeScript.prototype.implementsGoogStringTypedString=!0,goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeScript.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeScript.fromConstantAndArgs=function(e,t){for(var r=[],o=1;o<arguments.length;o++)r.push(goog.html.SafeScript.stringify_(arguments[o]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(e)+")("+r.join(", ")+");")},goog.html.SafeScript.fromJson=function(e){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(e))},goog.html.SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"}),goog.html.SafeScript.unwrap=function(e){return goog.html.SafeScript.unwrapTrustedScript(e).toString()},goog.html.SafeScript.unwrapTrustedScript=function(e){return e instanceof goog.html.SafeScript&&e.constructor===goog.html.SafeScript&&e.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(e){return JSON.stringify(e).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeScript).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(e):e,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(e){return goog.fs.url.getUrlObject_().createObjectURL(e)},goog.fs.url.revokeObjectUrl=function(e){goog.fs.url.getUrlObject_().revokeObjectURL(e)},goog.fs.url.UrlObject_=function(){},goog.fs.url.UrlObject_.prototype.createObjectURL=function(e){},goog.fs.url.UrlObject_.prototype.revokeObjectURL=function(e){},goog.fs.url.getUrlObject_=function(){var e=goog.fs.url.findUrlObject_();if(null!=e)return e;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return void 0!==goog.global.URL&&void 0!==goog.global.URL.createObjectURL?goog.global.URL:void 0!==goog.global.webkitURL&&void 0!==goog.global.webkitURL.createObjectURL?goog.global.webkitURL:void 0!==goog.global.createObjectURL?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return null!=goog.fs.url.findUrlObject_()},goog.fs.blob={},goog.fs.blob.getBlob=function(e){var t=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(void 0!==t){t=new t;for(var r=0;r<arguments.length;r++)t.append(arguments[r]);return t.getBlob()}return goog.fs.blob.getBlobWithProperties(goog.array.toArray(arguments))},goog.fs.blob.getBlobWithProperties=function(e,t,r){var o=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(void 0!==o){o=new o;for(var s=0;s<e.length;s++)o.append(e[s],r);return o.getBlob(t)}if(void 0!==goog.global.Blob)return o={},t&&(o.type=t),r&&(o.endings=r),new Blob(e,o);throw Error("This browser doesn't seem to support creating Blobs")},goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||("ar"==goog.LOCALE.substring(0,2).toLowerCase()||"fa"==goog.LOCALE.substring(0,2).toLowerCase()||"he"==goog.LOCALE.substring(0,2).toLowerCase()||"iw"==goog.LOCALE.substring(0,2).toLowerCase()||"ps"==goog.LOCALE.substring(0,2).toLowerCase()||"sd"==goog.LOCALE.substring(0,2).toLowerCase()||"ug"==goog.LOCALE.substring(0,2).toLowerCase()||"ur"==goog.LOCALE.substring(0,2).toLowerCase()||"yi"==goog.LOCALE.substring(0,2).toLowerCase())&&(2==goog.LOCALE.length||"-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))||3<=goog.LOCALE.length&&"ckb"==goog.LOCALE.substring(0,3).toLowerCase()&&(3==goog.LOCALE.length||"-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))||7<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))&&("adlm"==goog.LOCALE.substring(3,7).toLowerCase()||"arab"==goog.LOCALE.substring(3,7).toLowerCase()||"hebr"==goog.LOCALE.substring(3,7).toLowerCase()||"nkoo"==goog.LOCALE.substring(3,7).toLowerCase()||"rohg"==goog.LOCALE.substring(3,7).toLowerCase()||"thaa"==goog.LOCALE.substring(3,7).toLowerCase())||8<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))&&("adlm"==goog.LOCALE.substring(4,8).toLowerCase()||"arab"==goog.LOCALE.substring(4,8).toLowerCase()||"hebr"==goog.LOCALE.substring(4,8).toLowerCase()||"nkoo"==goog.LOCALE.substring(4,8).toLowerCase()||"rohg"==goog.LOCALE.substring(4,8).toLowerCase()||"thaa"==goog.LOCALE.substring(4,8).toLowerCase()),goog.i18n.bidi.Format={LRE:"‪",RLE:"‫",PDF:"‬",LRM:"‎",RLM:"‏"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(e,t){return"number"==typeof e?0<e?goog.i18n.bidi.Dir.LTR:0>e?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:null==e?null:e?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ऀ-῿‎Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-﬜︀-﹯﻽-￿",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ‏\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(e,t){return t?e.replace(goog.i18n.bidi.htmlSkipReg_,""):e},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(e,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(e,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(e){return goog.i18n.bidi.rtlRe_.test(e)},goog.i18n.bidi.isLtrChar=function(e){return goog.i18n.bidi.ltrRe_.test(e)},goog.i18n.bidi.isNeutralChar=function(e){return!goog.i18n.bidi.isLtrChar(e)&&!goog.i18n.bidi.isRtlChar(e)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(e,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(e,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(e,t){return e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t),goog.i18n.bidi.isRequiredLtrRe_.test(e)||!goog.i18n.bidi.hasAnyLtr(e)&&!goog.i18n.bidi.hasAnyRtl(e)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(e,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(e,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(e){return goog.i18n.bidi.rtlLocalesRe_.test(e)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(e,t){return t=(void 0===t?goog.i18n.bidi.hasAnyRtl(e):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,e.replace(goog.i18n.bidi.bracketGuardTextRe_,t+"$&"+t)},goog.i18n.bidi.enforceRtlInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+e+"</span>"},goog.i18n.bidi.enforceRtlInText=function(e){return goog.i18n.bidi.Format.RLE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+e+"</span>"},goog.i18n.bidi.enforceLtrInText=function(e){return goog.i18n.bidi.Format.LRE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(e){return e.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(e){return e.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(e,t){var r=0,o=0,s=!1;for(e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t).split(goog.i18n.bidi.wordSeparatorRe_),t=0;t<e.length;t++){var n=e[t];goog.i18n.bidi.startsWithRtl(n)?(r++,o++):goog.i18n.bidi.isRequiredLtrRe_.test(n)?s=!0:goog.i18n.bidi.hasAnyLtr(n)?o++:goog.i18n.bidi.hasNumeralsRe_.test(n)&&(s=!0)}return 0==o?s?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/o>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(e,t){return goog.i18n.bidi.estimateDirection(e,t)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(e,t){e&&(t=goog.i18n.bidi.toDir(t))&&(e.style.textAlign=t==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,e.dir=t==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(e,t){switch(goog.i18n.bidi.estimateDirection(t)){case goog.i18n.bidi.Dir.LTR:e.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:e.dir="rtl";break;default:e.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(e,t){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=e===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(e,t){var r=goog.html.TrustedResourceUrl.unwrap(this),o=(r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",e)+goog.html.TrustedResourceUrl.stringifyParams_("#",o,t))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(e){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(e){return e instanceof goog.html.TrustedResourceUrl&&e.constructor===goog.html.TrustedResourceUrl&&e.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(e,t){var r=goog.string.Const.unwrap(e);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return e=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,(function(e,o){if(!Object.prototype.hasOwnProperty.call(t,o))throw Error('Found marker, "'+o+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[o])instanceof goog.string.Const?goog.string.Const.unwrap(e):encodeURIComponent(String(e))})),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(e,t,r,o){return goog.html.TrustedResourceUrl.format(e,t).cloneWithParams(r,o)},goog.html.TrustedResourceUrl.fromConstant=function(e){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.TrustedResourceUrl.fromConstants=function(e){for(var t="",r=0;r<e.length;r++)t+=goog.string.Const.unwrap(e[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.TrustedResourceUrl.fromSafeScript=function(e){return e=goog.fs.blob.getBlobWithProperties([goog.html.SafeScript.unwrap(e)],"text/javascript"),e=goog.fs.url.createObjectUrl(e),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(e){return e=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(e):e,new goog.html.TrustedResourceUrl(goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.html.TrustedResourceUrl.stringifyParams_=function(e,t,r){if(null==r)return t;if("string"==typeof r)return r?e+encodeURIComponent(r):"";for(var o in r){var s=r[o];s=Array.isArray(s)?s:[s];for(var n=0;n<s.length;n++){var i=s[n];null!=i&&(t||(t=e),t+=(t.length>e.length?"&":"")+encodeURIComponent(o)+"="+encodeURIComponent(String(i)))}}return t},goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.internal={},goog.string.internal.startsWith=function(e,t){return 0==e.lastIndexOf(t,0)},goog.string.internal.endsWith=function(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(0,t.length))},goog.string.internal.caseInsensitiveEndsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(e.length-t.length,t.length))},goog.string.internal.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},goog.string.internal.caseInsensitiveCompare=function(e,t){return(e=String(e).toLowerCase())<(t=String(t).toLowerCase())?-1:e==t?0:1},goog.string.internal.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"<br />":"<br>")},goog.string.internal.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.internal.AMP_RE_,"&amp;").replace(goog.string.internal.LT_RE_,"&lt;").replace(goog.string.internal.GT_RE_,"&gt;").replace(goog.string.internal.QUOT_RE_,"&quot;").replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.internal.NULL_RE_,"&#0;");else{if(!goog.string.internal.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.internal.AMP_RE_,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.internal.LT_RE_,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.internal.GT_RE_,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.internal.QUOT_RE_,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.internal.NULL_RE_,"&#0;"))}return e},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=/</g,goog.string.internal.GT_RE_=/>/g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(e,t){return goog.string.internal.newLineToBr(e.replace(/  /g," &#160;"),t)},goog.string.internal.contains=function(e,t){return-1!=e.indexOf(t)},goog.string.internal.caseInsensitiveContains=function(e,t){return goog.string.internal.contains(e.toLowerCase(),t.toLowerCase())},goog.string.internal.compareVersions=function(e,t){var r=0;e=goog.string.internal.trim(String(e)).split("."),t=goog.string.internal.trim(String(t)).split(".");for(var o=Math.max(e.length,t.length),s=0;0==r&&s<o;s++){var n=e[s]||"",i=t[s]||"";do{if(n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""],i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],0==n[0].length&&0==i[0].length)break;r=0==n[1].length?0:parseInt(n[1],10);var a=0==i[1].length?0:parseInt(i[1],10);r=goog.string.internal.compareElements_(r,a)||goog.string.internal.compareElements_(0==n[2].length,0==i[2].length)||goog.string.internal.compareElements_(n[2],i[2]),n=n[3],i=i[3]}while(0==r)}return r},goog.string.internal.compareElements_=function(e,t){return e<t?-1:e>t?1:0},goog.html.SafeUrl=function(e,t){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=e===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(e){return e instanceof goog.html.SafeUrl&&e.constructor===goog.html.SafeUrl&&e.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(e){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(e)},goog.html.SafeUrl.fromBlob=function(e){return e=goog.html.SafeUrl.isSafeMimeType(e.type)?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromMediaSource=function(e){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),e=e instanceof MediaSource?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(e){var t=(e=e.replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return t=t&&goog.html.SafeUrl.isSafeMimeType(t[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t?e:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"tel:")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(e){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(e))||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"fb-messenger://share")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromWhatsAppUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"whatsapp://send")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromSmsUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(e){var t=e.indexOf("#");if(0<t&&(e=e.substring(0,t)),!(t=e.match(/[?&]body=/gi)))return!0;if(1<t.length)return!1;if(!(e=e.match(/[?&]body=([^&]*)/)[1]))return!0;try{decodeURIComponent(e)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(e)},goog.html.SafeUrl.fromSshUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"ssh://")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(e,t,r){return(e=e.exec(t))?(e=e[1],-1==(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map((function(e){return goog.string.Const.unwrap(e)}))).indexOf(e)&&(t=goog.html.SafeUrl.INNOCUOUS_STRING)):t=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeUrl.fromTrustedResourceUrl=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(e))},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.SAFE_URL_PATTERN=goog.html.SAFE_URL_PATTERN_,goog.html.SafeUrl.sanitize=function(e){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SAFE_URL_PATTERN_.test(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(e,t){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),t&&/^data:/i.test(e)&&(t=goog.html.SafeUrl.fromDataUrl(e)).getTypedStringValue()==e?t:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(e),"%s does not match the safe URL pattern",e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(e){return new goog.html.SafeUrl(goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyle.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(e,";"),"Last character of style string is not ';': "+e),goog.asserts.assert(goog.string.internal.contains(e,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+e),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"}),goog.html.SafeStyle.unwrap=function(e){return e instanceof goog.html.SafeStyle&&e.constructor===goog.html.SafeStyle&&e.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyle).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=e,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(e){var t,r="";for(t in e){if(!/^[-_a-zA-Z0-9]+$/.test(t))throw Error("Name allows only [-_a-zA-Z0-9], got: "+t);var o=e[t];null!=o&&(r+=t+":"+(o=Array.isArray(o)?goog.array.map(o,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(o))+";")}return r?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(r):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(e){if(e instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(e).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(e=e instanceof goog.string.Const?goog.string.Const.unwrap(e):goog.html.SafeStyle.sanitizePropertyValueString_(String(e)),/[{;}]/.test(e))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[e]);return e},goog.html.SafeStyle.sanitizePropertyValueString_=function(e){var t=e.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");return goog.html.SafeStyle.VALUE_RE_.test(t)?goog.html.SafeStyle.COMMENT_RE_.test(e)?(goog.asserts.fail("String value disallows comments, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):goog.html.SafeStyle.hasBalancedQuotes_(e)?goog.html.SafeStyle.hasBalancedSquareBrackets_(e)?goog.html.SafeStyle.sanitizeUrl_(e):(goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value requires balanced quotes, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING)},goog.html.SafeStyle.hasBalancedQuotes_=function(e){for(var t=!0,r=!0,o=0;o<e.length;o++){var s=e.charAt(o);"'"==s&&r?t=!t:'"'==s&&t&&(r=!r)}return t&&r},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(e){for(var t=!0,r=/^[-_a-zA-Z0-9]$/,o=0;o<e.length;o++){var s=e.charAt(o);if("]"==s){if(t)return!1;t=!0}else if("["==s){if(!t)return!1;t=!1}else if(!t&&!r.test(s))return!1}return t},goog.html.SafeStyle.VALUE_ALLOWED_CHARS_="[-,.\"'%_!# a-zA-Z0-9\\[\\]]",goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$"),goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,goog.html.SafeStyle.ALLOWED_FUNCTIONS_="calc cubic-bezier fit-content hsl hsla linear-gradient matrix minmax repeat rgb rgba (rotate|scale|translate)(X|Y|Z|3d)?".split(" "),goog.html.SafeStyle.FUNCTIONS_RE_=new RegExp("\\b("+goog.html.SafeStyle.ALLOWED_FUNCTIONS_.join("|")+")\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(e){return e.replace(goog.html.SafeStyle.URL_RE_,(function(e,t,r,o){var s="";return r=r.replace(/^(['"])(.*)\1$/,(function(e,t,r){return s=t,r})),e=goog.html.SafeUrl.sanitize(r).getTypedStringValue(),t+s+e+s+o}))},goog.html.SafeStyle.concat=function(e){var t="",r=function(e){Array.isArray(e)?goog.array.forEach(e,r):t+=goog.html.SafeStyle.unwrap(e)};return goog.array.forEach(arguments,r),t?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t):goog.html.SafeStyle.EMPTY},goog.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="",this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyleSheet.createRule=function(e,t){if(goog.string.internal.contains(e,"<"))throw Error("Selector does not allow '<', got: "+e);var r=e.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(r))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+e);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+e);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),e=e+"{"+goog.html.SafeStyle.unwrap(t).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(e){for(var t={"(":")","[":"]"},r=[],o=0;o<e.length;o++){var s=e[o];if(t[s])r.push(t[s]);else if(goog.object.contains(t,s)&&r.pop()!=s)return!1}return 0==r.length},goog.html.SafeStyleSheet.concat=function(e){var t="",r=function(e){Array.isArray(e)?goog.array.forEach(e,r):t+=goog.html.SafeStyleSheet.unwrap(e)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeStyleSheet.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(e,"<"),"Forbidden '<' character in style sheet string: "+e),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},goog.DEBUG&&(goog.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"}),goog.html.SafeStyleSheet.unwrap=function(e){return e instanceof goog.html.SafeStyleSheet&&e.constructor===goog.html.SafeStyleSheet&&e.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyleSheet).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=e,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var e=goog.labs.userAgent.util.getNavigator_();return e&&(e=e.userAgent)?e:""},goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator},goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_(),goog.labs.userAgent.util.setUserAgent=function(e){goog.labs.userAgent.util.userAgent_=e||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(t,e)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(t,e)},goog.labs.userAgent.util.extractVersionTuples=function(e){for(var t,r=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,o=[];t=r.exec(e);)o.push([t[1],t[2],t[3]||void 0]);return o},goog.labs.userAgent.browser={},goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")},goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.browser.matchEdgeHtml_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.browser.matchEdgeChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("Edg/")},goog.labs.userAgent.browser.matchOperaChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("OPR")},goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")||goog.labs.userAgent.util.matchUserAgent("FxiOS")},goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!(goog.labs.userAgent.browser.matchChrome_()||goog.labs.userAgent.browser.matchCoast_()||goog.labs.userAgent.browser.matchOpera_()||goog.labs.userAgent.browser.matchEdgeHtml_()||goog.labs.userAgent.browser.matchEdgeChromium_()||goog.labs.userAgent.browser.matchOperaChromium_()||goog.labs.userAgent.browser.matchFirefox_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))},goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")},goog.labs.userAgent.browser.matchIosWebview_=function(){return(goog.labs.userAgent.util.matchUserAgent("iPad")||goog.labs.userAgent.util.matchUserAgent("iPhone"))&&!goog.labs.userAgent.browser.matchSafari_()&&!goog.labs.userAgent.browser.matchChrome_()&&!goog.labs.userAgent.browser.matchCoast_()&&!goog.labs.userAgent.browser.matchFirefox_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchEdgeHtml_()},goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!(goog.labs.userAgent.browser.isChrome()||goog.labs.userAgent.browser.isFirefox()||goog.labs.userAgent.browser.isOpera()||goog.labs.userAgent.browser.isSilk())},goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_,goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_,goog.labs.userAgent.browser.isEdge=goog.labs.userAgent.browser.matchEdgeHtml_,goog.labs.userAgent.browser.isEdgeChromium=goog.labs.userAgent.browser.matchEdgeChromium_,goog.labs.userAgent.browser.isOperaChromium=goog.labs.userAgent.browser.matchOperaChromium_,goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_,goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_,goog.labs.userAgent.browser.isCoast=goog.labs.userAgent.browser.matchCoast_,goog.labs.userAgent.browser.isIosWebview=goog.labs.userAgent.browser.matchIosWebview_,goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_,goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_,goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")},goog.labs.userAgent.browser.getVersion=function(){function e(e){return e=goog.array.find(e,o),r[e]||""}var t=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(t);t=goog.labs.userAgent.util.extractVersionTuples(t);var r={};goog.array.forEach(t,(function(e){r[e[0]]=e[1]}));var o=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?e(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?e(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?e(["Edg"]):goog.labs.userAgent.browser.isChrome()?e(["Chrome","CriOS","HeadlessChrome"]):(t=t[2])&&t[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(e){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),e)},goog.labs.userAgent.browser.getIEVersion_=function(e){var t=/rv: *([\d\.]*)/.exec(e);if(t&&t[1])return t[1];t="";var r=/MSIE +([\d\.]+)/.exec(e);if(r&&r[1])if(e=/Trident\/(\d.\d)/.exec(e),"7.0"==r[1])if(e&&e[1])switch(e[1]){case"4.0":t="8.0";break;case"5.0":t="9.0";break;case"6.0":t="10.0";break;case"7.0":t="11.0"}else t="7.0";else t=r[1];return t},goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null},goog.html.SafeHtml.ENABLE_ERROR_MESSAGES=goog.DEBUG,goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE=!0,goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_},goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0,goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeHtml.unwrap=function(e){return goog.html.SafeHtml.unwrapTrustedHTML(e).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(e){return e instanceof goog.html.SafeHtml&&e.constructor===goog.html.SafeHtml&&e.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(e){if(e instanceof goog.html.SafeHtml)return e;var t="object"==typeof e,r=null;return t&&e.implementsGoogI18nBidiDirectionalString&&(r=e.getDirection()),e=t&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(e),r)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.comment=function(e){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("\x3c!--"+goog.string.internal.htmlEscape(e)+"--\x3e",null)},goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.html.SafeHtml.create=function(e,t,r){return goog.html.SafeHtml.verifyTagName(String(e)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(e),t,r)},goog.html.SafeHtml.verifyTagName=function(e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(e))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+e+">.":"");if(e.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+e+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(e,t,r,o){e&&goog.html.TrustedResourceUrl.unwrap(e);var s={};return s.src=e||null,s.srcdoc=t&&goog.html.SafeHtml.unwrap(t),e=goog.html.SafeHtml.combineAttributes(s,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,o)},goog.html.SafeHtml.createSandboxIframe=function(e,t,r,o){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var s={};return s.src=e?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)):null,s.srcdoc=t||null,s.sandbox="",e=goog.html.SafeHtml.combineAttributes(s,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,o)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(e,t){return goog.html.TrustedResourceUrl.unwrap(e),e=goog.html.SafeHtml.combineAttributes({src:e},{},t),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e)},goog.html.SafeHtml.createScript=function(e,t){for(var r in t){var o=r.toLowerCase();if("language"==o||"src"==o||"text"==o||"type"==o)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+o+'" attribute':"")}for(r="",e=goog.array.concat(e),o=0;o<e.length;o++)r+=goog.html.SafeScript.unwrap(e[o]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t,e)},goog.html.SafeHtml.createStyle=function(e,t){t=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},t);var r="";e=goog.array.concat(e);for(var o=0;o<e.length;o++)r+=goog.html.SafeStyleSheet.unwrap(e[o]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",t,e)},goog.html.SafeHtml.createMetaRefresh=function(e,t){return e=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(t||0)+"; url="+e})},goog.html.SafeHtml.getAttrNameAndValue_=function(e,t,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if("style"==t.toLowerCase()){if(!goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "style" not supported.':"");r=goog.html.SafeHtml.getStyleValue_(r)}else{if(/^on/i.test(t))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+t+'" requires goog.string.Const value, "'+r+'" given.':"");if(t.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(r instanceof goog.html.TrustedResourceUrl)r=goog.html.TrustedResourceUrl.unwrap(r);else if(r instanceof goog.html.SafeUrl)r=goog.html.SafeUrl.unwrap(r);else{if("string"!=typeof r)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+t+'" on tag "'+e+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.':"");r=goog.html.SafeUrl.sanitize(r).getTypedStringValue()}}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert("string"==typeof r||"number"==typeof r,"String or number value expected, got "+typeof r+" with value: "+r),t+'="'+goog.string.internal.htmlEscape(String(r))+'"'},goog.html.SafeHtml.getStyleValue_=function(e){if(!goog.isObject(e))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof e+" given: "+e:"");return e instanceof goog.html.SafeStyle||(e=goog.html.SafeStyle.create(e)),goog.html.SafeStyle.unwrap(e)},goog.html.SafeHtml.createWithDir=function(e,t,r,o){return(t=goog.html.SafeHtml.create(t,r,o)).dir_=e,t},goog.html.SafeHtml.join=function(e,t){var r=(e=goog.html.SafeHtml.htmlEscape(e)).getDirection(),o=[],s=function(e){Array.isArray(e)?goog.array.forEach(e,s):(e=goog.html.SafeHtml.htmlEscape(e),o.push(goog.html.SafeHtml.unwrap(e)),e=e.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=e:e!=goog.i18n.bidi.Dir.NEUTRAL&&r!=e&&(r=null))};return goog.array.forEach(t,s),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(o.join(goog.html.SafeHtml.unwrap(e)),r)},goog.html.SafeHtml.concat=function(e){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(e,t){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=e,r},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(e,t){return(new goog.html.SafeHtml).initSecurityPrivateDoNotAccessOrElse_(e,t)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e,t){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(e):e,this.dir_=t,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(e,t,r){var o=null,s="<"+e+goog.html.SafeHtml.stringifyAttributes(e,t);return null==r?r=[]:Array.isArray(r)||(r=[r]),goog.dom.tags.isVoidTag(e.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+e+"> does not allow content."),s+=">"):(o=goog.html.SafeHtml.concat(r),s+=">"+goog.html.SafeHtml.unwrap(o)+"</"+e+">",o=o.getDirection()),(e=t&&t.dir)&&(o=/^(ltr|rtl|auto)$/i.test(e)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(s,o)},goog.html.SafeHtml.stringifyAttributes=function(e,t){var r="";if(t)for(var o in t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(o))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+o+'".':"");var s=t[o];null!=s&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(e,o,s))}return r},goog.html.SafeHtml.combineAttributes=function(e,t,r){var o,s={};for(o in e)goog.asserts.assert(o.toLowerCase()==o,"Must be lower case"),s[o]=e[o];for(o in t)goog.asserts.assert(o.toLowerCase()==o,"Must be lower case"),s[o]=t[o];if(r)for(o in r){var n=o.toLowerCase();if(n in e)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+n+'" attribute, got "'+o+'" with value "'+r[o]+'"':"");n in t&&delete s[n],s[o]=r[o]}return s},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(e,t,r){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(e,t,r){e.insertAdjacentHTML(t,goog.html.SafeHtml.unwrapTrustedHTML(r))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue((function(){if(goog.DEBUG&&typeof document>"u")return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),!(goog.DEBUG&&!e.firstChild)&&(t=e.firstChild.firstChild,e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!t.parentElement)})),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(e,t){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;e.lastChild;)e.removeChild(e.lastChild);e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setInnerHtml=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=e.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[r])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+e.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(e,t)},goog.dom.safe.setOuterHtml=function(e,t){e.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setFormElementAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLFormElement(e).action=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setButtonFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLButtonElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setInputFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLInputElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setStyle=function(e,t){e.style.cssText=goog.html.SafeStyle.unwrap(t)},goog.dom.safe.documentWrite=function(e,t){e.write(goog.html.SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.setAnchorHref=function(e,t){goog.dom.asserts.assertIsHTMLAnchorElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setImageSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLImageElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setAudioSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLAudioElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setVideoSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLVideoElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setEmbedSrc=function(e,t){goog.dom.asserts.assertIsHTMLEmbedElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setFrameSrc=function(e,t){goog.dom.asserts.assertIsHTMLFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrcdoc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setLinkHrefAndRel=function(e,t,r){goog.dom.asserts.assertIsHTMLLinkElement(e),e.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),e.href=goog.html.TrustedResourceUrl.unwrap(t)):e.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(t):t instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(t):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(t))},goog.dom.safe.setObjectData=function(e,t){goog.dom.asserts.assertIsHTMLObjectElement(e),e.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptSrc=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setScriptContent=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.text=goog.html.SafeScript.unwrapTrustedScript(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setLocationHref=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.assignLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.assign(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.replaceLocation=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.replace(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.openInWindow=function(e,t,r,o,s){return e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),t=t||goog.global,r=r instanceof goog.string.Const?goog.string.Const.unwrap(r):r||"",t.open(goog.html.SafeUrl.unwrap(e),r,o,s)},goog.dom.safe.parseFromStringHtml=function(e,t){return goog.dom.safe.parseFromString(e,t,"text/html")},goog.dom.safe.parseFromString=function(e,t,r){return e.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(t),r)},goog.dom.safe.createImageFromBlob=function(e){if(!/^image\/.*/g.test(e.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var t=goog.global.URL.createObjectURL(e);return(e=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(t)},goog.dom.safe.setImageSrc(e,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),t)),e},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:" "},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(e,t){for(var r=e.split("%s"),o="",s=Array.prototype.slice.call(arguments,1);s.length&&1<r.length;)o+=r.shift()+s.shift();return o+r.join("%s")},goog.string.collapseWhitespace=function(e){return e.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(e){return 0==e.length},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(e){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(e))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(e){return!/[^\t\n\r ]/.test(e)},goog.string.isAlpha=function(e){return!/[^a-zA-Z]/.test(e)},goog.string.isNumeric=function(e){return!/[^0-9]/.test(e)},goog.string.isAlphaNumeric=function(e){return!/[^a-zA-Z0-9]/.test(e)},goog.string.isSpace=function(e){return" "==e},goog.string.isUnicodeChar=function(e){return 1==e.length&&" "<=e&&"~">=e||""<=e&&"�">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,r){if(e==t)return 0;if(!e)return-1;if(!t)return 1;for(var o=e.toLowerCase().match(r),s=t.toLowerCase().match(r),n=Math.min(o.length,s.length),i=0;i<n;i++){r=o[i];var a=s[i];if(r!=a)return e=parseInt(r,10),!isNaN(e)&&(t=parseInt(a,10),!isNaN(t)&&e-t)?e-t:r<a?-1:1}return o.length!=s.length?o.length-s.length:e<t?-1:1},goog.string.intAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(e){return encodeURIComponent(String(e))},goog.string.urlDecode=function(e){return decodeURIComponent(e.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(e,t){return e=goog.string.internal.htmlEscape(e,t),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"&#101;")),e},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},o=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,(function(e,t){var s=r[e];return s||("#"==t.charAt(0)&&(t=+("0"+t.substr(1)),isNaN(t)||(s=String.fromCharCode(t))),s||(goog.dom.safe.setInnerHtml(o,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),e+" ")),s=o.firstChild.nodeValue.slice(0,-1)),r[e]=s)}))},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,(function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"#"!=t.charAt(0)||(t=+("0"+t.substr(1)),isNaN(t))?e:String.fromCharCode(t)}}))},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/  /g," &#160;"),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var r=t.length,o=0;o<r;o++){var s=1==r?t:t.charAt(o);if(e.charAt(0)==s&&e.charAt(e.length-1)==s)return e.substring(1,e.length-1)}return e},goog.string.truncate=function(e,t,r){return r&&(e=goog.string.unescapeEntities(e)),e.length>t&&(e=e.substring(0,t-3)+"..."),r&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,r,o){if(r&&(e=goog.string.unescapeEntities(e)),o&&e.length>t){o>t&&(o=t);var s=e.length-o;e=e.substring(0,t-o)+"..."+e.substring(s)}else e.length>t&&(o=Math.floor(t/2),s=e.length-o,e=e.substring(0,o+t%2)+"..."+e.substring(s));return r&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var o=e.charAt(r),s=o.charCodeAt(0);t[r+1]=goog.string.specialEscapeChars_[o]||(31<s&&127>s?o:goog.string.escapeChar(o))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=goog.string.escapeChar(e.charAt(r));return t.join("")},goog.string.escapeChar=function(e){if(e in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[e];if(e in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[e]=goog.string.specialEscapeChars_[e];var t=e.charCodeAt(0);if(31<t&&127>t)var r=e;else 256>t?(r="\\x",(16>t||256<t)&&(r+="0")):(r="\\u",4096>t&&(r+="0")),r+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,r){var o=e;return 0<=t&&t<e.length&&0<r&&(o=e.substr(0,t)+e.substr(t+r,e.length-t-r)),o},goog.string.remove=function(e,t){return e.replace(t,"")},goog.string.removeAll=function(e,t){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,"")},goog.string.replaceAll=function(e,t,r){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},goog.string.padNumber=function(e,t,r){return-1==(r=(e=void 0!==r?e.toFixed(r):String(e)).indexOf("."))&&(r=e.length),goog.string.repeat("0",Math.max(0,t-r))+e},goog.string.makeSafe=function(e){return null==e?"":String(e)},goog.string.buildString=function(e){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(e){for(var t=0,r=0;r<e.length;++r)t=31*t+e.charCodeAt(r)>>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,(function(e,t){return t.toUpperCase()}))},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t="string"==typeof t?goog.string.regExpEscape(t):"\\s",e.replace(new RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),(function(e,t,r){return t+r.toUpperCase()}))},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),"string"==typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,r){e=e.split(t);for(var o=[];0<r&&e.length;)o.push(e.shift()),r--;return e.length&&o.push(e.join(t)),o},goog.string.lastComponent=function(e,t){if(!t)return e;"string"==typeof t&&(t=[t]);for(var r=-1,o=0;o<t.length;o++)if(""!=t[o]){var s=e.lastIndexOf(t[o]);s>r&&(r=s)}return-1==r?e:e.slice(r+1)},goog.string.editDistance=function(e,t){var r=[],o=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var s=0;s<t.length+1;s++)r[s]=s;for(s=0;s<e.length;s++){o[0]=s+1;for(var n=0;n<t.length;n++)o[n+1]=Math.min(o[n]+1,r[n+1]+1,r[n]+ +(e[s]!=t[n]));for(n=0;n<r.length;n++)r[n]=o[n]}return o[t.length]},goog.labs.userAgent.engine={},goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")},goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.engine.isEdge=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent();if(e){e=goog.labs.userAgent.util.extractVersionTuples(e);var t,r=goog.labs.userAgent.engine.getEngineTuple_(e);if(r)return"Gecko"==r[0]?goog.labs.userAgent.engine.getVersionForKey_(e,"Firefox"):r[1];if((e=e[0])&&(t=e[2])&&(t=/Trident\/([^\s;]+)/.exec(t)))return t[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(e){if(!goog.labs.userAgent.engine.isEdge())return e[1];for(var t=0;t<e.length;t++){var r=e[t];if("Edge"==r[0])return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),e)},goog.labs.userAgent.engine.getVersionForKey_=function(e,t){return(e=goog.array.find(e,(function(e){return t==e[0]})))&&e[1]||""},goog.labs.userAgent.platform={},goog.labs.userAgent.platform.isAndroid=function(){return goog.labs.userAgent.util.matchUserAgent("Android")},goog.labs.userAgent.platform.isIpod=function(){return goog.labs.userAgent.util.matchUserAgent("iPod")},goog.labs.userAgent.platform.isIphone=function(){return goog.labs.userAgent.util.matchUserAgent("iPhone")&&!goog.labs.userAgent.util.matchUserAgent("iPod")&&!goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIpad=function(){return goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIos=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpad()||goog.labs.userAgent.platform.isIpod()},goog.labs.userAgent.platform.isMacintosh=function(){return goog.labs.userAgent.util.matchUserAgent("Macintosh")},goog.labs.userAgent.platform.isLinux=function(){return goog.labs.userAgent.util.matchUserAgent("Linux")},goog.labs.userAgent.platform.isWindows=function(){return goog.labs.userAgent.util.matchUserAgent("Windows")},goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")},goog.labs.userAgent.platform.isChromecast=function(){return goog.labs.userAgent.util.matchUserAgent("CrKey")},goog.labs.userAgent.platform.isKaiOS=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS")},goog.labs.userAgent.platform.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent(),t="";return goog.labs.userAgent.platform.isWindows()?t=(e=(t=/Windows (?:NT|Phone) ([0-9.]+)/).exec(e))?e[1]:"0.0":goog.labs.userAgent.platform.isIos()?t=(e=(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/).exec(e))&&e[1].replace(/_/g,"."):goog.labs.userAgent.platform.isMacintosh()?t=(e=(t=/Mac OS X ([0-9_.]+)/).exec(e))?e[1].replace(/_/g,"."):"10":goog.labs.userAgent.platform.isKaiOS()?t=(e=(t=/(?:KaiOS)\/(\S+)/i).exec(e))&&e[1]:goog.labs.userAgent.platform.isAndroid()?t=(e=(t=/Android\s+([^\);]+)(\)|;)/).exec(e))&&e[1]:goog.labs.userAgent.platform.isChromeOS()&&(t=(e=(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/).exec(e))&&e[1]),t||""},goog.labs.userAgent.platform.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),e)},goog.reflect={},goog.reflect.object=function(e,t){return t},goog.reflect.objectProperty=function(e,t){return e},goog.reflect.sinkValue=function(e){return goog.reflect.sinkValue[" "](e),e},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(e,t){try{return goog.reflect.sinkValue(e[t]),!0}catch{}return!1},goog.reflect.cache=function(e,t,r,o){return o=o?o(t):t,Object.prototype.hasOwnProperty.call(e,o)?e[o]:e[o]=r(t)},goog.userAgent={},goog.userAgent.ASSUME_IE=!1,goog.userAgent.ASSUME_EDGE=!1,goog.userAgent.ASSUME_GECKO=!1,goog.userAgent.ASSUME_WEBKIT=!1,goog.userAgent.ASSUME_MOBILE_WEBKIT=!1,goog.userAgent.ASSUME_OPERA=!1,goog.userAgent.ASSUME_ANY_VERSION=!1,goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA,goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()},goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null},goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()},goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera(),goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE(),goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:goog.labs.userAgent.engine.isEdge(),goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE,goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko(),goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit(),goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")},goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_(),goog.userAgent.SAFARI=goog.userAgent.WEBKIT,goog.userAgent.determinePlatform_=function(){var e=goog.userAgent.getNavigatorTyped();return e&&e.platform||""},goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_(),goog.userAgent.ASSUME_MAC=!1,goog.userAgent.ASSUME_WINDOWS=!1,goog.userAgent.ASSUME_LINUX=!1,goog.userAgent.ASSUME_X11=!1,goog.userAgent.ASSUME_ANDROID=!1,goog.userAgent.ASSUME_IPHONE=!1,goog.userAgent.ASSUME_IPAD=!1,goog.userAgent.ASSUME_IPOD=!1,goog.userAgent.ASSUME_KAIOS=!1,goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD,goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh(),goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows(),goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()},goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_(),goog.userAgent.isX11_=function(){var e=goog.userAgent.getNavigatorTyped();return!!e&&goog.string.contains(e.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid(),goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone(),goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod(),goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos(),goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS(),goog.userAgent.determineVersion_=function(){var e="",t=goog.userAgent.getVersionRegexResult_();return t&&(e=t?t[1]:""),goog.userAgent.IE&&(null!=(t=goog.userAgent.getDocumentMode_())&&t>parseFloat(e))?String(t):e},goog.userAgent.getVersionRegexResult_=function(){var e=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(e):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(e):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(e):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(e):void 0},goog.userAgent.getDocumentMode_=function(){var e=goog.global.document;return e?e.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(e,t){return goog.string.compareVersions(e,t)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(e){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,e,(function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,e)}))},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(e){return Number(goog.userAgent.DOCUMENT_MODE)>=e},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()||parseInt(goog.userAgent.VERSION,10)||void 0}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(e){return goog.string.contains(goog.crypt.base64.paddingChars_,e)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||"function"==typeof goog.global.btoa,goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&"function"==typeof goog.global.atob,goog.crypt.base64.encodeByteArray=function(e,t){goog.asserts.assert(goog.isArrayLike(e),"encodeByteArray takes an array as a parameter"),void 0===t&&(t=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),t=goog.crypt.base64.byteToCharMaps_[t];for(var r=[],o=0;o<e.length;o+=3){var s=e[o],n=o+1<e.length,i=n?e[o+1]:0,a=o+2<e.length,u=a?e[o+2]:0,c=s>>2;s=(3&s)<<4|i>>4,i=(15&i)<<2|u>>6,u&=63,a||(u=64,n||(i=64)),r.push(t[c],t[s],t[i]||"",t[u]||"")}return r.join("")},goog.crypt.base64.encodeString=function(e,t){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!t?goog.global.btoa(e):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(e),t)},goog.crypt.base64.decodeString=function(e,t){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!t)return goog.global.atob(e);var r="";return goog.crypt.base64.decodeStringInternal_(e,(function(e){r+=String.fromCharCode(e)})),r},goog.crypt.base64.decodeStringToByteArray=function(e,t){var r=[];return goog.crypt.base64.decodeStringInternal_(e,(function(e){r.push(e)})),r},goog.crypt.base64.decodeStringToUint8Array=function(e){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var t=e.length,r=3*t/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(e[t-1])&&(r=goog.crypt.base64.isPadding_(e[t-2])?r-2:r-1);var o=new Uint8Array(r),s=0;return goog.crypt.base64.decodeStringInternal_(e,(function(e){o[s++]=e})),o.subarray(0,s)},goog.crypt.base64.decodeStringInternal_=function(e,t){function r(t){for(;o<e.length;){var r=e.charAt(o++),s=goog.crypt.base64.charToByteMap_[r];if(null!=s)return s;if(!goog.string.isEmptyOrWhitespace(r))throw Error("Unknown base64 encoding at char: "+r)}return t}goog.crypt.base64.init_();for(var o=0;;){var s=r(-1),n=r(0),i=r(64),a=r(64);if(64===a&&-1===s)break;t(s<<2|n>>4),64!=i&&(t(n<<4&240|i>>2),64!=a&&t(i<<6&192|a))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var e=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var o=e.concat(t[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=o;for(var s=0;s<o.length;s++){var n=o[s],i=goog.crypt.base64.charToByteMap_[n];void 0===i?goog.crypt.base64.charToByteMap_[n]=s:goog.asserts.assert(i===s)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(e){var t=e>>>0;e=Math.floor((e-t)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=t,jspb.utils.split64High=e},jspb.utils.splitInt64=function(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/jspb.BinaryConstants.TWO_TO_32),e>>>=0,t&&(e=~e>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++e&&(e=0))),jspb.utils.split64Low=r,jspb.utils.split64High=e},jspb.utils.splitZigzag64=function(e){var t=0>e;e=2*Math.abs(e),jspb.utils.splitUint64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;t&&(0==e?0==r?r=e=4294967295:(r--,e=4294967295):e--),jspb.utils.split64Low=e,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(e))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(e>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|2139095040)>>>0;else if(e<jspb.BinaryConstants.FLOAT32_MIN)e=Math.round(e/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),16777216<=(e=Math.round(e*jspb.BinaryConstants.TWO_TO_23))&&++r,jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|r+127<<23|8388607&e)>>>0}},jspb.utils.splitFloat64=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))jspb.utils.split64High=0<1/e?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(e))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(e>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(t<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(e<jspb.BinaryConstants.FLOAT64_MIN){var r=e/Math.pow(2,-1074);e=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(t<<31|e)>>>0,jspb.utils.split64Low=r>>>0}else{var o=0;if(2<=(r=e))for(;2<=r&&1023>o;)o++,r/=2;else for(;1>r&&-1022<o;)r*=2,o--;e=(r=e*Math.pow(2,-o))*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(t<<31|o+1023<<20|e)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2),s=e.charCodeAt(3),n=e.charCodeAt(4),i=e.charCodeAt(5),a=e.charCodeAt(6);e=e.charCodeAt(7),jspb.utils.split64Low=t+(r<<8)+(o<<16)+(s<<24)>>>0,jspb.utils.split64High=n+(i<<8)+(a<<16)+(e<<24)>>>0},jspb.utils.joinUint64=function(e,t){return t*jspb.BinaryConstants.TWO_TO_32+(e>>>0)},jspb.utils.joinInt64=function(e,t){var r=2147483648&t;return r&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=jspb.utils.joinUint64(e,t),r?-e:e},jspb.utils.toZigzag64=function(e,t,r){var o=t>>31;return r(e<<1^o,(t<<1|e>>>31)^o)},jspb.utils.joinZigzag64=function(e,t){return jspb.utils.fromZigzag64(e,t,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(e,t,r){var o=-(1&e);return r((e>>>1|t<<31)^o,t>>>1^o)},jspb.utils.joinFloat32=function(e,t){t=2*(e>>31)+1;var r=e>>>23&255;return e&=8388607,255==r?e?NaN:1/0*t:0==r?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))},jspb.utils.joinFloat64=function(e,t){var r=2*(t>>31)+1,o=t>>>20&2047;return e=jspb.BinaryConstants.TWO_TO_32*(1048575&t)+e,2047==o?e?NaN:1/0*r:0==o?r*Math.pow(2,-1074)*e:r*Math.pow(2,o-1075)*(e+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(e,t){function r(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+jspb.utils.joinUint64(e,t);var o=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*o+6710656*(t=t>>16&65535),o+=8147497*t,t*=2,1e7<=e&&(o+=Math.floor(e/1e7),e%=1e7),1e7<=o&&(t+=Math.floor(o/1e7),o%=1e7),r(t,0)+r(o,t)+r(e,1)},jspb.utils.joinSignedDecimalString=function(e,t){var r=2147483648&t;return r&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=jspb.utils.joinUnsignedDecimalString(e,t),r?"-"+e:e},jspb.utils.hash64ToDecimalString=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinSignedDecimalString(e,r):jspb.utils.joinUnsignedDecimalString(e,r)},jspb.utils.hash64ArrayToDecimalStrings=function(e,t){for(var r=Array(e.length),o=0;o<e.length;o++)r[o]=jspb.utils.hash64ToDecimalString(e[o],t);return r},jspb.utils.decimalStringToHash64=function(e){function t(e,t){for(var r=0;8>r&&(1!==e||0<t);r++)t=e*o[r]+t,o[r]=255&t,t>>>=8}jspb.asserts.assert(0<e.length);var r=!1;"-"===e[0]&&(r=!0,e=e.slice(1));for(var o=[0,0,0,0,0,0,0,0],s=0;s<e.length;s++)t(10,e.charCodeAt(s)-jspb.utils.ZERO_CHAR_CODE_);return r&&(function(){for(var e=0;8>e;e++)o[e]=255&~o[e]}(),t(1,1)),goog.crypt.byteArrayToString(o)},jspb.utils.splitDecimalString=function(e){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e))},jspb.utils.toHexDigit_=function(e){return String.fromCharCode(10>e?jspb.utils.ZERO_CHAR_CODE_+e:jspb.utils.A_CHAR_CODE_-10+e)},jspb.utils.fromHexCharCode_=function(e){return e>=jspb.utils.A_CHAR_CODE_?e-jspb.utils.A_CHAR_CODE_+10:e-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(e){var t=Array(18);t[0]="0",t[1]="x";for(var r=0;8>r;r++){var o=e.charCodeAt(7-r);t[2*r+2]=jspb.utils.toHexDigit_(o>>4),t[2*r+3]=jspb.utils.toHexDigit_(15&o)}return t.join("")},jspb.utils.hexStringToHash64=function(e){e=e.toLowerCase(),jspb.asserts.assert(18==e.length),jspb.asserts.assert("0"==e[0]),jspb.asserts.assert("x"==e[1]);for(var t="",r=0;8>r;r++){var o=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+2)),s=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+3));t=String.fromCharCode(16*o+s)+t}return t},jspb.utils.hash64ToNumber=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinInt64(e,r):jspb.utils.joinUint64(e,r)},jspb.utils.numberToHash64=function(e){return jspb.utils.splitInt64(e),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(e,t,r){for(var o=0,s=t;s<r;s++)o+=e[s]>>7;return r-t-o},jspb.utils.countVarintFields=function(e,t,r,o){var s=0;if(128>(o=8*o+jspb.BinaryConstants.WireType.VARINT))for(;t<r&&e[t++]==o;)for(s++;;){var n=e[t++];if(!(128&n))break}else for(;t<r;){for(n=o;128<n;){if(e[t]!=(127&n|128))return s;t++,n>>=7}if(e[t++]!=n)break;for(s++;128&(n=e[t++]););}return s},jspb.utils.countFixedFields_=function(e,t,r,o,s){var n=0;if(128>o)for(;t<r&&e[t++]==o;)n++,t+=s;else for(;t<r;){for(var i=o;128<i;){if(e[t++]!=(127&i|128))return n;i>>=7}if(e[t++]!=i)break;n++,t+=s}return n},jspb.utils.countFixed32Fields=function(e,t,r,o){return jspb.utils.countFixedFields_(e,t,r,8*o+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(e,t,r,o){return jspb.utils.countFixedFields_(e,t,r,8*o+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(e,t,r,o){var s=0;for(o=8*o+jspb.BinaryConstants.WireType.DELIMITED;t<r;){for(var n=o;128<n;){if(e[t++]!=(127&n|128))return s;n>>=7}if(e[t++]!=n)break;s++;for(var i=0,a=1;i+=(127&(n=e[t++]))*a,a*=128,128&n;);t+=i}return s},jspb.utils.debugBytesToTextFormat=function(e){var t='"';if(e){e=jspb.utils.byteSourceToUint8Array(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'},jspb.utils.debugScalarToTextFormat=function(e){return"string"==typeof e?goog.string.quote(e):e.toString()},jspb.utils.stringToByteArray=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var o=e.charCodeAt(r);if(255<o)throw Error("Conversion error: string contains codepoint outside of byte range");t[r]=o}return t},jspb.utils.byteSourceToUint8Array=function(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?goog.crypt.base64.decodeStringToUint8Array(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):(jspb.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(e,t,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,e&&this.setBlock(e,t,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(e,t,r){if(jspb.BinaryDecoder.instanceCache_.length){var o=jspb.BinaryDecoder.instanceCache_.pop();return e&&o.setBlock(e,t,r),o}return new jspb.BinaryDecoder(e,t,r)},jspb.BinaryDecoder.prototype.free=function(){this.clear(),100>jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(e,t,r){this.bytes_=jspb.utils.byteSourceToUint8Array(e),this.start_=void 0!==t?t:0,this.end_=void 0!==r?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(e){this.end_=e},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(e){this.cursor_=e},jspb.BinaryDecoder.prototype.advance=function(e){this.cursor_+=e,jspb.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(e){for(var t=128,r=0,o=0,s=0;4>s&&128<=t;s++)r|=(127&(t=this.bytes_[this.cursor_++]))<<7*s;if(128<=t&&(r|=(127&(t=this.bytes_[this.cursor_++]))<<28,o|=(127&t)>>4),128<=t)for(s=0;5>s&&128<=t;s++)o|=(127&(t=this.bytes_[this.cursor_++]))<<7*s+3;if(128>t)return e(r>>>0,o>>>0);jspb.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(e){return this.readSplitVarint64((function(t,r){return jspb.utils.fromZigzag64(t,r,e)}))},jspb.BinaryDecoder.prototype.readSplitFixed64=function(e){var t=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var o=0,s=0,n=r+7;n>=r;n--)o=o<<8|t[n],s=s<<8|t[n+4];return e(o,s)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(e){for(;128<e;)this.cursor_--,e>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var e=this.bytes_,t=e[this.cursor_+0],r=127&t;return 128>t?(this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+1]))<<7,128>t?(this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+2]))<<14,128>t?(this.cursor_+=3,jspb.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+3]))<<21,128>t?(this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),r):(r|=(15&(t=e[this.cursor_+4]))<<28,128>t?(this.cursor_+=5,jspb.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&jspb.asserts.assert(!1),jspb.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=function(){return~~this.readUnsignedVarint32()},jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var e=this.readUnsignedVarint32();return e>>>1^-(1&e)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readUint16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),e|t<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],o=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),(e|t<<8|r<<16|o<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUint64(e,t)},jspb.BinaryDecoder.prototype.readUint64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUnsignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readInt8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),e<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),(e|t<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],o=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),e|t<<8|r<<16|o<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinInt64(e,t)},jspb.BinaryDecoder.prototype.readInt64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinSignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readFloat=function(){var e=this.readUint32();return jspb.utils.joinFloat32(e,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinFloat64(e,t)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(e){var t=this.bytes_,r=this.cursor_;e=r+e;for(var o=[],s="";r<e;){var n=t[r++];if(128>n)o.push(n);else{if(192>n)continue;if(224>n){var i=t[r++];o.push((31&n)<<6|63&i)}else if(240>n){i=t[r++];var a=t[r++];o.push((15&n)<<12|(63&i)<<6|63&a)}else if(248>n){n=(7&n)<<18|(63&(i=t[r++]))<<12|(63&(a=t[r++]))<<6|63&t[r++],n-=65536,o.push(55296+(n>>10&1023),56320+(1023&n))}}8192<=o.length&&(s+=String.fromCharCode.apply(null,o),o.length=0)}return s+=goog.crypt.byteArrayToString(o),this.cursor_=r,s},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var e=this.readUnsignedVarint32();return this.readString(e)},jspb.BinaryDecoder.prototype.readBytes=function(e){if(0>e||this.cursor_+e>this.bytes_.length)return this.error_=!0,jspb.asserts.fail("Invalid byte length!"),new Uint8Array(0);var t=this.bytes_.subarray(this.cursor_,this.cursor_+e);return this.cursor_+=e,jspb.asserts.assert(this.cursor_<=this.end_),t},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var e=this.bytes_,t=this.cursor_,r=e[t+0],o=e[t+1],s=e[t+2],n=e[t+3],i=e[t+4],a=e[t+5],u=e[t+6];return e=e[t+7],this.cursor_+=8,String.fromCharCode(r,o,s,n,i,a,u,e)},jspb.BinaryReader=function(e,t,r){this.decoder_=jspb.BinaryDecoder.alloc(e,t,r),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(e,t,r){if(jspb.BinaryReader.instanceCache_.length){var o=jspb.BinaryReader.instanceCache_.pop();return e&&o.decoder_.setBlock(e,t,r),o}return new jspb.BinaryReader(e,t,r)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},goog.exportProperty(jspb.BinaryReader.prototype,"getFieldNumber",jspb.BinaryReader.prototype.getFieldNumber),jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},goog.exportProperty(jspb.BinaryReader.prototype,"isDelimited",jspb.BinaryReader.prototype.isDelimited),jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},goog.exportProperty(jspb.BinaryReader.prototype,"isEndGroup",jspb.BinaryReader.prototype.isEndGroup),jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(e,t,r){this.decoder_.setBlock(e,t,r),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(e){this.decoder_.advance(e)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return jspb.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var e=this.decoder_.readUnsignedVarint32(),t=e>>>3;return(e&=7)!=jspb.BinaryConstants.WireType.VARINT&&e!=jspb.BinaryConstants.WireType.FIXED32&&e!=jspb.BinaryConstants.WireType.FIXED64&&e!=jspb.BinaryConstants.WireType.DELIMITED&&e!=jspb.BinaryConstants.WireType.START_GROUP&&e!=jspb.BinaryConstants.WireType.END_GROUP?(jspb.asserts.fail("Invalid wire type: %s (at position %s)",e,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=t,this.nextWireType_=e,!0)},goog.exportProperty(jspb.BinaryReader.prototype,"nextField",jspb.BinaryReader.prototype.nextField),jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var e=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==e;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(jspb.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)jspb.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var e=this.decoder_.readUnsignedVarint32();this.decoder_.advance(e)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(jspb.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(jspb.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var e=this.nextField_;;){if(!this.nextField()){jspb.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=e&&(jspb.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:jspb.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(e,t){null===this.readCallbacks_&&(this.readCallbacks_={}),jspb.asserts.assert(!this.readCallbacks_[e]),this.readCallbacks_[e]=t},jspb.BinaryReader.prototype.runReadCallback=function(e){return jspb.asserts.assert(null!==this.readCallbacks_),e=this.readCallbacks_[e],jspb.asserts.assert(e),e(this)},jspb.BinaryReader.prototype.readAny=function(e){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(e);var t=jspb.BinaryConstants.FieldType;switch(e){case t.DOUBLE:return this.readDouble();case t.FLOAT:return this.readFloat();case t.INT64:return this.readInt64();case t.UINT64:return this.readUint64();case t.INT32:return this.readInt32();case t.FIXED64:return this.readFixed64();case t.FIXED32:return this.readFixed32();case t.BOOL:return this.readBool();case t.STRING:return this.readString();case t.GROUP:jspb.asserts.fail("Group field type not supported in readAny()");case t.MESSAGE:jspb.asserts.fail("Message field type not supported in readAny()");case t.BYTES:return this.readBytes();case t.UINT32:return this.readUint32();case t.ENUM:return this.readEnum();case t.SFIXED32:return this.readSfixed32();case t.SFIXED64:return this.readSfixed64();case t.SINT32:return this.readSint32();case t.SINT64:return this.readSint64();case t.FHASH64:return this.readFixedHash64();case t.VHASH64:return this.readVarintHash64();default:jspb.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(e,t){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),o=this.decoder_.readUnsignedVarint32();o=this.decoder_.getCursor()+o,this.decoder_.setEnd(o),t(e,this),this.decoder_.setCursor(o),this.decoder_.setEnd(r)},goog.exportProperty(jspb.BinaryReader.prototype,"readMessage",jspb.BinaryReader.prototype.readMessage),jspb.BinaryReader.prototype.readGroup=function(e,t,r){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),jspb.asserts.assert(this.nextField_==e),r(t,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},goog.exportProperty(jspb.BinaryReader.prototype,"readGroup",jspb.BinaryReader.prototype.readGroup),jspb.BinaryReader.prototype.getFieldDecoder=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32(),t=this.decoder_.getCursor(),r=t+e;return e=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),t,e),this.decoder_.setCursor(r),e},jspb.BinaryReader.prototype.readInt32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt32",jspb.BinaryReader.prototype.readInt32),jspb.BinaryReader.prototype.readInt32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt64",jspb.BinaryReader.prototype.readInt64),jspb.BinaryReader.prototype.readInt64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint32",jspb.BinaryReader.prototype.readUint32),jspb.BinaryReader.prototype.readUint32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint64",jspb.BinaryReader.prototype.readUint64),jspb.BinaryReader.prototype.readUint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint32",jspb.BinaryReader.prototype.readSint32),jspb.BinaryReader.prototype.readSint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint64",jspb.BinaryReader.prototype.readSint64),jspb.BinaryReader.prototype.readSint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed32",jspb.BinaryReader.prototype.readFixed32),jspb.BinaryReader.prototype.readFixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed64",jspb.BinaryReader.prototype.readFixed64),jspb.BinaryReader.prototype.readFixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed32",jspb.BinaryReader.prototype.readSfixed32),jspb.BinaryReader.prototype.readSfixed32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed64",jspb.BinaryReader.prototype.readSfixed64),jspb.BinaryReader.prototype.readSfixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},goog.exportProperty(jspb.BinaryReader.prototype,"readFloat",jspb.BinaryReader.prototype.readFloat),jspb.BinaryReader.prototype.readDouble=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},goog.exportProperty(jspb.BinaryReader.prototype,"readDouble",jspb.BinaryReader.prototype.readDouble),jspb.BinaryReader.prototype.readBool=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readBool",jspb.BinaryReader.prototype.readBool),jspb.BinaryReader.prototype.readEnum=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readEnum",jspb.BinaryReader.prototype.readEnum),jspb.BinaryReader.prototype.readString=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(e)},goog.exportProperty(jspb.BinaryReader.prototype,"readString",jspb.BinaryReader.prototype.readString),jspb.BinaryReader.prototype.readBytes=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(e)},goog.exportProperty(jspb.BinaryReader.prototype,"readBytes",jspb.BinaryReader.prototype.readBytes),jspb.BinaryReader.prototype.readVarintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(e){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(e)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(e){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64((function(t,r){return jspb.utils.fromZigzag64(t,r,e)}))},jspb.BinaryReader.prototype.readFixedHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(e){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(e)},jspb.BinaryReader.prototype.readPackedField_=function(e){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();t=this.decoder_.getCursor()+t;for(var r=[];this.decoder_.getCursor()<t;)r.push(e.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt32",jspb.BinaryReader.prototype.readPackedInt32),jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt64",jspb.BinaryReader.prototype.readPackedInt64),jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint32",jspb.BinaryReader.prototype.readPackedUint32),jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint64",jspb.BinaryReader.prototype.readPackedUint64),jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint32",jspb.BinaryReader.prototype.readPackedSint32),jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint64",jspb.BinaryReader.prototype.readPackedSint64),jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed32",jspb.BinaryReader.prototype.readPackedFixed32),jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed64",jspb.BinaryReader.prototype.readPackedFixed64),jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed32",jspb.BinaryReader.prototype.readPackedSfixed32),jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed64",jspb.BinaryReader.prototype.readPackedSfixed64),jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFloat",jspb.BinaryReader.prototype.readPackedFloat),jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedDouble",jspb.BinaryReader.prototype.readPackedDouble),jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedBool",jspb.BinaryReader.prototype.readPackedBool),jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedEnum",jspb.BinaryReader.prototype.readPackedEnum),jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var e=this.buffer_;return this.buffer_=[],e},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(e,t){for(jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(t==Math.floor(t)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);0<t||127<e;)this.buffer_.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(e,t){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(t==Math.floor(t)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(e),this.writeUint32(t)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(e){for(jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);127<e;)this.buffer_.push(127&e|128),e>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(e){if(jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),0<=e)this.writeUnsignedVarint32(e);else{for(var t=0;9>t;t++)this.buffer_.push(127&e|128),e>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((e<<1^e>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(e){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(e){var t=this;jspb.utils.splitHash64(e),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,(function(e,r){t.writeSplitVarint64(e>>>0,r>>>0)}))},jspb.BinaryEncoder.prototype.writeUint8=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&256>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&65536>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(-128<=e&&128>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(-32768<=e&&32768>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(+e>=-jspb.BinaryConstants.TWO_TO_63&&+e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(e){jspb.asserts.assert(e===1/0||e===-1/0||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT32_MAX&&e<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(e),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(e){jspb.asserts.assert(e===1/0||e===-1/0||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT64_MAX&&e<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(e){jspb.asserts.assert("boolean"==typeof e||"number"==typeof e),this.buffer_.push(e?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(e){jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(e)},jspb.BinaryEncoder.prototype.writeBytes=function(e){this.buffer_.push.apply(this.buffer_,e)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(e){jspb.utils.splitHash64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(e){jspb.utils.splitHash64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(e){var t=this.buffer_.length;jspb.asserts.assertString(e);for(var r=0;r<e.length;r++){var o=e.charCodeAt(r);if(128>o)this.buffer_.push(o);else if(2048>o)this.buffer_.push(o>>6|192),this.buffer_.push(63&o|128);else if(65536>o)if(55296<=o&&56319>=o&&r+1<e.length){var s=e.charCodeAt(r+1);56320<=s&&57343>=s&&(o=1024*(o-55296)+s-56320+65536,this.buffer_.push(o>>18|240),this.buffer_.push(o>>12&63|128),this.buffer_.push(o>>6&63|128),this.buffer_.push(63&o|128),r++)}else this.buffer_.push(o>>12|224),this.buffer_.push(o>>6&63|128),this.buffer_.push(63&o|128)}return this.buffer_.length-t},jspb.arith={},jspb.arith.UInt64=function(e,t){this.lo=e,this.hi=t},jspb.arith.UInt64.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return 0==this.lo&&0==this.hi},jspb.arith.UInt64.prototype.add=function(e){return new jspb.arith.UInt64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(e){return new jspb.arith.UInt64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(e,t){var r=65535&e,o=65535&t,s=t>>>16;for(t=r*o+65536*(r*s&65535)+65536*((e>>>=16)*o&65535),r=e*s+(r*s>>>16)+(e*o>>>16);4294967296<=t;)t-=4294967296,r+=1;return new jspb.arith.UInt64(t>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(e){var t=jspb.arith.UInt64.mul32x32(this.lo,e);return(e=jspb.arith.UInt64.mul32x32(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},jspb.arith.UInt64.prototype.div=function(e){if(0==e)return[];var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);e=new jspb.arith.UInt64(e,0);for(var o=new jspb.arith.UInt64(1,0);!e.msb();)e=e.leftShift(),o=o.leftShift();for(;!o.zero();)0>=e.cmp(r)&&(t=t.add(o),r=r.sub(e)),e=e.rightShift(),o=o.rightShift();return[t,r]},jspb.arith.UInt64.prototype.toString=function(){for(var e="",t=this;!t.zero();){var r=(t=t.div(10))[0];e=t[1].lo+e,t=r}return""==e&&(e="0"),e},jspb.arith.UInt64.fromString=function(e){for(var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),o=0;o<e.length;o++){if("0">e[o]||"9"<e[o])return null;var s=parseInt(e[o],10);r.lo=s,t=t.mul(10).add(r)}return t},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(e,t){this.lo=e,this.hi=t},jspb.arith.Int64.prototype.add=function(e){return new jspb.arith.Int64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(e){return new jspb.arith.Int64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var e=!!(2147483648&this.hi),t=new jspb.arith.UInt64(this.lo,this.hi);return e&&(t=new jspb.arith.UInt64(0,0).sub(t)),(e?"-":"")+t.toString()},jspb.arith.Int64.fromString=function(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=jspb.arith.UInt64.fromString(e))?null:(t&&(e=new jspb.arith.UInt64(0,0).sub(e)),new jspb.arith.Int64(e.lo,e.hi))},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(e){var t=this.encoder_.end();this.blocks_.push(t),this.blocks_.push(e),this.totalLength_+=t.length+e.length},jspb.BinaryWriter.prototype.beginDelimited_=function(e){return this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),e=this.encoder_.end(),this.blocks_.push(e),this.totalLength_+=e.length,e.push(this.totalLength_),e},jspb.BinaryWriter.prototype.endDelimited_=function(e){var t=e.pop();for(t=this.totalLength_+this.encoder_.length()-t,jspb.asserts.assert(0<=t);127<t;)e.push(127&t|128),t>>>=7,this.totalLength_++;e.push(t),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(e,t,r){this.appendUint8Array_(e.subarray(t,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(e,t,r){null!=e&&null!=t&&null!=r&&this.writeSerializedMessage(e,t,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){jspb.asserts.assert(0==this.bookmarks_.length);for(var e=new Uint8Array(this.totalLength_+this.encoder_.length()),t=this.blocks_,r=t.length,o=0,s=0;s<r;s++){var n=t[s];e.set(n,o),o+=n.length}return t=this.encoder_.end(),e.set(t,o),o+=t.length,jspb.asserts.assert(o==e.length),this.blocks_=[e],e},goog.exportProperty(jspb.BinaryWriter.prototype,"getResultBuffer",jspb.BinaryWriter.prototype.getResultBuffer),jspb.BinaryWriter.prototype.getResultBase64String=function(e){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),e)},jspb.BinaryWriter.prototype.beginSubMessage=function(e){this.bookmarks_.push(this.beginDelimited_(e))},jspb.BinaryWriter.prototype.endSubMessage=function(){jspb.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(e,t){jspb.asserts.assert(1<=e&&e==Math.floor(e)),this.encoder_.writeUnsignedVarint32(8*e+t)},jspb.BinaryWriter.prototype.writeAny=function(e,t,r){var o=jspb.BinaryConstants.FieldType;switch(e){case o.DOUBLE:this.writeDouble(t,r);break;case o.FLOAT:this.writeFloat(t,r);break;case o.INT64:this.writeInt64(t,r);break;case o.UINT64:this.writeUint64(t,r);break;case o.INT32:this.writeInt32(t,r);break;case o.FIXED64:this.writeFixed64(t,r);break;case o.FIXED32:this.writeFixed32(t,r);break;case o.BOOL:this.writeBool(t,r);break;case o.STRING:this.writeString(t,r);break;case o.GROUP:jspb.asserts.fail("Group field type not supported in writeAny()");break;case o.MESSAGE:jspb.asserts.fail("Message field type not supported in writeAny()");break;case o.BYTES:this.writeBytes(t,r);break;case o.UINT32:this.writeUint32(t,r);break;case o.ENUM:this.writeEnum(t,r);break;case o.SFIXED32:this.writeSfixed32(t,r);break;case o.SFIXED64:this.writeSfixed64(t,r);break;case o.SINT32:this.writeSint32(t,r);break;case o.SINT64:this.writeSint64(t,r);break;case o.FHASH64:this.writeFixedHash64(t,r);break;case o.VHASH64:this.writeVarintHash64(t,r);break;default:jspb.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(t))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(t))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(t))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(t))},jspb.BinaryWriter.prototype.writeInt32=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt32",jspb.BinaryWriter.prototype.writeInt32),jspb.BinaryWriter.prototype.writeInt32String=function(e,t){null!=t&&(t=parseInt(t,10),jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt64=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt64",jspb.BinaryWriter.prototype.writeInt64),jspb.BinaryWriter.prototype.writeInt64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeUint32=function(e,t){null!=t&&(jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint32",jspb.BinaryWriter.prototype.writeUint32),jspb.BinaryWriter.prototype.writeUint32String=function(e,t){null!=t&&(t=parseInt(t,10),jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint64=function(e,t){null!=t&&(jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint64",jspb.BinaryWriter.prototype.writeUint64),jspb.BinaryWriter.prototype.writeUint64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSint32=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint32",jspb.BinaryWriter.prototype.writeSint32),jspb.BinaryWriter.prototype.writeSint64=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(e,t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint64",jspb.BinaryWriter.prototype.writeSint64),jspb.BinaryWriter.prototype.writeSintHash64=function(e,t){null!=t&&this.writeZigzagVarintHash64_(e,t)},jspb.BinaryWriter.prototype.writeSint64String=function(e,t){null!=t&&this.writeZigzagVarint64String_(e,t)},jspb.BinaryWriter.prototype.writeFixed32=function(e,t){null!=t&&(jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed32",jspb.BinaryWriter.prototype.writeFixed32),jspb.BinaryWriter.prototype.writeFixed64=function(e,t){null!=t&&(jspb.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed64",jspb.BinaryWriter.prototype.writeFixed64),jspb.BinaryWriter.prototype.writeFixed64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed32",jspb.BinaryWriter.prototype.writeSfixed32),jspb.BinaryWriter.prototype.writeSfixed64=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed64",jspb.BinaryWriter.prototype.writeSfixed64),jspb.BinaryWriter.prototype.writeSfixed64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeFloat=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFloat",jspb.BinaryWriter.prototype.writeFloat),jspb.BinaryWriter.prototype.writeDouble=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeDouble",jspb.BinaryWriter.prototype.writeDouble),jspb.BinaryWriter.prototype.writeBool=function(e,t){null!=t&&(jspb.asserts.assert("boolean"==typeof t||"number"==typeof t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBool",jspb.BinaryWriter.prototype.writeBool),jspb.BinaryWriter.prototype.writeEnum=function(e,t){null!=t&&(jspb.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeEnum",jspb.BinaryWriter.prototype.writeEnum),jspb.BinaryWriter.prototype.writeString=function(e,t){null!=t&&(e=this.beginDelimited_(e),this.encoder_.writeString(t),this.endDelimited_(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeString",jspb.BinaryWriter.prototype.writeString),jspb.BinaryWriter.prototype.writeBytes=function(e,t){null!=t&&(t=jspb.utils.byteSourceToUint8Array(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),this.appendUint8Array_(t))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBytes",jspb.BinaryWriter.prototype.writeBytes),jspb.BinaryWriter.prototype.writeMessage=function(e,t,r){null!=t&&(e=this.beginDelimited_(e),r(t,this),this.endDelimited_(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeMessage",jspb.BinaryWriter.prototype.writeMessage),jspb.BinaryWriter.prototype.writeMessageSet=function(e,t,r){null!=t&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e),e=this.beginDelimited_(3),r(t,this),this.endDelimited_(e),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(e,t,r){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t,this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeGroup",jspb.BinaryWriter.prototype.writeGroup),jspb.BinaryWriter.prototype.writeFixedHash64=function(e,t){null!=t&&(jspb.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(t))},jspb.BinaryWriter.prototype.writeVarintHash64=function(e,t){null!=t&&(jspb.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(t))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT);var o=this.encoder_;jspb.utils.toZigzag64(t,r,(function(e,t){o.writeSplitVarint64(e>>>0,t>>>0)}))},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSignedVarint32_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt32",jspb.BinaryWriter.prototype.writeRepeatedInt32),jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeInt32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSignedVarint64_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt64",jspb.BinaryWriter.prototype.writeRepeatedInt64),jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(e,t,r,o){if(null!=t)for(var s=0;s<t.length;s++)this.writeSplitFixed64(e,r(t[s]),o(t[s]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(e,t,r,o){if(null!=t)for(var s=0;s<t.length;s++)this.writeSplitVarint64(e,r(t[s]),o(t[s]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(e,t,r,o){if(null!=t)for(var s=0;s<t.length;s++)this.writeSplitZigzagVarint64(e,r(t[s]),o(t[s]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeInt64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUnsignedVarint32_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint32",jspb.BinaryWriter.prototype.writeRepeatedUint32),jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUint32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUnsignedVarint64_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint64",jspb.BinaryWriter.prototype.writeRepeatedUint64),jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUint64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint32_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint32",jspb.BinaryWriter.prototype.writeRepeatedSint32),jspb.BinaryWriter.prototype.writeRepeatedSint64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint64_(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint64",jspb.BinaryWriter.prototype.writeRepeatedSint64),jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint64String_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarintHash64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed32(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed32",jspb.BinaryWriter.prototype.writeRepeatedFixed32),jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed64(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64",jspb.BinaryWriter.prototype.writeRepeatedFixed64),jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed64String(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64String",jspb.BinaryWriter.prototype.writeRepeatedFixed64String),jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed32(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed32",jspb.BinaryWriter.prototype.writeRepeatedSfixed32),jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed64(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed64",jspb.BinaryWriter.prototype.writeRepeatedSfixed64),jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFloat(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFloat",jspb.BinaryWriter.prototype.writeRepeatedFloat),jspb.BinaryWriter.prototype.writeRepeatedDouble=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeDouble(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedDouble",jspb.BinaryWriter.prototype.writeRepeatedDouble),jspb.BinaryWriter.prototype.writeRepeatedBool=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeBool(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBool",jspb.BinaryWriter.prototype.writeRepeatedBool),jspb.BinaryWriter.prototype.writeRepeatedEnum=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeEnum(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedEnum",jspb.BinaryWriter.prototype.writeRepeatedEnum),jspb.BinaryWriter.prototype.writeRepeatedString=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeString(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedString",jspb.BinaryWriter.prototype.writeRepeatedString),jspb.BinaryWriter.prototype.writeRepeatedBytes=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeBytes(e,t[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBytes",jspb.BinaryWriter.prototype.writeRepeatedBytes),jspb.BinaryWriter.prototype.writeRepeatedMessage=function(e,t,r){if(null!=t)for(var o=0;o<t.length;o++){var s=this.beginDelimited_(e);r(t[o],this),this.endDelimited_(s)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedMessage",jspb.BinaryWriter.prototype.writeRepeatedMessage),jspb.BinaryWriter.prototype.writeRepeatedGroup=function(e,t,r){if(null!=t)for(var o=0;o<t.length;o++)this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t[o],this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP)},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedGroup",jspb.BinaryWriter.prototype.writeRepeatedGroup),jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixedHash64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeVarintHash64(e,t[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt32",jspb.BinaryWriter.prototype.writePackedInt32),jspb.BinaryWriter.prototype.writePackedInt32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint64(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt64",jspb.BinaryWriter.prototype.writePackedInt64),jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var s=0;s<t.length;s++)this.encoder_.writeSplitFixed64(r(t[s]),o(t[s]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var s=0;s<t.length;s++)this.encoder_.writeSplitVarint64(r(t[s]),o(t[s]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var s=this.encoder_,n=0;n<t.length;n++)jspb.utils.toZigzag64(r(t[n]),o(t[n]),(function(e,t){s.writeSplitVarint64(e>>>0,t>>>0)}));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var o=jspb.arith.Int64.fromString(t[r]);this.encoder_.writeSplitVarint64(o.lo,o.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint32",jspb.BinaryWriter.prototype.writePackedUint32),jspb.BinaryWriter.prototype.writePackedUint32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint64(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint64",jspb.BinaryWriter.prototype.writePackedUint64),jspb.BinaryWriter.prototype.writePackedUint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var o=jspb.arith.UInt64.fromString(t[r]);this.encoder_.writeSplitVarint64(o.lo,o.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint32(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint32",jspb.BinaryWriter.prototype.writePackedSint32),jspb.BinaryWriter.prototype.writePackedSint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint64(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint64",jspb.BinaryWriter.prototype.writePackedSint64),jspb.BinaryWriter.prototype.writePackedSint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t[r]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeUint32(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed32",jspb.BinaryWriter.prototype.writePackedFixed32),jspb.BinaryWriter.prototype.writePackedFixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeUint64(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed64",jspb.BinaryWriter.prototype.writePackedFixed64),jspb.BinaryWriter.prototype.writePackedFixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++){var r=jspb.arith.UInt64.fromString(t[e]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeInt32(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed32",jspb.BinaryWriter.prototype.writePackedSfixed32),jspb.BinaryWriter.prototype.writePackedSfixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed64",jspb.BinaryWriter.prototype.writePackedSfixed64),jspb.BinaryWriter.prototype.writePackedSfixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64String(t[e])},jspb.BinaryWriter.prototype.writePackedFloat=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeFloat(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFloat",jspb.BinaryWriter.prototype.writePackedFloat),jspb.BinaryWriter.prototype.writePackedDouble=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeDouble(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedDouble",jspb.BinaryWriter.prototype.writePackedDouble),jspb.BinaryWriter.prototype.writePackedBool=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),e=0;e<t.length;e++)this.encoder_.writeBool(t[e])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedBool",jspb.BinaryWriter.prototype.writePackedBool),jspb.BinaryWriter.prototype.writePackedEnum=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeEnum(t[r]);this.endDelimited_(e)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedEnum",jspb.BinaryWriter.prototype.writePackedEnum),jspb.BinaryWriter.prototype.writePackedFixedHash64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeFixedHash64(t[e])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeVarintHash64(t[r]);this.endDelimited_(e)}},jspb.Map=function(e,t){this.arr_=e,this.valueCtor_=t,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},goog.exportSymbol("jspb.Map",jspb.Map),jspb.Map.prototype.loadFromArray_=function(){for(var e=0;e<this.arr_.length;e++){var t=this.arr_[e],r=t[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,t[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var e,t=this.map_;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,(t=this.stringKeys_()).sort(),e=0;e<t.length;e++){var o=this.map_[t[e]];(r=o.valueWrapper)&&r.toArray(),this.arr_.push([o.key,o.value])}this.arrClean=!0}return this.arr_},goog.exportProperty(jspb.Map.prototype,"toArray",jspb.Map.prototype.toArray),jspb.Map.prototype.toObject=function(e,t){for(var r=this.toArray(),o=[],s=0;s<r.length;s++){var n=this.map_[r[s][0].toString()];this.wrapEntry_(n);var i=n.valueWrapper;i?(jspb.asserts.assert(t),o.push([n.key,t(e,i)])):o.push([n.key,n.value])}return o},goog.exportProperty(jspb.Map.prototype,"toObject",jspb.Map.prototype.toObject),jspb.Map.fromObject=function(e,t,r){t=new jspb.Map([],t);for(var o=0;o<e.length;o++){var s=e[o][0],n=r(e[o][1]);t.set(s,n)}return t},goog.exportProperty(jspb.Map,"fromObject",jspb.Map.fromObject),jspb.Map.ArrayIteratorIterable_=function(e){this.idx_=0,this.arr_=e},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},goog.exportProperty(jspb.Map.prototype,"getLength",jspb.Map.prototype.getLength),jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},goog.exportProperty(jspb.Map.prototype,"clear",jspb.Map.prototype.clear),jspb.Map.prototype.del=function(e){e=e.toString();var t=this.map_.hasOwnProperty(e);return delete this.map_[e],this.arrClean=!1,t},goog.exportProperty(jspb.Map.prototype,"del",jspb.Map.prototype.del),jspb.Map.prototype.getEntryList=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var o=this.map_[t[r]];e.push([o.key,o.value])}return e},goog.exportProperty(jspb.Map.prototype,"getEntryList",jspb.Map.prototype.getEntryList),jspb.Map.prototype.entries=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var o=this.map_[t[r]];e.push([o.key,this.wrapEntry_(o)])}return new jspb.Map.ArrayIteratorIterable_(e)},goog.exportProperty(jspb.Map.prototype,"entries",jspb.Map.prototype.entries),jspb.Map.prototype.keys=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.map_[t[r]].key);return new jspb.Map.ArrayIteratorIterable_(e)},goog.exportProperty(jspb.Map.prototype,"keys",jspb.Map.prototype.keys),jspb.Map.prototype.values=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.wrapEntry_(this.map_[t[r]]));return new jspb.Map.ArrayIteratorIterable_(e)},goog.exportProperty(jspb.Map.prototype,"values",jspb.Map.prototype.values),jspb.Map.prototype.forEach=function(e,t){var r=this.stringKeys_();r.sort();for(var o=0;o<r.length;o++){var s=this.map_[r[o]];e.call(t,this.wrapEntry_(s),s.key,this)}},goog.exportProperty(jspb.Map.prototype,"forEach",jspb.Map.prototype.forEach),jspb.Map.prototype.set=function(e,t){var r=new jspb.Map.Entry_(e);return this.valueCtor_?(r.valueWrapper=t,r.value=t.toArray()):r.value=t,this.map_[e.toString()]=r,this.arrClean=!1,this},goog.exportProperty(jspb.Map.prototype,"set",jspb.Map.prototype.set),jspb.Map.prototype.wrapEntry_=function(e){return this.valueCtor_?(e.valueWrapper||(e.valueWrapper=new this.valueCtor_(e.value)),e.valueWrapper):e.value},jspb.Map.prototype.get=function(e){if(e=this.map_[e.toString()])return this.wrapEntry_(e)},goog.exportProperty(jspb.Map.prototype,"get",jspb.Map.prototype.get),jspb.Map.prototype.has=function(e){return e.toString()in this.map_},goog.exportProperty(jspb.Map.prototype,"has",jspb.Map.prototype.has),jspb.Map.prototype.serializeBinary=function(e,t,r,o,s){var n=this.stringKeys_();n.sort();for(var i=0;i<n.length;i++){var a=this.map_[n[i]];t.beginSubMessage(e),r.call(t,1,a.key),this.valueCtor_?o.call(t,2,this.wrapEntry_(a),s):o.call(t,2,a.value),t.endSubMessage()}},goog.exportProperty(jspb.Map.prototype,"serializeBinary",jspb.Map.prototype.serializeBinary),jspb.Map.deserializeBinary=function(e,t,r,o,s,n,i){for(;t.nextField()&&!t.isEndGroup();){var a=t.getFieldNumber();1==a?n=r.call(t):2==a&&(e.valueCtor_?(jspb.asserts.assert(s),i||(i=new e.valueCtor_),o.call(t,i,s)):i=o.call(t))}jspb.asserts.assert(null!=n),jspb.asserts.assert(null!=i),e.set(n,i)},goog.exportProperty(jspb.Map,"deserializeBinary",jspb.Map.deserializeBinary),jspb.Map.prototype.stringKeys_=function(){var e,t=this.map_,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r},jspb.Map.Entry_=function(e,t){this.key=e,this.value=t,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(e,t,r,o,s){this.fieldIndex=e,this.fieldName=t,this.ctor=r,this.toObjectFn=o,this.isRepeated=s},goog.exportSymbol("jspb.ExtensionFieldInfo",jspb.ExtensionFieldInfo),jspb.ExtensionFieldBinaryInfo=function(e,t,r,o,s,n){this.fieldInfo=e,this.binaryReaderFn=t,this.binaryWriterFn=r,this.binaryMessageSerializeFn=o,this.binaryMessageDeserializeFn=s,this.isPacked=n},goog.exportSymbol("jspb.ExtensionFieldBinaryInfo",jspb.ExtensionFieldBinaryInfo),jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},goog.exportProperty(jspb.ExtensionFieldInfo.prototype,"isMessageType",jspb.ExtensionFieldInfo.prototype.isMessageType),jspb.Message=function(){},goog.exportSymbol("jspb.Message",jspb.Message),jspb.Message.GENERATE_TO_OBJECT=!0,goog.exportProperty(jspb.Message,"GENERATE_TO_OBJECT",jspb.Message.GENERATE_TO_OBJECT),jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,goog.exportProperty(jspb.Message,"GENERATE_FROM_OBJECT",jspb.Message.GENERATE_FROM_OBJECT),jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_="function"==typeof Uint8Array,jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},goog.exportProperty(jspb.Message.prototype,"getJsPbMessageId",jspb.Message.prototype.getJsPbMessageId),jspb.Message.getIndex_=function(e,t){return t+e.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(e,t){return t-e.arrayIndexOffset_},jspb.Message.initialize=function(e,t,r,o,s,n){if(e.wrappers_=null,t||(t=r?[r]:[]),e.messageId_=r?String(r):void 0,e.arrayIndexOffset_=0===r?-1:0,e.array=t,jspb.Message.initPivotAndExtensionObject_(e,o),e.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(e.repeatedFields=s),s)for(t=0;t<s.length;t++)(r=s[t])<e.pivot_?(r=jspb.Message.getIndex_(e,r),e.array[r]=e.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[r]=e.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(n&&n.length)for(t=0;t<n.length;t++)jspb.Message.computeOneofCase(e,n[t])},goog.exportProperty(jspb.Message,"initialize",jspb.Message.initialize),jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(e){return jspb.Message.ASSUME_LOCAL_ARRAYS?e instanceof Array:Array.isArray(e)},jspb.Message.isExtensionObject_=function(e){return!(null===e||"object"!=typeof e||jspb.Message.isArray_(e)||jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(e,t){var r=e.array.length,o=-1;if(r&&(o=r-1,r=e.array[o],jspb.Message.isExtensionObject_(r)))return e.pivot_=jspb.Message.getFieldNumber_(e,o),void(e.extensionObject_=r);-1<t?(e.pivot_=Math.max(t,jspb.Message.getFieldNumber_(e,o+1)),e.extensionObject_=null):e.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(e){var t=jspb.Message.getIndex_(e,e.pivot_);e.array[t]||(e.extensionObject_=e.array[t]={})},jspb.Message.toObjectList=function(e,t,r){for(var o=[],s=0;s<e.length;s++)o[s]=t.call(e[s],r,e[s]);return o},goog.exportProperty(jspb.Message,"toObjectList",jspb.Message.toObjectList),jspb.Message.toObjectExtension=function(e,t,r,o,s){for(var n in r){var i=r[n],a=o.call(e,i);if(null!=a){for(var u in i.fieldName)if(i.fieldName.hasOwnProperty(u))break;t[u]=i.toObjectFn?i.isRepeated?jspb.Message.toObjectList(a,i.toObjectFn,s):i.toObjectFn(s,a):a}}},goog.exportProperty(jspb.Message,"toObjectExtension",jspb.Message.toObjectExtension),jspb.Message.serializeBinaryExtensions=function(e,t,r,o){for(var s in r){var n=r[s],i=n.fieldInfo;if(!n.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var a=o.call(e,i);if(null!=a)if(i.isMessageType()){if(!n.binaryMessageSerializeFn)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");n.binaryWriterFn.call(t,i.fieldIndex,a,n.binaryMessageSerializeFn)}else n.binaryWriterFn.call(t,i.fieldIndex,a)}},goog.exportProperty(jspb.Message,"serializeBinaryExtensions",jspb.Message.serializeBinaryExtensions),jspb.Message.readBinaryExtension=function(e,t,r,o,s){var n=r[t.getFieldNumber()];if(n){if(r=n.fieldInfo,!n.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var i=new r.ctor;n.binaryReaderFn.call(t,i,n.binaryMessageDeserializeFn)}else i=n.binaryReaderFn.call(t);r.isRepeated&&!n.isPacked?(t=o.call(e,r))?t.push(i):s.call(e,r,[i]):s.call(e,r,i)}else t.skipField()},goog.exportProperty(jspb.Message,"readBinaryExtension",jspb.Message.readBinaryExtension),jspb.Message.getField=function(e,t){if(t<e.pivot_){t=jspb.Message.getIndex_(e,t);var r=e.array[t];return r===jspb.Message.EMPTY_LIST_SENTINEL_?e.array[t]=[]:r}if(e.extensionObject_)return(r=e.extensionObject_[t])===jspb.Message.EMPTY_LIST_SENTINEL_?e.extensionObject_[t]=[]:r},goog.exportProperty(jspb.Message,"getField",jspb.Message.getField),jspb.Message.getRepeatedField=function(e,t){return jspb.Message.getField(e,t)},goog.exportProperty(jspb.Message,"getRepeatedField",jspb.Message.getRepeatedField),jspb.Message.getOptionalFloatingPointField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:+e},goog.exportProperty(jspb.Message,"getOptionalFloatingPointField",jspb.Message.getOptionalFloatingPointField),jspb.Message.getBooleanField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:!!e},goog.exportProperty(jspb.Message,"getBooleanField",jspb.Message.getBooleanField),jspb.Message.getRepeatedFloatingPointField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var o=0;o<r.length;o++)r[o]=+r[o];e.convertedPrimitiveFields_[t]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedFloatingPointField",jspb.Message.getRepeatedFloatingPointField),jspb.Message.getRepeatedBooleanField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var o=0;o<r.length;o++)r[o]=!!r[o];e.convertedPrimitiveFields_[t]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedBooleanField",jspb.Message.getRepeatedBooleanField),jspb.Message.bytesAsB64=function(e){return null==e||"string"==typeof e?e:jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array?goog.crypt.base64.encodeByteArray(e):(jspb.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(e)),null)},goog.exportProperty(jspb.Message,"bytesAsB64",jspb.Message.bytesAsB64),jspb.Message.bytesAsU8=function(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?goog.crypt.base64.decodeStringToUint8Array(e):(jspb.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(e)),null)},goog.exportProperty(jspb.Message,"bytesAsU8",jspb.Message.bytesAsU8),jspb.Message.bytesListAsB64=function(e){return jspb.Message.assertConsistentTypes_(e),e.length&&"string"!=typeof e[0]?goog.array.map(e,jspb.Message.bytesAsB64):e},goog.exportProperty(jspb.Message,"bytesListAsB64",jspb.Message.bytesListAsB64),jspb.Message.bytesListAsU8=function(e){return jspb.Message.assertConsistentTypes_(e),!e.length||e[0]instanceof Uint8Array?e:goog.array.map(e,jspb.Message.bytesAsU8)},goog.exportProperty(jspb.Message,"bytesListAsU8",jspb.Message.bytesListAsU8),jspb.Message.assertConsistentTypes_=function(e){if(goog.DEBUG&&e&&1<e.length){var t=goog.typeOf(e[0]);goog.array.forEach(e,(function(e){goog.typeOf(e)!=t&&jspb.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(e)+" expected "+t)}))}},jspb.Message.getFieldWithDefault=function(e,t,r){return(e=jspb.Message.getField(e,t))??r},goog.exportProperty(jspb.Message,"getFieldWithDefault",jspb.Message.getFieldWithDefault),jspb.Message.getBooleanFieldWithDefault=function(e,t,r){return(e=jspb.Message.getBooleanField(e,t))??r},goog.exportProperty(jspb.Message,"getBooleanFieldWithDefault",jspb.Message.getBooleanFieldWithDefault),jspb.Message.getFloatingPointFieldWithDefault=function(e,t,r){return(e=jspb.Message.getOptionalFloatingPointField(e,t))??r},goog.exportProperty(jspb.Message,"getFloatingPointFieldWithDefault",jspb.Message.getFloatingPointFieldWithDefault),jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,goog.exportProperty(jspb.Message,"getFieldProto3",jspb.Message.getFieldProto3),jspb.Message.getMapField=function(e,t,r,o){if(e.wrappers_||(e.wrappers_={}),t in e.wrappers_)return e.wrappers_[t];var s=jspb.Message.getField(e,t);if(!s){if(r)return;s=[],jspb.Message.setField(e,t,s)}return e.wrappers_[t]=new jspb.Map(s,o)},goog.exportProperty(jspb.Message,"getMapField",jspb.Message.getMapField),jspb.Message.setField=function(e,t,r){return jspb.asserts.assertInstanceof(e,jspb.Message),t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[t]=r),e},goog.exportProperty(jspb.Message,"setField",jspb.Message.setField),jspb.Message.setProto3IntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},goog.exportProperty(jspb.Message,"setProto3IntField",jspb.Message.setProto3IntField),jspb.Message.setProto3FloatField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},goog.exportProperty(jspb.Message,"setProto3FloatField",jspb.Message.setProto3FloatField),jspb.Message.setProto3BooleanField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,!1)},goog.exportProperty(jspb.Message,"setProto3BooleanField",jspb.Message.setProto3BooleanField),jspb.Message.setProto3StringField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},goog.exportProperty(jspb.Message,"setProto3StringField",jspb.Message.setProto3StringField),jspb.Message.setProto3BytesField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},goog.exportProperty(jspb.Message,"setProto3BytesField",jspb.Message.setProto3BytesField),jspb.Message.setProto3EnumField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},goog.exportProperty(jspb.Message,"setProto3EnumField",jspb.Message.setProto3EnumField),jspb.Message.setProto3StringIntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"0")},goog.exportProperty(jspb.Message,"setProto3StringIntField",jspb.Message.setProto3StringIntField),jspb.Message.setFieldIgnoringDefault_=function(e,t,r,o){return jspb.asserts.assertInstanceof(e,jspb.Message),r!==o?jspb.Message.setField(e,t,r):t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(e),delete e.extensionObject_[t]),e},jspb.Message.addToRepeatedField=function(e,t,r,o){return jspb.asserts.assertInstanceof(e,jspb.Message),t=jspb.Message.getRepeatedField(e,t),null!=o?t.splice(o,0,r):t.push(r),e},goog.exportProperty(jspb.Message,"addToRepeatedField",jspb.Message.addToRepeatedField),jspb.Message.setOneofField=function(e,t,r,o){return jspb.asserts.assertInstanceof(e,jspb.Message),(r=jspb.Message.computeOneofCase(e,r))&&r!==t&&void 0!==o&&(e.wrappers_&&r in e.wrappers_&&(e.wrappers_[r]=void 0),jspb.Message.setField(e,r,void 0)),jspb.Message.setField(e,t,o)},goog.exportProperty(jspb.Message,"setOneofField",jspb.Message.setOneofField),jspb.Message.computeOneofCase=function(e,t){for(var r,o,s=0;s<t.length;s++){var n=t[s],i=jspb.Message.getField(e,n);null!=i&&(r=n,o=i,jspb.Message.setField(e,n,void 0))}return r?(jspb.Message.setField(e,r,o),r):0},goog.exportProperty(jspb.Message,"computeOneofCase",jspb.Message.computeOneofCase),jspb.Message.getWrapperField=function(e,t,r,o){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){var s=jspb.Message.getField(e,r);(o||s)&&(e.wrappers_[r]=new t(s))}return e.wrappers_[r]},goog.exportProperty(jspb.Message,"getWrapperField",jspb.Message.getWrapperField),jspb.Message.getRepeatedWrapperField=function(e,t,r){return jspb.Message.wrapRepeatedField_(e,t,r),(t=e.wrappers_[r])==jspb.Message.EMPTY_LIST_SENTINEL_&&(t=e.wrappers_[r]=[]),t},goog.exportProperty(jspb.Message,"getRepeatedWrapperField",jspb.Message.getRepeatedWrapperField),jspb.Message.wrapRepeatedField_=function(e,t,r){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){for(var o=jspb.Message.getRepeatedField(e,r),s=[],n=0;n<o.length;n++)s[n]=new t(o[n]);e.wrappers_[r]=s}},jspb.Message.setWrapperField=function(e,t,r){jspb.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var o=r&&r.toArray();return e.wrappers_[t]=r,jspb.Message.setField(e,t,o)},goog.exportProperty(jspb.Message,"setWrapperField",jspb.Message.setWrapperField),jspb.Message.setOneofWrapperField=function(e,t,r,o){jspb.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var s=o&&o.toArray();return e.wrappers_[t]=o,jspb.Message.setOneofField(e,t,r,s)},goog.exportProperty(jspb.Message,"setOneofWrapperField",jspb.Message.setOneofWrapperField),jspb.Message.setRepeatedWrapperField=function(e,t,r){jspb.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={}),r=r||[];for(var o=[],s=0;s<r.length;s++)o[s]=r[s].toArray();return e.wrappers_[t]=r,jspb.Message.setField(e,t,o)},goog.exportProperty(jspb.Message,"setRepeatedWrapperField",jspb.Message.setRepeatedWrapperField),jspb.Message.addToRepeatedWrapperField=function(e,t,r,o,s){jspb.Message.wrapRepeatedField_(e,o,t);var n=e.wrappers_[t];return n||(n=e.wrappers_[t]=[]),r=r||new o,e=jspb.Message.getRepeatedField(e,t),null!=s?(n.splice(s,0,r),e.splice(s,0,r.toArray())):(n.push(r),e.push(r.toArray())),r},goog.exportProperty(jspb.Message,"addToRepeatedWrapperField",jspb.Message.addToRepeatedWrapperField),jspb.Message.toMap=function(e,t,r,o){for(var s={},n=0;n<e.length;n++)s[t.call(e[n])]=r?r.call(e[n],o,e[n]):e[n];return s},goog.exportProperty(jspb.Message,"toMap",jspb.Message.toMap),jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var e in this.wrappers_){var t=this.wrappers_[e];if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&t[r].toArray();else t&&t.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},goog.exportProperty(jspb.Message.prototype,"toArray",jspb.Message.prototype.toArray),jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(e){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var t=e.fieldIndex;if(e.isRepeated){if(e.isMessageType())return this.wrappers_[t]||(this.wrappers_[t]=goog.array.map(this.extensionObject_[t]||[],(function(t){return new e.ctor(t)}))),this.wrappers_[t]}else if(e.isMessageType())return!this.wrappers_[t]&&this.extensionObject_[t]&&(this.wrappers_[t]=new e.ctor(this.extensionObject_[t])),this.wrappers_[t];return this.extensionObject_[t]}},goog.exportProperty(jspb.Message.prototype,"getExtension",jspb.Message.prototype.getExtension),jspb.Message.prototype.setExtension=function(e,t){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=e.fieldIndex;return e.isRepeated?(t=t||[],e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=goog.array.map(t,(function(e){return e.toArray()}))):this.extensionObject_[r]=t):e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=t&&t.toArray()):this.extensionObject_[r]=t,this},goog.exportProperty(jspb.Message.prototype,"setExtension",jspb.Message.prototype.setExtension),jspb.Message.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.toArray();t=t.toArray();var o=[],s=0,n=r.length>t.length?r.length:t.length;for(e.getJsPbMessageId()&&(o[0]=e.getJsPbMessageId(),s=1);s<n;s++)jspb.Message.compareFields(r[s],t[s])||(o[s]=t[s]);return new e.constructor(o)},goog.exportProperty(jspb.Message,"difference",jspb.Message.difference),jspb.Message.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&jspb.Message.compareFields(e.toArray(),t.toArray())},goog.exportProperty(jspb.Message,"equals",jspb.Message.equals),jspb.Message.compareExtensions=function(e,t){e=e||{},t=t||{};var r,o={};for(r in e)o[r]=0;for(r in t)o[r]=0;for(r in o)if(!jspb.Message.compareFields(e[r],t[r]))return!1;return!0},goog.exportProperty(jspb.Message,"compareExtensions",jspb.Message.compareExtensions),jspb.Message.compareFields=function(e,t){if(e==t)return!0;if(!goog.isObject(e)||!goog.isObject(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}if(e.constructor===Array){var o=void 0,s=void 0,n=Math.max(e.length,t.length);for(r=0;r<n;r++){var i=e[r],a=t[r];if(i&&i.constructor==Object&&(jspb.asserts.assert(void 0===o),jspb.asserts.assert(r===e.length-1),o=i,i=void 0),a&&a.constructor==Object&&(jspb.asserts.assert(void 0===s),jspb.asserts.assert(r===t.length-1),s=a,a=void 0),!jspb.Message.compareFields(i,a))return!1}return!o&&!s||(o=o||{},s=s||{},jspb.Message.compareExtensions(o,s))}if(e.constructor===Object)return jspb.Message.compareExtensions(e,t);throw Error("Invalid type in JSPB array")},goog.exportProperty(jspb.Message,"compareFields",jspb.Message.compareFields),jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"cloneMessage",jspb.Message.prototype.cloneMessage),jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"clone",jspb.Message.prototype.clone),jspb.Message.clone=function(e){return jspb.Message.cloneMessage(e)},goog.exportProperty(jspb.Message,"clone",jspb.Message.clone),jspb.Message.cloneMessage=function(e){return new e.constructor(jspb.Message.clone_(e.toArray()))},jspb.Message.copyInto=function(e,t){jspb.asserts.assertInstanceof(e,jspb.Message),jspb.asserts.assertInstanceof(t,jspb.Message),jspb.asserts.assert(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=jspb.Message.clone(e);for(var r=t.toArray(),o=e.toArray(),s=r.length=0;s<o.length;s++)r[s]=o[s];t.wrappers_=e.wrappers_,t.extensionObject_=e.extensionObject_},goog.exportProperty(jspb.Message,"copyInto",jspb.Message.copyInto),jspb.Message.clone_=function(e){if(Array.isArray(e)){for(var t=Array(e.length),r=0;r<e.length;r++){var o=e[r];null!=o&&(t[r]="object"==typeof o?jspb.Message.clone_(jspb.asserts.assert(o)):o)}return t}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)return new Uint8Array(e);for(r in t={},e)null!=(o=e[r])&&(t[r]="object"==typeof o?jspb.Message.clone_(jspb.asserts.assert(o)):o);return t},jspb.Message.registerMessageType=function(e,t){t.messageId=e},goog.exportProperty(jspb.Message,"registerMessageType",jspb.Message.registerMessageType),jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.Export={},exports.Map=jspb.Map,exports.Message=jspb.Message,exports.BinaryReader=jspb.BinaryReader,exports.BinaryWriter=jspb.BinaryWriter,exports.ExtensionFieldInfo=jspb.ExtensionFieldInfo,exports.ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exports.exportSymbol=goog.exportSymbol,exports.inherits=goog.inherits,exports.object={extend:goog.object.extend},exports.typeOf=goog.typeOf}(googleProtobuf)),googleProtobuf}var common_pb={},hasRequiredCommon_pb,hasRequiredCacheclient_pb,hasRequiredCacheclientServiceClientPb;function requireCommon_pb(){return hasRequiredCommon_pb||(hasRequiredCommon_pb=1,e=common_pb,t=requireGoogleProtobuf(),o={},(r=t).exportSymbol("Absent",null,o),r.exportSymbol("AbsentOrEqual",null,o),r.exportSymbol("AbsentOrHashEqual",null,o),r.exportSymbol("AbsentOrNotHashEqual",null,o),r.exportSymbol("Equal",null,o),r.exportSymbol("NotEqual",null,o),r.exportSymbol("Present",null,o),r.exportSymbol("PresentAndHashEqual",null,o),r.exportSymbol("PresentAndNotEqual",null,o),r.exportSymbol("PresentAndNotHashEqual",null,o),r.exportSymbol("Unconditional",null,o),r.exportSymbol("_Empty",null,o),r.exportSymbol("_Unbounded",null,o),o.Present=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.Present,t.Message),r.DEBUG&&!COMPILED&&(o.Present.displayName="proto.Present"),o.PresentAndNotEqual=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.PresentAndNotEqual,t.Message),r.DEBUG&&!COMPILED&&(o.PresentAndNotEqual.displayName="proto.PresentAndNotEqual"),o.Absent=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.Absent,t.Message),r.DEBUG&&!COMPILED&&(o.Absent.displayName="proto.Absent"),o.Equal=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.Equal,t.Message),r.DEBUG&&!COMPILED&&(o.Equal.displayName="proto.Equal"),o.AbsentOrEqual=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.AbsentOrEqual,t.Message),r.DEBUG&&!COMPILED&&(o.AbsentOrEqual.displayName="proto.AbsentOrEqual"),o.NotEqual=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.NotEqual,t.Message),r.DEBUG&&!COMPILED&&(o.NotEqual.displayName="proto.NotEqual"),o._Unbounded=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Unbounded,t.Message),r.DEBUG&&!COMPILED&&(o._Unbounded.displayName="proto._Unbounded"),o._Empty=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Empty,t.Message),r.DEBUG&&!COMPILED&&(o._Empty.displayName="proto._Empty"),o.PresentAndNotHashEqual=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.PresentAndNotHashEqual,t.Message),r.DEBUG&&!COMPILED&&(o.PresentAndNotHashEqual.displayName="proto.PresentAndNotHashEqual"),o.PresentAndHashEqual=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.PresentAndHashEqual,t.Message),r.DEBUG&&!COMPILED&&(o.PresentAndHashEqual.displayName="proto.PresentAndHashEqual"),o.AbsentOrHashEqual=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.AbsentOrHashEqual,t.Message),r.DEBUG&&!COMPILED&&(o.AbsentOrHashEqual.displayName="proto.AbsentOrHashEqual"),o.AbsentOrNotHashEqual=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.AbsentOrNotHashEqual,t.Message),r.DEBUG&&!COMPILED&&(o.AbsentOrNotHashEqual.displayName="proto.AbsentOrNotHashEqual"),o.Unconditional=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.Unconditional,t.Message),r.DEBUG&&!COMPILED&&(o.Unconditional.displayName="proto.Unconditional"),t.Message.GENERATE_TO_OBJECT&&(o.Present.prototype.toObject=function(e){return o.Present.toObject(e,this)},o.Present.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o.Present.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Present;return o.Present.deserializeBinaryFromReader(s,r)},o.Present.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o.Present.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Present.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Present.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o.PresentAndNotEqual.prototype.toObject=function(e){return o.PresentAndNotEqual.toObject(e,this)},o.PresentAndNotEqual.toObject=function(e,t){var r={valueToCheck:t.getValueToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.PresentAndNotEqual.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PresentAndNotEqual;return o.PresentAndNotEqual.deserializeBinaryFromReader(s,r)},o.PresentAndNotEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setValueToCheck(r)}else t.skipField();return e},o.PresentAndNotEqual.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PresentAndNotEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PresentAndNotEqual.serializeBinaryToWriter=function(e,t){var r;(r=e.getValueToCheck_asU8()).length>0&&t.writeBytes(1,r)},o.PresentAndNotEqual.prototype.getValueToCheck=function(){return t.Message.getFieldWithDefault(this,1,"")},o.PresentAndNotEqual.prototype.getValueToCheck_asB64=function(){return t.Message.bytesAsB64(this.getValueToCheck())},o.PresentAndNotEqual.prototype.getValueToCheck_asU8=function(){return t.Message.bytesAsU8(this.getValueToCheck())},o.PresentAndNotEqual.prototype.setValueToCheck=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o.Absent.prototype.toObject=function(e){return o.Absent.toObject(e,this)},o.Absent.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o.Absent.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Absent;return o.Absent.deserializeBinaryFromReader(s,r)},o.Absent.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o.Absent.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Absent.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Absent.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o.Equal.prototype.toObject=function(e){return o.Equal.toObject(e,this)},o.Equal.toObject=function(e,t){var r={valueToCheck:t.getValueToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.Equal.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Equal;return o.Equal.deserializeBinaryFromReader(s,r)},o.Equal.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setValueToCheck(r)}else t.skipField();return e},o.Equal.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Equal.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Equal.serializeBinaryToWriter=function(e,t){var r;(r=e.getValueToCheck_asU8()).length>0&&t.writeBytes(1,r)},o.Equal.prototype.getValueToCheck=function(){return t.Message.getFieldWithDefault(this,1,"")},o.Equal.prototype.getValueToCheck_asB64=function(){return t.Message.bytesAsB64(this.getValueToCheck())},o.Equal.prototype.getValueToCheck_asU8=function(){return t.Message.bytesAsU8(this.getValueToCheck())},o.Equal.prototype.setValueToCheck=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o.AbsentOrEqual.prototype.toObject=function(e){return o.AbsentOrEqual.toObject(e,this)},o.AbsentOrEqual.toObject=function(e,t){var r={valueToCheck:t.getValueToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.AbsentOrEqual.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.AbsentOrEqual;return o.AbsentOrEqual.deserializeBinaryFromReader(s,r)},o.AbsentOrEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setValueToCheck(r)}else t.skipField();return e},o.AbsentOrEqual.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.AbsentOrEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.AbsentOrEqual.serializeBinaryToWriter=function(e,t){var r;(r=e.getValueToCheck_asU8()).length>0&&t.writeBytes(1,r)},o.AbsentOrEqual.prototype.getValueToCheck=function(){return t.Message.getFieldWithDefault(this,1,"")},o.AbsentOrEqual.prototype.getValueToCheck_asB64=function(){return t.Message.bytesAsB64(this.getValueToCheck())},o.AbsentOrEqual.prototype.getValueToCheck_asU8=function(){return t.Message.bytesAsU8(this.getValueToCheck())},o.AbsentOrEqual.prototype.setValueToCheck=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o.NotEqual.prototype.toObject=function(e){return o.NotEqual.toObject(e,this)},o.NotEqual.toObject=function(e,t){var r={valueToCheck:t.getValueToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.NotEqual.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.NotEqual;return o.NotEqual.deserializeBinaryFromReader(s,r)},o.NotEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setValueToCheck(r)}else t.skipField();return e},o.NotEqual.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.NotEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.NotEqual.serializeBinaryToWriter=function(e,t){var r;(r=e.getValueToCheck_asU8()).length>0&&t.writeBytes(1,r)},o.NotEqual.prototype.getValueToCheck=function(){return t.Message.getFieldWithDefault(this,1,"")},o.NotEqual.prototype.getValueToCheck_asB64=function(){return t.Message.bytesAsB64(this.getValueToCheck())},o.NotEqual.prototype.getValueToCheck_asU8=function(){return t.Message.bytesAsU8(this.getValueToCheck())},o.NotEqual.prototype.setValueToCheck=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._Unbounded.prototype.toObject=function(e){return o._Unbounded.toObject(e,this)},o._Unbounded.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._Unbounded.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Unbounded;return o._Unbounded.deserializeBinaryFromReader(s,r)},o._Unbounded.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._Unbounded.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Unbounded.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Unbounded.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._Empty.prototype.toObject=function(e){return o._Empty.toObject(e,this)},o._Empty.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._Empty.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Empty;return o._Empty.deserializeBinaryFromReader(s,r)},o._Empty.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._Empty.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Empty.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Empty.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o.PresentAndNotHashEqual.prototype.toObject=function(e){return o.PresentAndNotHashEqual.toObject(e,this)},o.PresentAndNotHashEqual.toObject=function(e,t){var r={hashToCheck:t.getHashToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.PresentAndNotHashEqual.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PresentAndNotHashEqual;return o.PresentAndNotHashEqual.deserializeBinaryFromReader(s,r)},o.PresentAndNotHashEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setHashToCheck(r)}else t.skipField();return e},o.PresentAndNotHashEqual.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PresentAndNotHashEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PresentAndNotHashEqual.serializeBinaryToWriter=function(e,t){var r;(r=e.getHashToCheck_asU8()).length>0&&t.writeBytes(1,r)},o.PresentAndNotHashEqual.prototype.getHashToCheck=function(){return t.Message.getFieldWithDefault(this,1,"")},o.PresentAndNotHashEqual.prototype.getHashToCheck_asB64=function(){return t.Message.bytesAsB64(this.getHashToCheck())},o.PresentAndNotHashEqual.prototype.getHashToCheck_asU8=function(){return t.Message.bytesAsU8(this.getHashToCheck())},o.PresentAndNotHashEqual.prototype.setHashToCheck=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o.PresentAndHashEqual.prototype.toObject=function(e){return o.PresentAndHashEqual.toObject(e,this)},o.PresentAndHashEqual.toObject=function(e,t){var r={hashToCheck:t.getHashToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.PresentAndHashEqual.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PresentAndHashEqual;return o.PresentAndHashEqual.deserializeBinaryFromReader(s,r)},o.PresentAndHashEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setHashToCheck(r)}else t.skipField();return e},o.PresentAndHashEqual.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PresentAndHashEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PresentAndHashEqual.serializeBinaryToWriter=function(e,t){var r;(r=e.getHashToCheck_asU8()).length>0&&t.writeBytes(1,r)},o.PresentAndHashEqual.prototype.getHashToCheck=function(){return t.Message.getFieldWithDefault(this,1,"")},o.PresentAndHashEqual.prototype.getHashToCheck_asB64=function(){return t.Message.bytesAsB64(this.getHashToCheck())},o.PresentAndHashEqual.prototype.getHashToCheck_asU8=function(){return t.Message.bytesAsU8(this.getHashToCheck())},o.PresentAndHashEqual.prototype.setHashToCheck=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o.AbsentOrHashEqual.prototype.toObject=function(e){return o.AbsentOrHashEqual.toObject(e,this)},o.AbsentOrHashEqual.toObject=function(e,t){var r={hashToCheck:t.getHashToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.AbsentOrHashEqual.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.AbsentOrHashEqual;return o.AbsentOrHashEqual.deserializeBinaryFromReader(s,r)},o.AbsentOrHashEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setHashToCheck(r)}else t.skipField();return e},o.AbsentOrHashEqual.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.AbsentOrHashEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.AbsentOrHashEqual.serializeBinaryToWriter=function(e,t){var r;(r=e.getHashToCheck_asU8()).length>0&&t.writeBytes(1,r)},o.AbsentOrHashEqual.prototype.getHashToCheck=function(){return t.Message.getFieldWithDefault(this,1,"")},o.AbsentOrHashEqual.prototype.getHashToCheck_asB64=function(){return t.Message.bytesAsB64(this.getHashToCheck())},o.AbsentOrHashEqual.prototype.getHashToCheck_asU8=function(){return t.Message.bytesAsU8(this.getHashToCheck())},o.AbsentOrHashEqual.prototype.setHashToCheck=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o.AbsentOrNotHashEqual.prototype.toObject=function(e){return o.AbsentOrNotHashEqual.toObject(e,this)},o.AbsentOrNotHashEqual.toObject=function(e,t){var r={hashToCheck:t.getHashToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.AbsentOrNotHashEqual.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.AbsentOrNotHashEqual;return o.AbsentOrNotHashEqual.deserializeBinaryFromReader(s,r)},o.AbsentOrNotHashEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setHashToCheck(r)}else t.skipField();return e},o.AbsentOrNotHashEqual.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.AbsentOrNotHashEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.AbsentOrNotHashEqual.serializeBinaryToWriter=function(e,t){var r;(r=e.getHashToCheck_asU8()).length>0&&t.writeBytes(1,r)},o.AbsentOrNotHashEqual.prototype.getHashToCheck=function(){return t.Message.getFieldWithDefault(this,1,"")},o.AbsentOrNotHashEqual.prototype.getHashToCheck_asB64=function(){return t.Message.bytesAsB64(this.getHashToCheck())},o.AbsentOrNotHashEqual.prototype.getHashToCheck_asU8=function(){return t.Message.bytesAsU8(this.getHashToCheck())},o.AbsentOrNotHashEqual.prototype.setHashToCheck=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o.Unconditional.prototype.toObject=function(e){return o.Unconditional.toObject(e,this)},o.Unconditional.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o.Unconditional.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Unconditional;return o.Unconditional.deserializeBinaryFromReader(s,r)},o.Unconditional.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o.Unconditional.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Unconditional.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Unconditional.serializeBinaryToWriter=function(e,t){},r.object.extend(e,o)),common_pb;var e,t,r,o}function requireCacheclient_pb(){return hasRequiredCacheclient_pb||(hasRequiredCacheclient_pb=1,e=cacheclient_pb,t=requireGoogleProtobuf(),r=t,o={},s=requireCommon_pb(),r.object.extend(o,s),r.exportSymbol("ECacheResult",null,o),r.exportSymbol("_DeleteRequest",null,o),r.exportSymbol("_DeleteResponse",null,o),r.exportSymbol("_DictionaryDeleteRequest",null,o),r.exportSymbol("_DictionaryDeleteRequest.All",null,o),r.exportSymbol("_DictionaryDeleteRequest.DeleteCase",null,o),r.exportSymbol("_DictionaryDeleteRequest.Some",null,o),r.exportSymbol("_DictionaryDeleteResponse",null,o),r.exportSymbol("_DictionaryFetchRequest",null,o),r.exportSymbol("_DictionaryFetchResponse",null,o),r.exportSymbol("_DictionaryFetchResponse.DictionaryCase",null,o),r.exportSymbol("_DictionaryFetchResponse._Found",null,o),r.exportSymbol("_DictionaryFetchResponse._Missing",null,o),r.exportSymbol("_DictionaryFieldValuePair",null,o),r.exportSymbol("_DictionaryGetRequest",null,o),r.exportSymbol("_DictionaryGetResponse",null,o),r.exportSymbol("_DictionaryGetResponse.DictionaryCase",null,o),r.exportSymbol("_DictionaryGetResponse._DictionaryGetResponsePart",null,o),r.exportSymbol("_DictionaryGetResponse._Found",null,o),r.exportSymbol("_DictionaryGetResponse._Missing",null,o),r.exportSymbol("_DictionaryIncrementRequest",null,o),r.exportSymbol("_DictionaryIncrementResponse",null,o),r.exportSymbol("_DictionaryLengthRequest",null,o),r.exportSymbol("_DictionaryLengthResponse",null,o),r.exportSymbol("_DictionaryLengthResponse.DictionaryCase",null,o),r.exportSymbol("_DictionaryLengthResponse._Found",null,o),r.exportSymbol("_DictionaryLengthResponse._Missing",null,o),r.exportSymbol("_DictionarySetRequest",null,o),r.exportSymbol("_DictionarySetResponse",null,o),r.exportSymbol("_GetBatchRequest",null,o),r.exportSymbol("_GetRequest",null,o),r.exportSymbol("_GetResponse",null,o),r.exportSymbol("_GetWithHashRequest",null,o),r.exportSymbol("_GetWithHashResponse",null,o),r.exportSymbol("_GetWithHashResponse.ResultCase",null,o),r.exportSymbol("_GetWithHashResponse._Found",null,o),r.exportSymbol("_GetWithHashResponse._Missing",null,o),r.exportSymbol("_IncrementRequest",null,o),r.exportSymbol("_IncrementResponse",null,o),r.exportSymbol("_ItemGetTtlRequest",null,o),r.exportSymbol("_ItemGetTtlResponse",null,o),r.exportSymbol("_ItemGetTtlResponse.ResultCase",null,o),r.exportSymbol("_ItemGetTtlResponse._Found",null,o),r.exportSymbol("_ItemGetTtlResponse._Missing",null,o),r.exportSymbol("_ItemGetTypeRequest",null,o),r.exportSymbol("_ItemGetTypeResponse",null,o),r.exportSymbol("_ItemGetTypeResponse.ItemType",null,o),r.exportSymbol("_ItemGetTypeResponse.ResultCase",null,o),r.exportSymbol("_ItemGetTypeResponse._Found",null,o),r.exportSymbol("_ItemGetTypeResponse._Missing",null,o),r.exportSymbol("_KeysExistRequest",null,o),r.exportSymbol("_KeysExistResponse",null,o),r.exportSymbol("_ListConcatenateBackRequest",null,o),r.exportSymbol("_ListConcatenateBackResponse",null,o),r.exportSymbol("_ListConcatenateFrontRequest",null,o),r.exportSymbol("_ListConcatenateFrontResponse",null,o),r.exportSymbol("_ListEraseRequest",null,o),r.exportSymbol("_ListEraseRequest.EraseCase",null,o),r.exportSymbol("_ListEraseRequest._All",null,o),r.exportSymbol("_ListEraseRequest._ListRanges",null,o),r.exportSymbol("_ListEraseResponse",null,o),r.exportSymbol("_ListEraseResponse.ListCase",null,o),r.exportSymbol("_ListEraseResponse._Found",null,o),r.exportSymbol("_ListEraseResponse._Missing",null,o),r.exportSymbol("_ListFetchRequest",null,o),r.exportSymbol("_ListFetchRequest.EndIndexCase",null,o),r.exportSymbol("_ListFetchRequest.StartIndexCase",null,o),r.exportSymbol("_ListFetchResponse",null,o),r.exportSymbol("_ListFetchResponse.ListCase",null,o),r.exportSymbol("_ListFetchResponse._Found",null,o),r.exportSymbol("_ListFetchResponse._Missing",null,o),r.exportSymbol("_ListLengthRequest",null,o),r.exportSymbol("_ListLengthResponse",null,o),r.exportSymbol("_ListLengthResponse.ListCase",null,o),r.exportSymbol("_ListLengthResponse._Found",null,o),r.exportSymbol("_ListLengthResponse._Missing",null,o),r.exportSymbol("_ListPopBackRequest",null,o),r.exportSymbol("_ListPopBackResponse",null,o),r.exportSymbol("_ListPopBackResponse.ListCase",null,o),r.exportSymbol("_ListPopBackResponse._Found",null,o),r.exportSymbol("_ListPopBackResponse._Missing",null,o),r.exportSymbol("_ListPopFrontRequest",null,o),r.exportSymbol("_ListPopFrontResponse",null,o),r.exportSymbol("_ListPopFrontResponse.ListCase",null,o),r.exportSymbol("_ListPopFrontResponse._Found",null,o),r.exportSymbol("_ListPopFrontResponse._Missing",null,o),r.exportSymbol("_ListPushBackRequest",null,o),r.exportSymbol("_ListPushBackResponse",null,o),r.exportSymbol("_ListPushFrontRequest",null,o),r.exportSymbol("_ListPushFrontResponse",null,o),r.exportSymbol("_ListRange",null,o),r.exportSymbol("_ListRemoveRequest",null,o),r.exportSymbol("_ListRemoveRequest.RemoveCase",null,o),r.exportSymbol("_ListRemoveResponse",null,o),r.exportSymbol("_ListRemoveResponse.ListCase",null,o),r.exportSymbol("_ListRemoveResponse._Found",null,o),r.exportSymbol("_ListRemoveResponse._Missing",null,o),r.exportSymbol("_ListRetainRequest",null,o),r.exportSymbol("_ListRetainRequest.EndIndexCase",null,o),r.exportSymbol("_ListRetainRequest.StartIndexCase",null,o),r.exportSymbol("_ListRetainResponse",null,o),r.exportSymbol("_ListRetainResponse.ListCase",null,o),r.exportSymbol("_ListRetainResponse._Found",null,o),r.exportSymbol("_ListRetainResponse._Missing",null,o),r.exportSymbol("_SetBatchRequest",null,o),r.exportSymbol("_SetContainsRequest",null,o),r.exportSymbol("_SetContainsResponse",null,o),r.exportSymbol("_SetContainsResponse.SetCase",null,o),r.exportSymbol("_SetContainsResponse._Found",null,o),r.exportSymbol("_SetContainsResponse._Missing",null,o),r.exportSymbol("_SetDifferenceRequest",null,o),r.exportSymbol("_SetDifferenceRequest.DifferenceCase",null,o),r.exportSymbol("_SetDifferenceRequest._Minuend",null,o),r.exportSymbol("_SetDifferenceRequest._Subtrahend",null,o),r.exportSymbol("_SetDifferenceRequest._Subtrahend.SubtrahendSetCase",null,o),r.exportSymbol("_SetDifferenceRequest._Subtrahend._Identity",null,o),r.exportSymbol("_SetDifferenceRequest._Subtrahend._Set",null,o),r.exportSymbol("_SetDifferenceResponse",null,o),r.exportSymbol("_SetDifferenceResponse.SetCase",null,o),r.exportSymbol("_SetDifferenceResponse._Found",null,o),r.exportSymbol("_SetDifferenceResponse._Missing",null,o),r.exportSymbol("_SetFetchRequest",null,o),r.exportSymbol("_SetFetchResponse",null,o),r.exportSymbol("_SetFetchResponse.SetCase",null,o),r.exportSymbol("_SetFetchResponse._Found",null,o),r.exportSymbol("_SetFetchResponse._Missing",null,o),r.exportSymbol("_SetIfHashRequest",null,o),r.exportSymbol("_SetIfHashRequest.ConditionCase",null,o),r.exportSymbol("_SetIfHashResponse",null,o),r.exportSymbol("_SetIfHashResponse.ResultCase",null,o),r.exportSymbol("_SetIfHashResponse._NotStored",null,o),r.exportSymbol("_SetIfHashResponse._Stored",null,o),r.exportSymbol("_SetIfNotExistsRequest",null,o),r.exportSymbol("_SetIfNotExistsResponse",null,o),r.exportSymbol("_SetIfNotExistsResponse.ResultCase",null,o),r.exportSymbol("_SetIfNotExistsResponse._NotStored",null,o),r.exportSymbol("_SetIfNotExistsResponse._Stored",null,o),r.exportSymbol("_SetIfRequest",null,o),r.exportSymbol("_SetIfRequest.ConditionCase",null,o),r.exportSymbol("_SetIfResponse",null,o),r.exportSymbol("_SetIfResponse.ResultCase",null,o),r.exportSymbol("_SetIfResponse._NotStored",null,o),r.exportSymbol("_SetIfResponse._Stored",null,o),r.exportSymbol("_SetLengthRequest",null,o),r.exportSymbol("_SetLengthResponse",null,o),r.exportSymbol("_SetLengthResponse.SetCase",null,o),r.exportSymbol("_SetLengthResponse._Found",null,o),r.exportSymbol("_SetLengthResponse._Missing",null,o),r.exportSymbol("_SetPopRequest",null,o),r.exportSymbol("_SetPopResponse",null,o),r.exportSymbol("_SetPopResponse.SetCase",null,o),r.exportSymbol("_SetPopResponse._Found",null,o),r.exportSymbol("_SetPopResponse._Missing",null,o),r.exportSymbol("_SetRequest",null,o),r.exportSymbol("_SetResponse",null,o),r.exportSymbol("_SetSampleRequest",null,o),r.exportSymbol("_SetSampleResponse",null,o),r.exportSymbol("_SetSampleResponse.SetCase",null,o),r.exportSymbol("_SetSampleResponse._Found",null,o),r.exportSymbol("_SetSampleResponse._Missing",null,o),r.exportSymbol("_SetUnionRequest",null,o),r.exportSymbol("_SetUnionResponse",null,o),r.exportSymbol("_SortedSetElement",null,o),r.exportSymbol("_SortedSetFetchRequest",null,o),r.exportSymbol("_SortedSetFetchRequest.Order",null,o),r.exportSymbol("_SortedSetFetchRequest.RangeCase",null,o),r.exportSymbol("_SortedSetFetchRequest._ByIndex",null,o),r.exportSymbol("_SortedSetFetchRequest._ByIndex.EndCase",null,o),r.exportSymbol("_SortedSetFetchRequest._ByIndex.StartCase",null,o),r.exportSymbol("_SortedSetFetchRequest._ByScore",null,o),r.exportSymbol("_SortedSetFetchRequest._ByScore.MaxCase",null,o),r.exportSymbol("_SortedSetFetchRequest._ByScore.MinCase",null,o),r.exportSymbol("_SortedSetFetchRequest._ByScore._Score",null,o),r.exportSymbol("_SortedSetFetchResponse",null,o),r.exportSymbol("_SortedSetFetchResponse.SortedSetCase",null,o),r.exportSymbol("_SortedSetFetchResponse._Found",null,o),r.exportSymbol("_SortedSetFetchResponse._Found.ElementsCase",null,o),r.exportSymbol("_SortedSetFetchResponse._Found._Values",null,o),r.exportSymbol("_SortedSetFetchResponse._Found._ValuesWithScores",null,o),r.exportSymbol("_SortedSetFetchResponse._Missing",null,o),r.exportSymbol("_SortedSetGetRankRequest",null,o),r.exportSymbol("_SortedSetGetRankRequest.Order",null,o),r.exportSymbol("_SortedSetGetRankResponse",null,o),r.exportSymbol("_SortedSetGetRankResponse.RankCase",null,o),r.exportSymbol("_SortedSetGetRankResponse._RankResponsePart",null,o),r.exportSymbol("_SortedSetGetRankResponse._SortedSetMissing",null,o),r.exportSymbol("_SortedSetGetScoreRequest",null,o),r.exportSymbol("_SortedSetGetScoreResponse",null,o),r.exportSymbol("_SortedSetGetScoreResponse.SortedSetCase",null,o),r.exportSymbol("_SortedSetGetScoreResponse._SortedSetFound",null,o),r.exportSymbol("_SortedSetGetScoreResponse._SortedSetGetScoreResponsePart",null,o),r.exportSymbol("_SortedSetGetScoreResponse._SortedSetMissing",null,o),r.exportSymbol("_SortedSetIncrementRequest",null,o),r.exportSymbol("_SortedSetIncrementResponse",null,o),r.exportSymbol("_SortedSetLengthByScoreRequest",null,o),r.exportSymbol("_SortedSetLengthByScoreRequest.MaxCase",null,o),r.exportSymbol("_SortedSetLengthByScoreRequest.MinCase",null,o),r.exportSymbol("_SortedSetLengthByScoreResponse",null,o),r.exportSymbol("_SortedSetLengthByScoreResponse.SortedSetCase",null,o),r.exportSymbol("_SortedSetLengthByScoreResponse._Found",null,o),r.exportSymbol("_SortedSetLengthByScoreResponse._Missing",null,o),r.exportSymbol("_SortedSetLengthRequest",null,o),r.exportSymbol("_SortedSetLengthResponse",null,o),r.exportSymbol("_SortedSetLengthResponse.SortedSetCase",null,o),r.exportSymbol("_SortedSetLengthResponse._Found",null,o),r.exportSymbol("_SortedSetLengthResponse._Missing",null,o),r.exportSymbol("_SortedSetPutRequest",null,o),r.exportSymbol("_SortedSetPutResponse",null,o),r.exportSymbol("_SortedSetRemoveRequest",null,o),r.exportSymbol("_SortedSetRemoveRequest.RemoveElementsCase",null,o),r.exportSymbol("_SortedSetRemoveRequest._All",null,o),r.exportSymbol("_SortedSetRemoveRequest._Some",null,o),r.exportSymbol("_SortedSetRemoveResponse",null,o),r.exportSymbol("_SortedSetUnionStoreRequest",null,o),r.exportSymbol("_SortedSetUnionStoreRequest.AggregateFunction",null,o),r.exportSymbol("_SortedSetUnionStoreRequest._Source",null,o),r.exportSymbol("_SortedSetUnionStoreResponse",null,o),r.exportSymbol("_UpdateTtlRequest",null,o),r.exportSymbol("_UpdateTtlRequest.UpdateTtlCase",null,o),r.exportSymbol("_UpdateTtlResponse",null,o),r.exportSymbol("_UpdateTtlResponse.ResultCase",null,o),r.exportSymbol("_UpdateTtlResponse._Missing",null,o),r.exportSymbol("_UpdateTtlResponse._NotSet",null,o),r.exportSymbol("_UpdateTtlResponse._Set",null,o),o._GetRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetRequest.displayName="proto._GetRequest"),o._GetResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetResponse.displayName="proto._GetResponse"),o._GetWithHashRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetWithHashRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetWithHashRequest.displayName="proto._GetWithHashRequest"),o._GetWithHashResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._GetWithHashResponse.oneofGroups_)},r.inherits(o._GetWithHashResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetWithHashResponse.displayName="proto._GetWithHashResponse"),o._GetWithHashResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetWithHashResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._GetWithHashResponse._Found.displayName="proto._GetWithHashResponse._Found"),o._GetWithHashResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetWithHashResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._GetWithHashResponse._Missing.displayName="proto._GetWithHashResponse._Missing"),o._GetBatchRequest=function(e){t.Message.initialize(this,e,0,-1,o._GetBatchRequest.repeatedFields_,null)},r.inherits(o._GetBatchRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetBatchRequest.displayName="proto._GetBatchRequest"),o._DeleteRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DeleteRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DeleteRequest.displayName="proto._DeleteRequest"),o._DeleteResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DeleteResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DeleteResponse.displayName="proto._DeleteResponse"),o._SetRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetRequest.displayName="proto._SetRequest"),o._SetResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetResponse.displayName="proto._SetResponse"),o._SetBatchRequest=function(e){t.Message.initialize(this,e,0,-1,o._SetBatchRequest.repeatedFields_,null)},r.inherits(o._SetBatchRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetBatchRequest.displayName="proto._SetBatchRequest"),o._SetIfRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._SetIfRequest.oneofGroups_)},r.inherits(o._SetIfRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfRequest.displayName="proto._SetIfRequest"),o._SetIfResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SetIfResponse.oneofGroups_)},r.inherits(o._SetIfResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfResponse.displayName="proto._SetIfResponse"),o._SetIfResponse._Stored=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetIfResponse._Stored,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfResponse._Stored.displayName="proto._SetIfResponse._Stored"),o._SetIfResponse._NotStored=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetIfResponse._NotStored,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfResponse._NotStored.displayName="proto._SetIfResponse._NotStored"),o._SetIfHashRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._SetIfHashRequest.oneofGroups_)},r.inherits(o._SetIfHashRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfHashRequest.displayName="proto._SetIfHashRequest"),o._SetIfHashResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SetIfHashResponse.oneofGroups_)},r.inherits(o._SetIfHashResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfHashResponse.displayName="proto._SetIfHashResponse"),o._SetIfHashResponse._Stored=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetIfHashResponse._Stored,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfHashResponse._Stored.displayName="proto._SetIfHashResponse._Stored"),o._SetIfHashResponse._NotStored=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetIfHashResponse._NotStored,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfHashResponse._NotStored.displayName="proto._SetIfHashResponse._NotStored"),o._SetIfNotExistsRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetIfNotExistsRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfNotExistsRequest.displayName="proto._SetIfNotExistsRequest"),o._SetIfNotExistsResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SetIfNotExistsResponse.oneofGroups_)},r.inherits(o._SetIfNotExistsResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfNotExistsResponse.displayName="proto._SetIfNotExistsResponse"),o._SetIfNotExistsResponse._Stored=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetIfNotExistsResponse._Stored,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfNotExistsResponse._Stored.displayName="proto._SetIfNotExistsResponse._Stored"),o._SetIfNotExistsResponse._NotStored=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetIfNotExistsResponse._NotStored,t.Message),r.DEBUG&&!COMPILED&&(o._SetIfNotExistsResponse._NotStored.displayName="proto._SetIfNotExistsResponse._NotStored"),o._KeysExistRequest=function(e){t.Message.initialize(this,e,0,-1,o._KeysExistRequest.repeatedFields_,null)},r.inherits(o._KeysExistRequest,t.Message),r.DEBUG&&!COMPILED&&(o._KeysExistRequest.displayName="proto._KeysExistRequest"),o._KeysExistResponse=function(e){t.Message.initialize(this,e,0,-1,o._KeysExistResponse.repeatedFields_,null)},r.inherits(o._KeysExistResponse,t.Message),r.DEBUG&&!COMPILED&&(o._KeysExistResponse.displayName="proto._KeysExistResponse"),o._IncrementRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._IncrementRequest,t.Message),r.DEBUG&&!COMPILED&&(o._IncrementRequest.displayName="proto._IncrementRequest"),o._IncrementResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._IncrementResponse,t.Message),r.DEBUG&&!COMPILED&&(o._IncrementResponse.displayName="proto._IncrementResponse"),o._UpdateTtlRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._UpdateTtlRequest.oneofGroups_)},r.inherits(o._UpdateTtlRequest,t.Message),r.DEBUG&&!COMPILED&&(o._UpdateTtlRequest.displayName="proto._UpdateTtlRequest"),o._UpdateTtlResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._UpdateTtlResponse.oneofGroups_)},r.inherits(o._UpdateTtlResponse,t.Message),r.DEBUG&&!COMPILED&&(o._UpdateTtlResponse.displayName="proto._UpdateTtlResponse"),o._UpdateTtlResponse._Set=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._UpdateTtlResponse._Set,t.Message),r.DEBUG&&!COMPILED&&(o._UpdateTtlResponse._Set.displayName="proto._UpdateTtlResponse._Set"),o._UpdateTtlResponse._NotSet=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._UpdateTtlResponse._NotSet,t.Message),r.DEBUG&&!COMPILED&&(o._UpdateTtlResponse._NotSet.displayName="proto._UpdateTtlResponse._NotSet"),o._UpdateTtlResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._UpdateTtlResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._UpdateTtlResponse._Missing.displayName="proto._UpdateTtlResponse._Missing"),o._ItemGetTtlRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ItemGetTtlRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ItemGetTtlRequest.displayName="proto._ItemGetTtlRequest"),o._ItemGetTtlResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._ItemGetTtlResponse.oneofGroups_)},r.inherits(o._ItemGetTtlResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ItemGetTtlResponse.displayName="proto._ItemGetTtlResponse"),o._ItemGetTtlResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ItemGetTtlResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._ItemGetTtlResponse._Found.displayName="proto._ItemGetTtlResponse._Found"),o._ItemGetTtlResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ItemGetTtlResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._ItemGetTtlResponse._Missing.displayName="proto._ItemGetTtlResponse._Missing"),o._ItemGetTypeRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ItemGetTypeRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ItemGetTypeRequest.displayName="proto._ItemGetTypeRequest"),o._ItemGetTypeResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._ItemGetTypeResponse.oneofGroups_)},r.inherits(o._ItemGetTypeResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ItemGetTypeResponse.displayName="proto._ItemGetTypeResponse"),o._ItemGetTypeResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ItemGetTypeResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._ItemGetTypeResponse._Found.displayName="proto._ItemGetTypeResponse._Found"),o._ItemGetTypeResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ItemGetTypeResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._ItemGetTypeResponse._Missing.displayName="proto._ItemGetTypeResponse._Missing"),o._DictionaryGetRequest=function(e){t.Message.initialize(this,e,0,-1,o._DictionaryGetRequest.repeatedFields_,null)},r.inherits(o._DictionaryGetRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryGetRequest.displayName="proto._DictionaryGetRequest"),o._DictionaryGetResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._DictionaryGetResponse.oneofGroups_)},r.inherits(o._DictionaryGetResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryGetResponse.displayName="proto._DictionaryGetResponse"),o._DictionaryGetResponse._DictionaryGetResponsePart=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryGetResponse._DictionaryGetResponsePart,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryGetResponse._DictionaryGetResponsePart.displayName="proto._DictionaryGetResponse._DictionaryGetResponsePart"),o._DictionaryGetResponse._Found=function(e){t.Message.initialize(this,e,0,-1,o._DictionaryGetResponse._Found.repeatedFields_,null)},r.inherits(o._DictionaryGetResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryGetResponse._Found.displayName="proto._DictionaryGetResponse._Found"),o._DictionaryGetResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryGetResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryGetResponse._Missing.displayName="proto._DictionaryGetResponse._Missing"),o._DictionaryFetchRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryFetchRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryFetchRequest.displayName="proto._DictionaryFetchRequest"),o._DictionaryFieldValuePair=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryFieldValuePair,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryFieldValuePair.displayName="proto._DictionaryFieldValuePair"),o._DictionaryFetchResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._DictionaryFetchResponse.oneofGroups_)},r.inherits(o._DictionaryFetchResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryFetchResponse.displayName="proto._DictionaryFetchResponse"),o._DictionaryFetchResponse._Found=function(e){t.Message.initialize(this,e,0,-1,o._DictionaryFetchResponse._Found.repeatedFields_,null)},r.inherits(o._DictionaryFetchResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryFetchResponse._Found.displayName="proto._DictionaryFetchResponse._Found"),o._DictionaryFetchResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryFetchResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryFetchResponse._Missing.displayName="proto._DictionaryFetchResponse._Missing"),o._DictionarySetRequest=function(e){t.Message.initialize(this,e,0,-1,o._DictionarySetRequest.repeatedFields_,null)},r.inherits(o._DictionarySetRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DictionarySetRequest.displayName="proto._DictionarySetRequest"),o._DictionarySetResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionarySetResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DictionarySetResponse.displayName="proto._DictionarySetResponse"),o._DictionaryIncrementRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryIncrementRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryIncrementRequest.displayName="proto._DictionaryIncrementRequest"),o._DictionaryIncrementResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryIncrementResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryIncrementResponse.displayName="proto._DictionaryIncrementResponse"),o._DictionaryDeleteRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._DictionaryDeleteRequest.oneofGroups_)},r.inherits(o._DictionaryDeleteRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryDeleteRequest.displayName="proto._DictionaryDeleteRequest"),o._DictionaryDeleteRequest.Some=function(e){t.Message.initialize(this,e,0,-1,o._DictionaryDeleteRequest.Some.repeatedFields_,null)},r.inherits(o._DictionaryDeleteRequest.Some,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryDeleteRequest.Some.displayName="proto._DictionaryDeleteRequest.Some"),o._DictionaryDeleteRequest.All=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryDeleteRequest.All,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryDeleteRequest.All.displayName="proto._DictionaryDeleteRequest.All"),o._DictionaryDeleteResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryDeleteResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryDeleteResponse.displayName="proto._DictionaryDeleteResponse"),o._DictionaryLengthRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryLengthRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryLengthRequest.displayName="proto._DictionaryLengthRequest"),o._DictionaryLengthResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._DictionaryLengthResponse.oneofGroups_)},r.inherits(o._DictionaryLengthResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryLengthResponse.displayName="proto._DictionaryLengthResponse"),o._DictionaryLengthResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryLengthResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryLengthResponse._Found.displayName="proto._DictionaryLengthResponse._Found"),o._DictionaryLengthResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DictionaryLengthResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._DictionaryLengthResponse._Missing.displayName="proto._DictionaryLengthResponse._Missing"),o._SetFetchRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetFetchRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetFetchRequest.displayName="proto._SetFetchRequest"),o._SetFetchResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SetFetchResponse.oneofGroups_)},r.inherits(o._SetFetchResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetFetchResponse.displayName="proto._SetFetchResponse"),o._SetFetchResponse._Found=function(e){t.Message.initialize(this,e,0,-1,o._SetFetchResponse._Found.repeatedFields_,null)},r.inherits(o._SetFetchResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._SetFetchResponse._Found.displayName="proto._SetFetchResponse._Found"),o._SetFetchResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetFetchResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._SetFetchResponse._Missing.displayName="proto._SetFetchResponse._Missing"),o._SetSampleRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetSampleRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetSampleRequest.displayName="proto._SetSampleRequest"),o._SetSampleResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SetSampleResponse.oneofGroups_)},r.inherits(o._SetSampleResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetSampleResponse.displayName="proto._SetSampleResponse"),o._SetSampleResponse._Found=function(e){t.Message.initialize(this,e,0,-1,o._SetSampleResponse._Found.repeatedFields_,null)},r.inherits(o._SetSampleResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._SetSampleResponse._Found.displayName="proto._SetSampleResponse._Found"),o._SetSampleResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetSampleResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._SetSampleResponse._Missing.displayName="proto._SetSampleResponse._Missing"),o._SetUnionRequest=function(e){t.Message.initialize(this,e,0,-1,o._SetUnionRequest.repeatedFields_,null)},r.inherits(o._SetUnionRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetUnionRequest.displayName="proto._SetUnionRequest"),o._SetUnionResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetUnionResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetUnionResponse.displayName="proto._SetUnionResponse"),o._SetDifferenceRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._SetDifferenceRequest.oneofGroups_)},r.inherits(o._SetDifferenceRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetDifferenceRequest.displayName="proto._SetDifferenceRequest"),o._SetDifferenceRequest._Minuend=function(e){t.Message.initialize(this,e,0,-1,o._SetDifferenceRequest._Minuend.repeatedFields_,null)},r.inherits(o._SetDifferenceRequest._Minuend,t.Message),r.DEBUG&&!COMPILED&&(o._SetDifferenceRequest._Minuend.displayName="proto._SetDifferenceRequest._Minuend"),o._SetDifferenceRequest._Subtrahend=function(e){t.Message.initialize(this,e,0,-1,null,o._SetDifferenceRequest._Subtrahend.oneofGroups_)},r.inherits(o._SetDifferenceRequest._Subtrahend,t.Message),r.DEBUG&&!COMPILED&&(o._SetDifferenceRequest._Subtrahend.displayName="proto._SetDifferenceRequest._Subtrahend"),o._SetDifferenceRequest._Subtrahend._Set=function(e){t.Message.initialize(this,e,0,-1,o._SetDifferenceRequest._Subtrahend._Set.repeatedFields_,null)},r.inherits(o._SetDifferenceRequest._Subtrahend._Set,t.Message),r.DEBUG&&!COMPILED&&(o._SetDifferenceRequest._Subtrahend._Set.displayName="proto._SetDifferenceRequest._Subtrahend._Set"),o._SetDifferenceRequest._Subtrahend._Identity=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetDifferenceRequest._Subtrahend._Identity,t.Message),r.DEBUG&&!COMPILED&&(o._SetDifferenceRequest._Subtrahend._Identity.displayName="proto._SetDifferenceRequest._Subtrahend._Identity"),o._SetDifferenceResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SetDifferenceResponse.oneofGroups_)},r.inherits(o._SetDifferenceResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetDifferenceResponse.displayName="proto._SetDifferenceResponse"),o._SetDifferenceResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetDifferenceResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._SetDifferenceResponse._Found.displayName="proto._SetDifferenceResponse._Found"),o._SetDifferenceResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetDifferenceResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._SetDifferenceResponse._Missing.displayName="proto._SetDifferenceResponse._Missing"),o._SetContainsRequest=function(e){t.Message.initialize(this,e,0,-1,o._SetContainsRequest.repeatedFields_,null)},r.inherits(o._SetContainsRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetContainsRequest.displayName="proto._SetContainsRequest"),o._SetContainsResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SetContainsResponse.oneofGroups_)},r.inherits(o._SetContainsResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetContainsResponse.displayName="proto._SetContainsResponse"),o._SetContainsResponse._Found=function(e){t.Message.initialize(this,e,0,-1,o._SetContainsResponse._Found.repeatedFields_,null)},r.inherits(o._SetContainsResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._SetContainsResponse._Found.displayName="proto._SetContainsResponse._Found"),o._SetContainsResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetContainsResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._SetContainsResponse._Missing.displayName="proto._SetContainsResponse._Missing"),o._SetLengthRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetLengthRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetLengthRequest.displayName="proto._SetLengthRequest"),o._SetLengthResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SetLengthResponse.oneofGroups_)},r.inherits(o._SetLengthResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetLengthResponse.displayName="proto._SetLengthResponse"),o._SetLengthResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetLengthResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._SetLengthResponse._Found.displayName="proto._SetLengthResponse._Found"),o._SetLengthResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetLengthResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._SetLengthResponse._Missing.displayName="proto._SetLengthResponse._Missing"),o._SetPopRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetPopRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetPopRequest.displayName="proto._SetPopRequest"),o._SetPopResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SetPopResponse.oneofGroups_)},r.inherits(o._SetPopResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetPopResponse.displayName="proto._SetPopResponse"),o._SetPopResponse._Found=function(e){t.Message.initialize(this,e,0,-1,o._SetPopResponse._Found.repeatedFields_,null)},r.inherits(o._SetPopResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._SetPopResponse._Found.displayName="proto._SetPopResponse._Found"),o._SetPopResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetPopResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._SetPopResponse._Missing.displayName="proto._SetPopResponse._Missing"),o._ListConcatenateFrontRequest=function(e){t.Message.initialize(this,e,0,-1,o._ListConcatenateFrontRequest.repeatedFields_,null)},r.inherits(o._ListConcatenateFrontRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListConcatenateFrontRequest.displayName="proto._ListConcatenateFrontRequest"),o._ListConcatenateFrontResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListConcatenateFrontResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListConcatenateFrontResponse.displayName="proto._ListConcatenateFrontResponse"),o._ListConcatenateBackRequest=function(e){t.Message.initialize(this,e,0,-1,o._ListConcatenateBackRequest.repeatedFields_,null)},r.inherits(o._ListConcatenateBackRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListConcatenateBackRequest.displayName="proto._ListConcatenateBackRequest"),o._ListConcatenateBackResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListConcatenateBackResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListConcatenateBackResponse.displayName="proto._ListConcatenateBackResponse"),o._ListPushFrontRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPushFrontRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListPushFrontRequest.displayName="proto._ListPushFrontRequest"),o._ListPushFrontResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPushFrontResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListPushFrontResponse.displayName="proto._ListPushFrontResponse"),o._ListPushBackRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPushBackRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListPushBackRequest.displayName="proto._ListPushBackRequest"),o._ListPushBackResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPushBackResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListPushBackResponse.displayName="proto._ListPushBackResponse"),o._ListPopFrontRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPopFrontRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListPopFrontRequest.displayName="proto._ListPopFrontRequest"),o._ListPopFrontResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._ListPopFrontResponse.oneofGroups_)},r.inherits(o._ListPopFrontResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListPopFrontResponse.displayName="proto._ListPopFrontResponse"),o._ListPopFrontResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPopFrontResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._ListPopFrontResponse._Found.displayName="proto._ListPopFrontResponse._Found"),o._ListPopFrontResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPopFrontResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._ListPopFrontResponse._Missing.displayName="proto._ListPopFrontResponse._Missing"),o._ListPopBackRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPopBackRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListPopBackRequest.displayName="proto._ListPopBackRequest"),o._ListPopBackResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._ListPopBackResponse.oneofGroups_)},r.inherits(o._ListPopBackResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListPopBackResponse.displayName="proto._ListPopBackResponse"),o._ListPopBackResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPopBackResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._ListPopBackResponse._Found.displayName="proto._ListPopBackResponse._Found"),o._ListPopBackResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListPopBackResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._ListPopBackResponse._Missing.displayName="proto._ListPopBackResponse._Missing"),o._ListRange=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListRange,t.Message),r.DEBUG&&!COMPILED&&(o._ListRange.displayName="proto._ListRange"),o._ListEraseRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._ListEraseRequest.oneofGroups_)},r.inherits(o._ListEraseRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListEraseRequest.displayName="proto._ListEraseRequest"),o._ListEraseRequest._All=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListEraseRequest._All,t.Message),r.DEBUG&&!COMPILED&&(o._ListEraseRequest._All.displayName="proto._ListEraseRequest._All"),o._ListEraseRequest._ListRanges=function(e){t.Message.initialize(this,e,0,-1,o._ListEraseRequest._ListRanges.repeatedFields_,null)},r.inherits(o._ListEraseRequest._ListRanges,t.Message),r.DEBUG&&!COMPILED&&(o._ListEraseRequest._ListRanges.displayName="proto._ListEraseRequest._ListRanges"),o._ListEraseResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._ListEraseResponse.oneofGroups_)},r.inherits(o._ListEraseResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListEraseResponse.displayName="proto._ListEraseResponse"),o._ListEraseResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListEraseResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._ListEraseResponse._Found.displayName="proto._ListEraseResponse._Found"),o._ListEraseResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListEraseResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._ListEraseResponse._Missing.displayName="proto._ListEraseResponse._Missing"),o._ListRemoveRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._ListRemoveRequest.oneofGroups_)},r.inherits(o._ListRemoveRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListRemoveRequest.displayName="proto._ListRemoveRequest"),o._ListRemoveResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._ListRemoveResponse.oneofGroups_)},r.inherits(o._ListRemoveResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListRemoveResponse.displayName="proto._ListRemoveResponse"),o._ListRemoveResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListRemoveResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._ListRemoveResponse._Found.displayName="proto._ListRemoveResponse._Found"),o._ListRemoveResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListRemoveResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._ListRemoveResponse._Missing.displayName="proto._ListRemoveResponse._Missing"),o._ListFetchRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._ListFetchRequest.oneofGroups_)},r.inherits(o._ListFetchRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListFetchRequest.displayName="proto._ListFetchRequest"),o._ListRetainRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._ListRetainRequest.oneofGroups_)},r.inherits(o._ListRetainRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListRetainRequest.displayName="proto._ListRetainRequest"),o._ListRetainResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._ListRetainResponse.oneofGroups_)},r.inherits(o._ListRetainResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListRetainResponse.displayName="proto._ListRetainResponse"),o._ListRetainResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListRetainResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._ListRetainResponse._Found.displayName="proto._ListRetainResponse._Found"),o._ListRetainResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListRetainResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._ListRetainResponse._Missing.displayName="proto._ListRetainResponse._Missing"),o._ListFetchResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._ListFetchResponse.oneofGroups_)},r.inherits(o._ListFetchResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListFetchResponse.displayName="proto._ListFetchResponse"),o._ListFetchResponse._Found=function(e){t.Message.initialize(this,e,0,-1,o._ListFetchResponse._Found.repeatedFields_,null)},r.inherits(o._ListFetchResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._ListFetchResponse._Found.displayName="proto._ListFetchResponse._Found"),o._ListFetchResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListFetchResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._ListFetchResponse._Missing.displayName="proto._ListFetchResponse._Missing"),o._ListLengthRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListLengthRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListLengthRequest.displayName="proto._ListLengthRequest"),o._ListLengthResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._ListLengthResponse.oneofGroups_)},r.inherits(o._ListLengthResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListLengthResponse.displayName="proto._ListLengthResponse"),o._ListLengthResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListLengthResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._ListLengthResponse._Found.displayName="proto._ListLengthResponse._Found"),o._ListLengthResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListLengthResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._ListLengthResponse._Missing.displayName="proto._ListLengthResponse._Missing"),o._SortedSetElement=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetElement,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetElement.displayName="proto._SortedSetElement"),o._SortedSetPutRequest=function(e){t.Message.initialize(this,e,0,-1,o._SortedSetPutRequest.repeatedFields_,null)},r.inherits(o._SortedSetPutRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetPutRequest.displayName="proto._SortedSetPutRequest"),o._SortedSetPutResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetPutResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetPutResponse.displayName="proto._SortedSetPutResponse"),o._SortedSetFetchRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetFetchRequest.oneofGroups_)},r.inherits(o._SortedSetFetchRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetFetchRequest.displayName="proto._SortedSetFetchRequest"),o._SortedSetFetchRequest._ByIndex=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetFetchRequest._ByIndex.oneofGroups_)},r.inherits(o._SortedSetFetchRequest._ByIndex,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetFetchRequest._ByIndex.displayName="proto._SortedSetFetchRequest._ByIndex"),o._SortedSetFetchRequest._ByScore=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetFetchRequest._ByScore.oneofGroups_)},r.inherits(o._SortedSetFetchRequest._ByScore,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetFetchRequest._ByScore.displayName="proto._SortedSetFetchRequest._ByScore"),o._SortedSetFetchRequest._ByScore._Score=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetFetchRequest._ByScore._Score,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetFetchRequest._ByScore._Score.displayName="proto._SortedSetFetchRequest._ByScore._Score"),o._SortedSetFetchResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetFetchResponse.oneofGroups_)},r.inherits(o._SortedSetFetchResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetFetchResponse.displayName="proto._SortedSetFetchResponse"),o._SortedSetFetchResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetFetchResponse._Found.oneofGroups_)},r.inherits(o._SortedSetFetchResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetFetchResponse._Found.displayName="proto._SortedSetFetchResponse._Found"),o._SortedSetFetchResponse._Found._ValuesWithScores=function(e){t.Message.initialize(this,e,0,-1,o._SortedSetFetchResponse._Found._ValuesWithScores.repeatedFields_,null)},r.inherits(o._SortedSetFetchResponse._Found._ValuesWithScores,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetFetchResponse._Found._ValuesWithScores.displayName="proto._SortedSetFetchResponse._Found._ValuesWithScores"),o._SortedSetFetchResponse._Found._Values=function(e){t.Message.initialize(this,e,0,-1,o._SortedSetFetchResponse._Found._Values.repeatedFields_,null)},r.inherits(o._SortedSetFetchResponse._Found._Values,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetFetchResponse._Found._Values.displayName="proto._SortedSetFetchResponse._Found._Values"),o._SortedSetFetchResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetFetchResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetFetchResponse._Missing.displayName="proto._SortedSetFetchResponse._Missing"),o._SortedSetGetScoreRequest=function(e){t.Message.initialize(this,e,0,-1,o._SortedSetGetScoreRequest.repeatedFields_,null)},r.inherits(o._SortedSetGetScoreRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetGetScoreRequest.displayName="proto._SortedSetGetScoreRequest"),o._SortedSetGetScoreResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetGetScoreResponse.oneofGroups_)},r.inherits(o._SortedSetGetScoreResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetGetScoreResponse.displayName="proto._SortedSetGetScoreResponse"),o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.displayName="proto._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart"),o._SortedSetGetScoreResponse._SortedSetFound=function(e){t.Message.initialize(this,e,0,-1,o._SortedSetGetScoreResponse._SortedSetFound.repeatedFields_,null)},r.inherits(o._SortedSetGetScoreResponse._SortedSetFound,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetGetScoreResponse._SortedSetFound.displayName="proto._SortedSetGetScoreResponse._SortedSetFound"),o._SortedSetGetScoreResponse._SortedSetMissing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetGetScoreResponse._SortedSetMissing,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetGetScoreResponse._SortedSetMissing.displayName="proto._SortedSetGetScoreResponse._SortedSetMissing"),o._SortedSetRemoveRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetRemoveRequest.oneofGroups_)},r.inherits(o._SortedSetRemoveRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetRemoveRequest.displayName="proto._SortedSetRemoveRequest"),o._SortedSetRemoveRequest._All=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetRemoveRequest._All,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetRemoveRequest._All.displayName="proto._SortedSetRemoveRequest._All"),o._SortedSetRemoveRequest._Some=function(e){t.Message.initialize(this,e,0,-1,o._SortedSetRemoveRequest._Some.repeatedFields_,null)},r.inherits(o._SortedSetRemoveRequest._Some,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetRemoveRequest._Some.displayName="proto._SortedSetRemoveRequest._Some"),o._SortedSetRemoveResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetRemoveResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetRemoveResponse.displayName="proto._SortedSetRemoveResponse"),o._SortedSetIncrementRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetIncrementRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetIncrementRequest.displayName="proto._SortedSetIncrementRequest"),o._SortedSetIncrementResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetIncrementResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetIncrementResponse.displayName="proto._SortedSetIncrementResponse"),o._SortedSetGetRankRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetGetRankRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetGetRankRequest.displayName="proto._SortedSetGetRankRequest"),o._SortedSetGetRankResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetGetRankResponse.oneofGroups_)},r.inherits(o._SortedSetGetRankResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetGetRankResponse.displayName="proto._SortedSetGetRankResponse"),o._SortedSetGetRankResponse._RankResponsePart=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetGetRankResponse._RankResponsePart,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetGetRankResponse._RankResponsePart.displayName="proto._SortedSetGetRankResponse._RankResponsePart"),o._SortedSetGetRankResponse._SortedSetMissing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetGetRankResponse._SortedSetMissing,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetGetRankResponse._SortedSetMissing.displayName="proto._SortedSetGetRankResponse._SortedSetMissing"),o._SortedSetLengthRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetLengthRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetLengthRequest.displayName="proto._SortedSetLengthRequest"),o._SortedSetLengthResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetLengthResponse.oneofGroups_)},r.inherits(o._SortedSetLengthResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetLengthResponse.displayName="proto._SortedSetLengthResponse"),o._SortedSetLengthResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetLengthResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetLengthResponse._Found.displayName="proto._SortedSetLengthResponse._Found"),o._SortedSetLengthResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetLengthResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetLengthResponse._Missing.displayName="proto._SortedSetLengthResponse._Missing"),o._SortedSetLengthByScoreRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetLengthByScoreRequest.oneofGroups_)},r.inherits(o._SortedSetLengthByScoreRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetLengthByScoreRequest.displayName="proto._SortedSetLengthByScoreRequest"),o._SortedSetLengthByScoreResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._SortedSetLengthByScoreResponse.oneofGroups_)},r.inherits(o._SortedSetLengthByScoreResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetLengthByScoreResponse.displayName="proto._SortedSetLengthByScoreResponse"),o._SortedSetLengthByScoreResponse._Found=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetLengthByScoreResponse._Found,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetLengthByScoreResponse._Found.displayName="proto._SortedSetLengthByScoreResponse._Found"),o._SortedSetLengthByScoreResponse._Missing=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetLengthByScoreResponse._Missing,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetLengthByScoreResponse._Missing.displayName="proto._SortedSetLengthByScoreResponse._Missing"),o._SortedSetUnionStoreRequest=function(e){t.Message.initialize(this,e,0,-1,o._SortedSetUnionStoreRequest.repeatedFields_,null)},r.inherits(o._SortedSetUnionStoreRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetUnionStoreRequest.displayName="proto._SortedSetUnionStoreRequest"),o._SortedSetUnionStoreRequest._Source=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetUnionStoreRequest._Source,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetUnionStoreRequest._Source.displayName="proto._SortedSetUnionStoreRequest._Source"),o._SortedSetUnionStoreResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SortedSetUnionStoreResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SortedSetUnionStoreResponse.displayName="proto._SortedSetUnionStoreResponse"),t.Message.GENERATE_TO_OBJECT&&(o._GetRequest.prototype.toObject=function(e){return o._GetRequest.toObject(e,this)},o._GetRequest.toObject=function(e,t){var r={cacheKey:t.getCacheKey_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._GetRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetRequest;return o._GetRequest.deserializeBinaryFromReader(s,r)},o._GetRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setCacheKey(r)}else t.skipField();return e},o._GetRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r)},o._GetRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GetRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._GetRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._GetRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._GetResponse.prototype.toObject=function(e){return o._GetResponse.toObject(e,this)},o._GetResponse.toObject=function(e,r){var o={result:t.Message.getFieldWithDefault(r,1,0),cacheBody:r.getCacheBody_asB64(),message:t.Message.getFieldWithDefault(r,3,"")};return e&&(o.$jspbMessageInstance=r),o}),o._GetResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetResponse;return o._GetResponse.deserializeBinaryFromReader(s,r)},o._GetResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setResult(r);break;case 2:r=t.readBytes(),e.setCacheBody(r);break;case 3:r=t.readString(),e.setMessage(r);break;default:t.skipField()}return e},o._GetResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getResult())&&t.writeEnum(1,r),(r=e.getCacheBody_asU8()).length>0&&t.writeBytes(2,r),(r=e.getMessage()).length>0&&t.writeString(3,r)},o._GetResponse.prototype.getResult=function(){return t.Message.getFieldWithDefault(this,1,0)},o._GetResponse.prototype.setResult=function(e){return t.Message.setProto3EnumField(this,1,e)},o._GetResponse.prototype.getCacheBody=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GetResponse.prototype.getCacheBody_asB64=function(){return t.Message.bytesAsB64(this.getCacheBody())},o._GetResponse.prototype.getCacheBody_asU8=function(){return t.Message.bytesAsU8(this.getCacheBody())},o._GetResponse.prototype.setCacheBody=function(e){return t.Message.setProto3BytesField(this,2,e)},o._GetResponse.prototype.getMessage=function(){return t.Message.getFieldWithDefault(this,3,"")},o._GetResponse.prototype.setMessage=function(e){return t.Message.setProto3StringField(this,3,e)},t.Message.GENERATE_TO_OBJECT&&(o._GetWithHashRequest.prototype.toObject=function(e){return o._GetWithHashRequest.toObject(e,this)},o._GetWithHashRequest.toObject=function(e,t){var r={cacheKey:t.getCacheKey_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._GetWithHashRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetWithHashRequest;return o._GetWithHashRequest.deserializeBinaryFromReader(s,r)},o._GetWithHashRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setCacheKey(r)}else t.skipField();return e},o._GetWithHashRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetWithHashRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetWithHashRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r)},o._GetWithHashRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GetWithHashRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._GetWithHashRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._GetWithHashRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},o._GetWithHashResponse.oneofGroups_=[[1,2]],o._GetWithHashResponse.ResultCase={RESULT_NOT_SET:0,FOUND:1,MISSING:2},o._GetWithHashResponse.prototype.getResultCase=function(){return t.Message.computeOneofCase(this,o._GetWithHashResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._GetWithHashResponse.prototype.toObject=function(e){return o._GetWithHashResponse.toObject(e,this)},o._GetWithHashResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._GetWithHashResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._GetWithHashResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._GetWithHashResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetWithHashResponse;return o._GetWithHashResponse.deserializeBinaryFromReader(s,r)},o._GetWithHashResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._GetWithHashResponse._Found;t.readMessage(r,o._GetWithHashResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._GetWithHashResponse._Missing,t.readMessage(r,o._GetWithHashResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._GetWithHashResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetWithHashResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetWithHashResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._GetWithHashResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._GetWithHashResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._GetWithHashResponse._Found.prototype.toObject=function(e){return o._GetWithHashResponse._Found.toObject(e,this)},o._GetWithHashResponse._Found.toObject=function(e,t){var r={value:t.getValue_asB64(),hash:t.getHash_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._GetWithHashResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetWithHashResponse._Found;return o._GetWithHashResponse._Found.deserializeBinaryFromReader(s,r)},o._GetWithHashResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setValue(r);break;case 2:r=t.readBytes(),e.setHash(r);break;default:t.skipField()}return e},o._GetWithHashResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetWithHashResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetWithHashResponse._Found.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getValue_asU8()).length>0&&t.writeBytes(1,r),(r=e.getHash_asU8()).length>0&&t.writeBytes(2,r)},o._GetWithHashResponse._Found.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GetWithHashResponse._Found.prototype.getValue_asB64=function(){return t.Message.bytesAsB64(this.getValue())},o._GetWithHashResponse._Found.prototype.getValue_asU8=function(){return t.Message.bytesAsU8(this.getValue())},o._GetWithHashResponse._Found.prototype.setValue=function(e){return t.Message.setProto3BytesField(this,1,e)},o._GetWithHashResponse._Found.prototype.getHash=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GetWithHashResponse._Found.prototype.getHash_asB64=function(){return t.Message.bytesAsB64(this.getHash())},o._GetWithHashResponse._Found.prototype.getHash_asU8=function(){return t.Message.bytesAsU8(this.getHash())},o._GetWithHashResponse._Found.prototype.setHash=function(e){return t.Message.setProto3BytesField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._GetWithHashResponse._Missing.prototype.toObject=function(e){return o._GetWithHashResponse._Missing.toObject(e,this)},o._GetWithHashResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._GetWithHashResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetWithHashResponse._Missing;return o._GetWithHashResponse._Missing.deserializeBinaryFromReader(s,r)},o._GetWithHashResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._GetWithHashResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetWithHashResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetWithHashResponse._Missing.serializeBinaryToWriter=function(e,t){},o._GetWithHashResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._GetWithHashResponse._Found,1)},o._GetWithHashResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._GetWithHashResponse.oneofGroups_[0],e)},o._GetWithHashResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._GetWithHashResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._GetWithHashResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._GetWithHashResponse._Missing,2)},o._GetWithHashResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._GetWithHashResponse.oneofGroups_[0],e)},o._GetWithHashResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._GetWithHashResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._GetBatchRequest.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._GetBatchRequest.prototype.toObject=function(e){return o._GetBatchRequest.toObject(e,this)},o._GetBatchRequest.toObject=function(e,r){var s={itemsList:t.Message.toObjectList(r.getItemsList(),o._GetRequest.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._GetBatchRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetBatchRequest;return o._GetBatchRequest.deserializeBinaryFromReader(s,r)},o._GetBatchRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._GetRequest;t.readMessage(r,o._GetRequest.deserializeBinaryFromReader),e.addItems(r)}else t.skipField();return e},o._GetBatchRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetBatchRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetBatchRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getItemsList()).length>0&&t.writeRepeatedMessage(1,r,o._GetRequest.serializeBinaryToWriter)},o._GetBatchRequest.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,o._GetRequest,1)},o._GetBatchRequest.prototype.setItemsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._GetBatchRequest.prototype.addItems=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._GetRequest,r)},o._GetBatchRequest.prototype.clearItemsList=function(){return this.setItemsList([])},t.Message.GENERATE_TO_OBJECT&&(o._DeleteRequest.prototype.toObject=function(e){return o._DeleteRequest.toObject(e,this)},o._DeleteRequest.toObject=function(e,t){var r={cacheKey:t.getCacheKey_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._DeleteRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DeleteRequest;return o._DeleteRequest.deserializeBinaryFromReader(s,r)},o._DeleteRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setCacheKey(r)}else t.skipField();return e},o._DeleteRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DeleteRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DeleteRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r)},o._DeleteRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DeleteRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._DeleteRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._DeleteRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._DeleteResponse.prototype.toObject=function(e){return o._DeleteResponse.toObject(e,this)},o._DeleteResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DeleteResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DeleteResponse;return o._DeleteResponse.deserializeBinaryFromReader(s,r)},o._DeleteResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DeleteResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DeleteResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DeleteResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._SetRequest.prototype.toObject=function(e){return o._SetRequest.toObject(e,this)},o._SetRequest.toObject=function(e,r){var o={cacheKey:r.getCacheKey_asB64(),cacheBody:r.getCacheBody_asB64(),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SetRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetRequest;return o._SetRequest.deserializeBinaryFromReader(s,r)},o._SetRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setCacheKey(r);break;case 2:r=t.readBytes(),e.setCacheBody(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;default:t.skipField()}return e},o._SetRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r),(r=e.getCacheBody_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r)},o._SetRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._SetRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._SetRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetRequest.prototype.getCacheBody=function(){return t.Message.getFieldWithDefault(this,2,"")},o._SetRequest.prototype.getCacheBody_asB64=function(){return t.Message.bytesAsB64(this.getCacheBody())},o._SetRequest.prototype.getCacheBody_asU8=function(){return t.Message.bytesAsU8(this.getCacheBody())},o._SetRequest.prototype.setCacheBody=function(e){return t.Message.setProto3BytesField(this,2,e)},o._SetRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._SetRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},t.Message.GENERATE_TO_OBJECT&&(o._SetResponse.prototype.toObject=function(e){return o._SetResponse.toObject(e,this)},o._SetResponse.toObject=function(e,r){var o={result:t.Message.getFieldWithDefault(r,1,0),message:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o._SetResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetResponse;return o._SetResponse.deserializeBinaryFromReader(s,r)},o._SetResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setResult(r);break;case 2:r=t.readString(),e.setMessage(r);break;default:t.skipField()}return e},o._SetResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getResult())&&t.writeEnum(1,r),(r=e.getMessage()).length>0&&t.writeString(2,r)},o._SetResponse.prototype.getResult=function(){return t.Message.getFieldWithDefault(this,1,0)},o._SetResponse.prototype.setResult=function(e){return t.Message.setProto3EnumField(this,1,e)},o._SetResponse.prototype.getMessage=function(){return t.Message.getFieldWithDefault(this,2,"")},o._SetResponse.prototype.setMessage=function(e){return t.Message.setProto3StringField(this,2,e)},o._SetBatchRequest.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SetBatchRequest.prototype.toObject=function(e){return o._SetBatchRequest.toObject(e,this)},o._SetBatchRequest.toObject=function(e,r){var s={itemsList:t.Message.toObjectList(r.getItemsList(),o._SetRequest.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._SetBatchRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetBatchRequest;return o._SetBatchRequest.deserializeBinaryFromReader(s,r)},o._SetBatchRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._SetRequest;t.readMessage(r,o._SetRequest.deserializeBinaryFromReader),e.addItems(r)}else t.skipField();return e},o._SetBatchRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetBatchRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetBatchRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getItemsList()).length>0&&t.writeRepeatedMessage(1,r,o._SetRequest.serializeBinaryToWriter)},o._SetBatchRequest.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,o._SetRequest,1)},o._SetBatchRequest.prototype.setItemsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._SetBatchRequest.prototype.addItems=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._SetRequest,r)},o._SetBatchRequest.prototype.clearItemsList=function(){return this.setItemsList([])},o._SetIfRequest.oneofGroups_=[[4,5,6,7,8,9]],o._SetIfRequest.ConditionCase={CONDITION_NOT_SET:0,PRESENT:4,PRESENT_AND_NOT_EQUAL:5,ABSENT:6,EQUAL:7,ABSENT_OR_EQUAL:8,NOT_EQUAL:9},o._SetIfRequest.prototype.getConditionCase=function(){return t.Message.computeOneofCase(this,o._SetIfRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetIfRequest.prototype.toObject=function(e){return o._SetIfRequest.toObject(e,this)},o._SetIfRequest.toObject=function(e,r){var o,n={cacheKey:r.getCacheKey_asB64(),cacheBody:r.getCacheBody_asB64(),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0),present:(o=r.getPresent())&&s.Present.toObject(e,o),presentAndNotEqual:(o=r.getPresentAndNotEqual())&&s.PresentAndNotEqual.toObject(e,o),absent:(o=r.getAbsent())&&s.Absent.toObject(e,o),equal:(o=r.getEqual())&&s.Equal.toObject(e,o),absentOrEqual:(o=r.getAbsentOrEqual())&&s.AbsentOrEqual.toObject(e,o),notEqual:(o=r.getNotEqual())&&s.NotEqual.toObject(e,o)};return e&&(n.$jspbMessageInstance=r),n}),o._SetIfRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfRequest;return o._SetIfRequest.deserializeBinaryFromReader(s,r)},o._SetIfRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setCacheKey(r);break;case 2:r=t.readBytes(),e.setCacheBody(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 4:r=new s.Present,t.readMessage(r,s.Present.deserializeBinaryFromReader),e.setPresent(r);break;case 5:r=new s.PresentAndNotEqual,t.readMessage(r,s.PresentAndNotEqual.deserializeBinaryFromReader),e.setPresentAndNotEqual(r);break;case 6:r=new s.Absent,t.readMessage(r,s.Absent.deserializeBinaryFromReader),e.setAbsent(r);break;case 7:r=new s.Equal,t.readMessage(r,s.Equal.deserializeBinaryFromReader),e.setEqual(r);break;case 8:r=new s.AbsentOrEqual,t.readMessage(r,s.AbsentOrEqual.deserializeBinaryFromReader),e.setAbsentOrEqual(r);break;case 9:r=new s.NotEqual,t.readMessage(r,s.NotEqual.deserializeBinaryFromReader),e.setNotEqual(r);break;default:t.skipField()}return e},o._SetIfRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r),(r=e.getCacheBody_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r),null!=(r=e.getPresent())&&t.writeMessage(4,r,s.Present.serializeBinaryToWriter),null!=(r=e.getPresentAndNotEqual())&&t.writeMessage(5,r,s.PresentAndNotEqual.serializeBinaryToWriter),null!=(r=e.getAbsent())&&t.writeMessage(6,r,s.Absent.serializeBinaryToWriter),null!=(r=e.getEqual())&&t.writeMessage(7,r,s.Equal.serializeBinaryToWriter),null!=(r=e.getAbsentOrEqual())&&t.writeMessage(8,r,s.AbsentOrEqual.serializeBinaryToWriter),null!=(r=e.getNotEqual())&&t.writeMessage(9,r,s.NotEqual.serializeBinaryToWriter)},o._SetIfRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetIfRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._SetIfRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._SetIfRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetIfRequest.prototype.getCacheBody=function(){return t.Message.getFieldWithDefault(this,2,"")},o._SetIfRequest.prototype.getCacheBody_asB64=function(){return t.Message.bytesAsB64(this.getCacheBody())},o._SetIfRequest.prototype.getCacheBody_asU8=function(){return t.Message.bytesAsU8(this.getCacheBody())},o._SetIfRequest.prototype.setCacheBody=function(e){return t.Message.setProto3BytesField(this,2,e)},o._SetIfRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._SetIfRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._SetIfRequest.prototype.getPresent=function(){return t.Message.getWrapperField(this,s.Present,4)},o._SetIfRequest.prototype.setPresent=function(e){return t.Message.setOneofWrapperField(this,4,o._SetIfRequest.oneofGroups_[0],e)},o._SetIfRequest.prototype.clearPresent=function(){return this.setPresent(void 0)},o._SetIfRequest.prototype.hasPresent=function(){return null!=t.Message.getField(this,4)},o._SetIfRequest.prototype.getPresentAndNotEqual=function(){return t.Message.getWrapperField(this,s.PresentAndNotEqual,5)},o._SetIfRequest.prototype.setPresentAndNotEqual=function(e){return t.Message.setOneofWrapperField(this,5,o._SetIfRequest.oneofGroups_[0],e)},o._SetIfRequest.prototype.clearPresentAndNotEqual=function(){return this.setPresentAndNotEqual(void 0)},o._SetIfRequest.prototype.hasPresentAndNotEqual=function(){return null!=t.Message.getField(this,5)},o._SetIfRequest.prototype.getAbsent=function(){return t.Message.getWrapperField(this,s.Absent,6)},o._SetIfRequest.prototype.setAbsent=function(e){return t.Message.setOneofWrapperField(this,6,o._SetIfRequest.oneofGroups_[0],e)},o._SetIfRequest.prototype.clearAbsent=function(){return this.setAbsent(void 0)},o._SetIfRequest.prototype.hasAbsent=function(){return null!=t.Message.getField(this,6)},o._SetIfRequest.prototype.getEqual=function(){return t.Message.getWrapperField(this,s.Equal,7)},o._SetIfRequest.prototype.setEqual=function(e){return t.Message.setOneofWrapperField(this,7,o._SetIfRequest.oneofGroups_[0],e)},o._SetIfRequest.prototype.clearEqual=function(){return this.setEqual(void 0)},o._SetIfRequest.prototype.hasEqual=function(){return null!=t.Message.getField(this,7)},o._SetIfRequest.prototype.getAbsentOrEqual=function(){return t.Message.getWrapperField(this,s.AbsentOrEqual,8)},o._SetIfRequest.prototype.setAbsentOrEqual=function(e){return t.Message.setOneofWrapperField(this,8,o._SetIfRequest.oneofGroups_[0],e)},o._SetIfRequest.prototype.clearAbsentOrEqual=function(){return this.setAbsentOrEqual(void 0)},o._SetIfRequest.prototype.hasAbsentOrEqual=function(){return null!=t.Message.getField(this,8)},o._SetIfRequest.prototype.getNotEqual=function(){return t.Message.getWrapperField(this,s.NotEqual,9)},o._SetIfRequest.prototype.setNotEqual=function(e){return t.Message.setOneofWrapperField(this,9,o._SetIfRequest.oneofGroups_[0],e)},o._SetIfRequest.prototype.clearNotEqual=function(){return this.setNotEqual(void 0)},o._SetIfRequest.prototype.hasNotEqual=function(){return null!=t.Message.getField(this,9)},o._SetIfResponse.oneofGroups_=[[1,2]],o._SetIfResponse.ResultCase={RESULT_NOT_SET:0,STORED:1,NOT_STORED:2},o._SetIfResponse.prototype.getResultCase=function(){return t.Message.computeOneofCase(this,o._SetIfResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetIfResponse.prototype.toObject=function(e){return o._SetIfResponse.toObject(e,this)},o._SetIfResponse.toObject=function(e,t){var r,s={stored:(r=t.getStored())&&o._SetIfResponse._Stored.toObject(e,r),notStored:(r=t.getNotStored())&&o._SetIfResponse._NotStored.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetIfResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfResponse;return o._SetIfResponse.deserializeBinaryFromReader(s,r)},o._SetIfResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetIfResponse._Stored;t.readMessage(r,o._SetIfResponse._Stored.deserializeBinaryFromReader),e.setStored(r);break;case 2:r=new o._SetIfResponse._NotStored,t.readMessage(r,o._SetIfResponse._NotStored.deserializeBinaryFromReader),e.setNotStored(r);break;default:t.skipField()}return e},o._SetIfResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getStored())&&t.writeMessage(1,r,o._SetIfResponse._Stored.serializeBinaryToWriter),null!=(r=e.getNotStored())&&t.writeMessage(2,r,o._SetIfResponse._NotStored.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SetIfResponse._Stored.prototype.toObject=function(e){return o._SetIfResponse._Stored.toObject(e,this)},o._SetIfResponse._Stored.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetIfResponse._Stored.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfResponse._Stored;return o._SetIfResponse._Stored.deserializeBinaryFromReader(s,r)},o._SetIfResponse._Stored.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetIfResponse._Stored.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfResponse._Stored.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfResponse._Stored.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._SetIfResponse._NotStored.prototype.toObject=function(e){return o._SetIfResponse._NotStored.toObject(e,this)},o._SetIfResponse._NotStored.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetIfResponse._NotStored.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfResponse._NotStored;return o._SetIfResponse._NotStored.deserializeBinaryFromReader(s,r)},o._SetIfResponse._NotStored.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetIfResponse._NotStored.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfResponse._NotStored.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfResponse._NotStored.serializeBinaryToWriter=function(e,t){},o._SetIfResponse.prototype.getStored=function(){return t.Message.getWrapperField(this,o._SetIfResponse._Stored,1)},o._SetIfResponse.prototype.setStored=function(e){return t.Message.setOneofWrapperField(this,1,o._SetIfResponse.oneofGroups_[0],e)},o._SetIfResponse.prototype.clearStored=function(){return this.setStored(void 0)},o._SetIfResponse.prototype.hasStored=function(){return null!=t.Message.getField(this,1)},o._SetIfResponse.prototype.getNotStored=function(){return t.Message.getWrapperField(this,o._SetIfResponse._NotStored,2)},o._SetIfResponse.prototype.setNotStored=function(e){return t.Message.setOneofWrapperField(this,2,o._SetIfResponse.oneofGroups_[0],e)},o._SetIfResponse.prototype.clearNotStored=function(){return this.setNotStored(void 0)},o._SetIfResponse.prototype.hasNotStored=function(){return null!=t.Message.getField(this,2)},o._SetIfHashRequest.oneofGroups_=[[4,5,6,7,8]],o._SetIfHashRequest.ConditionCase={CONDITION_NOT_SET:0,PRESENT_AND_NOT_HASH_EQUAL:4,PRESENT_AND_HASH_EQUAL:5,ABSENT_OR_HASH_EQUAL:6,ABSENT_OR_NOT_HASH_EQUAL:7,UNCONDITIONAL:8},o._SetIfHashRequest.prototype.getConditionCase=function(){return t.Message.computeOneofCase(this,o._SetIfHashRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetIfHashRequest.prototype.toObject=function(e){return o._SetIfHashRequest.toObject(e,this)},o._SetIfHashRequest.toObject=function(e,r){var o,n={cacheKey:r.getCacheKey_asB64(),cacheBody:r.getCacheBody_asB64(),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0),presentAndNotHashEqual:(o=r.getPresentAndNotHashEqual())&&s.PresentAndNotHashEqual.toObject(e,o),presentAndHashEqual:(o=r.getPresentAndHashEqual())&&s.PresentAndHashEqual.toObject(e,o),absentOrHashEqual:(o=r.getAbsentOrHashEqual())&&s.AbsentOrHashEqual.toObject(e,o),absentOrNotHashEqual:(o=r.getAbsentOrNotHashEqual())&&s.AbsentOrNotHashEqual.toObject(e,o),unconditional:(o=r.getUnconditional())&&s.Unconditional.toObject(e,o)};return e&&(n.$jspbMessageInstance=r),n}),o._SetIfHashRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfHashRequest;return o._SetIfHashRequest.deserializeBinaryFromReader(s,r)},o._SetIfHashRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setCacheKey(r);break;case 2:r=t.readBytes(),e.setCacheBody(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 4:r=new s.PresentAndNotHashEqual,t.readMessage(r,s.PresentAndNotHashEqual.deserializeBinaryFromReader),e.setPresentAndNotHashEqual(r);break;case 5:r=new s.PresentAndHashEqual,t.readMessage(r,s.PresentAndHashEqual.deserializeBinaryFromReader),e.setPresentAndHashEqual(r);break;case 6:r=new s.AbsentOrHashEqual,t.readMessage(r,s.AbsentOrHashEqual.deserializeBinaryFromReader),e.setAbsentOrHashEqual(r);break;case 7:r=new s.AbsentOrNotHashEqual,t.readMessage(r,s.AbsentOrNotHashEqual.deserializeBinaryFromReader),e.setAbsentOrNotHashEqual(r);break;case 8:r=new s.Unconditional,t.readMessage(r,s.Unconditional.deserializeBinaryFromReader),e.setUnconditional(r);break;default:t.skipField()}return e},o._SetIfHashRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfHashRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfHashRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r),(r=e.getCacheBody_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r),null!=(r=e.getPresentAndNotHashEqual())&&t.writeMessage(4,r,s.PresentAndNotHashEqual.serializeBinaryToWriter),null!=(r=e.getPresentAndHashEqual())&&t.writeMessage(5,r,s.PresentAndHashEqual.serializeBinaryToWriter),null!=(r=e.getAbsentOrHashEqual())&&t.writeMessage(6,r,s.AbsentOrHashEqual.serializeBinaryToWriter),null!=(r=e.getAbsentOrNotHashEqual())&&t.writeMessage(7,r,s.AbsentOrNotHashEqual.serializeBinaryToWriter),null!=(r=e.getUnconditional())&&t.writeMessage(8,r,s.Unconditional.serializeBinaryToWriter)},o._SetIfHashRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetIfHashRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._SetIfHashRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._SetIfHashRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetIfHashRequest.prototype.getCacheBody=function(){return t.Message.getFieldWithDefault(this,2,"")},o._SetIfHashRequest.prototype.getCacheBody_asB64=function(){return t.Message.bytesAsB64(this.getCacheBody())},o._SetIfHashRequest.prototype.getCacheBody_asU8=function(){return t.Message.bytesAsU8(this.getCacheBody())},o._SetIfHashRequest.prototype.setCacheBody=function(e){return t.Message.setProto3BytesField(this,2,e)},o._SetIfHashRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._SetIfHashRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._SetIfHashRequest.prototype.getPresentAndNotHashEqual=function(){return t.Message.getWrapperField(this,s.PresentAndNotHashEqual,4)},o._SetIfHashRequest.prototype.setPresentAndNotHashEqual=function(e){return t.Message.setOneofWrapperField(this,4,o._SetIfHashRequest.oneofGroups_[0],e)},o._SetIfHashRequest.prototype.clearPresentAndNotHashEqual=function(){return this.setPresentAndNotHashEqual(void 0)},o._SetIfHashRequest.prototype.hasPresentAndNotHashEqual=function(){return null!=t.Message.getField(this,4)},o._SetIfHashRequest.prototype.getPresentAndHashEqual=function(){return t.Message.getWrapperField(this,s.PresentAndHashEqual,5)},o._SetIfHashRequest.prototype.setPresentAndHashEqual=function(e){return t.Message.setOneofWrapperField(this,5,o._SetIfHashRequest.oneofGroups_[0],e)},o._SetIfHashRequest.prototype.clearPresentAndHashEqual=function(){return this.setPresentAndHashEqual(void 0)},o._SetIfHashRequest.prototype.hasPresentAndHashEqual=function(){return null!=t.Message.getField(this,5)},o._SetIfHashRequest.prototype.getAbsentOrHashEqual=function(){return t.Message.getWrapperField(this,s.AbsentOrHashEqual,6)},o._SetIfHashRequest.prototype.setAbsentOrHashEqual=function(e){return t.Message.setOneofWrapperField(this,6,o._SetIfHashRequest.oneofGroups_[0],e)},o._SetIfHashRequest.prototype.clearAbsentOrHashEqual=function(){return this.setAbsentOrHashEqual(void 0)},o._SetIfHashRequest.prototype.hasAbsentOrHashEqual=function(){return null!=t.Message.getField(this,6)},o._SetIfHashRequest.prototype.getAbsentOrNotHashEqual=function(){return t.Message.getWrapperField(this,s.AbsentOrNotHashEqual,7)},o._SetIfHashRequest.prototype.setAbsentOrNotHashEqual=function(e){return t.Message.setOneofWrapperField(this,7,o._SetIfHashRequest.oneofGroups_[0],e)},o._SetIfHashRequest.prototype.clearAbsentOrNotHashEqual=function(){return this.setAbsentOrNotHashEqual(void 0)},o._SetIfHashRequest.prototype.hasAbsentOrNotHashEqual=function(){return null!=t.Message.getField(this,7)},o._SetIfHashRequest.prototype.getUnconditional=function(){return t.Message.getWrapperField(this,s.Unconditional,8)},o._SetIfHashRequest.prototype.setUnconditional=function(e){return t.Message.setOneofWrapperField(this,8,o._SetIfHashRequest.oneofGroups_[0],e)},o._SetIfHashRequest.prototype.clearUnconditional=function(){return this.setUnconditional(void 0)},o._SetIfHashRequest.prototype.hasUnconditional=function(){return null!=t.Message.getField(this,8)},o._SetIfHashResponse.oneofGroups_=[[1,2]],o._SetIfHashResponse.ResultCase={RESULT_NOT_SET:0,STORED:1,NOT_STORED:2},o._SetIfHashResponse.prototype.getResultCase=function(){return t.Message.computeOneofCase(this,o._SetIfHashResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetIfHashResponse.prototype.toObject=function(e){return o._SetIfHashResponse.toObject(e,this)},o._SetIfHashResponse.toObject=function(e,t){var r,s={stored:(r=t.getStored())&&o._SetIfHashResponse._Stored.toObject(e,r),notStored:(r=t.getNotStored())&&o._SetIfHashResponse._NotStored.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetIfHashResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfHashResponse;return o._SetIfHashResponse.deserializeBinaryFromReader(s,r)},o._SetIfHashResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetIfHashResponse._Stored;t.readMessage(r,o._SetIfHashResponse._Stored.deserializeBinaryFromReader),e.setStored(r);break;case 2:r=new o._SetIfHashResponse._NotStored,t.readMessage(r,o._SetIfHashResponse._NotStored.deserializeBinaryFromReader),e.setNotStored(r);break;default:t.skipField()}return e},o._SetIfHashResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfHashResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfHashResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getStored())&&t.writeMessage(1,r,o._SetIfHashResponse._Stored.serializeBinaryToWriter),null!=(r=e.getNotStored())&&t.writeMessage(2,r,o._SetIfHashResponse._NotStored.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SetIfHashResponse._Stored.prototype.toObject=function(e){return o._SetIfHashResponse._Stored.toObject(e,this)},o._SetIfHashResponse._Stored.toObject=function(e,t){var r={newHash:t.getNewHash_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SetIfHashResponse._Stored.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfHashResponse._Stored;return o._SetIfHashResponse._Stored.deserializeBinaryFromReader(s,r)},o._SetIfHashResponse._Stored.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setNewHash(r)}else t.skipField();return e},o._SetIfHashResponse._Stored.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfHashResponse._Stored.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfHashResponse._Stored.serializeBinaryToWriter=function(e,t){var r;(r=e.getNewHash_asU8()).length>0&&t.writeBytes(1,r)},o._SetIfHashResponse._Stored.prototype.getNewHash=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetIfHashResponse._Stored.prototype.getNewHash_asB64=function(){return t.Message.bytesAsB64(this.getNewHash())},o._SetIfHashResponse._Stored.prototype.getNewHash_asU8=function(){return t.Message.bytesAsU8(this.getNewHash())},o._SetIfHashResponse._Stored.prototype.setNewHash=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._SetIfHashResponse._NotStored.prototype.toObject=function(e){return o._SetIfHashResponse._NotStored.toObject(e,this)},o._SetIfHashResponse._NotStored.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetIfHashResponse._NotStored.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfHashResponse._NotStored;return o._SetIfHashResponse._NotStored.deserializeBinaryFromReader(s,r)},o._SetIfHashResponse._NotStored.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetIfHashResponse._NotStored.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfHashResponse._NotStored.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfHashResponse._NotStored.serializeBinaryToWriter=function(e,t){},o._SetIfHashResponse.prototype.getStored=function(){return t.Message.getWrapperField(this,o._SetIfHashResponse._Stored,1)},o._SetIfHashResponse.prototype.setStored=function(e){return t.Message.setOneofWrapperField(this,1,o._SetIfHashResponse.oneofGroups_[0],e)},o._SetIfHashResponse.prototype.clearStored=function(){return this.setStored(void 0)},o._SetIfHashResponse.prototype.hasStored=function(){return null!=t.Message.getField(this,1)},o._SetIfHashResponse.prototype.getNotStored=function(){return t.Message.getWrapperField(this,o._SetIfHashResponse._NotStored,2)},o._SetIfHashResponse.prototype.setNotStored=function(e){return t.Message.setOneofWrapperField(this,2,o._SetIfHashResponse.oneofGroups_[0],e)},o._SetIfHashResponse.prototype.clearNotStored=function(){return this.setNotStored(void 0)},o._SetIfHashResponse.prototype.hasNotStored=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._SetIfNotExistsRequest.prototype.toObject=function(e){return o._SetIfNotExistsRequest.toObject(e,this)},o._SetIfNotExistsRequest.toObject=function(e,r){var o={cacheKey:r.getCacheKey_asB64(),cacheBody:r.getCacheBody_asB64(),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SetIfNotExistsRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfNotExistsRequest;return o._SetIfNotExistsRequest.deserializeBinaryFromReader(s,r)},o._SetIfNotExistsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setCacheKey(r);break;case 2:r=t.readBytes(),e.setCacheBody(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;default:t.skipField()}return e},o._SetIfNotExistsRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfNotExistsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfNotExistsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r),(r=e.getCacheBody_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r)},o._SetIfNotExistsRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetIfNotExistsRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._SetIfNotExistsRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._SetIfNotExistsRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetIfNotExistsRequest.prototype.getCacheBody=function(){return t.Message.getFieldWithDefault(this,2,"")},o._SetIfNotExistsRequest.prototype.getCacheBody_asB64=function(){return t.Message.bytesAsB64(this.getCacheBody())},o._SetIfNotExistsRequest.prototype.getCacheBody_asU8=function(){return t.Message.bytesAsU8(this.getCacheBody())},o._SetIfNotExistsRequest.prototype.setCacheBody=function(e){return t.Message.setProto3BytesField(this,2,e)},o._SetIfNotExistsRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._SetIfNotExistsRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._SetIfNotExistsResponse.oneofGroups_=[[1,2]],o._SetIfNotExistsResponse.ResultCase={RESULT_NOT_SET:0,STORED:1,NOT_STORED:2},o._SetIfNotExistsResponse.prototype.getResultCase=function(){return t.Message.computeOneofCase(this,o._SetIfNotExistsResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetIfNotExistsResponse.prototype.toObject=function(e){return o._SetIfNotExistsResponse.toObject(e,this)},o._SetIfNotExistsResponse.toObject=function(e,t){var r,s={stored:(r=t.getStored())&&o._SetIfNotExistsResponse._Stored.toObject(e,r),notStored:(r=t.getNotStored())&&o._SetIfNotExistsResponse._NotStored.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetIfNotExistsResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfNotExistsResponse;return o._SetIfNotExistsResponse.deserializeBinaryFromReader(s,r)},o._SetIfNotExistsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetIfNotExistsResponse._Stored;t.readMessage(r,o._SetIfNotExistsResponse._Stored.deserializeBinaryFromReader),e.setStored(r);break;case 2:r=new o._SetIfNotExistsResponse._NotStored,t.readMessage(r,o._SetIfNotExistsResponse._NotStored.deserializeBinaryFromReader),e.setNotStored(r);break;default:t.skipField()}return e},o._SetIfNotExistsResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfNotExistsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfNotExistsResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getStored())&&t.writeMessage(1,r,o._SetIfNotExistsResponse._Stored.serializeBinaryToWriter),null!=(r=e.getNotStored())&&t.writeMessage(2,r,o._SetIfNotExistsResponse._NotStored.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SetIfNotExistsResponse._Stored.prototype.toObject=function(e){return o._SetIfNotExistsResponse._Stored.toObject(e,this)},o._SetIfNotExistsResponse._Stored.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetIfNotExistsResponse._Stored.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfNotExistsResponse._Stored;return o._SetIfNotExistsResponse._Stored.deserializeBinaryFromReader(s,r)},o._SetIfNotExistsResponse._Stored.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetIfNotExistsResponse._Stored.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfNotExistsResponse._Stored.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfNotExistsResponse._Stored.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._SetIfNotExistsResponse._NotStored.prototype.toObject=function(e){return o._SetIfNotExistsResponse._NotStored.toObject(e,this)},o._SetIfNotExistsResponse._NotStored.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetIfNotExistsResponse._NotStored.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetIfNotExistsResponse._NotStored;return o._SetIfNotExistsResponse._NotStored.deserializeBinaryFromReader(s,r)},o._SetIfNotExistsResponse._NotStored.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetIfNotExistsResponse._NotStored.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetIfNotExistsResponse._NotStored.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetIfNotExistsResponse._NotStored.serializeBinaryToWriter=function(e,t){},o._SetIfNotExistsResponse.prototype.getStored=function(){return t.Message.getWrapperField(this,o._SetIfNotExistsResponse._Stored,1)},o._SetIfNotExistsResponse.prototype.setStored=function(e){return t.Message.setOneofWrapperField(this,1,o._SetIfNotExistsResponse.oneofGroups_[0],e)},o._SetIfNotExistsResponse.prototype.clearStored=function(){return this.setStored(void 0)},o._SetIfNotExistsResponse.prototype.hasStored=function(){return null!=t.Message.getField(this,1)},o._SetIfNotExistsResponse.prototype.getNotStored=function(){return t.Message.getWrapperField(this,o._SetIfNotExistsResponse._NotStored,2)},o._SetIfNotExistsResponse.prototype.setNotStored=function(e){return t.Message.setOneofWrapperField(this,2,o._SetIfNotExistsResponse.oneofGroups_[0],e)},o._SetIfNotExistsResponse.prototype.clearNotStored=function(){return this.setNotStored(void 0)},o._SetIfNotExistsResponse.prototype.hasNotStored=function(){return null!=t.Message.getField(this,2)},o._KeysExistRequest.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._KeysExistRequest.prototype.toObject=function(e){return o._KeysExistRequest.toObject(e,this)},o._KeysExistRequest.toObject=function(e,t){var r={cacheKeysList:t.getCacheKeysList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._KeysExistRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._KeysExistRequest;return o._KeysExistRequest.deserializeBinaryFromReader(s,r)},o._KeysExistRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addCacheKeys(r)}else t.skipField();return e},o._KeysExistRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._KeysExistRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._KeysExistRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheKeysList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._KeysExistRequest.prototype.getCacheKeysList=function(){return t.Message.getRepeatedField(this,1)},o._KeysExistRequest.prototype.getCacheKeysList_asB64=function(){return t.Message.bytesListAsB64(this.getCacheKeysList())},o._KeysExistRequest.prototype.getCacheKeysList_asU8=function(){return t.Message.bytesListAsU8(this.getCacheKeysList())},o._KeysExistRequest.prototype.setCacheKeysList=function(e){return t.Message.setField(this,1,e||[])},o._KeysExistRequest.prototype.addCacheKeys=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._KeysExistRequest.prototype.clearCacheKeysList=function(){return this.setCacheKeysList([])},o._KeysExistResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._KeysExistResponse.prototype.toObject=function(e){return o._KeysExistResponse.toObject(e,this)},o._KeysExistResponse.toObject=function(e,r){var o,s={existsList:null==(o=t.Message.getRepeatedBooleanField(r,1))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),o._KeysExistResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._KeysExistResponse;return o._KeysExistResponse.deserializeBinaryFromReader(s,r)},o._KeysExistResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber())for(var r=t.isDelimited()?t.readPackedBool():[t.readBool()],o=0;o<r.length;o++)e.addExists(r[o]);else t.skipField();return e},o._KeysExistResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._KeysExistResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._KeysExistResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getExistsList()).length>0&&t.writePackedBool(1,r)},o._KeysExistResponse.prototype.getExistsList=function(){return t.Message.getRepeatedBooleanField(this,1)},o._KeysExistResponse.prototype.setExistsList=function(e){return t.Message.setField(this,1,e||[])},o._KeysExistResponse.prototype.addExists=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._KeysExistResponse.prototype.clearExistsList=function(){return this.setExistsList([])},t.Message.GENERATE_TO_OBJECT&&(o._IncrementRequest.prototype.toObject=function(e){return o._IncrementRequest.toObject(e,this)},o._IncrementRequest.toObject=function(e,r){var o={cacheKey:r.getCacheKey_asB64(),amount:t.Message.getFieldWithDefault(r,2,0),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0)};return e&&(o.$jspbMessageInstance=r),o}),o._IncrementRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._IncrementRequest;return o._IncrementRequest.deserializeBinaryFromReader(s,r)},o._IncrementRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setCacheKey(r);break;case 2:r=t.readInt64(),e.setAmount(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;default:t.skipField()}return e},o._IncrementRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._IncrementRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._IncrementRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getAmount())&&t.writeInt64(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r)},o._IncrementRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._IncrementRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._IncrementRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._IncrementRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},o._IncrementRequest.prototype.getAmount=function(){return t.Message.getFieldWithDefault(this,2,0)},o._IncrementRequest.prototype.setAmount=function(e){return t.Message.setProto3IntField(this,2,e)},o._IncrementRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._IncrementRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},t.Message.GENERATE_TO_OBJECT&&(o._IncrementResponse.prototype.toObject=function(e){return o._IncrementResponse.toObject(e,this)},o._IncrementResponse.toObject=function(e,r){var o={value:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._IncrementResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._IncrementResponse;return o._IncrementResponse.deserializeBinaryFromReader(s,r)},o._IncrementResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readInt64();e.setValue(r)}else t.skipField();return e},o._IncrementResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._IncrementResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._IncrementResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeInt64(1,r)},o._IncrementResponse.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,1,0)},o._IncrementResponse.prototype.setValue=function(e){return t.Message.setProto3IntField(this,1,e)},o._UpdateTtlRequest.oneofGroups_=[[2,3,4]],o._UpdateTtlRequest.UpdateTtlCase={UPDATE_TTL_NOT_SET:0,INCREASE_TO_MILLISECONDS:2,DECREASE_TO_MILLISECONDS:3,OVERWRITE_TO_MILLISECONDS:4},o._UpdateTtlRequest.prototype.getUpdateTtlCase=function(){return t.Message.computeOneofCase(this,o._UpdateTtlRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._UpdateTtlRequest.prototype.toObject=function(e){return o._UpdateTtlRequest.toObject(e,this)},o._UpdateTtlRequest.toObject=function(e,r){var o={cacheKey:r.getCacheKey_asB64(),increaseToMilliseconds:t.Message.getFieldWithDefault(r,2,0),decreaseToMilliseconds:t.Message.getFieldWithDefault(r,3,0),overwriteToMilliseconds:t.Message.getFieldWithDefault(r,4,0)};return e&&(o.$jspbMessageInstance=r),o}),o._UpdateTtlRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._UpdateTtlRequest;return o._UpdateTtlRequest.deserializeBinaryFromReader(s,r)},o._UpdateTtlRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setCacheKey(r);break;case 2:r=t.readUint64(),e.setIncreaseToMilliseconds(r);break;case 3:r=t.readUint64(),e.setDecreaseToMilliseconds(r);break;case 4:r=t.readUint64(),e.setOverwriteToMilliseconds(r);break;default:t.skipField()}return e},o._UpdateTtlRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._UpdateTtlRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._UpdateTtlRequest.serializeBinaryToWriter=function(e,r){var o=void 0;(o=e.getCacheKey_asU8()).length>0&&r.writeBytes(1,o),null!=(o=t.Message.getField(e,2))&&r.writeUint64(2,o),null!=(o=t.Message.getField(e,3))&&r.writeUint64(3,o),null!=(o=t.Message.getField(e,4))&&r.writeUint64(4,o)},o._UpdateTtlRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._UpdateTtlRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._UpdateTtlRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._UpdateTtlRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},o._UpdateTtlRequest.prototype.getIncreaseToMilliseconds=function(){return t.Message.getFieldWithDefault(this,2,0)},o._UpdateTtlRequest.prototype.setIncreaseToMilliseconds=function(e){return t.Message.setOneofField(this,2,o._UpdateTtlRequest.oneofGroups_[0],e)},o._UpdateTtlRequest.prototype.clearIncreaseToMilliseconds=function(){return t.Message.setOneofField(this,2,o._UpdateTtlRequest.oneofGroups_[0],void 0)},o._UpdateTtlRequest.prototype.hasIncreaseToMilliseconds=function(){return null!=t.Message.getField(this,2)},o._UpdateTtlRequest.prototype.getDecreaseToMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._UpdateTtlRequest.prototype.setDecreaseToMilliseconds=function(e){return t.Message.setOneofField(this,3,o._UpdateTtlRequest.oneofGroups_[0],e)},o._UpdateTtlRequest.prototype.clearDecreaseToMilliseconds=function(){return t.Message.setOneofField(this,3,o._UpdateTtlRequest.oneofGroups_[0],void 0)},o._UpdateTtlRequest.prototype.hasDecreaseToMilliseconds=function(){return null!=t.Message.getField(this,3)},o._UpdateTtlRequest.prototype.getOverwriteToMilliseconds=function(){return t.Message.getFieldWithDefault(this,4,0)},o._UpdateTtlRequest.prototype.setOverwriteToMilliseconds=function(e){return t.Message.setOneofField(this,4,o._UpdateTtlRequest.oneofGroups_[0],e)},o._UpdateTtlRequest.prototype.clearOverwriteToMilliseconds=function(){return t.Message.setOneofField(this,4,o._UpdateTtlRequest.oneofGroups_[0],void 0)},o._UpdateTtlRequest.prototype.hasOverwriteToMilliseconds=function(){return null!=t.Message.getField(this,4)},o._UpdateTtlResponse.oneofGroups_=[[1,2,3]],o._UpdateTtlResponse.ResultCase={RESULT_NOT_SET:0,SET:1,NOT_SET:2,MISSING:3},o._UpdateTtlResponse.prototype.getResultCase=function(){return t.Message.computeOneofCase(this,o._UpdateTtlResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._UpdateTtlResponse.prototype.toObject=function(e){return o._UpdateTtlResponse.toObject(e,this)},o._UpdateTtlResponse.toObject=function(e,t){var r,s={set:(r=t.getSet())&&o._UpdateTtlResponse._Set.toObject(e,r),notSet:(r=t.getNotSet())&&o._UpdateTtlResponse._NotSet.toObject(e,r),missing:(r=t.getMissing())&&o._UpdateTtlResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._UpdateTtlResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._UpdateTtlResponse;return o._UpdateTtlResponse.deserializeBinaryFromReader(s,r)},o._UpdateTtlResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._UpdateTtlResponse._Set;t.readMessage(r,o._UpdateTtlResponse._Set.deserializeBinaryFromReader),e.setSet(r);break;case 2:r=new o._UpdateTtlResponse._NotSet,t.readMessage(r,o._UpdateTtlResponse._NotSet.deserializeBinaryFromReader),e.setNotSet(r);break;case 3:r=new o._UpdateTtlResponse._Missing,t.readMessage(r,o._UpdateTtlResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._UpdateTtlResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._UpdateTtlResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._UpdateTtlResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getSet())&&t.writeMessage(1,r,o._UpdateTtlResponse._Set.serializeBinaryToWriter),null!=(r=e.getNotSet())&&t.writeMessage(2,r,o._UpdateTtlResponse._NotSet.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(3,r,o._UpdateTtlResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._UpdateTtlResponse._Set.prototype.toObject=function(e){return o._UpdateTtlResponse._Set.toObject(e,this)},o._UpdateTtlResponse._Set.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._UpdateTtlResponse._Set.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._UpdateTtlResponse._Set;return o._UpdateTtlResponse._Set.deserializeBinaryFromReader(s,r)},o._UpdateTtlResponse._Set.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._UpdateTtlResponse._Set.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._UpdateTtlResponse._Set.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._UpdateTtlResponse._Set.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._UpdateTtlResponse._NotSet.prototype.toObject=function(e){return o._UpdateTtlResponse._NotSet.toObject(e,this)},o._UpdateTtlResponse._NotSet.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._UpdateTtlResponse._NotSet.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._UpdateTtlResponse._NotSet;return o._UpdateTtlResponse._NotSet.deserializeBinaryFromReader(s,r)},o._UpdateTtlResponse._NotSet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._UpdateTtlResponse._NotSet.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._UpdateTtlResponse._NotSet.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._UpdateTtlResponse._NotSet.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._UpdateTtlResponse._Missing.prototype.toObject=function(e){return o._UpdateTtlResponse._Missing.toObject(e,this)},o._UpdateTtlResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._UpdateTtlResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._UpdateTtlResponse._Missing;return o._UpdateTtlResponse._Missing.deserializeBinaryFromReader(s,r)},o._UpdateTtlResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._UpdateTtlResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._UpdateTtlResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._UpdateTtlResponse._Missing.serializeBinaryToWriter=function(e,t){},o._UpdateTtlResponse.prototype.getSet=function(){return t.Message.getWrapperField(this,o._UpdateTtlResponse._Set,1)},o._UpdateTtlResponse.prototype.setSet=function(e){return t.Message.setOneofWrapperField(this,1,o._UpdateTtlResponse.oneofGroups_[0],e)},o._UpdateTtlResponse.prototype.clearSet=function(){return this.setSet(void 0)},o._UpdateTtlResponse.prototype.hasSet=function(){return null!=t.Message.getField(this,1)},o._UpdateTtlResponse.prototype.getNotSet=function(){return t.Message.getWrapperField(this,o._UpdateTtlResponse._NotSet,2)},o._UpdateTtlResponse.prototype.setNotSet=function(e){return t.Message.setOneofWrapperField(this,2,o._UpdateTtlResponse.oneofGroups_[0],e)},o._UpdateTtlResponse.prototype.clearNotSet=function(){return this.setNotSet(void 0)},o._UpdateTtlResponse.prototype.hasNotSet=function(){return null!=t.Message.getField(this,2)},o._UpdateTtlResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._UpdateTtlResponse._Missing,3)},o._UpdateTtlResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,3,o._UpdateTtlResponse.oneofGroups_[0],e)},o._UpdateTtlResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._UpdateTtlResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(o._ItemGetTtlRequest.prototype.toObject=function(e){return o._ItemGetTtlRequest.toObject(e,this)},o._ItemGetTtlRequest.toObject=function(e,t){var r={cacheKey:t.getCacheKey_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._ItemGetTtlRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ItemGetTtlRequest;return o._ItemGetTtlRequest.deserializeBinaryFromReader(s,r)},o._ItemGetTtlRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setCacheKey(r)}else t.skipField();return e},o._ItemGetTtlRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ItemGetTtlRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ItemGetTtlRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r)},o._ItemGetTtlRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ItemGetTtlRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._ItemGetTtlRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._ItemGetTtlRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ItemGetTtlResponse.oneofGroups_=[[1,2]],o._ItemGetTtlResponse.ResultCase={RESULT_NOT_SET:0,FOUND:1,MISSING:2},o._ItemGetTtlResponse.prototype.getResultCase=function(){return t.Message.computeOneofCase(this,o._ItemGetTtlResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ItemGetTtlResponse.prototype.toObject=function(e){return o._ItemGetTtlResponse.toObject(e,this)},o._ItemGetTtlResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._ItemGetTtlResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._ItemGetTtlResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ItemGetTtlResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ItemGetTtlResponse;return o._ItemGetTtlResponse.deserializeBinaryFromReader(s,r)},o._ItemGetTtlResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._ItemGetTtlResponse._Found;t.readMessage(r,o._ItemGetTtlResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._ItemGetTtlResponse._Missing,t.readMessage(r,o._ItemGetTtlResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._ItemGetTtlResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ItemGetTtlResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ItemGetTtlResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._ItemGetTtlResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._ItemGetTtlResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._ItemGetTtlResponse._Found.prototype.toObject=function(e){return o._ItemGetTtlResponse._Found.toObject(e,this)},o._ItemGetTtlResponse._Found.toObject=function(e,r){var o={remainingTtlMillis:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ItemGetTtlResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ItemGetTtlResponse._Found;return o._ItemGetTtlResponse._Found.deserializeBinaryFromReader(s,r)},o._ItemGetTtlResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint64();e.setRemainingTtlMillis(r)}else t.skipField();return e},o._ItemGetTtlResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ItemGetTtlResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ItemGetTtlResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getRemainingTtlMillis())&&t.writeUint64(1,r)},o._ItemGetTtlResponse._Found.prototype.getRemainingTtlMillis=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ItemGetTtlResponse._Found.prototype.setRemainingTtlMillis=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._ItemGetTtlResponse._Missing.prototype.toObject=function(e){return o._ItemGetTtlResponse._Missing.toObject(e,this)},o._ItemGetTtlResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ItemGetTtlResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ItemGetTtlResponse._Missing;return o._ItemGetTtlResponse._Missing.deserializeBinaryFromReader(s,r)},o._ItemGetTtlResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ItemGetTtlResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ItemGetTtlResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ItemGetTtlResponse._Missing.serializeBinaryToWriter=function(e,t){},o._ItemGetTtlResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._ItemGetTtlResponse._Found,1)},o._ItemGetTtlResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._ItemGetTtlResponse.oneofGroups_[0],e)},o._ItemGetTtlResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._ItemGetTtlResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._ItemGetTtlResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._ItemGetTtlResponse._Missing,2)},o._ItemGetTtlResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._ItemGetTtlResponse.oneofGroups_[0],e)},o._ItemGetTtlResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._ItemGetTtlResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._ItemGetTypeRequest.prototype.toObject=function(e){return o._ItemGetTypeRequest.toObject(e,this)},o._ItemGetTypeRequest.toObject=function(e,t){var r={cacheKey:t.getCacheKey_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._ItemGetTypeRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ItemGetTypeRequest;return o._ItemGetTypeRequest.deserializeBinaryFromReader(s,r)},o._ItemGetTypeRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setCacheKey(r)}else t.skipField();return e},o._ItemGetTypeRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ItemGetTypeRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ItemGetTypeRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheKey_asU8()).length>0&&t.writeBytes(1,r)},o._ItemGetTypeRequest.prototype.getCacheKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ItemGetTypeRequest.prototype.getCacheKey_asB64=function(){return t.Message.bytesAsB64(this.getCacheKey())},o._ItemGetTypeRequest.prototype.getCacheKey_asU8=function(){return t.Message.bytesAsU8(this.getCacheKey())},o._ItemGetTypeRequest.prototype.setCacheKey=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ItemGetTypeResponse.oneofGroups_=[[1,2]],o._ItemGetTypeResponse.ResultCase={RESULT_NOT_SET:0,FOUND:1,MISSING:2},o._ItemGetTypeResponse.prototype.getResultCase=function(){return t.Message.computeOneofCase(this,o._ItemGetTypeResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ItemGetTypeResponse.prototype.toObject=function(e){return o._ItemGetTypeResponse.toObject(e,this)},o._ItemGetTypeResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._ItemGetTypeResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._ItemGetTypeResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ItemGetTypeResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ItemGetTypeResponse;return o._ItemGetTypeResponse.deserializeBinaryFromReader(s,r)},o._ItemGetTypeResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._ItemGetTypeResponse._Found;t.readMessage(r,o._ItemGetTypeResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._ItemGetTypeResponse._Missing,t.readMessage(r,o._ItemGetTypeResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._ItemGetTypeResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ItemGetTypeResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ItemGetTypeResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._ItemGetTypeResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._ItemGetTypeResponse._Missing.serializeBinaryToWriter)},o._ItemGetTypeResponse.ItemType={SCALAR:0,DICTIONARY:1,SET:2,LIST:3,SORTED_SET:4},t.Message.GENERATE_TO_OBJECT&&(o._ItemGetTypeResponse._Found.prototype.toObject=function(e){return o._ItemGetTypeResponse._Found.toObject(e,this)},o._ItemGetTypeResponse._Found.toObject=function(e,r){var o={itemType:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ItemGetTypeResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ItemGetTypeResponse._Found;return o._ItemGetTypeResponse._Found.deserializeBinaryFromReader(s,r)},o._ItemGetTypeResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readEnum();e.setItemType(r)}else t.skipField();return e},o._ItemGetTypeResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ItemGetTypeResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ItemGetTypeResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getItemType())&&t.writeEnum(1,r)},o._ItemGetTypeResponse._Found.prototype.getItemType=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ItemGetTypeResponse._Found.prototype.setItemType=function(e){return t.Message.setProto3EnumField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._ItemGetTypeResponse._Missing.prototype.toObject=function(e){return o._ItemGetTypeResponse._Missing.toObject(e,this)},o._ItemGetTypeResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ItemGetTypeResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ItemGetTypeResponse._Missing;return o._ItemGetTypeResponse._Missing.deserializeBinaryFromReader(s,r)},o._ItemGetTypeResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ItemGetTypeResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ItemGetTypeResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ItemGetTypeResponse._Missing.serializeBinaryToWriter=function(e,t){},o._ItemGetTypeResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._ItemGetTypeResponse._Found,1)},o._ItemGetTypeResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._ItemGetTypeResponse.oneofGroups_[0],e)},o._ItemGetTypeResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._ItemGetTypeResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._ItemGetTypeResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._ItemGetTypeResponse._Missing,2)},o._ItemGetTypeResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._ItemGetTypeResponse.oneofGroups_[0],e)},o._ItemGetTypeResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._ItemGetTypeResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._DictionaryGetRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._DictionaryGetRequest.prototype.toObject=function(e){return o._DictionaryGetRequest.toObject(e,this)},o._DictionaryGetRequest.toObject=function(e,t){var r={dictionaryName:t.getDictionaryName_asB64(),fieldsList:t.getFieldsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryGetRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryGetRequest;return o._DictionaryGetRequest.deserializeBinaryFromReader(s,r)},o._DictionaryGetRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setDictionaryName(r);break;case 2:r=t.readBytes(),e.addFields(r);break;default:t.skipField()}return e},o._DictionaryGetRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryGetRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryGetRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getDictionaryName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getFieldsList_asU8()).length>0&&t.writeRepeatedBytes(2,r)},o._DictionaryGetRequest.prototype.getDictionaryName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DictionaryGetRequest.prototype.getDictionaryName_asB64=function(){return t.Message.bytesAsB64(this.getDictionaryName())},o._DictionaryGetRequest.prototype.getDictionaryName_asU8=function(){return t.Message.bytesAsU8(this.getDictionaryName())},o._DictionaryGetRequest.prototype.setDictionaryName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._DictionaryGetRequest.prototype.getFieldsList=function(){return t.Message.getRepeatedField(this,2)},o._DictionaryGetRequest.prototype.getFieldsList_asB64=function(){return t.Message.bytesListAsB64(this.getFieldsList())},o._DictionaryGetRequest.prototype.getFieldsList_asU8=function(){return t.Message.bytesListAsU8(this.getFieldsList())},o._DictionaryGetRequest.prototype.setFieldsList=function(e){return t.Message.setField(this,2,e||[])},o._DictionaryGetRequest.prototype.addFields=function(e,r){return t.Message.addToRepeatedField(this,2,e,r)},o._DictionaryGetRequest.prototype.clearFieldsList=function(){return this.setFieldsList([])},o._DictionaryGetResponse.oneofGroups_=[[1,2]],o._DictionaryGetResponse.DictionaryCase={DICTIONARY_NOT_SET:0,FOUND:1,MISSING:2},o._DictionaryGetResponse.prototype.getDictionaryCase=function(){return t.Message.computeOneofCase(this,o._DictionaryGetResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryGetResponse.prototype.toObject=function(e){return o._DictionaryGetResponse.toObject(e,this)},o._DictionaryGetResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._DictionaryGetResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._DictionaryGetResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._DictionaryGetResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryGetResponse;return o._DictionaryGetResponse.deserializeBinaryFromReader(s,r)},o._DictionaryGetResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._DictionaryGetResponse._Found;t.readMessage(r,o._DictionaryGetResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._DictionaryGetResponse._Missing,t.readMessage(r,o._DictionaryGetResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._DictionaryGetResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryGetResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryGetResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._DictionaryGetResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._DictionaryGetResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryGetResponse._DictionaryGetResponsePart.prototype.toObject=function(e){return o._DictionaryGetResponse._DictionaryGetResponsePart.toObject(e,this)},o._DictionaryGetResponse._DictionaryGetResponsePart.toObject=function(e,r){var o={result:t.Message.getFieldWithDefault(r,1,0),cacheBody:r.getCacheBody_asB64()};return e&&(o.$jspbMessageInstance=r),o}),o._DictionaryGetResponse._DictionaryGetResponsePart.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryGetResponse._DictionaryGetResponsePart;return o._DictionaryGetResponse._DictionaryGetResponsePart.deserializeBinaryFromReader(s,r)},o._DictionaryGetResponse._DictionaryGetResponsePart.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setResult(r);break;case 2:r=t.readBytes(),e.setCacheBody(r);break;default:t.skipField()}return e},o._DictionaryGetResponse._DictionaryGetResponsePart.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryGetResponse._DictionaryGetResponsePart.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryGetResponse._DictionaryGetResponsePart.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getResult())&&t.writeEnum(1,r),(r=e.getCacheBody_asU8()).length>0&&t.writeBytes(2,r)},o._DictionaryGetResponse._DictionaryGetResponsePart.prototype.getResult=function(){return t.Message.getFieldWithDefault(this,1,0)},o._DictionaryGetResponse._DictionaryGetResponsePart.prototype.setResult=function(e){return t.Message.setProto3EnumField(this,1,e)},o._DictionaryGetResponse._DictionaryGetResponsePart.prototype.getCacheBody=function(){return t.Message.getFieldWithDefault(this,2,"")},o._DictionaryGetResponse._DictionaryGetResponsePart.prototype.getCacheBody_asB64=function(){return t.Message.bytesAsB64(this.getCacheBody())},o._DictionaryGetResponse._DictionaryGetResponsePart.prototype.getCacheBody_asU8=function(){return t.Message.bytesAsU8(this.getCacheBody())},o._DictionaryGetResponse._DictionaryGetResponsePart.prototype.setCacheBody=function(e){return t.Message.setProto3BytesField(this,2,e)},o._DictionaryGetResponse._Found.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._DictionaryGetResponse._Found.prototype.toObject=function(e){return o._DictionaryGetResponse._Found.toObject(e,this)},o._DictionaryGetResponse._Found.toObject=function(e,r){var s={itemsList:t.Message.toObjectList(r.getItemsList(),o._DictionaryGetResponse._DictionaryGetResponsePart.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._DictionaryGetResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryGetResponse._Found;return o._DictionaryGetResponse._Found.deserializeBinaryFromReader(s,r)},o._DictionaryGetResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._DictionaryGetResponse._DictionaryGetResponsePart;t.readMessage(r,o._DictionaryGetResponse._DictionaryGetResponsePart.deserializeBinaryFromReader),e.addItems(r)}else t.skipField();return e},o._DictionaryGetResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryGetResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryGetResponse._Found.serializeBinaryToWriter=function(e,t){var r;(r=e.getItemsList()).length>0&&t.writeRepeatedMessage(1,r,o._DictionaryGetResponse._DictionaryGetResponsePart.serializeBinaryToWriter)},o._DictionaryGetResponse._Found.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,o._DictionaryGetResponse._DictionaryGetResponsePart,1)},o._DictionaryGetResponse._Found.prototype.setItemsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._DictionaryGetResponse._Found.prototype.addItems=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._DictionaryGetResponse._DictionaryGetResponsePart,r)},o._DictionaryGetResponse._Found.prototype.clearItemsList=function(){return this.setItemsList([])},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryGetResponse._Missing.prototype.toObject=function(e){return o._DictionaryGetResponse._Missing.toObject(e,this)},o._DictionaryGetResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryGetResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryGetResponse._Missing;return o._DictionaryGetResponse._Missing.deserializeBinaryFromReader(s,r)},o._DictionaryGetResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DictionaryGetResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryGetResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryGetResponse._Missing.serializeBinaryToWriter=function(e,t){},o._DictionaryGetResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._DictionaryGetResponse._Found,1)},o._DictionaryGetResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._DictionaryGetResponse.oneofGroups_[0],e)},o._DictionaryGetResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._DictionaryGetResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._DictionaryGetResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._DictionaryGetResponse._Missing,2)},o._DictionaryGetResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._DictionaryGetResponse.oneofGroups_[0],e)},o._DictionaryGetResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._DictionaryGetResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryFetchRequest.prototype.toObject=function(e){return o._DictionaryFetchRequest.toObject(e,this)},o._DictionaryFetchRequest.toObject=function(e,t){var r={dictionaryName:t.getDictionaryName_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryFetchRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryFetchRequest;return o._DictionaryFetchRequest.deserializeBinaryFromReader(s,r)},o._DictionaryFetchRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setDictionaryName(r)}else t.skipField();return e},o._DictionaryFetchRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryFetchRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryFetchRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getDictionaryName_asU8()).length>0&&t.writeBytes(1,r)},o._DictionaryFetchRequest.prototype.getDictionaryName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DictionaryFetchRequest.prototype.getDictionaryName_asB64=function(){return t.Message.bytesAsB64(this.getDictionaryName())},o._DictionaryFetchRequest.prototype.getDictionaryName_asU8=function(){return t.Message.bytesAsU8(this.getDictionaryName())},o._DictionaryFetchRequest.prototype.setDictionaryName=function(e){return t.Message.setProto3BytesField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryFieldValuePair.prototype.toObject=function(e){return o._DictionaryFieldValuePair.toObject(e,this)},o._DictionaryFieldValuePair.toObject=function(e,t){var r={field:t.getField_asB64(),value:t.getValue_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryFieldValuePair.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryFieldValuePair;return o._DictionaryFieldValuePair.deserializeBinaryFromReader(s,r)},o._DictionaryFieldValuePair.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setField(r);break;case 2:r=t.readBytes(),e.setValue(r);break;default:t.skipField()}return e},o._DictionaryFieldValuePair.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryFieldValuePair.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryFieldValuePair.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getField_asU8()).length>0&&t.writeBytes(1,r),(r=e.getValue_asU8()).length>0&&t.writeBytes(2,r)},o._DictionaryFieldValuePair.prototype.getField=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DictionaryFieldValuePair.prototype.getField_asB64=function(){return t.Message.bytesAsB64(this.getField())},o._DictionaryFieldValuePair.prototype.getField_asU8=function(){return t.Message.bytesAsU8(this.getField())},o._DictionaryFieldValuePair.prototype.setField=function(e){return t.Message.setProto3BytesField(this,1,e)},o._DictionaryFieldValuePair.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,2,"")},o._DictionaryFieldValuePair.prototype.getValue_asB64=function(){return t.Message.bytesAsB64(this.getValue())},o._DictionaryFieldValuePair.prototype.getValue_asU8=function(){return t.Message.bytesAsU8(this.getValue())},o._DictionaryFieldValuePair.prototype.setValue=function(e){return t.Message.setProto3BytesField(this,2,e)},o._DictionaryFetchResponse.oneofGroups_=[[1,2]],o._DictionaryFetchResponse.DictionaryCase={DICTIONARY_NOT_SET:0,FOUND:1,MISSING:2},o._DictionaryFetchResponse.prototype.getDictionaryCase=function(){return t.Message.computeOneofCase(this,o._DictionaryFetchResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryFetchResponse.prototype.toObject=function(e){return o._DictionaryFetchResponse.toObject(e,this)},o._DictionaryFetchResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._DictionaryFetchResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._DictionaryFetchResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._DictionaryFetchResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryFetchResponse;return o._DictionaryFetchResponse.deserializeBinaryFromReader(s,r)},o._DictionaryFetchResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._DictionaryFetchResponse._Found;t.readMessage(r,o._DictionaryFetchResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._DictionaryFetchResponse._Missing,t.readMessage(r,o._DictionaryFetchResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._DictionaryFetchResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryFetchResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryFetchResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._DictionaryFetchResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._DictionaryFetchResponse._Missing.serializeBinaryToWriter)},o._DictionaryFetchResponse._Found.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._DictionaryFetchResponse._Found.prototype.toObject=function(e){return o._DictionaryFetchResponse._Found.toObject(e,this)},o._DictionaryFetchResponse._Found.toObject=function(e,r){var s={itemsList:t.Message.toObjectList(r.getItemsList(),o._DictionaryFieldValuePair.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._DictionaryFetchResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryFetchResponse._Found;return o._DictionaryFetchResponse._Found.deserializeBinaryFromReader(s,r)},o._DictionaryFetchResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._DictionaryFieldValuePair;t.readMessage(r,o._DictionaryFieldValuePair.deserializeBinaryFromReader),e.addItems(r)}else t.skipField();return e},o._DictionaryFetchResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryFetchResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryFetchResponse._Found.serializeBinaryToWriter=function(e,t){var r;(r=e.getItemsList()).length>0&&t.writeRepeatedMessage(1,r,o._DictionaryFieldValuePair.serializeBinaryToWriter)},o._DictionaryFetchResponse._Found.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,o._DictionaryFieldValuePair,1)},o._DictionaryFetchResponse._Found.prototype.setItemsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._DictionaryFetchResponse._Found.prototype.addItems=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._DictionaryFieldValuePair,r)},o._DictionaryFetchResponse._Found.prototype.clearItemsList=function(){return this.setItemsList([])},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryFetchResponse._Missing.prototype.toObject=function(e){return o._DictionaryFetchResponse._Missing.toObject(e,this)},o._DictionaryFetchResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryFetchResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryFetchResponse._Missing;return o._DictionaryFetchResponse._Missing.deserializeBinaryFromReader(s,r)},o._DictionaryFetchResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DictionaryFetchResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryFetchResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryFetchResponse._Missing.serializeBinaryToWriter=function(e,t){},o._DictionaryFetchResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._DictionaryFetchResponse._Found,1)},o._DictionaryFetchResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._DictionaryFetchResponse.oneofGroups_[0],e)},o._DictionaryFetchResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._DictionaryFetchResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._DictionaryFetchResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._DictionaryFetchResponse._Missing,2)},o._DictionaryFetchResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._DictionaryFetchResponse.oneofGroups_[0],e)},o._DictionaryFetchResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._DictionaryFetchResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._DictionarySetRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._DictionarySetRequest.prototype.toObject=function(e){return o._DictionarySetRequest.toObject(e,this)},o._DictionarySetRequest.toObject=function(e,r){var s={dictionaryName:r.getDictionaryName_asB64(),itemsList:t.Message.toObjectList(r.getItemsList(),o._DictionaryFieldValuePair.toObject,e),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,4,!1)};return e&&(s.$jspbMessageInstance=r),s}),o._DictionarySetRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionarySetRequest;return o._DictionarySetRequest.deserializeBinaryFromReader(s,r)},o._DictionarySetRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setDictionaryName(r);break;case 2:r=new o._DictionaryFieldValuePair,t.readMessage(r,o._DictionaryFieldValuePair.deserializeBinaryFromReader),e.addItems(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 4:r=t.readBool(),e.setRefreshTtl(r);break;default:t.skipField()}return e},o._DictionarySetRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionarySetRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionarySetRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getDictionaryName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getItemsList()).length>0&&t.writeRepeatedMessage(2,r,o._DictionaryFieldValuePair.serializeBinaryToWriter),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r),(r=e.getRefreshTtl())&&t.writeBool(4,r)},o._DictionarySetRequest.prototype.getDictionaryName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DictionarySetRequest.prototype.getDictionaryName_asB64=function(){return t.Message.bytesAsB64(this.getDictionaryName())},o._DictionarySetRequest.prototype.getDictionaryName_asU8=function(){return t.Message.bytesAsU8(this.getDictionaryName())},o._DictionarySetRequest.prototype.setDictionaryName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._DictionarySetRequest.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,o._DictionaryFieldValuePair,2)},o._DictionarySetRequest.prototype.setItemsList=function(e){return t.Message.setRepeatedWrapperField(this,2,e)},o._DictionarySetRequest.prototype.addItems=function(e,r){return t.Message.addToRepeatedWrapperField(this,2,e,o._DictionaryFieldValuePair,r)},o._DictionarySetRequest.prototype.clearItemsList=function(){return this.setItemsList([])},o._DictionarySetRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._DictionarySetRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._DictionarySetRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,4,!1)},o._DictionarySetRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,4,e)},t.Message.GENERATE_TO_OBJECT&&(o._DictionarySetResponse.prototype.toObject=function(e){return o._DictionarySetResponse.toObject(e,this)},o._DictionarySetResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DictionarySetResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionarySetResponse;return o._DictionarySetResponse.deserializeBinaryFromReader(s,r)},o._DictionarySetResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DictionarySetResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionarySetResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionarySetResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryIncrementRequest.prototype.toObject=function(e){return o._DictionaryIncrementRequest.toObject(e,this)},o._DictionaryIncrementRequest.toObject=function(e,r){var o={dictionaryName:r.getDictionaryName_asB64(),field:r.getField_asB64(),amount:t.Message.getFieldWithDefault(r,3,0),ttlMilliseconds:t.Message.getFieldWithDefault(r,4,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,5,!1)};return e&&(o.$jspbMessageInstance=r),o}),o._DictionaryIncrementRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryIncrementRequest;return o._DictionaryIncrementRequest.deserializeBinaryFromReader(s,r)},o._DictionaryIncrementRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setDictionaryName(r);break;case 2:r=t.readBytes(),e.setField(r);break;case 3:r=t.readInt64(),e.setAmount(r);break;case 4:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 5:r=t.readBool(),e.setRefreshTtl(r);break;default:t.skipField()}return e},o._DictionaryIncrementRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryIncrementRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryIncrementRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getDictionaryName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getField_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getAmount())&&t.writeInt64(3,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(4,r),(r=e.getRefreshTtl())&&t.writeBool(5,r)},o._DictionaryIncrementRequest.prototype.getDictionaryName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DictionaryIncrementRequest.prototype.getDictionaryName_asB64=function(){return t.Message.bytesAsB64(this.getDictionaryName())},o._DictionaryIncrementRequest.prototype.getDictionaryName_asU8=function(){return t.Message.bytesAsU8(this.getDictionaryName())},o._DictionaryIncrementRequest.prototype.setDictionaryName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._DictionaryIncrementRequest.prototype.getField=function(){return t.Message.getFieldWithDefault(this,2,"")},o._DictionaryIncrementRequest.prototype.getField_asB64=function(){return t.Message.bytesAsB64(this.getField())},o._DictionaryIncrementRequest.prototype.getField_asU8=function(){return t.Message.bytesAsU8(this.getField())},o._DictionaryIncrementRequest.prototype.setField=function(e){return t.Message.setProto3BytesField(this,2,e)},o._DictionaryIncrementRequest.prototype.getAmount=function(){return t.Message.getFieldWithDefault(this,3,0)},o._DictionaryIncrementRequest.prototype.setAmount=function(e){return t.Message.setProto3IntField(this,3,e)},o._DictionaryIncrementRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,4,0)},o._DictionaryIncrementRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,4,e)},o._DictionaryIncrementRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,5,!1)},o._DictionaryIncrementRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,5,e)},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryIncrementResponse.prototype.toObject=function(e){return o._DictionaryIncrementResponse.toObject(e,this)},o._DictionaryIncrementResponse.toObject=function(e,r){var o={value:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._DictionaryIncrementResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryIncrementResponse;return o._DictionaryIncrementResponse.deserializeBinaryFromReader(s,r)},o._DictionaryIncrementResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readInt64();e.setValue(r)}else t.skipField();return e},o._DictionaryIncrementResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryIncrementResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryIncrementResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeInt64(1,r)},o._DictionaryIncrementResponse.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,1,0)},o._DictionaryIncrementResponse.prototype.setValue=function(e){return t.Message.setProto3IntField(this,1,e)},o._DictionaryDeleteRequest.oneofGroups_=[[2,3]],o._DictionaryDeleteRequest.DeleteCase={DELETE_NOT_SET:0,SOME:2,ALL:3},o._DictionaryDeleteRequest.prototype.getDeleteCase=function(){return t.Message.computeOneofCase(this,o._DictionaryDeleteRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryDeleteRequest.prototype.toObject=function(e){return o._DictionaryDeleteRequest.toObject(e,this)},o._DictionaryDeleteRequest.toObject=function(e,t){var r,s={dictionaryName:t.getDictionaryName_asB64(),some:(r=t.getSome())&&o._DictionaryDeleteRequest.Some.toObject(e,r),all:(r=t.getAll())&&o._DictionaryDeleteRequest.All.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._DictionaryDeleteRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryDeleteRequest;return o._DictionaryDeleteRequest.deserializeBinaryFromReader(s,r)},o._DictionaryDeleteRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setDictionaryName(r);break;case 2:r=new o._DictionaryDeleteRequest.Some,t.readMessage(r,o._DictionaryDeleteRequest.Some.deserializeBinaryFromReader),e.setSome(r);break;case 3:r=new o._DictionaryDeleteRequest.All,t.readMessage(r,o._DictionaryDeleteRequest.All.deserializeBinaryFromReader),e.setAll(r);break;default:t.skipField()}return e},o._DictionaryDeleteRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryDeleteRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryDeleteRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getDictionaryName_asU8()).length>0&&t.writeBytes(1,r),null!=(r=e.getSome())&&t.writeMessage(2,r,o._DictionaryDeleteRequest.Some.serializeBinaryToWriter),null!=(r=e.getAll())&&t.writeMessage(3,r,o._DictionaryDeleteRequest.All.serializeBinaryToWriter)},o._DictionaryDeleteRequest.Some.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._DictionaryDeleteRequest.Some.prototype.toObject=function(e){return o._DictionaryDeleteRequest.Some.toObject(e,this)},o._DictionaryDeleteRequest.Some.toObject=function(e,t){var r={fieldsList:t.getFieldsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryDeleteRequest.Some.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryDeleteRequest.Some;return o._DictionaryDeleteRequest.Some.deserializeBinaryFromReader(s,r)},o._DictionaryDeleteRequest.Some.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addFields(r)}else t.skipField();return e},o._DictionaryDeleteRequest.Some.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryDeleteRequest.Some.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryDeleteRequest.Some.serializeBinaryToWriter=function(e,t){var r;(r=e.getFieldsList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._DictionaryDeleteRequest.Some.prototype.getFieldsList=function(){return t.Message.getRepeatedField(this,1)},o._DictionaryDeleteRequest.Some.prototype.getFieldsList_asB64=function(){return t.Message.bytesListAsB64(this.getFieldsList())},o._DictionaryDeleteRequest.Some.prototype.getFieldsList_asU8=function(){return t.Message.bytesListAsU8(this.getFieldsList())},o._DictionaryDeleteRequest.Some.prototype.setFieldsList=function(e){return t.Message.setField(this,1,e||[])},o._DictionaryDeleteRequest.Some.prototype.addFields=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._DictionaryDeleteRequest.Some.prototype.clearFieldsList=function(){return this.setFieldsList([])},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryDeleteRequest.All.prototype.toObject=function(e){return o._DictionaryDeleteRequest.All.toObject(e,this)},o._DictionaryDeleteRequest.All.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryDeleteRequest.All.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryDeleteRequest.All;return o._DictionaryDeleteRequest.All.deserializeBinaryFromReader(s,r)},o._DictionaryDeleteRequest.All.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DictionaryDeleteRequest.All.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryDeleteRequest.All.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryDeleteRequest.All.serializeBinaryToWriter=function(e,t){},o._DictionaryDeleteRequest.prototype.getDictionaryName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DictionaryDeleteRequest.prototype.getDictionaryName_asB64=function(){return t.Message.bytesAsB64(this.getDictionaryName())},o._DictionaryDeleteRequest.prototype.getDictionaryName_asU8=function(){return t.Message.bytesAsU8(this.getDictionaryName())},o._DictionaryDeleteRequest.prototype.setDictionaryName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._DictionaryDeleteRequest.prototype.getSome=function(){return t.Message.getWrapperField(this,o._DictionaryDeleteRequest.Some,2)},o._DictionaryDeleteRequest.prototype.setSome=function(e){return t.Message.setOneofWrapperField(this,2,o._DictionaryDeleteRequest.oneofGroups_[0],e)},o._DictionaryDeleteRequest.prototype.clearSome=function(){return this.setSome(void 0)},o._DictionaryDeleteRequest.prototype.hasSome=function(){return null!=t.Message.getField(this,2)},o._DictionaryDeleteRequest.prototype.getAll=function(){return t.Message.getWrapperField(this,o._DictionaryDeleteRequest.All,3)},o._DictionaryDeleteRequest.prototype.setAll=function(e){return t.Message.setOneofWrapperField(this,3,o._DictionaryDeleteRequest.oneofGroups_[0],e)},o._DictionaryDeleteRequest.prototype.clearAll=function(){return this.setAll(void 0)},o._DictionaryDeleteRequest.prototype.hasAll=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryDeleteResponse.prototype.toObject=function(e){return o._DictionaryDeleteResponse.toObject(e,this)},o._DictionaryDeleteResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryDeleteResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryDeleteResponse;return o._DictionaryDeleteResponse.deserializeBinaryFromReader(s,r)},o._DictionaryDeleteResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DictionaryDeleteResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryDeleteResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryDeleteResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryLengthRequest.prototype.toObject=function(e){return o._DictionaryLengthRequest.toObject(e,this)},o._DictionaryLengthRequest.toObject=function(e,t){var r={dictionaryName:t.getDictionaryName_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryLengthRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryLengthRequest;return o._DictionaryLengthRequest.deserializeBinaryFromReader(s,r)},o._DictionaryLengthRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setDictionaryName(r)}else t.skipField();return e},o._DictionaryLengthRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryLengthRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryLengthRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getDictionaryName_asU8()).length>0&&t.writeBytes(1,r)},o._DictionaryLengthRequest.prototype.getDictionaryName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DictionaryLengthRequest.prototype.getDictionaryName_asB64=function(){return t.Message.bytesAsB64(this.getDictionaryName())},o._DictionaryLengthRequest.prototype.getDictionaryName_asU8=function(){return t.Message.bytesAsU8(this.getDictionaryName())},o._DictionaryLengthRequest.prototype.setDictionaryName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._DictionaryLengthResponse.oneofGroups_=[[1,2]],o._DictionaryLengthResponse.DictionaryCase={DICTIONARY_NOT_SET:0,FOUND:1,MISSING:2},o._DictionaryLengthResponse.prototype.getDictionaryCase=function(){return t.Message.computeOneofCase(this,o._DictionaryLengthResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryLengthResponse.prototype.toObject=function(e){return o._DictionaryLengthResponse.toObject(e,this)},o._DictionaryLengthResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._DictionaryLengthResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._DictionaryLengthResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._DictionaryLengthResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryLengthResponse;return o._DictionaryLengthResponse.deserializeBinaryFromReader(s,r)},o._DictionaryLengthResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._DictionaryLengthResponse._Found;t.readMessage(r,o._DictionaryLengthResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._DictionaryLengthResponse._Missing,t.readMessage(r,o._DictionaryLengthResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._DictionaryLengthResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryLengthResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryLengthResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._DictionaryLengthResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._DictionaryLengthResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryLengthResponse._Found.prototype.toObject=function(e){return o._DictionaryLengthResponse._Found.toObject(e,this)},o._DictionaryLengthResponse._Found.toObject=function(e,r){var o={length:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._DictionaryLengthResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryLengthResponse._Found;return o._DictionaryLengthResponse._Found.deserializeBinaryFromReader(s,r)},o._DictionaryLengthResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setLength(r)}else t.skipField();return e},o._DictionaryLengthResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryLengthResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryLengthResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getLength())&&t.writeUint32(1,r)},o._DictionaryLengthResponse._Found.prototype.getLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._DictionaryLengthResponse._Found.prototype.setLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._DictionaryLengthResponse._Missing.prototype.toObject=function(e){return o._DictionaryLengthResponse._Missing.toObject(e,this)},o._DictionaryLengthResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DictionaryLengthResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DictionaryLengthResponse._Missing;return o._DictionaryLengthResponse._Missing.deserializeBinaryFromReader(s,r)},o._DictionaryLengthResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DictionaryLengthResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DictionaryLengthResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DictionaryLengthResponse._Missing.serializeBinaryToWriter=function(e,t){},o._DictionaryLengthResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._DictionaryLengthResponse._Found,1)},o._DictionaryLengthResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._DictionaryLengthResponse.oneofGroups_[0],e)},o._DictionaryLengthResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._DictionaryLengthResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._DictionaryLengthResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._DictionaryLengthResponse._Missing,2)},o._DictionaryLengthResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._DictionaryLengthResponse.oneofGroups_[0],e)},o._DictionaryLengthResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._DictionaryLengthResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._SetFetchRequest.prototype.toObject=function(e){return o._SetFetchRequest.toObject(e,this)},o._SetFetchRequest.toObject=function(e,t){var r={setName:t.getSetName_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SetFetchRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetFetchRequest;return o._SetFetchRequest.deserializeBinaryFromReader(s,r)},o._SetFetchRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setSetName(r)}else t.skipField();return e},o._SetFetchRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetFetchRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetFetchRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r)},o._SetFetchRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetFetchRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SetFetchRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SetFetchRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetFetchResponse.oneofGroups_=[[1,2]],o._SetFetchResponse.SetCase={SET_NOT_SET:0,FOUND:1,MISSING:2},o._SetFetchResponse.prototype.getSetCase=function(){return t.Message.computeOneofCase(this,o._SetFetchResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetFetchResponse.prototype.toObject=function(e){return o._SetFetchResponse.toObject(e,this)},o._SetFetchResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SetFetchResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._SetFetchResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetFetchResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetFetchResponse;return o._SetFetchResponse.deserializeBinaryFromReader(s,r)},o._SetFetchResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetFetchResponse._Found;t.readMessage(r,o._SetFetchResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SetFetchResponse._Missing,t.readMessage(r,o._SetFetchResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SetFetchResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetFetchResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetFetchResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SetFetchResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SetFetchResponse._Missing.serializeBinaryToWriter)},o._SetFetchResponse._Found.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SetFetchResponse._Found.prototype.toObject=function(e){return o._SetFetchResponse._Found.toObject(e,this)},o._SetFetchResponse._Found.toObject=function(e,t){var r={elementsList:t.getElementsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SetFetchResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetFetchResponse._Found;return o._SetFetchResponse._Found.deserializeBinaryFromReader(s,r)},o._SetFetchResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addElements(r)}else t.skipField();return e},o._SetFetchResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetFetchResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetFetchResponse._Found.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._SetFetchResponse._Found.prototype.getElementsList=function(){return t.Message.getRepeatedField(this,1)},o._SetFetchResponse._Found.prototype.getElementsList_asB64=function(){return t.Message.bytesListAsB64(this.getElementsList())},o._SetFetchResponse._Found.prototype.getElementsList_asU8=function(){return t.Message.bytesListAsU8(this.getElementsList())},o._SetFetchResponse._Found.prototype.setElementsList=function(e){return t.Message.setField(this,1,e||[])},o._SetFetchResponse._Found.prototype.addElements=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._SetFetchResponse._Found.prototype.clearElementsList=function(){return this.setElementsList([])},t.Message.GENERATE_TO_OBJECT&&(o._SetFetchResponse._Missing.prototype.toObject=function(e){return o._SetFetchResponse._Missing.toObject(e,this)},o._SetFetchResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetFetchResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetFetchResponse._Missing;return o._SetFetchResponse._Missing.deserializeBinaryFromReader(s,r)},o._SetFetchResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetFetchResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetFetchResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetFetchResponse._Missing.serializeBinaryToWriter=function(e,t){},o._SetFetchResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SetFetchResponse._Found,1)},o._SetFetchResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SetFetchResponse.oneofGroups_[0],e)},o._SetFetchResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SetFetchResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SetFetchResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SetFetchResponse._Missing,2)},o._SetFetchResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SetFetchResponse.oneofGroups_[0],e)},o._SetFetchResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SetFetchResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._SetSampleRequest.prototype.toObject=function(e){return o._SetSampleRequest.toObject(e,this)},o._SetSampleRequest.toObject=function(e,r){var o={setName:r.getSetName_asB64(),limit:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SetSampleRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetSampleRequest;return o._SetSampleRequest.deserializeBinaryFromReader(s,r)},o._SetSampleRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readUint64(),e.setLimit(r);break;default:t.skipField()}return e},o._SetSampleRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetSampleRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetSampleRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getLimit())&&t.writeUint64(2,r)},o._SetSampleRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetSampleRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SetSampleRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SetSampleRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetSampleRequest.prototype.getLimit=function(){return t.Message.getFieldWithDefault(this,2,0)},o._SetSampleRequest.prototype.setLimit=function(e){return t.Message.setProto3IntField(this,2,e)},o._SetSampleResponse.oneofGroups_=[[1,2]],o._SetSampleResponse.SetCase={SET_NOT_SET:0,FOUND:1,MISSING:2},o._SetSampleResponse.prototype.getSetCase=function(){return t.Message.computeOneofCase(this,o._SetSampleResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetSampleResponse.prototype.toObject=function(e){return o._SetSampleResponse.toObject(e,this)},o._SetSampleResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SetSampleResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._SetSampleResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetSampleResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetSampleResponse;return o._SetSampleResponse.deserializeBinaryFromReader(s,r)},o._SetSampleResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetSampleResponse._Found;t.readMessage(r,o._SetSampleResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SetSampleResponse._Missing,t.readMessage(r,o._SetSampleResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SetSampleResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetSampleResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetSampleResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SetSampleResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SetSampleResponse._Missing.serializeBinaryToWriter)},o._SetSampleResponse._Found.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SetSampleResponse._Found.prototype.toObject=function(e){return o._SetSampleResponse._Found.toObject(e,this)},o._SetSampleResponse._Found.toObject=function(e,t){var r={elementsList:t.getElementsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SetSampleResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetSampleResponse._Found;return o._SetSampleResponse._Found.deserializeBinaryFromReader(s,r)},o._SetSampleResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addElements(r)}else t.skipField();return e},o._SetSampleResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetSampleResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetSampleResponse._Found.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._SetSampleResponse._Found.prototype.getElementsList=function(){return t.Message.getRepeatedField(this,1)},o._SetSampleResponse._Found.prototype.getElementsList_asB64=function(){return t.Message.bytesListAsB64(this.getElementsList())},o._SetSampleResponse._Found.prototype.getElementsList_asU8=function(){return t.Message.bytesListAsU8(this.getElementsList())},o._SetSampleResponse._Found.prototype.setElementsList=function(e){return t.Message.setField(this,1,e||[])},o._SetSampleResponse._Found.prototype.addElements=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._SetSampleResponse._Found.prototype.clearElementsList=function(){return this.setElementsList([])},t.Message.GENERATE_TO_OBJECT&&(o._SetSampleResponse._Missing.prototype.toObject=function(e){return o._SetSampleResponse._Missing.toObject(e,this)},o._SetSampleResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetSampleResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetSampleResponse._Missing;return o._SetSampleResponse._Missing.deserializeBinaryFromReader(s,r)},o._SetSampleResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetSampleResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetSampleResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetSampleResponse._Missing.serializeBinaryToWriter=function(e,t){},o._SetSampleResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SetSampleResponse._Found,1)},o._SetSampleResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SetSampleResponse.oneofGroups_[0],e)},o._SetSampleResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SetSampleResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SetSampleResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SetSampleResponse._Missing,2)},o._SetSampleResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SetSampleResponse.oneofGroups_[0],e)},o._SetSampleResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SetSampleResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._SetUnionRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._SetUnionRequest.prototype.toObject=function(e){return o._SetUnionRequest.toObject(e,this)},o._SetUnionRequest.toObject=function(e,r){var o={setName:r.getSetName_asB64(),elementsList:r.getElementsList_asB64(),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,4,!1)};return e&&(o.$jspbMessageInstance=r),o}),o._SetUnionRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetUnionRequest;return o._SetUnionRequest.deserializeBinaryFromReader(s,r)},o._SetUnionRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readBytes(),e.addElements(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 4:r=t.readBool(),e.setRefreshTtl(r);break;default:t.skipField()}return e},o._SetUnionRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetUnionRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetUnionRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getElementsList_asU8()).length>0&&t.writeRepeatedBytes(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r),(r=e.getRefreshTtl())&&t.writeBool(4,r)},o._SetUnionRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetUnionRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SetUnionRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SetUnionRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetUnionRequest.prototype.getElementsList=function(){return t.Message.getRepeatedField(this,2)},o._SetUnionRequest.prototype.getElementsList_asB64=function(){return t.Message.bytesListAsB64(this.getElementsList())},o._SetUnionRequest.prototype.getElementsList_asU8=function(){return t.Message.bytesListAsU8(this.getElementsList())},o._SetUnionRequest.prototype.setElementsList=function(e){return t.Message.setField(this,2,e||[])},o._SetUnionRequest.prototype.addElements=function(e,r){return t.Message.addToRepeatedField(this,2,e,r)},o._SetUnionRequest.prototype.clearElementsList=function(){return this.setElementsList([])},o._SetUnionRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._SetUnionRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._SetUnionRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,4,!1)},o._SetUnionRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,4,e)},t.Message.GENERATE_TO_OBJECT&&(o._SetUnionResponse.prototype.toObject=function(e){return o._SetUnionResponse.toObject(e,this)},o._SetUnionResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetUnionResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetUnionResponse;return o._SetUnionResponse.deserializeBinaryFromReader(s,r)},o._SetUnionResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetUnionResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetUnionResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetUnionResponse.serializeBinaryToWriter=function(e,t){},o._SetDifferenceRequest.oneofGroups_=[[2,3]],o._SetDifferenceRequest.DifferenceCase={DIFFERENCE_NOT_SET:0,MINUEND:2,SUBTRAHEND:3},o._SetDifferenceRequest.prototype.getDifferenceCase=function(){return t.Message.computeOneofCase(this,o._SetDifferenceRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetDifferenceRequest.prototype.toObject=function(e){return o._SetDifferenceRequest.toObject(e,this)},o._SetDifferenceRequest.toObject=function(e,t){var r,s={setName:t.getSetName_asB64(),minuend:(r=t.getMinuend())&&o._SetDifferenceRequest._Minuend.toObject(e,r),subtrahend:(r=t.getSubtrahend())&&o._SetDifferenceRequest._Subtrahend.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetDifferenceRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetDifferenceRequest;return o._SetDifferenceRequest.deserializeBinaryFromReader(s,r)},o._SetDifferenceRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=new o._SetDifferenceRequest._Minuend,t.readMessage(r,o._SetDifferenceRequest._Minuend.deserializeBinaryFromReader),e.setMinuend(r);break;case 3:r=new o._SetDifferenceRequest._Subtrahend,t.readMessage(r,o._SetDifferenceRequest._Subtrahend.deserializeBinaryFromReader),e.setSubtrahend(r);break;default:t.skipField()}return e},o._SetDifferenceRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetDifferenceRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetDifferenceRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),null!=(r=e.getMinuend())&&t.writeMessage(2,r,o._SetDifferenceRequest._Minuend.serializeBinaryToWriter),null!=(r=e.getSubtrahend())&&t.writeMessage(3,r,o._SetDifferenceRequest._Subtrahend.serializeBinaryToWriter)},o._SetDifferenceRequest._Minuend.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SetDifferenceRequest._Minuend.prototype.toObject=function(e){return o._SetDifferenceRequest._Minuend.toObject(e,this)},o._SetDifferenceRequest._Minuend.toObject=function(e,t){var r={elementsList:t.getElementsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SetDifferenceRequest._Minuend.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetDifferenceRequest._Minuend;return o._SetDifferenceRequest._Minuend.deserializeBinaryFromReader(s,r)},o._SetDifferenceRequest._Minuend.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addElements(r)}else t.skipField();return e},o._SetDifferenceRequest._Minuend.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetDifferenceRequest._Minuend.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetDifferenceRequest._Minuend.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._SetDifferenceRequest._Minuend.prototype.getElementsList=function(){return t.Message.getRepeatedField(this,1)},o._SetDifferenceRequest._Minuend.prototype.getElementsList_asB64=function(){return t.Message.bytesListAsB64(this.getElementsList())},o._SetDifferenceRequest._Minuend.prototype.getElementsList_asU8=function(){return t.Message.bytesListAsU8(this.getElementsList())},o._SetDifferenceRequest._Minuend.prototype.setElementsList=function(e){return t.Message.setField(this,1,e||[])},o._SetDifferenceRequest._Minuend.prototype.addElements=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._SetDifferenceRequest._Minuend.prototype.clearElementsList=function(){return this.setElementsList([])},o._SetDifferenceRequest._Subtrahend.oneofGroups_=[[1,2]],o._SetDifferenceRequest._Subtrahend.SubtrahendSetCase={SUBTRAHEND_SET_NOT_SET:0,SET:1,IDENTITY:2},o._SetDifferenceRequest._Subtrahend.prototype.getSubtrahendSetCase=function(){return t.Message.computeOneofCase(this,o._SetDifferenceRequest._Subtrahend.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetDifferenceRequest._Subtrahend.prototype.toObject=function(e){return o._SetDifferenceRequest._Subtrahend.toObject(e,this)},o._SetDifferenceRequest._Subtrahend.toObject=function(e,t){var r,s={set:(r=t.getSet())&&o._SetDifferenceRequest._Subtrahend._Set.toObject(e,r),identity:(r=t.getIdentity())&&o._SetDifferenceRequest._Subtrahend._Identity.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetDifferenceRequest._Subtrahend.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetDifferenceRequest._Subtrahend;return o._SetDifferenceRequest._Subtrahend.deserializeBinaryFromReader(s,r)},o._SetDifferenceRequest._Subtrahend.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetDifferenceRequest._Subtrahend._Set;t.readMessage(r,o._SetDifferenceRequest._Subtrahend._Set.deserializeBinaryFromReader),e.setSet(r);break;case 2:r=new o._SetDifferenceRequest._Subtrahend._Identity,t.readMessage(r,o._SetDifferenceRequest._Subtrahend._Identity.deserializeBinaryFromReader),e.setIdentity(r);break;default:t.skipField()}return e},o._SetDifferenceRequest._Subtrahend.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetDifferenceRequest._Subtrahend.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetDifferenceRequest._Subtrahend.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getSet())&&t.writeMessage(1,r,o._SetDifferenceRequest._Subtrahend._Set.serializeBinaryToWriter),null!=(r=e.getIdentity())&&t.writeMessage(2,r,o._SetDifferenceRequest._Subtrahend._Identity.serializeBinaryToWriter)},o._SetDifferenceRequest._Subtrahend._Set.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SetDifferenceRequest._Subtrahend._Set.prototype.toObject=function(e){return o._SetDifferenceRequest._Subtrahend._Set.toObject(e,this)},o._SetDifferenceRequest._Subtrahend._Set.toObject=function(e,t){var r={elementsList:t.getElementsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SetDifferenceRequest._Subtrahend._Set.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetDifferenceRequest._Subtrahend._Set;return o._SetDifferenceRequest._Subtrahend._Set.deserializeBinaryFromReader(s,r)},o._SetDifferenceRequest._Subtrahend._Set.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addElements(r)}else t.skipField();return e},o._SetDifferenceRequest._Subtrahend._Set.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetDifferenceRequest._Subtrahend._Set.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetDifferenceRequest._Subtrahend._Set.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._SetDifferenceRequest._Subtrahend._Set.prototype.getElementsList=function(){return t.Message.getRepeatedField(this,1)},o._SetDifferenceRequest._Subtrahend._Set.prototype.getElementsList_asB64=function(){return t.Message.bytesListAsB64(this.getElementsList())},o._SetDifferenceRequest._Subtrahend._Set.prototype.getElementsList_asU8=function(){return t.Message.bytesListAsU8(this.getElementsList())},o._SetDifferenceRequest._Subtrahend._Set.prototype.setElementsList=function(e){return t.Message.setField(this,1,e||[])},o._SetDifferenceRequest._Subtrahend._Set.prototype.addElements=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._SetDifferenceRequest._Subtrahend._Set.prototype.clearElementsList=function(){return this.setElementsList([])},t.Message.GENERATE_TO_OBJECT&&(o._SetDifferenceRequest._Subtrahend._Identity.prototype.toObject=function(e){return o._SetDifferenceRequest._Subtrahend._Identity.toObject(e,this)},o._SetDifferenceRequest._Subtrahend._Identity.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetDifferenceRequest._Subtrahend._Identity.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetDifferenceRequest._Subtrahend._Identity;return o._SetDifferenceRequest._Subtrahend._Identity.deserializeBinaryFromReader(s,r)},o._SetDifferenceRequest._Subtrahend._Identity.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetDifferenceRequest._Subtrahend._Identity.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetDifferenceRequest._Subtrahend._Identity.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetDifferenceRequest._Subtrahend._Identity.serializeBinaryToWriter=function(e,t){},o._SetDifferenceRequest._Subtrahend.prototype.getSet=function(){return t.Message.getWrapperField(this,o._SetDifferenceRequest._Subtrahend._Set,1)},o._SetDifferenceRequest._Subtrahend.prototype.setSet=function(e){return t.Message.setOneofWrapperField(this,1,o._SetDifferenceRequest._Subtrahend.oneofGroups_[0],e)},o._SetDifferenceRequest._Subtrahend.prototype.clearSet=function(){return this.setSet(void 0)},o._SetDifferenceRequest._Subtrahend.prototype.hasSet=function(){return null!=t.Message.getField(this,1)},o._SetDifferenceRequest._Subtrahend.prototype.getIdentity=function(){return t.Message.getWrapperField(this,o._SetDifferenceRequest._Subtrahend._Identity,2)},o._SetDifferenceRequest._Subtrahend.prototype.setIdentity=function(e){return t.Message.setOneofWrapperField(this,2,o._SetDifferenceRequest._Subtrahend.oneofGroups_[0],e)},o._SetDifferenceRequest._Subtrahend.prototype.clearIdentity=function(){return this.setIdentity(void 0)},o._SetDifferenceRequest._Subtrahend.prototype.hasIdentity=function(){return null!=t.Message.getField(this,2)},o._SetDifferenceRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetDifferenceRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SetDifferenceRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SetDifferenceRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetDifferenceRequest.prototype.getMinuend=function(){return t.Message.getWrapperField(this,o._SetDifferenceRequest._Minuend,2)},o._SetDifferenceRequest.prototype.setMinuend=function(e){return t.Message.setOneofWrapperField(this,2,o._SetDifferenceRequest.oneofGroups_[0],e)},o._SetDifferenceRequest.prototype.clearMinuend=function(){return this.setMinuend(void 0)},o._SetDifferenceRequest.prototype.hasMinuend=function(){return null!=t.Message.getField(this,2)},o._SetDifferenceRequest.prototype.getSubtrahend=function(){return t.Message.getWrapperField(this,o._SetDifferenceRequest._Subtrahend,3)},o._SetDifferenceRequest.prototype.setSubtrahend=function(e){return t.Message.setOneofWrapperField(this,3,o._SetDifferenceRequest.oneofGroups_[0],e)},o._SetDifferenceRequest.prototype.clearSubtrahend=function(){return this.setSubtrahend(void 0)},o._SetDifferenceRequest.prototype.hasSubtrahend=function(){return null!=t.Message.getField(this,3)},o._SetDifferenceResponse.oneofGroups_=[[1,2]],o._SetDifferenceResponse.SetCase={SET_NOT_SET:0,FOUND:1,MISSING:2},o._SetDifferenceResponse.prototype.getSetCase=function(){return t.Message.computeOneofCase(this,o._SetDifferenceResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetDifferenceResponse.prototype.toObject=function(e){return o._SetDifferenceResponse.toObject(e,this)},o._SetDifferenceResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SetDifferenceResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._SetDifferenceResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetDifferenceResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetDifferenceResponse;return o._SetDifferenceResponse.deserializeBinaryFromReader(s,r)},o._SetDifferenceResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetDifferenceResponse._Found;t.readMessage(r,o._SetDifferenceResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SetDifferenceResponse._Missing,t.readMessage(r,o._SetDifferenceResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SetDifferenceResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetDifferenceResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetDifferenceResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SetDifferenceResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SetDifferenceResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SetDifferenceResponse._Found.prototype.toObject=function(e){return o._SetDifferenceResponse._Found.toObject(e,this)},o._SetDifferenceResponse._Found.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetDifferenceResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetDifferenceResponse._Found;return o._SetDifferenceResponse._Found.deserializeBinaryFromReader(s,r)},o._SetDifferenceResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetDifferenceResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetDifferenceResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetDifferenceResponse._Found.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._SetDifferenceResponse._Missing.prototype.toObject=function(e){return o._SetDifferenceResponse._Missing.toObject(e,this)},o._SetDifferenceResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetDifferenceResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetDifferenceResponse._Missing;return o._SetDifferenceResponse._Missing.deserializeBinaryFromReader(s,r)},o._SetDifferenceResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetDifferenceResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetDifferenceResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetDifferenceResponse._Missing.serializeBinaryToWriter=function(e,t){},o._SetDifferenceResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SetDifferenceResponse._Found,1)},o._SetDifferenceResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SetDifferenceResponse.oneofGroups_[0],e)},o._SetDifferenceResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SetDifferenceResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SetDifferenceResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SetDifferenceResponse._Missing,2)},o._SetDifferenceResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SetDifferenceResponse.oneofGroups_[0],e)},o._SetDifferenceResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SetDifferenceResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._SetContainsRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._SetContainsRequest.prototype.toObject=function(e){return o._SetContainsRequest.toObject(e,this)},o._SetContainsRequest.toObject=function(e,t){var r={setName:t.getSetName_asB64(),elementsList:t.getElementsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SetContainsRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetContainsRequest;return o._SetContainsRequest.deserializeBinaryFromReader(s,r)},o._SetContainsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readBytes(),e.addElements(r);break;default:t.skipField()}return e},o._SetContainsRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetContainsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetContainsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getElementsList_asU8()).length>0&&t.writeRepeatedBytes(2,r)},o._SetContainsRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetContainsRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SetContainsRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SetContainsRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetContainsRequest.prototype.getElementsList=function(){return t.Message.getRepeatedField(this,2)},o._SetContainsRequest.prototype.getElementsList_asB64=function(){return t.Message.bytesListAsB64(this.getElementsList())},o._SetContainsRequest.prototype.getElementsList_asU8=function(){return t.Message.bytesListAsU8(this.getElementsList())},o._SetContainsRequest.prototype.setElementsList=function(e){return t.Message.setField(this,2,e||[])},o._SetContainsRequest.prototype.addElements=function(e,r){return t.Message.addToRepeatedField(this,2,e,r)},o._SetContainsRequest.prototype.clearElementsList=function(){return this.setElementsList([])},o._SetContainsResponse.oneofGroups_=[[1,2]],o._SetContainsResponse.SetCase={SET_NOT_SET:0,FOUND:1,MISSING:2},o._SetContainsResponse.prototype.getSetCase=function(){return t.Message.computeOneofCase(this,o._SetContainsResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetContainsResponse.prototype.toObject=function(e){return o._SetContainsResponse.toObject(e,this)},o._SetContainsResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SetContainsResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._SetContainsResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetContainsResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetContainsResponse;return o._SetContainsResponse.deserializeBinaryFromReader(s,r)},o._SetContainsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetContainsResponse._Found;t.readMessage(r,o._SetContainsResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SetContainsResponse._Missing,t.readMessage(r,o._SetContainsResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SetContainsResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetContainsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetContainsResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SetContainsResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SetContainsResponse._Missing.serializeBinaryToWriter)},o._SetContainsResponse._Found.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SetContainsResponse._Found.prototype.toObject=function(e){return o._SetContainsResponse._Found.toObject(e,this)},o._SetContainsResponse._Found.toObject=function(e,r){var o,s={containsList:null==(o=t.Message.getRepeatedBooleanField(r,1))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),o._SetContainsResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetContainsResponse._Found;return o._SetContainsResponse._Found.deserializeBinaryFromReader(s,r)},o._SetContainsResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber())for(var r=t.isDelimited()?t.readPackedBool():[t.readBool()],o=0;o<r.length;o++)e.addContains(r[o]);else t.skipField();return e},o._SetContainsResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetContainsResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetContainsResponse._Found.serializeBinaryToWriter=function(e,t){var r;(r=e.getContainsList()).length>0&&t.writePackedBool(1,r)},o._SetContainsResponse._Found.prototype.getContainsList=function(){return t.Message.getRepeatedBooleanField(this,1)},o._SetContainsResponse._Found.prototype.setContainsList=function(e){return t.Message.setField(this,1,e||[])},o._SetContainsResponse._Found.prototype.addContains=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._SetContainsResponse._Found.prototype.clearContainsList=function(){return this.setContainsList([])},t.Message.GENERATE_TO_OBJECT&&(o._SetContainsResponse._Missing.prototype.toObject=function(e){return o._SetContainsResponse._Missing.toObject(e,this)},o._SetContainsResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetContainsResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetContainsResponse._Missing;return o._SetContainsResponse._Missing.deserializeBinaryFromReader(s,r)},o._SetContainsResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetContainsResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetContainsResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetContainsResponse._Missing.serializeBinaryToWriter=function(e,t){},o._SetContainsResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SetContainsResponse._Found,1)},o._SetContainsResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SetContainsResponse.oneofGroups_[0],e)},o._SetContainsResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SetContainsResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SetContainsResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SetContainsResponse._Missing,2)},o._SetContainsResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SetContainsResponse.oneofGroups_[0],e)},o._SetContainsResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SetContainsResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._SetLengthRequest.prototype.toObject=function(e){return o._SetLengthRequest.toObject(e,this)},o._SetLengthRequest.toObject=function(e,t){var r={setName:t.getSetName_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SetLengthRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetLengthRequest;return o._SetLengthRequest.deserializeBinaryFromReader(s,r)},o._SetLengthRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setSetName(r)}else t.skipField();return e},o._SetLengthRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetLengthRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetLengthRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r)},o._SetLengthRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetLengthRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SetLengthRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SetLengthRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetLengthResponse.oneofGroups_=[[1,2]],o._SetLengthResponse.SetCase={SET_NOT_SET:0,FOUND:1,MISSING:2},o._SetLengthResponse.prototype.getSetCase=function(){return t.Message.computeOneofCase(this,o._SetLengthResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetLengthResponse.prototype.toObject=function(e){return o._SetLengthResponse.toObject(e,this)},o._SetLengthResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SetLengthResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._SetLengthResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetLengthResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetLengthResponse;return o._SetLengthResponse.deserializeBinaryFromReader(s,r)},o._SetLengthResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetLengthResponse._Found;t.readMessage(r,o._SetLengthResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SetLengthResponse._Missing,t.readMessage(r,o._SetLengthResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SetLengthResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetLengthResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetLengthResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SetLengthResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SetLengthResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SetLengthResponse._Found.prototype.toObject=function(e){return o._SetLengthResponse._Found.toObject(e,this)},o._SetLengthResponse._Found.toObject=function(e,r){var o={length:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SetLengthResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetLengthResponse._Found;return o._SetLengthResponse._Found.deserializeBinaryFromReader(s,r)},o._SetLengthResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setLength(r)}else t.skipField();return e},o._SetLengthResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetLengthResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetLengthResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getLength())&&t.writeUint32(1,r)},o._SetLengthResponse._Found.prototype.getLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._SetLengthResponse._Found.prototype.setLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._SetLengthResponse._Missing.prototype.toObject=function(e){return o._SetLengthResponse._Missing.toObject(e,this)},o._SetLengthResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetLengthResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetLengthResponse._Missing;return o._SetLengthResponse._Missing.deserializeBinaryFromReader(s,r)},o._SetLengthResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetLengthResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetLengthResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetLengthResponse._Missing.serializeBinaryToWriter=function(e,t){},o._SetLengthResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SetLengthResponse._Found,1)},o._SetLengthResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SetLengthResponse.oneofGroups_[0],e)},o._SetLengthResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SetLengthResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SetLengthResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SetLengthResponse._Missing,2)},o._SetLengthResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SetLengthResponse.oneofGroups_[0],e)},o._SetLengthResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SetLengthResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._SetPopRequest.prototype.toObject=function(e){return o._SetPopRequest.toObject(e,this)},o._SetPopRequest.toObject=function(e,r){var o={setName:r.getSetName_asB64(),count:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SetPopRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetPopRequest;return o._SetPopRequest.deserializeBinaryFromReader(s,r)},o._SetPopRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readUint32(),e.setCount(r);break;default:t.skipField()}return e},o._SetPopRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetPopRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetPopRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getCount())&&t.writeUint32(2,r)},o._SetPopRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetPopRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SetPopRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SetPopRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SetPopRequest.prototype.getCount=function(){return t.Message.getFieldWithDefault(this,2,0)},o._SetPopRequest.prototype.setCount=function(e){return t.Message.setProto3IntField(this,2,e)},o._SetPopResponse.oneofGroups_=[[1,2]],o._SetPopResponse.SetCase={SET_NOT_SET:0,FOUND:1,MISSING:2},o._SetPopResponse.prototype.getSetCase=function(){return t.Message.computeOneofCase(this,o._SetPopResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SetPopResponse.prototype.toObject=function(e){return o._SetPopResponse.toObject(e,this)},o._SetPopResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SetPopResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._SetPopResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SetPopResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetPopResponse;return o._SetPopResponse.deserializeBinaryFromReader(s,r)},o._SetPopResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SetPopResponse._Found;t.readMessage(r,o._SetPopResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SetPopResponse._Missing,t.readMessage(r,o._SetPopResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SetPopResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetPopResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetPopResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SetPopResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SetPopResponse._Missing.serializeBinaryToWriter)},o._SetPopResponse._Found.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SetPopResponse._Found.prototype.toObject=function(e){return o._SetPopResponse._Found.toObject(e,this)},o._SetPopResponse._Found.toObject=function(e,t){var r={elementsList:t.getElementsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SetPopResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetPopResponse._Found;return o._SetPopResponse._Found.deserializeBinaryFromReader(s,r)},o._SetPopResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addElements(r)}else t.skipField();return e},o._SetPopResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetPopResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetPopResponse._Found.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._SetPopResponse._Found.prototype.getElementsList=function(){return t.Message.getRepeatedField(this,1)},o._SetPopResponse._Found.prototype.getElementsList_asB64=function(){return t.Message.bytesListAsB64(this.getElementsList())},o._SetPopResponse._Found.prototype.getElementsList_asU8=function(){return t.Message.bytesListAsU8(this.getElementsList())},o._SetPopResponse._Found.prototype.setElementsList=function(e){return t.Message.setField(this,1,e||[])},o._SetPopResponse._Found.prototype.addElements=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._SetPopResponse._Found.prototype.clearElementsList=function(){return this.setElementsList([])},t.Message.GENERATE_TO_OBJECT&&(o._SetPopResponse._Missing.prototype.toObject=function(e){return o._SetPopResponse._Missing.toObject(e,this)},o._SetPopResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetPopResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetPopResponse._Missing;return o._SetPopResponse._Missing.deserializeBinaryFromReader(s,r)},o._SetPopResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetPopResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetPopResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetPopResponse._Missing.serializeBinaryToWriter=function(e,t){},o._SetPopResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SetPopResponse._Found,1)},o._SetPopResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SetPopResponse.oneofGroups_[0],e)},o._SetPopResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SetPopResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SetPopResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SetPopResponse._Missing,2)},o._SetPopResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SetPopResponse.oneofGroups_[0],e)},o._SetPopResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SetPopResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._ListConcatenateFrontRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._ListConcatenateFrontRequest.prototype.toObject=function(e){return o._ListConcatenateFrontRequest.toObject(e,this)},o._ListConcatenateFrontRequest.toObject=function(e,r){var o={listName:r.getListName_asB64(),valuesList:r.getValuesList_asB64(),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,4,!1),truncateBackToSize:t.Message.getFieldWithDefault(r,5,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListConcatenateFrontRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListConcatenateFrontRequest;return o._ListConcatenateFrontRequest.deserializeBinaryFromReader(s,r)},o._ListConcatenateFrontRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setListName(r);break;case 2:r=t.readBytes(),e.addValues(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 4:r=t.readBool(),e.setRefreshTtl(r);break;case 5:r=t.readUint32(),e.setTruncateBackToSize(r);break;default:t.skipField()}return e},o._ListConcatenateFrontRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListConcatenateFrontRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListConcatenateFrontRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getListName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getValuesList_asU8()).length>0&&t.writeRepeatedBytes(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r),(r=e.getRefreshTtl())&&t.writeBool(4,r),0!==(r=e.getTruncateBackToSize())&&t.writeUint32(5,r)},o._ListConcatenateFrontRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListConcatenateFrontRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListConcatenateFrontRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListConcatenateFrontRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListConcatenateFrontRequest.prototype.getValuesList=function(){return t.Message.getRepeatedField(this,2)},o._ListConcatenateFrontRequest.prototype.getValuesList_asB64=function(){return t.Message.bytesListAsB64(this.getValuesList())},o._ListConcatenateFrontRequest.prototype.getValuesList_asU8=function(){return t.Message.bytesListAsU8(this.getValuesList())},o._ListConcatenateFrontRequest.prototype.setValuesList=function(e){return t.Message.setField(this,2,e||[])},o._ListConcatenateFrontRequest.prototype.addValues=function(e,r){return t.Message.addToRepeatedField(this,2,e,r)},o._ListConcatenateFrontRequest.prototype.clearValuesList=function(){return this.setValuesList([])},o._ListConcatenateFrontRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._ListConcatenateFrontRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._ListConcatenateFrontRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,4,!1)},o._ListConcatenateFrontRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,4,e)},o._ListConcatenateFrontRequest.prototype.getTruncateBackToSize=function(){return t.Message.getFieldWithDefault(this,5,0)},o._ListConcatenateFrontRequest.prototype.setTruncateBackToSize=function(e){return t.Message.setProto3IntField(this,5,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListConcatenateFrontResponse.prototype.toObject=function(e){return o._ListConcatenateFrontResponse.toObject(e,this)},o._ListConcatenateFrontResponse.toObject=function(e,r){var o={listLength:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListConcatenateFrontResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListConcatenateFrontResponse;return o._ListConcatenateFrontResponse.deserializeBinaryFromReader(s,r)},o._ListConcatenateFrontResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setListLength(r)}else t.skipField();return e},o._ListConcatenateFrontResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListConcatenateFrontResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListConcatenateFrontResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getListLength())&&t.writeUint32(1,r)},o._ListConcatenateFrontResponse.prototype.getListLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ListConcatenateFrontResponse.prototype.setListLength=function(e){return t.Message.setProto3IntField(this,1,e)},o._ListConcatenateBackRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._ListConcatenateBackRequest.prototype.toObject=function(e){return o._ListConcatenateBackRequest.toObject(e,this)},o._ListConcatenateBackRequest.toObject=function(e,r){var o={listName:r.getListName_asB64(),valuesList:r.getValuesList_asB64(),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,4,!1),truncateFrontToSize:t.Message.getFieldWithDefault(r,5,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListConcatenateBackRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListConcatenateBackRequest;return o._ListConcatenateBackRequest.deserializeBinaryFromReader(s,r)},o._ListConcatenateBackRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setListName(r);break;case 2:r=t.readBytes(),e.addValues(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 4:r=t.readBool(),e.setRefreshTtl(r);break;case 5:r=t.readUint32(),e.setTruncateFrontToSize(r);break;default:t.skipField()}return e},o._ListConcatenateBackRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListConcatenateBackRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListConcatenateBackRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getListName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getValuesList_asU8()).length>0&&t.writeRepeatedBytes(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r),(r=e.getRefreshTtl())&&t.writeBool(4,r),0!==(r=e.getTruncateFrontToSize())&&t.writeUint32(5,r)},o._ListConcatenateBackRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListConcatenateBackRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListConcatenateBackRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListConcatenateBackRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListConcatenateBackRequest.prototype.getValuesList=function(){return t.Message.getRepeatedField(this,2)},o._ListConcatenateBackRequest.prototype.getValuesList_asB64=function(){return t.Message.bytesListAsB64(this.getValuesList())},o._ListConcatenateBackRequest.prototype.getValuesList_asU8=function(){return t.Message.bytesListAsU8(this.getValuesList())},o._ListConcatenateBackRequest.prototype.setValuesList=function(e){return t.Message.setField(this,2,e||[])},o._ListConcatenateBackRequest.prototype.addValues=function(e,r){return t.Message.addToRepeatedField(this,2,e,r)},o._ListConcatenateBackRequest.prototype.clearValuesList=function(){return this.setValuesList([])},o._ListConcatenateBackRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._ListConcatenateBackRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._ListConcatenateBackRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,4,!1)},o._ListConcatenateBackRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,4,e)},o._ListConcatenateBackRequest.prototype.getTruncateFrontToSize=function(){return t.Message.getFieldWithDefault(this,5,0)},o._ListConcatenateBackRequest.prototype.setTruncateFrontToSize=function(e){return t.Message.setProto3IntField(this,5,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListConcatenateBackResponse.prototype.toObject=function(e){return o._ListConcatenateBackResponse.toObject(e,this)},o._ListConcatenateBackResponse.toObject=function(e,r){var o={listLength:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListConcatenateBackResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListConcatenateBackResponse;return o._ListConcatenateBackResponse.deserializeBinaryFromReader(s,r)},o._ListConcatenateBackResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setListLength(r)}else t.skipField();return e},o._ListConcatenateBackResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListConcatenateBackResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListConcatenateBackResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getListLength())&&t.writeUint32(1,r)},o._ListConcatenateBackResponse.prototype.getListLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ListConcatenateBackResponse.prototype.setListLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListPushFrontRequest.prototype.toObject=function(e){return o._ListPushFrontRequest.toObject(e,this)},o._ListPushFrontRequest.toObject=function(e,r){var o={listName:r.getListName_asB64(),value:r.getValue_asB64(),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,4,!1),truncateBackToSize:t.Message.getFieldWithDefault(r,5,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListPushFrontRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPushFrontRequest;return o._ListPushFrontRequest.deserializeBinaryFromReader(s,r)},o._ListPushFrontRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setListName(r);break;case 2:r=t.readBytes(),e.setValue(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 4:r=t.readBool(),e.setRefreshTtl(r);break;case 5:r=t.readUint32(),e.setTruncateBackToSize(r);break;default:t.skipField()}return e},o._ListPushFrontRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPushFrontRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPushFrontRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getListName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getValue_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r),(r=e.getRefreshTtl())&&t.writeBool(4,r),0!==(r=e.getTruncateBackToSize())&&t.writeUint32(5,r)},o._ListPushFrontRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListPushFrontRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListPushFrontRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListPushFrontRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListPushFrontRequest.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,2,"")},o._ListPushFrontRequest.prototype.getValue_asB64=function(){return t.Message.bytesAsB64(this.getValue())},o._ListPushFrontRequest.prototype.getValue_asU8=function(){return t.Message.bytesAsU8(this.getValue())},o._ListPushFrontRequest.prototype.setValue=function(e){return t.Message.setProto3BytesField(this,2,e)},o._ListPushFrontRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._ListPushFrontRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._ListPushFrontRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,4,!1)},o._ListPushFrontRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,4,e)},o._ListPushFrontRequest.prototype.getTruncateBackToSize=function(){return t.Message.getFieldWithDefault(this,5,0)},o._ListPushFrontRequest.prototype.setTruncateBackToSize=function(e){return t.Message.setProto3IntField(this,5,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListPushFrontResponse.prototype.toObject=function(e){return o._ListPushFrontResponse.toObject(e,this)},o._ListPushFrontResponse.toObject=function(e,r){var o={listLength:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListPushFrontResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPushFrontResponse;return o._ListPushFrontResponse.deserializeBinaryFromReader(s,r)},o._ListPushFrontResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setListLength(r)}else t.skipField();return e},o._ListPushFrontResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPushFrontResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPushFrontResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getListLength())&&t.writeUint32(1,r)},o._ListPushFrontResponse.prototype.getListLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ListPushFrontResponse.prototype.setListLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListPushBackRequest.prototype.toObject=function(e){return o._ListPushBackRequest.toObject(e,this)},o._ListPushBackRequest.toObject=function(e,r){var o={listName:r.getListName_asB64(),value:r.getValue_asB64(),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,4,!1),truncateFrontToSize:t.Message.getFieldWithDefault(r,5,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListPushBackRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPushBackRequest;return o._ListPushBackRequest.deserializeBinaryFromReader(s,r)},o._ListPushBackRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setListName(r);break;case 2:r=t.readBytes(),e.setValue(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 4:r=t.readBool(),e.setRefreshTtl(r);break;case 5:r=t.readUint32(),e.setTruncateFrontToSize(r);break;default:t.skipField()}return e},o._ListPushBackRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPushBackRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPushBackRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getListName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getValue_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r),(r=e.getRefreshTtl())&&t.writeBool(4,r),0!==(r=e.getTruncateFrontToSize())&&t.writeUint32(5,r)},o._ListPushBackRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListPushBackRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListPushBackRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListPushBackRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListPushBackRequest.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,2,"")},o._ListPushBackRequest.prototype.getValue_asB64=function(){return t.Message.bytesAsB64(this.getValue())},o._ListPushBackRequest.prototype.getValue_asU8=function(){return t.Message.bytesAsU8(this.getValue())},o._ListPushBackRequest.prototype.setValue=function(e){return t.Message.setProto3BytesField(this,2,e)},o._ListPushBackRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._ListPushBackRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._ListPushBackRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,4,!1)},o._ListPushBackRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,4,e)},o._ListPushBackRequest.prototype.getTruncateFrontToSize=function(){return t.Message.getFieldWithDefault(this,5,0)},o._ListPushBackRequest.prototype.setTruncateFrontToSize=function(e){return t.Message.setProto3IntField(this,5,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListPushBackResponse.prototype.toObject=function(e){return o._ListPushBackResponse.toObject(e,this)},o._ListPushBackResponse.toObject=function(e,r){var o={listLength:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListPushBackResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPushBackResponse;return o._ListPushBackResponse.deserializeBinaryFromReader(s,r)},o._ListPushBackResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setListLength(r)}else t.skipField();return e},o._ListPushBackResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPushBackResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPushBackResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getListLength())&&t.writeUint32(1,r)},o._ListPushBackResponse.prototype.getListLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ListPushBackResponse.prototype.setListLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListPopFrontRequest.prototype.toObject=function(e){return o._ListPopFrontRequest.toObject(e,this)},o._ListPopFrontRequest.toObject=function(e,t){var r={listName:t.getListName_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._ListPopFrontRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPopFrontRequest;return o._ListPopFrontRequest.deserializeBinaryFromReader(s,r)},o._ListPopFrontRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setListName(r)}else t.skipField();return e},o._ListPopFrontRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPopFrontRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPopFrontRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getListName_asU8()).length>0&&t.writeBytes(1,r)},o._ListPopFrontRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListPopFrontRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListPopFrontRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListPopFrontRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListPopFrontResponse.oneofGroups_=[[1,2]],o._ListPopFrontResponse.ListCase={LIST_NOT_SET:0,FOUND:1,MISSING:2},o._ListPopFrontResponse.prototype.getListCase=function(){return t.Message.computeOneofCase(this,o._ListPopFrontResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ListPopFrontResponse.prototype.toObject=function(e){return o._ListPopFrontResponse.toObject(e,this)},o._ListPopFrontResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._ListPopFrontResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._ListPopFrontResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ListPopFrontResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPopFrontResponse;return o._ListPopFrontResponse.deserializeBinaryFromReader(s,r)},o._ListPopFrontResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._ListPopFrontResponse._Found;t.readMessage(r,o._ListPopFrontResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._ListPopFrontResponse._Missing,t.readMessage(r,o._ListPopFrontResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._ListPopFrontResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPopFrontResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPopFrontResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._ListPopFrontResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._ListPopFrontResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._ListPopFrontResponse._Found.prototype.toObject=function(e){return o._ListPopFrontResponse._Found.toObject(e,this)},o._ListPopFrontResponse._Found.toObject=function(e,r){var o={front:r.getFront_asB64(),listLength:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListPopFrontResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPopFrontResponse._Found;return o._ListPopFrontResponse._Found.deserializeBinaryFromReader(s,r)},o._ListPopFrontResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setFront(r);break;case 2:r=t.readUint32(),e.setListLength(r);break;default:t.skipField()}return e},o._ListPopFrontResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPopFrontResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPopFrontResponse._Found.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getFront_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getListLength())&&t.writeUint32(2,r)},o._ListPopFrontResponse._Found.prototype.getFront=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListPopFrontResponse._Found.prototype.getFront_asB64=function(){return t.Message.bytesAsB64(this.getFront())},o._ListPopFrontResponse._Found.prototype.getFront_asU8=function(){return t.Message.bytesAsU8(this.getFront())},o._ListPopFrontResponse._Found.prototype.setFront=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListPopFrontResponse._Found.prototype.getListLength=function(){return t.Message.getFieldWithDefault(this,2,0)},o._ListPopFrontResponse._Found.prototype.setListLength=function(e){return t.Message.setProto3IntField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListPopFrontResponse._Missing.prototype.toObject=function(e){return o._ListPopFrontResponse._Missing.toObject(e,this)},o._ListPopFrontResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListPopFrontResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPopFrontResponse._Missing;return o._ListPopFrontResponse._Missing.deserializeBinaryFromReader(s,r)},o._ListPopFrontResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListPopFrontResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPopFrontResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPopFrontResponse._Missing.serializeBinaryToWriter=function(e,t){},o._ListPopFrontResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._ListPopFrontResponse._Found,1)},o._ListPopFrontResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._ListPopFrontResponse.oneofGroups_[0],e)},o._ListPopFrontResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._ListPopFrontResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._ListPopFrontResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._ListPopFrontResponse._Missing,2)},o._ListPopFrontResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._ListPopFrontResponse.oneofGroups_[0],e)},o._ListPopFrontResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._ListPopFrontResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._ListPopBackRequest.prototype.toObject=function(e){return o._ListPopBackRequest.toObject(e,this)},o._ListPopBackRequest.toObject=function(e,t){var r={listName:t.getListName_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._ListPopBackRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPopBackRequest;return o._ListPopBackRequest.deserializeBinaryFromReader(s,r)},o._ListPopBackRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setListName(r)}else t.skipField();return e},o._ListPopBackRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPopBackRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPopBackRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getListName_asU8()).length>0&&t.writeBytes(1,r)},o._ListPopBackRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListPopBackRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListPopBackRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListPopBackRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListPopBackResponse.oneofGroups_=[[1,2]],o._ListPopBackResponse.ListCase={LIST_NOT_SET:0,FOUND:1,MISSING:2},o._ListPopBackResponse.prototype.getListCase=function(){return t.Message.computeOneofCase(this,o._ListPopBackResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ListPopBackResponse.prototype.toObject=function(e){return o._ListPopBackResponse.toObject(e,this)},o._ListPopBackResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._ListPopBackResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._ListPopBackResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ListPopBackResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPopBackResponse;return o._ListPopBackResponse.deserializeBinaryFromReader(s,r)},o._ListPopBackResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._ListPopBackResponse._Found;t.readMessage(r,o._ListPopBackResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._ListPopBackResponse._Missing,t.readMessage(r,o._ListPopBackResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._ListPopBackResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPopBackResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPopBackResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._ListPopBackResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._ListPopBackResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._ListPopBackResponse._Found.prototype.toObject=function(e){return o._ListPopBackResponse._Found.toObject(e,this)},o._ListPopBackResponse._Found.toObject=function(e,r){var o={back:r.getBack_asB64(),listLength:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListPopBackResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPopBackResponse._Found;return o._ListPopBackResponse._Found.deserializeBinaryFromReader(s,r)},o._ListPopBackResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setBack(r);break;case 2:r=t.readUint32(),e.setListLength(r);break;default:t.skipField()}return e},o._ListPopBackResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPopBackResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPopBackResponse._Found.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBack_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getListLength())&&t.writeUint32(2,r)},o._ListPopBackResponse._Found.prototype.getBack=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListPopBackResponse._Found.prototype.getBack_asB64=function(){return t.Message.bytesAsB64(this.getBack())},o._ListPopBackResponse._Found.prototype.getBack_asU8=function(){return t.Message.bytesAsU8(this.getBack())},o._ListPopBackResponse._Found.prototype.setBack=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListPopBackResponse._Found.prototype.getListLength=function(){return t.Message.getFieldWithDefault(this,2,0)},o._ListPopBackResponse._Found.prototype.setListLength=function(e){return t.Message.setProto3IntField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListPopBackResponse._Missing.prototype.toObject=function(e){return o._ListPopBackResponse._Missing.toObject(e,this)},o._ListPopBackResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListPopBackResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListPopBackResponse._Missing;return o._ListPopBackResponse._Missing.deserializeBinaryFromReader(s,r)},o._ListPopBackResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListPopBackResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListPopBackResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListPopBackResponse._Missing.serializeBinaryToWriter=function(e,t){},o._ListPopBackResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._ListPopBackResponse._Found,1)},o._ListPopBackResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._ListPopBackResponse.oneofGroups_[0],e)},o._ListPopBackResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._ListPopBackResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._ListPopBackResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._ListPopBackResponse._Missing,2)},o._ListPopBackResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._ListPopBackResponse.oneofGroups_[0],e)},o._ListPopBackResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._ListPopBackResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._ListRange.prototype.toObject=function(e){return o._ListRange.toObject(e,this)},o._ListRange.toObject=function(e,r){var o={beginIndex:t.Message.getFieldWithDefault(r,1,0),count:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListRange.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRange;return o._ListRange.deserializeBinaryFromReader(s,r)},o._ListRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setBeginIndex(r);break;case 2:r=t.readUint32(),e.setCount(r);break;default:t.skipField()}return e},o._ListRange.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRange.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getBeginIndex())&&t.writeUint32(1,r),0!==(r=e.getCount())&&t.writeUint32(2,r)},o._ListRange.prototype.getBeginIndex=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ListRange.prototype.setBeginIndex=function(e){return t.Message.setProto3IntField(this,1,e)},o._ListRange.prototype.getCount=function(){return t.Message.getFieldWithDefault(this,2,0)},o._ListRange.prototype.setCount=function(e){return t.Message.setProto3IntField(this,2,e)},o._ListEraseRequest.oneofGroups_=[[2,3]],o._ListEraseRequest.EraseCase={ERASE_NOT_SET:0,SOME:2,ALL:3},o._ListEraseRequest.prototype.getEraseCase=function(){return t.Message.computeOneofCase(this,o._ListEraseRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ListEraseRequest.prototype.toObject=function(e){return o._ListEraseRequest.toObject(e,this)},o._ListEraseRequest.toObject=function(e,t){var r,s={listName:t.getListName_asB64(),some:(r=t.getSome())&&o._ListEraseRequest._ListRanges.toObject(e,r),all:(r=t.getAll())&&o._ListEraseRequest._All.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ListEraseRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListEraseRequest;return o._ListEraseRequest.deserializeBinaryFromReader(s,r)},o._ListEraseRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setListName(r);break;case 2:r=new o._ListEraseRequest._ListRanges,t.readMessage(r,o._ListEraseRequest._ListRanges.deserializeBinaryFromReader),e.setSome(r);break;case 3:r=new o._ListEraseRequest._All,t.readMessage(r,o._ListEraseRequest._All.deserializeBinaryFromReader),e.setAll(r);break;default:t.skipField()}return e},o._ListEraseRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListEraseRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListEraseRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getListName_asU8()).length>0&&t.writeBytes(1,r),null!=(r=e.getSome())&&t.writeMessage(2,r,o._ListEraseRequest._ListRanges.serializeBinaryToWriter),null!=(r=e.getAll())&&t.writeMessage(3,r,o._ListEraseRequest._All.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._ListEraseRequest._All.prototype.toObject=function(e){return o._ListEraseRequest._All.toObject(e,this)},o._ListEraseRequest._All.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListEraseRequest._All.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListEraseRequest._All;return o._ListEraseRequest._All.deserializeBinaryFromReader(s,r)},o._ListEraseRequest._All.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListEraseRequest._All.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListEraseRequest._All.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListEraseRequest._All.serializeBinaryToWriter=function(e,t){},o._ListEraseRequest._ListRanges.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._ListEraseRequest._ListRanges.prototype.toObject=function(e){return o._ListEraseRequest._ListRanges.toObject(e,this)},o._ListEraseRequest._ListRanges.toObject=function(e,r){var s={rangesList:t.Message.toObjectList(r.getRangesList(),o._ListRange.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._ListEraseRequest._ListRanges.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListEraseRequest._ListRanges;return o._ListEraseRequest._ListRanges.deserializeBinaryFromReader(s,r)},o._ListEraseRequest._ListRanges.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._ListRange;t.readMessage(r,o._ListRange.deserializeBinaryFromReader),e.addRanges(r)}else t.skipField();return e},o._ListEraseRequest._ListRanges.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListEraseRequest._ListRanges.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListEraseRequest._ListRanges.serializeBinaryToWriter=function(e,t){var r;(r=e.getRangesList()).length>0&&t.writeRepeatedMessage(1,r,o._ListRange.serializeBinaryToWriter)},o._ListEraseRequest._ListRanges.prototype.getRangesList=function(){return t.Message.getRepeatedWrapperField(this,o._ListRange,1)},o._ListEraseRequest._ListRanges.prototype.setRangesList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._ListEraseRequest._ListRanges.prototype.addRanges=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._ListRange,r)},o._ListEraseRequest._ListRanges.prototype.clearRangesList=function(){return this.setRangesList([])},o._ListEraseRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListEraseRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListEraseRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListEraseRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListEraseRequest.prototype.getSome=function(){return t.Message.getWrapperField(this,o._ListEraseRequest._ListRanges,2)},o._ListEraseRequest.prototype.setSome=function(e){return t.Message.setOneofWrapperField(this,2,o._ListEraseRequest.oneofGroups_[0],e)},o._ListEraseRequest.prototype.clearSome=function(){return this.setSome(void 0)},o._ListEraseRequest.prototype.hasSome=function(){return null!=t.Message.getField(this,2)},o._ListEraseRequest.prototype.getAll=function(){return t.Message.getWrapperField(this,o._ListEraseRequest._All,3)},o._ListEraseRequest.prototype.setAll=function(e){return t.Message.setOneofWrapperField(this,3,o._ListEraseRequest.oneofGroups_[0],e)},o._ListEraseRequest.prototype.clearAll=function(){return this.setAll(void 0)},o._ListEraseRequest.prototype.hasAll=function(){return null!=t.Message.getField(this,3)},o._ListEraseResponse.oneofGroups_=[[1,2]],o._ListEraseResponse.ListCase={LIST_NOT_SET:0,FOUND:1,MISSING:2},o._ListEraseResponse.prototype.getListCase=function(){return t.Message.computeOneofCase(this,o._ListEraseResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ListEraseResponse.prototype.toObject=function(e){return o._ListEraseResponse.toObject(e,this)},o._ListEraseResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._ListEraseResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._ListEraseResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ListEraseResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListEraseResponse;return o._ListEraseResponse.deserializeBinaryFromReader(s,r)},o._ListEraseResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._ListEraseResponse._Found;t.readMessage(r,o._ListEraseResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._ListEraseResponse._Missing,t.readMessage(r,o._ListEraseResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._ListEraseResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListEraseResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListEraseResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._ListEraseResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._ListEraseResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._ListEraseResponse._Found.prototype.toObject=function(e){return o._ListEraseResponse._Found.toObject(e,this)},o._ListEraseResponse._Found.toObject=function(e,r){var o={listLength:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListEraseResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListEraseResponse._Found;return o._ListEraseResponse._Found.deserializeBinaryFromReader(s,r)},o._ListEraseResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setListLength(r)}else t.skipField();return e},o._ListEraseResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListEraseResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListEraseResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getListLength())&&t.writeUint32(1,r)},o._ListEraseResponse._Found.prototype.getListLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ListEraseResponse._Found.prototype.setListLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListEraseResponse._Missing.prototype.toObject=function(e){return o._ListEraseResponse._Missing.toObject(e,this)},o._ListEraseResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListEraseResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListEraseResponse._Missing;return o._ListEraseResponse._Missing.deserializeBinaryFromReader(s,r)},o._ListEraseResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListEraseResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListEraseResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListEraseResponse._Missing.serializeBinaryToWriter=function(e,t){},o._ListEraseResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._ListEraseResponse._Found,1)},o._ListEraseResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._ListEraseResponse.oneofGroups_[0],e)},o._ListEraseResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._ListEraseResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._ListEraseResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._ListEraseResponse._Missing,2)},o._ListEraseResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._ListEraseResponse.oneofGroups_[0],e)},o._ListEraseResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._ListEraseResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._ListRemoveRequest.oneofGroups_=[[2]],o._ListRemoveRequest.RemoveCase={REMOVE_NOT_SET:0,ALL_ELEMENTS_WITH_VALUE:2},o._ListRemoveRequest.prototype.getRemoveCase=function(){return t.Message.computeOneofCase(this,o._ListRemoveRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ListRemoveRequest.prototype.toObject=function(e){return o._ListRemoveRequest.toObject(e,this)},o._ListRemoveRequest.toObject=function(e,t){var r={listName:t.getListName_asB64(),allElementsWithValue:t.getAllElementsWithValue_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._ListRemoveRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRemoveRequest;return o._ListRemoveRequest.deserializeBinaryFromReader(s,r)},o._ListRemoveRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setListName(r);break;case 2:r=t.readBytes(),e.setAllElementsWithValue(r);break;default:t.skipField()}return e},o._ListRemoveRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRemoveRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRemoveRequest.serializeBinaryToWriter=function(e,r){var o=void 0;(o=e.getListName_asU8()).length>0&&r.writeBytes(1,o),null!=(o=t.Message.getField(e,2))&&r.writeBytes(2,o)},o._ListRemoveRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListRemoveRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListRemoveRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListRemoveRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListRemoveRequest.prototype.getAllElementsWithValue=function(){return t.Message.getFieldWithDefault(this,2,"")},o._ListRemoveRequest.prototype.getAllElementsWithValue_asB64=function(){return t.Message.bytesAsB64(this.getAllElementsWithValue())},o._ListRemoveRequest.prototype.getAllElementsWithValue_asU8=function(){return t.Message.bytesAsU8(this.getAllElementsWithValue())},o._ListRemoveRequest.prototype.setAllElementsWithValue=function(e){return t.Message.setOneofField(this,2,o._ListRemoveRequest.oneofGroups_[0],e)},o._ListRemoveRequest.prototype.clearAllElementsWithValue=function(){return t.Message.setOneofField(this,2,o._ListRemoveRequest.oneofGroups_[0],void 0)},o._ListRemoveRequest.prototype.hasAllElementsWithValue=function(){return null!=t.Message.getField(this,2)},o._ListRemoveResponse.oneofGroups_=[[1,2]],o._ListRemoveResponse.ListCase={LIST_NOT_SET:0,FOUND:1,MISSING:2},o._ListRemoveResponse.prototype.getListCase=function(){return t.Message.computeOneofCase(this,o._ListRemoveResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ListRemoveResponse.prototype.toObject=function(e){return o._ListRemoveResponse.toObject(e,this)},o._ListRemoveResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._ListRemoveResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._ListRemoveResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ListRemoveResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRemoveResponse;return o._ListRemoveResponse.deserializeBinaryFromReader(s,r)},o._ListRemoveResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._ListRemoveResponse._Found;t.readMessage(r,o._ListRemoveResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._ListRemoveResponse._Missing,t.readMessage(r,o._ListRemoveResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._ListRemoveResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRemoveResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRemoveResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._ListRemoveResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._ListRemoveResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._ListRemoveResponse._Found.prototype.toObject=function(e){return o._ListRemoveResponse._Found.toObject(e,this)},o._ListRemoveResponse._Found.toObject=function(e,r){var o={listLength:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListRemoveResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRemoveResponse._Found;return o._ListRemoveResponse._Found.deserializeBinaryFromReader(s,r)},o._ListRemoveResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setListLength(r)}else t.skipField();return e},o._ListRemoveResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRemoveResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRemoveResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getListLength())&&t.writeUint32(1,r)},o._ListRemoveResponse._Found.prototype.getListLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ListRemoveResponse._Found.prototype.setListLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListRemoveResponse._Missing.prototype.toObject=function(e){return o._ListRemoveResponse._Missing.toObject(e,this)},o._ListRemoveResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListRemoveResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRemoveResponse._Missing;return o._ListRemoveResponse._Missing.deserializeBinaryFromReader(s,r)},o._ListRemoveResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListRemoveResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRemoveResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRemoveResponse._Missing.serializeBinaryToWriter=function(e,t){},o._ListRemoveResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._ListRemoveResponse._Found,1)},o._ListRemoveResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._ListRemoveResponse.oneofGroups_[0],e)},o._ListRemoveResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._ListRemoveResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._ListRemoveResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._ListRemoveResponse._Missing,2)},o._ListRemoveResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._ListRemoveResponse.oneofGroups_[0],e)},o._ListRemoveResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._ListRemoveResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._ListFetchRequest.oneofGroups_=[[2,3],[4,5]],o._ListFetchRequest.StartIndexCase={START_INDEX_NOT_SET:0,UNBOUNDED_START:2,INCLUSIVE_START:3},o._ListFetchRequest.prototype.getStartIndexCase=function(){return t.Message.computeOneofCase(this,o._ListFetchRequest.oneofGroups_[0])},o._ListFetchRequest.EndIndexCase={END_INDEX_NOT_SET:0,UNBOUNDED_END:4,EXCLUSIVE_END:5},o._ListFetchRequest.prototype.getEndIndexCase=function(){return t.Message.computeOneofCase(this,o._ListFetchRequest.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o._ListFetchRequest.prototype.toObject=function(e){return o._ListFetchRequest.toObject(e,this)},o._ListFetchRequest.toObject=function(e,r){var o,n={listName:r.getListName_asB64(),unboundedStart:(o=r.getUnboundedStart())&&s._Unbounded.toObject(e,o),inclusiveStart:t.Message.getFieldWithDefault(r,3,0),unboundedEnd:(o=r.getUnboundedEnd())&&s._Unbounded.toObject(e,o),exclusiveEnd:t.Message.getFieldWithDefault(r,5,0)};return e&&(n.$jspbMessageInstance=r),n}),o._ListFetchRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListFetchRequest;return o._ListFetchRequest.deserializeBinaryFromReader(s,r)},o._ListFetchRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setListName(r);break;case 2:r=new s._Unbounded,t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedStart(r);break;case 3:r=t.readSint32(),e.setInclusiveStart(r);break;case 4:r=new s._Unbounded,t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedEnd(r);break;case 5:r=t.readSint32(),e.setExclusiveEnd(r);break;default:t.skipField()}return e},o._ListFetchRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListFetchRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListFetchRequest.serializeBinaryToWriter=function(e,r){var o=void 0;(o=e.getListName_asU8()).length>0&&r.writeBytes(1,o),null!=(o=e.getUnboundedStart())&&r.writeMessage(2,o,s._Unbounded.serializeBinaryToWriter),null!=(o=t.Message.getField(e,3))&&r.writeSint32(3,o),null!=(o=e.getUnboundedEnd())&&r.writeMessage(4,o,s._Unbounded.serializeBinaryToWriter),null!=(o=t.Message.getField(e,5))&&r.writeSint32(5,o)},o._ListFetchRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListFetchRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListFetchRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListFetchRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListFetchRequest.prototype.getUnboundedStart=function(){return t.Message.getWrapperField(this,s._Unbounded,2)},o._ListFetchRequest.prototype.setUnboundedStart=function(e){return t.Message.setOneofWrapperField(this,2,o._ListFetchRequest.oneofGroups_[0],e)},o._ListFetchRequest.prototype.clearUnboundedStart=function(){return this.setUnboundedStart(void 0)},o._ListFetchRequest.prototype.hasUnboundedStart=function(){return null!=t.Message.getField(this,2)},o._ListFetchRequest.prototype.getInclusiveStart=function(){return t.Message.getFieldWithDefault(this,3,0)},o._ListFetchRequest.prototype.setInclusiveStart=function(e){return t.Message.setOneofField(this,3,o._ListFetchRequest.oneofGroups_[0],e)},o._ListFetchRequest.prototype.clearInclusiveStart=function(){return t.Message.setOneofField(this,3,o._ListFetchRequest.oneofGroups_[0],void 0)},o._ListFetchRequest.prototype.hasInclusiveStart=function(){return null!=t.Message.getField(this,3)},o._ListFetchRequest.prototype.getUnboundedEnd=function(){return t.Message.getWrapperField(this,s._Unbounded,4)},o._ListFetchRequest.prototype.setUnboundedEnd=function(e){return t.Message.setOneofWrapperField(this,4,o._ListFetchRequest.oneofGroups_[1],e)},o._ListFetchRequest.prototype.clearUnboundedEnd=function(){return this.setUnboundedEnd(void 0)},o._ListFetchRequest.prototype.hasUnboundedEnd=function(){return null!=t.Message.getField(this,4)},o._ListFetchRequest.prototype.getExclusiveEnd=function(){return t.Message.getFieldWithDefault(this,5,0)},o._ListFetchRequest.prototype.setExclusiveEnd=function(e){return t.Message.setOneofField(this,5,o._ListFetchRequest.oneofGroups_[1],e)},o._ListFetchRequest.prototype.clearExclusiveEnd=function(){return t.Message.setOneofField(this,5,o._ListFetchRequest.oneofGroups_[1],void 0)},o._ListFetchRequest.prototype.hasExclusiveEnd=function(){return null!=t.Message.getField(this,5)},o._ListRetainRequest.oneofGroups_=[[2,3],[4,5]],o._ListRetainRequest.StartIndexCase={START_INDEX_NOT_SET:0,UNBOUNDED_START:2,INCLUSIVE_START:3},o._ListRetainRequest.prototype.getStartIndexCase=function(){return t.Message.computeOneofCase(this,o._ListRetainRequest.oneofGroups_[0])},o._ListRetainRequest.EndIndexCase={END_INDEX_NOT_SET:0,UNBOUNDED_END:4,EXCLUSIVE_END:5},o._ListRetainRequest.prototype.getEndIndexCase=function(){return t.Message.computeOneofCase(this,o._ListRetainRequest.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o._ListRetainRequest.prototype.toObject=function(e){return o._ListRetainRequest.toObject(e,this)},o._ListRetainRequest.toObject=function(e,r){var o,n={listName:r.getListName_asB64(),unboundedStart:(o=r.getUnboundedStart())&&s._Unbounded.toObject(e,o),inclusiveStart:t.Message.getFieldWithDefault(r,3,0),unboundedEnd:(o=r.getUnboundedEnd())&&s._Unbounded.toObject(e,o),exclusiveEnd:t.Message.getFieldWithDefault(r,5,0),ttlMilliseconds:t.Message.getFieldWithDefault(r,6,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,7,!1)};return e&&(n.$jspbMessageInstance=r),n}),o._ListRetainRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRetainRequest;return o._ListRetainRequest.deserializeBinaryFromReader(s,r)},o._ListRetainRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setListName(r);break;case 2:r=new s._Unbounded,t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedStart(r);break;case 3:r=t.readSint32(),e.setInclusiveStart(r);break;case 4:r=new s._Unbounded,t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedEnd(r);break;case 5:r=t.readSint32(),e.setExclusiveEnd(r);break;case 6:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 7:r=t.readBool(),e.setRefreshTtl(r);break;default:t.skipField()}return e},o._ListRetainRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRetainRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRetainRequest.serializeBinaryToWriter=function(e,r){var o=void 0;(o=e.getListName_asU8()).length>0&&r.writeBytes(1,o),null!=(o=e.getUnboundedStart())&&r.writeMessage(2,o,s._Unbounded.serializeBinaryToWriter),null!=(o=t.Message.getField(e,3))&&r.writeSint32(3,o),null!=(o=e.getUnboundedEnd())&&r.writeMessage(4,o,s._Unbounded.serializeBinaryToWriter),null!=(o=t.Message.getField(e,5))&&r.writeSint32(5,o),0!==(o=e.getTtlMilliseconds())&&r.writeUint64(6,o),(o=e.getRefreshTtl())&&r.writeBool(7,o)},o._ListRetainRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListRetainRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListRetainRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListRetainRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListRetainRequest.prototype.getUnboundedStart=function(){return t.Message.getWrapperField(this,s._Unbounded,2)},o._ListRetainRequest.prototype.setUnboundedStart=function(e){return t.Message.setOneofWrapperField(this,2,o._ListRetainRequest.oneofGroups_[0],e)},o._ListRetainRequest.prototype.clearUnboundedStart=function(){return this.setUnboundedStart(void 0)},o._ListRetainRequest.prototype.hasUnboundedStart=function(){return null!=t.Message.getField(this,2)},o._ListRetainRequest.prototype.getInclusiveStart=function(){return t.Message.getFieldWithDefault(this,3,0)},o._ListRetainRequest.prototype.setInclusiveStart=function(e){return t.Message.setOneofField(this,3,o._ListRetainRequest.oneofGroups_[0],e)},o._ListRetainRequest.prototype.clearInclusiveStart=function(){return t.Message.setOneofField(this,3,o._ListRetainRequest.oneofGroups_[0],void 0)},o._ListRetainRequest.prototype.hasInclusiveStart=function(){return null!=t.Message.getField(this,3)},o._ListRetainRequest.prototype.getUnboundedEnd=function(){return t.Message.getWrapperField(this,s._Unbounded,4)},o._ListRetainRequest.prototype.setUnboundedEnd=function(e){return t.Message.setOneofWrapperField(this,4,o._ListRetainRequest.oneofGroups_[1],e)},o._ListRetainRequest.prototype.clearUnboundedEnd=function(){return this.setUnboundedEnd(void 0)},o._ListRetainRequest.prototype.hasUnboundedEnd=function(){return null!=t.Message.getField(this,4)},o._ListRetainRequest.prototype.getExclusiveEnd=function(){return t.Message.getFieldWithDefault(this,5,0)},o._ListRetainRequest.prototype.setExclusiveEnd=function(e){return t.Message.setOneofField(this,5,o._ListRetainRequest.oneofGroups_[1],e)},o._ListRetainRequest.prototype.clearExclusiveEnd=function(){return t.Message.setOneofField(this,5,o._ListRetainRequest.oneofGroups_[1],void 0)},o._ListRetainRequest.prototype.hasExclusiveEnd=function(){return null!=t.Message.getField(this,5)},o._ListRetainRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,6,0)},o._ListRetainRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,6,e)},o._ListRetainRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,7,!1)},o._ListRetainRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,7,e)},o._ListRetainResponse.oneofGroups_=[[1,2]],o._ListRetainResponse.ListCase={LIST_NOT_SET:0,FOUND:1,MISSING:2},o._ListRetainResponse.prototype.getListCase=function(){return t.Message.computeOneofCase(this,o._ListRetainResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ListRetainResponse.prototype.toObject=function(e){return o._ListRetainResponse.toObject(e,this)},o._ListRetainResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._ListRetainResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._ListRetainResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ListRetainResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRetainResponse;return o._ListRetainResponse.deserializeBinaryFromReader(s,r)},o._ListRetainResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._ListRetainResponse._Found;t.readMessage(r,o._ListRetainResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._ListRetainResponse._Missing,t.readMessage(r,o._ListRetainResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._ListRetainResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRetainResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRetainResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._ListRetainResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._ListRetainResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._ListRetainResponse._Found.prototype.toObject=function(e){return o._ListRetainResponse._Found.toObject(e,this)},o._ListRetainResponse._Found.toObject=function(e,r){var o={listLength:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListRetainResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRetainResponse._Found;return o._ListRetainResponse._Found.deserializeBinaryFromReader(s,r)},o._ListRetainResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setListLength(r)}else t.skipField();return e},o._ListRetainResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRetainResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRetainResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getListLength())&&t.writeUint32(1,r)},o._ListRetainResponse._Found.prototype.getListLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ListRetainResponse._Found.prototype.setListLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListRetainResponse._Missing.prototype.toObject=function(e){return o._ListRetainResponse._Missing.toObject(e,this)},o._ListRetainResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListRetainResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRetainResponse._Missing;return o._ListRetainResponse._Missing.deserializeBinaryFromReader(s,r)},o._ListRetainResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListRetainResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRetainResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRetainResponse._Missing.serializeBinaryToWriter=function(e,t){},o._ListRetainResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._ListRetainResponse._Found,1)},o._ListRetainResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._ListRetainResponse.oneofGroups_[0],e)},o._ListRetainResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._ListRetainResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._ListRetainResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._ListRetainResponse._Missing,2)},o._ListRetainResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._ListRetainResponse.oneofGroups_[0],e)},o._ListRetainResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._ListRetainResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._ListFetchResponse.oneofGroups_=[[1,2]],o._ListFetchResponse.ListCase={LIST_NOT_SET:0,FOUND:1,MISSING:2},o._ListFetchResponse.prototype.getListCase=function(){return t.Message.computeOneofCase(this,o._ListFetchResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ListFetchResponse.prototype.toObject=function(e){return o._ListFetchResponse.toObject(e,this)},o._ListFetchResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._ListFetchResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._ListFetchResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ListFetchResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListFetchResponse;return o._ListFetchResponse.deserializeBinaryFromReader(s,r)},o._ListFetchResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._ListFetchResponse._Found;t.readMessage(r,o._ListFetchResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._ListFetchResponse._Missing,t.readMessage(r,o._ListFetchResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._ListFetchResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListFetchResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListFetchResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._ListFetchResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._ListFetchResponse._Missing.serializeBinaryToWriter)},o._ListFetchResponse._Found.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._ListFetchResponse._Found.prototype.toObject=function(e){return o._ListFetchResponse._Found.toObject(e,this)},o._ListFetchResponse._Found.toObject=function(e,t){var r={valuesList:t.getValuesList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._ListFetchResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListFetchResponse._Found;return o._ListFetchResponse._Found.deserializeBinaryFromReader(s,r)},o._ListFetchResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addValues(r)}else t.skipField();return e},o._ListFetchResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListFetchResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListFetchResponse._Found.serializeBinaryToWriter=function(e,t){var r;(r=e.getValuesList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._ListFetchResponse._Found.prototype.getValuesList=function(){return t.Message.getRepeatedField(this,1)},o._ListFetchResponse._Found.prototype.getValuesList_asB64=function(){return t.Message.bytesListAsB64(this.getValuesList())},o._ListFetchResponse._Found.prototype.getValuesList_asU8=function(){return t.Message.bytesListAsU8(this.getValuesList())},o._ListFetchResponse._Found.prototype.setValuesList=function(e){return t.Message.setField(this,1,e||[])},o._ListFetchResponse._Found.prototype.addValues=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._ListFetchResponse._Found.prototype.clearValuesList=function(){return this.setValuesList([])},t.Message.GENERATE_TO_OBJECT&&(o._ListFetchResponse._Missing.prototype.toObject=function(e){return o._ListFetchResponse._Missing.toObject(e,this)},o._ListFetchResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListFetchResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListFetchResponse._Missing;return o._ListFetchResponse._Missing.deserializeBinaryFromReader(s,r)},o._ListFetchResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListFetchResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListFetchResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListFetchResponse._Missing.serializeBinaryToWriter=function(e,t){},o._ListFetchResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._ListFetchResponse._Found,1)},o._ListFetchResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._ListFetchResponse.oneofGroups_[0],e)},o._ListFetchResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._ListFetchResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._ListFetchResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._ListFetchResponse._Missing,2)},o._ListFetchResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._ListFetchResponse.oneofGroups_[0],e)},o._ListFetchResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._ListFetchResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._ListLengthRequest.prototype.toObject=function(e){return o._ListLengthRequest.toObject(e,this)},o._ListLengthRequest.toObject=function(e,t){var r={listName:t.getListName_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._ListLengthRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListLengthRequest;return o._ListLengthRequest.deserializeBinaryFromReader(s,r)},o._ListLengthRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setListName(r)}else t.skipField();return e},o._ListLengthRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListLengthRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListLengthRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getListName_asU8()).length>0&&t.writeBytes(1,r)},o._ListLengthRequest.prototype.getListName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListLengthRequest.prototype.getListName_asB64=function(){return t.Message.bytesAsB64(this.getListName())},o._ListLengthRequest.prototype.getListName_asU8=function(){return t.Message.bytesAsU8(this.getListName())},o._ListLengthRequest.prototype.setListName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._ListLengthResponse.oneofGroups_=[[1,2]],o._ListLengthResponse.ListCase={LIST_NOT_SET:0,FOUND:1,MISSING:2},o._ListLengthResponse.prototype.getListCase=function(){return t.Message.computeOneofCase(this,o._ListLengthResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._ListLengthResponse.prototype.toObject=function(e){return o._ListLengthResponse.toObject(e,this)},o._ListLengthResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._ListLengthResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._ListLengthResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._ListLengthResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListLengthResponse;return o._ListLengthResponse.deserializeBinaryFromReader(s,r)},o._ListLengthResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._ListLengthResponse._Found;t.readMessage(r,o._ListLengthResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._ListLengthResponse._Missing,t.readMessage(r,o._ListLengthResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._ListLengthResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListLengthResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListLengthResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._ListLengthResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._ListLengthResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._ListLengthResponse._Found.prototype.toObject=function(e){return o._ListLengthResponse._Found.toObject(e,this)},o._ListLengthResponse._Found.toObject=function(e,r){var o={length:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._ListLengthResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListLengthResponse._Found;return o._ListLengthResponse._Found.deserializeBinaryFromReader(s,r)},o._ListLengthResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setLength(r)}else t.skipField();return e},o._ListLengthResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListLengthResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListLengthResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getLength())&&t.writeUint32(1,r)},o._ListLengthResponse._Found.prototype.getLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._ListLengthResponse._Found.prototype.setLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListLengthResponse._Missing.prototype.toObject=function(e){return o._ListLengthResponse._Missing.toObject(e,this)},o._ListLengthResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListLengthResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListLengthResponse._Missing;return o._ListLengthResponse._Missing.deserializeBinaryFromReader(s,r)},o._ListLengthResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListLengthResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListLengthResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListLengthResponse._Missing.serializeBinaryToWriter=function(e,t){},o._ListLengthResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._ListLengthResponse._Found,1)},o._ListLengthResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._ListLengthResponse.oneofGroups_[0],e)},o._ListLengthResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._ListLengthResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._ListLengthResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._ListLengthResponse._Missing,2)},o._ListLengthResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._ListLengthResponse.oneofGroups_[0],e)},o._ListLengthResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._ListLengthResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetElement.prototype.toObject=function(e){return o._SortedSetElement.toObject(e,this)},o._SortedSetElement.toObject=function(e,r){var o={value:r.getValue_asB64(),score:t.Message.getFloatingPointFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetElement.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetElement;return o._SortedSetElement.deserializeBinaryFromReader(s,r)},o._SortedSetElement.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setValue(r);break;case 2:r=t.readDouble(),e.setScore(r);break;default:t.skipField()}return e},o._SortedSetElement.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetElement.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetElement.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getValue_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getScore())&&t.writeDouble(2,r)},o._SortedSetElement.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetElement.prototype.getValue_asB64=function(){return t.Message.bytesAsB64(this.getValue())},o._SortedSetElement.prototype.getValue_asU8=function(){return t.Message.bytesAsU8(this.getValue())},o._SortedSetElement.prototype.setValue=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetElement.prototype.getScore=function(){return t.Message.getFloatingPointFieldWithDefault(this,2,0)},o._SortedSetElement.prototype.setScore=function(e){return t.Message.setProto3FloatField(this,2,e)},o._SortedSetPutRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._SortedSetPutRequest.prototype.toObject=function(e){return o._SortedSetPutRequest.toObject(e,this)},o._SortedSetPutRequest.toObject=function(e,r){var s={setName:r.getSetName_asB64(),elementsList:t.Message.toObjectList(r.getElementsList(),o._SortedSetElement.toObject,e),ttlMilliseconds:t.Message.getFieldWithDefault(r,3,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,4,!1)};return e&&(s.$jspbMessageInstance=r),s}),o._SortedSetPutRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetPutRequest;return o._SortedSetPutRequest.deserializeBinaryFromReader(s,r)},o._SortedSetPutRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=new o._SortedSetElement,t.readMessage(r,o._SortedSetElement.deserializeBinaryFromReader),e.addElements(r);break;case 3:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 4:r=t.readBool(),e.setRefreshTtl(r);break;default:t.skipField()}return e},o._SortedSetPutRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetPutRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetPutRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(2,r,o._SortedSetElement.serializeBinaryToWriter),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(3,r),(r=e.getRefreshTtl())&&t.writeBool(4,r)},o._SortedSetPutRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetPutRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetPutRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetPutRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetPutRequest.prototype.getElementsList=function(){return t.Message.getRepeatedWrapperField(this,o._SortedSetElement,2)},o._SortedSetPutRequest.prototype.setElementsList=function(e){return t.Message.setRepeatedWrapperField(this,2,e)},o._SortedSetPutRequest.prototype.addElements=function(e,r){return t.Message.addToRepeatedWrapperField(this,2,e,o._SortedSetElement,r)},o._SortedSetPutRequest.prototype.clearElementsList=function(){return this.setElementsList([])},o._SortedSetPutRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,3,0)},o._SortedSetPutRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,3,e)},o._SortedSetPutRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,4,!1)},o._SortedSetPutRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,4,e)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetPutResponse.prototype.toObject=function(e){return o._SortedSetPutResponse.toObject(e,this)},o._SortedSetPutResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetPutResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetPutResponse;return o._SortedSetPutResponse.deserializeBinaryFromReader(s,r)},o._SortedSetPutResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SortedSetPutResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetPutResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetPutResponse.serializeBinaryToWriter=function(e,t){},o._SortedSetFetchRequest.oneofGroups_=[[4,5]],o._SortedSetFetchRequest.RangeCase={RANGE_NOT_SET:0,BY_INDEX:4,BY_SCORE:5},o._SortedSetFetchRequest.prototype.getRangeCase=function(){return t.Message.computeOneofCase(this,o._SortedSetFetchRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetFetchRequest.prototype.toObject=function(e){return o._SortedSetFetchRequest.toObject(e,this)},o._SortedSetFetchRequest.toObject=function(e,r){var s,n={setName:r.getSetName_asB64(),order:t.Message.getFieldWithDefault(r,2,0),withScores:t.Message.getBooleanFieldWithDefault(r,3,!1),byIndex:(s=r.getByIndex())&&o._SortedSetFetchRequest._ByIndex.toObject(e,s),byScore:(s=r.getByScore())&&o._SortedSetFetchRequest._ByScore.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o._SortedSetFetchRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetFetchRequest;return o._SortedSetFetchRequest.deserializeBinaryFromReader(s,r)},o._SortedSetFetchRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readEnum(),e.setOrder(r);break;case 3:r=t.readBool(),e.setWithScores(r);break;case 4:r=new o._SortedSetFetchRequest._ByIndex,t.readMessage(r,o._SortedSetFetchRequest._ByIndex.deserializeBinaryFromReader),e.setByIndex(r);break;case 5:r=new o._SortedSetFetchRequest._ByScore,t.readMessage(r,o._SortedSetFetchRequest._ByScore.deserializeBinaryFromReader),e.setByScore(r);break;default:t.skipField()}return e},o._SortedSetFetchRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetFetchRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetFetchRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getOrder())&&t.writeEnum(2,r),(r=e.getWithScores())&&t.writeBool(3,r),null!=(r=e.getByIndex())&&t.writeMessage(4,r,o._SortedSetFetchRequest._ByIndex.serializeBinaryToWriter),null!=(r=e.getByScore())&&t.writeMessage(5,r,o._SortedSetFetchRequest._ByScore.serializeBinaryToWriter)},o._SortedSetFetchRequest.Order={ASCENDING:0,DESCENDING:1},o._SortedSetFetchRequest._ByIndex.oneofGroups_=[[1,2],[3,4]],o._SortedSetFetchRequest._ByIndex.StartCase={START_NOT_SET:0,UNBOUNDED_START:1,INCLUSIVE_START_INDEX:2},o._SortedSetFetchRequest._ByIndex.prototype.getStartCase=function(){return t.Message.computeOneofCase(this,o._SortedSetFetchRequest._ByIndex.oneofGroups_[0])},o._SortedSetFetchRequest._ByIndex.EndCase={END_NOT_SET:0,UNBOUNDED_END:3,EXCLUSIVE_END_INDEX:4},o._SortedSetFetchRequest._ByIndex.prototype.getEndCase=function(){return t.Message.computeOneofCase(this,o._SortedSetFetchRequest._ByIndex.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetFetchRequest._ByIndex.prototype.toObject=function(e){return o._SortedSetFetchRequest._ByIndex.toObject(e,this)},o._SortedSetFetchRequest._ByIndex.toObject=function(e,r){var o,n={unboundedStart:(o=r.getUnboundedStart())&&s._Unbounded.toObject(e,o),inclusiveStartIndex:t.Message.getFieldWithDefault(r,2,0),unboundedEnd:(o=r.getUnboundedEnd())&&s._Unbounded.toObject(e,o),exclusiveEndIndex:t.Message.getFieldWithDefault(r,4,0)};return e&&(n.$jspbMessageInstance=r),n}),o._SortedSetFetchRequest._ByIndex.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetFetchRequest._ByIndex;return o._SortedSetFetchRequest._ByIndex.deserializeBinaryFromReader(s,r)},o._SortedSetFetchRequest._ByIndex.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new s._Unbounded;t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedStart(r);break;case 2:r=t.readSint32(),e.setInclusiveStartIndex(r);break;case 3:r=new s._Unbounded,t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedEnd(r);break;case 4:r=t.readSint32(),e.setExclusiveEndIndex(r);break;default:t.skipField()}return e},o._SortedSetFetchRequest._ByIndex.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetFetchRequest._ByIndex.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetFetchRequest._ByIndex.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=e.getUnboundedStart())&&r.writeMessage(1,o,s._Unbounded.serializeBinaryToWriter),null!=(o=t.Message.getField(e,2))&&r.writeSint32(2,o),null!=(o=e.getUnboundedEnd())&&r.writeMessage(3,o,s._Unbounded.serializeBinaryToWriter),null!=(o=t.Message.getField(e,4))&&r.writeSint32(4,o)},o._SortedSetFetchRequest._ByIndex.prototype.getUnboundedStart=function(){return t.Message.getWrapperField(this,s._Unbounded,1)},o._SortedSetFetchRequest._ByIndex.prototype.setUnboundedStart=function(e){return t.Message.setOneofWrapperField(this,1,o._SortedSetFetchRequest._ByIndex.oneofGroups_[0],e)},o._SortedSetFetchRequest._ByIndex.prototype.clearUnboundedStart=function(){return this.setUnboundedStart(void 0)},o._SortedSetFetchRequest._ByIndex.prototype.hasUnboundedStart=function(){return null!=t.Message.getField(this,1)},o._SortedSetFetchRequest._ByIndex.prototype.getInclusiveStartIndex=function(){return t.Message.getFieldWithDefault(this,2,0)},o._SortedSetFetchRequest._ByIndex.prototype.setInclusiveStartIndex=function(e){return t.Message.setOneofField(this,2,o._SortedSetFetchRequest._ByIndex.oneofGroups_[0],e)},o._SortedSetFetchRequest._ByIndex.prototype.clearInclusiveStartIndex=function(){return t.Message.setOneofField(this,2,o._SortedSetFetchRequest._ByIndex.oneofGroups_[0],void 0)},o._SortedSetFetchRequest._ByIndex.prototype.hasInclusiveStartIndex=function(){return null!=t.Message.getField(this,2)},o._SortedSetFetchRequest._ByIndex.prototype.getUnboundedEnd=function(){return t.Message.getWrapperField(this,s._Unbounded,3)},o._SortedSetFetchRequest._ByIndex.prototype.setUnboundedEnd=function(e){return t.Message.setOneofWrapperField(this,3,o._SortedSetFetchRequest._ByIndex.oneofGroups_[1],e)},o._SortedSetFetchRequest._ByIndex.prototype.clearUnboundedEnd=function(){return this.setUnboundedEnd(void 0)},o._SortedSetFetchRequest._ByIndex.prototype.hasUnboundedEnd=function(){return null!=t.Message.getField(this,3)},o._SortedSetFetchRequest._ByIndex.prototype.getExclusiveEndIndex=function(){return t.Message.getFieldWithDefault(this,4,0)},o._SortedSetFetchRequest._ByIndex.prototype.setExclusiveEndIndex=function(e){return t.Message.setOneofField(this,4,o._SortedSetFetchRequest._ByIndex.oneofGroups_[1],e)},o._SortedSetFetchRequest._ByIndex.prototype.clearExclusiveEndIndex=function(){return t.Message.setOneofField(this,4,o._SortedSetFetchRequest._ByIndex.oneofGroups_[1],void 0)},o._SortedSetFetchRequest._ByIndex.prototype.hasExclusiveEndIndex=function(){return null!=t.Message.getField(this,4)},o._SortedSetFetchRequest._ByScore.oneofGroups_=[[1,2],[3,4]],o._SortedSetFetchRequest._ByScore.MinCase={MIN_NOT_SET:0,UNBOUNDED_MIN:1,MIN_SCORE:2},o._SortedSetFetchRequest._ByScore.prototype.getMinCase=function(){return t.Message.computeOneofCase(this,o._SortedSetFetchRequest._ByScore.oneofGroups_[0])},o._SortedSetFetchRequest._ByScore.MaxCase={MAX_NOT_SET:0,UNBOUNDED_MAX:3,MAX_SCORE:4},o._SortedSetFetchRequest._ByScore.prototype.getMaxCase=function(){return t.Message.computeOneofCase(this,o._SortedSetFetchRequest._ByScore.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetFetchRequest._ByScore.prototype.toObject=function(e){return o._SortedSetFetchRequest._ByScore.toObject(e,this)},o._SortedSetFetchRequest._ByScore.toObject=function(e,r){var n,i={unboundedMin:(n=r.getUnboundedMin())&&s._Unbounded.toObject(e,n),minScore:(n=r.getMinScore())&&o._SortedSetFetchRequest._ByScore._Score.toObject(e,n),unboundedMax:(n=r.getUnboundedMax())&&s._Unbounded.toObject(e,n),maxScore:(n=r.getMaxScore())&&o._SortedSetFetchRequest._ByScore._Score.toObject(e,n),offset:t.Message.getFieldWithDefault(r,5,0),count:t.Message.getFieldWithDefault(r,6,0)};return e&&(i.$jspbMessageInstance=r),i}),o._SortedSetFetchRequest._ByScore.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetFetchRequest._ByScore;return o._SortedSetFetchRequest._ByScore.deserializeBinaryFromReader(s,r)},o._SortedSetFetchRequest._ByScore.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new s._Unbounded;t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedMin(r);break;case 2:r=new o._SortedSetFetchRequest._ByScore._Score,t.readMessage(r,o._SortedSetFetchRequest._ByScore._Score.deserializeBinaryFromReader),e.setMinScore(r);break;case 3:r=new s._Unbounded,t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedMax(r);break;case 4:r=new o._SortedSetFetchRequest._ByScore._Score,t.readMessage(r,o._SortedSetFetchRequest._ByScore._Score.deserializeBinaryFromReader),e.setMaxScore(r);break;case 5:r=t.readUint32(),e.setOffset(r);break;case 6:r=t.readSint32(),e.setCount(r);break;default:t.skipField()}return e},o._SortedSetFetchRequest._ByScore.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetFetchRequest._ByScore.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetFetchRequest._ByScore.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getUnboundedMin())&&t.writeMessage(1,r,s._Unbounded.serializeBinaryToWriter),null!=(r=e.getMinScore())&&t.writeMessage(2,r,o._SortedSetFetchRequest._ByScore._Score.serializeBinaryToWriter),null!=(r=e.getUnboundedMax())&&t.writeMessage(3,r,s._Unbounded.serializeBinaryToWriter),null!=(r=e.getMaxScore())&&t.writeMessage(4,r,o._SortedSetFetchRequest._ByScore._Score.serializeBinaryToWriter),0!==(r=e.getOffset())&&t.writeUint32(5,r),0!==(r=e.getCount())&&t.writeSint32(6,r)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetFetchRequest._ByScore._Score.prototype.toObject=function(e){return o._SortedSetFetchRequest._ByScore._Score.toObject(e,this)},o._SortedSetFetchRequest._ByScore._Score.toObject=function(e,r){var o={score:t.Message.getFloatingPointFieldWithDefault(r,1,0),exclusive:t.Message.getBooleanFieldWithDefault(r,2,!1)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetFetchRequest._ByScore._Score.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetFetchRequest._ByScore._Score;return o._SortedSetFetchRequest._ByScore._Score.deserializeBinaryFromReader(s,r)},o._SortedSetFetchRequest._ByScore._Score.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readDouble();e.setScore(r);break;case 2:r=t.readBool(),e.setExclusive(r);break;default:t.skipField()}return e},o._SortedSetFetchRequest._ByScore._Score.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetFetchRequest._ByScore._Score.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetFetchRequest._ByScore._Score.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getScore())&&t.writeDouble(1,r),(r=e.getExclusive())&&t.writeBool(2,r)},o._SortedSetFetchRequest._ByScore._Score.prototype.getScore=function(){return t.Message.getFloatingPointFieldWithDefault(this,1,0)},o._SortedSetFetchRequest._ByScore._Score.prototype.setScore=function(e){return t.Message.setProto3FloatField(this,1,e)},o._SortedSetFetchRequest._ByScore._Score.prototype.getExclusive=function(){return t.Message.getBooleanFieldWithDefault(this,2,!1)},o._SortedSetFetchRequest._ByScore._Score.prototype.setExclusive=function(e){return t.Message.setProto3BooleanField(this,2,e)},o._SortedSetFetchRequest._ByScore.prototype.getUnboundedMin=function(){return t.Message.getWrapperField(this,s._Unbounded,1)},o._SortedSetFetchRequest._ByScore.prototype.setUnboundedMin=function(e){return t.Message.setOneofWrapperField(this,1,o._SortedSetFetchRequest._ByScore.oneofGroups_[0],e)},o._SortedSetFetchRequest._ByScore.prototype.clearUnboundedMin=function(){return this.setUnboundedMin(void 0)},o._SortedSetFetchRequest._ByScore.prototype.hasUnboundedMin=function(){return null!=t.Message.getField(this,1)},o._SortedSetFetchRequest._ByScore.prototype.getMinScore=function(){return t.Message.getWrapperField(this,o._SortedSetFetchRequest._ByScore._Score,2)},o._SortedSetFetchRequest._ByScore.prototype.setMinScore=function(e){return t.Message.setOneofWrapperField(this,2,o._SortedSetFetchRequest._ByScore.oneofGroups_[0],e)},o._SortedSetFetchRequest._ByScore.prototype.clearMinScore=function(){return this.setMinScore(void 0)},o._SortedSetFetchRequest._ByScore.prototype.hasMinScore=function(){return null!=t.Message.getField(this,2)},o._SortedSetFetchRequest._ByScore.prototype.getUnboundedMax=function(){return t.Message.getWrapperField(this,s._Unbounded,3)},o._SortedSetFetchRequest._ByScore.prototype.setUnboundedMax=function(e){return t.Message.setOneofWrapperField(this,3,o._SortedSetFetchRequest._ByScore.oneofGroups_[1],e)},o._SortedSetFetchRequest._ByScore.prototype.clearUnboundedMax=function(){return this.setUnboundedMax(void 0)},o._SortedSetFetchRequest._ByScore.prototype.hasUnboundedMax=function(){return null!=t.Message.getField(this,3)},o._SortedSetFetchRequest._ByScore.prototype.getMaxScore=function(){return t.Message.getWrapperField(this,o._SortedSetFetchRequest._ByScore._Score,4)},o._SortedSetFetchRequest._ByScore.prototype.setMaxScore=function(e){return t.Message.setOneofWrapperField(this,4,o._SortedSetFetchRequest._ByScore.oneofGroups_[1],e)},o._SortedSetFetchRequest._ByScore.prototype.clearMaxScore=function(){return this.setMaxScore(void 0)},o._SortedSetFetchRequest._ByScore.prototype.hasMaxScore=function(){return null!=t.Message.getField(this,4)},o._SortedSetFetchRequest._ByScore.prototype.getOffset=function(){return t.Message.getFieldWithDefault(this,5,0)},o._SortedSetFetchRequest._ByScore.prototype.setOffset=function(e){return t.Message.setProto3IntField(this,5,e)},o._SortedSetFetchRequest._ByScore.prototype.getCount=function(){return t.Message.getFieldWithDefault(this,6,0)},o._SortedSetFetchRequest._ByScore.prototype.setCount=function(e){return t.Message.setProto3IntField(this,6,e)},o._SortedSetFetchRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetFetchRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetFetchRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetFetchRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetFetchRequest.prototype.getOrder=function(){return t.Message.getFieldWithDefault(this,2,0)},o._SortedSetFetchRequest.prototype.setOrder=function(e){return t.Message.setProto3EnumField(this,2,e)},o._SortedSetFetchRequest.prototype.getWithScores=function(){return t.Message.getBooleanFieldWithDefault(this,3,!1)},o._SortedSetFetchRequest.prototype.setWithScores=function(e){return t.Message.setProto3BooleanField(this,3,e)},o._SortedSetFetchRequest.prototype.getByIndex=function(){return t.Message.getWrapperField(this,o._SortedSetFetchRequest._ByIndex,4)},o._SortedSetFetchRequest.prototype.setByIndex=function(e){return t.Message.setOneofWrapperField(this,4,o._SortedSetFetchRequest.oneofGroups_[0],e)},o._SortedSetFetchRequest.prototype.clearByIndex=function(){return this.setByIndex(void 0)},o._SortedSetFetchRequest.prototype.hasByIndex=function(){return null!=t.Message.getField(this,4)},o._SortedSetFetchRequest.prototype.getByScore=function(){return t.Message.getWrapperField(this,o._SortedSetFetchRequest._ByScore,5)},o._SortedSetFetchRequest.prototype.setByScore=function(e){return t.Message.setOneofWrapperField(this,5,o._SortedSetFetchRequest.oneofGroups_[0],e)},o._SortedSetFetchRequest.prototype.clearByScore=function(){return this.setByScore(void 0)},o._SortedSetFetchRequest.prototype.hasByScore=function(){return null!=t.Message.getField(this,5)},o._SortedSetFetchResponse.oneofGroups_=[[1,2]],o._SortedSetFetchResponse.SortedSetCase={SORTED_SET_NOT_SET:0,FOUND:1,MISSING:2},o._SortedSetFetchResponse.prototype.getSortedSetCase=function(){return t.Message.computeOneofCase(this,o._SortedSetFetchResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetFetchResponse.prototype.toObject=function(e){return o._SortedSetFetchResponse.toObject(e,this)},o._SortedSetFetchResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SortedSetFetchResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._SortedSetFetchResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SortedSetFetchResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetFetchResponse;return o._SortedSetFetchResponse.deserializeBinaryFromReader(s,r)},o._SortedSetFetchResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SortedSetFetchResponse._Found;t.readMessage(r,o._SortedSetFetchResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SortedSetFetchResponse._Missing,t.readMessage(r,o._SortedSetFetchResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SortedSetFetchResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetFetchResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetFetchResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SortedSetFetchResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SortedSetFetchResponse._Missing.serializeBinaryToWriter)},o._SortedSetFetchResponse._Found.oneofGroups_=[[1,2]],o._SortedSetFetchResponse._Found.ElementsCase={ELEMENTS_NOT_SET:0,VALUES_WITH_SCORES:1,VALUES:2},o._SortedSetFetchResponse._Found.prototype.getElementsCase=function(){return t.Message.computeOneofCase(this,o._SortedSetFetchResponse._Found.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetFetchResponse._Found.prototype.toObject=function(e){return o._SortedSetFetchResponse._Found.toObject(e,this)},o._SortedSetFetchResponse._Found.toObject=function(e,t){var r,s={valuesWithScores:(r=t.getValuesWithScores())&&o._SortedSetFetchResponse._Found._ValuesWithScores.toObject(e,r),values:(r=t.getValues())&&o._SortedSetFetchResponse._Found._Values.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SortedSetFetchResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetFetchResponse._Found;return o._SortedSetFetchResponse._Found.deserializeBinaryFromReader(s,r)},o._SortedSetFetchResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SortedSetFetchResponse._Found._ValuesWithScores;t.readMessage(r,o._SortedSetFetchResponse._Found._ValuesWithScores.deserializeBinaryFromReader),e.setValuesWithScores(r);break;case 2:r=new o._SortedSetFetchResponse._Found._Values,t.readMessage(r,o._SortedSetFetchResponse._Found._Values.deserializeBinaryFromReader),e.setValues(r);break;default:t.skipField()}return e},o._SortedSetFetchResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetFetchResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetFetchResponse._Found.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getValuesWithScores())&&t.writeMessage(1,r,o._SortedSetFetchResponse._Found._ValuesWithScores.serializeBinaryToWriter),null!=(r=e.getValues())&&t.writeMessage(2,r,o._SortedSetFetchResponse._Found._Values.serializeBinaryToWriter)},o._SortedSetFetchResponse._Found._ValuesWithScores.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SortedSetFetchResponse._Found._ValuesWithScores.prototype.toObject=function(e){return o._SortedSetFetchResponse._Found._ValuesWithScores.toObject(e,this)},o._SortedSetFetchResponse._Found._ValuesWithScores.toObject=function(e,r){var s={elementsList:t.Message.toObjectList(r.getElementsList(),o._SortedSetElement.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._SortedSetFetchResponse._Found._ValuesWithScores.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetFetchResponse._Found._ValuesWithScores;return o._SortedSetFetchResponse._Found._ValuesWithScores.deserializeBinaryFromReader(s,r)},o._SortedSetFetchResponse._Found._ValuesWithScores.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._SortedSetElement;t.readMessage(r,o._SortedSetElement.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},o._SortedSetFetchResponse._Found._ValuesWithScores.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetFetchResponse._Found._ValuesWithScores.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetFetchResponse._Found._ValuesWithScores.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,o._SortedSetElement.serializeBinaryToWriter)},o._SortedSetFetchResponse._Found._ValuesWithScores.prototype.getElementsList=function(){return t.Message.getRepeatedWrapperField(this,o._SortedSetElement,1)},o._SortedSetFetchResponse._Found._ValuesWithScores.prototype.setElementsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._SortedSetFetchResponse._Found._ValuesWithScores.prototype.addElements=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._SortedSetElement,r)},o._SortedSetFetchResponse._Found._ValuesWithScores.prototype.clearElementsList=function(){return this.setElementsList([])},o._SortedSetFetchResponse._Found._Values.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SortedSetFetchResponse._Found._Values.prototype.toObject=function(e){return o._SortedSetFetchResponse._Found._Values.toObject(e,this)},o._SortedSetFetchResponse._Found._Values.toObject=function(e,t){var r={valuesList:t.getValuesList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetFetchResponse._Found._Values.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetFetchResponse._Found._Values;return o._SortedSetFetchResponse._Found._Values.deserializeBinaryFromReader(s,r)},o._SortedSetFetchResponse._Found._Values.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addValues(r)}else t.skipField();return e},o._SortedSetFetchResponse._Found._Values.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetFetchResponse._Found._Values.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetFetchResponse._Found._Values.serializeBinaryToWriter=function(e,t){var r;(r=e.getValuesList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._SortedSetFetchResponse._Found._Values.prototype.getValuesList=function(){return t.Message.getRepeatedField(this,1)},o._SortedSetFetchResponse._Found._Values.prototype.getValuesList_asB64=function(){return t.Message.bytesListAsB64(this.getValuesList())},o._SortedSetFetchResponse._Found._Values.prototype.getValuesList_asU8=function(){return t.Message.bytesListAsU8(this.getValuesList())},o._SortedSetFetchResponse._Found._Values.prototype.setValuesList=function(e){return t.Message.setField(this,1,e||[])},o._SortedSetFetchResponse._Found._Values.prototype.addValues=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._SortedSetFetchResponse._Found._Values.prototype.clearValuesList=function(){return this.setValuesList([])},o._SortedSetFetchResponse._Found.prototype.getValuesWithScores=function(){return t.Message.getWrapperField(this,o._SortedSetFetchResponse._Found._ValuesWithScores,1)},o._SortedSetFetchResponse._Found.prototype.setValuesWithScores=function(e){return t.Message.setOneofWrapperField(this,1,o._SortedSetFetchResponse._Found.oneofGroups_[0],e)},o._SortedSetFetchResponse._Found.prototype.clearValuesWithScores=function(){return this.setValuesWithScores(void 0)},o._SortedSetFetchResponse._Found.prototype.hasValuesWithScores=function(){return null!=t.Message.getField(this,1)},o._SortedSetFetchResponse._Found.prototype.getValues=function(){return t.Message.getWrapperField(this,o._SortedSetFetchResponse._Found._Values,2)},o._SortedSetFetchResponse._Found.prototype.setValues=function(e){return t.Message.setOneofWrapperField(this,2,o._SortedSetFetchResponse._Found.oneofGroups_[0],e)},o._SortedSetFetchResponse._Found.prototype.clearValues=function(){return this.setValues(void 0)},o._SortedSetFetchResponse._Found.prototype.hasValues=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetFetchResponse._Missing.prototype.toObject=function(e){return o._SortedSetFetchResponse._Missing.toObject(e,this)},o._SortedSetFetchResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetFetchResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetFetchResponse._Missing;return o._SortedSetFetchResponse._Missing.deserializeBinaryFromReader(s,r)},o._SortedSetFetchResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SortedSetFetchResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetFetchResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetFetchResponse._Missing.serializeBinaryToWriter=function(e,t){},o._SortedSetFetchResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SortedSetFetchResponse._Found,1)},o._SortedSetFetchResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SortedSetFetchResponse.oneofGroups_[0],e)},o._SortedSetFetchResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SortedSetFetchResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SortedSetFetchResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SortedSetFetchResponse._Missing,2)},o._SortedSetFetchResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SortedSetFetchResponse.oneofGroups_[0],e)},o._SortedSetFetchResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SortedSetFetchResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._SortedSetGetScoreRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._SortedSetGetScoreRequest.prototype.toObject=function(e){return o._SortedSetGetScoreRequest.toObject(e,this)},o._SortedSetGetScoreRequest.toObject=function(e,t){var r={setName:t.getSetName_asB64(),valuesList:t.getValuesList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetGetScoreRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetGetScoreRequest;return o._SortedSetGetScoreRequest.deserializeBinaryFromReader(s,r)},o._SortedSetGetScoreRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readBytes(),e.addValues(r);break;default:t.skipField()}return e},o._SortedSetGetScoreRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetGetScoreRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetGetScoreRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getValuesList_asU8()).length>0&&t.writeRepeatedBytes(2,r)},o._SortedSetGetScoreRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetGetScoreRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetGetScoreRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetGetScoreRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetGetScoreRequest.prototype.getValuesList=function(){return t.Message.getRepeatedField(this,2)},o._SortedSetGetScoreRequest.prototype.getValuesList_asB64=function(){return t.Message.bytesListAsB64(this.getValuesList())},o._SortedSetGetScoreRequest.prototype.getValuesList_asU8=function(){return t.Message.bytesListAsU8(this.getValuesList())},o._SortedSetGetScoreRequest.prototype.setValuesList=function(e){return t.Message.setField(this,2,e||[])},o._SortedSetGetScoreRequest.prototype.addValues=function(e,r){return t.Message.addToRepeatedField(this,2,e,r)},o._SortedSetGetScoreRequest.prototype.clearValuesList=function(){return this.setValuesList([])},o._SortedSetGetScoreResponse.oneofGroups_=[[1,2]],o._SortedSetGetScoreResponse.SortedSetCase={SORTED_SET_NOT_SET:0,FOUND:1,MISSING:2},o._SortedSetGetScoreResponse.prototype.getSortedSetCase=function(){return t.Message.computeOneofCase(this,o._SortedSetGetScoreResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetGetScoreResponse.prototype.toObject=function(e){return o._SortedSetGetScoreResponse.toObject(e,this)},o._SortedSetGetScoreResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SortedSetGetScoreResponse._SortedSetFound.toObject(e,r),missing:(r=t.getMissing())&&o._SortedSetGetScoreResponse._SortedSetMissing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SortedSetGetScoreResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetGetScoreResponse;return o._SortedSetGetScoreResponse.deserializeBinaryFromReader(s,r)},o._SortedSetGetScoreResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SortedSetGetScoreResponse._SortedSetFound;t.readMessage(r,o._SortedSetGetScoreResponse._SortedSetFound.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SortedSetGetScoreResponse._SortedSetMissing,t.readMessage(r,o._SortedSetGetScoreResponse._SortedSetMissing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SortedSetGetScoreResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetGetScoreResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetGetScoreResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SortedSetGetScoreResponse._SortedSetFound.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SortedSetGetScoreResponse._SortedSetMissing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.prototype.toObject=function(e){return o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.toObject(e,this)},o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.toObject=function(e,r){var o={result:t.Message.getFieldWithDefault(r,1,0),score:t.Message.getFloatingPointFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart;return o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.deserializeBinaryFromReader(s,r)},o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setResult(r);break;case 2:r=t.readDouble(),e.setScore(r);break;default:t.skipField()}return e},o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getResult())&&t.writeEnum(1,r),0!==(r=e.getScore())&&t.writeDouble(2,r)},o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.prototype.getResult=function(){return t.Message.getFieldWithDefault(this,1,0)},o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.prototype.setResult=function(e){return t.Message.setProto3EnumField(this,1,e)},o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.prototype.getScore=function(){return t.Message.getFloatingPointFieldWithDefault(this,2,0)},o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.prototype.setScore=function(e){return t.Message.setProto3FloatField(this,2,e)},o._SortedSetGetScoreResponse._SortedSetFound.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SortedSetGetScoreResponse._SortedSetFound.prototype.toObject=function(e){return o._SortedSetGetScoreResponse._SortedSetFound.toObject(e,this)},o._SortedSetGetScoreResponse._SortedSetFound.toObject=function(e,r){var s={elementsList:t.Message.toObjectList(r.getElementsList(),o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._SortedSetGetScoreResponse._SortedSetFound.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetGetScoreResponse._SortedSetFound;return o._SortedSetGetScoreResponse._SortedSetFound.deserializeBinaryFromReader(s,r)},o._SortedSetGetScoreResponse._SortedSetFound.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart;t.readMessage(r,o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},o._SortedSetGetScoreResponse._SortedSetFound.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetGetScoreResponse._SortedSetFound.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetGetScoreResponse._SortedSetFound.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart.serializeBinaryToWriter)},o._SortedSetGetScoreResponse._SortedSetFound.prototype.getElementsList=function(){return t.Message.getRepeatedWrapperField(this,o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart,1)},o._SortedSetGetScoreResponse._SortedSetFound.prototype.setElementsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._SortedSetGetScoreResponse._SortedSetFound.prototype.addElements=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._SortedSetGetScoreResponse._SortedSetGetScoreResponsePart,r)},o._SortedSetGetScoreResponse._SortedSetFound.prototype.clearElementsList=function(){return this.setElementsList([])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetGetScoreResponse._SortedSetMissing.prototype.toObject=function(e){return o._SortedSetGetScoreResponse._SortedSetMissing.toObject(e,this)},o._SortedSetGetScoreResponse._SortedSetMissing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetGetScoreResponse._SortedSetMissing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetGetScoreResponse._SortedSetMissing;return o._SortedSetGetScoreResponse._SortedSetMissing.deserializeBinaryFromReader(s,r)},o._SortedSetGetScoreResponse._SortedSetMissing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SortedSetGetScoreResponse._SortedSetMissing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetGetScoreResponse._SortedSetMissing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetGetScoreResponse._SortedSetMissing.serializeBinaryToWriter=function(e,t){},o._SortedSetGetScoreResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SortedSetGetScoreResponse._SortedSetFound,1)},o._SortedSetGetScoreResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SortedSetGetScoreResponse.oneofGroups_[0],e)},o._SortedSetGetScoreResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SortedSetGetScoreResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SortedSetGetScoreResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SortedSetGetScoreResponse._SortedSetMissing,2)},o._SortedSetGetScoreResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SortedSetGetScoreResponse.oneofGroups_[0],e)},o._SortedSetGetScoreResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SortedSetGetScoreResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._SortedSetRemoveRequest.oneofGroups_=[[2,3]],o._SortedSetRemoveRequest.RemoveElementsCase={REMOVE_ELEMENTS_NOT_SET:0,ALL:2,SOME:3},o._SortedSetRemoveRequest.prototype.getRemoveElementsCase=function(){return t.Message.computeOneofCase(this,o._SortedSetRemoveRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetRemoveRequest.prototype.toObject=function(e){return o._SortedSetRemoveRequest.toObject(e,this)},o._SortedSetRemoveRequest.toObject=function(e,t){var r,s={setName:t.getSetName_asB64(),all:(r=t.getAll())&&o._SortedSetRemoveRequest._All.toObject(e,r),some:(r=t.getSome())&&o._SortedSetRemoveRequest._Some.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SortedSetRemoveRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetRemoveRequest;return o._SortedSetRemoveRequest.deserializeBinaryFromReader(s,r)},o._SortedSetRemoveRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=new o._SortedSetRemoveRequest._All,t.readMessage(r,o._SortedSetRemoveRequest._All.deserializeBinaryFromReader),e.setAll(r);break;case 3:r=new o._SortedSetRemoveRequest._Some,t.readMessage(r,o._SortedSetRemoveRequest._Some.deserializeBinaryFromReader),e.setSome(r);break;default:t.skipField()}return e},o._SortedSetRemoveRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetRemoveRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetRemoveRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),null!=(r=e.getAll())&&t.writeMessage(2,r,o._SortedSetRemoveRequest._All.serializeBinaryToWriter),null!=(r=e.getSome())&&t.writeMessage(3,r,o._SortedSetRemoveRequest._Some.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetRemoveRequest._All.prototype.toObject=function(e){return o._SortedSetRemoveRequest._All.toObject(e,this)},o._SortedSetRemoveRequest._All.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetRemoveRequest._All.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetRemoveRequest._All;return o._SortedSetRemoveRequest._All.deserializeBinaryFromReader(s,r)},o._SortedSetRemoveRequest._All.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SortedSetRemoveRequest._All.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetRemoveRequest._All.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetRemoveRequest._All.serializeBinaryToWriter=function(e,t){},o._SortedSetRemoveRequest._Some.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._SortedSetRemoveRequest._Some.prototype.toObject=function(e){return o._SortedSetRemoveRequest._Some.toObject(e,this)},o._SortedSetRemoveRequest._Some.toObject=function(e,t){var r={valuesList:t.getValuesList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetRemoveRequest._Some.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetRemoveRequest._Some;return o._SortedSetRemoveRequest._Some.deserializeBinaryFromReader(s,r)},o._SortedSetRemoveRequest._Some.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.addValues(r)}else t.skipField();return e},o._SortedSetRemoveRequest._Some.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetRemoveRequest._Some.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetRemoveRequest._Some.serializeBinaryToWriter=function(e,t){var r;(r=e.getValuesList_asU8()).length>0&&t.writeRepeatedBytes(1,r)},o._SortedSetRemoveRequest._Some.prototype.getValuesList=function(){return t.Message.getRepeatedField(this,1)},o._SortedSetRemoveRequest._Some.prototype.getValuesList_asB64=function(){return t.Message.bytesListAsB64(this.getValuesList())},o._SortedSetRemoveRequest._Some.prototype.getValuesList_asU8=function(){return t.Message.bytesListAsU8(this.getValuesList())},o._SortedSetRemoveRequest._Some.prototype.setValuesList=function(e){return t.Message.setField(this,1,e||[])},o._SortedSetRemoveRequest._Some.prototype.addValues=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o._SortedSetRemoveRequest._Some.prototype.clearValuesList=function(){return this.setValuesList([])},o._SortedSetRemoveRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetRemoveRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetRemoveRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetRemoveRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetRemoveRequest.prototype.getAll=function(){return t.Message.getWrapperField(this,o._SortedSetRemoveRequest._All,2)},o._SortedSetRemoveRequest.prototype.setAll=function(e){return t.Message.setOneofWrapperField(this,2,o._SortedSetRemoveRequest.oneofGroups_[0],e)},o._SortedSetRemoveRequest.prototype.clearAll=function(){return this.setAll(void 0)},o._SortedSetRemoveRequest.prototype.hasAll=function(){return null!=t.Message.getField(this,2)},o._SortedSetRemoveRequest.prototype.getSome=function(){return t.Message.getWrapperField(this,o._SortedSetRemoveRequest._Some,3)},o._SortedSetRemoveRequest.prototype.setSome=function(e){return t.Message.setOneofWrapperField(this,3,o._SortedSetRemoveRequest.oneofGroups_[0],e)},o._SortedSetRemoveRequest.prototype.clearSome=function(){return this.setSome(void 0)},o._SortedSetRemoveRequest.prototype.hasSome=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetRemoveResponse.prototype.toObject=function(e){return o._SortedSetRemoveResponse.toObject(e,this)},o._SortedSetRemoveResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetRemoveResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetRemoveResponse;return o._SortedSetRemoveResponse.deserializeBinaryFromReader(s,r)},o._SortedSetRemoveResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SortedSetRemoveResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetRemoveResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetRemoveResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetIncrementRequest.prototype.toObject=function(e){return o._SortedSetIncrementRequest.toObject(e,this)},o._SortedSetIncrementRequest.toObject=function(e,r){var o={setName:r.getSetName_asB64(),value:r.getValue_asB64(),amount:t.Message.getFloatingPointFieldWithDefault(r,3,0),ttlMilliseconds:t.Message.getFieldWithDefault(r,4,0),refreshTtl:t.Message.getBooleanFieldWithDefault(r,5,!1)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetIncrementRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetIncrementRequest;return o._SortedSetIncrementRequest.deserializeBinaryFromReader(s,r)},o._SortedSetIncrementRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readBytes(),e.setValue(r);break;case 3:r=t.readDouble(),e.setAmount(r);break;case 4:r=t.readUint64(),e.setTtlMilliseconds(r);break;case 5:r=t.readBool(),e.setRefreshTtl(r);break;default:t.skipField()}return e},o._SortedSetIncrementRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetIncrementRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetIncrementRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getValue_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getAmount())&&t.writeDouble(3,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(4,r),(r=e.getRefreshTtl())&&t.writeBool(5,r)},o._SortedSetIncrementRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetIncrementRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetIncrementRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetIncrementRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetIncrementRequest.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,2,"")},o._SortedSetIncrementRequest.prototype.getValue_asB64=function(){return t.Message.bytesAsB64(this.getValue())},o._SortedSetIncrementRequest.prototype.getValue_asU8=function(){return t.Message.bytesAsU8(this.getValue())},o._SortedSetIncrementRequest.prototype.setValue=function(e){return t.Message.setProto3BytesField(this,2,e)},o._SortedSetIncrementRequest.prototype.getAmount=function(){return t.Message.getFloatingPointFieldWithDefault(this,3,0)},o._SortedSetIncrementRequest.prototype.setAmount=function(e){return t.Message.setProto3FloatField(this,3,e)},o._SortedSetIncrementRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,4,0)},o._SortedSetIncrementRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,4,e)},o._SortedSetIncrementRequest.prototype.getRefreshTtl=function(){return t.Message.getBooleanFieldWithDefault(this,5,!1)},o._SortedSetIncrementRequest.prototype.setRefreshTtl=function(e){return t.Message.setProto3BooleanField(this,5,e)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetIncrementResponse.prototype.toObject=function(e){return o._SortedSetIncrementResponse.toObject(e,this)},o._SortedSetIncrementResponse.toObject=function(e,r){var o={score:t.Message.getFloatingPointFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetIncrementResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetIncrementResponse;return o._SortedSetIncrementResponse.deserializeBinaryFromReader(s,r)},o._SortedSetIncrementResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readDouble();e.setScore(r)}else t.skipField();return e},o._SortedSetIncrementResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetIncrementResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetIncrementResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getScore())&&t.writeDouble(1,r)},o._SortedSetIncrementResponse.prototype.getScore=function(){return t.Message.getFloatingPointFieldWithDefault(this,1,0)},o._SortedSetIncrementResponse.prototype.setScore=function(e){return t.Message.setProto3FloatField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetGetRankRequest.prototype.toObject=function(e){return o._SortedSetGetRankRequest.toObject(e,this)},o._SortedSetGetRankRequest.toObject=function(e,r){var o={setName:r.getSetName_asB64(),value:r.getValue_asB64(),order:t.Message.getFieldWithDefault(r,3,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetGetRankRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetGetRankRequest;return o._SortedSetGetRankRequest.deserializeBinaryFromReader(s,r)},o._SortedSetGetRankRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readBytes(),e.setValue(r);break;case 3:r=t.readEnum(),e.setOrder(r);break;default:t.skipField()}return e},o._SortedSetGetRankRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetGetRankRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetGetRankRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getValue_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getOrder())&&t.writeEnum(3,r)},o._SortedSetGetRankRequest.Order={ASCENDING:0,DESCENDING:1},o._SortedSetGetRankRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetGetRankRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetGetRankRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetGetRankRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetGetRankRequest.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,2,"")},o._SortedSetGetRankRequest.prototype.getValue_asB64=function(){return t.Message.bytesAsB64(this.getValue())},o._SortedSetGetRankRequest.prototype.getValue_asU8=function(){return t.Message.bytesAsU8(this.getValue())},o._SortedSetGetRankRequest.prototype.setValue=function(e){return t.Message.setProto3BytesField(this,2,e)},o._SortedSetGetRankRequest.prototype.getOrder=function(){return t.Message.getFieldWithDefault(this,3,0)},o._SortedSetGetRankRequest.prototype.setOrder=function(e){return t.Message.setProto3EnumField(this,3,e)},o._SortedSetGetRankResponse.oneofGroups_=[[1,2]],o._SortedSetGetRankResponse.RankCase={RANK_NOT_SET:0,ELEMENT_RANK:1,MISSING:2},o._SortedSetGetRankResponse.prototype.getRankCase=function(){return t.Message.computeOneofCase(this,o._SortedSetGetRankResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetGetRankResponse.prototype.toObject=function(e){return o._SortedSetGetRankResponse.toObject(e,this)},o._SortedSetGetRankResponse.toObject=function(e,t){var r,s={elementRank:(r=t.getElementRank())&&o._SortedSetGetRankResponse._RankResponsePart.toObject(e,r),missing:(r=t.getMissing())&&o._SortedSetGetRankResponse._SortedSetMissing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SortedSetGetRankResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetGetRankResponse;return o._SortedSetGetRankResponse.deserializeBinaryFromReader(s,r)},o._SortedSetGetRankResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SortedSetGetRankResponse._RankResponsePart;t.readMessage(r,o._SortedSetGetRankResponse._RankResponsePart.deserializeBinaryFromReader),e.setElementRank(r);break;case 2:r=new o._SortedSetGetRankResponse._SortedSetMissing,t.readMessage(r,o._SortedSetGetRankResponse._SortedSetMissing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SortedSetGetRankResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetGetRankResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetGetRankResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getElementRank())&&t.writeMessage(1,r,o._SortedSetGetRankResponse._RankResponsePart.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SortedSetGetRankResponse._SortedSetMissing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetGetRankResponse._RankResponsePart.prototype.toObject=function(e){return o._SortedSetGetRankResponse._RankResponsePart.toObject(e,this)},o._SortedSetGetRankResponse._RankResponsePart.toObject=function(e,r){var o={result:t.Message.getFieldWithDefault(r,1,0),rank:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetGetRankResponse._RankResponsePart.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetGetRankResponse._RankResponsePart;return o._SortedSetGetRankResponse._RankResponsePart.deserializeBinaryFromReader(s,r)},o._SortedSetGetRankResponse._RankResponsePart.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setResult(r);break;case 2:r=t.readUint64(),e.setRank(r);break;default:t.skipField()}return e},o._SortedSetGetRankResponse._RankResponsePart.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetGetRankResponse._RankResponsePart.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetGetRankResponse._RankResponsePart.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getResult())&&t.writeEnum(1,r),0!==(r=e.getRank())&&t.writeUint64(2,r)},o._SortedSetGetRankResponse._RankResponsePart.prototype.getResult=function(){return t.Message.getFieldWithDefault(this,1,0)},o._SortedSetGetRankResponse._RankResponsePart.prototype.setResult=function(e){return t.Message.setProto3EnumField(this,1,e)},o._SortedSetGetRankResponse._RankResponsePart.prototype.getRank=function(){return t.Message.getFieldWithDefault(this,2,0)},o._SortedSetGetRankResponse._RankResponsePart.prototype.setRank=function(e){return t.Message.setProto3IntField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetGetRankResponse._SortedSetMissing.prototype.toObject=function(e){return o._SortedSetGetRankResponse._SortedSetMissing.toObject(e,this)},o._SortedSetGetRankResponse._SortedSetMissing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetGetRankResponse._SortedSetMissing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetGetRankResponse._SortedSetMissing;return o._SortedSetGetRankResponse._SortedSetMissing.deserializeBinaryFromReader(s,r)},o._SortedSetGetRankResponse._SortedSetMissing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SortedSetGetRankResponse._SortedSetMissing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetGetRankResponse._SortedSetMissing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetGetRankResponse._SortedSetMissing.serializeBinaryToWriter=function(e,t){},o._SortedSetGetRankResponse.prototype.getElementRank=function(){return t.Message.getWrapperField(this,o._SortedSetGetRankResponse._RankResponsePart,1)},o._SortedSetGetRankResponse.prototype.setElementRank=function(e){return t.Message.setOneofWrapperField(this,1,o._SortedSetGetRankResponse.oneofGroups_[0],e)},o._SortedSetGetRankResponse.prototype.clearElementRank=function(){return this.setElementRank(void 0)},o._SortedSetGetRankResponse.prototype.hasElementRank=function(){return null!=t.Message.getField(this,1)},o._SortedSetGetRankResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SortedSetGetRankResponse._SortedSetMissing,2)},o._SortedSetGetRankResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SortedSetGetRankResponse.oneofGroups_[0],e)},o._SortedSetGetRankResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SortedSetGetRankResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetLengthRequest.prototype.toObject=function(e){return o._SortedSetLengthRequest.toObject(e,this)},o._SortedSetLengthRequest.toObject=function(e,t){var r={setName:t.getSetName_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetLengthRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetLengthRequest;return o._SortedSetLengthRequest.deserializeBinaryFromReader(s,r)},o._SortedSetLengthRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setSetName(r)}else t.skipField();return e},o._SortedSetLengthRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetLengthRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetLengthRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r)},o._SortedSetLengthRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetLengthRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetLengthRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetLengthRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetLengthResponse.oneofGroups_=[[1,2]],o._SortedSetLengthResponse.SortedSetCase={SORTED_SET_NOT_SET:0,FOUND:1,MISSING:2},o._SortedSetLengthResponse.prototype.getSortedSetCase=function(){return t.Message.computeOneofCase(this,o._SortedSetLengthResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetLengthResponse.prototype.toObject=function(e){return o._SortedSetLengthResponse.toObject(e,this)},o._SortedSetLengthResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SortedSetLengthResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._SortedSetLengthResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SortedSetLengthResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetLengthResponse;return o._SortedSetLengthResponse.deserializeBinaryFromReader(s,r)},o._SortedSetLengthResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SortedSetLengthResponse._Found;t.readMessage(r,o._SortedSetLengthResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SortedSetLengthResponse._Missing,t.readMessage(r,o._SortedSetLengthResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SortedSetLengthResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetLengthResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetLengthResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SortedSetLengthResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SortedSetLengthResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetLengthResponse._Found.prototype.toObject=function(e){return o._SortedSetLengthResponse._Found.toObject(e,this)},o._SortedSetLengthResponse._Found.toObject=function(e,r){var o={length:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetLengthResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetLengthResponse._Found;return o._SortedSetLengthResponse._Found.deserializeBinaryFromReader(s,r)},o._SortedSetLengthResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setLength(r)}else t.skipField();return e},o._SortedSetLengthResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetLengthResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetLengthResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getLength())&&t.writeUint32(1,r)},o._SortedSetLengthResponse._Found.prototype.getLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._SortedSetLengthResponse._Found.prototype.setLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetLengthResponse._Missing.prototype.toObject=function(e){return o._SortedSetLengthResponse._Missing.toObject(e,this)},o._SortedSetLengthResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetLengthResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetLengthResponse._Missing;return o._SortedSetLengthResponse._Missing.deserializeBinaryFromReader(s,r)},o._SortedSetLengthResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SortedSetLengthResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetLengthResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetLengthResponse._Missing.serializeBinaryToWriter=function(e,t){},o._SortedSetLengthResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SortedSetLengthResponse._Found,1)},o._SortedSetLengthResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SortedSetLengthResponse.oneofGroups_[0],e)},o._SortedSetLengthResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SortedSetLengthResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SortedSetLengthResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SortedSetLengthResponse._Missing,2)},o._SortedSetLengthResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SortedSetLengthResponse.oneofGroups_[0],e)},o._SortedSetLengthResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SortedSetLengthResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._SortedSetLengthByScoreRequest.oneofGroups_=[[2,3,4],[5,6,7]],o._SortedSetLengthByScoreRequest.MinCase={MIN_NOT_SET:0,INCLUSIVE_MIN:2,EXCLUSIVE_MIN:3,UNBOUNDED_MIN:4},o._SortedSetLengthByScoreRequest.prototype.getMinCase=function(){return t.Message.computeOneofCase(this,o._SortedSetLengthByScoreRequest.oneofGroups_[0])},o._SortedSetLengthByScoreRequest.MaxCase={MAX_NOT_SET:0,INCLUSIVE_MAX:5,EXCLUSIVE_MAX:6,UNBOUNDED_MAX:7},o._SortedSetLengthByScoreRequest.prototype.getMaxCase=function(){return t.Message.computeOneofCase(this,o._SortedSetLengthByScoreRequest.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetLengthByScoreRequest.prototype.toObject=function(e){return o._SortedSetLengthByScoreRequest.toObject(e,this)},o._SortedSetLengthByScoreRequest.toObject=function(e,r){var o,n={setName:r.getSetName_asB64(),inclusiveMin:t.Message.getFloatingPointFieldWithDefault(r,2,0),exclusiveMin:t.Message.getFloatingPointFieldWithDefault(r,3,0),unboundedMin:(o=r.getUnboundedMin())&&s._Unbounded.toObject(e,o),inclusiveMax:t.Message.getFloatingPointFieldWithDefault(r,5,0),exclusiveMax:t.Message.getFloatingPointFieldWithDefault(r,6,0),unboundedMax:(o=r.getUnboundedMax())&&s._Unbounded.toObject(e,o)};return e&&(n.$jspbMessageInstance=r),n}),o._SortedSetLengthByScoreRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetLengthByScoreRequest;return o._SortedSetLengthByScoreRequest.deserializeBinaryFromReader(s,r)},o._SortedSetLengthByScoreRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readDouble(),e.setInclusiveMin(r);break;case 3:r=t.readDouble(),e.setExclusiveMin(r);break;case 4:r=new s._Unbounded,t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedMin(r);break;case 5:r=t.readDouble(),e.setInclusiveMax(r);break;case 6:r=t.readDouble(),e.setExclusiveMax(r);break;case 7:r=new s._Unbounded,t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedMax(r);break;default:t.skipField()}return e},o._SortedSetLengthByScoreRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetLengthByScoreRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetLengthByScoreRequest.serializeBinaryToWriter=function(e,r){var o=void 0;(o=e.getSetName_asU8()).length>0&&r.writeBytes(1,o),null!=(o=t.Message.getField(e,2))&&r.writeDouble(2,o),null!=(o=t.Message.getField(e,3))&&r.writeDouble(3,o),null!=(o=e.getUnboundedMin())&&r.writeMessage(4,o,s._Unbounded.serializeBinaryToWriter),null!=(o=t.Message.getField(e,5))&&r.writeDouble(5,o),null!=(o=t.Message.getField(e,6))&&r.writeDouble(6,o),null!=(o=e.getUnboundedMax())&&r.writeMessage(7,o,s._Unbounded.serializeBinaryToWriter)},o._SortedSetLengthByScoreRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetLengthByScoreRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetLengthByScoreRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetLengthByScoreRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetLengthByScoreRequest.prototype.getInclusiveMin=function(){return t.Message.getFloatingPointFieldWithDefault(this,2,0)},o._SortedSetLengthByScoreRequest.prototype.setInclusiveMin=function(e){return t.Message.setOneofField(this,2,o._SortedSetLengthByScoreRequest.oneofGroups_[0],e)},o._SortedSetLengthByScoreRequest.prototype.clearInclusiveMin=function(){return t.Message.setOneofField(this,2,o._SortedSetLengthByScoreRequest.oneofGroups_[0],void 0)},o._SortedSetLengthByScoreRequest.prototype.hasInclusiveMin=function(){return null!=t.Message.getField(this,2)},o._SortedSetLengthByScoreRequest.prototype.getExclusiveMin=function(){return t.Message.getFloatingPointFieldWithDefault(this,3,0)},o._SortedSetLengthByScoreRequest.prototype.setExclusiveMin=function(e){return t.Message.setOneofField(this,3,o._SortedSetLengthByScoreRequest.oneofGroups_[0],e)},o._SortedSetLengthByScoreRequest.prototype.clearExclusiveMin=function(){return t.Message.setOneofField(this,3,o._SortedSetLengthByScoreRequest.oneofGroups_[0],void 0)},o._SortedSetLengthByScoreRequest.prototype.hasExclusiveMin=function(){return null!=t.Message.getField(this,3)},o._SortedSetLengthByScoreRequest.prototype.getUnboundedMin=function(){return t.Message.getWrapperField(this,s._Unbounded,4)},o._SortedSetLengthByScoreRequest.prototype.setUnboundedMin=function(e){return t.Message.setOneofWrapperField(this,4,o._SortedSetLengthByScoreRequest.oneofGroups_[0],e)},o._SortedSetLengthByScoreRequest.prototype.clearUnboundedMin=function(){return this.setUnboundedMin(void 0)},o._SortedSetLengthByScoreRequest.prototype.hasUnboundedMin=function(){return null!=t.Message.getField(this,4)},o._SortedSetLengthByScoreRequest.prototype.getInclusiveMax=function(){return t.Message.getFloatingPointFieldWithDefault(this,5,0)},o._SortedSetLengthByScoreRequest.prototype.setInclusiveMax=function(e){return t.Message.setOneofField(this,5,o._SortedSetLengthByScoreRequest.oneofGroups_[1],e)},o._SortedSetLengthByScoreRequest.prototype.clearInclusiveMax=function(){return t.Message.setOneofField(this,5,o._SortedSetLengthByScoreRequest.oneofGroups_[1],void 0)},o._SortedSetLengthByScoreRequest.prototype.hasInclusiveMax=function(){return null!=t.Message.getField(this,5)},o._SortedSetLengthByScoreRequest.prototype.getExclusiveMax=function(){return t.Message.getFloatingPointFieldWithDefault(this,6,0)},o._SortedSetLengthByScoreRequest.prototype.setExclusiveMax=function(e){return t.Message.setOneofField(this,6,o._SortedSetLengthByScoreRequest.oneofGroups_[1],e)},o._SortedSetLengthByScoreRequest.prototype.clearExclusiveMax=function(){return t.Message.setOneofField(this,6,o._SortedSetLengthByScoreRequest.oneofGroups_[1],void 0)},o._SortedSetLengthByScoreRequest.prototype.hasExclusiveMax=function(){return null!=t.Message.getField(this,6)},o._SortedSetLengthByScoreRequest.prototype.getUnboundedMax=function(){return t.Message.getWrapperField(this,s._Unbounded,7)},o._SortedSetLengthByScoreRequest.prototype.setUnboundedMax=function(e){return t.Message.setOneofWrapperField(this,7,o._SortedSetLengthByScoreRequest.oneofGroups_[1],e)},o._SortedSetLengthByScoreRequest.prototype.clearUnboundedMax=function(){return this.setUnboundedMax(void 0)},o._SortedSetLengthByScoreRequest.prototype.hasUnboundedMax=function(){return null!=t.Message.getField(this,7)},o._SortedSetLengthByScoreResponse.oneofGroups_=[[1,2]],o._SortedSetLengthByScoreResponse.SortedSetCase={SORTED_SET_NOT_SET:0,FOUND:1,MISSING:2},o._SortedSetLengthByScoreResponse.prototype.getSortedSetCase=function(){return t.Message.computeOneofCase(this,o._SortedSetLengthByScoreResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetLengthByScoreResponse.prototype.toObject=function(e){return o._SortedSetLengthByScoreResponse.toObject(e,this)},o._SortedSetLengthByScoreResponse.toObject=function(e,t){var r,s={found:(r=t.getFound())&&o._SortedSetLengthByScoreResponse._Found.toObject(e,r),missing:(r=t.getMissing())&&o._SortedSetLengthByScoreResponse._Missing.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SortedSetLengthByScoreResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetLengthByScoreResponse;return o._SortedSetLengthByScoreResponse.deserializeBinaryFromReader(s,r)},o._SortedSetLengthByScoreResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SortedSetLengthByScoreResponse._Found;t.readMessage(r,o._SortedSetLengthByScoreResponse._Found.deserializeBinaryFromReader),e.setFound(r);break;case 2:r=new o._SortedSetLengthByScoreResponse._Missing,t.readMessage(r,o._SortedSetLengthByScoreResponse._Missing.deserializeBinaryFromReader),e.setMissing(r);break;default:t.skipField()}return e},o._SortedSetLengthByScoreResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetLengthByScoreResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetLengthByScoreResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getFound())&&t.writeMessage(1,r,o._SortedSetLengthByScoreResponse._Found.serializeBinaryToWriter),null!=(r=e.getMissing())&&t.writeMessage(2,r,o._SortedSetLengthByScoreResponse._Missing.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetLengthByScoreResponse._Found.prototype.toObject=function(e){return o._SortedSetLengthByScoreResponse._Found.toObject(e,this)},o._SortedSetLengthByScoreResponse._Found.toObject=function(e,r){var o={length:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetLengthByScoreResponse._Found.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetLengthByScoreResponse._Found;return o._SortedSetLengthByScoreResponse._Found.deserializeBinaryFromReader(s,r)},o._SortedSetLengthByScoreResponse._Found.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setLength(r)}else t.skipField();return e},o._SortedSetLengthByScoreResponse._Found.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetLengthByScoreResponse._Found.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetLengthByScoreResponse._Found.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getLength())&&t.writeUint32(1,r)},o._SortedSetLengthByScoreResponse._Found.prototype.getLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._SortedSetLengthByScoreResponse._Found.prototype.setLength=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetLengthByScoreResponse._Missing.prototype.toObject=function(e){return o._SortedSetLengthByScoreResponse._Missing.toObject(e,this)},o._SortedSetLengthByScoreResponse._Missing.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SortedSetLengthByScoreResponse._Missing.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetLengthByScoreResponse._Missing;return o._SortedSetLengthByScoreResponse._Missing.deserializeBinaryFromReader(s,r)},o._SortedSetLengthByScoreResponse._Missing.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SortedSetLengthByScoreResponse._Missing.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetLengthByScoreResponse._Missing.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetLengthByScoreResponse._Missing.serializeBinaryToWriter=function(e,t){},o._SortedSetLengthByScoreResponse.prototype.getFound=function(){return t.Message.getWrapperField(this,o._SortedSetLengthByScoreResponse._Found,1)},o._SortedSetLengthByScoreResponse.prototype.setFound=function(e){return t.Message.setOneofWrapperField(this,1,o._SortedSetLengthByScoreResponse.oneofGroups_[0],e)},o._SortedSetLengthByScoreResponse.prototype.clearFound=function(){return this.setFound(void 0)},o._SortedSetLengthByScoreResponse.prototype.hasFound=function(){return null!=t.Message.getField(this,1)},o._SortedSetLengthByScoreResponse.prototype.getMissing=function(){return t.Message.getWrapperField(this,o._SortedSetLengthByScoreResponse._Missing,2)},o._SortedSetLengthByScoreResponse.prototype.setMissing=function(e){return t.Message.setOneofWrapperField(this,2,o._SortedSetLengthByScoreResponse.oneofGroups_[0],e)},o._SortedSetLengthByScoreResponse.prototype.clearMissing=function(){return this.setMissing(void 0)},o._SortedSetLengthByScoreResponse.prototype.hasMissing=function(){return null!=t.Message.getField(this,2)},o._SortedSetUnionStoreRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._SortedSetUnionStoreRequest.prototype.toObject=function(e){return o._SortedSetUnionStoreRequest.toObject(e,this)},o._SortedSetUnionStoreRequest.toObject=function(e,r){var s={setName:r.getSetName_asB64(),sourcesList:t.Message.toObjectList(r.getSourcesList(),o._SortedSetUnionStoreRequest._Source.toObject,e),aggregate:t.Message.getFieldWithDefault(r,3,0),ttlMilliseconds:t.Message.getFieldWithDefault(r,4,0)};return e&&(s.$jspbMessageInstance=r),s}),o._SortedSetUnionStoreRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetUnionStoreRequest;return o._SortedSetUnionStoreRequest.deserializeBinaryFromReader(s,r)},o._SortedSetUnionStoreRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=new o._SortedSetUnionStoreRequest._Source,t.readMessage(r,o._SortedSetUnionStoreRequest._Source.deserializeBinaryFromReader),e.addSources(r);break;case 3:r=t.readEnum(),e.setAggregate(r);break;case 4:r=t.readUint64(),e.setTtlMilliseconds(r);break;default:t.skipField()}return e},o._SortedSetUnionStoreRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetUnionStoreRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetUnionStoreRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),(r=e.getSourcesList()).length>0&&t.writeRepeatedMessage(2,r,o._SortedSetUnionStoreRequest._Source.serializeBinaryToWriter),0!==(r=e.getAggregate())&&t.writeEnum(3,r),0!==(r=e.getTtlMilliseconds())&&t.writeUint64(4,r)},o._SortedSetUnionStoreRequest.AggregateFunction={SUM:0,MIN:1,MAX:2},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetUnionStoreRequest._Source.prototype.toObject=function(e){return o._SortedSetUnionStoreRequest._Source.toObject(e,this)},o._SortedSetUnionStoreRequest._Source.toObject=function(e,r){var o={setName:r.getSetName_asB64(),weight:t.Message.getFloatingPointFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetUnionStoreRequest._Source.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetUnionStoreRequest._Source;return o._SortedSetUnionStoreRequest._Source.deserializeBinaryFromReader(s,r)},o._SortedSetUnionStoreRequest._Source.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setSetName(r);break;case 2:r=t.readFloat(),e.setWeight(r);break;default:t.skipField()}return e},o._SortedSetUnionStoreRequest._Source.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetUnionStoreRequest._Source.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetUnionStoreRequest._Source.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSetName_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getWeight())&&t.writeFloat(2,r)},o._SortedSetUnionStoreRequest._Source.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetUnionStoreRequest._Source.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetUnionStoreRequest._Source.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetUnionStoreRequest._Source.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetUnionStoreRequest._Source.prototype.getWeight=function(){return t.Message.getFloatingPointFieldWithDefault(this,2,0)},o._SortedSetUnionStoreRequest._Source.prototype.setWeight=function(e){return t.Message.setProto3FloatField(this,2,e)},o._SortedSetUnionStoreRequest.prototype.getSetName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SortedSetUnionStoreRequest.prototype.getSetName_asB64=function(){return t.Message.bytesAsB64(this.getSetName())},o._SortedSetUnionStoreRequest.prototype.getSetName_asU8=function(){return t.Message.bytesAsU8(this.getSetName())},o._SortedSetUnionStoreRequest.prototype.setSetName=function(e){return t.Message.setProto3BytesField(this,1,e)},o._SortedSetUnionStoreRequest.prototype.getSourcesList=function(){return t.Message.getRepeatedWrapperField(this,o._SortedSetUnionStoreRequest._Source,2)},o._SortedSetUnionStoreRequest.prototype.setSourcesList=function(e){return t.Message.setRepeatedWrapperField(this,2,e)},o._SortedSetUnionStoreRequest.prototype.addSources=function(e,r){return t.Message.addToRepeatedWrapperField(this,2,e,o._SortedSetUnionStoreRequest._Source,r)},o._SortedSetUnionStoreRequest.prototype.clearSourcesList=function(){return this.setSourcesList([])},o._SortedSetUnionStoreRequest.prototype.getAggregate=function(){return t.Message.getFieldWithDefault(this,3,0)},o._SortedSetUnionStoreRequest.prototype.setAggregate=function(e){return t.Message.setProto3EnumField(this,3,e)},o._SortedSetUnionStoreRequest.prototype.getTtlMilliseconds=function(){return t.Message.getFieldWithDefault(this,4,0)},o._SortedSetUnionStoreRequest.prototype.setTtlMilliseconds=function(e){return t.Message.setProto3IntField(this,4,e)},t.Message.GENERATE_TO_OBJECT&&(o._SortedSetUnionStoreResponse.prototype.toObject=function(e){return o._SortedSetUnionStoreResponse.toObject(e,this)},o._SortedSetUnionStoreResponse.toObject=function(e,r){var o={length:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SortedSetUnionStoreResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SortedSetUnionStoreResponse;return o._SortedSetUnionStoreResponse.deserializeBinaryFromReader(s,r)},o._SortedSetUnionStoreResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setLength(r)}else t.skipField();return e},o._SortedSetUnionStoreResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SortedSetUnionStoreResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SortedSetUnionStoreResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getLength())&&t.writeUint32(1,r)},o._SortedSetUnionStoreResponse.prototype.getLength=function(){return t.Message.getFieldWithDefault(this,1,0)},o._SortedSetUnionStoreResponse.prototype.setLength=function(e){return t.Message.setProto3IntField(this,1,e)},o.ECacheResult={INVALID:0,OK:1,HIT:2,MISS:3},r.object.extend(e,o)),cacheclient_pb;var e,t,r,o,s}function requireCacheclientServiceClientPb(){if(hasRequiredCacheclientServiceClientPb)return CacheclientServiceClientPb;hasRequiredCacheclientServiceClientPb=1;var e=CacheclientServiceClientPb&&CacheclientServiceClientPb.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=CacheclientServiceClientPb&&CacheclientServiceClientPb.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=CacheclientServiceClientPb&&CacheclientServiceClientPb.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};Object.defineProperty(CacheclientServiceClientPb,"__esModule",{value:!0}),CacheclientServiceClientPb.ScsClient=void 0;const o=r(requireGrpcWeb()),s=r(requireCacheclient_pb());return CacheclientServiceClientPb.ScsClient=class{constructor(e,t,r){this.methodDescriptorGet=new o.MethodDescriptor("/cache_client.Scs/Get",o.MethodType.UNARY,s._GetRequest,s._GetResponse,(e=>e.serializeBinary()),s._GetResponse.deserializeBinary),this.methodDescriptorGetWithHash=new o.MethodDescriptor("/cache_client.Scs/GetWithHash",o.MethodType.UNARY,s._GetWithHashRequest,s._GetWithHashResponse,(e=>e.serializeBinary()),s._GetWithHashResponse.deserializeBinary),this.methodDescriptorGetBatch=new o.MethodDescriptor("/cache_client.Scs/GetBatch",o.MethodType.SERVER_STREAMING,s._GetBatchRequest,s._GetResponse,(e=>e.serializeBinary()),s._GetResponse.deserializeBinary),this.methodDescriptorSet=new o.MethodDescriptor("/cache_client.Scs/Set",o.MethodType.UNARY,s._SetRequest,s._SetResponse,(e=>e.serializeBinary()),s._SetResponse.deserializeBinary),this.methodDescriptorSetBatch=new o.MethodDescriptor("/cache_client.Scs/SetBatch",o.MethodType.SERVER_STREAMING,s._SetBatchRequest,s._SetResponse,(e=>e.serializeBinary()),s._SetResponse.deserializeBinary),this.methodDescriptorSetIf=new o.MethodDescriptor("/cache_client.Scs/SetIf",o.MethodType.UNARY,s._SetIfRequest,s._SetIfResponse,(e=>e.serializeBinary()),s._SetIfResponse.deserializeBinary),this.methodDescriptorSetIfHash=new o.MethodDescriptor("/cache_client.Scs/SetIfHash",o.MethodType.UNARY,s._SetIfHashRequest,s._SetIfHashResponse,(e=>e.serializeBinary()),s._SetIfHashResponse.deserializeBinary),this.methodDescriptorSetIfNotExists=new o.MethodDescriptor("/cache_client.Scs/SetIfNotExists",o.MethodType.UNARY,s._SetIfNotExistsRequest,s._SetIfNotExistsResponse,(e=>e.serializeBinary()),s._SetIfNotExistsResponse.deserializeBinary),this.methodDescriptorDelete=new o.MethodDescriptor("/cache_client.Scs/Delete",o.MethodType.UNARY,s._DeleteRequest,s._DeleteResponse,(e=>e.serializeBinary()),s._DeleteResponse.deserializeBinary),this.methodDescriptorKeysExist=new o.MethodDescriptor("/cache_client.Scs/KeysExist",o.MethodType.UNARY,s._KeysExistRequest,s._KeysExistResponse,(e=>e.serializeBinary()),s._KeysExistResponse.deserializeBinary),this.methodDescriptorIncrement=new o.MethodDescriptor("/cache_client.Scs/Increment",o.MethodType.UNARY,s._IncrementRequest,s._IncrementResponse,(e=>e.serializeBinary()),s._IncrementResponse.deserializeBinary),this.methodDescriptorUpdateTtl=new o.MethodDescriptor("/cache_client.Scs/UpdateTtl",o.MethodType.UNARY,s._UpdateTtlRequest,s._UpdateTtlResponse,(e=>e.serializeBinary()),s._UpdateTtlResponse.deserializeBinary),this.methodDescriptorItemGetTtl=new o.MethodDescriptor("/cache_client.Scs/ItemGetTtl",o.MethodType.UNARY,s._ItemGetTtlRequest,s._ItemGetTtlResponse,(e=>e.serializeBinary()),s._ItemGetTtlResponse.deserializeBinary),this.methodDescriptorItemGetType=new o.MethodDescriptor("/cache_client.Scs/ItemGetType",o.MethodType.UNARY,s._ItemGetTypeRequest,s._ItemGetTypeResponse,(e=>e.serializeBinary()),s._ItemGetTypeResponse.deserializeBinary),this.methodDescriptorDictionaryGet=new o.MethodDescriptor("/cache_client.Scs/DictionaryGet",o.MethodType.UNARY,s._DictionaryGetRequest,s._DictionaryGetResponse,(e=>e.serializeBinary()),s._DictionaryGetResponse.deserializeBinary),this.methodDescriptorDictionaryFetch=new o.MethodDescriptor("/cache_client.Scs/DictionaryFetch",o.MethodType.UNARY,s._DictionaryFetchRequest,s._DictionaryFetchResponse,(e=>e.serializeBinary()),s._DictionaryFetchResponse.deserializeBinary),this.methodDescriptorDictionarySet=new o.MethodDescriptor("/cache_client.Scs/DictionarySet",o.MethodType.UNARY,s._DictionarySetRequest,s._DictionarySetResponse,(e=>e.serializeBinary()),s._DictionarySetResponse.deserializeBinary),this.methodDescriptorDictionaryIncrement=new o.MethodDescriptor("/cache_client.Scs/DictionaryIncrement",o.MethodType.UNARY,s._DictionaryIncrementRequest,s._DictionaryIncrementResponse,(e=>e.serializeBinary()),s._DictionaryIncrementResponse.deserializeBinary),this.methodDescriptorDictionaryDelete=new o.MethodDescriptor("/cache_client.Scs/DictionaryDelete",o.MethodType.UNARY,s._DictionaryDeleteRequest,s._DictionaryDeleteResponse,(e=>e.serializeBinary()),s._DictionaryDeleteResponse.deserializeBinary),this.methodDescriptorDictionaryLength=new o.MethodDescriptor("/cache_client.Scs/DictionaryLength",o.MethodType.UNARY,s._DictionaryLengthRequest,s._DictionaryLengthResponse,(e=>e.serializeBinary()),s._DictionaryLengthResponse.deserializeBinary),this.methodDescriptorSetFetch=new o.MethodDescriptor("/cache_client.Scs/SetFetch",o.MethodType.UNARY,s._SetFetchRequest,s._SetFetchResponse,(e=>e.serializeBinary()),s._SetFetchResponse.deserializeBinary),this.methodDescriptorSetSample=new o.MethodDescriptor("/cache_client.Scs/SetSample",o.MethodType.UNARY,s._SetSampleRequest,s._SetSampleResponse,(e=>e.serializeBinary()),s._SetSampleResponse.deserializeBinary),this.methodDescriptorSetUnion=new o.MethodDescriptor("/cache_client.Scs/SetUnion",o.MethodType.UNARY,s._SetUnionRequest,s._SetUnionResponse,(e=>e.serializeBinary()),s._SetUnionResponse.deserializeBinary),this.methodDescriptorSetDifference=new o.MethodDescriptor("/cache_client.Scs/SetDifference",o.MethodType.UNARY,s._SetDifferenceRequest,s._SetDifferenceResponse,(e=>e.serializeBinary()),s._SetDifferenceResponse.deserializeBinary),this.methodDescriptorSetContains=new o.MethodDescriptor("/cache_client.Scs/SetContains",o.MethodType.UNARY,s._SetContainsRequest,s._SetContainsResponse,(e=>e.serializeBinary()),s._SetContainsResponse.deserializeBinary),this.methodDescriptorSetLength=new o.MethodDescriptor("/cache_client.Scs/SetLength",o.MethodType.UNARY,s._SetLengthRequest,s._SetLengthResponse,(e=>e.serializeBinary()),s._SetLengthResponse.deserializeBinary),this.methodDescriptorSetPop=new o.MethodDescriptor("/cache_client.Scs/SetPop",o.MethodType.UNARY,s._SetPopRequest,s._SetPopResponse,(e=>e.serializeBinary()),s._SetPopResponse.deserializeBinary),this.methodDescriptorListPushFront=new o.MethodDescriptor("/cache_client.Scs/ListPushFront",o.MethodType.UNARY,s._ListPushFrontRequest,s._ListPushFrontResponse,(e=>e.serializeBinary()),s._ListPushFrontResponse.deserializeBinary),this.methodDescriptorListPushBack=new o.MethodDescriptor("/cache_client.Scs/ListPushBack",o.MethodType.UNARY,s._ListPushBackRequest,s._ListPushBackResponse,(e=>e.serializeBinary()),s._ListPushBackResponse.deserializeBinary),this.methodDescriptorListPopFront=new o.MethodDescriptor("/cache_client.Scs/ListPopFront",o.MethodType.UNARY,s._ListPopFrontRequest,s._ListPopFrontResponse,(e=>e.serializeBinary()),s._ListPopFrontResponse.deserializeBinary),this.methodDescriptorListPopBack=new o.MethodDescriptor("/cache_client.Scs/ListPopBack",o.MethodType.UNARY,s._ListPopBackRequest,s._ListPopBackResponse,(e=>e.serializeBinary()),s._ListPopBackResponse.deserializeBinary),this.methodDescriptorListErase=new o.MethodDescriptor("/cache_client.Scs/ListErase",o.MethodType.UNARY,s._ListEraseRequest,s._ListEraseResponse,(e=>e.serializeBinary()),s._ListEraseResponse.deserializeBinary),this.methodDescriptorListRemove=new o.MethodDescriptor("/cache_client.Scs/ListRemove",o.MethodType.UNARY,s._ListRemoveRequest,s._ListRemoveResponse,(e=>e.serializeBinary()),s._ListRemoveResponse.deserializeBinary),this.methodDescriptorListFetch=new o.MethodDescriptor("/cache_client.Scs/ListFetch",o.MethodType.UNARY,s._ListFetchRequest,s._ListFetchResponse,(e=>e.serializeBinary()),s._ListFetchResponse.deserializeBinary),this.methodDescriptorListLength=new o.MethodDescriptor("/cache_client.Scs/ListLength",o.MethodType.UNARY,s._ListLengthRequest,s._ListLengthResponse,(e=>e.serializeBinary()),s._ListLengthResponse.deserializeBinary),this.methodDescriptorListConcatenateFront=new o.MethodDescriptor("/cache_client.Scs/ListConcatenateFront",o.MethodType.UNARY,s._ListConcatenateFrontRequest,s._ListConcatenateFrontResponse,(e=>e.serializeBinary()),s._ListConcatenateFrontResponse.deserializeBinary),this.methodDescriptorListConcatenateBack=new o.MethodDescriptor("/cache_client.Scs/ListConcatenateBack",o.MethodType.UNARY,s._ListConcatenateBackRequest,s._ListConcatenateBackResponse,(e=>e.serializeBinary()),s._ListConcatenateBackResponse.deserializeBinary),this.methodDescriptorListRetain=new o.MethodDescriptor("/cache_client.Scs/ListRetain",o.MethodType.UNARY,s._ListRetainRequest,s._ListRetainResponse,(e=>e.serializeBinary()),s._ListRetainResponse.deserializeBinary),this.methodDescriptorSortedSetPut=new o.MethodDescriptor("/cache_client.Scs/SortedSetPut",o.MethodType.UNARY,s._SortedSetPutRequest,s._SortedSetPutResponse,(e=>e.serializeBinary()),s._SortedSetPutResponse.deserializeBinary),this.methodDescriptorSortedSetFetch=new o.MethodDescriptor("/cache_client.Scs/SortedSetFetch",o.MethodType.UNARY,s._SortedSetFetchRequest,s._SortedSetFetchResponse,(e=>e.serializeBinary()),s._SortedSetFetchResponse.deserializeBinary),this.methodDescriptorSortedSetGetScore=new o.MethodDescriptor("/cache_client.Scs/SortedSetGetScore",o.MethodType.UNARY,s._SortedSetGetScoreRequest,s._SortedSetGetScoreResponse,(e=>e.serializeBinary()),s._SortedSetGetScoreResponse.deserializeBinary),this.methodDescriptorSortedSetRemove=new o.MethodDescriptor("/cache_client.Scs/SortedSetRemove",o.MethodType.UNARY,s._SortedSetRemoveRequest,s._SortedSetRemoveResponse,(e=>e.serializeBinary()),s._SortedSetRemoveResponse.deserializeBinary),this.methodDescriptorSortedSetIncrement=new o.MethodDescriptor("/cache_client.Scs/SortedSetIncrement",o.MethodType.UNARY,s._SortedSetIncrementRequest,s._SortedSetIncrementResponse,(e=>e.serializeBinary()),s._SortedSetIncrementResponse.deserializeBinary),this.methodDescriptorSortedSetGetRank=new o.MethodDescriptor("/cache_client.Scs/SortedSetGetRank",o.MethodType.UNARY,s._SortedSetGetRankRequest,s._SortedSetGetRankResponse,(e=>e.serializeBinary()),s._SortedSetGetRankResponse.deserializeBinary),this.methodDescriptorSortedSetLength=new o.MethodDescriptor("/cache_client.Scs/SortedSetLength",o.MethodType.UNARY,s._SortedSetLengthRequest,s._SortedSetLengthResponse,(e=>e.serializeBinary()),s._SortedSetLengthResponse.deserializeBinary),this.methodDescriptorSortedSetLengthByScore=new o.MethodDescriptor("/cache_client.Scs/SortedSetLengthByScore",o.MethodType.UNARY,s._SortedSetLengthByScoreRequest,s._SortedSetLengthByScoreResponse,(e=>e.serializeBinary()),s._SortedSetLengthByScoreResponse.deserializeBinary),this.methodDescriptorSortedSetUnionStore=new o.MethodDescriptor("/cache_client.Scs/SortedSetUnionStore",o.MethodType.UNARY,s._SortedSetUnionStoreRequest,s._SortedSetUnionStoreResponse,(e=>e.serializeBinary()),s._SortedSetUnionStoreResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}get(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/Get",e,t||{},this.methodDescriptorGet,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/Get",e,t||{},this.methodDescriptorGet)}getWithHash(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/GetWithHash",e,t||{},this.methodDescriptorGetWithHash,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/GetWithHash",e,t||{},this.methodDescriptorGetWithHash)}getBatch(e,t){return this.client_.serverStreaming(this.hostname_+"/cache_client.Scs/GetBatch",e,t||{},this.methodDescriptorGetBatch)}set(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/Set",e,t||{},this.methodDescriptorSet,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/Set",e,t||{},this.methodDescriptorSet)}setBatch(e,t){return this.client_.serverStreaming(this.hostname_+"/cache_client.Scs/SetBatch",e,t||{},this.methodDescriptorSetBatch)}setIf(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetIf",e,t||{},this.methodDescriptorSetIf,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetIf",e,t||{},this.methodDescriptorSetIf)}setIfHash(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetIfHash",e,t||{},this.methodDescriptorSetIfHash,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetIfHash",e,t||{},this.methodDescriptorSetIfHash)}setIfNotExists(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetIfNotExists",e,t||{},this.methodDescriptorSetIfNotExists,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetIfNotExists",e,t||{},this.methodDescriptorSetIfNotExists)}delete(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/Delete",e,t||{},this.methodDescriptorDelete,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/Delete",e,t||{},this.methodDescriptorDelete)}keysExist(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/KeysExist",e,t||{},this.methodDescriptorKeysExist,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/KeysExist",e,t||{},this.methodDescriptorKeysExist)}increment(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/Increment",e,t||{},this.methodDescriptorIncrement,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/Increment",e,t||{},this.methodDescriptorIncrement)}updateTtl(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/UpdateTtl",e,t||{},this.methodDescriptorUpdateTtl,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/UpdateTtl",e,t||{},this.methodDescriptorUpdateTtl)}itemGetTtl(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ItemGetTtl",e,t||{},this.methodDescriptorItemGetTtl,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ItemGetTtl",e,t||{},this.methodDescriptorItemGetTtl)}itemGetType(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ItemGetType",e,t||{},this.methodDescriptorItemGetType,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ItemGetType",e,t||{},this.methodDescriptorItemGetType)}dictionaryGet(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryGet",e,t||{},this.methodDescriptorDictionaryGet,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryGet",e,t||{},this.methodDescriptorDictionaryGet)}dictionaryFetch(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryFetch",e,t||{},this.methodDescriptorDictionaryFetch,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryFetch",e,t||{},this.methodDescriptorDictionaryFetch)}dictionarySet(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionarySet",e,t||{},this.methodDescriptorDictionarySet,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionarySet",e,t||{},this.methodDescriptorDictionarySet)}dictionaryIncrement(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryIncrement",e,t||{},this.methodDescriptorDictionaryIncrement,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryIncrement",e,t||{},this.methodDescriptorDictionaryIncrement)}dictionaryDelete(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryDelete",e,t||{},this.methodDescriptorDictionaryDelete,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryDelete",e,t||{},this.methodDescriptorDictionaryDelete)}dictionaryLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryLength",e,t||{},this.methodDescriptorDictionaryLength,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryLength",e,t||{},this.methodDescriptorDictionaryLength)}setFetch(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetFetch",e,t||{},this.methodDescriptorSetFetch,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetFetch",e,t||{},this.methodDescriptorSetFetch)}setSample(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetSample",e,t||{},this.methodDescriptorSetSample,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetSample",e,t||{},this.methodDescriptorSetSample)}setUnion(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetUnion",e,t||{},this.methodDescriptorSetUnion,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetUnion",e,t||{},this.methodDescriptorSetUnion)}setDifference(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetDifference",e,t||{},this.methodDescriptorSetDifference,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetDifference",e,t||{},this.methodDescriptorSetDifference)}setContains(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetContains",e,t||{},this.methodDescriptorSetContains,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetContains",e,t||{},this.methodDescriptorSetContains)}setLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetLength",e,t||{},this.methodDescriptorSetLength,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetLength",e,t||{},this.methodDescriptorSetLength)}setPop(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetPop",e,t||{},this.methodDescriptorSetPop,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetPop",e,t||{},this.methodDescriptorSetPop)}listPushFront(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListPushFront",e,t||{},this.methodDescriptorListPushFront,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListPushFront",e,t||{},this.methodDescriptorListPushFront)}listPushBack(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListPushBack",e,t||{},this.methodDescriptorListPushBack,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListPushBack",e,t||{},this.methodDescriptorListPushBack)}listPopFront(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListPopFront",e,t||{},this.methodDescriptorListPopFront,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListPopFront",e,t||{},this.methodDescriptorListPopFront)}listPopBack(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListPopBack",e,t||{},this.methodDescriptorListPopBack,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListPopBack",e,t||{},this.methodDescriptorListPopBack)}listErase(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListErase",e,t||{},this.methodDescriptorListErase,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListErase",e,t||{},this.methodDescriptorListErase)}listRemove(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListRemove",e,t||{},this.methodDescriptorListRemove,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListRemove",e,t||{},this.methodDescriptorListRemove)}listFetch(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListFetch",e,t||{},this.methodDescriptorListFetch,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListFetch",e,t||{},this.methodDescriptorListFetch)}listLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListLength",e,t||{},this.methodDescriptorListLength,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListLength",e,t||{},this.methodDescriptorListLength)}listConcatenateFront(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListConcatenateFront",e,t||{},this.methodDescriptorListConcatenateFront,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListConcatenateFront",e,t||{},this.methodDescriptorListConcatenateFront)}listConcatenateBack(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListConcatenateBack",e,t||{},this.methodDescriptorListConcatenateBack,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListConcatenateBack",e,t||{},this.methodDescriptorListConcatenateBack)}listRetain(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListRetain",e,t||{},this.methodDescriptorListRetain,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListRetain",e,t||{},this.methodDescriptorListRetain)}sortedSetPut(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetPut",e,t||{},this.methodDescriptorSortedSetPut,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetPut",e,t||{},this.methodDescriptorSortedSetPut)}sortedSetFetch(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetFetch",e,t||{},this.methodDescriptorSortedSetFetch,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetFetch",e,t||{},this.methodDescriptorSortedSetFetch)}sortedSetGetScore(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetGetScore",e,t||{},this.methodDescriptorSortedSetGetScore,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetGetScore",e,t||{},this.methodDescriptorSortedSetGetScore)}sortedSetRemove(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetRemove",e,t||{},this.methodDescriptorSortedSetRemove,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetRemove",e,t||{},this.methodDescriptorSortedSetRemove)}sortedSetIncrement(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetIncrement",e,t||{},this.methodDescriptorSortedSetIncrement,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetIncrement",e,t||{},this.methodDescriptorSortedSetIncrement)}sortedSetGetRank(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetGetRank",e,t||{},this.methodDescriptorSortedSetGetRank,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetGetRank",e,t||{},this.methodDescriptorSortedSetGetRank)}sortedSetLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetLength",e,t||{},this.methodDescriptorSortedSetLength,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetLength",e,t||{},this.methodDescriptorSortedSetLength)}sortedSetLengthByScore(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetLengthByScore",e,t||{},this.methodDescriptorSortedSetLengthByScore,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetLengthByScore",e,t||{},this.methodDescriptorSortedSetLengthByScore)}sortedSetUnionStore(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetUnionStore",e,t||{},this.methodDescriptorSortedSetUnionStore,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetUnionStore",e,t||{},this.methodDescriptorSortedSetUnionStore)}},CacheclientServiceClientPb}var ControlclientServiceClientPb={},controlclient_pb={},hasRequiredControlclient_pb,hasRequiredControlclientServiceClientPb;function requireControlclient_pb(){return hasRequiredControlclient_pb||(hasRequiredControlclient_pb=1,e=controlclient_pb,t=requireGoogleProtobuf(),o={},(r=t).exportSymbol("_Cache",null,o),r.exportSymbol("_CacheLimits",null,o),r.exportSymbol("_CreateCacheRequest",null,o),r.exportSymbol("_CreateCacheResponse",null,o),r.exportSymbol("_CreateIndexRequest",null,o),r.exportSymbol("_CreateIndexResponse",null,o),r.exportSymbol("_CreateSigningKeyRequest",null,o),r.exportSymbol("_CreateSigningKeyResponse",null,o),r.exportSymbol("_DeleteCacheRequest",null,o),r.exportSymbol("_DeleteCacheResponse",null,o),r.exportSymbol("_DeleteIndexRequest",null,o),r.exportSymbol("_DeleteIndexResponse",null,o),r.exportSymbol("_FlushCacheRequest",null,o),r.exportSymbol("_FlushCacheResponse",null,o),r.exportSymbol("_ListCachesRequest",null,o),r.exportSymbol("_ListCachesResponse",null,o),r.exportSymbol("_ListIndexesRequest",null,o),r.exportSymbol("_ListIndexesResponse",null,o),r.exportSymbol("_ListIndexesResponse._Index",null,o),r.exportSymbol("_ListSigningKeysRequest",null,o),r.exportSymbol("_ListSigningKeysResponse",null,o),r.exportSymbol("_RevokeSigningKeyRequest",null,o),r.exportSymbol("_RevokeSigningKeyResponse",null,o),r.exportSymbol("_SigningKey",null,o),r.exportSymbol("_SimilarityMetric",null,o),r.exportSymbol("_SimilarityMetric.SimilarityMetricCase",null,o),r.exportSymbol("_SimilarityMetric._CosineSimilarity",null,o),r.exportSymbol("_SimilarityMetric._EuclideanSimilarity",null,o),r.exportSymbol("_SimilarityMetric._InnerProduct",null,o),r.exportSymbol("_TopicLimits",null,o),o._SimilarityMetric=function(e){t.Message.initialize(this,e,0,-1,null,o._SimilarityMetric.oneofGroups_)},r.inherits(o._SimilarityMetric,t.Message),r.DEBUG&&!COMPILED&&(o._SimilarityMetric.displayName="proto._SimilarityMetric"),o._SimilarityMetric._EuclideanSimilarity=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SimilarityMetric._EuclideanSimilarity,t.Message),r.DEBUG&&!COMPILED&&(o._SimilarityMetric._EuclideanSimilarity.displayName="proto._SimilarityMetric._EuclideanSimilarity"),o._SimilarityMetric._InnerProduct=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SimilarityMetric._InnerProduct,t.Message),r.DEBUG&&!COMPILED&&(o._SimilarityMetric._InnerProduct.displayName="proto._SimilarityMetric._InnerProduct"),o._SimilarityMetric._CosineSimilarity=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SimilarityMetric._CosineSimilarity,t.Message),r.DEBUG&&!COMPILED&&(o._SimilarityMetric._CosineSimilarity.displayName="proto._SimilarityMetric._CosineSimilarity"),o._CreateIndexRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._CreateIndexRequest,t.Message),r.DEBUG&&!COMPILED&&(o._CreateIndexRequest.displayName="proto._CreateIndexRequest"),o._CreateIndexResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._CreateIndexResponse,t.Message),r.DEBUG&&!COMPILED&&(o._CreateIndexResponse.displayName="proto._CreateIndexResponse"),o._DeleteIndexRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DeleteIndexRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DeleteIndexRequest.displayName="proto._DeleteIndexRequest"),o._DeleteIndexResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DeleteIndexResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DeleteIndexResponse.displayName="proto._DeleteIndexResponse"),o._ListIndexesRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListIndexesRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListIndexesRequest.displayName="proto._ListIndexesRequest"),o._ListIndexesResponse=function(e){t.Message.initialize(this,e,0,-1,o._ListIndexesResponse.repeatedFields_,null)},r.inherits(o._ListIndexesResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListIndexesResponse.displayName="proto._ListIndexesResponse"),o._ListIndexesResponse._Index=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListIndexesResponse._Index,t.Message),r.DEBUG&&!COMPILED&&(o._ListIndexesResponse._Index.displayName="proto._ListIndexesResponse._Index"),o._DeleteCacheRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DeleteCacheRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DeleteCacheRequest.displayName="proto._DeleteCacheRequest"),o._DeleteCacheResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DeleteCacheResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DeleteCacheResponse.displayName="proto._DeleteCacheResponse"),o._CreateCacheRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._CreateCacheRequest,t.Message),r.DEBUG&&!COMPILED&&(o._CreateCacheRequest.displayName="proto._CreateCacheRequest"),o._CreateCacheResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._CreateCacheResponse,t.Message),r.DEBUG&&!COMPILED&&(o._CreateCacheResponse.displayName="proto._CreateCacheResponse"),o._ListCachesRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListCachesRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListCachesRequest.displayName="proto._ListCachesRequest"),o._CacheLimits=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._CacheLimits,t.Message),r.DEBUG&&!COMPILED&&(o._CacheLimits.displayName="proto._CacheLimits"),o._TopicLimits=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._TopicLimits,t.Message),r.DEBUG&&!COMPILED&&(o._TopicLimits.displayName="proto._TopicLimits"),o._Cache=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Cache,t.Message),r.DEBUG&&!COMPILED&&(o._Cache.displayName="proto._Cache"),o._ListCachesResponse=function(e){t.Message.initialize(this,e,0,-1,o._ListCachesResponse.repeatedFields_,null)},r.inherits(o._ListCachesResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListCachesResponse.displayName="proto._ListCachesResponse"),o._CreateSigningKeyRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._CreateSigningKeyRequest,t.Message),r.DEBUG&&!COMPILED&&(o._CreateSigningKeyRequest.displayName="proto._CreateSigningKeyRequest"),o._CreateSigningKeyResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._CreateSigningKeyResponse,t.Message),r.DEBUG&&!COMPILED&&(o._CreateSigningKeyResponse.displayName="proto._CreateSigningKeyResponse"),o._RevokeSigningKeyRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RevokeSigningKeyRequest,t.Message),r.DEBUG&&!COMPILED&&(o._RevokeSigningKeyRequest.displayName="proto._RevokeSigningKeyRequest"),o._RevokeSigningKeyResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RevokeSigningKeyResponse,t.Message),r.DEBUG&&!COMPILED&&(o._RevokeSigningKeyResponse.displayName="proto._RevokeSigningKeyResponse"),o._SigningKey=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SigningKey,t.Message),r.DEBUG&&!COMPILED&&(o._SigningKey.displayName="proto._SigningKey"),o._ListSigningKeysRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListSigningKeysRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListSigningKeysRequest.displayName="proto._ListSigningKeysRequest"),o._ListSigningKeysResponse=function(e){t.Message.initialize(this,e,0,-1,o._ListSigningKeysResponse.repeatedFields_,null)},r.inherits(o._ListSigningKeysResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListSigningKeysResponse.displayName="proto._ListSigningKeysResponse"),o._FlushCacheRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._FlushCacheRequest,t.Message),r.DEBUG&&!COMPILED&&(o._FlushCacheRequest.displayName="proto._FlushCacheRequest"),o._FlushCacheResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._FlushCacheResponse,t.Message),r.DEBUG&&!COMPILED&&(o._FlushCacheResponse.displayName="proto._FlushCacheResponse"),o._SimilarityMetric.oneofGroups_=[[1,2,3]],o._SimilarityMetric.SimilarityMetricCase={SIMILARITY_METRIC_NOT_SET:0,EUCLIDEAN_SIMILARITY:1,INNER_PRODUCT:2,COSINE_SIMILARITY:3},o._SimilarityMetric.prototype.getSimilarityMetricCase=function(){return t.Message.computeOneofCase(this,o._SimilarityMetric.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SimilarityMetric.prototype.toObject=function(e){return o._SimilarityMetric.toObject(e,this)},o._SimilarityMetric.toObject=function(e,t){var r,s={euclideanSimilarity:(r=t.getEuclideanSimilarity())&&o._SimilarityMetric._EuclideanSimilarity.toObject(e,r),innerProduct:(r=t.getInnerProduct())&&o._SimilarityMetric._InnerProduct.toObject(e,r),cosineSimilarity:(r=t.getCosineSimilarity())&&o._SimilarityMetric._CosineSimilarity.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SimilarityMetric.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SimilarityMetric;return o._SimilarityMetric.deserializeBinaryFromReader(s,r)},o._SimilarityMetric.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SimilarityMetric._EuclideanSimilarity;t.readMessage(r,o._SimilarityMetric._EuclideanSimilarity.deserializeBinaryFromReader),e.setEuclideanSimilarity(r);break;case 2:r=new o._SimilarityMetric._InnerProduct,t.readMessage(r,o._SimilarityMetric._InnerProduct.deserializeBinaryFromReader),e.setInnerProduct(r);break;case 3:r=new o._SimilarityMetric._CosineSimilarity,t.readMessage(r,o._SimilarityMetric._CosineSimilarity.deserializeBinaryFromReader),e.setCosineSimilarity(r);break;default:t.skipField()}return e},o._SimilarityMetric.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SimilarityMetric.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SimilarityMetric.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getEuclideanSimilarity())&&t.writeMessage(1,r,o._SimilarityMetric._EuclideanSimilarity.serializeBinaryToWriter),null!=(r=e.getInnerProduct())&&t.writeMessage(2,r,o._SimilarityMetric._InnerProduct.serializeBinaryToWriter),null!=(r=e.getCosineSimilarity())&&t.writeMessage(3,r,o._SimilarityMetric._CosineSimilarity.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._SimilarityMetric._EuclideanSimilarity.prototype.toObject=function(e){return o._SimilarityMetric._EuclideanSimilarity.toObject(e,this)},o._SimilarityMetric._EuclideanSimilarity.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SimilarityMetric._EuclideanSimilarity.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SimilarityMetric._EuclideanSimilarity;return o._SimilarityMetric._EuclideanSimilarity.deserializeBinaryFromReader(s,r)},o._SimilarityMetric._EuclideanSimilarity.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SimilarityMetric._EuclideanSimilarity.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SimilarityMetric._EuclideanSimilarity.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SimilarityMetric._EuclideanSimilarity.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._SimilarityMetric._InnerProduct.prototype.toObject=function(e){return o._SimilarityMetric._InnerProduct.toObject(e,this)},o._SimilarityMetric._InnerProduct.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SimilarityMetric._InnerProduct.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SimilarityMetric._InnerProduct;return o._SimilarityMetric._InnerProduct.deserializeBinaryFromReader(s,r)},o._SimilarityMetric._InnerProduct.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SimilarityMetric._InnerProduct.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SimilarityMetric._InnerProduct.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SimilarityMetric._InnerProduct.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._SimilarityMetric._CosineSimilarity.prototype.toObject=function(e){return o._SimilarityMetric._CosineSimilarity.toObject(e,this)},o._SimilarityMetric._CosineSimilarity.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SimilarityMetric._CosineSimilarity.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SimilarityMetric._CosineSimilarity;return o._SimilarityMetric._CosineSimilarity.deserializeBinaryFromReader(s,r)},o._SimilarityMetric._CosineSimilarity.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SimilarityMetric._CosineSimilarity.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SimilarityMetric._CosineSimilarity.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SimilarityMetric._CosineSimilarity.serializeBinaryToWriter=function(e,t){},o._SimilarityMetric.prototype.getEuclideanSimilarity=function(){return t.Message.getWrapperField(this,o._SimilarityMetric._EuclideanSimilarity,1)},o._SimilarityMetric.prototype.setEuclideanSimilarity=function(e){return t.Message.setOneofWrapperField(this,1,o._SimilarityMetric.oneofGroups_[0],e)},o._SimilarityMetric.prototype.clearEuclideanSimilarity=function(){return this.setEuclideanSimilarity(void 0)},o._SimilarityMetric.prototype.hasEuclideanSimilarity=function(){return null!=t.Message.getField(this,1)},o._SimilarityMetric.prototype.getInnerProduct=function(){return t.Message.getWrapperField(this,o._SimilarityMetric._InnerProduct,2)},o._SimilarityMetric.prototype.setInnerProduct=function(e){return t.Message.setOneofWrapperField(this,2,o._SimilarityMetric.oneofGroups_[0],e)},o._SimilarityMetric.prototype.clearInnerProduct=function(){return this.setInnerProduct(void 0)},o._SimilarityMetric.prototype.hasInnerProduct=function(){return null!=t.Message.getField(this,2)},o._SimilarityMetric.prototype.getCosineSimilarity=function(){return t.Message.getWrapperField(this,o._SimilarityMetric._CosineSimilarity,3)},o._SimilarityMetric.prototype.setCosineSimilarity=function(e){return t.Message.setOneofWrapperField(this,3,o._SimilarityMetric.oneofGroups_[0],e)},o._SimilarityMetric.prototype.clearCosineSimilarity=function(){return this.setCosineSimilarity(void 0)},o._SimilarityMetric.prototype.hasCosineSimilarity=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(o._CreateIndexRequest.prototype.toObject=function(e){return o._CreateIndexRequest.toObject(e,this)},o._CreateIndexRequest.toObject=function(e,r){var s,n={indexName:t.Message.getFieldWithDefault(r,1,""),numDimensions:t.Message.getFieldWithDefault(r,2,0),similarityMetric:(s=r.getSimilarityMetric())&&o._SimilarityMetric.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o._CreateIndexRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._CreateIndexRequest;return o._CreateIndexRequest.deserializeBinaryFromReader(s,r)},o._CreateIndexRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setIndexName(r);break;case 2:r=t.readUint64(),e.setNumDimensions(r);break;case 3:r=new o._SimilarityMetric,t.readMessage(r,o._SimilarityMetric.deserializeBinaryFromReader),e.setSimilarityMetric(r);break;default:t.skipField()}return e},o._CreateIndexRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._CreateIndexRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._CreateIndexRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getIndexName()).length>0&&t.writeString(1,r),0!==(r=e.getNumDimensions())&&t.writeUint64(2,r),null!=(r=e.getSimilarityMetric())&&t.writeMessage(3,r,o._SimilarityMetric.serializeBinaryToWriter)},o._CreateIndexRequest.prototype.getIndexName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._CreateIndexRequest.prototype.setIndexName=function(e){return t.Message.setProto3StringField(this,1,e)},o._CreateIndexRequest.prototype.getNumDimensions=function(){return t.Message.getFieldWithDefault(this,2,0)},o._CreateIndexRequest.prototype.setNumDimensions=function(e){return t.Message.setProto3IntField(this,2,e)},o._CreateIndexRequest.prototype.getSimilarityMetric=function(){return t.Message.getWrapperField(this,o._SimilarityMetric,3)},o._CreateIndexRequest.prototype.setSimilarityMetric=function(e){return t.Message.setWrapperField(this,3,e)},o._CreateIndexRequest.prototype.clearSimilarityMetric=function(){return this.setSimilarityMetric(void 0)},o._CreateIndexRequest.prototype.hasSimilarityMetric=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(o._CreateIndexResponse.prototype.toObject=function(e){return o._CreateIndexResponse.toObject(e,this)},o._CreateIndexResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._CreateIndexResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._CreateIndexResponse;return o._CreateIndexResponse.deserializeBinaryFromReader(s,r)},o._CreateIndexResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._CreateIndexResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._CreateIndexResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._CreateIndexResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._DeleteIndexRequest.prototype.toObject=function(e){return o._DeleteIndexRequest.toObject(e,this)},o._DeleteIndexRequest.toObject=function(e,r){var o={indexName:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._DeleteIndexRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DeleteIndexRequest;return o._DeleteIndexRequest.deserializeBinaryFromReader(s,r)},o._DeleteIndexRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setIndexName(r)}else t.skipField();return e},o._DeleteIndexRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DeleteIndexRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DeleteIndexRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getIndexName()).length>0&&t.writeString(1,r)},o._DeleteIndexRequest.prototype.getIndexName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DeleteIndexRequest.prototype.setIndexName=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._DeleteIndexResponse.prototype.toObject=function(e){return o._DeleteIndexResponse.toObject(e,this)},o._DeleteIndexResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DeleteIndexResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DeleteIndexResponse;return o._DeleteIndexResponse.deserializeBinaryFromReader(s,r)},o._DeleteIndexResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DeleteIndexResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DeleteIndexResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DeleteIndexResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._ListIndexesRequest.prototype.toObject=function(e){return o._ListIndexesRequest.toObject(e,this)},o._ListIndexesRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListIndexesRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListIndexesRequest;return o._ListIndexesRequest.deserializeBinaryFromReader(s,r)},o._ListIndexesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListIndexesRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListIndexesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListIndexesRequest.serializeBinaryToWriter=function(e,t){},o._ListIndexesResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._ListIndexesResponse.prototype.toObject=function(e){return o._ListIndexesResponse.toObject(e,this)},o._ListIndexesResponse.toObject=function(e,r){var s={indexesList:t.Message.toObjectList(r.getIndexesList(),o._ListIndexesResponse._Index.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._ListIndexesResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListIndexesResponse;return o._ListIndexesResponse.deserializeBinaryFromReader(s,r)},o._ListIndexesResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._ListIndexesResponse._Index;t.readMessage(r,o._ListIndexesResponse._Index.deserializeBinaryFromReader),e.addIndexes(r)}else t.skipField();return e},o._ListIndexesResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListIndexesResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListIndexesResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getIndexesList()).length>0&&t.writeRepeatedMessage(1,r,o._ListIndexesResponse._Index.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._ListIndexesResponse._Index.prototype.toObject=function(e){return o._ListIndexesResponse._Index.toObject(e,this)},o._ListIndexesResponse._Index.toObject=function(e,r){var s,n={indexName:t.Message.getFieldWithDefault(r,1,""),numDimensions:t.Message.getFieldWithDefault(r,2,0),similarityMetric:(s=r.getSimilarityMetric())&&o._SimilarityMetric.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o._ListIndexesResponse._Index.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListIndexesResponse._Index;return o._ListIndexesResponse._Index.deserializeBinaryFromReader(s,r)},o._ListIndexesResponse._Index.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setIndexName(r);break;case 2:r=t.readUint64(),e.setNumDimensions(r);break;case 3:r=new o._SimilarityMetric,t.readMessage(r,o._SimilarityMetric.deserializeBinaryFromReader),e.setSimilarityMetric(r);break;default:t.skipField()}return e},o._ListIndexesResponse._Index.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListIndexesResponse._Index.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListIndexesResponse._Index.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getIndexName()).length>0&&t.writeString(1,r),0!==(r=e.getNumDimensions())&&t.writeUint64(2,r),null!=(r=e.getSimilarityMetric())&&t.writeMessage(3,r,o._SimilarityMetric.serializeBinaryToWriter)},o._ListIndexesResponse._Index.prototype.getIndexName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListIndexesResponse._Index.prototype.setIndexName=function(e){return t.Message.setProto3StringField(this,1,e)},o._ListIndexesResponse._Index.prototype.getNumDimensions=function(){return t.Message.getFieldWithDefault(this,2,0)},o._ListIndexesResponse._Index.prototype.setNumDimensions=function(e){return t.Message.setProto3IntField(this,2,e)},o._ListIndexesResponse._Index.prototype.getSimilarityMetric=function(){return t.Message.getWrapperField(this,o._SimilarityMetric,3)},o._ListIndexesResponse._Index.prototype.setSimilarityMetric=function(e){return t.Message.setWrapperField(this,3,e)},o._ListIndexesResponse._Index.prototype.clearSimilarityMetric=function(){return this.setSimilarityMetric(void 0)},o._ListIndexesResponse._Index.prototype.hasSimilarityMetric=function(){return null!=t.Message.getField(this,3)},o._ListIndexesResponse.prototype.getIndexesList=function(){return t.Message.getRepeatedWrapperField(this,o._ListIndexesResponse._Index,1)},o._ListIndexesResponse.prototype.setIndexesList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._ListIndexesResponse.prototype.addIndexes=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._ListIndexesResponse._Index,r)},o._ListIndexesResponse.prototype.clearIndexesList=function(){return this.setIndexesList([])},t.Message.GENERATE_TO_OBJECT&&(o._DeleteCacheRequest.prototype.toObject=function(e){return o._DeleteCacheRequest.toObject(e,this)},o._DeleteCacheRequest.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._DeleteCacheRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DeleteCacheRequest;return o._DeleteCacheRequest.deserializeBinaryFromReader(s,r)},o._DeleteCacheRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},o._DeleteCacheRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DeleteCacheRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DeleteCacheRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheName()).length>0&&t.writeString(1,r)},o._DeleteCacheRequest.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._DeleteCacheRequest.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._DeleteCacheResponse.prototype.toObject=function(e){return o._DeleteCacheResponse.toObject(e,this)},o._DeleteCacheResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DeleteCacheResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DeleteCacheResponse;return o._DeleteCacheResponse.deserializeBinaryFromReader(s,r)},o._DeleteCacheResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DeleteCacheResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DeleteCacheResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DeleteCacheResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._CreateCacheRequest.prototype.toObject=function(e){return o._CreateCacheRequest.toObject(e,this)},o._CreateCacheRequest.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._CreateCacheRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._CreateCacheRequest;return o._CreateCacheRequest.deserializeBinaryFromReader(s,r)},o._CreateCacheRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},o._CreateCacheRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._CreateCacheRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._CreateCacheRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheName()).length>0&&t.writeString(1,r)},o._CreateCacheRequest.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._CreateCacheRequest.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._CreateCacheResponse.prototype.toObject=function(e){return o._CreateCacheResponse.toObject(e,this)},o._CreateCacheResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._CreateCacheResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._CreateCacheResponse;return o._CreateCacheResponse.deserializeBinaryFromReader(s,r)},o._CreateCacheResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._CreateCacheResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._CreateCacheResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._CreateCacheResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._ListCachesRequest.prototype.toObject=function(e){return o._ListCachesRequest.toObject(e,this)},o._ListCachesRequest.toObject=function(e,r){var o={nextToken:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._ListCachesRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListCachesRequest;return o._ListCachesRequest.deserializeBinaryFromReader(s,r)},o._ListCachesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setNextToken(r)}else t.skipField();return e},o._ListCachesRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListCachesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListCachesRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getNextToken()).length>0&&t.writeString(1,r)},o._ListCachesRequest.prototype.getNextToken=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListCachesRequest.prototype.setNextToken=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._CacheLimits.prototype.toObject=function(e){return o._CacheLimits.toObject(e,this)},o._CacheLimits.toObject=function(e,r){var o={maxTrafficRate:t.Message.getFieldWithDefault(r,1,0),maxThroughputKbps:t.Message.getFieldWithDefault(r,2,0),maxItemSizeKb:t.Message.getFieldWithDefault(r,3,0),maxTtlSeconds:t.Message.getFieldWithDefault(r,4,0)};return e&&(o.$jspbMessageInstance=r),o}),o._CacheLimits.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._CacheLimits;return o._CacheLimits.deserializeBinaryFromReader(s,r)},o._CacheLimits.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setMaxTrafficRate(r);break;case 2:r=t.readUint32(),e.setMaxThroughputKbps(r);break;case 3:r=t.readUint32(),e.setMaxItemSizeKb(r);break;case 4:r=t.readUint64(),e.setMaxTtlSeconds(r);break;default:t.skipField()}return e},o._CacheLimits.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._CacheLimits.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._CacheLimits.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getMaxTrafficRate())&&t.writeUint32(1,r),0!==(r=e.getMaxThroughputKbps())&&t.writeUint32(2,r),0!==(r=e.getMaxItemSizeKb())&&t.writeUint32(3,r),0!==(r=e.getMaxTtlSeconds())&&t.writeUint64(4,r)},o._CacheLimits.prototype.getMaxTrafficRate=function(){return t.Message.getFieldWithDefault(this,1,0)},o._CacheLimits.prototype.setMaxTrafficRate=function(e){return t.Message.setProto3IntField(this,1,e)},o._CacheLimits.prototype.getMaxThroughputKbps=function(){return t.Message.getFieldWithDefault(this,2,0)},o._CacheLimits.prototype.setMaxThroughputKbps=function(e){return t.Message.setProto3IntField(this,2,e)},o._CacheLimits.prototype.getMaxItemSizeKb=function(){return t.Message.getFieldWithDefault(this,3,0)},o._CacheLimits.prototype.setMaxItemSizeKb=function(e){return t.Message.setProto3IntField(this,3,e)},o._CacheLimits.prototype.getMaxTtlSeconds=function(){return t.Message.getFieldWithDefault(this,4,0)},o._CacheLimits.prototype.setMaxTtlSeconds=function(e){return t.Message.setProto3IntField(this,4,e)},t.Message.GENERATE_TO_OBJECT&&(o._TopicLimits.prototype.toObject=function(e){return o._TopicLimits.toObject(e,this)},o._TopicLimits.toObject=function(e,r){var o={maxPublishRate:t.Message.getFieldWithDefault(r,1,0),maxSubscriptionCount:t.Message.getFieldWithDefault(r,2,0),maxPublishMessageSizeKb:t.Message.getFieldWithDefault(r,3,0)};return e&&(o.$jspbMessageInstance=r),o}),o._TopicLimits.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._TopicLimits;return o._TopicLimits.deserializeBinaryFromReader(s,r)},o._TopicLimits.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setMaxPublishRate(r);break;case 2:r=t.readUint32(),e.setMaxSubscriptionCount(r);break;case 3:r=t.readUint32(),e.setMaxPublishMessageSizeKb(r);break;default:t.skipField()}return e},o._TopicLimits.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._TopicLimits.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._TopicLimits.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getMaxPublishRate())&&t.writeUint32(1,r),0!==(r=e.getMaxSubscriptionCount())&&t.writeUint32(2,r),0!==(r=e.getMaxPublishMessageSizeKb())&&t.writeUint32(3,r)},o._TopicLimits.prototype.getMaxPublishRate=function(){return t.Message.getFieldWithDefault(this,1,0)},o._TopicLimits.prototype.setMaxPublishRate=function(e){return t.Message.setProto3IntField(this,1,e)},o._TopicLimits.prototype.getMaxSubscriptionCount=function(){return t.Message.getFieldWithDefault(this,2,0)},o._TopicLimits.prototype.setMaxSubscriptionCount=function(e){return t.Message.setProto3IntField(this,2,e)},o._TopicLimits.prototype.getMaxPublishMessageSizeKb=function(){return t.Message.getFieldWithDefault(this,3,0)},o._TopicLimits.prototype.setMaxPublishMessageSizeKb=function(e){return t.Message.setProto3IntField(this,3,e)},t.Message.GENERATE_TO_OBJECT&&(o._Cache.prototype.toObject=function(e){return o._Cache.toObject(e,this)},o._Cache.toObject=function(e,r){var s,n={cacheName:t.Message.getFieldWithDefault(r,1,""),cacheLimits:(s=r.getCacheLimits())&&o._CacheLimits.toObject(e,s),topicLimits:(s=r.getTopicLimits())&&o._TopicLimits.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o._Cache.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Cache;return o._Cache.deserializeBinaryFromReader(s,r)},o._Cache.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:r=new o._CacheLimits,t.readMessage(r,o._CacheLimits.deserializeBinaryFromReader),e.setCacheLimits(r);break;case 3:r=new o._TopicLimits,t.readMessage(r,o._TopicLimits.deserializeBinaryFromReader),e.setTopicLimits(r);break;default:t.skipField()}return e},o._Cache.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Cache.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Cache.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),null!=(r=e.getCacheLimits())&&t.writeMessage(2,r,o._CacheLimits.serializeBinaryToWriter),null!=(r=e.getTopicLimits())&&t.writeMessage(3,r,o._TopicLimits.serializeBinaryToWriter)},o._Cache.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._Cache.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},o._Cache.prototype.getCacheLimits=function(){return t.Message.getWrapperField(this,o._CacheLimits,2)},o._Cache.prototype.setCacheLimits=function(e){return t.Message.setWrapperField(this,2,e)},o._Cache.prototype.clearCacheLimits=function(){return this.setCacheLimits(void 0)},o._Cache.prototype.hasCacheLimits=function(){return null!=t.Message.getField(this,2)},o._Cache.prototype.getTopicLimits=function(){return t.Message.getWrapperField(this,o._TopicLimits,3)},o._Cache.prototype.setTopicLimits=function(e){return t.Message.setWrapperField(this,3,e)},o._Cache.prototype.clearTopicLimits=function(){return this.setTopicLimits(void 0)},o._Cache.prototype.hasTopicLimits=function(){return null!=t.Message.getField(this,3)},o._ListCachesResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._ListCachesResponse.prototype.toObject=function(e){return o._ListCachesResponse.toObject(e,this)},o._ListCachesResponse.toObject=function(e,r){var s={cacheList:t.Message.toObjectList(r.getCacheList(),o._Cache.toObject,e),nextToken:t.Message.getFieldWithDefault(r,2,"")};return e&&(s.$jspbMessageInstance=r),s}),o._ListCachesResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListCachesResponse;return o._ListCachesResponse.deserializeBinaryFromReader(s,r)},o._ListCachesResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._Cache;t.readMessage(r,o._Cache.deserializeBinaryFromReader),e.addCache(r);break;case 2:r=t.readString(),e.setNextToken(r);break;default:t.skipField()}return e},o._ListCachesResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListCachesResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListCachesResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheList()).length>0&&t.writeRepeatedMessage(1,r,o._Cache.serializeBinaryToWriter),(r=e.getNextToken()).length>0&&t.writeString(2,r)},o._ListCachesResponse.prototype.getCacheList=function(){return t.Message.getRepeatedWrapperField(this,o._Cache,1)},o._ListCachesResponse.prototype.setCacheList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._ListCachesResponse.prototype.addCache=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._Cache,r)},o._ListCachesResponse.prototype.clearCacheList=function(){return this.setCacheList([])},o._ListCachesResponse.prototype.getNextToken=function(){return t.Message.getFieldWithDefault(this,2,"")},o._ListCachesResponse.prototype.setNextToken=function(e){return t.Message.setProto3StringField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._CreateSigningKeyRequest.prototype.toObject=function(e){return o._CreateSigningKeyRequest.toObject(e,this)},o._CreateSigningKeyRequest.toObject=function(e,r){var o={ttlMinutes:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._CreateSigningKeyRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._CreateSigningKeyRequest;return o._CreateSigningKeyRequest.deserializeBinaryFromReader(s,r)},o._CreateSigningKeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setTtlMinutes(r)}else t.skipField();return e},o._CreateSigningKeyRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._CreateSigningKeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._CreateSigningKeyRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getTtlMinutes())&&t.writeUint32(1,r)},o._CreateSigningKeyRequest.prototype.getTtlMinutes=function(){return t.Message.getFieldWithDefault(this,1,0)},o._CreateSigningKeyRequest.prototype.setTtlMinutes=function(e){return t.Message.setProto3IntField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._CreateSigningKeyResponse.prototype.toObject=function(e){return o._CreateSigningKeyResponse.toObject(e,this)},o._CreateSigningKeyResponse.toObject=function(e,r){var o={key:t.Message.getFieldWithDefault(r,1,""),expiresAt:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._CreateSigningKeyResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._CreateSigningKeyResponse;return o._CreateSigningKeyResponse.deserializeBinaryFromReader(s,r)},o._CreateSigningKeyResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setKey(r);break;case 2:r=t.readUint64(),e.setExpiresAt(r);break;default:t.skipField()}return e},o._CreateSigningKeyResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._CreateSigningKeyResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._CreateSigningKeyResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getKey()).length>0&&t.writeString(1,r),0!==(r=e.getExpiresAt())&&t.writeUint64(2,r)},o._CreateSigningKeyResponse.prototype.getKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._CreateSigningKeyResponse.prototype.setKey=function(e){return t.Message.setProto3StringField(this,1,e)},o._CreateSigningKeyResponse.prototype.getExpiresAt=function(){return t.Message.getFieldWithDefault(this,2,0)},o._CreateSigningKeyResponse.prototype.setExpiresAt=function(e){return t.Message.setProto3IntField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._RevokeSigningKeyRequest.prototype.toObject=function(e){return o._RevokeSigningKeyRequest.toObject(e,this)},o._RevokeSigningKeyRequest.toObject=function(e,r){var o={keyId:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._RevokeSigningKeyRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RevokeSigningKeyRequest;return o._RevokeSigningKeyRequest.deserializeBinaryFromReader(s,r)},o._RevokeSigningKeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setKeyId(r)}else t.skipField();return e},o._RevokeSigningKeyRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RevokeSigningKeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RevokeSigningKeyRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getKeyId()).length>0&&t.writeString(1,r)},o._RevokeSigningKeyRequest.prototype.getKeyId=function(){return t.Message.getFieldWithDefault(this,1,"")},o._RevokeSigningKeyRequest.prototype.setKeyId=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._RevokeSigningKeyResponse.prototype.toObject=function(e){return o._RevokeSigningKeyResponse.toObject(e,this)},o._RevokeSigningKeyResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._RevokeSigningKeyResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RevokeSigningKeyResponse;return o._RevokeSigningKeyResponse.deserializeBinaryFromReader(s,r)},o._RevokeSigningKeyResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._RevokeSigningKeyResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RevokeSigningKeyResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RevokeSigningKeyResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._SigningKey.prototype.toObject=function(e){return o._SigningKey.toObject(e,this)},o._SigningKey.toObject=function(e,r){var o={keyId:t.Message.getFieldWithDefault(r,1,""),expiresAt:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SigningKey.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SigningKey;return o._SigningKey.deserializeBinaryFromReader(s,r)},o._SigningKey.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setKeyId(r);break;case 2:r=t.readUint64(),e.setExpiresAt(r);break;default:t.skipField()}return e},o._SigningKey.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SigningKey.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SigningKey.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getKeyId()).length>0&&t.writeString(1,r),0!==(r=e.getExpiresAt())&&t.writeUint64(2,r)},o._SigningKey.prototype.getKeyId=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SigningKey.prototype.setKeyId=function(e){return t.Message.setProto3StringField(this,1,e)},o._SigningKey.prototype.getExpiresAt=function(){return t.Message.getFieldWithDefault(this,2,0)},o._SigningKey.prototype.setExpiresAt=function(e){return t.Message.setProto3IntField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListSigningKeysRequest.prototype.toObject=function(e){return o._ListSigningKeysRequest.toObject(e,this)},o._ListSigningKeysRequest.toObject=function(e,r){var o={nextToken:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._ListSigningKeysRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListSigningKeysRequest;return o._ListSigningKeysRequest.deserializeBinaryFromReader(s,r)},o._ListSigningKeysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setNextToken(r)}else t.skipField();return e},o._ListSigningKeysRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListSigningKeysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListSigningKeysRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getNextToken()).length>0&&t.writeString(1,r)},o._ListSigningKeysRequest.prototype.getNextToken=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListSigningKeysRequest.prototype.setNextToken=function(e){return t.Message.setProto3StringField(this,1,e)},o._ListSigningKeysResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._ListSigningKeysResponse.prototype.toObject=function(e){return o._ListSigningKeysResponse.toObject(e,this)},o._ListSigningKeysResponse.toObject=function(e,r){var s={signingKeyList:t.Message.toObjectList(r.getSigningKeyList(),o._SigningKey.toObject,e),nextToken:t.Message.getFieldWithDefault(r,2,"")};return e&&(s.$jspbMessageInstance=r),s}),o._ListSigningKeysResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListSigningKeysResponse;return o._ListSigningKeysResponse.deserializeBinaryFromReader(s,r)},o._ListSigningKeysResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._SigningKey;t.readMessage(r,o._SigningKey.deserializeBinaryFromReader),e.addSigningKey(r);break;case 2:r=t.readString(),e.setNextToken(r);break;default:t.skipField()}return e},o._ListSigningKeysResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListSigningKeysResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListSigningKeysResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSigningKeyList()).length>0&&t.writeRepeatedMessage(1,r,o._SigningKey.serializeBinaryToWriter),(r=e.getNextToken()).length>0&&t.writeString(2,r)},o._ListSigningKeysResponse.prototype.getSigningKeyList=function(){return t.Message.getRepeatedWrapperField(this,o._SigningKey,1)},o._ListSigningKeysResponse.prototype.setSigningKeyList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._ListSigningKeysResponse.prototype.addSigningKey=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._SigningKey,r)},o._ListSigningKeysResponse.prototype.clearSigningKeyList=function(){return this.setSigningKeyList([])},o._ListSigningKeysResponse.prototype.getNextToken=function(){return t.Message.getFieldWithDefault(this,2,"")},o._ListSigningKeysResponse.prototype.setNextToken=function(e){return t.Message.setProto3StringField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._FlushCacheRequest.prototype.toObject=function(e){return o._FlushCacheRequest.toObject(e,this)},o._FlushCacheRequest.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._FlushCacheRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._FlushCacheRequest;return o._FlushCacheRequest.deserializeBinaryFromReader(s,r)},o._FlushCacheRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},o._FlushCacheRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._FlushCacheRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._FlushCacheRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheName()).length>0&&t.writeString(1,r)},o._FlushCacheRequest.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._FlushCacheRequest.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._FlushCacheResponse.prototype.toObject=function(e){return o._FlushCacheResponse.toObject(e,this)},o._FlushCacheResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._FlushCacheResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._FlushCacheResponse;return o._FlushCacheResponse.deserializeBinaryFromReader(s,r)},o._FlushCacheResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._FlushCacheResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._FlushCacheResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._FlushCacheResponse.serializeBinaryToWriter=function(e,t){},r.object.extend(e,o)),controlclient_pb;var e,t,r,o}function requireControlclientServiceClientPb(){if(hasRequiredControlclientServiceClientPb)return ControlclientServiceClientPb;hasRequiredControlclientServiceClientPb=1;var e=ControlclientServiceClientPb&&ControlclientServiceClientPb.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=ControlclientServiceClientPb&&ControlclientServiceClientPb.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ControlclientServiceClientPb&&ControlclientServiceClientPb.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};Object.defineProperty(ControlclientServiceClientPb,"__esModule",{value:!0}),ControlclientServiceClientPb.ScsControlClient=void 0;const o=r(requireGrpcWeb()),s=r(requireControlclient_pb());return ControlclientServiceClientPb.ScsControlClient=class{constructor(e,t,r){this.methodDescriptorCreateCache=new o.MethodDescriptor("/control_client.ScsControl/CreateCache",o.MethodType.UNARY,s._CreateCacheRequest,s._CreateCacheResponse,(e=>e.serializeBinary()),s._CreateCacheResponse.deserializeBinary),this.methodDescriptorDeleteCache=new o.MethodDescriptor("/control_client.ScsControl/DeleteCache",o.MethodType.UNARY,s._DeleteCacheRequest,s._DeleteCacheResponse,(e=>e.serializeBinary()),s._DeleteCacheResponse.deserializeBinary),this.methodDescriptorListCaches=new o.MethodDescriptor("/control_client.ScsControl/ListCaches",o.MethodType.UNARY,s._ListCachesRequest,s._ListCachesResponse,(e=>e.serializeBinary()),s._ListCachesResponse.deserializeBinary),this.methodDescriptorFlushCache=new o.MethodDescriptor("/control_client.ScsControl/FlushCache",o.MethodType.UNARY,s._FlushCacheRequest,s._FlushCacheResponse,(e=>e.serializeBinary()),s._FlushCacheResponse.deserializeBinary),this.methodDescriptorCreateSigningKey=new o.MethodDescriptor("/control_client.ScsControl/CreateSigningKey",o.MethodType.UNARY,s._CreateSigningKeyRequest,s._CreateSigningKeyResponse,(e=>e.serializeBinary()),s._CreateSigningKeyResponse.deserializeBinary),this.methodDescriptorRevokeSigningKey=new o.MethodDescriptor("/control_client.ScsControl/RevokeSigningKey",o.MethodType.UNARY,s._RevokeSigningKeyRequest,s._RevokeSigningKeyResponse,(e=>e.serializeBinary()),s._RevokeSigningKeyResponse.deserializeBinary),this.methodDescriptorListSigningKeys=new o.MethodDescriptor("/control_client.ScsControl/ListSigningKeys",o.MethodType.UNARY,s._ListSigningKeysRequest,s._ListSigningKeysResponse,(e=>e.serializeBinary()),s._ListSigningKeysResponse.deserializeBinary),this.methodDescriptorCreateIndex=new o.MethodDescriptor("/control_client.ScsControl/CreateIndex",o.MethodType.UNARY,s._CreateIndexRequest,s._CreateIndexResponse,(e=>e.serializeBinary()),s._CreateIndexResponse.deserializeBinary),this.methodDescriptorDeleteIndex=new o.MethodDescriptor("/control_client.ScsControl/DeleteIndex",o.MethodType.UNARY,s._DeleteIndexRequest,s._DeleteIndexResponse,(e=>e.serializeBinary()),s._DeleteIndexResponse.deserializeBinary),this.methodDescriptorListIndexes=new o.MethodDescriptor("/control_client.ScsControl/ListIndexes",o.MethodType.UNARY,s._ListIndexesRequest,s._ListIndexesResponse,(e=>e.serializeBinary()),s._ListIndexesResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}createCache(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/CreateCache",e,t||{},this.methodDescriptorCreateCache,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/CreateCache",e,t||{},this.methodDescriptorCreateCache)}deleteCache(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/DeleteCache",e,t||{},this.methodDescriptorDeleteCache,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/DeleteCache",e,t||{},this.methodDescriptorDeleteCache)}listCaches(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/ListCaches",e,t||{},this.methodDescriptorListCaches,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/ListCaches",e,t||{},this.methodDescriptorListCaches)}flushCache(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/FlushCache",e,t||{},this.methodDescriptorFlushCache,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/FlushCache",e,t||{},this.methodDescriptorFlushCache)}createSigningKey(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/CreateSigningKey",e,t||{},this.methodDescriptorCreateSigningKey,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/CreateSigningKey",e,t||{},this.methodDescriptorCreateSigningKey)}revokeSigningKey(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/RevokeSigningKey",e,t||{},this.methodDescriptorRevokeSigningKey,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/RevokeSigningKey",e,t||{},this.methodDescriptorRevokeSigningKey)}listSigningKeys(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/ListSigningKeys",e,t||{},this.methodDescriptorListSigningKeys,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/ListSigningKeys",e,t||{},this.methodDescriptorListSigningKeys)}createIndex(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/CreateIndex",e,t||{},this.methodDescriptorCreateIndex,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/CreateIndex",e,t||{},this.methodDescriptorCreateIndex)}deleteIndex(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/DeleteIndex",e,t||{},this.methodDescriptorDeleteIndex,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/DeleteIndex",e,t||{},this.methodDescriptorDeleteIndex)}listIndexes(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/ListIndexes",e,t||{},this.methodDescriptorListIndexes,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/ListIndexes",e,t||{},this.methodDescriptorListIndexes)}},ControlclientServiceClientPb}var AuthServiceClientPb={},auth_pb={},permissionmessages_pb={},hasRequiredPermissionmessages_pb,hasRequiredAuth_pb,hasRequiredAuthServiceClientPb;function requirePermissionmessages_pb(){return hasRequiredPermissionmessages_pb||(hasRequiredPermissionmessages_pb=1,e=permissionmessages_pb,t=requireGoogleProtobuf(),o={},(r=t).exportSymbol("CacheRole",null,o),r.exportSymbol("ExplicitPermissions",null,o),r.exportSymbol("FunctionRole",null,o),r.exportSymbol("Permissions",null,o),r.exportSymbol("Permissions.KindCase",null,o),r.exportSymbol("PermissionsType",null,o),r.exportSymbol("PermissionsType.All",null,o),r.exportSymbol("PermissionsType.CacheItemSelector",null,o),r.exportSymbol("PermissionsType.CacheItemSelector.KindCase",null,o),r.exportSymbol("PermissionsType.CachePermissions",null,o),r.exportSymbol("PermissionsType.CachePermissions.CacheCase",null,o),r.exportSymbol("PermissionsType.CachePermissions.CacheItemCase",null,o),r.exportSymbol("PermissionsType.CacheSelector",null,o),r.exportSymbol("PermissionsType.CacheSelector.KindCase",null,o),r.exportSymbol("PermissionsType.FunctionPermissions",null,o),r.exportSymbol("PermissionsType.FunctionPermissions.CacheCase",null,o),r.exportSymbol("PermissionsType.FunctionPermissions.FunctionCase",null,o),r.exportSymbol("PermissionsType.FunctionSelector",null,o),r.exportSymbol("PermissionsType.FunctionSelector.KindCase",null,o),r.exportSymbol("PermissionsType.KindCase",null,o),r.exportSymbol("PermissionsType.TopicPermissions",null,o),r.exportSymbol("PermissionsType.TopicPermissions.CacheCase",null,o),r.exportSymbol("PermissionsType.TopicPermissions.TopicCase",null,o),r.exportSymbol("PermissionsType.TopicSelector",null,o),r.exportSymbol("PermissionsType.TopicSelector.KindCase",null,o),r.exportSymbol("SuperUserPermissions",null,o),r.exportSymbol("TopicRole",null,o),o.Permissions=function(e){t.Message.initialize(this,e,0,-1,null,o.Permissions.oneofGroups_)},r.inherits(o.Permissions,t.Message),r.DEBUG&&!COMPILED&&(o.Permissions.displayName="proto.Permissions"),o.ExplicitPermissions=function(e){t.Message.initialize(this,e,0,-1,o.ExplicitPermissions.repeatedFields_,null)},r.inherits(o.ExplicitPermissions,t.Message),r.DEBUG&&!COMPILED&&(o.ExplicitPermissions.displayName="proto.ExplicitPermissions"),o.PermissionsType=function(e){t.Message.initialize(this,e,0,-1,null,o.PermissionsType.oneofGroups_)},r.inherits(o.PermissionsType,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionsType.displayName="proto.PermissionsType"),o.PermissionsType.All=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.PermissionsType.All,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionsType.All.displayName="proto.PermissionsType.All"),o.PermissionsType.CacheSelector=function(e){t.Message.initialize(this,e,0,-1,null,o.PermissionsType.CacheSelector.oneofGroups_)},r.inherits(o.PermissionsType.CacheSelector,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionsType.CacheSelector.displayName="proto.PermissionsType.CacheSelector"),o.PermissionsType.CacheItemSelector=function(e){t.Message.initialize(this,e,0,-1,null,o.PermissionsType.CacheItemSelector.oneofGroups_)},r.inherits(o.PermissionsType.CacheItemSelector,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionsType.CacheItemSelector.displayName="proto.PermissionsType.CacheItemSelector"),o.PermissionsType.CachePermissions=function(e){t.Message.initialize(this,e,0,-1,null,o.PermissionsType.CachePermissions.oneofGroups_)},r.inherits(o.PermissionsType.CachePermissions,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionsType.CachePermissions.displayName="proto.PermissionsType.CachePermissions"),o.PermissionsType.TopicSelector=function(e){t.Message.initialize(this,e,0,-1,null,o.PermissionsType.TopicSelector.oneofGroups_)},r.inherits(o.PermissionsType.TopicSelector,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionsType.TopicSelector.displayName="proto.PermissionsType.TopicSelector"),o.PermissionsType.TopicPermissions=function(e){t.Message.initialize(this,e,0,-1,null,o.PermissionsType.TopicPermissions.oneofGroups_)},r.inherits(o.PermissionsType.TopicPermissions,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionsType.TopicPermissions.displayName="proto.PermissionsType.TopicPermissions"),o.PermissionsType.FunctionSelector=function(e){t.Message.initialize(this,e,0,-1,null,o.PermissionsType.FunctionSelector.oneofGroups_)},r.inherits(o.PermissionsType.FunctionSelector,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionsType.FunctionSelector.displayName="proto.PermissionsType.FunctionSelector"),o.PermissionsType.FunctionPermissions=function(e){t.Message.initialize(this,e,0,-1,null,o.PermissionsType.FunctionPermissions.oneofGroups_)},r.inherits(o.PermissionsType.FunctionPermissions,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionsType.FunctionPermissions.displayName="proto.PermissionsType.FunctionPermissions"),o.Permissions.oneofGroups_=[[1,2]],o.Permissions.KindCase={KIND_NOT_SET:0,SUPER_USER:1,EXPLICIT:2},o.Permissions.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.Permissions.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.Permissions.prototype.toObject=function(e){return o.Permissions.toObject(e,this)},o.Permissions.toObject=function(e,r){var s,n={superUser:t.Message.getFieldWithDefault(r,1,0),explicit:(s=r.getExplicit())&&o.ExplicitPermissions.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.Permissions.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Permissions;return o.Permissions.deserializeBinaryFromReader(s,r)},o.Permissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setSuperUser(r);break;case 2:r=new o.ExplicitPermissions,t.readMessage(r,o.ExplicitPermissions.deserializeBinaryFromReader),e.setExplicit(r);break;default:t.skipField()}return e},o.Permissions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Permissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Permissions.serializeBinaryToWriter=function(e,r){var s=void 0;null!=(s=t.Message.getField(e,1))&&r.writeEnum(1,s),null!=(s=e.getExplicit())&&r.writeMessage(2,s,o.ExplicitPermissions.serializeBinaryToWriter)},o.Permissions.prototype.getSuperUser=function(){return t.Message.getFieldWithDefault(this,1,0)},o.Permissions.prototype.setSuperUser=function(e){return t.Message.setOneofField(this,1,o.Permissions.oneofGroups_[0],e)},o.Permissions.prototype.clearSuperUser=function(){return t.Message.setOneofField(this,1,o.Permissions.oneofGroups_[0],void 0)},o.Permissions.prototype.hasSuperUser=function(){return null!=t.Message.getField(this,1)},o.Permissions.prototype.getExplicit=function(){return t.Message.getWrapperField(this,o.ExplicitPermissions,2)},o.Permissions.prototype.setExplicit=function(e){return t.Message.setOneofWrapperField(this,2,o.Permissions.oneofGroups_[0],e)},o.Permissions.prototype.clearExplicit=function(){return this.setExplicit(void 0)},o.Permissions.prototype.hasExplicit=function(){return null!=t.Message.getField(this,2)},o.ExplicitPermissions.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o.ExplicitPermissions.prototype.toObject=function(e){return o.ExplicitPermissions.toObject(e,this)},o.ExplicitPermissions.toObject=function(e,r){var s={permissionsList:t.Message.toObjectList(r.getPermissionsList(),o.PermissionsType.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o.ExplicitPermissions.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.ExplicitPermissions;return o.ExplicitPermissions.deserializeBinaryFromReader(s,r)},o.ExplicitPermissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o.PermissionsType;t.readMessage(r,o.PermissionsType.deserializeBinaryFromReader),e.addPermissions(r)}else t.skipField();return e},o.ExplicitPermissions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.ExplicitPermissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.ExplicitPermissions.serializeBinaryToWriter=function(e,t){var r;(r=e.getPermissionsList()).length>0&&t.writeRepeatedMessage(1,r,o.PermissionsType.serializeBinaryToWriter)},o.ExplicitPermissions.prototype.getPermissionsList=function(){return t.Message.getRepeatedWrapperField(this,o.PermissionsType,1)},o.ExplicitPermissions.prototype.setPermissionsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o.ExplicitPermissions.prototype.addPermissions=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o.PermissionsType,r)},o.ExplicitPermissions.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},o.PermissionsType.oneofGroups_=[[1,2,3]],o.PermissionsType.KindCase={KIND_NOT_SET:0,CACHE_PERMISSIONS:1,TOPIC_PERMISSIONS:2,FUNCTION_PERMISSIONS:3},o.PermissionsType.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.PermissionsType.prototype.toObject=function(e){return o.PermissionsType.toObject(e,this)},o.PermissionsType.toObject=function(e,t){var r,s={cachePermissions:(r=t.getCachePermissions())&&o.PermissionsType.CachePermissions.toObject(e,r),topicPermissions:(r=t.getTopicPermissions())&&o.PermissionsType.TopicPermissions.toObject(e,r),functionPermissions:(r=t.getFunctionPermissions())&&o.PermissionsType.FunctionPermissions.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o.PermissionsType.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionsType;return o.PermissionsType.deserializeBinaryFromReader(s,r)},o.PermissionsType.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o.PermissionsType.CachePermissions;t.readMessage(r,o.PermissionsType.CachePermissions.deserializeBinaryFromReader),e.setCachePermissions(r);break;case 2:r=new o.PermissionsType.TopicPermissions,t.readMessage(r,o.PermissionsType.TopicPermissions.deserializeBinaryFromReader),e.setTopicPermissions(r);break;case 3:r=new o.PermissionsType.FunctionPermissions,t.readMessage(r,o.PermissionsType.FunctionPermissions.deserializeBinaryFromReader),e.setFunctionPermissions(r);break;default:t.skipField()}return e},o.PermissionsType.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionsType.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionsType.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getCachePermissions())&&t.writeMessage(1,r,o.PermissionsType.CachePermissions.serializeBinaryToWriter),null!=(r=e.getTopicPermissions())&&t.writeMessage(2,r,o.PermissionsType.TopicPermissions.serializeBinaryToWriter),null!=(r=e.getFunctionPermissions())&&t.writeMessage(3,r,o.PermissionsType.FunctionPermissions.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o.PermissionsType.All.prototype.toObject=function(e){return o.PermissionsType.All.toObject(e,this)},o.PermissionsType.All.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o.PermissionsType.All.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionsType.All;return o.PermissionsType.All.deserializeBinaryFromReader(s,r)},o.PermissionsType.All.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o.PermissionsType.All.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionsType.All.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionsType.All.serializeBinaryToWriter=function(e,t){},o.PermissionsType.CacheSelector.oneofGroups_=[[1]],o.PermissionsType.CacheSelector.KindCase={KIND_NOT_SET:0,CACHE_NAME:1},o.PermissionsType.CacheSelector.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.CacheSelector.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.PermissionsType.CacheSelector.prototype.toObject=function(e){return o.PermissionsType.CacheSelector.toObject(e,this)},o.PermissionsType.CacheSelector.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o.PermissionsType.CacheSelector.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionsType.CacheSelector;return o.PermissionsType.CacheSelector.deserializeBinaryFromReader(s,r)},o.PermissionsType.CacheSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},o.PermissionsType.CacheSelector.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionsType.CacheSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionsType.CacheSelector.serializeBinaryToWriter=function(e,r){var o;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o)},o.PermissionsType.CacheSelector.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o.PermissionsType.CacheSelector.prototype.setCacheName=function(e){return t.Message.setOneofField(this,1,o.PermissionsType.CacheSelector.oneofGroups_[0],e)},o.PermissionsType.CacheSelector.prototype.clearCacheName=function(){return t.Message.setOneofField(this,1,o.PermissionsType.CacheSelector.oneofGroups_[0],void 0)},o.PermissionsType.CacheSelector.prototype.hasCacheName=function(){return null!=t.Message.getField(this,1)},o.PermissionsType.CacheItemSelector.oneofGroups_=[[1,2]],o.PermissionsType.CacheItemSelector.KindCase={KIND_NOT_SET:0,KEY:1,KEY_PREFIX:2},o.PermissionsType.CacheItemSelector.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.CacheItemSelector.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.PermissionsType.CacheItemSelector.prototype.toObject=function(e){return o.PermissionsType.CacheItemSelector.toObject(e,this)},o.PermissionsType.CacheItemSelector.toObject=function(e,t){var r={key:t.getKey_asB64(),keyPrefix:t.getKeyPrefix_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.PermissionsType.CacheItemSelector.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionsType.CacheItemSelector;return o.PermissionsType.CacheItemSelector.deserializeBinaryFromReader(s,r)},o.PermissionsType.CacheItemSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setKey(r);break;case 2:r=t.readBytes(),e.setKeyPrefix(r);break;default:t.skipField()}return e},o.PermissionsType.CacheItemSelector.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionsType.CacheItemSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionsType.CacheItemSelector.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeBytes(1,o),null!=(o=t.Message.getField(e,2))&&r.writeBytes(2,o)},o.PermissionsType.CacheItemSelector.prototype.getKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o.PermissionsType.CacheItemSelector.prototype.getKey_asB64=function(){return t.Message.bytesAsB64(this.getKey())},o.PermissionsType.CacheItemSelector.prototype.getKey_asU8=function(){return t.Message.bytesAsU8(this.getKey())},o.PermissionsType.CacheItemSelector.prototype.setKey=function(e){return t.Message.setOneofField(this,1,o.PermissionsType.CacheItemSelector.oneofGroups_[0],e)},o.PermissionsType.CacheItemSelector.prototype.clearKey=function(){return t.Message.setOneofField(this,1,o.PermissionsType.CacheItemSelector.oneofGroups_[0],void 0)},o.PermissionsType.CacheItemSelector.prototype.hasKey=function(){return null!=t.Message.getField(this,1)},o.PermissionsType.CacheItemSelector.prototype.getKeyPrefix=function(){return t.Message.getFieldWithDefault(this,2,"")},o.PermissionsType.CacheItemSelector.prototype.getKeyPrefix_asB64=function(){return t.Message.bytesAsB64(this.getKeyPrefix())},o.PermissionsType.CacheItemSelector.prototype.getKeyPrefix_asU8=function(){return t.Message.bytesAsU8(this.getKeyPrefix())},o.PermissionsType.CacheItemSelector.prototype.setKeyPrefix=function(e){return t.Message.setOneofField(this,2,o.PermissionsType.CacheItemSelector.oneofGroups_[0],e)},o.PermissionsType.CacheItemSelector.prototype.clearKeyPrefix=function(){return t.Message.setOneofField(this,2,o.PermissionsType.CacheItemSelector.oneofGroups_[0],void 0)},o.PermissionsType.CacheItemSelector.prototype.hasKeyPrefix=function(){return null!=t.Message.getField(this,2)},o.PermissionsType.CachePermissions.oneofGroups_=[[2,3],[4,5]],o.PermissionsType.CachePermissions.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},o.PermissionsType.CachePermissions.prototype.getCacheCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.CachePermissions.oneofGroups_[0])},o.PermissionsType.CachePermissions.CacheItemCase={CACHE_ITEM_NOT_SET:0,ALL_ITEMS:4,ITEM_SELECTOR:5},o.PermissionsType.CachePermissions.prototype.getCacheItemCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.CachePermissions.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o.PermissionsType.CachePermissions.prototype.toObject=function(e){return o.PermissionsType.CachePermissions.toObject(e,this)},o.PermissionsType.CachePermissions.toObject=function(e,r){var s,n={role:t.Message.getFieldWithDefault(r,1,0),allCaches:(s=r.getAllCaches())&&o.PermissionsType.All.toObject(e,s),cacheSelector:(s=r.getCacheSelector())&&o.PermissionsType.CacheSelector.toObject(e,s),allItems:(s=r.getAllItems())&&o.PermissionsType.All.toObject(e,s),itemSelector:(s=r.getItemSelector())&&o.PermissionsType.CacheItemSelector.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.PermissionsType.CachePermissions.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionsType.CachePermissions;return o.PermissionsType.CachePermissions.deserializeBinaryFromReader(s,r)},o.PermissionsType.CachePermissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setRole(r);break;case 2:r=new o.PermissionsType.All,t.readMessage(r,o.PermissionsType.All.deserializeBinaryFromReader),e.setAllCaches(r);break;case 3:r=new o.PermissionsType.CacheSelector,t.readMessage(r,o.PermissionsType.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(r);break;case 4:r=new o.PermissionsType.All,t.readMessage(r,o.PermissionsType.All.deserializeBinaryFromReader),e.setAllItems(r);break;case 5:r=new o.PermissionsType.CacheItemSelector,t.readMessage(r,o.PermissionsType.CacheItemSelector.deserializeBinaryFromReader),e.setItemSelector(r);break;default:t.skipField()}return e},o.PermissionsType.CachePermissions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionsType.CachePermissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionsType.CachePermissions.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getRole())&&t.writeEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,o.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,o.PermissionsType.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllItems())&&t.writeMessage(4,r,o.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getItemSelector())&&t.writeMessage(5,r,o.PermissionsType.CacheItemSelector.serializeBinaryToWriter)},o.PermissionsType.CachePermissions.prototype.getRole=function(){return t.Message.getFieldWithDefault(this,1,0)},o.PermissionsType.CachePermissions.prototype.setRole=function(e){return t.Message.setProto3EnumField(this,1,e)},o.PermissionsType.CachePermissions.prototype.getAllCaches=function(){return t.Message.getWrapperField(this,o.PermissionsType.All,2)},o.PermissionsType.CachePermissions.prototype.setAllCaches=function(e){return t.Message.setOneofWrapperField(this,2,o.PermissionsType.CachePermissions.oneofGroups_[0],e)},o.PermissionsType.CachePermissions.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},o.PermissionsType.CachePermissions.prototype.hasAllCaches=function(){return null!=t.Message.getField(this,2)},o.PermissionsType.CachePermissions.prototype.getCacheSelector=function(){return t.Message.getWrapperField(this,o.PermissionsType.CacheSelector,3)},o.PermissionsType.CachePermissions.prototype.setCacheSelector=function(e){return t.Message.setOneofWrapperField(this,3,o.PermissionsType.CachePermissions.oneofGroups_[0],e)},o.PermissionsType.CachePermissions.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},o.PermissionsType.CachePermissions.prototype.hasCacheSelector=function(){return null!=t.Message.getField(this,3)},o.PermissionsType.CachePermissions.prototype.getAllItems=function(){return t.Message.getWrapperField(this,o.PermissionsType.All,4)},o.PermissionsType.CachePermissions.prototype.setAllItems=function(e){return t.Message.setOneofWrapperField(this,4,o.PermissionsType.CachePermissions.oneofGroups_[1],e)},o.PermissionsType.CachePermissions.prototype.clearAllItems=function(){return this.setAllItems(void 0)},o.PermissionsType.CachePermissions.prototype.hasAllItems=function(){return null!=t.Message.getField(this,4)},o.PermissionsType.CachePermissions.prototype.getItemSelector=function(){return t.Message.getWrapperField(this,o.PermissionsType.CacheItemSelector,5)},o.PermissionsType.CachePermissions.prototype.setItemSelector=function(e){return t.Message.setOneofWrapperField(this,5,o.PermissionsType.CachePermissions.oneofGroups_[1],e)},o.PermissionsType.CachePermissions.prototype.clearItemSelector=function(){return this.setItemSelector(void 0)},o.PermissionsType.CachePermissions.prototype.hasItemSelector=function(){return null!=t.Message.getField(this,5)},o.PermissionsType.TopicSelector.oneofGroups_=[[1,2]],o.PermissionsType.TopicSelector.KindCase={KIND_NOT_SET:0,TOPIC_NAME:1,TOPIC_NAME_PREFIX:2},o.PermissionsType.TopicSelector.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.TopicSelector.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.PermissionsType.TopicSelector.prototype.toObject=function(e){return o.PermissionsType.TopicSelector.toObject(e,this)},o.PermissionsType.TopicSelector.toObject=function(e,r){var o={topicName:t.Message.getFieldWithDefault(r,1,""),topicNamePrefix:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o.PermissionsType.TopicSelector.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionsType.TopicSelector;return o.PermissionsType.TopicSelector.deserializeBinaryFromReader(s,r)},o.PermissionsType.TopicSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTopicName(r);break;case 2:r=t.readString(),e.setTopicNamePrefix(r);break;default:t.skipField()}return e},o.PermissionsType.TopicSelector.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionsType.TopicSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionsType.TopicSelector.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,2))&&r.writeString(2,o)},o.PermissionsType.TopicSelector.prototype.getTopicName=function(){return t.Message.getFieldWithDefault(this,1,"")},o.PermissionsType.TopicSelector.prototype.setTopicName=function(e){return t.Message.setOneofField(this,1,o.PermissionsType.TopicSelector.oneofGroups_[0],e)},o.PermissionsType.TopicSelector.prototype.clearTopicName=function(){return t.Message.setOneofField(this,1,o.PermissionsType.TopicSelector.oneofGroups_[0],void 0)},o.PermissionsType.TopicSelector.prototype.hasTopicName=function(){return null!=t.Message.getField(this,1)},o.PermissionsType.TopicSelector.prototype.getTopicNamePrefix=function(){return t.Message.getFieldWithDefault(this,2,"")},o.PermissionsType.TopicSelector.prototype.setTopicNamePrefix=function(e){return t.Message.setOneofField(this,2,o.PermissionsType.TopicSelector.oneofGroups_[0],e)},o.PermissionsType.TopicSelector.prototype.clearTopicNamePrefix=function(){return t.Message.setOneofField(this,2,o.PermissionsType.TopicSelector.oneofGroups_[0],void 0)},o.PermissionsType.TopicSelector.prototype.hasTopicNamePrefix=function(){return null!=t.Message.getField(this,2)},o.PermissionsType.TopicPermissions.oneofGroups_=[[2,3],[4,5]],o.PermissionsType.TopicPermissions.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},o.PermissionsType.TopicPermissions.prototype.getCacheCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.TopicPermissions.oneofGroups_[0])},o.PermissionsType.TopicPermissions.TopicCase={TOPIC_NOT_SET:0,ALL_TOPICS:4,TOPIC_SELECTOR:5},o.PermissionsType.TopicPermissions.prototype.getTopicCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.TopicPermissions.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o.PermissionsType.TopicPermissions.prototype.toObject=function(e){return o.PermissionsType.TopicPermissions.toObject(e,this)},o.PermissionsType.TopicPermissions.toObject=function(e,r){var s,n={role:t.Message.getFieldWithDefault(r,1,0),allCaches:(s=r.getAllCaches())&&o.PermissionsType.All.toObject(e,s),cacheSelector:(s=r.getCacheSelector())&&o.PermissionsType.CacheSelector.toObject(e,s),allTopics:(s=r.getAllTopics())&&o.PermissionsType.All.toObject(e,s),topicSelector:(s=r.getTopicSelector())&&o.PermissionsType.TopicSelector.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.PermissionsType.TopicPermissions.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionsType.TopicPermissions;return o.PermissionsType.TopicPermissions.deserializeBinaryFromReader(s,r)},o.PermissionsType.TopicPermissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setRole(r);break;case 2:r=new o.PermissionsType.All,t.readMessage(r,o.PermissionsType.All.deserializeBinaryFromReader),e.setAllCaches(r);break;case 3:r=new o.PermissionsType.CacheSelector,t.readMessage(r,o.PermissionsType.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(r);break;case 4:r=new o.PermissionsType.All,t.readMessage(r,o.PermissionsType.All.deserializeBinaryFromReader),e.setAllTopics(r);break;case 5:r=new o.PermissionsType.TopicSelector,t.readMessage(r,o.PermissionsType.TopicSelector.deserializeBinaryFromReader),e.setTopicSelector(r);break;default:t.skipField()}return e},o.PermissionsType.TopicPermissions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionsType.TopicPermissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionsType.TopicPermissions.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getRole())&&t.writeEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,o.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,o.PermissionsType.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllTopics())&&t.writeMessage(4,r,o.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getTopicSelector())&&t.writeMessage(5,r,o.PermissionsType.TopicSelector.serializeBinaryToWriter)},o.PermissionsType.TopicPermissions.prototype.getRole=function(){return t.Message.getFieldWithDefault(this,1,0)},o.PermissionsType.TopicPermissions.prototype.setRole=function(e){return t.Message.setProto3EnumField(this,1,e)},o.PermissionsType.TopicPermissions.prototype.getAllCaches=function(){return t.Message.getWrapperField(this,o.PermissionsType.All,2)},o.PermissionsType.TopicPermissions.prototype.setAllCaches=function(e){return t.Message.setOneofWrapperField(this,2,o.PermissionsType.TopicPermissions.oneofGroups_[0],e)},o.PermissionsType.TopicPermissions.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},o.PermissionsType.TopicPermissions.prototype.hasAllCaches=function(){return null!=t.Message.getField(this,2)},o.PermissionsType.TopicPermissions.prototype.getCacheSelector=function(){return t.Message.getWrapperField(this,o.PermissionsType.CacheSelector,3)},o.PermissionsType.TopicPermissions.prototype.setCacheSelector=function(e){return t.Message.setOneofWrapperField(this,3,o.PermissionsType.TopicPermissions.oneofGroups_[0],e)},o.PermissionsType.TopicPermissions.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},o.PermissionsType.TopicPermissions.prototype.hasCacheSelector=function(){return null!=t.Message.getField(this,3)},o.PermissionsType.TopicPermissions.prototype.getAllTopics=function(){return t.Message.getWrapperField(this,o.PermissionsType.All,4)},o.PermissionsType.TopicPermissions.prototype.setAllTopics=function(e){return t.Message.setOneofWrapperField(this,4,o.PermissionsType.TopicPermissions.oneofGroups_[1],e)},o.PermissionsType.TopicPermissions.prototype.clearAllTopics=function(){return this.setAllTopics(void 0)},o.PermissionsType.TopicPermissions.prototype.hasAllTopics=function(){return null!=t.Message.getField(this,4)},o.PermissionsType.TopicPermissions.prototype.getTopicSelector=function(){return t.Message.getWrapperField(this,o.PermissionsType.TopicSelector,5)},o.PermissionsType.TopicPermissions.prototype.setTopicSelector=function(e){return t.Message.setOneofWrapperField(this,5,o.PermissionsType.TopicPermissions.oneofGroups_[1],e)},o.PermissionsType.TopicPermissions.prototype.clearTopicSelector=function(){return this.setTopicSelector(void 0)},o.PermissionsType.TopicPermissions.prototype.hasTopicSelector=function(){return null!=t.Message.getField(this,5)},o.PermissionsType.FunctionSelector.oneofGroups_=[[1,2]],o.PermissionsType.FunctionSelector.KindCase={KIND_NOT_SET:0,FUNCTION_NAME:1,FUNCTION_NAME_PREFIX:2},o.PermissionsType.FunctionSelector.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.FunctionSelector.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.PermissionsType.FunctionSelector.prototype.toObject=function(e){return o.PermissionsType.FunctionSelector.toObject(e,this)},o.PermissionsType.FunctionSelector.toObject=function(e,r){var o={functionName:t.Message.getFieldWithDefault(r,1,""),functionNamePrefix:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o.PermissionsType.FunctionSelector.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionsType.FunctionSelector;return o.PermissionsType.FunctionSelector.deserializeBinaryFromReader(s,r)},o.PermissionsType.FunctionSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setFunctionName(r);break;case 2:r=t.readString(),e.setFunctionNamePrefix(r);break;default:t.skipField()}return e},o.PermissionsType.FunctionSelector.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionsType.FunctionSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionsType.FunctionSelector.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,2))&&r.writeString(2,o)},o.PermissionsType.FunctionSelector.prototype.getFunctionName=function(){return t.Message.getFieldWithDefault(this,1,"")},o.PermissionsType.FunctionSelector.prototype.setFunctionName=function(e){return t.Message.setOneofField(this,1,o.PermissionsType.FunctionSelector.oneofGroups_[0],e)},o.PermissionsType.FunctionSelector.prototype.clearFunctionName=function(){return t.Message.setOneofField(this,1,o.PermissionsType.FunctionSelector.oneofGroups_[0],void 0)},o.PermissionsType.FunctionSelector.prototype.hasFunctionName=function(){return null!=t.Message.getField(this,1)},o.PermissionsType.FunctionSelector.prototype.getFunctionNamePrefix=function(){return t.Message.getFieldWithDefault(this,2,"")},o.PermissionsType.FunctionSelector.prototype.setFunctionNamePrefix=function(e){return t.Message.setOneofField(this,2,o.PermissionsType.FunctionSelector.oneofGroups_[0],e)},o.PermissionsType.FunctionSelector.prototype.clearFunctionNamePrefix=function(){return t.Message.setOneofField(this,2,o.PermissionsType.FunctionSelector.oneofGroups_[0],void 0)},o.PermissionsType.FunctionSelector.prototype.hasFunctionNamePrefix=function(){return null!=t.Message.getField(this,2)},o.PermissionsType.FunctionPermissions.oneofGroups_=[[2,3],[4,5]],o.PermissionsType.FunctionPermissions.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},o.PermissionsType.FunctionPermissions.prototype.getCacheCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.FunctionPermissions.oneofGroups_[0])},o.PermissionsType.FunctionPermissions.FunctionCase={FUNCTION_NOT_SET:0,ALL_FUNCTIONS:4,FUNCTION_SELECTOR:5},o.PermissionsType.FunctionPermissions.prototype.getFunctionCase=function(){return t.Message.computeOneofCase(this,o.PermissionsType.FunctionPermissions.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o.PermissionsType.FunctionPermissions.prototype.toObject=function(e){return o.PermissionsType.FunctionPermissions.toObject(e,this)},o.PermissionsType.FunctionPermissions.toObject=function(e,r){var s,n={role:t.Message.getFieldWithDefault(r,1,0),allCaches:(s=r.getAllCaches())&&o.PermissionsType.All.toObject(e,s),cacheSelector:(s=r.getCacheSelector())&&o.PermissionsType.CacheSelector.toObject(e,s),allFunctions:(s=r.getAllFunctions())&&o.PermissionsType.All.toObject(e,s),functionSelector:(s=r.getFunctionSelector())&&o.PermissionsType.FunctionSelector.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.PermissionsType.FunctionPermissions.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionsType.FunctionPermissions;return o.PermissionsType.FunctionPermissions.deserializeBinaryFromReader(s,r)},o.PermissionsType.FunctionPermissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setRole(r);break;case 2:r=new o.PermissionsType.All,t.readMessage(r,o.PermissionsType.All.deserializeBinaryFromReader),e.setAllCaches(r);break;case 3:r=new o.PermissionsType.CacheSelector,t.readMessage(r,o.PermissionsType.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(r);break;case 4:r=new o.PermissionsType.All,t.readMessage(r,o.PermissionsType.All.deserializeBinaryFromReader),e.setAllFunctions(r);break;case 5:r=new o.PermissionsType.FunctionSelector,t.readMessage(r,o.PermissionsType.FunctionSelector.deserializeBinaryFromReader),e.setFunctionSelector(r);break;default:t.skipField()}return e},o.PermissionsType.FunctionPermissions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionsType.FunctionPermissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionsType.FunctionPermissions.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getRole())&&t.writeEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,o.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,o.PermissionsType.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllFunctions())&&t.writeMessage(4,r,o.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getFunctionSelector())&&t.writeMessage(5,r,o.PermissionsType.FunctionSelector.serializeBinaryToWriter)},o.PermissionsType.FunctionPermissions.prototype.getRole=function(){return t.Message.getFieldWithDefault(this,1,0)},o.PermissionsType.FunctionPermissions.prototype.setRole=function(e){return t.Message.setProto3EnumField(this,1,e)},o.PermissionsType.FunctionPermissions.prototype.getAllCaches=function(){return t.Message.getWrapperField(this,o.PermissionsType.All,2)},o.PermissionsType.FunctionPermissions.prototype.setAllCaches=function(e){return t.Message.setOneofWrapperField(this,2,o.PermissionsType.FunctionPermissions.oneofGroups_[0],e)},o.PermissionsType.FunctionPermissions.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},o.PermissionsType.FunctionPermissions.prototype.hasAllCaches=function(){return null!=t.Message.getField(this,2)},o.PermissionsType.FunctionPermissions.prototype.getCacheSelector=function(){return t.Message.getWrapperField(this,o.PermissionsType.CacheSelector,3)},o.PermissionsType.FunctionPermissions.prototype.setCacheSelector=function(e){return t.Message.setOneofWrapperField(this,3,o.PermissionsType.FunctionPermissions.oneofGroups_[0],e)},o.PermissionsType.FunctionPermissions.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},o.PermissionsType.FunctionPermissions.prototype.hasCacheSelector=function(){return null!=t.Message.getField(this,3)},o.PermissionsType.FunctionPermissions.prototype.getAllFunctions=function(){return t.Message.getWrapperField(this,o.PermissionsType.All,4)},o.PermissionsType.FunctionPermissions.prototype.setAllFunctions=function(e){return t.Message.setOneofWrapperField(this,4,o.PermissionsType.FunctionPermissions.oneofGroups_[1],e)},o.PermissionsType.FunctionPermissions.prototype.clearAllFunctions=function(){return this.setAllFunctions(void 0)},o.PermissionsType.FunctionPermissions.prototype.hasAllFunctions=function(){return null!=t.Message.getField(this,4)},o.PermissionsType.FunctionPermissions.prototype.getFunctionSelector=function(){return t.Message.getWrapperField(this,o.PermissionsType.FunctionSelector,5)},o.PermissionsType.FunctionPermissions.prototype.setFunctionSelector=function(e){return t.Message.setOneofWrapperField(this,5,o.PermissionsType.FunctionPermissions.oneofGroups_[1],e)},o.PermissionsType.FunctionPermissions.prototype.clearFunctionSelector=function(){return this.setFunctionSelector(void 0)},o.PermissionsType.FunctionPermissions.prototype.hasFunctionSelector=function(){return null!=t.Message.getField(this,5)},o.PermissionsType.prototype.getCachePermissions=function(){return t.Message.getWrapperField(this,o.PermissionsType.CachePermissions,1)},o.PermissionsType.prototype.setCachePermissions=function(e){return t.Message.setOneofWrapperField(this,1,o.PermissionsType.oneofGroups_[0],e)},o.PermissionsType.prototype.clearCachePermissions=function(){return this.setCachePermissions(void 0)},o.PermissionsType.prototype.hasCachePermissions=function(){return null!=t.Message.getField(this,1)},o.PermissionsType.prototype.getTopicPermissions=function(){return t.Message.getWrapperField(this,o.PermissionsType.TopicPermissions,2)},o.PermissionsType.prototype.setTopicPermissions=function(e){return t.Message.setOneofWrapperField(this,2,o.PermissionsType.oneofGroups_[0],e)},o.PermissionsType.prototype.clearTopicPermissions=function(){return this.setTopicPermissions(void 0)},o.PermissionsType.prototype.hasTopicPermissions=function(){return null!=t.Message.getField(this,2)},o.PermissionsType.prototype.getFunctionPermissions=function(){return t.Message.getWrapperField(this,o.PermissionsType.FunctionPermissions,3)},o.PermissionsType.prototype.setFunctionPermissions=function(e){return t.Message.setOneofWrapperField(this,3,o.PermissionsType.oneofGroups_[0],e)},o.PermissionsType.prototype.clearFunctionPermissions=function(){return this.setFunctionPermissions(void 0)},o.PermissionsType.prototype.hasFunctionPermissions=function(){return null!=t.Message.getField(this,3)},o.CacheRole={CACHEPERMITNONE:0,CACHEREADWRITE:1,CACHEREADONLY:2,CACHEWRITEONLY:3},o.TopicRole={TOPICPERMITNONE:0,TOPICREADWRITE:1,TOPICREADONLY:2,TOPICWRITEONLY:3},o.FunctionRole={FUNCTIONPERMITNONE:0,FUNCTIONINVOKE:1},o.SuperUserPermissions={SUPERUSER:0},r.object.extend(e,o)),permissionmessages_pb;var e,t,r,o}function requireAuth_pb(){return hasRequiredAuth_pb||(hasRequiredAuth_pb=1,e=auth_pb,t=requireGoogleProtobuf(),r=t,o={},s=requirePermissionmessages_pb(),r.object.extend(o,s),r.exportSymbol("_GenerateApiTokenRequest",null,o),r.exportSymbol("_GenerateApiTokenRequest.Expires",null,o),r.exportSymbol("_GenerateApiTokenRequest.ExpiryCase",null,o),r.exportSymbol("_GenerateApiTokenRequest.Never",null,o),r.exportSymbol("_GenerateApiTokenResponse",null,o),r.exportSymbol("_LoginRequest",null,o),r.exportSymbol("_LoginResponse",null,o),r.exportSymbol("_LoginResponse.DirectBrowser",null,o),r.exportSymbol("_LoginResponse.Error",null,o),r.exportSymbol("_LoginResponse.LoggedIn",null,o),r.exportSymbol("_LoginResponse.Message",null,o),r.exportSymbol("_LoginResponse.StateCase",null,o),r.exportSymbol("_RefreshApiTokenRequest",null,o),r.exportSymbol("_RefreshApiTokenResponse",null,o),o._LoginRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._LoginRequest,t.Message),r.DEBUG&&!COMPILED&&(o._LoginRequest.displayName="proto._LoginRequest"),o._LoginResponse=function(e){t.Message.initialize(this,e,0,-1,null,o._LoginResponse.oneofGroups_)},r.inherits(o._LoginResponse,t.Message),r.DEBUG&&!COMPILED&&(o._LoginResponse.displayName="proto._LoginResponse"),o._LoginResponse.LoggedIn=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._LoginResponse.LoggedIn,t.Message),r.DEBUG&&!COMPILED&&(o._LoginResponse.LoggedIn.displayName="proto._LoginResponse.LoggedIn"),o._LoginResponse.Error=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._LoginResponse.Error,t.Message),r.DEBUG&&!COMPILED&&(o._LoginResponse.Error.displayName="proto._LoginResponse.Error"),o._LoginResponse.DirectBrowser=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._LoginResponse.DirectBrowser,t.Message),r.DEBUG&&!COMPILED&&(o._LoginResponse.DirectBrowser.displayName="proto._LoginResponse.DirectBrowser"),o._LoginResponse.Message=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._LoginResponse.Message,t.Message),r.DEBUG&&!COMPILED&&(o._LoginResponse.Message.displayName="proto._LoginResponse.Message"),o._GenerateApiTokenRequest=function(e){t.Message.initialize(this,e,0,-1,null,o._GenerateApiTokenRequest.oneofGroups_)},r.inherits(o._GenerateApiTokenRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GenerateApiTokenRequest.displayName="proto._GenerateApiTokenRequest"),o._GenerateApiTokenRequest.Never=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GenerateApiTokenRequest.Never,t.Message),r.DEBUG&&!COMPILED&&(o._GenerateApiTokenRequest.Never.displayName="proto._GenerateApiTokenRequest.Never"),o._GenerateApiTokenRequest.Expires=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GenerateApiTokenRequest.Expires,t.Message),r.DEBUG&&!COMPILED&&(o._GenerateApiTokenRequest.Expires.displayName="proto._GenerateApiTokenRequest.Expires"),o._GenerateApiTokenResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GenerateApiTokenResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GenerateApiTokenResponse.displayName="proto._GenerateApiTokenResponse"),o._RefreshApiTokenRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RefreshApiTokenRequest,t.Message),r.DEBUG&&!COMPILED&&(o._RefreshApiTokenRequest.displayName="proto._RefreshApiTokenRequest"),o._RefreshApiTokenResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RefreshApiTokenResponse,t.Message),r.DEBUG&&!COMPILED&&(o._RefreshApiTokenResponse.displayName="proto._RefreshApiTokenResponse"),t.Message.GENERATE_TO_OBJECT&&(o._LoginRequest.prototype.toObject=function(e){return o._LoginRequest.toObject(e,this)},o._LoginRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._LoginRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._LoginRequest;return o._LoginRequest.deserializeBinaryFromReader(s,r)},o._LoginRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._LoginRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._LoginRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._LoginRequest.serializeBinaryToWriter=function(e,t){},o._LoginResponse.oneofGroups_=[[1,2,3,4]],o._LoginResponse.StateCase={STATE_NOT_SET:0,DIRECT_BROWSER:1,LOGGED_IN:2,MESSAGE:3,ERROR:4},o._LoginResponse.prototype.getStateCase=function(){return t.Message.computeOneofCase(this,o._LoginResponse.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._LoginResponse.prototype.toObject=function(e){return o._LoginResponse.toObject(e,this)},o._LoginResponse.toObject=function(e,t){var r,s={directBrowser:(r=t.getDirectBrowser())&&o._LoginResponse.DirectBrowser.toObject(e,r),loggedIn:(r=t.getLoggedIn())&&o._LoginResponse.LoggedIn.toObject(e,r),message:(r=t.getMessage())&&o._LoginResponse.Message.toObject(e,r),error:(r=t.getError())&&o._LoginResponse.Error.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._LoginResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._LoginResponse;return o._LoginResponse.deserializeBinaryFromReader(s,r)},o._LoginResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._LoginResponse.DirectBrowser;t.readMessage(r,o._LoginResponse.DirectBrowser.deserializeBinaryFromReader),e.setDirectBrowser(r);break;case 2:r=new o._LoginResponse.LoggedIn,t.readMessage(r,o._LoginResponse.LoggedIn.deserializeBinaryFromReader),e.setLoggedIn(r);break;case 3:r=new o._LoginResponse.Message,t.readMessage(r,o._LoginResponse.Message.deserializeBinaryFromReader),e.setMessage(r);break;case 4:r=new o._LoginResponse.Error,t.readMessage(r,o._LoginResponse.Error.deserializeBinaryFromReader),e.setError(r);break;default:t.skipField()}return e},o._LoginResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._LoginResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._LoginResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getDirectBrowser())&&t.writeMessage(1,r,o._LoginResponse.DirectBrowser.serializeBinaryToWriter),null!=(r=e.getLoggedIn())&&t.writeMessage(2,r,o._LoginResponse.LoggedIn.serializeBinaryToWriter),null!=(r=e.getMessage())&&t.writeMessage(3,r,o._LoginResponse.Message.serializeBinaryToWriter),null!=(r=e.getError())&&t.writeMessage(4,r,o._LoginResponse.Error.serializeBinaryToWriter)},t.Message.GENERATE_TO_OBJECT&&(o._LoginResponse.LoggedIn.prototype.toObject=function(e){return o._LoginResponse.LoggedIn.toObject(e,this)},o._LoginResponse.LoggedIn.toObject=function(e,r){var o={sessionToken:t.Message.getFieldWithDefault(r,1,""),validForSeconds:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._LoginResponse.LoggedIn.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._LoginResponse.LoggedIn;return o._LoginResponse.LoggedIn.deserializeBinaryFromReader(s,r)},o._LoginResponse.LoggedIn.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSessionToken(r);break;case 2:r=t.readUint32(),e.setValidForSeconds(r);break;default:t.skipField()}return e},o._LoginResponse.LoggedIn.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._LoginResponse.LoggedIn.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._LoginResponse.LoggedIn.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSessionToken()).length>0&&t.writeString(1,r),0!==(r=e.getValidForSeconds())&&t.writeUint32(2,r)},o._LoginResponse.LoggedIn.prototype.getSessionToken=function(){return t.Message.getFieldWithDefault(this,1,"")},o._LoginResponse.LoggedIn.prototype.setSessionToken=function(e){return t.Message.setProto3StringField(this,1,e)},o._LoginResponse.LoggedIn.prototype.getValidForSeconds=function(){return t.Message.getFieldWithDefault(this,2,0)},o._LoginResponse.LoggedIn.prototype.setValidForSeconds=function(e){return t.Message.setProto3IntField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._LoginResponse.Error.prototype.toObject=function(e){return o._LoginResponse.Error.toObject(e,this)},o._LoginResponse.Error.toObject=function(e,r){var o={description:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._LoginResponse.Error.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._LoginResponse.Error;return o._LoginResponse.Error.deserializeBinaryFromReader(s,r)},o._LoginResponse.Error.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setDescription(r)}else t.skipField();return e},o._LoginResponse.Error.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._LoginResponse.Error.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._LoginResponse.Error.serializeBinaryToWriter=function(e,t){var r;(r=e.getDescription()).length>0&&t.writeString(1,r)},o._LoginResponse.Error.prototype.getDescription=function(){return t.Message.getFieldWithDefault(this,1,"")},o._LoginResponse.Error.prototype.setDescription=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._LoginResponse.DirectBrowser.prototype.toObject=function(e){return o._LoginResponse.DirectBrowser.toObject(e,this)},o._LoginResponse.DirectBrowser.toObject=function(e,r){var o={url:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._LoginResponse.DirectBrowser.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._LoginResponse.DirectBrowser;return o._LoginResponse.DirectBrowser.deserializeBinaryFromReader(s,r)},o._LoginResponse.DirectBrowser.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setUrl(r)}else t.skipField();return e},o._LoginResponse.DirectBrowser.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._LoginResponse.DirectBrowser.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._LoginResponse.DirectBrowser.serializeBinaryToWriter=function(e,t){var r;(r=e.getUrl()).length>0&&t.writeString(1,r)},o._LoginResponse.DirectBrowser.prototype.getUrl=function(){return t.Message.getFieldWithDefault(this,1,"")},o._LoginResponse.DirectBrowser.prototype.setUrl=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._LoginResponse.Message.prototype.toObject=function(e){return o._LoginResponse.Message.toObject(e,this)},o._LoginResponse.Message.toObject=function(e,r){var o={text:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._LoginResponse.Message.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._LoginResponse.Message;return o._LoginResponse.Message.deserializeBinaryFromReader(s,r)},o._LoginResponse.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setText(r)}else t.skipField();return e},o._LoginResponse.Message.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._LoginResponse.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._LoginResponse.Message.serializeBinaryToWriter=function(e,t){var r;(r=e.getText()).length>0&&t.writeString(1,r)},o._LoginResponse.Message.prototype.getText=function(){return t.Message.getFieldWithDefault(this,1,"")},o._LoginResponse.Message.prototype.setText=function(e){return t.Message.setProto3StringField(this,1,e)},o._LoginResponse.prototype.getDirectBrowser=function(){return t.Message.getWrapperField(this,o._LoginResponse.DirectBrowser,1)},o._LoginResponse.prototype.setDirectBrowser=function(e){return t.Message.setOneofWrapperField(this,1,o._LoginResponse.oneofGroups_[0],e)},o._LoginResponse.prototype.clearDirectBrowser=function(){return this.setDirectBrowser(void 0)},o._LoginResponse.prototype.hasDirectBrowser=function(){return null!=t.Message.getField(this,1)},o._LoginResponse.prototype.getLoggedIn=function(){return t.Message.getWrapperField(this,o._LoginResponse.LoggedIn,2)},o._LoginResponse.prototype.setLoggedIn=function(e){return t.Message.setOneofWrapperField(this,2,o._LoginResponse.oneofGroups_[0],e)},o._LoginResponse.prototype.clearLoggedIn=function(){return this.setLoggedIn(void 0)},o._LoginResponse.prototype.hasLoggedIn=function(){return null!=t.Message.getField(this,2)},o._LoginResponse.prototype.getMessage=function(){return t.Message.getWrapperField(this,o._LoginResponse.Message,3)},o._LoginResponse.prototype.setMessage=function(e){return t.Message.setOneofWrapperField(this,3,o._LoginResponse.oneofGroups_[0],e)},o._LoginResponse.prototype.clearMessage=function(){return this.setMessage(void 0)},o._LoginResponse.prototype.hasMessage=function(){return null!=t.Message.getField(this,3)},o._LoginResponse.prototype.getError=function(){return t.Message.getWrapperField(this,o._LoginResponse.Error,4)},o._LoginResponse.prototype.setError=function(e){return t.Message.setOneofWrapperField(this,4,o._LoginResponse.oneofGroups_[0],e)},o._LoginResponse.prototype.clearError=function(){return this.setError(void 0)},o._LoginResponse.prototype.hasError=function(){return null!=t.Message.getField(this,4)},o._GenerateApiTokenRequest.oneofGroups_=[[1,2]],o._GenerateApiTokenRequest.ExpiryCase={EXPIRY_NOT_SET:0,NEVER:1,EXPIRES:2},o._GenerateApiTokenRequest.prototype.getExpiryCase=function(){return t.Message.computeOneofCase(this,o._GenerateApiTokenRequest.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._GenerateApiTokenRequest.prototype.toObject=function(e){return o._GenerateApiTokenRequest.toObject(e,this)},o._GenerateApiTokenRequest.toObject=function(e,r){var n,i={never:(n=r.getNever())&&o._GenerateApiTokenRequest.Never.toObject(e,n),expires:(n=r.getExpires())&&o._GenerateApiTokenRequest.Expires.toObject(e,n),authToken:t.Message.getFieldWithDefault(r,3,""),permissions:(n=r.getPermissions())&&s.Permissions.toObject(e,n),tokenId:t.Message.getFieldWithDefault(r,5,""),description:t.Message.getFieldWithDefault(r,6,"")};return e&&(i.$jspbMessageInstance=r),i}),o._GenerateApiTokenRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GenerateApiTokenRequest;return o._GenerateApiTokenRequest.deserializeBinaryFromReader(s,r)},o._GenerateApiTokenRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._GenerateApiTokenRequest.Never;t.readMessage(r,o._GenerateApiTokenRequest.Never.deserializeBinaryFromReader),e.setNever(r);break;case 2:r=new o._GenerateApiTokenRequest.Expires,t.readMessage(r,o._GenerateApiTokenRequest.Expires.deserializeBinaryFromReader),e.setExpires(r);break;case 3:r=t.readString(),e.setAuthToken(r);break;case 4:r=new s.Permissions,t.readMessage(r,s.Permissions.deserializeBinaryFromReader),e.setPermissions(r);break;case 5:r=t.readString(),e.setTokenId(r);break;case 6:r=t.readString(),e.setDescription(r);break;default:t.skipField()}return e},o._GenerateApiTokenRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GenerateApiTokenRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GenerateApiTokenRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getNever())&&t.writeMessage(1,r,o._GenerateApiTokenRequest.Never.serializeBinaryToWriter),null!=(r=e.getExpires())&&t.writeMessage(2,r,o._GenerateApiTokenRequest.Expires.serializeBinaryToWriter),(r=e.getAuthToken()).length>0&&t.writeString(3,r),null!=(r=e.getPermissions())&&t.writeMessage(4,r,s.Permissions.serializeBinaryToWriter),(r=e.getTokenId()).length>0&&t.writeString(5,r),(r=e.getDescription()).length>0&&t.writeString(6,r)},t.Message.GENERATE_TO_OBJECT&&(o._GenerateApiTokenRequest.Never.prototype.toObject=function(e){return o._GenerateApiTokenRequest.Never.toObject(e,this)},o._GenerateApiTokenRequest.Never.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._GenerateApiTokenRequest.Never.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GenerateApiTokenRequest.Never;return o._GenerateApiTokenRequest.Never.deserializeBinaryFromReader(s,r)},o._GenerateApiTokenRequest.Never.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._GenerateApiTokenRequest.Never.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GenerateApiTokenRequest.Never.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GenerateApiTokenRequest.Never.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._GenerateApiTokenRequest.Expires.prototype.toObject=function(e){return o._GenerateApiTokenRequest.Expires.toObject(e,this)},o._GenerateApiTokenRequest.Expires.toObject=function(e,r){var o={validForSeconds:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._GenerateApiTokenRequest.Expires.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GenerateApiTokenRequest.Expires;return o._GenerateApiTokenRequest.Expires.deserializeBinaryFromReader(s,r)},o._GenerateApiTokenRequest.Expires.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setValidForSeconds(r)}else t.skipField();return e},o._GenerateApiTokenRequest.Expires.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GenerateApiTokenRequest.Expires.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GenerateApiTokenRequest.Expires.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValidForSeconds())&&t.writeUint32(1,r)},o._GenerateApiTokenRequest.Expires.prototype.getValidForSeconds=function(){return t.Message.getFieldWithDefault(this,1,0)},o._GenerateApiTokenRequest.Expires.prototype.setValidForSeconds=function(e){return t.Message.setProto3IntField(this,1,e)},o._GenerateApiTokenRequest.prototype.getNever=function(){return t.Message.getWrapperField(this,o._GenerateApiTokenRequest.Never,1)},o._GenerateApiTokenRequest.prototype.setNever=function(e){return t.Message.setOneofWrapperField(this,1,o._GenerateApiTokenRequest.oneofGroups_[0],e)},o._GenerateApiTokenRequest.prototype.clearNever=function(){return this.setNever(void 0)},o._GenerateApiTokenRequest.prototype.hasNever=function(){return null!=t.Message.getField(this,1)},o._GenerateApiTokenRequest.prototype.getExpires=function(){return t.Message.getWrapperField(this,o._GenerateApiTokenRequest.Expires,2)},o._GenerateApiTokenRequest.prototype.setExpires=function(e){return t.Message.setOneofWrapperField(this,2,o._GenerateApiTokenRequest.oneofGroups_[0],e)},o._GenerateApiTokenRequest.prototype.clearExpires=function(){return this.setExpires(void 0)},o._GenerateApiTokenRequest.prototype.hasExpires=function(){return null!=t.Message.getField(this,2)},o._GenerateApiTokenRequest.prototype.getAuthToken=function(){return t.Message.getFieldWithDefault(this,3,"")},o._GenerateApiTokenRequest.prototype.setAuthToken=function(e){return t.Message.setProto3StringField(this,3,e)},o._GenerateApiTokenRequest.prototype.getPermissions=function(){return t.Message.getWrapperField(this,s.Permissions,4)},o._GenerateApiTokenRequest.prototype.setPermissions=function(e){return t.Message.setWrapperField(this,4,e)},o._GenerateApiTokenRequest.prototype.clearPermissions=function(){return this.setPermissions(void 0)},o._GenerateApiTokenRequest.prototype.hasPermissions=function(){return null!=t.Message.getField(this,4)},o._GenerateApiTokenRequest.prototype.getTokenId=function(){return t.Message.getFieldWithDefault(this,5,"")},o._GenerateApiTokenRequest.prototype.setTokenId=function(e){return t.Message.setProto3StringField(this,5,e)},o._GenerateApiTokenRequest.prototype.getDescription=function(){return t.Message.getFieldWithDefault(this,6,"")},o._GenerateApiTokenRequest.prototype.setDescription=function(e){return t.Message.setProto3StringField(this,6,e)},t.Message.GENERATE_TO_OBJECT&&(o._GenerateApiTokenResponse.prototype.toObject=function(e){return o._GenerateApiTokenResponse.toObject(e,this)},o._GenerateApiTokenResponse.toObject=function(e,r){var o={apiKey:t.Message.getFieldWithDefault(r,1,""),refreshToken:t.Message.getFieldWithDefault(r,2,""),endpoint:t.Message.getFieldWithDefault(r,3,""),validUntil:t.Message.getFieldWithDefault(r,4,0)};return e&&(o.$jspbMessageInstance=r),o}),o._GenerateApiTokenResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GenerateApiTokenResponse;return o._GenerateApiTokenResponse.deserializeBinaryFromReader(s,r)},o._GenerateApiTokenResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setApiKey(r);break;case 2:r=t.readString(),e.setRefreshToken(r);break;case 3:r=t.readString(),e.setEndpoint(r);break;case 4:r=t.readUint64(),e.setValidUntil(r);break;default:t.skipField()}return e},o._GenerateApiTokenResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GenerateApiTokenResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GenerateApiTokenResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getApiKey()).length>0&&t.writeString(1,r),(r=e.getRefreshToken()).length>0&&t.writeString(2,r),(r=e.getEndpoint()).length>0&&t.writeString(3,r),0!==(r=e.getValidUntil())&&t.writeUint64(4,r)},o._GenerateApiTokenResponse.prototype.getApiKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GenerateApiTokenResponse.prototype.setApiKey=function(e){return t.Message.setProto3StringField(this,1,e)},o._GenerateApiTokenResponse.prototype.getRefreshToken=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GenerateApiTokenResponse.prototype.setRefreshToken=function(e){return t.Message.setProto3StringField(this,2,e)},o._GenerateApiTokenResponse.prototype.getEndpoint=function(){return t.Message.getFieldWithDefault(this,3,"")},o._GenerateApiTokenResponse.prototype.setEndpoint=function(e){return t.Message.setProto3StringField(this,3,e)},o._GenerateApiTokenResponse.prototype.getValidUntil=function(){return t.Message.getFieldWithDefault(this,4,0)},o._GenerateApiTokenResponse.prototype.setValidUntil=function(e){return t.Message.setProto3IntField(this,4,e)},t.Message.GENERATE_TO_OBJECT&&(o._RefreshApiTokenRequest.prototype.toObject=function(e){return o._RefreshApiTokenRequest.toObject(e,this)},o._RefreshApiTokenRequest.toObject=function(e,r){var o={apiKey:t.Message.getFieldWithDefault(r,1,""),refreshToken:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o._RefreshApiTokenRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RefreshApiTokenRequest;return o._RefreshApiTokenRequest.deserializeBinaryFromReader(s,r)},o._RefreshApiTokenRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setApiKey(r);break;case 2:r=t.readString(),e.setRefreshToken(r);break;default:t.skipField()}return e},o._RefreshApiTokenRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RefreshApiTokenRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RefreshApiTokenRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getApiKey()).length>0&&t.writeString(1,r),(r=e.getRefreshToken()).length>0&&t.writeString(2,r)},o._RefreshApiTokenRequest.prototype.getApiKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._RefreshApiTokenRequest.prototype.setApiKey=function(e){return t.Message.setProto3StringField(this,1,e)},o._RefreshApiTokenRequest.prototype.getRefreshToken=function(){return t.Message.getFieldWithDefault(this,2,"")},o._RefreshApiTokenRequest.prototype.setRefreshToken=function(e){return t.Message.setProto3StringField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._RefreshApiTokenResponse.prototype.toObject=function(e){return o._RefreshApiTokenResponse.toObject(e,this)},o._RefreshApiTokenResponse.toObject=function(e,r){var o={apiKey:t.Message.getFieldWithDefault(r,1,""),refreshToken:t.Message.getFieldWithDefault(r,2,""),endpoint:t.Message.getFieldWithDefault(r,3,""),validUntil:t.Message.getFieldWithDefault(r,4,0)};return e&&(o.$jspbMessageInstance=r),o}),o._RefreshApiTokenResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RefreshApiTokenResponse;return o._RefreshApiTokenResponse.deserializeBinaryFromReader(s,r)},o._RefreshApiTokenResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setApiKey(r);break;case 2:r=t.readString(),e.setRefreshToken(r);break;case 3:r=t.readString(),e.setEndpoint(r);break;case 4:r=t.readUint64(),e.setValidUntil(r);break;default:t.skipField()}return e},o._RefreshApiTokenResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RefreshApiTokenResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RefreshApiTokenResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getApiKey()).length>0&&t.writeString(1,r),(r=e.getRefreshToken()).length>0&&t.writeString(2,r),(r=e.getEndpoint()).length>0&&t.writeString(3,r),0!==(r=e.getValidUntil())&&t.writeUint64(4,r)},o._RefreshApiTokenResponse.prototype.getApiKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._RefreshApiTokenResponse.prototype.setApiKey=function(e){return t.Message.setProto3StringField(this,1,e)},o._RefreshApiTokenResponse.prototype.getRefreshToken=function(){return t.Message.getFieldWithDefault(this,2,"")},o._RefreshApiTokenResponse.prototype.setRefreshToken=function(e){return t.Message.setProto3StringField(this,2,e)},o._RefreshApiTokenResponse.prototype.getEndpoint=function(){return t.Message.getFieldWithDefault(this,3,"")},o._RefreshApiTokenResponse.prototype.setEndpoint=function(e){return t.Message.setProto3StringField(this,3,e)},o._RefreshApiTokenResponse.prototype.getValidUntil=function(){return t.Message.getFieldWithDefault(this,4,0)},o._RefreshApiTokenResponse.prototype.setValidUntil=function(e){return t.Message.setProto3IntField(this,4,e)},r.object.extend(e,o)),auth_pb;var e,t,r,o,s}function requireAuthServiceClientPb(){if(hasRequiredAuthServiceClientPb)return AuthServiceClientPb;hasRequiredAuthServiceClientPb=1;var e=AuthServiceClientPb&&AuthServiceClientPb.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=AuthServiceClientPb&&AuthServiceClientPb.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=AuthServiceClientPb&&AuthServiceClientPb.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};Object.defineProperty(AuthServiceClientPb,"__esModule",{value:!0}),AuthServiceClientPb.AuthClient=void 0;const o=r(requireGrpcWeb()),s=r(requireAuth_pb());return AuthServiceClientPb.AuthClient=class{constructor(e,t,r){this.methodDescriptorLogin=new o.MethodDescriptor("/auth.Auth/Login",o.MethodType.SERVER_STREAMING,s._LoginRequest,s._LoginResponse,(e=>e.serializeBinary()),s._LoginResponse.deserializeBinary),this.methodDescriptorGenerateApiToken=new o.MethodDescriptor("/auth.Auth/GenerateApiToken",o.MethodType.UNARY,s._GenerateApiTokenRequest,s._GenerateApiTokenResponse,(e=>e.serializeBinary()),s._GenerateApiTokenResponse.deserializeBinary),this.methodDescriptorRefreshApiToken=new o.MethodDescriptor("/auth.Auth/RefreshApiToken",o.MethodType.UNARY,s._RefreshApiTokenRequest,s._RefreshApiTokenResponse,(e=>e.serializeBinary()),s._RefreshApiTokenResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}login(e,t){return this.client_.serverStreaming(this.hostname_+"/auth.Auth/Login",e,t||{},this.methodDescriptorLogin)}generateApiToken(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/auth.Auth/GenerateApiToken",e,t||{},this.methodDescriptorGenerateApiToken,r):this.client_.unaryCall(this.hostname_+"/auth.Auth/GenerateApiToken",e,t||{},this.methodDescriptorGenerateApiToken)}refreshApiToken(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/auth.Auth/RefreshApiToken",e,t||{},this.methodDescriptorRefreshApiToken,r):this.client_.unaryCall(this.hostname_+"/auth.Auth/RefreshApiToken",e,t||{},this.methodDescriptorRefreshApiToken)}},AuthServiceClientPb}var TokenServiceClientPb={},token_pb={},hasRequiredToken_pb,hasRequiredTokenServiceClientPb;function requireToken_pb(){return hasRequiredToken_pb||(hasRequiredToken_pb=1,e=token_pb,t=requireGoogleProtobuf(),r=t,o={},s=requirePermissionmessages_pb(),r.object.extend(o,s),r.exportSymbol("_GenerateDisposableTokenRequest",null,o),r.exportSymbol("_GenerateDisposableTokenRequest.Expires",null,o),r.exportSymbol("_GenerateDisposableTokenResponse",null,o),o._GenerateDisposableTokenRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GenerateDisposableTokenRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GenerateDisposableTokenRequest.displayName="proto._GenerateDisposableTokenRequest"),o._GenerateDisposableTokenRequest.Expires=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GenerateDisposableTokenRequest.Expires,t.Message),r.DEBUG&&!COMPILED&&(o._GenerateDisposableTokenRequest.Expires.displayName="proto._GenerateDisposableTokenRequest.Expires"),o._GenerateDisposableTokenResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GenerateDisposableTokenResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GenerateDisposableTokenResponse.displayName="proto._GenerateDisposableTokenResponse"),t.Message.GENERATE_TO_OBJECT&&(o._GenerateDisposableTokenRequest.prototype.toObject=function(e){return o._GenerateDisposableTokenRequest.toObject(e,this)},o._GenerateDisposableTokenRequest.toObject=function(e,r){var n,i={expires:(n=r.getExpires())&&o._GenerateDisposableTokenRequest.Expires.toObject(e,n),authToken:t.Message.getFieldWithDefault(r,2,""),permissions:(n=r.getPermissions())&&s.Permissions.toObject(e,n),tokenId:t.Message.getFieldWithDefault(r,4,"")};return e&&(i.$jspbMessageInstance=r),i}),o._GenerateDisposableTokenRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GenerateDisposableTokenRequest;return o._GenerateDisposableTokenRequest.deserializeBinaryFromReader(s,r)},o._GenerateDisposableTokenRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._GenerateDisposableTokenRequest.Expires;t.readMessage(r,o._GenerateDisposableTokenRequest.Expires.deserializeBinaryFromReader),e.setExpires(r);break;case 2:r=t.readString(),e.setAuthToken(r);break;case 3:r=new s.Permissions,t.readMessage(r,s.Permissions.deserializeBinaryFromReader),e.setPermissions(r);break;case 4:r=t.readString(),e.setTokenId(r);break;default:t.skipField()}return e},o._GenerateDisposableTokenRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GenerateDisposableTokenRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GenerateDisposableTokenRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getExpires())&&t.writeMessage(1,r,o._GenerateDisposableTokenRequest.Expires.serializeBinaryToWriter),(r=e.getAuthToken()).length>0&&t.writeString(2,r),null!=(r=e.getPermissions())&&t.writeMessage(3,r,s.Permissions.serializeBinaryToWriter),(r=e.getTokenId()).length>0&&t.writeString(4,r)},t.Message.GENERATE_TO_OBJECT&&(o._GenerateDisposableTokenRequest.Expires.prototype.toObject=function(e){return o._GenerateDisposableTokenRequest.Expires.toObject(e,this)},o._GenerateDisposableTokenRequest.Expires.toObject=function(e,r){var o={validForSeconds:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._GenerateDisposableTokenRequest.Expires.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GenerateDisposableTokenRequest.Expires;return o._GenerateDisposableTokenRequest.Expires.deserializeBinaryFromReader(s,r)},o._GenerateDisposableTokenRequest.Expires.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setValidForSeconds(r)}else t.skipField();return e},o._GenerateDisposableTokenRequest.Expires.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GenerateDisposableTokenRequest.Expires.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GenerateDisposableTokenRequest.Expires.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValidForSeconds())&&t.writeUint32(1,r)},o._GenerateDisposableTokenRequest.Expires.prototype.getValidForSeconds=function(){return t.Message.getFieldWithDefault(this,1,0)},o._GenerateDisposableTokenRequest.Expires.prototype.setValidForSeconds=function(e){return t.Message.setProto3IntField(this,1,e)},o._GenerateDisposableTokenRequest.prototype.getExpires=function(){return t.Message.getWrapperField(this,o._GenerateDisposableTokenRequest.Expires,1)},o._GenerateDisposableTokenRequest.prototype.setExpires=function(e){return t.Message.setWrapperField(this,1,e)},o._GenerateDisposableTokenRequest.prototype.clearExpires=function(){return this.setExpires(void 0)},o._GenerateDisposableTokenRequest.prototype.hasExpires=function(){return null!=t.Message.getField(this,1)},o._GenerateDisposableTokenRequest.prototype.getAuthToken=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GenerateDisposableTokenRequest.prototype.setAuthToken=function(e){return t.Message.setProto3StringField(this,2,e)},o._GenerateDisposableTokenRequest.prototype.getPermissions=function(){return t.Message.getWrapperField(this,s.Permissions,3)},o._GenerateDisposableTokenRequest.prototype.setPermissions=function(e){return t.Message.setWrapperField(this,3,e)},o._GenerateDisposableTokenRequest.prototype.clearPermissions=function(){return this.setPermissions(void 0)},o._GenerateDisposableTokenRequest.prototype.hasPermissions=function(){return null!=t.Message.getField(this,3)},o._GenerateDisposableTokenRequest.prototype.getTokenId=function(){return t.Message.getFieldWithDefault(this,4,"")},o._GenerateDisposableTokenRequest.prototype.setTokenId=function(e){return t.Message.setProto3StringField(this,4,e)},t.Message.GENERATE_TO_OBJECT&&(o._GenerateDisposableTokenResponse.prototype.toObject=function(e){return o._GenerateDisposableTokenResponse.toObject(e,this)},o._GenerateDisposableTokenResponse.toObject=function(e,r){var o={apiKey:t.Message.getFieldWithDefault(r,1,""),endpoint:t.Message.getFieldWithDefault(r,2,""),validUntil:t.Message.getFieldWithDefault(r,3,0)};return e&&(o.$jspbMessageInstance=r),o}),o._GenerateDisposableTokenResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GenerateDisposableTokenResponse;return o._GenerateDisposableTokenResponse.deserializeBinaryFromReader(s,r)},o._GenerateDisposableTokenResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setApiKey(r);break;case 2:r=t.readString(),e.setEndpoint(r);break;case 3:r=t.readUint64(),e.setValidUntil(r);break;default:t.skipField()}return e},o._GenerateDisposableTokenResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GenerateDisposableTokenResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GenerateDisposableTokenResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getApiKey()).length>0&&t.writeString(1,r),(r=e.getEndpoint()).length>0&&t.writeString(2,r),0!==(r=e.getValidUntil())&&t.writeUint64(3,r)},o._GenerateDisposableTokenResponse.prototype.getApiKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GenerateDisposableTokenResponse.prototype.setApiKey=function(e){return t.Message.setProto3StringField(this,1,e)},o._GenerateDisposableTokenResponse.prototype.getEndpoint=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GenerateDisposableTokenResponse.prototype.setEndpoint=function(e){return t.Message.setProto3StringField(this,2,e)},o._GenerateDisposableTokenResponse.prototype.getValidUntil=function(){return t.Message.getFieldWithDefault(this,3,0)},o._GenerateDisposableTokenResponse.prototype.setValidUntil=function(e){return t.Message.setProto3IntField(this,3,e)},r.object.extend(e,o)),token_pb;var e,t,r,o,s}function requireTokenServiceClientPb(){if(hasRequiredTokenServiceClientPb)return TokenServiceClientPb;hasRequiredTokenServiceClientPb=1;var e=TokenServiceClientPb&&TokenServiceClientPb.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=TokenServiceClientPb&&TokenServiceClientPb.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=TokenServiceClientPb&&TokenServiceClientPb.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};Object.defineProperty(TokenServiceClientPb,"__esModule",{value:!0}),TokenServiceClientPb.TokenClient=void 0;const o=r(requireGrpcWeb()),s=r(requireToken_pb());return TokenServiceClientPb.TokenClient=class{constructor(e,t,r){this.methodDescriptorGenerateDisposableToken=new o.MethodDescriptor("/token.Token/GenerateDisposableToken",o.MethodType.UNARY,s._GenerateDisposableTokenRequest,s._GenerateDisposableTokenResponse,(e=>e.serializeBinary()),s._GenerateDisposableTokenResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}generateDisposableToken(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/token.Token/GenerateDisposableToken",e,t||{},this.methodDescriptorGenerateDisposableToken,r):this.client_.unaryCall(this.hostname_+"/token.Token/GenerateDisposableToken",e,t||{},this.methodDescriptorGenerateDisposableToken)}},TokenServiceClientPb}var CachepingServiceClientPb={},cacheping_pb={},hasRequiredCacheping_pb,hasRequiredCachepingServiceClientPb;function requireCacheping_pb(){return hasRequiredCacheping_pb||(hasRequiredCacheping_pb=1,e=cacheping_pb,t=requireGoogleProtobuf(),o={},(r=t).exportSymbol("_PingRequest",null,o),r.exportSymbol("_PingResponse",null,o),o._PingRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._PingRequest,t.Message),r.DEBUG&&!COMPILED&&(o._PingRequest.displayName="proto._PingRequest"),o._PingResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._PingResponse,t.Message),r.DEBUG&&!COMPILED&&(o._PingResponse.displayName="proto._PingResponse"),t.Message.GENERATE_TO_OBJECT&&(o._PingRequest.prototype.toObject=function(e){return o._PingRequest.toObject(e,this)},o._PingRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._PingRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._PingRequest;return o._PingRequest.deserializeBinaryFromReader(s,r)},o._PingRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._PingRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._PingRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._PingRequest.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._PingResponse.prototype.toObject=function(e){return o._PingResponse.toObject(e,this)},o._PingResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._PingResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._PingResponse;return o._PingResponse.deserializeBinaryFromReader(s,r)},o._PingResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._PingResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._PingResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._PingResponse.serializeBinaryToWriter=function(e,t){},r.object.extend(e,o)),cacheping_pb;var e,t,r,o}function requireCachepingServiceClientPb(){if(hasRequiredCachepingServiceClientPb)return CachepingServiceClientPb;hasRequiredCachepingServiceClientPb=1;var e=CachepingServiceClientPb&&CachepingServiceClientPb.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=CachepingServiceClientPb&&CachepingServiceClientPb.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=CachepingServiceClientPb&&CachepingServiceClientPb.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};Object.defineProperty(CachepingServiceClientPb,"__esModule",{value:!0}),CachepingServiceClientPb.PingClient=void 0;const o=r(requireGrpcWeb()),s=r(requireCacheping_pb());return CachepingServiceClientPb.PingClient=class{constructor(e,t,r){this.methodDescriptorPing=new o.MethodDescriptor("/cache_client.Ping/Ping",o.MethodType.UNARY,s._PingRequest,s._PingResponse,(e=>e.serializeBinary()),s._PingResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}ping(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Ping/Ping",e,t||{},this.methodDescriptorPing,r):this.client_.unaryCall(this.hostname_+"/cache_client.Ping/Ping",e,t||{},this.methodDescriptorPing)}},CachepingServiceClientPb}var LeaderboardServiceClientPb={},leaderboard_pb={},hasRequiredLeaderboard_pb,hasRequiredLeaderboardServiceClientPb;function requireLeaderboard_pb(){return hasRequiredLeaderboard_pb||(hasRequiredLeaderboard_pb=1,e=leaderboard_pb,t=requireGoogleProtobuf(),r=t,o={},s=requireCommon_pb(),r.object.extend(o,s),r.exportSymbol("_DeleteLeaderboardRequest",null,o),r.exportSymbol("_Element",null,o),r.exportSymbol("_GetByRankRequest",null,o),r.exportSymbol("_GetByRankResponse",null,o),r.exportSymbol("_GetByScoreRequest",null,o),r.exportSymbol("_GetByScoreResponse",null,o),r.exportSymbol("_GetCompetitionRankRequest",null,o),r.exportSymbol("_GetCompetitionRankResponse",null,o),r.exportSymbol("_GetLeaderboardLengthRequest",null,o),r.exportSymbol("_GetLeaderboardLengthResponse",null,o),r.exportSymbol("_GetRankRequest",null,o),r.exportSymbol("_GetRankResponse",null,o),r.exportSymbol("_Order",null,o),r.exportSymbol("_RankRange",null,o),r.exportSymbol("_RankedElement",null,o),r.exportSymbol("_RemoveElementsRequest",null,o),r.exportSymbol("_ScoreRange",null,o),r.exportSymbol("_ScoreRange.MaxCase",null,o),r.exportSymbol("_ScoreRange.MinCase",null,o),r.exportSymbol("_UpsertElementsRequest",null,o),o._Element=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Element,t.Message),r.DEBUG&&!COMPILED&&(o._Element.displayName="proto._Element"),o._RankedElement=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RankedElement,t.Message),r.DEBUG&&!COMPILED&&(o._RankedElement.displayName="proto._RankedElement"),o._RankRange=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RankRange,t.Message),r.DEBUG&&!COMPILED&&(o._RankRange.displayName="proto._RankRange"),o._ScoreRange=function(e){t.Message.initialize(this,e,0,-1,null,o._ScoreRange.oneofGroups_)},r.inherits(o._ScoreRange,t.Message),r.DEBUG&&!COMPILED&&(o._ScoreRange.displayName="proto._ScoreRange"),o._DeleteLeaderboardRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DeleteLeaderboardRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DeleteLeaderboardRequest.displayName="proto._DeleteLeaderboardRequest"),o._GetLeaderboardLengthRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetLeaderboardLengthRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetLeaderboardLengthRequest.displayName="proto._GetLeaderboardLengthRequest"),o._GetLeaderboardLengthResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetLeaderboardLengthResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetLeaderboardLengthResponse.displayName="proto._GetLeaderboardLengthResponse"),o._UpsertElementsRequest=function(e){t.Message.initialize(this,e,0,-1,o._UpsertElementsRequest.repeatedFields_,null)},r.inherits(o._UpsertElementsRequest,t.Message),r.DEBUG&&!COMPILED&&(o._UpsertElementsRequest.displayName="proto._UpsertElementsRequest"),o._GetByRankRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetByRankRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetByRankRequest.displayName="proto._GetByRankRequest"),o._GetByRankResponse=function(e){t.Message.initialize(this,e,0,-1,o._GetByRankResponse.repeatedFields_,null)},r.inherits(o._GetByRankResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetByRankResponse.displayName="proto._GetByRankResponse"),o._GetRankRequest=function(e){t.Message.initialize(this,e,0,-1,o._GetRankRequest.repeatedFields_,null)},r.inherits(o._GetRankRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetRankRequest.displayName="proto._GetRankRequest"),o._GetRankResponse=function(e){t.Message.initialize(this,e,0,-1,o._GetRankResponse.repeatedFields_,null)},r.inherits(o._GetRankResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetRankResponse.displayName="proto._GetRankResponse"),o._RemoveElementsRequest=function(e){t.Message.initialize(this,e,0,-1,o._RemoveElementsRequest.repeatedFields_,null)},r.inherits(o._RemoveElementsRequest,t.Message),r.DEBUG&&!COMPILED&&(o._RemoveElementsRequest.displayName="proto._RemoveElementsRequest"),o._GetByScoreRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetByScoreRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetByScoreRequest.displayName="proto._GetByScoreRequest"),o._GetByScoreResponse=function(e){t.Message.initialize(this,e,0,-1,o._GetByScoreResponse.repeatedFields_,null)},r.inherits(o._GetByScoreResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetByScoreResponse.displayName="proto._GetByScoreResponse"),o._GetCompetitionRankRequest=function(e){t.Message.initialize(this,e,0,-1,o._GetCompetitionRankRequest.repeatedFields_,null)},r.inherits(o._GetCompetitionRankRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetCompetitionRankRequest.displayName="proto._GetCompetitionRankRequest"),o._GetCompetitionRankResponse=function(e){t.Message.initialize(this,e,0,-1,o._GetCompetitionRankResponse.repeatedFields_,null)},r.inherits(o._GetCompetitionRankResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetCompetitionRankResponse.displayName="proto._GetCompetitionRankResponse"),t.Message.GENERATE_TO_OBJECT&&(o._Element.prototype.toObject=function(e){return o._Element.toObject(e,this)},o._Element.toObject=function(e,r){var o={id:t.Message.getFieldWithDefault(r,1,0),score:t.Message.getFloatingPointFieldWithDefault(r,3,0)};return e&&(o.$jspbMessageInstance=r),o}),o._Element.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Element;return o._Element.deserializeBinaryFromReader(s,r)},o._Element.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setId(r);break;case 3:r=t.readDouble(),e.setScore(r);break;default:t.skipField()}return e},o._Element.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Element.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Element.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getId())&&t.writeUint32(1,r),0!==(r=e.getScore())&&t.writeDouble(3,r)},o._Element.prototype.getId=function(){return t.Message.getFieldWithDefault(this,1,0)},o._Element.prototype.setId=function(e){return t.Message.setProto3IntField(this,1,e)},o._Element.prototype.getScore=function(){return t.Message.getFloatingPointFieldWithDefault(this,3,0)},o._Element.prototype.setScore=function(e){return t.Message.setProto3FloatField(this,3,e)},t.Message.GENERATE_TO_OBJECT&&(o._RankedElement.prototype.toObject=function(e){return o._RankedElement.toObject(e,this)},o._RankedElement.toObject=function(e,r){var o={id:t.Message.getFieldWithDefault(r,1,0),rank:t.Message.getFieldWithDefault(r,3,0),score:t.Message.getFloatingPointFieldWithDefault(r,4,0)};return e&&(o.$jspbMessageInstance=r),o}),o._RankedElement.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RankedElement;return o._RankedElement.deserializeBinaryFromReader(s,r)},o._RankedElement.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setId(r);break;case 3:r=t.readUint32(),e.setRank(r);break;case 4:r=t.readDouble(),e.setScore(r);break;default:t.skipField()}return e},o._RankedElement.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RankedElement.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RankedElement.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getId())&&t.writeUint32(1,r),0!==(r=e.getRank())&&t.writeUint32(3,r),0!==(r=e.getScore())&&t.writeDouble(4,r)},o._RankedElement.prototype.getId=function(){return t.Message.getFieldWithDefault(this,1,0)},o._RankedElement.prototype.setId=function(e){return t.Message.setProto3IntField(this,1,e)},o._RankedElement.prototype.getRank=function(){return t.Message.getFieldWithDefault(this,3,0)},o._RankedElement.prototype.setRank=function(e){return t.Message.setProto3IntField(this,3,e)},o._RankedElement.prototype.getScore=function(){return t.Message.getFloatingPointFieldWithDefault(this,4,0)},o._RankedElement.prototype.setScore=function(e){return t.Message.setProto3FloatField(this,4,e)},t.Message.GENERATE_TO_OBJECT&&(o._RankRange.prototype.toObject=function(e){return o._RankRange.toObject(e,this)},o._RankRange.toObject=function(e,r){var o={startInclusive:t.Message.getFieldWithDefault(r,1,0),endExclusive:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._RankRange.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RankRange;return o._RankRange.deserializeBinaryFromReader(s,r)},o._RankRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setStartInclusive(r);break;case 2:r=t.readUint32(),e.setEndExclusive(r);break;default:t.skipField()}return e},o._RankRange.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RankRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RankRange.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStartInclusive())&&t.writeUint32(1,r),0!==(r=e.getEndExclusive())&&t.writeUint32(2,r)},o._RankRange.prototype.getStartInclusive=function(){return t.Message.getFieldWithDefault(this,1,0)},o._RankRange.prototype.setStartInclusive=function(e){return t.Message.setProto3IntField(this,1,e)},o._RankRange.prototype.getEndExclusive=function(){return t.Message.getFieldWithDefault(this,2,0)},o._RankRange.prototype.setEndExclusive=function(e){return t.Message.setProto3IntField(this,2,e)},o._ScoreRange.oneofGroups_=[[1,5],[3,6]],o._ScoreRange.MinCase={MIN_NOT_SET:0,UNBOUNDED_MIN:1,MIN_INCLUSIVE:5},o._ScoreRange.prototype.getMinCase=function(){return t.Message.computeOneofCase(this,o._ScoreRange.oneofGroups_[0])},o._ScoreRange.MaxCase={MAX_NOT_SET:0,UNBOUNDED_MAX:3,MAX_EXCLUSIVE:6},o._ScoreRange.prototype.getMaxCase=function(){return t.Message.computeOneofCase(this,o._ScoreRange.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o._ScoreRange.prototype.toObject=function(e){return o._ScoreRange.toObject(e,this)},o._ScoreRange.toObject=function(e,r){var o,n={unboundedMin:(o=r.getUnboundedMin())&&s._Unbounded.toObject(e,o),minInclusive:t.Message.getFloatingPointFieldWithDefault(r,5,0),unboundedMax:(o=r.getUnboundedMax())&&s._Unbounded.toObject(e,o),maxExclusive:t.Message.getFloatingPointFieldWithDefault(r,6,0)};return e&&(n.$jspbMessageInstance=r),n}),o._ScoreRange.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ScoreRange;return o._ScoreRange.deserializeBinaryFromReader(s,r)},o._ScoreRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new s._Unbounded;t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedMin(r);break;case 5:r=t.readDouble(),e.setMinInclusive(r);break;case 3:r=new s._Unbounded,t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedMax(r);break;case 6:r=t.readDouble(),e.setMaxExclusive(r);break;default:t.skipField()}return e},o._ScoreRange.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ScoreRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ScoreRange.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=e.getUnboundedMin())&&r.writeMessage(1,o,s._Unbounded.serializeBinaryToWriter),null!=(o=t.Message.getField(e,5))&&r.writeDouble(5,o),null!=(o=e.getUnboundedMax())&&r.writeMessage(3,o,s._Unbounded.serializeBinaryToWriter),null!=(o=t.Message.getField(e,6))&&r.writeDouble(6,o)},o._ScoreRange.prototype.getUnboundedMin=function(){return t.Message.getWrapperField(this,s._Unbounded,1)},o._ScoreRange.prototype.setUnboundedMin=function(e){return t.Message.setOneofWrapperField(this,1,o._ScoreRange.oneofGroups_[0],e)},o._ScoreRange.prototype.clearUnboundedMin=function(){return this.setUnboundedMin(void 0)},o._ScoreRange.prototype.hasUnboundedMin=function(){return null!=t.Message.getField(this,1)},o._ScoreRange.prototype.getMinInclusive=function(){return t.Message.getFloatingPointFieldWithDefault(this,5,0)},o._ScoreRange.prototype.setMinInclusive=function(e){return t.Message.setOneofField(this,5,o._ScoreRange.oneofGroups_[0],e)},o._ScoreRange.prototype.clearMinInclusive=function(){return t.Message.setOneofField(this,5,o._ScoreRange.oneofGroups_[0],void 0)},o._ScoreRange.prototype.hasMinInclusive=function(){return null!=t.Message.getField(this,5)},o._ScoreRange.prototype.getUnboundedMax=function(){return t.Message.getWrapperField(this,s._Unbounded,3)},o._ScoreRange.prototype.setUnboundedMax=function(e){return t.Message.setOneofWrapperField(this,3,o._ScoreRange.oneofGroups_[1],e)},o._ScoreRange.prototype.clearUnboundedMax=function(){return this.setUnboundedMax(void 0)},o._ScoreRange.prototype.hasUnboundedMax=function(){return null!=t.Message.getField(this,3)},o._ScoreRange.prototype.getMaxExclusive=function(){return t.Message.getFloatingPointFieldWithDefault(this,6,0)},o._ScoreRange.prototype.setMaxExclusive=function(e){return t.Message.setOneofField(this,6,o._ScoreRange.oneofGroups_[1],e)},o._ScoreRange.prototype.clearMaxExclusive=function(){return t.Message.setOneofField(this,6,o._ScoreRange.oneofGroups_[1],void 0)},o._ScoreRange.prototype.hasMaxExclusive=function(){return null!=t.Message.getField(this,6)},t.Message.GENERATE_TO_OBJECT&&(o._DeleteLeaderboardRequest.prototype.toObject=function(e){return o._DeleteLeaderboardRequest.toObject(e,this)},o._DeleteLeaderboardRequest.toObject=function(e,r){var o={leaderboard:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o._DeleteLeaderboardRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DeleteLeaderboardRequest;return o._DeleteLeaderboardRequest.deserializeBinaryFromReader(s,r)},o._DeleteLeaderboardRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(2===t.getFieldNumber()){var r=t.readString();e.setLeaderboard(r)}else t.skipField();return e},o._DeleteLeaderboardRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DeleteLeaderboardRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DeleteLeaderboardRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getLeaderboard()).length>0&&t.writeString(2,r)},o._DeleteLeaderboardRequest.prototype.getLeaderboard=function(){return t.Message.getFieldWithDefault(this,2,"")},o._DeleteLeaderboardRequest.prototype.setLeaderboard=function(e){return t.Message.setProto3StringField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._GetLeaderboardLengthRequest.prototype.toObject=function(e){return o._GetLeaderboardLengthRequest.toObject(e,this)},o._GetLeaderboardLengthRequest.toObject=function(e,r){var o={leaderboard:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o._GetLeaderboardLengthRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetLeaderboardLengthRequest;return o._GetLeaderboardLengthRequest.deserializeBinaryFromReader(s,r)},o._GetLeaderboardLengthRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(2===t.getFieldNumber()){var r=t.readString();e.setLeaderboard(r)}else t.skipField();return e},o._GetLeaderboardLengthRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetLeaderboardLengthRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetLeaderboardLengthRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getLeaderboard()).length>0&&t.writeString(2,r)},o._GetLeaderboardLengthRequest.prototype.getLeaderboard=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GetLeaderboardLengthRequest.prototype.setLeaderboard=function(e){return t.Message.setProto3StringField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._GetLeaderboardLengthResponse.prototype.toObject=function(e){return o._GetLeaderboardLengthResponse.toObject(e,this)},o._GetLeaderboardLengthResponse.toObject=function(e,r){var o={count:t.Message.getFieldWithDefault(r,1,0)};return e&&(o.$jspbMessageInstance=r),o}),o._GetLeaderboardLengthResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetLeaderboardLengthResponse;return o._GetLeaderboardLengthResponse.deserializeBinaryFromReader(s,r)},o._GetLeaderboardLengthResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setCount(r)}else t.skipField();return e},o._GetLeaderboardLengthResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetLeaderboardLengthResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetLeaderboardLengthResponse.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getCount())&&t.writeUint32(1,r)},o._GetLeaderboardLengthResponse.prototype.getCount=function(){return t.Message.getFieldWithDefault(this,1,0)},o._GetLeaderboardLengthResponse.prototype.setCount=function(e){return t.Message.setProto3IntField(this,1,e)},o._UpsertElementsRequest.repeatedFields_=[3],t.Message.GENERATE_TO_OBJECT&&(o._UpsertElementsRequest.prototype.toObject=function(e){return o._UpsertElementsRequest.toObject(e,this)},o._UpsertElementsRequest.toObject=function(e,r){var s={leaderboard:t.Message.getFieldWithDefault(r,2,""),elementsList:t.Message.toObjectList(r.getElementsList(),o._Element.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._UpsertElementsRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._UpsertElementsRequest;return o._UpsertElementsRequest.deserializeBinaryFromReader(s,r)},o._UpsertElementsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:r=new o._Element,t.readMessage(r,o._Element.deserializeBinaryFromReader),e.addElements(r);break;default:t.skipField()}return e},o._UpsertElementsRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._UpsertElementsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._UpsertElementsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(3,r,o._Element.serializeBinaryToWriter)},o._UpsertElementsRequest.prototype.getLeaderboard=function(){return t.Message.getFieldWithDefault(this,2,"")},o._UpsertElementsRequest.prototype.setLeaderboard=function(e){return t.Message.setProto3StringField(this,2,e)},o._UpsertElementsRequest.prototype.getElementsList=function(){return t.Message.getRepeatedWrapperField(this,o._Element,3)},o._UpsertElementsRequest.prototype.setElementsList=function(e){return t.Message.setRepeatedWrapperField(this,3,e)},o._UpsertElementsRequest.prototype.addElements=function(e,r){return t.Message.addToRepeatedWrapperField(this,3,e,o._Element,r)},o._UpsertElementsRequest.prototype.clearElementsList=function(){return this.setElementsList([])},t.Message.GENERATE_TO_OBJECT&&(o._GetByRankRequest.prototype.toObject=function(e){return o._GetByRankRequest.toObject(e,this)},o._GetByRankRequest.toObject=function(e,r){var s,n={leaderboard:t.Message.getFieldWithDefault(r,2,""),rankRange:(s=r.getRankRange())&&o._RankRange.toObject(e,s),order:t.Message.getFieldWithDefault(r,4,0)};return e&&(n.$jspbMessageInstance=r),n}),o._GetByRankRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetByRankRequest;return o._GetByRankRequest.deserializeBinaryFromReader(s,r)},o._GetByRankRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:r=new o._RankRange,t.readMessage(r,o._RankRange.deserializeBinaryFromReader),e.setRankRange(r);break;case 4:r=t.readEnum(),e.setOrder(r);break;default:t.skipField()}return e},o._GetByRankRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetByRankRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetByRankRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),null!=(r=e.getRankRange())&&t.writeMessage(3,r,o._RankRange.serializeBinaryToWriter),0!==(r=e.getOrder())&&t.writeEnum(4,r)},o._GetByRankRequest.prototype.getLeaderboard=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GetByRankRequest.prototype.setLeaderboard=function(e){return t.Message.setProto3StringField(this,2,e)},o._GetByRankRequest.prototype.getRankRange=function(){return t.Message.getWrapperField(this,o._RankRange,3)},o._GetByRankRequest.prototype.setRankRange=function(e){return t.Message.setWrapperField(this,3,e)},o._GetByRankRequest.prototype.clearRankRange=function(){return this.setRankRange(void 0)},o._GetByRankRequest.prototype.hasRankRange=function(){return null!=t.Message.getField(this,3)},o._GetByRankRequest.prototype.getOrder=function(){return t.Message.getFieldWithDefault(this,4,0)},o._GetByRankRequest.prototype.setOrder=function(e){return t.Message.setProto3EnumField(this,4,e)},o._GetByRankResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._GetByRankResponse.prototype.toObject=function(e){return o._GetByRankResponse.toObject(e,this)},o._GetByRankResponse.toObject=function(e,r){var s={elementsList:t.Message.toObjectList(r.getElementsList(),o._RankedElement.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._GetByRankResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetByRankResponse;return o._GetByRankResponse.deserializeBinaryFromReader(s,r)},o._GetByRankResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._RankedElement;t.readMessage(r,o._RankedElement.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},o._GetByRankResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetByRankResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetByRankResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,o._RankedElement.serializeBinaryToWriter)},o._GetByRankResponse.prototype.getElementsList=function(){return t.Message.getRepeatedWrapperField(this,o._RankedElement,1)},o._GetByRankResponse.prototype.setElementsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._GetByRankResponse.prototype.addElements=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._RankedElement,r)},o._GetByRankResponse.prototype.clearElementsList=function(){return this.setElementsList([])},o._GetRankRequest.repeatedFields_=[3],t.Message.GENERATE_TO_OBJECT&&(o._GetRankRequest.prototype.toObject=function(e){return o._GetRankRequest.toObject(e,this)},o._GetRankRequest.toObject=function(e,r){var o,s={leaderboard:t.Message.getFieldWithDefault(r,2,""),idsList:null==(o=t.Message.getRepeatedField(r,3))?void 0:o,order:t.Message.getFieldWithDefault(r,4,0)};return e&&(s.$jspbMessageInstance=r),s}),o._GetRankRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetRankRequest;return o._GetRankRequest.deserializeBinaryFromReader(s,r)},o._GetRankRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:for(var o=t.isDelimited()?t.readPackedUint32():[t.readUint32()],s=0;s<o.length;s++)e.addIds(o[s]);break;case 4:r=t.readEnum(),e.setOrder(r);break;default:t.skipField()}return e},o._GetRankRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetRankRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetRankRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),(r=e.getIdsList()).length>0&&t.writePackedUint32(3,r),0!==(r=e.getOrder())&&t.writeEnum(4,r)},o._GetRankRequest.prototype.getLeaderboard=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GetRankRequest.prototype.setLeaderboard=function(e){return t.Message.setProto3StringField(this,2,e)},o._GetRankRequest.prototype.getIdsList=function(){return t.Message.getRepeatedField(this,3)},o._GetRankRequest.prototype.setIdsList=function(e){return t.Message.setField(this,3,e||[])},o._GetRankRequest.prototype.addIds=function(e,r){return t.Message.addToRepeatedField(this,3,e,r)},o._GetRankRequest.prototype.clearIdsList=function(){return this.setIdsList([])},o._GetRankRequest.prototype.getOrder=function(){return t.Message.getFieldWithDefault(this,4,0)},o._GetRankRequest.prototype.setOrder=function(e){return t.Message.setProto3EnumField(this,4,e)},o._GetRankResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._GetRankResponse.prototype.toObject=function(e){return o._GetRankResponse.toObject(e,this)},o._GetRankResponse.toObject=function(e,r){var s={elementsList:t.Message.toObjectList(r.getElementsList(),o._RankedElement.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._GetRankResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetRankResponse;return o._GetRankResponse.deserializeBinaryFromReader(s,r)},o._GetRankResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._RankedElement;t.readMessage(r,o._RankedElement.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},o._GetRankResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetRankResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetRankResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,o._RankedElement.serializeBinaryToWriter)},o._GetRankResponse.prototype.getElementsList=function(){return t.Message.getRepeatedWrapperField(this,o._RankedElement,1)},o._GetRankResponse.prototype.setElementsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._GetRankResponse.prototype.addElements=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._RankedElement,r)},o._GetRankResponse.prototype.clearElementsList=function(){return this.setElementsList([])},o._RemoveElementsRequest.repeatedFields_=[3],t.Message.GENERATE_TO_OBJECT&&(o._RemoveElementsRequest.prototype.toObject=function(e){return o._RemoveElementsRequest.toObject(e,this)},o._RemoveElementsRequest.toObject=function(e,r){var o,s={leaderboard:t.Message.getFieldWithDefault(r,2,""),idsList:null==(o=t.Message.getRepeatedField(r,3))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),o._RemoveElementsRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RemoveElementsRequest;return o._RemoveElementsRequest.deserializeBinaryFromReader(s,r)},o._RemoveElementsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:for(var o=t.isDelimited()?t.readPackedUint32():[t.readUint32()],s=0;s<o.length;s++)e.addIds(o[s]);break;default:t.skipField()}return e},o._RemoveElementsRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RemoveElementsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RemoveElementsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),(r=e.getIdsList()).length>0&&t.writePackedUint32(3,r)},o._RemoveElementsRequest.prototype.getLeaderboard=function(){return t.Message.getFieldWithDefault(this,2,"")},o._RemoveElementsRequest.prototype.setLeaderboard=function(e){return t.Message.setProto3StringField(this,2,e)},o._RemoveElementsRequest.prototype.getIdsList=function(){return t.Message.getRepeatedField(this,3)},o._RemoveElementsRequest.prototype.setIdsList=function(e){return t.Message.setField(this,3,e||[])},o._RemoveElementsRequest.prototype.addIds=function(e,r){return t.Message.addToRepeatedField(this,3,e,r)},o._RemoveElementsRequest.prototype.clearIdsList=function(){return this.setIdsList([])},t.Message.GENERATE_TO_OBJECT&&(o._GetByScoreRequest.prototype.toObject=function(e){return o._GetByScoreRequest.toObject(e,this)},o._GetByScoreRequest.toObject=function(e,r){var s,n={leaderboard:t.Message.getFieldWithDefault(r,2,""),scoreRange:(s=r.getScoreRange())&&o._ScoreRange.toObject(e,s),offset:t.Message.getFieldWithDefault(r,4,0),limitElements:t.Message.getFieldWithDefault(r,5,0),order:t.Message.getFieldWithDefault(r,6,0)};return e&&(n.$jspbMessageInstance=r),n}),o._GetByScoreRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetByScoreRequest;return o._GetByScoreRequest.deserializeBinaryFromReader(s,r)},o._GetByScoreRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:r=new o._ScoreRange,t.readMessage(r,o._ScoreRange.deserializeBinaryFromReader),e.setScoreRange(r);break;case 4:r=t.readUint32(),e.setOffset(r);break;case 5:r=t.readUint32(),e.setLimitElements(r);break;case 6:r=t.readEnum(),e.setOrder(r);break;default:t.skipField()}return e},o._GetByScoreRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetByScoreRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetByScoreRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),null!=(r=e.getScoreRange())&&t.writeMessage(3,r,o._ScoreRange.serializeBinaryToWriter),0!==(r=e.getOffset())&&t.writeUint32(4,r),0!==(r=e.getLimitElements())&&t.writeUint32(5,r),0!==(r=e.getOrder())&&t.writeEnum(6,r)},o._GetByScoreRequest.prototype.getLeaderboard=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GetByScoreRequest.prototype.setLeaderboard=function(e){return t.Message.setProto3StringField(this,2,e)},o._GetByScoreRequest.prototype.getScoreRange=function(){return t.Message.getWrapperField(this,o._ScoreRange,3)},o._GetByScoreRequest.prototype.setScoreRange=function(e){return t.Message.setWrapperField(this,3,e)},o._GetByScoreRequest.prototype.clearScoreRange=function(){return this.setScoreRange(void 0)},o._GetByScoreRequest.prototype.hasScoreRange=function(){return null!=t.Message.getField(this,3)},o._GetByScoreRequest.prototype.getOffset=function(){return t.Message.getFieldWithDefault(this,4,0)},o._GetByScoreRequest.prototype.setOffset=function(e){return t.Message.setProto3IntField(this,4,e)},o._GetByScoreRequest.prototype.getLimitElements=function(){return t.Message.getFieldWithDefault(this,5,0)},o._GetByScoreRequest.prototype.setLimitElements=function(e){return t.Message.setProto3IntField(this,5,e)},o._GetByScoreRequest.prototype.getOrder=function(){return t.Message.getFieldWithDefault(this,6,0)},o._GetByScoreRequest.prototype.setOrder=function(e){return t.Message.setProto3EnumField(this,6,e)},o._GetByScoreResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._GetByScoreResponse.prototype.toObject=function(e){return o._GetByScoreResponse.toObject(e,this)},o._GetByScoreResponse.toObject=function(e,r){var s={elementsList:t.Message.toObjectList(r.getElementsList(),o._RankedElement.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._GetByScoreResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetByScoreResponse;return o._GetByScoreResponse.deserializeBinaryFromReader(s,r)},o._GetByScoreResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._RankedElement;t.readMessage(r,o._RankedElement.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},o._GetByScoreResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetByScoreResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetByScoreResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,o._RankedElement.serializeBinaryToWriter)},o._GetByScoreResponse.prototype.getElementsList=function(){return t.Message.getRepeatedWrapperField(this,o._RankedElement,1)},o._GetByScoreResponse.prototype.setElementsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._GetByScoreResponse.prototype.addElements=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._RankedElement,r)},o._GetByScoreResponse.prototype.clearElementsList=function(){return this.setElementsList([])},o._GetCompetitionRankRequest.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(o._GetCompetitionRankRequest.prototype.toObject=function(e){return o._GetCompetitionRankRequest.toObject(e,this)},o._GetCompetitionRankRequest.toObject=function(e,r){var o,s={leaderboard:t.Message.getFieldWithDefault(r,1,""),idsList:null==(o=t.Message.getRepeatedField(r,2))?void 0:o,order:t.Message.getFieldWithDefault(r,3,0)};return e&&(s.$jspbMessageInstance=r),s}),o._GetCompetitionRankRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetCompetitionRankRequest;return o._GetCompetitionRankRequest.deserializeBinaryFromReader(s,r)},o._GetCompetitionRankRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setLeaderboard(r);break;case 2:for(var o=t.isDelimited()?t.readPackedUint32():[t.readUint32()],s=0;s<o.length;s++)e.addIds(o[s]);break;case 3:r=t.readEnum(),e.setOrder(r);break;default:t.skipField()}return e},o._GetCompetitionRankRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetCompetitionRankRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetCompetitionRankRequest.serializeBinaryToWriter=function(e,r){var o=void 0;(o=e.getLeaderboard()).length>0&&r.writeString(1,o),(o=e.getIdsList()).length>0&&r.writePackedUint32(2,o),null!=(o=t.Message.getField(e,3))&&r.writeEnum(3,o)},o._GetCompetitionRankRequest.prototype.getLeaderboard=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GetCompetitionRankRequest.prototype.setLeaderboard=function(e){return t.Message.setProto3StringField(this,1,e)},o._GetCompetitionRankRequest.prototype.getIdsList=function(){return t.Message.getRepeatedField(this,2)},o._GetCompetitionRankRequest.prototype.setIdsList=function(e){return t.Message.setField(this,2,e||[])},o._GetCompetitionRankRequest.prototype.addIds=function(e,r){return t.Message.addToRepeatedField(this,2,e,r)},o._GetCompetitionRankRequest.prototype.clearIdsList=function(){return this.setIdsList([])},o._GetCompetitionRankRequest.prototype.getOrder=function(){return t.Message.getFieldWithDefault(this,3,0)},o._GetCompetitionRankRequest.prototype.setOrder=function(e){return t.Message.setField(this,3,e)},o._GetCompetitionRankRequest.prototype.clearOrder=function(){return t.Message.setField(this,3,void 0)},o._GetCompetitionRankRequest.prototype.hasOrder=function(){return null!=t.Message.getField(this,3)},o._GetCompetitionRankResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._GetCompetitionRankResponse.prototype.toObject=function(e){return o._GetCompetitionRankResponse.toObject(e,this)},o._GetCompetitionRankResponse.toObject=function(e,r){var s={elementsList:t.Message.toObjectList(r.getElementsList(),o._RankedElement.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._GetCompetitionRankResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetCompetitionRankResponse;return o._GetCompetitionRankResponse.deserializeBinaryFromReader(s,r)},o._GetCompetitionRankResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._RankedElement;t.readMessage(r,o._RankedElement.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},o._GetCompetitionRankResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetCompetitionRankResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetCompetitionRankResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,o._RankedElement.serializeBinaryToWriter)},o._GetCompetitionRankResponse.prototype.getElementsList=function(){return t.Message.getRepeatedWrapperField(this,o._RankedElement,1)},o._GetCompetitionRankResponse.prototype.setElementsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._GetCompetitionRankResponse.prototype.addElements=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._RankedElement,r)},o._GetCompetitionRankResponse.prototype.clearElementsList=function(){return this.setElementsList([])},o._Order={ASCENDING:0,DESCENDING:1},r.object.extend(e,o)),leaderboard_pb;var e,t,r,o,s}function requireLeaderboardServiceClientPb(){if(hasRequiredLeaderboardServiceClientPb)return LeaderboardServiceClientPb;hasRequiredLeaderboardServiceClientPb=1;var e=LeaderboardServiceClientPb&&LeaderboardServiceClientPb.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=LeaderboardServiceClientPb&&LeaderboardServiceClientPb.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=LeaderboardServiceClientPb&&LeaderboardServiceClientPb.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};Object.defineProperty(LeaderboardServiceClientPb,"__esModule",{value:!0}),LeaderboardServiceClientPb.LeaderboardClient=void 0;const o=r(requireGrpcWeb()),s=r(requireCommon_pb()),n=r(requireLeaderboard_pb());return LeaderboardServiceClientPb.LeaderboardClient=class{constructor(e,t,r){this.methodDescriptorDeleteLeaderboard=new o.MethodDescriptor("/leaderboard.Leaderboard/DeleteLeaderboard",o.MethodType.UNARY,n._DeleteLeaderboardRequest,s._Empty,(e=>e.serializeBinary()),s._Empty.deserializeBinary),this.methodDescriptorUpsertElements=new o.MethodDescriptor("/leaderboard.Leaderboard/UpsertElements",o.MethodType.UNARY,n._UpsertElementsRequest,s._Empty,(e=>e.serializeBinary()),s._Empty.deserializeBinary),this.methodDescriptorRemoveElements=new o.MethodDescriptor("/leaderboard.Leaderboard/RemoveElements",o.MethodType.UNARY,n._RemoveElementsRequest,s._Empty,(e=>e.serializeBinary()),s._Empty.deserializeBinary),this.methodDescriptorGetLeaderboardLength=new o.MethodDescriptor("/leaderboard.Leaderboard/GetLeaderboardLength",o.MethodType.UNARY,n._GetLeaderboardLengthRequest,n._GetLeaderboardLengthResponse,(e=>e.serializeBinary()),n._GetLeaderboardLengthResponse.deserializeBinary),this.methodDescriptorGetByRank=new o.MethodDescriptor("/leaderboard.Leaderboard/GetByRank",o.MethodType.UNARY,n._GetByRankRequest,n._GetByRankResponse,(e=>e.serializeBinary()),n._GetByRankResponse.deserializeBinary),this.methodDescriptorGetRank=new o.MethodDescriptor("/leaderboard.Leaderboard/GetRank",o.MethodType.UNARY,n._GetRankRequest,n._GetRankResponse,(e=>e.serializeBinary()),n._GetRankResponse.deserializeBinary),this.methodDescriptorGetByScore=new o.MethodDescriptor("/leaderboard.Leaderboard/GetByScore",o.MethodType.UNARY,n._GetByScoreRequest,n._GetByScoreResponse,(e=>e.serializeBinary()),n._GetByScoreResponse.deserializeBinary),this.methodDescriptorGetCompetitionRank=new o.MethodDescriptor("/leaderboard.Leaderboard/GetCompetitionRank",o.MethodType.UNARY,n._GetCompetitionRankRequest,n._GetCompetitionRankResponse,(e=>e.serializeBinary()),n._GetCompetitionRankResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}deleteLeaderboard(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/DeleteLeaderboard",e,t||{},this.methodDescriptorDeleteLeaderboard,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/DeleteLeaderboard",e,t||{},this.methodDescriptorDeleteLeaderboard)}upsertElements(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/UpsertElements",e,t||{},this.methodDescriptorUpsertElements,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/UpsertElements",e,t||{},this.methodDescriptorUpsertElements)}removeElements(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/RemoveElements",e,t||{},this.methodDescriptorRemoveElements,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/RemoveElements",e,t||{},this.methodDescriptorRemoveElements)}getLeaderboardLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetLeaderboardLength",e,t||{},this.methodDescriptorGetLeaderboardLength,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetLeaderboardLength",e,t||{},this.methodDescriptorGetLeaderboardLength)}getByRank(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetByRank",e,t||{},this.methodDescriptorGetByRank,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetByRank",e,t||{},this.methodDescriptorGetByRank)}getRank(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetRank",e,t||{},this.methodDescriptorGetRank,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetRank",e,t||{},this.methodDescriptorGetRank)}getByScore(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetByScore",e,t||{},this.methodDescriptorGetByScore,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetByScore",e,t||{},this.methodDescriptorGetByScore)}getCompetitionRank(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetCompetitionRank",e,t||{},this.methodDescriptorGetCompetitionRank,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetCompetitionRank",e,t||{},this.methodDescriptorGetCompetitionRank)}},LeaderboardServiceClientPb}var WebhookServiceClientPb={},webhook_pb={},hasRequiredWebhook_pb,hasRequiredWebhookServiceClientPb;function requireWebhook_pb(){return hasRequiredWebhook_pb||(hasRequiredWebhook_pb=1,e=webhook_pb,t=requireGoogleProtobuf(),o={},(r=t).exportSymbol("_DeleteWebhookRequest",null,o),r.exportSymbol("_DeleteWebhookResponse",null,o),r.exportSymbol("_GetWebhookSecretRequest",null,o),r.exportSymbol("_GetWebhookSecretResponse",null,o),r.exportSymbol("_ListWebhookRequest",null,o),r.exportSymbol("_ListWebhooksResponse",null,o),r.exportSymbol("_PutWebhookRequest",null,o),r.exportSymbol("_PutWebhookResponse",null,o),r.exportSymbol("_RotateWebhookSecretRequest",null,o),r.exportSymbol("_RotateWebhookSecretResponse",null,o),r.exportSymbol("_Webhook",null,o),r.exportSymbol("_WebhookDestination",null,o),r.exportSymbol("_WebhookDestination.KindCase",null,o),r.exportSymbol("_WebhookId",null,o),o._WebhookId=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._WebhookId,t.Message),r.DEBUG&&!COMPILED&&(o._WebhookId.displayName="proto._WebhookId"),o._Webhook=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Webhook,t.Message),r.DEBUG&&!COMPILED&&(o._Webhook.displayName="proto._Webhook"),o._PutWebhookRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._PutWebhookRequest,t.Message),r.DEBUG&&!COMPILED&&(o._PutWebhookRequest.displayName="proto._PutWebhookRequest"),o._PutWebhookResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._PutWebhookResponse,t.Message),r.DEBUG&&!COMPILED&&(o._PutWebhookResponse.displayName="proto._PutWebhookResponse"),o._DeleteWebhookRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DeleteWebhookRequest,t.Message),r.DEBUG&&!COMPILED&&(o._DeleteWebhookRequest.displayName="proto._DeleteWebhookRequest"),o._DeleteWebhookResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._DeleteWebhookResponse,t.Message),r.DEBUG&&!COMPILED&&(o._DeleteWebhookResponse.displayName="proto._DeleteWebhookResponse"),o._ListWebhookRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListWebhookRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListWebhookRequest.displayName="proto._ListWebhookRequest"),o._ListWebhooksResponse=function(e){t.Message.initialize(this,e,0,-1,o._ListWebhooksResponse.repeatedFields_,null)},r.inherits(o._ListWebhooksResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListWebhooksResponse.displayName="proto._ListWebhooksResponse"),o._GetWebhookSecretRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetWebhookSecretRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetWebhookSecretRequest.displayName="proto._GetWebhookSecretRequest"),o._GetWebhookSecretResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetWebhookSecretResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetWebhookSecretResponse.displayName="proto._GetWebhookSecretResponse"),o._WebhookDestination=function(e){t.Message.initialize(this,e,0,-1,null,o._WebhookDestination.oneofGroups_)},r.inherits(o._WebhookDestination,t.Message),r.DEBUG&&!COMPILED&&(o._WebhookDestination.displayName="proto._WebhookDestination"),o._RotateWebhookSecretRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RotateWebhookSecretRequest,t.Message),r.DEBUG&&!COMPILED&&(o._RotateWebhookSecretRequest.displayName="proto._RotateWebhookSecretRequest"),o._RotateWebhookSecretResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RotateWebhookSecretResponse,t.Message),r.DEBUG&&!COMPILED&&(o._RotateWebhookSecretResponse.displayName="proto._RotateWebhookSecretResponse"),t.Message.GENERATE_TO_OBJECT&&(o._WebhookId.prototype.toObject=function(e){return o._WebhookId.toObject(e,this)},o._WebhookId.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,""),webhookName:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o._WebhookId.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._WebhookId;return o._WebhookId.deserializeBinaryFromReader(s,r)},o._WebhookId.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:r=t.readString(),e.setWebhookName(r);break;default:t.skipField()}return e},o._WebhookId.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._WebhookId.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._WebhookId.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getWebhookName()).length>0&&t.writeString(2,r)},o._WebhookId.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._WebhookId.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},o._WebhookId.prototype.getWebhookName=function(){return t.Message.getFieldWithDefault(this,2,"")},o._WebhookId.prototype.setWebhookName=function(e){return t.Message.setProto3StringField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._Webhook.prototype.toObject=function(e){return o._Webhook.toObject(e,this)},o._Webhook.toObject=function(e,r){var s,n={webhookId:(s=r.getWebhookId())&&o._WebhookId.toObject(e,s),topicName:t.Message.getFieldWithDefault(r,2,""),destination:(s=r.getDestination())&&o._WebhookDestination.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o._Webhook.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Webhook;return o._Webhook.deserializeBinaryFromReader(s,r)},o._Webhook.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._WebhookId;t.readMessage(r,o._WebhookId.deserializeBinaryFromReader),e.setWebhookId(r);break;case 2:r=t.readString(),e.setTopicName(r);break;case 3:r=new o._WebhookDestination,t.readMessage(r,o._WebhookDestination.deserializeBinaryFromReader),e.setDestination(r);break;default:t.skipField()}return e},o._Webhook.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Webhook.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Webhook.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getWebhookId())&&t.writeMessage(1,r,o._WebhookId.serializeBinaryToWriter),(r=e.getTopicName()).length>0&&t.writeString(2,r),null!=(r=e.getDestination())&&t.writeMessage(3,r,o._WebhookDestination.serializeBinaryToWriter)},o._Webhook.prototype.getWebhookId=function(){return t.Message.getWrapperField(this,o._WebhookId,1)},o._Webhook.prototype.setWebhookId=function(e){return t.Message.setWrapperField(this,1,e)},o._Webhook.prototype.clearWebhookId=function(){return this.setWebhookId(void 0)},o._Webhook.prototype.hasWebhookId=function(){return null!=t.Message.getField(this,1)},o._Webhook.prototype.getTopicName=function(){return t.Message.getFieldWithDefault(this,2,"")},o._Webhook.prototype.setTopicName=function(e){return t.Message.setProto3StringField(this,2,e)},o._Webhook.prototype.getDestination=function(){return t.Message.getWrapperField(this,o._WebhookDestination,3)},o._Webhook.prototype.setDestination=function(e){return t.Message.setWrapperField(this,3,e)},o._Webhook.prototype.clearDestination=function(){return this.setDestination(void 0)},o._Webhook.prototype.hasDestination=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(o._PutWebhookRequest.prototype.toObject=function(e){return o._PutWebhookRequest.toObject(e,this)},o._PutWebhookRequest.toObject=function(e,t){var r,s={webhook:(r=t.getWebhook())&&o._Webhook.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._PutWebhookRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._PutWebhookRequest;return o._PutWebhookRequest.deserializeBinaryFromReader(s,r)},o._PutWebhookRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._Webhook;t.readMessage(r,o._Webhook.deserializeBinaryFromReader),e.setWebhook(r)}else t.skipField();return e},o._PutWebhookRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._PutWebhookRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._PutWebhookRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getWebhook())&&t.writeMessage(1,r,o._Webhook.serializeBinaryToWriter)},o._PutWebhookRequest.prototype.getWebhook=function(){return t.Message.getWrapperField(this,o._Webhook,1)},o._PutWebhookRequest.prototype.setWebhook=function(e){return t.Message.setWrapperField(this,1,e)},o._PutWebhookRequest.prototype.clearWebhook=function(){return this.setWebhook(void 0)},o._PutWebhookRequest.prototype.hasWebhook=function(){return null!=t.Message.getField(this,1)},t.Message.GENERATE_TO_OBJECT&&(o._PutWebhookResponse.prototype.toObject=function(e){return o._PutWebhookResponse.toObject(e,this)},o._PutWebhookResponse.toObject=function(e,r){var o={secretString:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._PutWebhookResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._PutWebhookResponse;return o._PutWebhookResponse.deserializeBinaryFromReader(s,r)},o._PutWebhookResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setSecretString(r)}else t.skipField();return e},o._PutWebhookResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._PutWebhookResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._PutWebhookResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getSecretString()).length>0&&t.writeString(1,r)},o._PutWebhookResponse.prototype.getSecretString=function(){return t.Message.getFieldWithDefault(this,1,"")},o._PutWebhookResponse.prototype.setSecretString=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._DeleteWebhookRequest.prototype.toObject=function(e){return o._DeleteWebhookRequest.toObject(e,this)},o._DeleteWebhookRequest.toObject=function(e,t){var r,s={webhookId:(r=t.getWebhookId())&&o._WebhookId.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._DeleteWebhookRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DeleteWebhookRequest;return o._DeleteWebhookRequest.deserializeBinaryFromReader(s,r)},o._DeleteWebhookRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._WebhookId;t.readMessage(r,o._WebhookId.deserializeBinaryFromReader),e.setWebhookId(r)}else t.skipField();return e},o._DeleteWebhookRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DeleteWebhookRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DeleteWebhookRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getWebhookId())&&t.writeMessage(1,r,o._WebhookId.serializeBinaryToWriter)},o._DeleteWebhookRequest.prototype.getWebhookId=function(){return t.Message.getWrapperField(this,o._WebhookId,1)},o._DeleteWebhookRequest.prototype.setWebhookId=function(e){return t.Message.setWrapperField(this,1,e)},o._DeleteWebhookRequest.prototype.clearWebhookId=function(){return this.setWebhookId(void 0)},o._DeleteWebhookRequest.prototype.hasWebhookId=function(){return null!=t.Message.getField(this,1)},t.Message.GENERATE_TO_OBJECT&&(o._DeleteWebhookResponse.prototype.toObject=function(e){return o._DeleteWebhookResponse.toObject(e,this)},o._DeleteWebhookResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._DeleteWebhookResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._DeleteWebhookResponse;return o._DeleteWebhookResponse.deserializeBinaryFromReader(s,r)},o._DeleteWebhookResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._DeleteWebhookResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._DeleteWebhookResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._DeleteWebhookResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._ListWebhookRequest.prototype.toObject=function(e){return o._ListWebhookRequest.toObject(e,this)},o._ListWebhookRequest.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._ListWebhookRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListWebhookRequest;return o._ListWebhookRequest.deserializeBinaryFromReader(s,r)},o._ListWebhookRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},o._ListWebhookRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListWebhookRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListWebhookRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getCacheName()).length>0&&t.writeString(1,r)},o._ListWebhookRequest.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._ListWebhookRequest.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},o._ListWebhooksResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._ListWebhooksResponse.prototype.toObject=function(e){return o._ListWebhooksResponse.toObject(e,this)},o._ListWebhooksResponse.toObject=function(e,r){var s={webhookList:t.Message.toObjectList(r.getWebhookList(),o._Webhook.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._ListWebhooksResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListWebhooksResponse;return o._ListWebhooksResponse.deserializeBinaryFromReader(s,r)},o._ListWebhooksResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._Webhook;t.readMessage(r,o._Webhook.deserializeBinaryFromReader),e.addWebhook(r)}else t.skipField();return e},o._ListWebhooksResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListWebhooksResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListWebhooksResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getWebhookList()).length>0&&t.writeRepeatedMessage(1,r,o._Webhook.serializeBinaryToWriter)},o._ListWebhooksResponse.prototype.getWebhookList=function(){return t.Message.getRepeatedWrapperField(this,o._Webhook,1)},o._ListWebhooksResponse.prototype.setWebhookList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._ListWebhooksResponse.prototype.addWebhook=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._Webhook,r)},o._ListWebhooksResponse.prototype.clearWebhookList=function(){return this.setWebhookList([])},t.Message.GENERATE_TO_OBJECT&&(o._GetWebhookSecretRequest.prototype.toObject=function(e){return o._GetWebhookSecretRequest.toObject(e,this)},o._GetWebhookSecretRequest.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,""),webhookName:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o._GetWebhookSecretRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetWebhookSecretRequest;return o._GetWebhookSecretRequest.deserializeBinaryFromReader(s,r)},o._GetWebhookSecretRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:r=t.readString(),e.setWebhookName(r);break;default:t.skipField()}return e},o._GetWebhookSecretRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetWebhookSecretRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetWebhookSecretRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getWebhookName()).length>0&&t.writeString(2,r)},o._GetWebhookSecretRequest.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GetWebhookSecretRequest.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},o._GetWebhookSecretRequest.prototype.getWebhookName=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GetWebhookSecretRequest.prototype.setWebhookName=function(e){return t.Message.setProto3StringField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._GetWebhookSecretResponse.prototype.toObject=function(e){return o._GetWebhookSecretResponse.toObject(e,this)},o._GetWebhookSecretResponse.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,""),webhookName:t.Message.getFieldWithDefault(r,2,""),secretString:t.Message.getFieldWithDefault(r,3,"")};return e&&(o.$jspbMessageInstance=r),o}),o._GetWebhookSecretResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetWebhookSecretResponse;return o._GetWebhookSecretResponse.deserializeBinaryFromReader(s,r)},o._GetWebhookSecretResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:r=t.readString(),e.setWebhookName(r);break;case 3:r=t.readString(),e.setSecretString(r);break;default:t.skipField()}return e},o._GetWebhookSecretResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetWebhookSecretResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetWebhookSecretResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getWebhookName()).length>0&&t.writeString(2,r),(r=e.getSecretString()).length>0&&t.writeString(3,r)},o._GetWebhookSecretResponse.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GetWebhookSecretResponse.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},o._GetWebhookSecretResponse.prototype.getWebhookName=function(){return t.Message.getFieldWithDefault(this,2,"")},o._GetWebhookSecretResponse.prototype.setWebhookName=function(e){return t.Message.setProto3StringField(this,2,e)},o._GetWebhookSecretResponse.prototype.getSecretString=function(){return t.Message.getFieldWithDefault(this,3,"")},o._GetWebhookSecretResponse.prototype.setSecretString=function(e){return t.Message.setProto3StringField(this,3,e)},o._WebhookDestination.oneofGroups_=[[1]],o._WebhookDestination.KindCase={KIND_NOT_SET:0,POST_URL:1},o._WebhookDestination.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o._WebhookDestination.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._WebhookDestination.prototype.toObject=function(e){return o._WebhookDestination.toObject(e,this)},o._WebhookDestination.toObject=function(e,r){var o={postUrl:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._WebhookDestination.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._WebhookDestination;return o._WebhookDestination.deserializeBinaryFromReader(s,r)},o._WebhookDestination.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setPostUrl(r)}else t.skipField();return e},o._WebhookDestination.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._WebhookDestination.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._WebhookDestination.serializeBinaryToWriter=function(e,r){var o;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o)},o._WebhookDestination.prototype.getPostUrl=function(){return t.Message.getFieldWithDefault(this,1,"")},o._WebhookDestination.prototype.setPostUrl=function(e){return t.Message.setOneofField(this,1,o._WebhookDestination.oneofGroups_[0],e)},o._WebhookDestination.prototype.clearPostUrl=function(){return t.Message.setOneofField(this,1,o._WebhookDestination.oneofGroups_[0],void 0)},o._WebhookDestination.prototype.hasPostUrl=function(){return null!=t.Message.getField(this,1)},t.Message.GENERATE_TO_OBJECT&&(o._RotateWebhookSecretRequest.prototype.toObject=function(e){return o._RotateWebhookSecretRequest.toObject(e,this)},o._RotateWebhookSecretRequest.toObject=function(e,t){var r,s={webhookId:(r=t.getWebhookId())&&o._WebhookId.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._RotateWebhookSecretRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RotateWebhookSecretRequest;return o._RotateWebhookSecretRequest.deserializeBinaryFromReader(s,r)},o._RotateWebhookSecretRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._WebhookId;t.readMessage(r,o._WebhookId.deserializeBinaryFromReader),e.setWebhookId(r)}else t.skipField();return e},o._RotateWebhookSecretRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RotateWebhookSecretRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RotateWebhookSecretRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getWebhookId())&&t.writeMessage(1,r,o._WebhookId.serializeBinaryToWriter)},o._RotateWebhookSecretRequest.prototype.getWebhookId=function(){return t.Message.getWrapperField(this,o._WebhookId,1)},o._RotateWebhookSecretRequest.prototype.setWebhookId=function(e){return t.Message.setWrapperField(this,1,e)},o._RotateWebhookSecretRequest.prototype.clearWebhookId=function(){return this.setWebhookId(void 0)},o._RotateWebhookSecretRequest.prototype.hasWebhookId=function(){return null!=t.Message.getField(this,1)},t.Message.GENERATE_TO_OBJECT&&(o._RotateWebhookSecretResponse.prototype.toObject=function(e){return o._RotateWebhookSecretResponse.toObject(e,this)},o._RotateWebhookSecretResponse.toObject=function(e,r){var o={secretString:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._RotateWebhookSecretResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RotateWebhookSecretResponse;return o._RotateWebhookSecretResponse.deserializeBinaryFromReader(s,r)},o._RotateWebhookSecretResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setSecretString(r)}else t.skipField();return e},o._RotateWebhookSecretResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RotateWebhookSecretResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RotateWebhookSecretResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getSecretString()).length>0&&t.writeString(1,r)},o._RotateWebhookSecretResponse.prototype.getSecretString=function(){return t.Message.getFieldWithDefault(this,1,"")},o._RotateWebhookSecretResponse.prototype.setSecretString=function(e){return t.Message.setProto3StringField(this,1,e)},r.object.extend(e,o)),webhook_pb;var e,t,r,o}function requireWebhookServiceClientPb(){if(hasRequiredWebhookServiceClientPb)return WebhookServiceClientPb;hasRequiredWebhookServiceClientPb=1;var e=WebhookServiceClientPb&&WebhookServiceClientPb.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=WebhookServiceClientPb&&WebhookServiceClientPb.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=WebhookServiceClientPb&&WebhookServiceClientPb.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};Object.defineProperty(WebhookServiceClientPb,"__esModule",{value:!0}),WebhookServiceClientPb.WebhookClient=void 0;const o=r(requireGrpcWeb()),s=r(requireWebhook_pb());return WebhookServiceClientPb.WebhookClient=class{constructor(e,t,r){this.methodDescriptorPutWebhook=new o.MethodDescriptor("/webhook.Webhook/PutWebhook",o.MethodType.UNARY,s._PutWebhookRequest,s._PutWebhookResponse,(e=>e.serializeBinary()),s._PutWebhookResponse.deserializeBinary),this.methodDescriptorDeleteWebhook=new o.MethodDescriptor("/webhook.Webhook/DeleteWebhook",o.MethodType.UNARY,s._DeleteWebhookRequest,s._DeleteWebhookResponse,(e=>e.serializeBinary()),s._DeleteWebhookResponse.deserializeBinary),this.methodDescriptorListWebhooks=new o.MethodDescriptor("/webhook.Webhook/ListWebhooks",o.MethodType.UNARY,s._ListWebhookRequest,s._ListWebhooksResponse,(e=>e.serializeBinary()),s._ListWebhooksResponse.deserializeBinary),this.methodDescriptorGetWebhookSecret=new o.MethodDescriptor("/webhook.Webhook/GetWebhookSecret",o.MethodType.UNARY,s._GetWebhookSecretRequest,s._GetWebhookSecretResponse,(e=>e.serializeBinary()),s._GetWebhookSecretResponse.deserializeBinary),this.methodDescriptorRotateWebhookSecret=new o.MethodDescriptor("/webhook.Webhook/RotateWebhookSecret",o.MethodType.UNARY,s._RotateWebhookSecretRequest,s._RotateWebhookSecretResponse,(e=>e.serializeBinary()),s._RotateWebhookSecretResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}putWebhook(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/PutWebhook",e,t||{},this.methodDescriptorPutWebhook,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/PutWebhook",e,t||{},this.methodDescriptorPutWebhook)}deleteWebhook(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/DeleteWebhook",e,t||{},this.methodDescriptorDeleteWebhook,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/DeleteWebhook",e,t||{},this.methodDescriptorDeleteWebhook)}listWebhooks(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/ListWebhooks",e,t||{},this.methodDescriptorListWebhooks,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/ListWebhooks",e,t||{},this.methodDescriptorListWebhooks)}getWebhookSecret(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/GetWebhookSecret",e,t||{},this.methodDescriptorGetWebhookSecret,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/GetWebhookSecret",e,t||{},this.methodDescriptorGetWebhookSecret)}rotateWebhookSecret(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/RotateWebhookSecret",e,t||{},this.methodDescriptorRotateWebhookSecret,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/RotateWebhookSecret",e,t||{},this.methodDescriptorRotateWebhookSecret)}},WebhookServiceClientPb}var Global_adminServiceClientPb={},global_admin_pb={},permissionrules_pb={},hasRequiredPermissionrules_pb,hasRequiredGlobal_admin_pb,hasRequiredGlobal_adminServiceClientPb,hasRequiredDist;function requirePermissionrules_pb(){return hasRequiredPermissionrules_pb||(hasRequiredPermissionrules_pb=1,e=permissionrules_pb,t=requireGoogleProtobuf(),o={},(r=t).exportSymbol("AccountManagementPermissions",null,o),r.exportSymbol("All",null,o),r.exportSymbol("AuthManagementPermissions",null,o),r.exportSymbol("CacheAPIPermissions",null,o),r.exportSymbol("CacheItemSelector",null,o),r.exportSymbol("CacheItemSelector.KindCase",null,o),r.exportSymbol("CacheSelector",null,o),r.exportSymbol("CacheSelector.KindCase",null,o),r.exportSymbol("ExplicitPermissionSet",null,o),r.exportSymbol("FunctionAPIPermissions",null,o),r.exportSymbol("FunctionSelector",null,o),r.exportSymbol("FunctionSelector.KindCase",null,o),r.exportSymbol("PermissionSet",null,o),r.exportSymbol("PermissionSet.KindCase",null,o),r.exportSymbol("ResourceManagementPermissions",null,o),r.exportSymbol("Rule",null,o),r.exportSymbol("Rule.AccountManagementRule",null,o),r.exportSymbol("Rule.AuthManagementRule",null,o),r.exportSymbol("Rule.AuthManagementRule.AuthItemsCase",null,o),r.exportSymbol("Rule.CacheRule",null,o),r.exportSymbol("Rule.CacheRule.CacheCase",null,o),r.exportSymbol("Rule.CacheRule.CacheItemCase",null,o),r.exportSymbol("Rule.FunctionRule",null,o),r.exportSymbol("Rule.FunctionRule.CacheCase",null,o),r.exportSymbol("Rule.FunctionRule.FunctionCase",null,o),r.exportSymbol("Rule.KindCase",null,o),r.exportSymbol("Rule.ResourceManagementRule",null,o),r.exportSymbol("Rule.ResourceManagementRule.ResourcesCase",null,o),r.exportSymbol("Rule.TopicRule",null,o),r.exportSymbol("Rule.TopicRule.CacheCase",null,o),r.exportSymbol("Rule.TopicRule.TopicCase",null,o),r.exportSymbol("SuperUserSetPermissionSet",null,o),r.exportSymbol("TopicAPIPermissions",null,o),r.exportSymbol("TopicSelector",null,o),r.exportSymbol("TopicSelector.KindCase",null,o),o.All=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.All,t.Message),r.DEBUG&&!COMPILED&&(o.All.displayName="proto.All"),o.CacheSelector=function(e){t.Message.initialize(this,e,0,-1,null,o.CacheSelector.oneofGroups_)},r.inherits(o.CacheSelector,t.Message),r.DEBUG&&!COMPILED&&(o.CacheSelector.displayName="proto.CacheSelector"),o.CacheItemSelector=function(e){t.Message.initialize(this,e,0,-1,null,o.CacheItemSelector.oneofGroups_)},r.inherits(o.CacheItemSelector,t.Message),r.DEBUG&&!COMPILED&&(o.CacheItemSelector.displayName="proto.CacheItemSelector"),o.TopicSelector=function(e){t.Message.initialize(this,e,0,-1,null,o.TopicSelector.oneofGroups_)},r.inherits(o.TopicSelector,t.Message),r.DEBUG&&!COMPILED&&(o.TopicSelector.displayName="proto.TopicSelector"),o.FunctionSelector=function(e){t.Message.initialize(this,e,0,-1,null,o.FunctionSelector.oneofGroups_)},r.inherits(o.FunctionSelector,t.Message),r.DEBUG&&!COMPILED&&(o.FunctionSelector.displayName="proto.FunctionSelector"),o.PermissionSet=function(e){t.Message.initialize(this,e,0,-1,null,o.PermissionSet.oneofGroups_)},r.inherits(o.PermissionSet,t.Message),r.DEBUG&&!COMPILED&&(o.PermissionSet.displayName="proto.PermissionSet"),o.ExplicitPermissionSet=function(e){t.Message.initialize(this,e,0,-1,o.ExplicitPermissionSet.repeatedFields_,null)},r.inherits(o.ExplicitPermissionSet,t.Message),r.DEBUG&&!COMPILED&&(o.ExplicitPermissionSet.displayName="proto.ExplicitPermissionSet"),o.Rule=function(e){t.Message.initialize(this,e,0,-1,null,o.Rule.oneofGroups_)},r.inherits(o.Rule,t.Message),r.DEBUG&&!COMPILED&&(o.Rule.displayName="proto.Rule"),o.Rule.AccountManagementRule=function(e){t.Message.initialize(this,e,0,-1,o.Rule.AccountManagementRule.repeatedFields_,null)},r.inherits(o.Rule.AccountManagementRule,t.Message),r.DEBUG&&!COMPILED&&(o.Rule.AccountManagementRule.displayName="proto.Rule.AccountManagementRule"),o.Rule.AuthManagementRule=function(e){t.Message.initialize(this,e,0,-1,o.Rule.AuthManagementRule.repeatedFields_,o.Rule.AuthManagementRule.oneofGroups_)},r.inherits(o.Rule.AuthManagementRule,t.Message),r.DEBUG&&!COMPILED&&(o.Rule.AuthManagementRule.displayName="proto.Rule.AuthManagementRule"),o.Rule.ResourceManagementRule=function(e){t.Message.initialize(this,e,0,-1,o.Rule.ResourceManagementRule.repeatedFields_,o.Rule.ResourceManagementRule.oneofGroups_)},r.inherits(o.Rule.ResourceManagementRule,t.Message),r.DEBUG&&!COMPILED&&(o.Rule.ResourceManagementRule.displayName="proto.Rule.ResourceManagementRule"),o.Rule.CacheRule=function(e){t.Message.initialize(this,e,0,-1,o.Rule.CacheRule.repeatedFields_,o.Rule.CacheRule.oneofGroups_)},r.inherits(o.Rule.CacheRule,t.Message),r.DEBUG&&!COMPILED&&(o.Rule.CacheRule.displayName="proto.Rule.CacheRule"),o.Rule.TopicRule=function(e){t.Message.initialize(this,e,0,-1,o.Rule.TopicRule.repeatedFields_,o.Rule.TopicRule.oneofGroups_)},r.inherits(o.Rule.TopicRule,t.Message),r.DEBUG&&!COMPILED&&(o.Rule.TopicRule.displayName="proto.Rule.TopicRule"),o.Rule.FunctionRule=function(e){t.Message.initialize(this,e,0,-1,o.Rule.FunctionRule.repeatedFields_,o.Rule.FunctionRule.oneofGroups_)},r.inherits(o.Rule.FunctionRule,t.Message),r.DEBUG&&!COMPILED&&(o.Rule.FunctionRule.displayName="proto.Rule.FunctionRule"),t.Message.GENERATE_TO_OBJECT&&(o.All.prototype.toObject=function(e){return o.All.toObject(e,this)},o.All.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o.All.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.All;return o.All.deserializeBinaryFromReader(s,r)},o.All.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o.All.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.All.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.All.serializeBinaryToWriter=function(e,t){},o.CacheSelector.oneofGroups_=[[1]],o.CacheSelector.KindCase={KIND_NOT_SET:0,CACHE_NAME:1},o.CacheSelector.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.CacheSelector.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.CacheSelector.prototype.toObject=function(e){return o.CacheSelector.toObject(e,this)},o.CacheSelector.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o.CacheSelector.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.CacheSelector;return o.CacheSelector.deserializeBinaryFromReader(s,r)},o.CacheSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},o.CacheSelector.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.CacheSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.CacheSelector.serializeBinaryToWriter=function(e,r){var o;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o)},o.CacheSelector.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o.CacheSelector.prototype.setCacheName=function(e){return t.Message.setOneofField(this,1,o.CacheSelector.oneofGroups_[0],e)},o.CacheSelector.prototype.clearCacheName=function(){return t.Message.setOneofField(this,1,o.CacheSelector.oneofGroups_[0],void 0)},o.CacheSelector.prototype.hasCacheName=function(){return null!=t.Message.getField(this,1)},o.CacheItemSelector.oneofGroups_=[[1,2]],o.CacheItemSelector.KindCase={KIND_NOT_SET:0,KEY:1,KEY_PREFIX:2},o.CacheItemSelector.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.CacheItemSelector.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.CacheItemSelector.prototype.toObject=function(e){return o.CacheItemSelector.toObject(e,this)},o.CacheItemSelector.toObject=function(e,t){var r={key:t.getKey_asB64(),keyPrefix:t.getKeyPrefix_asB64()};return e&&(r.$jspbMessageInstance=t),r}),o.CacheItemSelector.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.CacheItemSelector;return o.CacheItemSelector.deserializeBinaryFromReader(s,r)},o.CacheItemSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setKey(r);break;case 2:r=t.readBytes(),e.setKeyPrefix(r);break;default:t.skipField()}return e},o.CacheItemSelector.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.CacheItemSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.CacheItemSelector.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeBytes(1,o),null!=(o=t.Message.getField(e,2))&&r.writeBytes(2,o)},o.CacheItemSelector.prototype.getKey=function(){return t.Message.getFieldWithDefault(this,1,"")},o.CacheItemSelector.prototype.getKey_asB64=function(){return t.Message.bytesAsB64(this.getKey())},o.CacheItemSelector.prototype.getKey_asU8=function(){return t.Message.bytesAsU8(this.getKey())},o.CacheItemSelector.prototype.setKey=function(e){return t.Message.setOneofField(this,1,o.CacheItemSelector.oneofGroups_[0],e)},o.CacheItemSelector.prototype.clearKey=function(){return t.Message.setOneofField(this,1,o.CacheItemSelector.oneofGroups_[0],void 0)},o.CacheItemSelector.prototype.hasKey=function(){return null!=t.Message.getField(this,1)},o.CacheItemSelector.prototype.getKeyPrefix=function(){return t.Message.getFieldWithDefault(this,2,"")},o.CacheItemSelector.prototype.getKeyPrefix_asB64=function(){return t.Message.bytesAsB64(this.getKeyPrefix())},o.CacheItemSelector.prototype.getKeyPrefix_asU8=function(){return t.Message.bytesAsU8(this.getKeyPrefix())},o.CacheItemSelector.prototype.setKeyPrefix=function(e){return t.Message.setOneofField(this,2,o.CacheItemSelector.oneofGroups_[0],e)},o.CacheItemSelector.prototype.clearKeyPrefix=function(){return t.Message.setOneofField(this,2,o.CacheItemSelector.oneofGroups_[0],void 0)},o.CacheItemSelector.prototype.hasKeyPrefix=function(){return null!=t.Message.getField(this,2)},o.TopicSelector.oneofGroups_=[[1,2]],o.TopicSelector.KindCase={KIND_NOT_SET:0,TOPIC_NAME:1,TOPIC_NAME_PREFIX:2},o.TopicSelector.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.TopicSelector.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.TopicSelector.prototype.toObject=function(e){return o.TopicSelector.toObject(e,this)},o.TopicSelector.toObject=function(e,r){var o={topicName:t.Message.getFieldWithDefault(r,1,""),topicNamePrefix:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o.TopicSelector.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.TopicSelector;return o.TopicSelector.deserializeBinaryFromReader(s,r)},o.TopicSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTopicName(r);break;case 2:r=t.readString(),e.setTopicNamePrefix(r);break;default:t.skipField()}return e},o.TopicSelector.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.TopicSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.TopicSelector.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,2))&&r.writeString(2,o)},o.TopicSelector.prototype.getTopicName=function(){return t.Message.getFieldWithDefault(this,1,"")},o.TopicSelector.prototype.setTopicName=function(e){return t.Message.setOneofField(this,1,o.TopicSelector.oneofGroups_[0],e)},o.TopicSelector.prototype.clearTopicName=function(){return t.Message.setOneofField(this,1,o.TopicSelector.oneofGroups_[0],void 0)},o.TopicSelector.prototype.hasTopicName=function(){return null!=t.Message.getField(this,1)},o.TopicSelector.prototype.getTopicNamePrefix=function(){return t.Message.getFieldWithDefault(this,2,"")},o.TopicSelector.prototype.setTopicNamePrefix=function(e){return t.Message.setOneofField(this,2,o.TopicSelector.oneofGroups_[0],e)},o.TopicSelector.prototype.clearTopicNamePrefix=function(){return t.Message.setOneofField(this,2,o.TopicSelector.oneofGroups_[0],void 0)},o.TopicSelector.prototype.hasTopicNamePrefix=function(){return null!=t.Message.getField(this,2)},o.FunctionSelector.oneofGroups_=[[1,2]],o.FunctionSelector.KindCase={KIND_NOT_SET:0,FUNCTION_NAME:1,FUNCTION_PREFIX:2},o.FunctionSelector.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.FunctionSelector.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.FunctionSelector.prototype.toObject=function(e){return o.FunctionSelector.toObject(e,this)},o.FunctionSelector.toObject=function(e,r){var o={functionName:t.Message.getFieldWithDefault(r,1,""),functionPrefix:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o.FunctionSelector.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.FunctionSelector;return o.FunctionSelector.deserializeBinaryFromReader(s,r)},o.FunctionSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setFunctionName(r);break;case 2:r=t.readString(),e.setFunctionPrefix(r);break;default:t.skipField()}return e},o.FunctionSelector.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.FunctionSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.FunctionSelector.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,2))&&r.writeString(2,o)},o.FunctionSelector.prototype.getFunctionName=function(){return t.Message.getFieldWithDefault(this,1,"")},o.FunctionSelector.prototype.setFunctionName=function(e){return t.Message.setOneofField(this,1,o.FunctionSelector.oneofGroups_[0],e)},o.FunctionSelector.prototype.clearFunctionName=function(){return t.Message.setOneofField(this,1,o.FunctionSelector.oneofGroups_[0],void 0)},o.FunctionSelector.prototype.hasFunctionName=function(){return null!=t.Message.getField(this,1)},o.FunctionSelector.prototype.getFunctionPrefix=function(){return t.Message.getFieldWithDefault(this,2,"")},o.FunctionSelector.prototype.setFunctionPrefix=function(e){return t.Message.setOneofField(this,2,o.FunctionSelector.oneofGroups_[0],e)},o.FunctionSelector.prototype.clearFunctionPrefix=function(){return t.Message.setOneofField(this,2,o.FunctionSelector.oneofGroups_[0],void 0)},o.FunctionSelector.prototype.hasFunctionPrefix=function(){return null!=t.Message.getField(this,2)},o.PermissionSet.oneofGroups_=[[1,2]],o.PermissionSet.KindCase={KIND_NOT_SET:0,SUPER_USER:1,EXPLICIT:2},o.PermissionSet.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.PermissionSet.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.PermissionSet.prototype.toObject=function(e){return o.PermissionSet.toObject(e,this)},o.PermissionSet.toObject=function(e,r){var s,n={superUser:t.Message.getFieldWithDefault(r,1,0),explicit:(s=r.getExplicit())&&o.ExplicitPermissionSet.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.PermissionSet.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.PermissionSet;return o.PermissionSet.deserializeBinaryFromReader(s,r)},o.PermissionSet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setSuperUser(r);break;case 2:r=new o.ExplicitPermissionSet,t.readMessage(r,o.ExplicitPermissionSet.deserializeBinaryFromReader),e.setExplicit(r);break;default:t.skipField()}return e},o.PermissionSet.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.PermissionSet.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.PermissionSet.serializeBinaryToWriter=function(e,r){var s=void 0;null!=(s=t.Message.getField(e,1))&&r.writeEnum(1,s),null!=(s=e.getExplicit())&&r.writeMessage(2,s,o.ExplicitPermissionSet.serializeBinaryToWriter)},o.PermissionSet.prototype.getSuperUser=function(){return t.Message.getFieldWithDefault(this,1,0)},o.PermissionSet.prototype.setSuperUser=function(e){return t.Message.setOneofField(this,1,o.PermissionSet.oneofGroups_[0],e)},o.PermissionSet.prototype.clearSuperUser=function(){return t.Message.setOneofField(this,1,o.PermissionSet.oneofGroups_[0],void 0)},o.PermissionSet.prototype.hasSuperUser=function(){return null!=t.Message.getField(this,1)},o.PermissionSet.prototype.getExplicit=function(){return t.Message.getWrapperField(this,o.ExplicitPermissionSet,2)},o.PermissionSet.prototype.setExplicit=function(e){return t.Message.setOneofWrapperField(this,2,o.PermissionSet.oneofGroups_[0],e)},o.PermissionSet.prototype.clearExplicit=function(){return this.setExplicit(void 0)},o.PermissionSet.prototype.hasExplicit=function(){return null!=t.Message.getField(this,2)},o.ExplicitPermissionSet.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o.ExplicitPermissionSet.prototype.toObject=function(e){return o.ExplicitPermissionSet.toObject(e,this)},o.ExplicitPermissionSet.toObject=function(e,r){var s={rulesList:t.Message.toObjectList(r.getRulesList(),o.Rule.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o.ExplicitPermissionSet.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.ExplicitPermissionSet;return o.ExplicitPermissionSet.deserializeBinaryFromReader(s,r)},o.ExplicitPermissionSet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o.Rule;t.readMessage(r,o.Rule.deserializeBinaryFromReader),e.addRules(r)}else t.skipField();return e},o.ExplicitPermissionSet.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.ExplicitPermissionSet.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.ExplicitPermissionSet.serializeBinaryToWriter=function(e,t){var r;(r=e.getRulesList()).length>0&&t.writeRepeatedMessage(1,r,o.Rule.serializeBinaryToWriter)},o.ExplicitPermissionSet.prototype.getRulesList=function(){return t.Message.getRepeatedWrapperField(this,o.Rule,1)},o.ExplicitPermissionSet.prototype.setRulesList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o.ExplicitPermissionSet.prototype.addRules=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o.Rule,r)},o.ExplicitPermissionSet.prototype.clearRulesList=function(){return this.setRulesList([])},o.Rule.oneofGroups_=[[1,2,3,4,5,7]],o.Rule.KindCase={KIND_NOT_SET:0,ACCOUNT_MANAGEMENT_RULE:1,AUTH_MANAGEMENT_RULE:2,RESOURCE_MANAGEMENT_RULE:3,CACHE_RULE:4,TOPIC_RULE:5,FUNCTION_RULE:7},o.Rule.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o.Rule.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.Rule.prototype.toObject=function(e){return o.Rule.toObject(e,this)},o.Rule.toObject=function(e,t){var r,s={accountManagementRule:(r=t.getAccountManagementRule())&&o.Rule.AccountManagementRule.toObject(e,r),authManagementRule:(r=t.getAuthManagementRule())&&o.Rule.AuthManagementRule.toObject(e,r),resourceManagementRule:(r=t.getResourceManagementRule())&&o.Rule.ResourceManagementRule.toObject(e,r),cacheRule:(r=t.getCacheRule())&&o.Rule.CacheRule.toObject(e,r),topicRule:(r=t.getTopicRule())&&o.Rule.TopicRule.toObject(e,r),functionRule:(r=t.getFunctionRule())&&o.Rule.FunctionRule.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o.Rule.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Rule;return o.Rule.deserializeBinaryFromReader(s,r)},o.Rule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o.Rule.AccountManagementRule;t.readMessage(r,o.Rule.AccountManagementRule.deserializeBinaryFromReader),e.setAccountManagementRule(r);break;case 2:r=new o.Rule.AuthManagementRule,t.readMessage(r,o.Rule.AuthManagementRule.deserializeBinaryFromReader),e.setAuthManagementRule(r);break;case 3:r=new o.Rule.ResourceManagementRule,t.readMessage(r,o.Rule.ResourceManagementRule.deserializeBinaryFromReader),e.setResourceManagementRule(r);break;case 4:r=new o.Rule.CacheRule,t.readMessage(r,o.Rule.CacheRule.deserializeBinaryFromReader),e.setCacheRule(r);break;case 5:r=new o.Rule.TopicRule,t.readMessage(r,o.Rule.TopicRule.deserializeBinaryFromReader),e.setTopicRule(r);break;case 7:r=new o.Rule.FunctionRule,t.readMessage(r,o.Rule.FunctionRule.deserializeBinaryFromReader),e.setFunctionRule(r);break;default:t.skipField()}return e},o.Rule.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Rule.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Rule.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getAccountManagementRule())&&t.writeMessage(1,r,o.Rule.AccountManagementRule.serializeBinaryToWriter),null!=(r=e.getAuthManagementRule())&&t.writeMessage(2,r,o.Rule.AuthManagementRule.serializeBinaryToWriter),null!=(r=e.getResourceManagementRule())&&t.writeMessage(3,r,o.Rule.ResourceManagementRule.serializeBinaryToWriter),null!=(r=e.getCacheRule())&&t.writeMessage(4,r,o.Rule.CacheRule.serializeBinaryToWriter),null!=(r=e.getTopicRule())&&t.writeMessage(5,r,o.Rule.TopicRule.serializeBinaryToWriter),null!=(r=e.getFunctionRule())&&t.writeMessage(7,r,o.Rule.FunctionRule.serializeBinaryToWriter)},o.Rule.AccountManagementRule.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o.Rule.AccountManagementRule.prototype.toObject=function(e){return o.Rule.AccountManagementRule.toObject(e,this)},o.Rule.AccountManagementRule.toObject=function(e,r){var o,s={permissionsList:null==(o=t.Message.getRepeatedField(r,1))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),o.Rule.AccountManagementRule.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Rule.AccountManagementRule;return o.Rule.AccountManagementRule.deserializeBinaryFromReader(s,r)},o.Rule.AccountManagementRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber())for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],o=0;o<r.length;o++)e.addPermissions(r[o]);else t.skipField();return e},o.Rule.AccountManagementRule.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Rule.AccountManagementRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Rule.AccountManagementRule.serializeBinaryToWriter=function(e,t){var r;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r)},o.Rule.AccountManagementRule.prototype.getPermissionsList=function(){return t.Message.getRepeatedField(this,1)},o.Rule.AccountManagementRule.prototype.setPermissionsList=function(e){return t.Message.setField(this,1,e||[])},o.Rule.AccountManagementRule.prototype.addPermissions=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o.Rule.AccountManagementRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},o.Rule.AuthManagementRule.repeatedFields_=[1],o.Rule.AuthManagementRule.oneofGroups_=[[2]],o.Rule.AuthManagementRule.AuthItemsCase={AUTH_ITEMS_NOT_SET:0,ALL_ITEMS:2},o.Rule.AuthManagementRule.prototype.getAuthItemsCase=function(){return t.Message.computeOneofCase(this,o.Rule.AuthManagementRule.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.Rule.AuthManagementRule.prototype.toObject=function(e){return o.Rule.AuthManagementRule.toObject(e,this)},o.Rule.AuthManagementRule.toObject=function(e,r){var s,n={permissionsList:null==(s=t.Message.getRepeatedField(r,1))?void 0:s,allItems:(s=r.getAllItems())&&o.All.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.Rule.AuthManagementRule.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Rule.AuthManagementRule;return o.Rule.AuthManagementRule.deserializeBinaryFromReader(s,r)},o.Rule.AuthManagementRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],s=0;s<r.length;s++)e.addPermissions(r[s]);break;case 2:var n=new o.All;t.readMessage(n,o.All.deserializeBinaryFromReader),e.setAllItems(n);break;default:t.skipField()}return e},o.Rule.AuthManagementRule.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Rule.AuthManagementRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Rule.AuthManagementRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllItems())&&t.writeMessage(2,r,o.All.serializeBinaryToWriter)},o.Rule.AuthManagementRule.prototype.getPermissionsList=function(){return t.Message.getRepeatedField(this,1)},o.Rule.AuthManagementRule.prototype.setPermissionsList=function(e){return t.Message.setField(this,1,e||[])},o.Rule.AuthManagementRule.prototype.addPermissions=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o.Rule.AuthManagementRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},o.Rule.AuthManagementRule.prototype.getAllItems=function(){return t.Message.getWrapperField(this,o.All,2)},o.Rule.AuthManagementRule.prototype.setAllItems=function(e){return t.Message.setOneofWrapperField(this,2,o.Rule.AuthManagementRule.oneofGroups_[0],e)},o.Rule.AuthManagementRule.prototype.clearAllItems=function(){return this.setAllItems(void 0)},o.Rule.AuthManagementRule.prototype.hasAllItems=function(){return null!=t.Message.getField(this,2)},o.Rule.ResourceManagementRule.repeatedFields_=[1],o.Rule.ResourceManagementRule.oneofGroups_=[[2]],o.Rule.ResourceManagementRule.ResourcesCase={RESOURCES_NOT_SET:0,ALL_RESOURCES:2},o.Rule.ResourceManagementRule.prototype.getResourcesCase=function(){return t.Message.computeOneofCase(this,o.Rule.ResourceManagementRule.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o.Rule.ResourceManagementRule.prototype.toObject=function(e){return o.Rule.ResourceManagementRule.toObject(e,this)},o.Rule.ResourceManagementRule.toObject=function(e,r){var s,n={permissionsList:null==(s=t.Message.getRepeatedField(r,1))?void 0:s,allResources:(s=r.getAllResources())&&o.All.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.Rule.ResourceManagementRule.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Rule.ResourceManagementRule;return o.Rule.ResourceManagementRule.deserializeBinaryFromReader(s,r)},o.Rule.ResourceManagementRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],s=0;s<r.length;s++)e.addPermissions(r[s]);break;case 2:var n=new o.All;t.readMessage(n,o.All.deserializeBinaryFromReader),e.setAllResources(n);break;default:t.skipField()}return e},o.Rule.ResourceManagementRule.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Rule.ResourceManagementRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Rule.ResourceManagementRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllResources())&&t.writeMessage(2,r,o.All.serializeBinaryToWriter)},o.Rule.ResourceManagementRule.prototype.getPermissionsList=function(){return t.Message.getRepeatedField(this,1)},o.Rule.ResourceManagementRule.prototype.setPermissionsList=function(e){return t.Message.setField(this,1,e||[])},o.Rule.ResourceManagementRule.prototype.addPermissions=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o.Rule.ResourceManagementRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},o.Rule.ResourceManagementRule.prototype.getAllResources=function(){return t.Message.getWrapperField(this,o.All,2)},o.Rule.ResourceManagementRule.prototype.setAllResources=function(e){return t.Message.setOneofWrapperField(this,2,o.Rule.ResourceManagementRule.oneofGroups_[0],e)},o.Rule.ResourceManagementRule.prototype.clearAllResources=function(){return this.setAllResources(void 0)},o.Rule.ResourceManagementRule.prototype.hasAllResources=function(){return null!=t.Message.getField(this,2)},o.Rule.CacheRule.repeatedFields_=[1],o.Rule.CacheRule.oneofGroups_=[[2,3],[4,5]],o.Rule.CacheRule.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},o.Rule.CacheRule.prototype.getCacheCase=function(){return t.Message.computeOneofCase(this,o.Rule.CacheRule.oneofGroups_[0])},o.Rule.CacheRule.CacheItemCase={CACHE_ITEM_NOT_SET:0,ALL_ITEMS:4,ITEM_SELECTOR:5},o.Rule.CacheRule.prototype.getCacheItemCase=function(){return t.Message.computeOneofCase(this,o.Rule.CacheRule.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o.Rule.CacheRule.prototype.toObject=function(e){return o.Rule.CacheRule.toObject(e,this)},o.Rule.CacheRule.toObject=function(e,r){var s,n={permissionsList:null==(s=t.Message.getRepeatedField(r,1))?void 0:s,allCaches:(s=r.getAllCaches())&&o.All.toObject(e,s),cacheSelector:(s=r.getCacheSelector())&&o.CacheSelector.toObject(e,s),allItems:(s=r.getAllItems())&&o.All.toObject(e,s),itemSelector:(s=r.getItemSelector())&&o.CacheItemSelector.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.Rule.CacheRule.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Rule.CacheRule;return o.Rule.CacheRule.deserializeBinaryFromReader(s,r)},o.Rule.CacheRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],s=0;s<r.length;s++)e.addPermissions(r[s]);break;case 2:var n=new o.All;t.readMessage(n,o.All.deserializeBinaryFromReader),e.setAllCaches(n);break;case 3:n=new o.CacheSelector,t.readMessage(n,o.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(n);break;case 4:n=new o.All,t.readMessage(n,o.All.deserializeBinaryFromReader),e.setAllItems(n);break;case 5:n=new o.CacheItemSelector,t.readMessage(n,o.CacheItemSelector.deserializeBinaryFromReader),e.setItemSelector(n);break;default:t.skipField()}return e},o.Rule.CacheRule.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Rule.CacheRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Rule.CacheRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,o.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,o.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllItems())&&t.writeMessage(4,r,o.All.serializeBinaryToWriter),null!=(r=e.getItemSelector())&&t.writeMessage(5,r,o.CacheItemSelector.serializeBinaryToWriter)},o.Rule.CacheRule.prototype.getPermissionsList=function(){return t.Message.getRepeatedField(this,1)},o.Rule.CacheRule.prototype.setPermissionsList=function(e){return t.Message.setField(this,1,e||[])},o.Rule.CacheRule.prototype.addPermissions=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o.Rule.CacheRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},o.Rule.CacheRule.prototype.getAllCaches=function(){return t.Message.getWrapperField(this,o.All,2)},o.Rule.CacheRule.prototype.setAllCaches=function(e){return t.Message.setOneofWrapperField(this,2,o.Rule.CacheRule.oneofGroups_[0],e)},o.Rule.CacheRule.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},o.Rule.CacheRule.prototype.hasAllCaches=function(){return null!=t.Message.getField(this,2)},o.Rule.CacheRule.prototype.getCacheSelector=function(){return t.Message.getWrapperField(this,o.CacheSelector,3)},o.Rule.CacheRule.prototype.setCacheSelector=function(e){return t.Message.setOneofWrapperField(this,3,o.Rule.CacheRule.oneofGroups_[0],e)},o.Rule.CacheRule.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},o.Rule.CacheRule.prototype.hasCacheSelector=function(){return null!=t.Message.getField(this,3)},o.Rule.CacheRule.prototype.getAllItems=function(){return t.Message.getWrapperField(this,o.All,4)},o.Rule.CacheRule.prototype.setAllItems=function(e){return t.Message.setOneofWrapperField(this,4,o.Rule.CacheRule.oneofGroups_[1],e)},o.Rule.CacheRule.prototype.clearAllItems=function(){return this.setAllItems(void 0)},o.Rule.CacheRule.prototype.hasAllItems=function(){return null!=t.Message.getField(this,4)},o.Rule.CacheRule.prototype.getItemSelector=function(){return t.Message.getWrapperField(this,o.CacheItemSelector,5)},o.Rule.CacheRule.prototype.setItemSelector=function(e){return t.Message.setOneofWrapperField(this,5,o.Rule.CacheRule.oneofGroups_[1],e)},o.Rule.CacheRule.prototype.clearItemSelector=function(){return this.setItemSelector(void 0)},o.Rule.CacheRule.prototype.hasItemSelector=function(){return null!=t.Message.getField(this,5)},o.Rule.TopicRule.repeatedFields_=[1],o.Rule.TopicRule.oneofGroups_=[[2,3],[4,5]],o.Rule.TopicRule.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},o.Rule.TopicRule.prototype.getCacheCase=function(){return t.Message.computeOneofCase(this,o.Rule.TopicRule.oneofGroups_[0])},o.Rule.TopicRule.TopicCase={TOPIC_NOT_SET:0,ALL_TOPICS:4,TOPIC_SELECTOR:5},o.Rule.TopicRule.prototype.getTopicCase=function(){return t.Message.computeOneofCase(this,o.Rule.TopicRule.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o.Rule.TopicRule.prototype.toObject=function(e){return o.Rule.TopicRule.toObject(e,this)},o.Rule.TopicRule.toObject=function(e,r){var s,n={permissionsList:null==(s=t.Message.getRepeatedField(r,1))?void 0:s,allCaches:(s=r.getAllCaches())&&o.All.toObject(e,s),cacheSelector:(s=r.getCacheSelector())&&o.CacheSelector.toObject(e,s),allTopics:(s=r.getAllTopics())&&o.All.toObject(e,s),topicSelector:(s=r.getTopicSelector())&&o.TopicSelector.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.Rule.TopicRule.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Rule.TopicRule;return o.Rule.TopicRule.deserializeBinaryFromReader(s,r)},o.Rule.TopicRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],s=0;s<r.length;s++)e.addPermissions(r[s]);break;case 2:var n=new o.All;t.readMessage(n,o.All.deserializeBinaryFromReader),e.setAllCaches(n);break;case 3:n=new o.CacheSelector,t.readMessage(n,o.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(n);break;case 4:n=new o.All,t.readMessage(n,o.All.deserializeBinaryFromReader),e.setAllTopics(n);break;case 5:n=new o.TopicSelector,t.readMessage(n,o.TopicSelector.deserializeBinaryFromReader),e.setTopicSelector(n);break;default:t.skipField()}return e},o.Rule.TopicRule.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Rule.TopicRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Rule.TopicRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,o.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,o.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllTopics())&&t.writeMessage(4,r,o.All.serializeBinaryToWriter),null!=(r=e.getTopicSelector())&&t.writeMessage(5,r,o.TopicSelector.serializeBinaryToWriter)},o.Rule.TopicRule.prototype.getPermissionsList=function(){return t.Message.getRepeatedField(this,1)},o.Rule.TopicRule.prototype.setPermissionsList=function(e){return t.Message.setField(this,1,e||[])},o.Rule.TopicRule.prototype.addPermissions=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o.Rule.TopicRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},o.Rule.TopicRule.prototype.getAllCaches=function(){return t.Message.getWrapperField(this,o.All,2)},o.Rule.TopicRule.prototype.setAllCaches=function(e){return t.Message.setOneofWrapperField(this,2,o.Rule.TopicRule.oneofGroups_[0],e)},o.Rule.TopicRule.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},o.Rule.TopicRule.prototype.hasAllCaches=function(){return null!=t.Message.getField(this,2)},o.Rule.TopicRule.prototype.getCacheSelector=function(){return t.Message.getWrapperField(this,o.CacheSelector,3)},o.Rule.TopicRule.prototype.setCacheSelector=function(e){return t.Message.setOneofWrapperField(this,3,o.Rule.TopicRule.oneofGroups_[0],e)},o.Rule.TopicRule.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},o.Rule.TopicRule.prototype.hasCacheSelector=function(){return null!=t.Message.getField(this,3)},o.Rule.TopicRule.prototype.getAllTopics=function(){return t.Message.getWrapperField(this,o.All,4)},o.Rule.TopicRule.prototype.setAllTopics=function(e){return t.Message.setOneofWrapperField(this,4,o.Rule.TopicRule.oneofGroups_[1],e)},o.Rule.TopicRule.prototype.clearAllTopics=function(){return this.setAllTopics(void 0)},o.Rule.TopicRule.prototype.hasAllTopics=function(){return null!=t.Message.getField(this,4)},o.Rule.TopicRule.prototype.getTopicSelector=function(){return t.Message.getWrapperField(this,o.TopicSelector,5)},o.Rule.TopicRule.prototype.setTopicSelector=function(e){return t.Message.setOneofWrapperField(this,5,o.Rule.TopicRule.oneofGroups_[1],e)},o.Rule.TopicRule.prototype.clearTopicSelector=function(){return this.setTopicSelector(void 0)},o.Rule.TopicRule.prototype.hasTopicSelector=function(){return null!=t.Message.getField(this,5)},o.Rule.FunctionRule.repeatedFields_=[1],o.Rule.FunctionRule.oneofGroups_=[[2,3],[4,5]],o.Rule.FunctionRule.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},o.Rule.FunctionRule.prototype.getCacheCase=function(){return t.Message.computeOneofCase(this,o.Rule.FunctionRule.oneofGroups_[0])},o.Rule.FunctionRule.FunctionCase={FUNCTION_NOT_SET:0,ALL_FUNCTIONS:4,FUNCTION_SELECTOR:5},o.Rule.FunctionRule.prototype.getFunctionCase=function(){return t.Message.computeOneofCase(this,o.Rule.FunctionRule.oneofGroups_[1])},t.Message.GENERATE_TO_OBJECT&&(o.Rule.FunctionRule.prototype.toObject=function(e){return o.Rule.FunctionRule.toObject(e,this)},o.Rule.FunctionRule.toObject=function(e,r){var s,n={permissionsList:null==(s=t.Message.getRepeatedField(r,1))?void 0:s,allCaches:(s=r.getAllCaches())&&o.All.toObject(e,s),cacheSelector:(s=r.getCacheSelector())&&o.CacheSelector.toObject(e,s),allFunctions:(s=r.getAllFunctions())&&o.All.toObject(e,s),functionSelector:(s=r.getFunctionSelector())&&o.FunctionSelector.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o.Rule.FunctionRule.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Rule.FunctionRule;return o.Rule.FunctionRule.deserializeBinaryFromReader(s,r)},o.Rule.FunctionRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],s=0;s<r.length;s++)e.addPermissions(r[s]);break;case 2:var n=new o.All;t.readMessage(n,o.All.deserializeBinaryFromReader),e.setAllCaches(n);break;case 3:n=new o.CacheSelector,t.readMessage(n,o.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(n);break;case 4:n=new o.All,t.readMessage(n,o.All.deserializeBinaryFromReader),e.setAllFunctions(n);break;case 5:n=new o.FunctionSelector,t.readMessage(n,o.FunctionSelector.deserializeBinaryFromReader),e.setFunctionSelector(n);break;default:t.skipField()}return e},o.Rule.FunctionRule.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Rule.FunctionRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Rule.FunctionRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,o.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,o.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllFunctions())&&t.writeMessage(4,r,o.All.serializeBinaryToWriter),null!=(r=e.getFunctionSelector())&&t.writeMessage(5,r,o.FunctionSelector.serializeBinaryToWriter)},o.Rule.FunctionRule.prototype.getPermissionsList=function(){return t.Message.getRepeatedField(this,1)},o.Rule.FunctionRule.prototype.setPermissionsList=function(e){return t.Message.setField(this,1,e||[])},o.Rule.FunctionRule.prototype.addPermissions=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},o.Rule.FunctionRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},o.Rule.FunctionRule.prototype.getAllCaches=function(){return t.Message.getWrapperField(this,o.All,2)},o.Rule.FunctionRule.prototype.setAllCaches=function(e){return t.Message.setOneofWrapperField(this,2,o.Rule.FunctionRule.oneofGroups_[0],e)},o.Rule.FunctionRule.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},o.Rule.FunctionRule.prototype.hasAllCaches=function(){return null!=t.Message.getField(this,2)},o.Rule.FunctionRule.prototype.getCacheSelector=function(){return t.Message.getWrapperField(this,o.CacheSelector,3)},o.Rule.FunctionRule.prototype.setCacheSelector=function(e){return t.Message.setOneofWrapperField(this,3,o.Rule.FunctionRule.oneofGroups_[0],e)},o.Rule.FunctionRule.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},o.Rule.FunctionRule.prototype.hasCacheSelector=function(){return null!=t.Message.getField(this,3)},o.Rule.FunctionRule.prototype.getAllFunctions=function(){return t.Message.getWrapperField(this,o.All,4)},o.Rule.FunctionRule.prototype.setAllFunctions=function(e){return t.Message.setOneofWrapperField(this,4,o.Rule.FunctionRule.oneofGroups_[1],e)},o.Rule.FunctionRule.prototype.clearAllFunctions=function(){return this.setAllFunctions(void 0)},o.Rule.FunctionRule.prototype.hasAllFunctions=function(){return null!=t.Message.getField(this,4)},o.Rule.FunctionRule.prototype.getFunctionSelector=function(){return t.Message.getWrapperField(this,o.FunctionSelector,5)},o.Rule.FunctionRule.prototype.setFunctionSelector=function(e){return t.Message.setOneofWrapperField(this,5,o.Rule.FunctionRule.oneofGroups_[1],e)},o.Rule.FunctionRule.prototype.clearFunctionSelector=function(){return this.setFunctionSelector(void 0)},o.Rule.FunctionRule.prototype.hasFunctionSelector=function(){return null!=t.Message.getField(this,5)},o.Rule.prototype.getAccountManagementRule=function(){return t.Message.getWrapperField(this,o.Rule.AccountManagementRule,1)},o.Rule.prototype.setAccountManagementRule=function(e){return t.Message.setOneofWrapperField(this,1,o.Rule.oneofGroups_[0],e)},o.Rule.prototype.clearAccountManagementRule=function(){return this.setAccountManagementRule(void 0)},o.Rule.prototype.hasAccountManagementRule=function(){return null!=t.Message.getField(this,1)},o.Rule.prototype.getAuthManagementRule=function(){return t.Message.getWrapperField(this,o.Rule.AuthManagementRule,2)},o.Rule.prototype.setAuthManagementRule=function(e){return t.Message.setOneofWrapperField(this,2,o.Rule.oneofGroups_[0],e)},o.Rule.prototype.clearAuthManagementRule=function(){return this.setAuthManagementRule(void 0)},o.Rule.prototype.hasAuthManagementRule=function(){return null!=t.Message.getField(this,2)},o.Rule.prototype.getResourceManagementRule=function(){return t.Message.getWrapperField(this,o.Rule.ResourceManagementRule,3)},o.Rule.prototype.setResourceManagementRule=function(e){return t.Message.setOneofWrapperField(this,3,o.Rule.oneofGroups_[0],e)},o.Rule.prototype.clearResourceManagementRule=function(){return this.setResourceManagementRule(void 0)},o.Rule.prototype.hasResourceManagementRule=function(){return null!=t.Message.getField(this,3)},o.Rule.prototype.getCacheRule=function(){return t.Message.getWrapperField(this,o.Rule.CacheRule,4)},o.Rule.prototype.setCacheRule=function(e){return t.Message.setOneofWrapperField(this,4,o.Rule.oneofGroups_[0],e)},o.Rule.prototype.clearCacheRule=function(){return this.setCacheRule(void 0)},o.Rule.prototype.hasCacheRule=function(){return null!=t.Message.getField(this,4)},o.Rule.prototype.getTopicRule=function(){return t.Message.getWrapperField(this,o.Rule.TopicRule,5)},o.Rule.prototype.setTopicRule=function(e){return t.Message.setOneofWrapperField(this,5,o.Rule.oneofGroups_[0],e)},o.Rule.prototype.clearTopicRule=function(){return this.setTopicRule(void 0)},o.Rule.prototype.hasTopicRule=function(){return null!=t.Message.getField(this,5)},o.Rule.prototype.getFunctionRule=function(){return t.Message.getWrapperField(this,o.Rule.FunctionRule,7)},o.Rule.prototype.setFunctionRule=function(e){return t.Message.setOneofWrapperField(this,7,o.Rule.oneofGroups_[0],e)},o.Rule.prototype.clearFunctionRule=function(){return this.setFunctionRule(void 0)},o.Rule.prototype.hasFunctionRule=function(){return null!=t.Message.getField(this,7)},o.AccountManagementPermissions={ACCOUNTREAD:0,ACCOUNTWRITE:1,ACCOUNTLIST:2},o.AuthManagementPermissions={AUTHREAD:0,AUTHWRITE:1,AUTHLIST:2},o.ResourceManagementPermissions={RESOURCEREAD:0,RESOURCEWRITE:1,RESOURCELIST:2},o.CacheAPIPermissions={CACHELIST:0,CACHEREAD:1,CACHEWRITE:2},o.TopicAPIPermissions={TOPICLIST:0,TOPICREAD:1,TOPICWRITE:2},o.FunctionAPIPermissions={FUNCTIONINVOKESET:0},o.SuperUserSetPermissionSet={SUPERUSERSET:0},r.object.extend(e,o)),permissionrules_pb;var e,t,r,o}function requireGlobal_admin_pb(){return hasRequiredGlobal_admin_pb||(hasRequiredGlobal_admin_pb=1,e=global_admin_pb,t=requireGoogleProtobuf(),r=t,o={},s=requirePermissionrules_pb(),r.object.extend(o,s),r.exportSymbol("AccountRole",null,o),r.exportSymbol("Endpoint",null,o),r.exportSymbol("Role",null,o),r.exportSymbol("RoleType",null,o),r.exportSymbol("UserInvitation",null,o),r.exportSymbol("_AcceptInvitationRequest",null,o),r.exportSymbol("_AcceptInvitationResponse",null,o),r.exportSymbol("_Account",null,o),r.exportSymbol("_AccountMember",null,o),r.exportSymbol("_GetAccountSessionTokenRequest",null,o),r.exportSymbol("_GetAccountSessionTokenResponse",null,o),r.exportSymbol("_GetAccountsRequest",null,o),r.exportSymbol("_GetAccountsResponse",null,o),r.exportSymbol("_GetEndpointsForAccountRequest",null,o),r.exportSymbol("_GetEndpointsForAccountResponse",null,o),r.exportSymbol("_GetInvitationsForUserRequest",null,o),r.exportSymbol("_GetInvitationsForUserResponse",null,o),r.exportSymbol("_Invitation",null,o),r.exportSymbol("_InviteMemberRequest",null,o),r.exportSymbol("_InviteMemberResponse",null,o),r.exportSymbol("_ListInvitationsForAccountRequest",null,o),r.exportSymbol("_ListInvitationsForAccountResponse",null,o),r.exportSymbol("_ListMembersRequest",null,o),r.exportSymbol("_ListMembersResponse",null,o),r.exportSymbol("_ListRolesForAccountRequest",null,o),r.exportSymbol("_ListRolesForAccountResponse",null,o),r.exportSymbol("_Member",null,o),r.exportSymbol("_RejectInvitationRequest",null,o),r.exportSymbol("_RejectInvitationResponse",null,o),r.exportSymbol("_RemoveMemberRequest",null,o),r.exportSymbol("_RemoveMemberResponse",null,o),r.exportSymbol("_RevokeInvitationRequest",null,o),r.exportSymbol("_RevokeInvitationResponse",null,o),r.exportSymbol("_SetAccountNameRequest",null,o),r.exportSymbol("_SetAccountNameResponse",null,o),r.exportSymbol("_SetMemberRoleRequest",null,o),r.exportSymbol("_SetMemberRoleResponse",null,o),o._SetAccountNameRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetAccountNameRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetAccountNameRequest.displayName="proto._SetAccountNameRequest"),o._SetAccountNameResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetAccountNameResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetAccountNameResponse.displayName="proto._SetAccountNameResponse"),o._GetAccountsRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetAccountsRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetAccountsRequest.displayName="proto._GetAccountsRequest"),o._GetAccountsResponse=function(e){t.Message.initialize(this,e,0,-1,o._GetAccountsResponse.repeatedFields_,null)},r.inherits(o._GetAccountsResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetAccountsResponse.displayName="proto._GetAccountsResponse"),o._GetInvitationsForUserRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetInvitationsForUserRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetInvitationsForUserRequest.displayName="proto._GetInvitationsForUserRequest"),o.UserInvitation=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.UserInvitation,t.Message),r.DEBUG&&!COMPILED&&(o.UserInvitation.displayName="proto.UserInvitation"),o._GetInvitationsForUserResponse=function(e){t.Message.initialize(this,e,0,-1,o._GetInvitationsForUserResponse.repeatedFields_,null)},r.inherits(o._GetInvitationsForUserResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetInvitationsForUserResponse.displayName="proto._GetInvitationsForUserResponse"),o._Account=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Account,t.Message),r.DEBUG&&!COMPILED&&(o._Account.displayName="proto._Account"),o._GetAccountSessionTokenRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetAccountSessionTokenRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetAccountSessionTokenRequest.displayName="proto._GetAccountSessionTokenRequest"),o._GetAccountSessionTokenResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetAccountSessionTokenResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetAccountSessionTokenResponse.displayName="proto._GetAccountSessionTokenResponse"),o._InviteMemberRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._InviteMemberRequest,t.Message),r.DEBUG&&!COMPILED&&(o._InviteMemberRequest.displayName="proto._InviteMemberRequest"),o._InviteMemberResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._InviteMemberResponse,t.Message),r.DEBUG&&!COMPILED&&(o._InviteMemberResponse.displayName="proto._InviteMemberResponse"),o._AcceptInvitationRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._AcceptInvitationRequest,t.Message),r.DEBUG&&!COMPILED&&(o._AcceptInvitationRequest.displayName="proto._AcceptInvitationRequest"),o._AcceptInvitationResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._AcceptInvitationResponse,t.Message),r.DEBUG&&!COMPILED&&(o._AcceptInvitationResponse.displayName="proto._AcceptInvitationResponse"),o._RejectInvitationRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RejectInvitationRequest,t.Message),r.DEBUG&&!COMPILED&&(o._RejectInvitationRequest.displayName="proto._RejectInvitationRequest"),o._RejectInvitationResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RejectInvitationResponse,t.Message),r.DEBUG&&!COMPILED&&(o._RejectInvitationResponse.displayName="proto._RejectInvitationResponse"),o._ListInvitationsForAccountRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListInvitationsForAccountRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListInvitationsForAccountRequest.displayName="proto._ListInvitationsForAccountRequest"),o._Invitation=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Invitation,t.Message),r.DEBUG&&!COMPILED&&(o._Invitation.displayName="proto._Invitation"),o._ListInvitationsForAccountResponse=function(e){t.Message.initialize(this,e,0,-1,o._ListInvitationsForAccountResponse.repeatedFields_,null)},r.inherits(o._ListInvitationsForAccountResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListInvitationsForAccountResponse.displayName="proto._ListInvitationsForAccountResponse"),o._RevokeInvitationRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RevokeInvitationRequest,t.Message),r.DEBUG&&!COMPILED&&(o._RevokeInvitationRequest.displayName="proto._RevokeInvitationRequest"),o._RevokeInvitationResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RevokeInvitationResponse,t.Message),r.DEBUG&&!COMPILED&&(o._RevokeInvitationResponse.displayName="proto._RevokeInvitationResponse"),o._RemoveMemberRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RemoveMemberRequest,t.Message),r.DEBUG&&!COMPILED&&(o._RemoveMemberRequest.displayName="proto._RemoveMemberRequest"),o._RemoveMemberResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._RemoveMemberResponse,t.Message),r.DEBUG&&!COMPILED&&(o._RemoveMemberResponse.displayName="proto._RemoveMemberResponse"),o._ListMembersRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListMembersRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListMembersRequest.displayName="proto._ListMembersRequest"),o._Member=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Member,t.Message),r.DEBUG&&!COMPILED&&(o._Member.displayName="proto._Member"),o._AccountMember=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._AccountMember,t.Message),r.DEBUG&&!COMPILED&&(o._AccountMember.displayName="proto._AccountMember"),o._ListMembersResponse=function(e){t.Message.initialize(this,e,0,-1,o._ListMembersResponse.repeatedFields_,null)},r.inherits(o._ListMembersResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListMembersResponse.displayName="proto._ListMembersResponse"),o._GetEndpointsForAccountRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._GetEndpointsForAccountRequest,t.Message),r.DEBUG&&!COMPILED&&(o._GetEndpointsForAccountRequest.displayName="proto._GetEndpointsForAccountRequest"),o._GetEndpointsForAccountResponse=function(e){t.Message.initialize(this,e,0,-1,o._GetEndpointsForAccountResponse.repeatedFields_,null)},r.inherits(o._GetEndpointsForAccountResponse,t.Message),r.DEBUG&&!COMPILED&&(o._GetEndpointsForAccountResponse.displayName="proto._GetEndpointsForAccountResponse"),o.Endpoint=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.Endpoint,t.Message),r.DEBUG&&!COMPILED&&(o.Endpoint.displayName="proto.Endpoint"),o._ListRolesForAccountRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._ListRolesForAccountRequest,t.Message),r.DEBUG&&!COMPILED&&(o._ListRolesForAccountRequest.displayName="proto._ListRolesForAccountRequest"),o.AccountRole=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o.AccountRole,t.Message),r.DEBUG&&!COMPILED&&(o.AccountRole.displayName="proto.AccountRole"),o._ListRolesForAccountResponse=function(e){t.Message.initialize(this,e,0,-1,o._ListRolesForAccountResponse.repeatedFields_,null)},r.inherits(o._ListRolesForAccountResponse,t.Message),r.DEBUG&&!COMPILED&&(o._ListRolesForAccountResponse.displayName="proto._ListRolesForAccountResponse"),o._SetMemberRoleRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetMemberRoleRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SetMemberRoleRequest.displayName="proto._SetMemberRoleRequest"),o._SetMemberRoleResponse=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SetMemberRoleResponse,t.Message),r.DEBUG&&!COMPILED&&(o._SetMemberRoleResponse.displayName="proto._SetMemberRoleResponse"),t.Message.GENERATE_TO_OBJECT&&(o._SetAccountNameRequest.prototype.toObject=function(e){return o._SetAccountNameRequest.toObject(e,this)},o._SetAccountNameRequest.toObject=function(e,r){var o={accountName:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._SetAccountNameRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetAccountNameRequest;return o._SetAccountNameRequest.deserializeBinaryFromReader(s,r)},o._SetAccountNameRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setAccountName(r)}else t.skipField();return e},o._SetAccountNameRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetAccountNameRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetAccountNameRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getAccountName()).length>0&&t.writeString(1,r)},o._SetAccountNameRequest.prototype.getAccountName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetAccountNameRequest.prototype.setAccountName=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._SetAccountNameResponse.prototype.toObject=function(e){return o._SetAccountNameResponse.toObject(e,this)},o._SetAccountNameResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetAccountNameResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetAccountNameResponse;return o._SetAccountNameResponse.deserializeBinaryFromReader(s,r)},o._SetAccountNameResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetAccountNameResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetAccountNameResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetAccountNameResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._GetAccountsRequest.prototype.toObject=function(e){return o._GetAccountsRequest.toObject(e,this)},o._GetAccountsRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._GetAccountsRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetAccountsRequest;return o._GetAccountsRequest.deserializeBinaryFromReader(s,r)},o._GetAccountsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._GetAccountsRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetAccountsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetAccountsRequest.serializeBinaryToWriter=function(e,t){},o._GetAccountsResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._GetAccountsResponse.prototype.toObject=function(e){return o._GetAccountsResponse.toObject(e,this)},o._GetAccountsResponse.toObject=function(e,r){var s={accountsList:t.Message.toObjectList(r.getAccountsList(),o._Account.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._GetAccountsResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetAccountsResponse;return o._GetAccountsResponse.deserializeBinaryFromReader(s,r)},o._GetAccountsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._Account;t.readMessage(r,o._Account.deserializeBinaryFromReader),e.addAccounts(r)}else t.skipField();return e},o._GetAccountsResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetAccountsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetAccountsResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getAccountsList()).length>0&&t.writeRepeatedMessage(1,r,o._Account.serializeBinaryToWriter)},o._GetAccountsResponse.prototype.getAccountsList=function(){return t.Message.getRepeatedWrapperField(this,o._Account,1)},o._GetAccountsResponse.prototype.setAccountsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._GetAccountsResponse.prototype.addAccounts=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._Account,r)},o._GetAccountsResponse.prototype.clearAccountsList=function(){return this.setAccountsList([])},t.Message.GENERATE_TO_OBJECT&&(o._GetInvitationsForUserRequest.prototype.toObject=function(e){return o._GetInvitationsForUserRequest.toObject(e,this)},o._GetInvitationsForUserRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._GetInvitationsForUserRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetInvitationsForUserRequest;return o._GetInvitationsForUserRequest.deserializeBinaryFromReader(s,r)},o._GetInvitationsForUserRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._GetInvitationsForUserRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetInvitationsForUserRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetInvitationsForUserRequest.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o.UserInvitation.prototype.toObject=function(e){return o.UserInvitation.toObject(e,this)},o.UserInvitation.toObject=function(e,r){var o={accountId:t.Message.getFieldWithDefault(r,1,""),accountName:t.Message.getFieldWithDefault(r,2,""),invitationId:t.Message.getFieldWithDefault(r,3,"")};return e&&(o.$jspbMessageInstance=r),o}),o.UserInvitation.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.UserInvitation;return o.UserInvitation.deserializeBinaryFromReader(s,r)},o.UserInvitation.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setAccountId(r);break;case 2:r=t.readString(),e.setAccountName(r);break;case 3:r=t.readString(),e.setInvitationId(r);break;default:t.skipField()}return e},o.UserInvitation.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.UserInvitation.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.UserInvitation.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAccountId()).length>0&&t.writeString(1,r),(r=e.getAccountName()).length>0&&t.writeString(2,r),(r=e.getInvitationId()).length>0&&t.writeString(3,r)},o.UserInvitation.prototype.getAccountId=function(){return t.Message.getFieldWithDefault(this,1,"")},o.UserInvitation.prototype.setAccountId=function(e){return t.Message.setProto3StringField(this,1,e)},o.UserInvitation.prototype.getAccountName=function(){return t.Message.getFieldWithDefault(this,2,"")},o.UserInvitation.prototype.setAccountName=function(e){return t.Message.setProto3StringField(this,2,e)},o.UserInvitation.prototype.getInvitationId=function(){return t.Message.getFieldWithDefault(this,3,"")},o.UserInvitation.prototype.setInvitationId=function(e){return t.Message.setProto3StringField(this,3,e)},o._GetInvitationsForUserResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._GetInvitationsForUserResponse.prototype.toObject=function(e){return o._GetInvitationsForUserResponse.toObject(e,this)},o._GetInvitationsForUserResponse.toObject=function(e,r){var s={invitationsList:t.Message.toObjectList(r.getInvitationsList(),o.UserInvitation.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._GetInvitationsForUserResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetInvitationsForUserResponse;return o._GetInvitationsForUserResponse.deserializeBinaryFromReader(s,r)},o._GetInvitationsForUserResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o.UserInvitation;t.readMessage(r,o.UserInvitation.deserializeBinaryFromReader),e.addInvitations(r)}else t.skipField();return e},o._GetInvitationsForUserResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetInvitationsForUserResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetInvitationsForUserResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getInvitationsList()).length>0&&t.writeRepeatedMessage(1,r,o.UserInvitation.serializeBinaryToWriter)},o._GetInvitationsForUserResponse.prototype.getInvitationsList=function(){return t.Message.getRepeatedWrapperField(this,o.UserInvitation,1)},o._GetInvitationsForUserResponse.prototype.setInvitationsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._GetInvitationsForUserResponse.prototype.addInvitations=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o.UserInvitation,r)},o._GetInvitationsForUserResponse.prototype.clearInvitationsList=function(){return this.setInvitationsList([])},t.Message.GENERATE_TO_OBJECT&&(o._Account.prototype.toObject=function(e){return o._Account.toObject(e,this)},o._Account.toObject=function(e,r){var o={id:t.Message.getFieldWithDefault(r,1,""),accountName:t.Message.getFieldWithDefault(r,2,""),roleId:t.Message.getFieldWithDefault(r,3,""),roleName:t.Message.getFieldWithDefault(r,4,"")};return e&&(o.$jspbMessageInstance=r),o}),o._Account.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Account;return o._Account.deserializeBinaryFromReader(s,r)},o._Account.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setId(r);break;case 2:r=t.readString(),e.setAccountName(r);break;case 3:r=t.readString(),e.setRoleId(r);break;case 4:r=t.readString(),e.setRoleName(r);break;default:t.skipField()}return e},o._Account.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Account.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Account.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getId()).length>0&&t.writeString(1,r),(r=e.getAccountName()).length>0&&t.writeString(2,r),(r=e.getRoleId()).length>0&&t.writeString(3,r),(r=e.getRoleName()).length>0&&t.writeString(4,r)},o._Account.prototype.getId=function(){return t.Message.getFieldWithDefault(this,1,"")},o._Account.prototype.setId=function(e){return t.Message.setProto3StringField(this,1,e)},o._Account.prototype.getAccountName=function(){return t.Message.getFieldWithDefault(this,2,"")},o._Account.prototype.setAccountName=function(e){return t.Message.setProto3StringField(this,2,e)},o._Account.prototype.getRoleId=function(){return t.Message.getFieldWithDefault(this,3,"")},o._Account.prototype.setRoleId=function(e){return t.Message.setProto3StringField(this,3,e)},o._Account.prototype.getRoleName=function(){return t.Message.getFieldWithDefault(this,4,"")},o._Account.prototype.setRoleName=function(e){return t.Message.setProto3StringField(this,4,e)},t.Message.GENERATE_TO_OBJECT&&(o._GetAccountSessionTokenRequest.prototype.toObject=function(e){return o._GetAccountSessionTokenRequest.toObject(e,this)},o._GetAccountSessionTokenRequest.toObject=function(e,r){var o={accountId:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._GetAccountSessionTokenRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetAccountSessionTokenRequest;return o._GetAccountSessionTokenRequest.deserializeBinaryFromReader(s,r)},o._GetAccountSessionTokenRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setAccountId(r)}else t.skipField();return e},o._GetAccountSessionTokenRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetAccountSessionTokenRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetAccountSessionTokenRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getAccountId()).length>0&&t.writeString(1,r)},o._GetAccountSessionTokenRequest.prototype.getAccountId=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GetAccountSessionTokenRequest.prototype.setAccountId=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._GetAccountSessionTokenResponse.prototype.toObject=function(e){return o._GetAccountSessionTokenResponse.toObject(e,this)},o._GetAccountSessionTokenResponse.toObject=function(e,r){var o,n={accountSessionToken:t.Message.getFieldWithDefault(r,1,""),permissions:(o=r.getPermissions())&&s.PermissionSet.toObject(e,o)};return e&&(n.$jspbMessageInstance=r),n}),o._GetAccountSessionTokenResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetAccountSessionTokenResponse;return o._GetAccountSessionTokenResponse.deserializeBinaryFromReader(s,r)},o._GetAccountSessionTokenResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setAccountSessionToken(r);break;case 2:r=new s.PermissionSet,t.readMessage(r,s.PermissionSet.deserializeBinaryFromReader),e.setPermissions(r);break;default:t.skipField()}return e},o._GetAccountSessionTokenResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetAccountSessionTokenResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetAccountSessionTokenResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAccountSessionToken()).length>0&&t.writeString(1,r),null!=(r=e.getPermissions())&&t.writeMessage(2,r,s.PermissionSet.serializeBinaryToWriter)},o._GetAccountSessionTokenResponse.prototype.getAccountSessionToken=function(){return t.Message.getFieldWithDefault(this,1,"")},o._GetAccountSessionTokenResponse.prototype.setAccountSessionToken=function(e){return t.Message.setProto3StringField(this,1,e)},o._GetAccountSessionTokenResponse.prototype.getPermissions=function(){return t.Message.getWrapperField(this,s.PermissionSet,2)},o._GetAccountSessionTokenResponse.prototype.setPermissions=function(e){return t.Message.setWrapperField(this,2,e)},o._GetAccountSessionTokenResponse.prototype.clearPermissions=function(){return this.setPermissions(void 0)},o._GetAccountSessionTokenResponse.prototype.hasPermissions=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._InviteMemberRequest.prototype.toObject=function(e){return o._InviteMemberRequest.toObject(e,this)},o._InviteMemberRequest.toObject=function(e,r){var o={userName:t.Message.getFieldWithDefault(r,1,""),roleId:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o._InviteMemberRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._InviteMemberRequest;return o._InviteMemberRequest.deserializeBinaryFromReader(s,r)},o._InviteMemberRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setUserName(r);break;case 2:r=t.readString(),e.setRoleId(r);break;default:t.skipField()}return e},o._InviteMemberRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._InviteMemberRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._InviteMemberRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getUserName()).length>0&&t.writeString(1,r),(r=e.getRoleId()).length>0&&t.writeString(2,r)},o._InviteMemberRequest.prototype.getUserName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._InviteMemberRequest.prototype.setUserName=function(e){return t.Message.setProto3StringField(this,1,e)},o._InviteMemberRequest.prototype.getRoleId=function(){return t.Message.getFieldWithDefault(this,2,"")},o._InviteMemberRequest.prototype.setRoleId=function(e){return t.Message.setProto3StringField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._InviteMemberResponse.prototype.toObject=function(e){return o._InviteMemberResponse.toObject(e,this)},o._InviteMemberResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._InviteMemberResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._InviteMemberResponse;return o._InviteMemberResponse.deserializeBinaryFromReader(s,r)},o._InviteMemberResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._InviteMemberResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._InviteMemberResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._InviteMemberResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._AcceptInvitationRequest.prototype.toObject=function(e){return o._AcceptInvitationRequest.toObject(e,this)},o._AcceptInvitationRequest.toObject=function(e,r){var o={invitationId:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._AcceptInvitationRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._AcceptInvitationRequest;return o._AcceptInvitationRequest.deserializeBinaryFromReader(s,r)},o._AcceptInvitationRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setInvitationId(r)}else t.skipField();return e},o._AcceptInvitationRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._AcceptInvitationRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._AcceptInvitationRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getInvitationId()).length>0&&t.writeString(1,r)},o._AcceptInvitationRequest.prototype.getInvitationId=function(){return t.Message.getFieldWithDefault(this,1,"")},o._AcceptInvitationRequest.prototype.setInvitationId=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._AcceptInvitationResponse.prototype.toObject=function(e){return o._AcceptInvitationResponse.toObject(e,this)},o._AcceptInvitationResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._AcceptInvitationResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._AcceptInvitationResponse;return o._AcceptInvitationResponse.deserializeBinaryFromReader(s,r)},o._AcceptInvitationResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._AcceptInvitationResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._AcceptInvitationResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._AcceptInvitationResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._RejectInvitationRequest.prototype.toObject=function(e){return o._RejectInvitationRequest.toObject(e,this)},o._RejectInvitationRequest.toObject=function(e,r){var o={invitationId:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._RejectInvitationRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RejectInvitationRequest;return o._RejectInvitationRequest.deserializeBinaryFromReader(s,r)},o._RejectInvitationRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setInvitationId(r)}else t.skipField();return e},o._RejectInvitationRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RejectInvitationRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RejectInvitationRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getInvitationId()).length>0&&t.writeString(1,r)},o._RejectInvitationRequest.prototype.getInvitationId=function(){return t.Message.getFieldWithDefault(this,1,"")},o._RejectInvitationRequest.prototype.setInvitationId=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._RejectInvitationResponse.prototype.toObject=function(e){return o._RejectInvitationResponse.toObject(e,this)},o._RejectInvitationResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._RejectInvitationResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RejectInvitationResponse;return o._RejectInvitationResponse.deserializeBinaryFromReader(s,r)},o._RejectInvitationResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._RejectInvitationResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RejectInvitationResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RejectInvitationResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._ListInvitationsForAccountRequest.prototype.toObject=function(e){return o._ListInvitationsForAccountRequest.toObject(e,this)},o._ListInvitationsForAccountRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListInvitationsForAccountRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListInvitationsForAccountRequest;return o._ListInvitationsForAccountRequest.deserializeBinaryFromReader(s,r)},o._ListInvitationsForAccountRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListInvitationsForAccountRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListInvitationsForAccountRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListInvitationsForAccountRequest.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._Invitation.prototype.toObject=function(e){return o._Invitation.toObject(e,this)},o._Invitation.toObject=function(e,r){var s,n={id:t.Message.getFieldWithDefault(r,1,""),member:(s=r.getMember())&&o._Member.toObject(e,s),accountMember:(s=r.getAccountMember())&&o._AccountMember.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o._Invitation.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Invitation;return o._Invitation.deserializeBinaryFromReader(s,r)},o._Invitation.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setId(r);break;case 2:r=new o._Member,t.readMessage(r,o._Member.deserializeBinaryFromReader),e.setMember(r);break;case 3:r=new o._AccountMember,t.readMessage(r,o._AccountMember.deserializeBinaryFromReader),e.setAccountMember(r);break;default:t.skipField()}return e},o._Invitation.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Invitation.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Invitation.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getId()).length>0&&t.writeString(1,r),null!=(r=e.getMember())&&t.writeMessage(2,r,o._Member.serializeBinaryToWriter),null!=(r=e.getAccountMember())&&t.writeMessage(3,r,o._AccountMember.serializeBinaryToWriter)},o._Invitation.prototype.getId=function(){return t.Message.getFieldWithDefault(this,1,"")},o._Invitation.prototype.setId=function(e){return t.Message.setProto3StringField(this,1,e)},o._Invitation.prototype.getMember=function(){return t.Message.getWrapperField(this,o._Member,2)},o._Invitation.prototype.setMember=function(e){return t.Message.setWrapperField(this,2,e)},o._Invitation.prototype.clearMember=function(){return this.setMember(void 0)},o._Invitation.prototype.hasMember=function(){return null!=t.Message.getField(this,2)},o._Invitation.prototype.getAccountMember=function(){return t.Message.getWrapperField(this,o._AccountMember,3)},o._Invitation.prototype.setAccountMember=function(e){return t.Message.setWrapperField(this,3,e)},o._Invitation.prototype.clearAccountMember=function(){return this.setAccountMember(void 0)},o._Invitation.prototype.hasAccountMember=function(){return null!=t.Message.getField(this,3)},o._ListInvitationsForAccountResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._ListInvitationsForAccountResponse.prototype.toObject=function(e){return o._ListInvitationsForAccountResponse.toObject(e,this)},o._ListInvitationsForAccountResponse.toObject=function(e,r){var s={invitationsList:t.Message.toObjectList(r.getInvitationsList(),o._Invitation.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._ListInvitationsForAccountResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListInvitationsForAccountResponse;return o._ListInvitationsForAccountResponse.deserializeBinaryFromReader(s,r)},o._ListInvitationsForAccountResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o._Invitation;t.readMessage(r,o._Invitation.deserializeBinaryFromReader),e.addInvitations(r)}else t.skipField();return e},o._ListInvitationsForAccountResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListInvitationsForAccountResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListInvitationsForAccountResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getInvitationsList()).length>0&&t.writeRepeatedMessage(1,r,o._Invitation.serializeBinaryToWriter)},o._ListInvitationsForAccountResponse.prototype.getInvitationsList=function(){return t.Message.getRepeatedWrapperField(this,o._Invitation,1)},o._ListInvitationsForAccountResponse.prototype.setInvitationsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._ListInvitationsForAccountResponse.prototype.addInvitations=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._Invitation,r)},o._ListInvitationsForAccountResponse.prototype.clearInvitationsList=function(){return this.setInvitationsList([])},t.Message.GENERATE_TO_OBJECT&&(o._RevokeInvitationRequest.prototype.toObject=function(e){return o._RevokeInvitationRequest.toObject(e,this)},o._RevokeInvitationRequest.toObject=function(e,r){var o={invitationId:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._RevokeInvitationRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RevokeInvitationRequest;return o._RevokeInvitationRequest.deserializeBinaryFromReader(s,r)},o._RevokeInvitationRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setInvitationId(r)}else t.skipField();return e},o._RevokeInvitationRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RevokeInvitationRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RevokeInvitationRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getInvitationId()).length>0&&t.writeString(1,r)},o._RevokeInvitationRequest.prototype.getInvitationId=function(){return t.Message.getFieldWithDefault(this,1,"")},o._RevokeInvitationRequest.prototype.setInvitationId=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._RevokeInvitationResponse.prototype.toObject=function(e){return o._RevokeInvitationResponse.toObject(e,this)},o._RevokeInvitationResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._RevokeInvitationResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RevokeInvitationResponse;return o._RevokeInvitationResponse.deserializeBinaryFromReader(s,r)},o._RevokeInvitationResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._RevokeInvitationResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RevokeInvitationResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RevokeInvitationResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._RemoveMemberRequest.prototype.toObject=function(e){return o._RemoveMemberRequest.toObject(e,this)},o._RemoveMemberRequest.toObject=function(e,r){var o={userName:t.Message.getFieldWithDefault(r,1,"")};return e&&(o.$jspbMessageInstance=r),o}),o._RemoveMemberRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RemoveMemberRequest;return o._RemoveMemberRequest.deserializeBinaryFromReader(s,r)},o._RemoveMemberRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setUserName(r)}else t.skipField();return e},o._RemoveMemberRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RemoveMemberRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RemoveMemberRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getUserName()).length>0&&t.writeString(1,r)},o._RemoveMemberRequest.prototype.getUserName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._RemoveMemberRequest.prototype.setUserName=function(e){return t.Message.setProto3StringField(this,1,e)},t.Message.GENERATE_TO_OBJECT&&(o._RemoveMemberResponse.prototype.toObject=function(e){return o._RemoveMemberResponse.toObject(e,this)},o._RemoveMemberResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._RemoveMemberResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._RemoveMemberResponse;return o._RemoveMemberResponse.deserializeBinaryFromReader(s,r)},o._RemoveMemberResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._RemoveMemberResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._RemoveMemberResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._RemoveMemberResponse.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._ListMembersRequest.prototype.toObject=function(e){return o._ListMembersRequest.toObject(e,this)},o._ListMembersRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListMembersRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListMembersRequest;return o._ListMembersRequest.deserializeBinaryFromReader(s,r)},o._ListMembersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListMembersRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListMembersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListMembersRequest.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o._Member.prototype.toObject=function(e){return o._Member.toObject(e,this)},o._Member.toObject=function(e,r){var o={userName:t.Message.getFieldWithDefault(r,1,""),role:t.Message.getFieldWithDefault(r,2,0)};return e&&(o.$jspbMessageInstance=r),o}),o._Member.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Member;return o._Member.deserializeBinaryFromReader(s,r)},o._Member.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setUserName(r);break;case 2:r=t.readEnum(),e.setRole(r);break;default:t.skipField()}return e},o._Member.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Member.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Member.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getUserName()).length>0&&t.writeString(1,r),0!==(r=e.getRole())&&t.writeEnum(2,r)},o._Member.prototype.getUserName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._Member.prototype.setUserName=function(e){return t.Message.setProto3StringField(this,1,e)},o._Member.prototype.getRole=function(){return t.Message.getFieldWithDefault(this,2,0)},o._Member.prototype.setRole=function(e){return t.Message.setProto3EnumField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._AccountMember.prototype.toObject=function(e){return o._AccountMember.toObject(e,this)},o._AccountMember.toObject=function(e,r){var o={userName:t.Message.getFieldWithDefault(r,1,""),roleId:t.Message.getFieldWithDefault(r,2,""),roleName:t.Message.getFieldWithDefault(r,3,"")};return e&&(o.$jspbMessageInstance=r),o}),o._AccountMember.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._AccountMember;return o._AccountMember.deserializeBinaryFromReader(s,r)},o._AccountMember.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setUserName(r);break;case 2:r=t.readString(),e.setRoleId(r);break;case 3:r=t.readString(),e.setRoleName(r);break;default:t.skipField()}return e},o._AccountMember.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._AccountMember.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._AccountMember.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getUserName()).length>0&&t.writeString(1,r),(r=e.getRoleId()).length>0&&t.writeString(2,r),(r=e.getRoleName()).length>0&&t.writeString(3,r)},o._AccountMember.prototype.getUserName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._AccountMember.prototype.setUserName=function(e){return t.Message.setProto3StringField(this,1,e)},o._AccountMember.prototype.getRoleId=function(){return t.Message.getFieldWithDefault(this,2,"")},o._AccountMember.prototype.setRoleId=function(e){return t.Message.setProto3StringField(this,2,e)},o._AccountMember.prototype.getRoleName=function(){return t.Message.getFieldWithDefault(this,3,"")},o._AccountMember.prototype.setRoleName=function(e){return t.Message.setProto3StringField(this,3,e)},o._ListMembersResponse.repeatedFields_=[1,2],t.Message.GENERATE_TO_OBJECT&&(o._ListMembersResponse.prototype.toObject=function(e){return o._ListMembersResponse.toObject(e,this)},o._ListMembersResponse.toObject=function(e,r){var s={membersList:t.Message.toObjectList(r.getMembersList(),o._Member.toObject,e),accountMembersList:t.Message.toObjectList(r.getAccountMembersList(),o._AccountMember.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._ListMembersResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListMembersResponse;return o._ListMembersResponse.deserializeBinaryFromReader(s,r)},o._ListMembersResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new o._Member;t.readMessage(r,o._Member.deserializeBinaryFromReader),e.addMembers(r);break;case 2:r=new o._AccountMember,t.readMessage(r,o._AccountMember.deserializeBinaryFromReader),e.addAccountMembers(r);break;default:t.skipField()}return e},o._ListMembersResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListMembersResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListMembersResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getMembersList()).length>0&&t.writeRepeatedMessage(1,r,o._Member.serializeBinaryToWriter),(r=e.getAccountMembersList()).length>0&&t.writeRepeatedMessage(2,r,o._AccountMember.serializeBinaryToWriter)},o._ListMembersResponse.prototype.getMembersList=function(){return t.Message.getRepeatedWrapperField(this,o._Member,1)},o._ListMembersResponse.prototype.setMembersList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._ListMembersResponse.prototype.addMembers=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o._Member,r)},o._ListMembersResponse.prototype.clearMembersList=function(){return this.setMembersList([])},o._ListMembersResponse.prototype.getAccountMembersList=function(){return t.Message.getRepeatedWrapperField(this,o._AccountMember,2)},o._ListMembersResponse.prototype.setAccountMembersList=function(e){return t.Message.setRepeatedWrapperField(this,2,e)},o._ListMembersResponse.prototype.addAccountMembers=function(e,r){return t.Message.addToRepeatedWrapperField(this,2,e,o._AccountMember,r)},o._ListMembersResponse.prototype.clearAccountMembersList=function(){return this.setAccountMembersList([])},t.Message.GENERATE_TO_OBJECT&&(o._GetEndpointsForAccountRequest.prototype.toObject=function(e){return o._GetEndpointsForAccountRequest.toObject(e,this)},o._GetEndpointsForAccountRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._GetEndpointsForAccountRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetEndpointsForAccountRequest;return o._GetEndpointsForAccountRequest.deserializeBinaryFromReader(s,r)},o._GetEndpointsForAccountRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._GetEndpointsForAccountRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetEndpointsForAccountRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetEndpointsForAccountRequest.serializeBinaryToWriter=function(e,t){},o._GetEndpointsForAccountResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._GetEndpointsForAccountResponse.prototype.toObject=function(e){return o._GetEndpointsForAccountResponse.toObject(e,this)},o._GetEndpointsForAccountResponse.toObject=function(e,r){var s={endpointsList:t.Message.toObjectList(r.getEndpointsList(),o.Endpoint.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._GetEndpointsForAccountResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._GetEndpointsForAccountResponse;return o._GetEndpointsForAccountResponse.deserializeBinaryFromReader(s,r)},o._GetEndpointsForAccountResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o.Endpoint;t.readMessage(r,o.Endpoint.deserializeBinaryFromReader),e.addEndpoints(r)}else t.skipField();return e},o._GetEndpointsForAccountResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._GetEndpointsForAccountResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._GetEndpointsForAccountResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getEndpointsList()).length>0&&t.writeRepeatedMessage(1,r,o.Endpoint.serializeBinaryToWriter)},o._GetEndpointsForAccountResponse.prototype.getEndpointsList=function(){return t.Message.getRepeatedWrapperField(this,o.Endpoint,1)},o._GetEndpointsForAccountResponse.prototype.setEndpointsList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._GetEndpointsForAccountResponse.prototype.addEndpoints=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o.Endpoint,r)},o._GetEndpointsForAccountResponse.prototype.clearEndpointsList=function(){return this.setEndpointsList([])},t.Message.GENERATE_TO_OBJECT&&(o.Endpoint.prototype.toObject=function(e){return o.Endpoint.toObject(e,this)},o.Endpoint.toObject=function(e,r){var o={friendlyName:t.Message.getFieldWithDefault(r,1,""),domainName:t.Message.getFieldWithDefault(r,2,""),region:t.Message.getFieldWithDefault(r,3,"")};return e&&(o.$jspbMessageInstance=r),o}),o.Endpoint.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.Endpoint;return o.Endpoint.deserializeBinaryFromReader(s,r)},o.Endpoint.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setFriendlyName(r);break;case 2:r=t.readString(),e.setDomainName(r);break;case 3:r=t.readString(),e.setRegion(r);break;default:t.skipField()}return e},o.Endpoint.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.Endpoint.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.Endpoint.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getFriendlyName()).length>0&&t.writeString(1,r),(r=e.getDomainName()).length>0&&t.writeString(2,r),(r=e.getRegion()).length>0&&t.writeString(3,r)},o.Endpoint.prototype.getFriendlyName=function(){return t.Message.getFieldWithDefault(this,1,"")},o.Endpoint.prototype.setFriendlyName=function(e){return t.Message.setProto3StringField(this,1,e)},o.Endpoint.prototype.getDomainName=function(){return t.Message.getFieldWithDefault(this,2,"")},o.Endpoint.prototype.setDomainName=function(e){return t.Message.setProto3StringField(this,2,e)},o.Endpoint.prototype.getRegion=function(){return t.Message.getFieldWithDefault(this,3,"")},o.Endpoint.prototype.setRegion=function(e){return t.Message.setProto3StringField(this,3,e)},t.Message.GENERATE_TO_OBJECT&&(o._ListRolesForAccountRequest.prototype.toObject=function(e){return o._ListRolesForAccountRequest.toObject(e,this)},o._ListRolesForAccountRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._ListRolesForAccountRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRolesForAccountRequest;return o._ListRolesForAccountRequest.deserializeBinaryFromReader(s,r)},o._ListRolesForAccountRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._ListRolesForAccountRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRolesForAccountRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRolesForAccountRequest.serializeBinaryToWriter=function(e,t){},t.Message.GENERATE_TO_OBJECT&&(o.AccountRole.prototype.toObject=function(e){return o.AccountRole.toObject(e,this)},o.AccountRole.toObject=function(e,r){var o,n={roleId:t.Message.getFieldWithDefault(r,1,""),roleName:t.Message.getFieldWithDefault(r,2,""),permissions:(o=r.getPermissions())&&s.PermissionSet.toObject(e,o),roleType:t.Message.getFieldWithDefault(r,4,0)};return e&&(n.$jspbMessageInstance=r),n}),o.AccountRole.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o.AccountRole;return o.AccountRole.deserializeBinaryFromReader(s,r)},o.AccountRole.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setRoleId(r);break;case 2:r=t.readString(),e.setRoleName(r);break;case 3:r=new s.PermissionSet,t.readMessage(r,s.PermissionSet.deserializeBinaryFromReader),e.setPermissions(r);break;case 4:r=t.readEnum(),e.setRoleType(r);break;default:t.skipField()}return e},o.AccountRole.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o.AccountRole.serializeBinaryToWriter(this,e),e.getResultBuffer()},o.AccountRole.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRoleId()).length>0&&t.writeString(1,r),(r=e.getRoleName()).length>0&&t.writeString(2,r),null!=(r=e.getPermissions())&&t.writeMessage(3,r,s.PermissionSet.serializeBinaryToWriter),0!==(r=e.getRoleType())&&t.writeEnum(4,r)},o.AccountRole.prototype.getRoleId=function(){return t.Message.getFieldWithDefault(this,1,"")},o.AccountRole.prototype.setRoleId=function(e){return t.Message.setProto3StringField(this,1,e)},o.AccountRole.prototype.getRoleName=function(){return t.Message.getFieldWithDefault(this,2,"")},o.AccountRole.prototype.setRoleName=function(e){return t.Message.setProto3StringField(this,2,e)},o.AccountRole.prototype.getPermissions=function(){return t.Message.getWrapperField(this,s.PermissionSet,3)},o.AccountRole.prototype.setPermissions=function(e){return t.Message.setWrapperField(this,3,e)},o.AccountRole.prototype.clearPermissions=function(){return this.setPermissions(void 0)},o.AccountRole.prototype.hasPermissions=function(){return null!=t.Message.getField(this,3)},o.AccountRole.prototype.getRoleType=function(){return t.Message.getFieldWithDefault(this,4,0)},o.AccountRole.prototype.setRoleType=function(e){return t.Message.setProto3EnumField(this,4,e)},o._ListRolesForAccountResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(o._ListRolesForAccountResponse.prototype.toObject=function(e){return o._ListRolesForAccountResponse.toObject(e,this)},o._ListRolesForAccountResponse.toObject=function(e,r){var s={rolesList:t.Message.toObjectList(r.getRolesList(),o.AccountRole.toObject,e)};return e&&(s.$jspbMessageInstance=r),s}),o._ListRolesForAccountResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._ListRolesForAccountResponse;return o._ListRolesForAccountResponse.deserializeBinaryFromReader(s,r)},o._ListRolesForAccountResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new o.AccountRole;t.readMessage(r,o.AccountRole.deserializeBinaryFromReader),e.addRoles(r)}else t.skipField();return e},o._ListRolesForAccountResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._ListRolesForAccountResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._ListRolesForAccountResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getRolesList()).length>0&&t.writeRepeatedMessage(1,r,o.AccountRole.serializeBinaryToWriter)},o._ListRolesForAccountResponse.prototype.getRolesList=function(){return t.Message.getRepeatedWrapperField(this,o.AccountRole,1)},o._ListRolesForAccountResponse.prototype.setRolesList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},o._ListRolesForAccountResponse.prototype.addRoles=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,o.AccountRole,r)},o._ListRolesForAccountResponse.prototype.clearRolesList=function(){return this.setRolesList([])},t.Message.GENERATE_TO_OBJECT&&(o._SetMemberRoleRequest.prototype.toObject=function(e){return o._SetMemberRoleRequest.toObject(e,this)},o._SetMemberRoleRequest.toObject=function(e,r){var o={userName:t.Message.getFieldWithDefault(r,1,""),desiredRoleId:t.Message.getFieldWithDefault(r,2,"")};return e&&(o.$jspbMessageInstance=r),o}),o._SetMemberRoleRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetMemberRoleRequest;return o._SetMemberRoleRequest.deserializeBinaryFromReader(s,r)},o._SetMemberRoleRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setUserName(r);break;case 2:r=t.readString(),e.setDesiredRoleId(r);break;default:t.skipField()}return e},o._SetMemberRoleRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetMemberRoleRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetMemberRoleRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getUserName()).length>0&&t.writeString(1,r),(r=e.getDesiredRoleId()).length>0&&t.writeString(2,r)},o._SetMemberRoleRequest.prototype.getUserName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SetMemberRoleRequest.prototype.setUserName=function(e){return t.Message.setProto3StringField(this,1,e)},o._SetMemberRoleRequest.prototype.getDesiredRoleId=function(){return t.Message.getFieldWithDefault(this,2,"")},o._SetMemberRoleRequest.prototype.setDesiredRoleId=function(e){return t.Message.setProto3StringField(this,2,e)},t.Message.GENERATE_TO_OBJECT&&(o._SetMemberRoleResponse.prototype.toObject=function(e){return o._SetMemberRoleResponse.toObject(e,this)},o._SetMemberRoleResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._SetMemberRoleResponse.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SetMemberRoleResponse;return o._SetMemberRoleResponse.deserializeBinaryFromReader(s,r)},o._SetMemberRoleResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},o._SetMemberRoleResponse.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SetMemberRoleResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SetMemberRoleResponse.serializeBinaryToWriter=function(e,t){},o.Role={OWNER:0,OPERATOR:1},o.RoleType={SYSTEM:0,CUSTOM:1},r.object.extend(e,o)),global_admin_pb;var e,t,r,o,s}function requireGlobal_adminServiceClientPb(){if(hasRequiredGlobal_adminServiceClientPb)return Global_adminServiceClientPb;hasRequiredGlobal_adminServiceClientPb=1;var e=Global_adminServiceClientPb&&Global_adminServiceClientPb.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=Global_adminServiceClientPb&&Global_adminServiceClientPb.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Global_adminServiceClientPb&&Global_adminServiceClientPb.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};Object.defineProperty(Global_adminServiceClientPb,"__esModule",{value:!0}),Global_adminServiceClientPb.GlobalAdminClient=void 0;const o=r(requireGrpcWeb()),s=r(requireGlobal_admin_pb());return Global_adminServiceClientPb.GlobalAdminClient=class{constructor(e,t,r){this.methodDescriptorGetAccounts=new o.MethodDescriptor("/global_admin.GlobalAdmin/GetAccounts",o.MethodType.UNARY,s._GetAccountsRequest,s._GetAccountsResponse,(e=>e.serializeBinary()),s._GetAccountsResponse.deserializeBinary),this.methodDescriptorGetInvitationsForUser=new o.MethodDescriptor("/global_admin.GlobalAdmin/GetInvitationsForUser",o.MethodType.UNARY,s._GetInvitationsForUserRequest,s._GetInvitationsForUserResponse,(e=>e.serializeBinary()),s._GetInvitationsForUserResponse.deserializeBinary),this.methodDescriptorGetAccountSessionToken=new o.MethodDescriptor("/global_admin.GlobalAdmin/GetAccountSessionToken",o.MethodType.UNARY,s._GetAccountSessionTokenRequest,s._GetAccountSessionTokenResponse,(e=>e.serializeBinary()),s._GetAccountSessionTokenResponse.deserializeBinary),this.methodDescriptorRemoveMember=new o.MethodDescriptor("/global_admin.GlobalAdmin/RemoveMember",o.MethodType.UNARY,s._RemoveMemberRequest,s._RemoveMemberResponse,(e=>e.serializeBinary()),s._RemoveMemberResponse.deserializeBinary),this.methodDescriptorListMembers=new o.MethodDescriptor("/global_admin.GlobalAdmin/ListMembers",o.MethodType.UNARY,s._ListMembersRequest,s._ListMembersResponse,(e=>e.serializeBinary()),s._ListMembersResponse.deserializeBinary),this.methodDescriptorGetEndpointsForAccount=new o.MethodDescriptor("/global_admin.GlobalAdmin/GetEndpointsForAccount",o.MethodType.UNARY,s._GetEndpointsForAccountRequest,s._GetEndpointsForAccountResponse,(e=>e.serializeBinary()),s._GetEndpointsForAccountResponse.deserializeBinary),this.methodDescriptorSetAccountName=new o.MethodDescriptor("/global_admin.GlobalAdmin/SetAccountName",o.MethodType.UNARY,s._SetAccountNameRequest,s._SetAccountNameResponse,(e=>e.serializeBinary()),s._SetAccountNameResponse.deserializeBinary),this.methodDescriptorInviteMember=new o.MethodDescriptor("/global_admin.GlobalAdmin/InviteMember",o.MethodType.UNARY,s._InviteMemberRequest,s._InviteMemberResponse,(e=>e.serializeBinary()),s._InviteMemberResponse.deserializeBinary),this.methodDescriptorAcceptInvitation=new o.MethodDescriptor("/global_admin.GlobalAdmin/AcceptInvitation",o.MethodType.UNARY,s._AcceptInvitationRequest,s._AcceptInvitationResponse,(e=>e.serializeBinary()),s._AcceptInvitationResponse.deserializeBinary),this.methodDescriptorRejectInvitation=new o.MethodDescriptor("/global_admin.GlobalAdmin/RejectInvitation",o.MethodType.UNARY,s._RejectInvitationRequest,s._RejectInvitationResponse,(e=>e.serializeBinary()),s._RejectInvitationResponse.deserializeBinary),this.methodDescriptorListInvitationsForAccount=new o.MethodDescriptor("/global_admin.GlobalAdmin/ListInvitationsForAccount",o.MethodType.UNARY,s._ListInvitationsForAccountRequest,s._ListInvitationsForAccountResponse,(e=>e.serializeBinary()),s._ListInvitationsForAccountResponse.deserializeBinary),this.methodDescriptorRevokeInvitation=new o.MethodDescriptor("/global_admin.GlobalAdmin/RevokeInvitation",o.MethodType.UNARY,s._RevokeInvitationRequest,s._RevokeInvitationResponse,(e=>e.serializeBinary()),s._RevokeInvitationResponse.deserializeBinary),this.methodDescriptorListRolesForAccount=new o.MethodDescriptor("/global_admin.GlobalAdmin/ListRolesForAccount",o.MethodType.UNARY,s._ListRolesForAccountRequest,s._ListRolesForAccountResponse,(e=>e.serializeBinary()),s._ListRolesForAccountResponse.deserializeBinary),this.methodDescriptorSetMemberRole=new o.MethodDescriptor("/global_admin.GlobalAdmin/SetMemberRole",o.MethodType.UNARY,s._SetMemberRoleRequest,s._SetMemberRoleResponse,(e=>e.serializeBinary()),s._SetMemberRoleResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}getAccounts(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/GetAccounts",e,t||{},this.methodDescriptorGetAccounts,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/GetAccounts",e,t||{},this.methodDescriptorGetAccounts)}getInvitationsForUser(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/GetInvitationsForUser",e,t||{},this.methodDescriptorGetInvitationsForUser,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/GetInvitationsForUser",e,t||{},this.methodDescriptorGetInvitationsForUser)}getAccountSessionToken(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/GetAccountSessionToken",e,t||{},this.methodDescriptorGetAccountSessionToken,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/GetAccountSessionToken",e,t||{},this.methodDescriptorGetAccountSessionToken)}removeMember(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/RemoveMember",e,t||{},this.methodDescriptorRemoveMember,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/RemoveMember",e,t||{},this.methodDescriptorRemoveMember)}listMembers(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/ListMembers",e,t||{},this.methodDescriptorListMembers,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/ListMembers",e,t||{},this.methodDescriptorListMembers)}getEndpointsForAccount(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/GetEndpointsForAccount",e,t||{},this.methodDescriptorGetEndpointsForAccount,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/GetEndpointsForAccount",e,t||{},this.methodDescriptorGetEndpointsForAccount)}setAccountName(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/SetAccountName",e,t||{},this.methodDescriptorSetAccountName,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/SetAccountName",e,t||{},this.methodDescriptorSetAccountName)}inviteMember(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/InviteMember",e,t||{},this.methodDescriptorInviteMember,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/InviteMember",e,t||{},this.methodDescriptorInviteMember)}acceptInvitation(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/AcceptInvitation",e,t||{},this.methodDescriptorAcceptInvitation,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/AcceptInvitation",e,t||{},this.methodDescriptorAcceptInvitation)}rejectInvitation(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/RejectInvitation",e,t||{},this.methodDescriptorRejectInvitation,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/RejectInvitation",e,t||{},this.methodDescriptorRejectInvitation)}listInvitationsForAccount(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/ListInvitationsForAccount",e,t||{},this.methodDescriptorListInvitationsForAccount,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/ListInvitationsForAccount",e,t||{},this.methodDescriptorListInvitationsForAccount)}revokeInvitation(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/RevokeInvitation",e,t||{},this.methodDescriptorRevokeInvitation,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/RevokeInvitation",e,t||{},this.methodDescriptorRevokeInvitation)}listRolesForAccount(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/ListRolesForAccount",e,t||{},this.methodDescriptorListRolesForAccount,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/ListRolesForAccount",e,t||{},this.methodDescriptorListRolesForAccount)}setMemberRole(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/SetMemberRole",e,t||{},this.methodDescriptorSetMemberRole,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/SetMemberRole",e,t||{},this.methodDescriptorSetMemberRole)}},Global_adminServiceClientPb}function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1;var e=dist&&dist.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=dist&&dist.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=dist&&dist.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};return Object.defineProperty(dist,"__esModule",{value:!0}),dist.globaladmin=dist.webhook=dist.leaderboard=dist.ping=dist.token=dist.auth=dist.control=dist.cache=void 0,dist.cache=r(requireCacheclientServiceClientPb()),dist.control=r(requireControlclientServiceClientPb()),dist.auth=r(requireAuthServiceClientPb()),dist.token=r(requireTokenServiceClientPb()),dist.ping=r(requireCachepingServiceClientPb()),dist.leaderboard=r(requireLeaderboardServiceClientPb()),dist.webhook=r(requireWebhookServiceClientPb()),dist.globaladmin=r(requireGlobal_adminServiceClientPb()),dist}var cacheServiceErrorMapper={},src={},cacheGet={},responseBase={},hasRequiredResponseBase;function requireResponseBase(){if(hasRequiredResponseBase)return responseBase;hasRequiredResponseBase=1,Object.defineProperty(responseBase,"__esModule",{value:!0}),responseBase.ResponseNotFound=responseBase.ResponseFound=responseBase.ResponseSuccess=responseBase.BaseResponseSubscription=responseBase.BaseResponseSuccess=responseBase.ResponseMiss=responseBase.BaseResponseMiss=responseBase.ResponseHit=responseBase.ResponseError=responseBase.BaseResponseError=responseBase.ResponseBase=void 0;class e{toString(){return this.constructor.name}}responseBase.ResponseBase=e;responseBase.BaseResponseError=class extends e{constructor(e){super(),this._innerException=e}message(){return this._innerException.wrappedErrorMessage()}innerException(){return this._innerException}errorCode(){return this._innerException.errorCode()}toString(){return this.message()}},responseBase.ResponseError=function(e){return class extends e{message(){return this._innerException.wrappedErrorMessage()}innerException(){return this._innerException}errorCode(){return this._innerException.errorCode()}toString(){return this.message()}}},responseBase.ResponseHit=function(e){return class extends e{}};responseBase.BaseResponseMiss=class extends e{constructor(){super(...arguments),this.is_miss=!0}},responseBase.ResponseMiss=function(e){return class extends e{constructor(){super(...arguments),this.is_miss=!0}}};responseBase.BaseResponseSuccess=class extends e{constructor(){super(...arguments),this.is_success=!0}};return responseBase.BaseResponseSubscription=class extends e{constructor(){super(...arguments),this.is_subscribed=!0}},responseBase.ResponseSuccess=function(e){return class extends e{constructor(){super(...arguments),this.is_success=!0}}},responseBase.ResponseFound=function(e){return class extends e{}},responseBase.ResponseNotFound=function(e){return class extends e{}},responseBase}var utils$3={},auth$3={},errors$1={},errors={},hasRequiredErrors$1,hasRequiredErrors;function requireErrors$1(){return hasRequiredErrors$1||(hasRequiredErrors$1=1,function(e){var t,r,o;Object.defineProperty(e,"__esModule",{value:!0}),e.ClientResourceExhaustedError=e.UnknownServiceError=e.UnknownError=e.TimeoutError=e.ServerUnavailableError=e.PermissionError=e.StoreItemNotFoundError=e.StoreNotFoundError=e.CacheNotFoundError=e.LimitExceededError=e.InvalidArgumentError=e.InternalServerError=e.FailedPreconditionError=e.ConnectionError=e.CancelledError=e.BadRequestError=e.AuthenticationError=e.StoreAlreadyExistsError=e.CacheAlreadyExistsError=e.SdkError=e.MomentoErrorTransportDetails=e.MomentoGrpcErrorDetails=e.MomentoErrorCode=void 0,(r=t=e.MomentoErrorCode||(e.MomentoErrorCode={})).INVALID_ARGUMENT_ERROR="INVALID_ARGUMENT_ERROR",r.UNKNOWN_SERVICE_ERROR="UNKNOWN_SERVICE_ERROR",r.CACHE_ALREADY_EXISTS_ERROR="ALREADY_EXISTS_ERROR",r.ALREADY_EXISTS_ERROR="ALREADY_EXISTS_ERROR",r.STORE_ALREADY_EXISTS_ERROR="ALREADY_EXISTS_ERROR",r.CACHE_NOT_FOUND_ERROR="NOT_FOUND_ERROR",r.NOT_FOUND_ERROR="NOT_FOUND_ERROR",r.STORE_NOT_FOUND_ERROR="STORE_NOT_FOUND_ERROR",r.STORE_ITEM_NOT_FOUND_ERROR="STORE_ITEM_NOT_FOUND_ERROR",r.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",r.PERMISSION_ERROR="PERMISSION_ERROR",r.AUTHENTICATION_ERROR="AUTHENTICATION_ERROR",r.CANCELLED_ERROR="CANCELLED_ERROR",r.CONNECTION_ERROR="CONNECTION_ERROR",r.LIMIT_EXCEEDED_ERROR="LIMIT_EXCEEDED_ERROR",r.BAD_REQUEST_ERROR="BAD_REQUEST_ERROR",r.TIMEOUT_ERROR="TIMEOUT_ERROR",r.SERVER_UNAVAILABLE="SERVER_UNAVAILABLE",r.CLIENT_RESOURCE_EXHAUSTED="CLIENT_RESOURCE_EXHAUSTED",r.FAILED_PRECONDITION_ERROR="FAILED_PRECONDITION_ERROR",r.UNKNOWN_ERROR="UNKNOWN_ERROR";class s{constructor(e,t,r){this.code=e,this.details=t,this.metadata=r}}e.MomentoGrpcErrorDetails=s;class n{constructor(e){this.grpc=e}}e.MomentoErrorTransportDetails=n;class i extends Error{constructor(e,t=0,r=void 0,o=void 0){super(e);const i=new s(t,e,r);this._transportDetails=new n(i),this.stack=o??void 0}wrappedErrorMessage(){return`${this._messageWrapper}: ${this.message}`}errorCode(){return this._errorCode}transportDetails(){return this._transportDetails}}e.SdkError=i;e.CacheAlreadyExistsError=class extends i{constructor(){super(...arguments),this._errorCode=t.CACHE_ALREADY_EXISTS_ERROR,this._messageWrapper="A cache with the specified name already exists.  To resolve this error, either delete the existing cache and make a new one, or use a different name"}};e.StoreAlreadyExistsError=class extends i{constructor(){super(...arguments),this._errorCode=t.STORE_ALREADY_EXISTS_ERROR,this._messageWrapper="A store with the specified name already exists.  To resolve this error, either delete the existing store and make a new one, or use a different name"}};e.AuthenticationError=class extends i{constructor(){super(...arguments),this._errorCode=t.AUTHENTICATION_ERROR,this._messageWrapper="Invalid authentication credentials to connect to cache service"}};e.BadRequestError=class extends i{constructor(){super(...arguments),this._errorCode=t.BAD_REQUEST_ERROR,this._messageWrapper="The request was invalid; please contact us at support@momentohq.com"}};e.CancelledError=class extends i{constructor(){super(...arguments),this._errorCode=t.CANCELLED_ERROR,this._messageWrapper="The request was cancelled; please contact us if this was unexpected at support@momentohq.com"}};e.ConnectionError=class extends i{constructor(){super(...arguments),this._errorCode=t.CONNECTION_ERROR}};e.FailedPreconditionError=class extends i{constructor(){super(...arguments),this._errorCode=t.FAILED_PRECONDITION_ERROR,this._messageWrapper="System is not in a state required for the operation's execution"}};e.InternalServerError=class extends i{constructor(){super(...arguments),this._errorCode=t.INTERNAL_SERVER_ERROR,this._messageWrapper="An unexpected error occurred while trying to fulfill the request; please contact us at support@momentohq.com"}};e.InvalidArgumentError=class extends i{constructor(){super(...arguments),this._errorCode=t.INVALID_ARGUMENT_ERROR,this._messageWrapper="Invalid argument passed to Momento client"}},function(e){e.TOPIC_SUBSCRIPTIONS_LIMIT_EXCEEDED="Topic subscriptions limit exceeded for this account",e.OPERATIONS_RATE_LIMIT_EXCEEDED="Request rate limit exceeded for this account",e.THROUGHPUT_RATE_LIMIT_EXCEEDED="Bandwidth limit exceeded for this account",e.REQUEST_SIZE_LIMIT_EXCEEDED="Request size limit exceeded for this account",e.ITEM_SIZE_LIMIT_EXCEEDED="Item size limit exceeded for this account",e.ELEMENT_SIZE_LIMIT_EXCEEDED="Element size limit exceeded for this account",e.UNKNOWN_LIMIT_EXCEEDED="Limit exceeded for this account"}(o||(o={}));e.LimitExceededError=class extends i{constructor(e,r=0,o=void 0,s=void 0,n){super(e,r,o,s),this._errorCode=t.LIMIT_EXCEEDED_ERROR,this._messageWrapper=this.determineMessageWrapper(),this.errCause=n}determineMessageWrapper(){if(void 0!==this.errCause)switch(this.errCause){case"topic_subscriptions_limit_exceeded":return o.TOPIC_SUBSCRIPTIONS_LIMIT_EXCEEDED;case"operations_rate_limit_exceeded":return o.OPERATIONS_RATE_LIMIT_EXCEEDED;case"throughput_rate_limit_exceeded":return o.THROUGHPUT_RATE_LIMIT_EXCEEDED;case"request_size_limit_exceeded":return o.REQUEST_SIZE_LIMIT_EXCEEDED;case"item_size_limit_exceeded":return o.ITEM_SIZE_LIMIT_EXCEEDED;case"element_size_limit_exceeded":return o.ELEMENT_SIZE_LIMIT_EXCEEDED;default:return o.UNKNOWN_LIMIT_EXCEEDED}if(void 0!==this._transportDetails.grpc.details){const e=this._transportDetails.grpc.details.toLowerCase();if(e.includes("subscribers"))return o.TOPIC_SUBSCRIPTIONS_LIMIT_EXCEEDED;if(e.includes("operations"))return o.OPERATIONS_RATE_LIMIT_EXCEEDED;if(e.includes("throughput"))return o.THROUGHPUT_RATE_LIMIT_EXCEEDED;if(e.includes("request limit"))return o.REQUEST_SIZE_LIMIT_EXCEEDED;if(e.includes("item size"))return o.ITEM_SIZE_LIMIT_EXCEEDED;if(e.includes("element size"))return o.ELEMENT_SIZE_LIMIT_EXCEEDED}return o.UNKNOWN_LIMIT_EXCEEDED}};e.CacheNotFoundError=class extends i{constructor(){super(...arguments),this._errorCode=t.CACHE_NOT_FOUND_ERROR,this._messageWrapper="A cache with the specified name does not exist.  To resolve this error, make sure you have created the cache before attempting to use it"}};e.StoreNotFoundError=class extends i{constructor(){super(...arguments),this._errorCode=t.STORE_NOT_FOUND_ERROR,this._messageWrapper="A store with the specified name does not exist.  To resolve this error, make sure you have created the store before attempting to use it"}};e.StoreItemNotFoundError=class extends i{constructor(){super(...arguments),this._errorCode=t.STORE_ITEM_NOT_FOUND_ERROR,this._messageWrapper="An item with the specified key does not exist"}};e.PermissionError=class extends i{constructor(){super(...arguments),this._errorCode=t.PERMISSION_ERROR,this._messageWrapper="Insufficient permissions to perform an operation on a cache"}};e.ServerUnavailableError=class extends i{constructor(){super(...arguments),this._errorCode=t.SERVER_UNAVAILABLE,this._messageWrapper="The server was unable to handle the request; consider retrying.  If the error persists, please contact us at support@momentohq.com"}};e.TimeoutError=class extends i{constructor(){super(...arguments),this._errorCode=t.TIMEOUT_ERROR,this._messageWrapper="The client's configured timeout was exceeded; you may need to use a Configuration with more lenient timeouts"}};e.UnknownError=class extends i{constructor(){super(...arguments),this._errorCode=t.UNKNOWN_ERROR,this._messageWrapper="Unknown error has occurred"}};e.UnknownServiceError=class extends i{constructor(){super(...arguments),this._errorCode=t.UNKNOWN_SERVICE_ERROR,this._messageWrapper="Service returned an unknown response; please contact us at support@momentohq.com"}};e.ClientResourceExhaustedError=class extends i{constructor(e=void 0){super(e??"A client resource is exhausted, such as memory or number of subscriptions (stream connections)."),this._errorCode=t.CLIENT_RESOURCE_EXHAUSTED}}}(errors)),errors}function requireErrors(){return hasRequiredErrors||(hasRequiredErrors=1,e=errors$1,t=errors$1&&errors$1.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=errors$1&&errors$1.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireErrors$1(),e)),errors$1;var e,t,r}function e$3(e){this.message=e}e$3.prototype=new Error,e$3.prototype.name="InvalidCharacterError";var r$1=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new e$3("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,s=0,n=0,i="";o=t.charAt(n++);~o&&(r=s%4?64*r+o:o,s++%4)?i+=String.fromCharCode(255&r>>(-2*s&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return i};function t$2(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(r$1(t).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}catch{return r$1(t)}}function n$2(e){this.message=e}function o$3(e,t){if("string"!=typeof e)throw new n$2("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(t$2(e.split(".")[r]))}catch(e){throw new n$2("Invalid token specified: "+e.message)}}n$2.prototype=new Error,n$2.prototype.name="InvalidTokenError";const jwtDecode_esm=Object.freeze(Object.defineProperty({__proto__:null,InvalidTokenError:n$2,default:o$3},Symbol.toStringTag,{value:"Module"})),require$$1$1=getAugmentedNamespace(jwtDecode_esm);var validators$2={},string={},buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=function(e){var t=n(e),r=t[0],o=t[1];return 3*(r+o)/4-o},base64Js.toByteArray=function(e){var o,s,i=n(e),a=i[0],u=i[1],c=new r(function(e,t,r){return 3*(t+r)/4-r}(0,a,u)),l=0,p=u>0?a-4:a;for(s=0;s<p;s+=4)o=t[e.charCodeAt(s)]<<18|t[e.charCodeAt(s+1)]<<12|t[e.charCodeAt(s+2)]<<6|t[e.charCodeAt(s+3)],c[l++]=o>>16&255,c[l++]=o>>8&255,c[l++]=255&o;return 2===u&&(o=t[e.charCodeAt(s)]<<2|t[e.charCodeAt(s+1)]>>4,c[l++]=255&o),1===u&&(o=t[e.charCodeAt(s)]<<10|t[e.charCodeAt(s+1)]<<4|t[e.charCodeAt(s+2)]>>2,c[l++]=o>>8&255,c[l++]=255&o),c},base64Js.fromByteArray=function(t){for(var r,o=t.length,s=o%3,n=[],i=16383,u=0,c=o-s;u<c;u+=i)n.push(a(t,u,u+i>c?c:u+i));return 1===s?(r=t[o-1],n.push(e[r>>2]+e[r<<4&63]+"==")):2===s&&(r=(t[o-2]<<8)+t[o-1],n.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"=")),n.join("")};for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)e[s]=o[s],t[o.charCodeAt(s)]=s;function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function i(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function a(e,t,r){for(var o,s=[],n=t;n<r;n+=3)o=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(255&e[n+2]),s.push(i(o));return s.join("")}return t[45]=62,t[95]=63,base64Js}var ieee754={},hasRequiredIeee754,hasRequiredBuffer,hasRequiredString,hasRequiredValidators;/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,r,o,s){var n,i,a=8*s-o-1,u=(1<<a)-1,c=u>>1,l=-7,p=r?s-1:0,d=r?-1:1,g=e[t+p];for(p+=d,n=g&(1<<-l)-1,g>>=-l,l+=a;l>0;n=256*n+e[t+p],p+=d,l-=8);for(i=n&(1<<-l)-1,n>>=-l,l+=o;l>0;i=256*i+e[t+p],p+=d,l-=8);if(0===n)n=1-c;else{if(n===u)return i?NaN:1/0*(g?-1:1);i+=Math.pow(2,o),n-=c}return(g?-1:1)*i*Math.pow(2,n-o)},ieee754.write=function(e,t,r,o,s,n){var i,a,u,c=8*n-s-1,l=(1<<c)-1,p=l>>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:n-1,h=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),(t+=i+p>=1?d/u:d*Math.pow(2,1-p))*u>=2&&(i++,u/=2),i+p>=l?(a=0,i=l):i+p>=1?(a=(t*u-1)*Math.pow(2,s),i+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,s),i=0));s>=8;e[r+g]=255&a,g+=h,a/=256,s-=8);for(i=i<<s|a,c+=s;c>0;e[r+g]=255&i,g+=h,i/=256,c-=8);e[r+g-h]|=128*f}),ieee754}
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(e){const t=requireBase64Js(),r=requireIeee754(),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=function(e){return+e!=e&&(e=0),i.alloc(+e)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function n(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let o=n(r);const s=o.write(e,t);return s!==r&&(o=o.slice(0,s)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(V(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return i.from(o,t,r);const s=function(e){if(i.isBuffer(e)){const t=0|d(e.length),r=n(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||K(e.length)?n(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(s)return s;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),n(e<0?0:0|d(e))}function l(e){const t=e.length<0?0:0|d(e.length),r=n(t);for(let o=0;o<t;o+=1)r[o]=255&e[o];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(o,i.prototype),o}function d(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;let s=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(s)return o?-1:z(e).length;t=(""+t).toLowerCase(),s=!0}}function h(e,t,r){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return F(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return B(this,t,r);case"base64":return M(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function f(e,t,r){const o=e[t];e[t]=e[r],e[r]=o}function y(e,t,r,o,s){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=s?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof t&&(t=i.from(t,o)),i.isBuffer(t))return 0===t.length?-1:_(e,t,r,o,s);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):_(e,[t],r,o,s);throw new TypeError("val must be string, number or Buffer")}function _(e,t,r,o,s){let n,i=1,a=e.length,u=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;i=2,a/=2,u/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(s){let o=-1;for(n=r;n<a;n++)if(c(e,n)===c(t,-1===o?0:n-o)){if(-1===o&&(o=n),n-o+1===u)return o*i}else-1!==o&&(n-=n-o),o=-1}else for(r+u>a&&(r=a-u),n=r;n>=0;n--){let r=!0;for(let o=0;o<u;o++)if(c(e,n+o)!==c(t,o)){r=!1;break}if(r)return n}return-1}function R(e,t,r,o){r=Number(r)||0;const s=e.length-r;o?(o=Number(o))>s&&(o=s):o=s;const n=t.length;let i;for(o>n/2&&(o=n/2),i=0;i<o;++i){const o=parseInt(t.substr(2*i,2),16);if(K(o))return i;e[r+i]=o}return i}function S(e,t,r,o){return H(z(t,e.length-r),e,r,o)}function m(e,t,r,o){return H(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,o)}function b(e,t,r,o){return H($(t),e,r,o)}function E(e,t,r,o){return H(function(e,t){let r,o,s;const n=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),o=r>>8,s=r%256,n.push(s),n.push(o);return n}(t,e.length-r),e,r,o)}function M(e,r,o){return 0===r&&o===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,o))}function F(e,t,r){r=Math.min(e.length,r);const o=[];let s=t;for(;s<r;){const t=e[s];let n=null,i=t>239?4:t>223?3:t>191?2:1;if(s+i<=r){let r,o,a,u;switch(i){case 1:t<128&&(n=t);break;case 2:r=e[s+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(n=u));break;case 3:r=e[s+1],o=e[s+2],128==(192&r)&&128==(192&o)&&(u=(15&t)<<12|(63&r)<<6|63&o,u>2047&&(u<55296||u>57343)&&(n=u));break;case 4:r=e[s+1],o=e[s+2],a=e[s+3],128==(192&r)&&128==(192&o)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&o)<<6|63&a,u>65535&&u<1114112&&(n=u))}}null===n?(n=65533,i=1):n>65535&&(n-=65536,o.push(n>>>10&1023|55296),n=56320|1023&n),o.push(n),s+=i}return function(e){const t=e.length;if(t<=v)return String.fromCharCode.apply(String,e);let r="",o=0;for(;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=v));return r}(o)}e.kMaxLength=s,i.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch{return!1}}(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),i.poolSize=8192,i.from=function(e,t,r){return a(e,t,r)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)}(e,t,r)},i.allocUnsafe=function(e){return c(e)},i.allocUnsafeSlow=function(e){return c(e)},i.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==i.prototype},i.compare=function(e,t){if(V(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,o=t.length;for(let s=0,n=Math.min(r,o);s<n;++s)if(e[s]!==t[s]){r=e[s],o=t[s];break}return r<o?-1:o<r?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return i.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const o=i.allocUnsafe(t);let s=0;for(r=0;r<e.length;++r){let t=e[r];if(V(t,Uint8Array))s+t.length>o.length?(i.isBuffer(t)||(t=i.from(t)),t.copy(o,s)):Uint8Array.prototype.set.call(o,t,s);else{if(!i.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,s)}s+=t.length}return o},i.byteLength=g,i.prototype._isBuffer=!0,i.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)f(this,t,t+1);return this},i.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},i.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},i.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?F(this,0,e):h.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===i.compare(this,e)},i.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(i.prototype[o]=i.prototype.inspect),i.prototype.compare=function(e,t,r,o,s){if(V(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===s&&(s=this.length),t<0||r>e.length||o<0||s>this.length)throw new RangeError("out of range index");if(o>=s&&t>=r)return 0;if(o>=s)return-1;if(t>=r)return 1;if(this===e)return 0;let n=(s>>>=0)-(o>>>=0),a=(r>>>=0)-(t>>>=0);const u=Math.min(n,a),c=this.slice(o,s),l=e.slice(t,r);for(let e=0;e<u;++e)if(c[e]!==l[e]){n=c[e],a=l[e];break}return n<a?-1:a<n?1:0},i.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},i.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},i.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},i.prototype.write=function(e,t,r,o){if(void 0===t)o="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)o=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===o&&(o="utf8")):(o=r,r=void 0)}const s=this.length-t;if((void 0===r||r>s)&&(r=s),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let n=!1;for(;;)switch(o){case"hex":return R(this,e,t,r);case"utf8":case"utf-8":return S(this,e,t,r);case"ascii":case"latin1":case"binary":return m(this,e,t,r);case"base64":return b(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(n)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),n=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const v=4096;function T(e,t,r){let o="";r=Math.min(e.length,r);for(let s=t;s<r;++s)o+=String.fromCharCode(127&e[s]);return o}function B(e,t,r){let o="";r=Math.min(e.length,r);for(let s=t;s<r;++s)o+=String.fromCharCode(e[s]);return o}function C(e,t,r){const o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);let s="";for(let o=t;o<r;++o)s+=J[e[o]];return s}function O(e,t,r){const o=e.slice(t,r);let s="";for(let e=0;e<o.length-1;e+=2)s+=String.fromCharCode(o[e]+256*o[e+1]);return s}function w(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,r,o,s,n){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<n)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}function P(e,t,r,o,s){W(t,o,s,e,r,7);let n=Number(t&BigInt(4294967295));e[r++]=n,n>>=8,e[r++]=n,n>>=8,e[r++]=n,n>>=8,e[r++]=n;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function I(e,t,r,o,s){W(t,o,s,e,r,7);let n=Number(t&BigInt(4294967295));e[r+7]=n,n>>=8,e[r+6]=n,n>>=8,e[r+5]=n,n>>=8,e[r+4]=n;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function D(e,t,r,o,s,n){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A(e,t,o,s,n){return t=+t,o>>>=0,n||D(e,0,o,4),r.write(e,t,o,s,23,4),o+4}function q(e,t,o,s,n){return t=+t,o>>>=0,n||D(e,0,o,8),r.write(e,t,o,s,52,8),o+8}i.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const o=this.subarray(e,t);return Object.setPrototypeOf(o,i.prototype),o},i.prototype.readUintLE=i.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let o=this[e],s=1,n=0;for(;++n<t&&(s*=256);)o+=this[e+n]*s;return o},i.prototype.readUintBE=i.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let o=this[e+--t],s=1;for(;t>0&&(s*=256);)o+=this[e+--t]*s;return o},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=Y((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];(void 0===t||void 0===r)&&x(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,s=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(o)+(BigInt(s)<<BigInt(32))})),i.prototype.readBigUInt64BE=Y((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];(void 0===t||void 0===r)&&x(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],s=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(o)<<BigInt(32))+BigInt(s)})),i.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let o=this[e],s=1,n=0;for(;++n<t&&(s*=256);)o+=this[e+n]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*t)),o},i.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let o=t,s=1,n=this[e+--o];for(;o>0&&(s*=256);)n+=this[e+--o]*s;return s*=128,n>=s&&(n-=Math.pow(2,8*t)),n},i.prototype.readInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=Y((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];(void 0===t||void 0===r)&&x(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),i.prototype.readBigInt64BE=Y((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];(void 0===t||void 0===r)&&x(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),i.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),r.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),r.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),r.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),r.read(this,e,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,r,o){if(e=+e,t>>>=0,r>>>=0,!o){L(this,e,t,r,Math.pow(2,8*r)-1,0)}let s=1,n=0;for(this[t]=255&e;++n<r&&(s*=256);)this[t+n]=e/s&255;return t+r},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(e,t,r,o){if(e=+e,t>>>=0,r>>>=0,!o){L(this,e,t,r,Math.pow(2,8*r)-1,0)}let s=r-1,n=1;for(this[t+s]=255&e;--s>=0&&(n*=256);)this[t+s]=e/n&255;return t+r},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigUInt64LE=Y((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),i.prototype.writeBigUInt64BE=Y((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),i.prototype.writeIntLE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*r-1);L(this,e,t,r,o-1,-o)}let s=0,n=1,i=0;for(this[t]=255&e;++s<r&&(n*=256);)e<0&&0===i&&0!==this[t+s-1]&&(i=1),this[t+s]=(e/n|0)-i&255;return t+r},i.prototype.writeIntBE=function(e,t,r,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*r-1);L(this,e,t,r,o-1,-o)}let s=r-1,n=1,i=0;for(this[t+s]=255&e;--s>=0&&(n*=256);)e<0&&0===i&&0!==this[t+s+1]&&(i=1),this[t+s]=(e/n|0)-i&255;return t+r},i.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigInt64LE=Y((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),i.prototype.writeBigInt64BE=Y((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),i.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},i.prototype.copy=function(e,t,r,o){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!o&&0!==o&&(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<r&&(o=r),o===r||0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-r&&(o=e.length-t+r);const s=o-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,o):Uint8Array.prototype.set.call(e,this.subarray(r,o),t),s},i.prototype.fill=function(e,t,r,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!i.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let s;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(s=t;s<r;++s)this[s]=e;else{const n=i.isBuffer(e)?e:i.from(e,o),a=n.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<r-t;++s)this[s+t]=n[s%a]}return this};const N={};function j(e,t,r){N[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function k(e){let t="",r=e.length;const o="-"===e[0]?1:0;for(;r>=o+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function W(e,t,r,o,s,n){if(e>r||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(n+1)}${r}`:`>= -(2${r} ** ${8*(n+1)-1}${r}) and < 2 ** ${8*(n+1)-1}${r}`,new N.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){G(t,"offset"),(void 0===e[t]||void 0===e[t+r])&&x(t,e.length-(r+1))}(o,s,n)}function G(e,t){if("number"!=typeof e)throw new N.ERR_INVALID_ARG_TYPE(t,"number",e)}function x(e,t,r){throw Math.floor(e)!==e?(G(e,r),new N.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new N.ERR_BUFFER_OUT_OF_BOUNDS:new N.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(e,t,r){let o=`The value of "${e}" is out of range.`,s=r;return Number.isInteger(r)&&Math.abs(r)>2**32?s=k(String(r)):"bigint"==typeof r&&(s=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(s=k(s)),s+="n"),o+=` It must be ${t}. Received ${s}`,o}),RangeError);const U=/[^+/0-9A-Za-z-_]/g;function z(e,t){let r;t=t||1/0;const o=e.length;let s=null;const n=[];for(let i=0;i<o;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!s){if(r>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(i+1===o){(t-=3)>-1&&n.push(239,191,189);continue}s=r;continue}if(r<56320){(t-=3)>-1&&n.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(t-=3)>-1&&n.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;n.push(r)}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;n.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return n}function $(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,o){let s;for(s=0;s<o&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const o=16*r;for(let s=0;s<16;++s)t[o+s]=e[r]+e[s]}return t}();function Y(e){return typeof BigInt>"u"?X:e}function X(){throw new Error("BigInt not supported")}}(buffer)),buffer}function requireString(){if(hasRequiredString)return string;hasRequiredString=1,Object.defineProperty(string,"__esModule",{value:!0}),string.encodeToBase64=string.decodeFromBase64=void 0;const e=requireBuffer();string.decodeFromBase64=t=>e.Buffer.from(t,"base64").toString("utf8");return string.encodeToBase64=t=>e.Buffer.from(t,"utf-8").toString("base64"),string}function requireValidators(){if(hasRequiredValidators)return validators$2;hasRequiredValidators=1,Object.defineProperty(validators$2,"__esModule",{value:!0}),validators$2.validateSortedSetSources=validators$2.validateMaxConcurrentRequests=validators$2.validateLeaderboardNumberOfElements=validators$2.validateLeaderboardCount=validators$2.validateLeaderboardOffset=validators$2.validateLeaderboardRanks=validators$2.validateLeaderboardName=validators$2.isBase64=validators$2.validateDisposableTokenTokenID=validators$2.validateDisposableTokenExpiry=validators$2.validateTimeout=validators$2.validateValidForSeconds=validators$2.validateTtlSeconds=validators$2.validateTtlMinutes=validators$2.validateTopK=validators$2.validateNumDimensions=validators$2.validateIndexName=validators$2.validateWebhookName=validators$2.validateTopicName=validators$2.validateListSliceStartEnd=validators$2.validateListName=validators$2.validateDictionaryName=validators$2.validateSortedSetCount=validators$2.validateSortedSetOffset=validators$2.validateSortedSetScores=validators$2.validateSortedSetRanks=validators$2.validateSortedSetName=validators$2.validateSetPopCount=validators$2.validateSetSampleLimit=validators$2.validateSetName=validators$2.validateCacheKeyOrPrefix=validators$2.validateCacheName=validators$2.validateStoreName=void 0;const e=requireErrors(),t=requireString();function r(e){return!e.trim()}return validators$2.validateStoreName=function(t){if(r(t))throw new e.InvalidArgumentError("store name must not be empty")},validators$2.validateCacheName=function(t){if(r(t))throw new e.InvalidArgumentError("cache name must not be empty")},validators$2.validateCacheKeyOrPrefix=function(t){if(r(t))throw new e.InvalidArgumentError("cache key or key prefix must not be empty")},validators$2.validateSetName=function(t){if(r(t))throw new e.InvalidArgumentError("set name must not be empty")},validators$2.validateSetSampleLimit=function(t){if(t<0)throw new e.InvalidArgumentError("limit must be non-negative (>= 0)")},validators$2.validateSetPopCount=function(t){if(t<1)throw new e.InvalidArgumentError("count must be positive (> 0)")},validators$2.validateSortedSetName=function(t){if(r(t))throw new e.InvalidArgumentError("sorted set name must not be empty")},validators$2.validateSortedSetRanks=function(t,r){if(void 0!==r){if(t>0&&r>0&&t>r)throw new e.InvalidArgumentError("start rank must be less than end rank");if(t<0&&r<0&&t>=r)throw new e.InvalidArgumentError("negative start rank must be less than negative end rank")}},validators$2.validateSortedSetScores=function(t,r){if(void 0!==t&&void 0!==r&&t>r)throw new e.InvalidArgumentError("minScore must be less than or equal to maxScore")},validators$2.validateSortedSetOffset=function(t){if(t<0)throw new e.InvalidArgumentError("offset must be non-negative (>= 0)")},validators$2.validateSortedSetCount=function(t){if(t<1)throw new e.InvalidArgumentError("count must be strictly positive (> 0)")},validators$2.validateDictionaryName=function(t){if(r(t))throw new e.InvalidArgumentError("dictionary name must not be empty")},validators$2.validateListName=function(t){if(r(t))throw new e.InvalidArgumentError("list name must not be empty")},validators$2.validateListSliceStartEnd=function(t,r){if(void 0!==t&&void 0!==r&&!(t>0||r<0)&&r<=t)throw new e.InvalidArgumentError("endIndex (exclusive) must be larger than startIndex (inclusive)")},validators$2.validateTopicName=function(t){if(r(t))throw new e.InvalidArgumentError("topic name must not be empty")},validators$2.validateWebhookName=function(t){if(r(t))throw new e.InvalidArgumentError("webhook name must not be empty")},validators$2.validateIndexName=function(t){if(r(t))throw new e.InvalidArgumentError("index name must not be empty")},validators$2.validateNumDimensions=function(t){if(t<=0)throw new e.InvalidArgumentError("numDimensions must be greater than zero")},validators$2.validateTopK=function(t){if(t<=0)throw new e.InvalidArgumentError("topK must be greater than zero")},validators$2.validateTtlMinutes=function(t){if(t<0||!Number.isSafeInteger(t))throw new e.InvalidArgumentError("ttlMinutes must be a positive integer")},validators$2.validateTtlSeconds=function(t){if(t<0||!Number.isSafeInteger(t))throw new e.InvalidArgumentError(`ttl must be a positive integer, received ${t}`)},validators$2.validateValidForSeconds=function(t){if(t<0)throw new e.InvalidArgumentError("validForSeconds must be positive")},validators$2.validateTimeout=function(t){if(t<0)throw new e.InvalidArgumentError("timeout must be positive")},validators$2.validateDisposableTokenExpiry=function(t){if(!t.doesExpire())throw new e.InvalidArgumentError("disposable tokens must have an expiry");if(t.seconds()<0)throw new e.InvalidArgumentError("disposable token expiry must be positive");if(t.seconds()>3600)throw new e.InvalidArgumentError("disposable tokens must expire within 1 hour")},validators$2.validateDisposableTokenTokenID=function(t){if(t.length>64)throw new e.InvalidArgumentError("TokenID must be less than or equal to 64 characters.")},validators$2.isBase64=function(e){try{return(0,t.encodeToBase64)((0,t.decodeFromBase64)(e))===e}catch{return!1}},validators$2.validateLeaderboardName=function(t){if(r(t))throw new e.InvalidArgumentError("leaderboard name must not be empty")},validators$2.validateLeaderboardRanks=function(t,r){if(t>0&&r>0&&t>=r)throw new e.InvalidArgumentError("start rank must be less than end rank");if(t<0||r<0)throw new e.InvalidArgumentError("ranks must be positive")},validators$2.validateLeaderboardOffset=function(t){if(t<0)throw new e.InvalidArgumentError("offset must be non-negative (>= 0)")},validators$2.validateLeaderboardCount=function(t){if(t<1)throw new e.InvalidArgumentError("count must be strictly positive (> 0)")},validators$2.validateLeaderboardNumberOfElements=function(t){if(t<1)throw new e.InvalidArgumentError("must provide at least one element")},validators$2.validateMaxConcurrentRequests=function(t){if(t<1)throw new e.InvalidArgumentError("concurrent requests limit must be strictly positive (> 0)")},validators$2.validateSortedSetSources=function(t){if(!t)throw new e.InvalidArgumentError("At least one sources is required");for(const r of t){const{sortedSetName:t,weight:o}=r;if("string"!=typeof t||0===t.length)throw new e.InvalidArgumentError("sortedSetName must be a non-empty string");if(!Number.isFinite(o))throw new e.InvalidArgumentError("weight must be a finite number")}},validators$2}var permissionScope={},hasRequiredPermissionScope,hasRequiredAuth$3;function requirePermissionScope(){return hasRequiredPermissionScope||(hasRequiredPermissionScope=1,function(e){var t,r,o,s;function n(e){return"role"in e&&"cache"in e&&!("topic"in e)&&!("func"in e)}function i(e){return"role"in e&&"cache"in e&&"topic"in e&&!("func"in e)}function a(e){return"role"in e&&"cache"in e&&"func"in e&&!("topic"in e)}function u(e){return"permissions"in e&&e.permissions.every((e=>function(e){return n(e)||i(e)||a(e)}(e)))}Object.defineProperty(e,"__esModule",{value:!0}),e.PredefinedScope=e.asPermissionsObject=e.isPermissionsObject=e.AllDataReadWrite=e.asFunctionPermission=e.isFunctionPermission=e.isFunctionNamePrefix=e.isFunction=e.FunctionRole=e.asTopicPermission=e.isTopicPermission=e.isTopicName=e.TopicRole=e.asCachePermission=e.isCachePermission=e.isCacheName=e.AllFunctions=e.AllCacheItems=e.AllTopics=e.AllCaches=e.CacheRole=void 0,(r=t=e.CacheRole||(e.CacheRole={})).ReadWrite="readwrite",r.ReadOnly="readonly",r.WriteOnly="writeonly",e.AllCaches=Symbol(),e.AllTopics=Symbol(),e.AllCacheItems=Symbol(),e.AllFunctions=Symbol(),e.isCacheName=function(t){return t!==e.AllCaches&&"name"in t},e.isCachePermission=n,e.asCachePermission=function(e){if(!n(e))throw new Error(`permission is not a CachePermission object: ${JSON.stringify(e)}`);return e},function(e){e.PublishSubscribe="publishsubscribe",e.SubscribeOnly="subscribeonly",e.PublishOnly="publishonly"}(o=e.TopicRole||(e.TopicRole={})),e.isTopicName=function(t){return t!==e.AllTopics&&"name"in t},e.isTopicPermission=i,e.asTopicPermission=function(e){if(!i(e))throw new Error(`permission is not a TopicPermission object: ${JSON.stringify(e)}`);return e},function(e){e.FunctionPermitNone="functionpermitnone",e.FunctionInvoke="functioninvoke"}(s=e.FunctionRole||(e.FunctionRole={})),e.isFunction=function(t){return t!==e.AllFunctions&&"name"in t},e.isFunctionNamePrefix=function(t){return t!==e.AllFunctions&&"string"!=typeof t&&"namePrefix"in t},e.isFunctionPermission=a,e.asFunctionPermission=function(e){if(!a(e))throw new Error(`permission is not a FunctionPermission object: ${JSON.stringify(e)}`);return e},e.AllDataReadWrite={permissions:[{role:t.ReadWrite,cache:e.AllCaches},{role:o.PublishSubscribe,cache:e.AllCaches,topic:e.AllTopics},{role:s.FunctionInvoke,cache:e.AllCaches,func:e.AllFunctions}]},e.isPermissionsObject=u,e.asPermissionsObject=function(e){if(!u(e))throw new Error(`Token scope is not a Permissions object: ${JSON.stringify(e)}`);return e};e.PredefinedScope=class{}}(permissionScope)),permissionScope}function requireAuth$3(){if(hasRequiredAuth$3)return auth$3;hasRequiredAuth$3=1,Object.defineProperty(auth$3,"__esModule",{value:!0}),auth$3.InternalSuperUserPermissions=auth$3.decodeAuthToken=auth$3.populateAllEndpointsFromBaseEndpoint=void 0;const e=requireErrors(),t=require$$1$1,r=requireValidators(),o=requireString(),s=requirePermissionScope();function n(e){let t="";return e.endpointPrefix&&(t=`${e.endpointPrefix}.`),{controlEndpoint:`${t}control.${e.baseEndpoint}`,cacheEndpoint:`${t}cache.${e.baseEndpoint}`,tokenEndpoint:`${t}token.${e.baseEndpoint}`,secureConnection:e.secureConnection}}auth$3.populateAllEndpointsFromBaseEndpoint=n;auth$3.decodeAuthToken=s=>{if(!s)throw new e.InvalidArgumentError("malformed auth token");try{if((0,r.isBase64)(s)){const t=JSON.parse((0,o.decodeFromBase64)(s));if(!t.endpoint||!t.api_key)throw new e.InvalidArgumentError("failed to parse token");const r=n({baseEndpoint:t.endpoint});return{controlEndpoint:r.controlEndpoint,cacheEndpoint:r.cacheEndpoint,tokenEndpoint:r.tokenEndpoint,authToken:t.api_key}}{const e=function(e){return(0,t.default)(e)}(s);return{controlEndpoint:e.cp,cacheEndpoint:e.c,tokenEndpoint:e.c,authToken:s}}}catch(t){throw new e.InvalidArgumentError(`failed to parse token: ${t}`)}};class i extends s.PredefinedScope{}return auth$3.InternalSuperUserPermissions=i,auth$3}var collections={},hasRequiredCollections;function requireCollections(){if(hasRequiredCollections)return collections;return hasRequiredCollections=1,Object.defineProperty(collections,"__esModule",{value:!0}),collections.range=void 0,collections.range=function(e){return[...Array(e).keys()]},collections}var display={},hasRequiredDisplay;function requireDisplay(){if(hasRequiredDisplay)return display;function e(e,t=32){return e.length>t?e.substring(0,t)+"...":e}hasRequiredDisplay=1,Object.defineProperty(display,"__esModule",{value:!0}),display.truncateStringArray=display.truncateString=void 0,display.truncateString=e;return display.truncateStringArray=function(t,r=5){return function(e,t){return e.length<=t?e:e.slice(0,t).concat(["..."])}(t,r).map((t=>e(t)))},display}var object={},hasRequiredObject;function requireObject(){if(hasRequiredObject)return object;return hasRequiredObject=1,Object.defineProperty(object,"__esModule",{value:!0}),object.fromEntries=void 0,object.fromEntries=function(e){return e.reduce(((e,[t,r])=>({...e,[t]:r})),{})},object}var sleep={},hasRequiredSleep;function requireSleep(){if(hasRequiredSleep)return sleep;hasRequiredSleep=1,Object.defineProperty(sleep,"__esModule",{value:!0}),sleep.sleep=void 0;return sleep.sleep=e=>new Promise((t=>setTimeout(t,e))),sleep}var semaphore={},hasRequiredSemaphore,hasRequiredUtils$1;function requireSemaphore(){if(hasRequiredSemaphore)return semaphore;hasRequiredSemaphore=1,Object.defineProperty(semaphore,"__esModule",{value:!0}),semaphore.Semaphore=void 0;return semaphore.Semaphore=class{constructor(e){this.counter=0,this.waiting=[],this.max=e}take(){if(this.waiting.length>0&&this.counter<this.max){this.counter+=1;const e=this.waiting.shift();e&&e.resolve()}}acquire(){return this.counter<this.max?(this.counter+=1,new Promise((e=>{e(void 0)}))):new Promise(((e,t)=>{this.waiting.push({resolve:e,err:t})}))}release(){this.counter-=1,this.take()}purge(){const e=this.waiting.length;for(let t=0;t<e;t+=1)this.waiting[t].err("Task has been purged.");return this.counter=0,this.waiting=[],e}},semaphore}function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,e=utils$3,t=utils$3&&utils$3.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=utils$3&&utils$3.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireAuth$3(),e),r(requireCollections(),e),r(requireDisplay(),e),r(requireObject(),e),r(requireSleep(),e),r(requireString(),e),r(requireValidators(),e),r(requireSemaphore(),e)),utils$3;var e,t,r}var enums={},auth$2={},generateApiKey$1={},hasRequiredGenerateApiKey$1;function requireGenerateApiKey$1(){return hasRequiredGenerateApiKey$1||(hasRequiredGenerateApiKey$1=1,e=generateApiKey$1,Object.defineProperty(e,"__esModule",{value:!0}),e.GenerateApiKeyResponse=void 0,(t=e.GenerateApiKeyResponse||(e.GenerateApiKeyResponse={})).Success="Success",t.Error="Error"),generateApiKey$1;var e,t}var generateDisposableToken$1={},hasRequiredGenerateDisposableToken$1;function requireGenerateDisposableToken$1(){return hasRequiredGenerateDisposableToken$1||(hasRequiredGenerateDisposableToken$1=1,e=generateDisposableToken$1,Object.defineProperty(e,"__esModule",{value:!0}),e.GenerateDisposableTokenResponse=void 0,(t=e.GenerateDisposableTokenResponse||(e.GenerateDisposableTokenResponse={})).Success="Success",t.Error="Error"),generateDisposableToken$1;var e,t}var refreshApiKey$1={},hasRequiredRefreshApiKey$1,hasRequiredAuth$2;function requireRefreshApiKey$1(){return hasRequiredRefreshApiKey$1||(hasRequiredRefreshApiKey$1=1,e=refreshApiKey$1,Object.defineProperty(e,"__esModule",{value:!0}),e.RefreshApiKeyResponse=void 0,(t=e.RefreshApiKeyResponse||(e.RefreshApiKeyResponse={})).Success="Success",t.Error="Error"),refreshApiKey$1;var e,t}function requireAuth$2(){return hasRequiredAuth$2||(hasRequiredAuth$2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RefreshApiKeyResponse=e.GenerateDisposableTokenResponse=e.GenerateApiKeyResponse=void 0;var t=requireGenerateApiKey$1();Object.defineProperty(e,"GenerateApiKeyResponse",{enumerable:!0,get:function(){return t.GenerateApiKeyResponse}});var r=requireGenerateDisposableToken$1();Object.defineProperty(e,"GenerateDisposableTokenResponse",{enumerable:!0,get:function(){return r.GenerateDisposableTokenResponse}});var o=requireRefreshApiKey$1();Object.defineProperty(e,"RefreshApiKeyResponse",{enumerable:!0,get:function(){return o.RefreshApiKeyResponse}})}(auth$2)),auth$2}var cache$1={},dictionary={},hasRequiredDictionary;function requireDictionary(){return hasRequiredDictionary||(hasRequiredDictionary=1,e=dictionary,Object.defineProperty(e,"__esModule",{value:!0}),e.CacheDictionarySetFieldsResponse=e.CacheDictionarySetFieldResponse=e.CacheDictionaryRemoveFieldsResponse=e.CacheDictionaryRemoveFieldResponse=e.CacheDictionaryLengthResponse=e.CacheDictionaryIncrementResponse=e.CacheDictionaryFetchResponse=e.CacheDictionaryGetFieldResponse=e.CacheDictionaryGetFieldsResponse=void 0,(t=e.CacheDictionaryGetFieldsResponse||(e.CacheDictionaryGetFieldsResponse={})).Hit="Hit",t.Miss="Miss",t.Error="Error",function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheDictionaryGetFieldResponse||(e.CacheDictionaryGetFieldResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheDictionaryFetchResponse||(e.CacheDictionaryFetchResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheDictionaryIncrementResponse||(e.CacheDictionaryIncrementResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheDictionaryLengthResponse||(e.CacheDictionaryLengthResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheDictionaryRemoveFieldResponse||(e.CacheDictionaryRemoveFieldResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheDictionaryRemoveFieldsResponse||(e.CacheDictionaryRemoveFieldsResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheDictionarySetFieldResponse||(e.CacheDictionarySetFieldResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheDictionarySetFieldsResponse||(e.CacheDictionarySetFieldsResponse={}))),dictionary;var e,t}var scalar$1={},hasRequiredScalar$1;function requireScalar$1(){return hasRequiredScalar$1||(hasRequiredScalar$1=1,e=scalar$1,Object.defineProperty(e,"__esModule",{value:!0}),e.CacheSetIfAbsentOrHashNotEqualResponse=e.CacheSetIfAbsentOrHashEqualResponse=e.CacheSetIfPresentAndHashNotEqualResponse=e.CacheSetIfPresentAndHashEqualResponse=e.CacheSetWithHashResponse=e.CacheGetWithHashResponse=e.CacheDecreaseTtlResponse=e.CacheIncreaseTtlResponse=e.CacheUpdateTtlResponse=e.CacheItemGetTtlResponse=e.CacheItemGetTypeResponse=e.CacheKeysExistResponse=e.CacheKeyExistsResponse=e.CacheSetIfNotExistsResponse=e.CacheSetIfPresentAndNotEqualResponse=e.CacheSetIfAbsentOrEqualResponse=e.CacheSetIfNotEqualResponse=e.CacheSetIfEqualResponse=e.CacheSetIfPresentResponse=e.CacheSetIfAbsentResponse=e.CacheSetBatchResponse=e.CacheGetBatchResponse=e.CacheIncrementResponse=e.CacheDeleteResponse=e.CacheSetResponse=e.CacheGetResponse=void 0,(t=e.CacheGetResponse||(e.CacheGetResponse={})).Hit="Hit",t.Miss="Miss",t.Error="Error",function(e){e.Success="Success",e.Error="Error"}(e.CacheSetResponse||(e.CacheSetResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheDeleteResponse||(e.CacheDeleteResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheIncrementResponse||(e.CacheIncrementResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheGetBatchResponse||(e.CacheGetBatchResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheSetBatchResponse||(e.CacheSetBatchResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfAbsentResponse||(e.CacheSetIfAbsentResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfPresentResponse||(e.CacheSetIfPresentResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfEqualResponse||(e.CacheSetIfEqualResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfNotEqualResponse||(e.CacheSetIfNotEqualResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfAbsentOrEqualResponse||(e.CacheSetIfAbsentOrEqualResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfPresentAndNotEqualResponse||(e.CacheSetIfPresentAndNotEqualResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfNotExistsResponse||(e.CacheSetIfNotExistsResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheKeyExistsResponse||(e.CacheKeyExistsResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheKeysExistResponse||(e.CacheKeysExistResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheItemGetTypeResponse||(e.CacheItemGetTypeResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheItemGetTtlResponse||(e.CacheItemGetTtlResponse={})),function(e){e.Set="Set",e.Miss="Miss",e.Error="Error"}(e.CacheUpdateTtlResponse||(e.CacheUpdateTtlResponse={})),function(e){e.Set="Set",e.NotSet="NotSet",e.Miss="Miss",e.Error="Error"}(e.CacheIncreaseTtlResponse||(e.CacheIncreaseTtlResponse={})),function(e){e.Set="Set",e.NotSet="NotSet",e.Miss="Miss",e.Error="Error"}(e.CacheDecreaseTtlResponse||(e.CacheDecreaseTtlResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheGetWithHashResponse||(e.CacheGetWithHashResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetWithHashResponse||(e.CacheSetWithHashResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfPresentAndHashEqualResponse||(e.CacheSetIfPresentAndHashEqualResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfPresentAndHashNotEqualResponse||(e.CacheSetIfPresentAndHashNotEqualResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfAbsentOrHashEqualResponse||(e.CacheSetIfAbsentOrHashEqualResponse={})),function(e){e.Stored="Stored",e.NotStored="NotStored",e.Error="Error"}(e.CacheSetIfAbsentOrHashNotEqualResponse||(e.CacheSetIfAbsentOrHashNotEqualResponse={}))),scalar$1;var e,t}var set={},hasRequiredSet;function requireSet(){return hasRequiredSet||(hasRequiredSet=1,e=set,Object.defineProperty(e,"__esModule",{value:!0}),e.CacheSetLengthResponse=e.CacheSetPopResponse=e.CacheSetSampleResponse=e.CacheSetRemoveElementsResponse=e.CacheSetRemoveElementResponse=e.CacheSetContainsElementsResponse=e.CacheSetContainsElementResponse=e.CacheSetFetchResponse=e.CacheSetAddElementsResponse=e.CacheSetAddElementResponse=void 0,(t=e.CacheSetAddElementResponse||(e.CacheSetAddElementResponse={})).Success="Success",t.Error="Error",function(e){e.Success="Success",e.Error="Error"}(e.CacheSetAddElementsResponse||(e.CacheSetAddElementsResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSetFetchResponse||(e.CacheSetFetchResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSetContainsElementResponse||(e.CacheSetContainsElementResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSetContainsElementsResponse||(e.CacheSetContainsElementsResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheSetRemoveElementResponse||(e.CacheSetRemoveElementResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheSetRemoveElementsResponse||(e.CacheSetRemoveElementsResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSetSampleResponse||(e.CacheSetSampleResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSetPopResponse||(e.CacheSetPopResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSetLengthResponse||(e.CacheSetLengthResponse={}))),set;var e,t}var list={},hasRequiredList;function requireList(){return hasRequiredList||(hasRequiredList=1,e=list,Object.defineProperty(e,"__esModule",{value:!0}),e.CacheListPopFrontResponse=e.CacheListPopBackResponse=e.CacheListLengthResponse=e.CacheListFetchResponse=e.CacheListRetainResponse=e.CacheListRemoveValueResponse=e.CacheListPushFrontResponse=e.CacheListPushBackResponse=e.CacheListConcatenateFrontResponse=e.CacheListConcatenateBackResponse=void 0,(t=e.CacheListConcatenateBackResponse||(e.CacheListConcatenateBackResponse={})).Success="Success",t.Error="Error",function(e){e.Success="Success",e.Error="Error"}(e.CacheListConcatenateFrontResponse||(e.CacheListConcatenateFrontResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheListPushBackResponse||(e.CacheListPushBackResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheListPushFrontResponse||(e.CacheListPushFrontResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheListRemoveValueResponse||(e.CacheListRemoveValueResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheListRetainResponse||(e.CacheListRetainResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheListFetchResponse||(e.CacheListFetchResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheListLengthResponse||(e.CacheListLengthResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheListPopBackResponse||(e.CacheListPopBackResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheListPopFrontResponse||(e.CacheListPopFrontResponse={}))),list;var e,t}var sortedSet={},hasRequiredSortedSet;function requireSortedSet(){return hasRequiredSortedSet||(hasRequiredSortedSet=1,e=sortedSet,Object.defineProperty(e,"__esModule",{value:!0}),e.CacheSortedSetUnionStoreResponse=e.CacheSortedSetRemoveElementsResponse=e.CacheSortedSetRemoveElementResponse=e.CacheSortedSetPutElementsResponse=e.CacheSortedSetPutElementResponse=e.CacheSortedSetLengthByScoreResponse=e.CacheSortedSetLengthResponse=e.CacheSortedSetIncrementScoreResponse=e.CacheSortedSetGetScoresResponse=e.CacheSortedSetGetScoreResponse=e.CacheSortedSetGetRankResponse=e.CacheSortedSetFetchResponse=void 0,(t=e.CacheSortedSetFetchResponse||(e.CacheSortedSetFetchResponse={})).Hit="Hit",t.Miss="Miss",t.Error="Error",function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSortedSetGetRankResponse||(e.CacheSortedSetGetRankResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSortedSetGetScoreResponse||(e.CacheSortedSetGetScoreResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSortedSetGetScoresResponse||(e.CacheSortedSetGetScoresResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheSortedSetIncrementScoreResponse||(e.CacheSortedSetIncrementScoreResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSortedSetLengthResponse||(e.CacheSortedSetLengthResponse={})),function(e){e.Hit="Hit",e.Miss="Miss",e.Error="Error"}(e.CacheSortedSetLengthByScoreResponse||(e.CacheSortedSetLengthByScoreResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheSortedSetPutElementResponse||(e.CacheSortedSetPutElementResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheSortedSetPutElementsResponse||(e.CacheSortedSetPutElementsResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheSortedSetRemoveElementResponse||(e.CacheSortedSetRemoveElementResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheSortedSetRemoveElementsResponse||(e.CacheSortedSetRemoveElementsResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.CacheSortedSetUnionStoreResponse||(e.CacheSortedSetUnionStoreResponse={}))),sortedSet;var e,t}var control$1={},hasRequiredControl$1,hasRequiredCache$1;function requireControl$1(){return hasRequiredControl$1||(hasRequiredControl$1=1,e=control$1,Object.defineProperty(e,"__esModule",{value:!0}),e.ListCachesResponse=e.FlushCacheResponse=e.DeleteCacheResponse=e.CreateCacheResponse=void 0,(t=e.CreateCacheResponse||(e.CreateCacheResponse={})).Success="Success",t.AlreadyExists="AlreadyExists",t.Error="Error",function(e){e.Success="Success",e.Error="Error"}(e.DeleteCacheResponse||(e.DeleteCacheResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.FlushCacheResponse||(e.FlushCacheResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.ListCachesResponse||(e.ListCachesResponse={}))),control$1;var e,t}function requireCache$1(){return hasRequiredCache$1||(hasRequiredCache$1=1,e=cache$1,t=cache$1&&cache$1.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=cache$1&&cache$1.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireDictionary(),e),r(requireScalar$1(),e),r(requireSet(),e),r(requireList(),e),r(requireSortedSet(),e),r(requireControl$1(),e)),cache$1;var e,t,r}var topics={},hasRequiredTopics;function requireTopics(){return hasRequiredTopics||(hasRequiredTopics=1,e=topics,Object.defineProperty(e,"__esModule",{value:!0}),e.TopicSubscribeResponse=e.TopicPublishResponse=void 0,(t=e.TopicPublishResponse||(e.TopicPublishResponse={})).Success="Success",t.Error="Error",function(e){e.Subscription="Subscription",e.Error="Error"}(e.TopicSubscribeResponse||(e.TopicSubscribeResponse={}))),topics;var e,t}var leaderboard$3={},hasRequiredLeaderboard$3;function requireLeaderboard$3(){return hasRequiredLeaderboard$3||(hasRequiredLeaderboard$3=1,e=leaderboard$3,Object.defineProperty(e,"__esModule",{value:!0}),e.LeaderboardUpsertResponse=e.LeaderboardRemoveElementsResponse=e.LeaderboardLengthResponse=e.LeaderboardFetchResponse=e.LeaderboardDeleteResponse=void 0,(t=e.LeaderboardDeleteResponse||(e.LeaderboardDeleteResponse={})).Success="Success",t.Error="Error",function(e){e.Success="Success",e.Error="Error"}(e.LeaderboardFetchResponse||(e.LeaderboardFetchResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.LeaderboardLengthResponse||(e.LeaderboardLengthResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.LeaderboardRemoveElementsResponse||(e.LeaderboardRemoveElementsResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.LeaderboardUpsertResponse||(e.LeaderboardUpsertResponse={}))),leaderboard$3;var e,t}var store={},control={},hasRequiredControl;function requireControl(){return hasRequiredControl||(hasRequiredControl=1,e=control,Object.defineProperty(e,"__esModule",{value:!0}),e.DeleteStoreResponse=e.ListStoresResponse=e.CreateStoreResponse=void 0,(t=e.CreateStoreResponse||(e.CreateStoreResponse={})).Success="Success",t.AlreadyExists="AlreadyExists",t.Error="Error",function(e){e.Success="Success",e.Error="Error"}(e.ListStoresResponse||(e.ListStoresResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.DeleteStoreResponse||(e.DeleteStoreResponse={}))),control;var e,t}var scalar={},hasRequiredScalar,hasRequiredStore;function requireScalar(){return hasRequiredScalar||(hasRequiredScalar=1,e=scalar,Object.defineProperty(e,"__esModule",{value:!0}),e.StorageDeleteResponse=e.StoragePutResponse=e.StorageGetResponse=void 0,(t=e.StorageGetResponse||(e.StorageGetResponse={})).Found="Found",t.NotFound="NotFound",t.Error="Error",function(e){e.Success="Success",e.Error="Error"}(e.StoragePutResponse||(e.StoragePutResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.StorageDeleteResponse||(e.StorageDeleteResponse={}))),scalar;var e,t}function requireStore(){return hasRequiredStore||(hasRequiredStore=1,e=store,t=store&&store.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=store&&store.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireControl(),e),r(requireScalar(),e)),store;var e,t,r}var webhook$1={},hasRequiredWebhook$1,hasRequiredEnums,hasRequiredCacheGet;function requireWebhook$1(){return hasRequiredWebhook$1||(hasRequiredWebhook$1=1,e=webhook$1,Object.defineProperty(e,"__esModule",{value:!0}),e.ListWebhooksResponse=e.GetWebhookSecretResponse=e.RotateWebhookSecretResponse=e.DeleteWebhookResponse=e.PutWebhookResponse=void 0,(t=e.PutWebhookResponse||(e.PutWebhookResponse={})).Success="Success",t.Error="Error",function(e){e.Success="Success",e.Error="Error"}(e.DeleteWebhookResponse||(e.DeleteWebhookResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.RotateWebhookSecretResponse||(e.RotateWebhookSecretResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.GetWebhookSecretResponse||(e.GetWebhookSecretResponse={})),function(e){e.Success="Success",e.Error="Error"}(e.ListWebhooksResponse||(e.ListWebhooksResponse={}))),webhook$1;var e,t}function requireEnums(){return hasRequiredEnums||(hasRequiredEnums=1,e=enums,t=enums&&enums.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=enums&&enums.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireAuth$2(),e),r(requireCache$1(),e),r(requireTopics(),e),r(requireLeaderboard$3(),e),r(requireStore(),e),r(requireWebhook$1(),e)),enums;var e,t,r}function requireCacheGet(){if(hasRequiredCacheGet)return cacheGet;hasRequiredCacheGet=1,Object.defineProperty(cacheGet,"__esModule",{value:!0}),cacheGet.Error=cacheGet.Miss=cacheGet.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e){super(),this.type=r.CacheGetResponse.Hit,this.body=e}value(){return o.decode(this.body)}valueString(){return o.decode(this.body)}valueUint8Array(){return this.body}toString(){const e=(0,t.truncateString)(this.valueString());return`${super.toString()}: ${e}`}}cacheGet.Hit=s;class n extends e.BaseResponseMiss{constructor(){super(),this.type=r.CacheGetResponse.Miss}value(){}}cacheGet.Miss=n;class i extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheGetResponse.Error}value(){}}return cacheGet.Error=i,cacheGet}var cacheGetWithHash={},hasRequiredCacheGetWithHash;function requireCacheGetWithHash(){if(hasRequiredCacheGetWithHash)return cacheGetWithHash;hasRequiredCacheGetWithHash=1,Object.defineProperty(cacheGetWithHash,"__esModule",{value:!0}),cacheGetWithHash.Error=cacheGetWithHash.Miss=cacheGetWithHash.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e,t){super(),this.type=r.CacheGetWithHashResponse.Hit,this._value=e,this._hash=t}value(){return o.decode(this._value)}hash(){return o.decode(this._hash)}valueString(){return o.decode(this._value)}valueUint8Array(){return this._value}hashString(){return o.decode(this._hash)}hashUint8Array(){return this._hash}toString(){const e=(0,t.truncateString)(this.valueString()),r=(0,t.truncateString)(this.hashString());return`${super.toString()}: value=${e}, hash=${r}`}}cacheGetWithHash.Hit=s;class n extends e.BaseResponseMiss{constructor(){super(),this.type=r.CacheGetWithHashResponse.Miss}value(){}hash(){}}cacheGetWithHash.Miss=n;class i extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheGetWithHashResponse.Error}value(){}hash(){}}return cacheGetWithHash.Error=i,cacheGetWithHash}var cacheListConcatenateBack={},hasRequiredCacheListConcatenateBack;function requireCacheListConcatenateBack(){if(hasRequiredCacheListConcatenateBack)return cacheListConcatenateBack;hasRequiredCacheListConcatenateBack=1,Object.defineProperty(cacheListConcatenateBack,"__esModule",{value:!0}),cacheListConcatenateBack.Error=cacheListConcatenateBack.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheListConcatenateBackResponse.Success,this._listLength=e}listLength(){return this._listLength}toString(){return`${super.toString()}: listLength: ${this._listLength}`}}cacheListConcatenateBack.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheListConcatenateBackResponse.Error}}return cacheListConcatenateBack.Error=o,cacheListConcatenateBack}var cacheListConcatenateFront={},hasRequiredCacheListConcatenateFront;function requireCacheListConcatenateFront(){if(hasRequiredCacheListConcatenateFront)return cacheListConcatenateFront;hasRequiredCacheListConcatenateFront=1,Object.defineProperty(cacheListConcatenateFront,"__esModule",{value:!0}),cacheListConcatenateFront.Error=cacheListConcatenateFront.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheListConcatenateFrontResponse.Success,this._listLength=e}listLength(){return this._listLength}toString(){return`${super.toString()}: listLength: ${this._listLength}`}}cacheListConcatenateFront.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheListConcatenateFrontResponse.Error}}return cacheListConcatenateFront.Error=o,cacheListConcatenateFront}var cacheListFetch={},hasRequiredCacheListFetch;function requireCacheListFetch(){if(hasRequiredCacheListFetch)return cacheListFetch;hasRequiredCacheListFetch=1,Object.defineProperty(cacheListFetch,"__esModule",{value:!0}),cacheListFetch.Error=cacheListFetch.Miss=cacheListFetch.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e){super(),this.type=r.CacheListFetchResponse.Hit,this._values=e}valueListUint8Array(){return this._values}valueListString(){return this._values.map((e=>o.decode(e)))}valueList(){return this.valueListString()}value(){return this.valueListString()}toString(){const e=(0,t.truncateStringArray)(this.valueListString());return`${super.toString()}: [${e.toString()}]`}}cacheListFetch.Hit=s;class n extends e.BaseResponseMiss{constructor(){super(),this.type=r.CacheListFetchResponse.Miss}value(){}}cacheListFetch.Miss=n;class i extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheListFetchResponse.Error}value(){}}return cacheListFetch.Error=i,cacheListFetch}var cacheListLength={},hasRequiredCacheListLength;function requireCacheListLength(){if(hasRequiredCacheListLength)return cacheListLength;hasRequiredCacheListLength=1,Object.defineProperty(cacheListLength,"__esModule",{value:!0}),cacheListLength.Error=cacheListLength.Miss=cacheListLength.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e){super(),this.type=t.CacheListLengthResponse.Hit,this._length=e}value(){return this._length}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}cacheListLength.Hit=r;class o extends e.BaseResponseMiss{constructor(){super(),this.type=t.CacheListLengthResponse.Miss}value(){}}cacheListLength.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheListLengthResponse.Error}value(){}}return cacheListLength.Error=s,cacheListLength}var cacheListPopBack={},hasRequiredCacheListPopBack;function requireCacheListPopBack(){if(hasRequiredCacheListPopBack)return cacheListPopBack;hasRequiredCacheListPopBack=1,Object.defineProperty(cacheListPopBack,"__esModule",{value:!0}),cacheListPopBack.Error=cacheListPopBack.Miss=cacheListPopBack.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e){super(),this.type=r.CacheListPopBackResponse.Hit,this.body=e}value(){return o.decode(this.body)}valueString(){return o.decode(this.body)}valueUint8Array(){return this.body}toString(){const e=(0,t.truncateString)(this.valueString());return`${super.toString()}: ${e}`}}cacheListPopBack.Hit=s;class n extends e.BaseResponseMiss{constructor(){super(),this.type=r.CacheListPopBackResponse.Miss}value(){}}cacheListPopBack.Miss=n;class i extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheListPopBackResponse.Error}value(){}}return cacheListPopBack.Error=i,cacheListPopBack}var cacheListPopFront={},hasRequiredCacheListPopFront;function requireCacheListPopFront(){if(hasRequiredCacheListPopFront)return cacheListPopFront;hasRequiredCacheListPopFront=1,Object.defineProperty(cacheListPopFront,"__esModule",{value:!0}),cacheListPopFront.Error=cacheListPopFront.Miss=cacheListPopFront.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e){super(),this.type=r.CacheListPopFrontResponse.Hit,this.body=e}value(){return o.decode(this.body)}valueString(){return o.decode(this.body)}valueUint8Array(){return this.body}toString(){const e=(0,t.truncateString)(this.valueString());return`${super.toString()}: ${e}`}}cacheListPopFront.Hit=s;class n extends e.BaseResponseMiss{constructor(){super(),this.type=r.CacheListPopFrontResponse.Miss}value(){}}cacheListPopFront.Miss=n;class i extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheListPopFrontResponse.Error}value(){}}return cacheListPopFront.Error=i,cacheListPopFront}var cacheListPushBack={},hasRequiredCacheListPushBack;function requireCacheListPushBack(){if(hasRequiredCacheListPushBack)return cacheListPushBack;hasRequiredCacheListPushBack=1,Object.defineProperty(cacheListPushBack,"__esModule",{value:!0}),cacheListPushBack.Error=cacheListPushBack.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheListPushBackResponse.Success,this._listLength=e}listLength(){return this._listLength}toString(){return`${super.toString()}: listLength: ${this._listLength}`}}cacheListPushBack.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheListPushBackResponse.Error}}return cacheListPushBack.Error=o,cacheListPushBack}var cacheListPushFront={},hasRequiredCacheListPushFront;function requireCacheListPushFront(){if(hasRequiredCacheListPushFront)return cacheListPushFront;hasRequiredCacheListPushFront=1,Object.defineProperty(cacheListPushFront,"__esModule",{value:!0}),cacheListPushFront.Error=cacheListPushFront.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheListPushFrontResponse.Success,this._listLength=e}listLength(){return this._listLength}toString(){return`${super.toString()}: listLength: ${this._listLength}`}}cacheListPushFront.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheListPushFrontResponse.Error}}return cacheListPushFront.Error=o,cacheListPushFront}var cacheListRemoveValue={},hasRequiredCacheListRemoveValue;function requireCacheListRemoveValue(){if(hasRequiredCacheListRemoveValue)return cacheListRemoveValue;hasRequiredCacheListRemoveValue=1,Object.defineProperty(cacheListRemoveValue,"__esModule",{value:!0}),cacheListRemoveValue.Error=cacheListRemoveValue.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheListRemoveValueResponse.Success}}cacheListRemoveValue.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheListRemoveValueResponse.Error}}return cacheListRemoveValue.Error=o,cacheListRemoveValue}var cacheListRetain={},hasRequiredCacheListRetain;function requireCacheListRetain(){if(hasRequiredCacheListRetain)return cacheListRetain;hasRequiredCacheListRetain=1,Object.defineProperty(cacheListRetain,"__esModule",{value:!0}),cacheListRetain.Error=cacheListRetain.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheListRetainResponse.Success}}cacheListRetain.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheListRetainResponse.Error}}return cacheListRetain.Error=o,cacheListRetain}var cacheSet={},hasRequiredCacheSet;function requireCacheSet(){if(hasRequiredCacheSet)return cacheSet;hasRequiredCacheSet=1,Object.defineProperty(cacheSet,"__esModule",{value:!0}),cacheSet.Error=cacheSet.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheSetResponse.Success}}cacheSet.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetResponse.Error}}return cacheSet.Error=o,cacheSet}var cacheDelete={},hasRequiredCacheDelete;function requireCacheDelete(){if(hasRequiredCacheDelete)return cacheDelete;hasRequiredCacheDelete=1,Object.defineProperty(cacheDelete,"__esModule",{value:!0}),cacheDelete.Error=cacheDelete.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheDeleteResponse.Success}}cacheDelete.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheDeleteResponse.Error}}return cacheDelete.Error=o,cacheDelete}var cacheFlush={},hasRequiredCacheFlush;function requireCacheFlush(){if(hasRequiredCacheFlush)return cacheFlush;hasRequiredCacheFlush=1,Object.defineProperty(cacheFlush,"__esModule",{value:!0}),cacheFlush.Error=cacheFlush.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.FlushCacheResponse.Success}}cacheFlush.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.FlushCacheResponse.Error}}return cacheFlush.Error=o,cacheFlush}var createCache={},hasRequiredCreateCache;function requireCreateCache(){if(hasRequiredCreateCache)return createCache;hasRequiredCreateCache=1,Object.defineProperty(createCache,"__esModule",{value:!0}),createCache.Error=createCache.AlreadyExists=createCache.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CreateCacheResponse.Success}}createCache.Success=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CreateCacheResponse.AlreadyExists}}createCache.AlreadyExists=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CreateCacheResponse.Error}}return createCache.Error=s,createCache}var deleteCache={},hasRequiredDeleteCache;function requireDeleteCache(){if(hasRequiredDeleteCache)return deleteCache;hasRequiredDeleteCache=1,Object.defineProperty(deleteCache,"__esModule",{value:!0}),deleteCache.Error=deleteCache.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.DeleteCacheResponse.Success}}deleteCache.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.DeleteCacheResponse.Error}}return deleteCache.Error=o,deleteCache}var listCaches={},hasRequiredListCaches;function requireListCaches(){if(hasRequiredListCaches)return listCaches;hasRequiredListCaches=1,Object.defineProperty(listCaches,"__esModule",{value:!0}),listCaches.Error=listCaches.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.ListCachesResponse.Success,this.caches=e}getCaches(){return this.caches}toString(){const e=this.caches.map((e=>e.getName()));return super.toString()+": "+e.join(", ")}}listCaches.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.ListCachesResponse.Error}}return listCaches.Error=o,listCaches}var cacheSetFetch={},hasRequiredCacheSetFetch;function requireCacheSetFetch(){if(hasRequiredCacheSetFetch)return cacheSetFetch;hasRequiredCacheSetFetch=1,Object.defineProperty(cacheSetFetch,"__esModule",{value:!0}),cacheSetFetch.Error=cacheSetFetch.Miss=cacheSetFetch.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e){super(),this.type=r.CacheSetFetchResponse.Hit,this.elements=e}valueSet(){return this.valueSetString()}valueSetString(){return new Set(this.elements.map((e=>o.decode(e))))}valueSetUint8Array(){return new Set(this.elements)}value(){return this.valueArrayString()}valueArray(){return this.valueArrayString()}valueArrayString(){return this.elements.map((e=>o.decode(e)))}valueArrayUint8Array(){return this.elements}toString(){const e=(0,t.truncateStringArray)(Array.from(this.valueSetString()));return`${super.toString()}: [${e.toString()}]`}}cacheSetFetch.Hit=s;class n extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=r.CacheSetFetchResponse.Miss}value(){}}cacheSetFetch.Miss=n;class i extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheSetFetchResponse.Error}value(){}}return cacheSetFetch.Error=i,cacheSetFetch}var cacheDictionaryFetch={},hasRequiredCacheDictionaryFetch;function requireCacheDictionaryFetch(){if(hasRequiredCacheDictionaryFetch)return cacheDictionaryFetch;hasRequiredCacheDictionaryFetch=1,Object.defineProperty(cacheDictionaryFetch,"__esModule",{value:!0}),cacheDictionaryFetch.Error=cacheDictionaryFetch.Miss=cacheDictionaryFetch.Hit=void 0;const e=requireResponseBase(),t=requireEnums(),r=new TextDecoder;class o extends e.ResponseBase{constructor(e){super(),this._displayListSizeLimit=5,this.type=t.CacheDictionaryFetchResponse.Hit,this.items=e}valueMap(){return this.valueMapStringString()}valueMapStringString(){return this.items.reduce(((e,t)=>(e.set(r.decode(t.field),r.decode(t.value)),e)),new Map)}valueMapStringUint8Array(){return this.items.reduce(((e,t)=>(e.set(r.decode(t.field),t.value),e)),new Map)}value(){return this.valueRecordStringString()}valueRecord(){return this.valueRecordStringString()}valueRecordStringString(){return this.items.reduce(((e,t)=>(e[r.decode(t.field)]=r.decode(t.value),e)),{})}valueRecordStringUint8Array(){return this.items.reduce(((e,t)=>(e[r.decode(t.field)]=t.value,e)),{})}truncateValueStrings(){const e=this.valueMapStringString().entries(),t=Array.from(e);if(t.length<=this._displayListSizeLimit){const e=[];return t.forEach((t=>{e.push(`${t[0]}: ${t[1]}`)})),e.join(",")}{const e=t.slice(0,this._displayListSizeLimit),r=[];return e.forEach((e=>{r.push(`${e[0]}: ${e[1]}`)})),r.join(",")}}toString(){return`${super.toString()}: valueDictionaryStringString: ${this.truncateValueStrings()}`}}cacheDictionaryFetch.Hit=o;class s extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=t.CacheDictionaryFetchResponse.Miss}value(){}}cacheDictionaryFetch.Miss=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheDictionaryFetchResponse.Error}value(){}}return cacheDictionaryFetch.Error=n,cacheDictionaryFetch}var cacheDictionarySetField={},hasRequiredCacheDictionarySetField;function requireCacheDictionarySetField(){if(hasRequiredCacheDictionarySetField)return cacheDictionarySetField;hasRequiredCacheDictionarySetField=1,Object.defineProperty(cacheDictionarySetField,"__esModule",{value:!0}),cacheDictionarySetField.Error=cacheDictionarySetField.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheDictionarySetFieldResponse.Success}}cacheDictionarySetField.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheDictionarySetFieldResponse.Error}}return cacheDictionarySetField.Error=o,cacheDictionarySetField}var cacheDictionarySetFields={},hasRequiredCacheDictionarySetFields;function requireCacheDictionarySetFields(){if(hasRequiredCacheDictionarySetFields)return cacheDictionarySetFields;hasRequiredCacheDictionarySetFields=1,Object.defineProperty(cacheDictionarySetFields,"__esModule",{value:!0}),cacheDictionarySetFields.Error=cacheDictionarySetFields.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheDictionarySetFieldsResponse.Success}}cacheDictionarySetFields.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheDictionarySetFieldsResponse.Error}}return cacheDictionarySetFields.Error=o,cacheDictionarySetFields}var cacheDictionaryGetField={},hasRequiredCacheDictionaryGetField;function requireCacheDictionaryGetField(){if(hasRequiredCacheDictionaryGetField)return cacheDictionaryGetField;hasRequiredCacheDictionaryGetField=1,Object.defineProperty(cacheDictionaryGetField,"__esModule",{value:!0}),cacheDictionaryGetField.Error=cacheDictionaryGetField.Miss=cacheDictionaryGetField.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e,t){super(),this.type=r.CacheDictionaryGetFieldResponse.Hit,this.body=e,this.field=t}value(){return this.valueString()}valueString(){return o.decode(this.body)}valueUint8Array(){return this.body}toString(){const e=(0,t.truncateString)(this.valueString());return`${super.toString()}: ${e}`}fieldString(){return o.decode(this.field)}fieldUint8Array(){return this.field}}cacheDictionaryGetField.Hit=s;class n extends e.BaseResponseMiss{constructor(e){super(),this.type=r.CacheDictionaryGetFieldResponse.Miss,this.field=e}fieldString(){return o.decode(this.field)}fieldUint8Array(){return this.field}value(){}}cacheDictionaryGetField.Miss=n;class i extends e.BaseResponseError{constructor(e,t){super(e),this.type=r.CacheDictionaryGetFieldResponse.Error,this.field=t}fieldString(){return o.decode(this.field)}fieldUint8Array(){return this.field}value(){}}return cacheDictionaryGetField.Error=i,cacheDictionaryGetField}var cacheDictionaryGetFields={},grpcResponseTypes={},hasRequiredGrpcResponseTypes,hasRequiredCacheDictionaryGetFields;function requireGrpcResponseTypes(){return hasRequiredGrpcResponseTypes||(hasRequiredGrpcResponseTypes=1,function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e._RankedElement=e._SortedSetElement=e._SigningKey=e._SortedSetGetScoreResponsePart=e._DictionaryGetResponsePart=e._DictionaryFieldValuePair=e._ECacheResult=void 0,(t=e._ECacheResult||(e._ECacheResult={}))[t.Invalid=0]="Invalid",t[t.Ok=1]="Ok",t[t.Hit=2]="Hit",t[t.Miss=3]="Miss";e._DictionaryFieldValuePair=class{constructor({field:e,value:t}){this.field=e,this.value=t}};e._DictionaryGetResponsePart=class{constructor(e,t){this.result=e,this.cacheBody=t}};e._SortedSetGetScoreResponsePart=class{constructor(e,t){this.result=e,this.score=t}};e._SigningKey=class{constructor(e,t){this.key=e??"",this.expiresAt=t??0}};e._SortedSetElement=class{constructor(e,t){this.value=e,this.score=t}};e._RankedElement=class{constructor(e,t,r){this.id=e,this.score=t,this.rank=r}}}(grpcResponseTypes)),grpcResponseTypes}function requireCacheDictionaryGetFields(){if(hasRequiredCacheDictionaryGetFields)return cacheDictionaryGetFields;hasRequiredCacheDictionaryGetFields=1,Object.defineProperty(cacheDictionaryGetFields,"__esModule",{value:!0}),cacheDictionaryGetFields.Error=cacheDictionaryGetFields.Miss=cacheDictionaryGetFields.Hit=void 0;const e=requireErrors(),t=requireResponseBase(),r=requireCacheDictionaryGetField(),o=requireGrpcResponseTypes(),s=requireEnums(),n=new TextDecoder;class i extends t.ResponseBase{constructor(t,n){super(),this.type=s.CacheDictionaryGetFieldsResponse.Hit,this.responses=[],this.items=t,this.fields=n,t.forEach(((t,s)=>{t.result===o._ECacheResult.Hit?this.responses.push(new r.Hit(t.cacheBody,n[s])):t.result===o._ECacheResult.Miss?this.responses.push(new r.Miss(n[s])):this.responses.push(new r.Error(new e.UnknownError(t.result.toString()),n[s]))}))}valueMapStringString(){return this.items.reduce(((e,t,r)=>(t.result===o._ECacheResult.Hit&&e.set(n.decode(this.fields[r]),n.decode(t.cacheBody)),e)),new Map)}valueMap(){return this.valueMapStringString()}valueMapStringUint8Array(){return this.items.reduce(((e,t,r)=>(t.result===o._ECacheResult.Hit&&e.set(n.decode(this.fields[r]),t.cacheBody),e)),new Map)}valueRecordStringString(){return this.items.reduce(((e,t,r)=>(t.result===o._ECacheResult.Hit&&(e[n.decode(this.fields[r])]=n.decode(t.cacheBody)),e)),{})}valueRecord(){return this.valueRecordStringString()}value(){return this.valueRecordStringString()}valueRecordStringUint8Array(){return this.items.reduce(((e,t,r)=>(t.result===o._ECacheResult.Hit&&(e[n.decode(this.fields[r])]=t.cacheBody),e)),{})}toString(){let e="";return this.valueMapStringString().forEach(((t,r)=>{e+=`${r}: ${t}, `})),`${super.toString()}: valueDictionaryStringString: ${e.slice(0,-2)}`}}cacheDictionaryGetFields.Hit=i;class a extends t.BaseResponseMiss{constructor(){super(...arguments),this.type=s.CacheDictionaryGetFieldsResponse.Miss}value(){}}cacheDictionaryGetFields.Miss=a;class u extends t.BaseResponseError{constructor(e){super(e),this.type=s.CacheDictionaryGetFieldsResponse.Error}value(){}}return cacheDictionaryGetFields.Error=u,cacheDictionaryGetFields}var cacheDictionaryRemoveField={},hasRequiredCacheDictionaryRemoveField;function requireCacheDictionaryRemoveField(){if(hasRequiredCacheDictionaryRemoveField)return cacheDictionaryRemoveField;hasRequiredCacheDictionaryRemoveField=1,Object.defineProperty(cacheDictionaryRemoveField,"__esModule",{value:!0}),cacheDictionaryRemoveField.Error=cacheDictionaryRemoveField.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheDictionaryRemoveFieldResponse.Success}}cacheDictionaryRemoveField.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheDictionaryRemoveFieldResponse.Error}}return cacheDictionaryRemoveField.Error=o,cacheDictionaryRemoveField}var cacheDictionaryRemoveFields={},hasRequiredCacheDictionaryRemoveFields;function requireCacheDictionaryRemoveFields(){if(hasRequiredCacheDictionaryRemoveFields)return cacheDictionaryRemoveFields;hasRequiredCacheDictionaryRemoveFields=1,Object.defineProperty(cacheDictionaryRemoveFields,"__esModule",{value:!0}),cacheDictionaryRemoveFields.Error=cacheDictionaryRemoveFields.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheDictionaryRemoveFieldsResponse.Success}}cacheDictionaryRemoveFields.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheDictionaryRemoveFieldsResponse.Error}}return cacheDictionaryRemoveFields.Error=o,cacheDictionaryRemoveFields}var cacheDictionaryIncrement={},hasRequiredCacheDictionaryIncrement;function requireCacheDictionaryIncrement(){if(hasRequiredCacheDictionaryIncrement)return cacheDictionaryIncrement;hasRequiredCacheDictionaryIncrement=1,Object.defineProperty(cacheDictionaryIncrement,"__esModule",{value:!0}),cacheDictionaryIncrement.Error=cacheDictionaryIncrement.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheDictionaryIncrementResponse.Success,this._value=e}value(){return this._value}valueNumber(){return this._value}toString(){return`${super.toString()}: value: ${this.valueNumber()}`}}cacheDictionaryIncrement.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheDictionaryIncrementResponse.Error}value(){}}return cacheDictionaryIncrement.Error=o,cacheDictionaryIncrement}var cacheDictionaryLength={},hasRequiredCacheDictionaryLength;function requireCacheDictionaryLength(){if(hasRequiredCacheDictionaryLength)return cacheDictionaryLength;hasRequiredCacheDictionaryLength=1,Object.defineProperty(cacheDictionaryLength,"__esModule",{value:!0}),cacheDictionaryLength.Error=cacheDictionaryLength.Miss=cacheDictionaryLength.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e){super(),this.type=t.CacheDictionaryLengthResponse.Hit,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}value(){return this._length}}cacheDictionaryLength.Hit=r;class o extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=t.CacheDictionaryLengthResponse.Miss}value(){}}cacheDictionaryLength.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheDictionaryLengthResponse.Error}value(){}}return cacheDictionaryLength.Error=s,cacheDictionaryLength}var cacheSetAddElements={},cacheSetAddElement={},hasRequiredCacheSetAddElement,hasRequiredCacheSetAddElements;function requireCacheSetAddElement(){if(hasRequiredCacheSetAddElement)return cacheSetAddElement;hasRequiredCacheSetAddElement=1,Object.defineProperty(cacheSetAddElement,"__esModule",{value:!0}),cacheSetAddElement.Error=cacheSetAddElement.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheSetAddElementResponse.Success}}cacheSetAddElement.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetAddElementResponse.Error}}return cacheSetAddElement.Error=o,cacheSetAddElement}function requireCacheSetAddElements(){if(hasRequiredCacheSetAddElements)return cacheSetAddElements;hasRequiredCacheSetAddElements=1,Object.defineProperty(cacheSetAddElements,"__esModule",{value:!0}),cacheSetAddElements.Error=cacheSetAddElements.Success=void 0;const e=requireResponseBase(),t=requireCacheSetAddElement(),r=requireEnums();class o extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=r.CacheSetAddElementsResponse.Success}toSingularResponse(){return new t.Success}}cacheSetAddElements.Success=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheSetAddElementsResponse.Error}toSingularResponse(){return new t.Error(this._innerException)}}return cacheSetAddElements.Error=s,cacheSetAddElements}var cacheSetContainsElement={},hasRequiredCacheSetContainsElement;function requireCacheSetContainsElement(){if(hasRequiredCacheSetContainsElement)return cacheSetContainsElement;hasRequiredCacheSetContainsElement=1,Object.defineProperty(cacheSetContainsElement,"__esModule",{value:!0}),cacheSetContainsElement.Error=cacheSetContainsElement.Miss=cacheSetContainsElement.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSetContainsElementResponse.Hit,this._containsElement=e}containsElement(){return this._containsElement}toString(){return`${super.toString()}: Hit - ${this._containsElement?"true":"false"}`}}cacheSetContainsElement.Hit=r;class o extends e.BaseResponseMiss{constructor(){super(),this.type=t.CacheSetContainsElementResponse.Miss}containsElement(){}}cacheSetContainsElement.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetContainsElementResponse.Error}containsElement(){}}return cacheSetContainsElement.Error=s,cacheSetContainsElement}var cacheSetContainsElements={},hasRequiredCacheSetContainsElements;function requireCacheSetContainsElements(){if(hasRequiredCacheSetContainsElements)return cacheSetContainsElements;hasRequiredCacheSetContainsElements=1,Object.defineProperty(cacheSetContainsElements,"__esModule",{value:!0}),cacheSetContainsElements.Error=cacheSetContainsElements.Miss=cacheSetContainsElements.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e,t){super(),this.type=r.CacheSetContainsElementsResponse.Hit,this._contains=e.reduce(((e,r,s)=>(e[o.decode(r)]=t[s],e)),{})}containsElements(){return this._contains}toString(){const e=(0,t.truncateString)(Object.entries(this._contains).map((([e,t])=>`${e}: ${t?"true":"false"}`)).join(", "));return`${super.toString()}: ${e}`}}cacheSetContainsElements.Hit=s;class n extends e.BaseResponseMiss{constructor(){super(),this.type=r.CacheSetContainsElementsResponse.Miss}containsElements(){}}cacheSetContainsElements.Miss=n;class i extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheSetContainsElementsResponse.Error}containsElements(){}}return cacheSetContainsElements.Error=i,cacheSetContainsElements}var cacheSetRemoveElements={},cacheSetRemoveElement={},hasRequiredCacheSetRemoveElement,hasRequiredCacheSetRemoveElements;function requireCacheSetRemoveElement(){if(hasRequiredCacheSetRemoveElement)return cacheSetRemoveElement;hasRequiredCacheSetRemoveElement=1,Object.defineProperty(cacheSetRemoveElement,"__esModule",{value:!0}),cacheSetRemoveElement.Error=cacheSetRemoveElement.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheSetRemoveElementResponse.Success}}cacheSetRemoveElement.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetRemoveElementResponse.Error}}return cacheSetRemoveElement.Error=o,cacheSetRemoveElement}function requireCacheSetRemoveElements(){if(hasRequiredCacheSetRemoveElements)return cacheSetRemoveElements;hasRequiredCacheSetRemoveElements=1,Object.defineProperty(cacheSetRemoveElements,"__esModule",{value:!0}),cacheSetRemoveElements.Error=cacheSetRemoveElements.Success=void 0;const e=requireCacheSetRemoveElement(),t=requireResponseBase(),r=requireEnums();class o extends t.BaseResponseSuccess{constructor(){super(...arguments),this.type=r.CacheSetRemoveElementsResponse.Success}toSingularResponse(){return new e.Success}}cacheSetRemoveElements.Success=o;class s extends t.BaseResponseError{constructor(e){super(e),this.type=r.CacheSetRemoveElementsResponse.Error}toSingularResponse(){return new e.Error(this._innerException)}}return cacheSetRemoveElements.Error=s,cacheSetRemoveElements}var cacheSetSample={},hasRequiredCacheSetSample;function requireCacheSetSample(){if(hasRequiredCacheSetSample)return cacheSetSample;hasRequiredCacheSetSample=1,Object.defineProperty(cacheSetSample,"__esModule",{value:!0}),cacheSetSample.Error=cacheSetSample.Miss=cacheSetSample.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e){super(),this.type=r.CacheSetSampleResponse.Hit,this.elements=e}valueSet(){return this.valueSetString()}valueSetString(){return new Set(this.elements.map((e=>o.decode(e))))}valueSetUint8Array(){return new Set(this.elements)}value(){return this.valueArrayString()}valueArray(){return this.valueArrayString()}valueArrayString(){return this.elements.map((e=>o.decode(e)))}valueArrayUint8Array(){return this.elements}toString(){const e=(0,t.truncateStringArray)(Array.from(this.valueSetString()));return`${super.toString()}: [${e.toString()}]`}}cacheSetSample.Hit=s;class n extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=r.CacheSetSampleResponse.Miss}value(){}}cacheSetSample.Miss=n;class i extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheSetSampleResponse.Error}value(){}}return cacheSetSample.Error=i,cacheSetSample}var cacheSetPop={},hasRequiredCacheSetPop;function requireCacheSetPop(){if(hasRequiredCacheSetPop)return cacheSetPop;hasRequiredCacheSetPop=1,Object.defineProperty(cacheSetPop,"__esModule",{value:!0}),cacheSetPop.Error=cacheSetPop.Miss=cacheSetPop.Hit=void 0;const e=requireResponseBase(),t=requireUtils$1(),r=requireEnums(),o=new TextDecoder;class s extends e.ResponseBase{constructor(e){super(),this.type=r.CacheSetPopResponse.Hit,this.elements=e}valueSet(){return this.valueSetString()}valueSetString(){return new Set(this.elements.map((e=>o.decode(e))))}valueSetUint8Array(){return new Set(this.elements)}value(){return this.valueArrayString()}valueArray(){return this.valueArrayString()}valueArrayString(){return this.elements.map((e=>o.decode(e)))}valueArrayUint8Array(){return this.elements}toString(){const e=(0,t.truncateStringArray)(Array.from(this.valueSetString()));return`${super.toString()}: [${e.toString()}]`}}cacheSetPop.Hit=s;class n extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=r.CacheSetPopResponse.Miss}value(){}}cacheSetPop.Miss=n;class i extends e.BaseResponseError{constructor(e){super(e),this.type=r.CacheSetPopResponse.Error}value(){}}return cacheSetPop.Error=i,cacheSetPop}var cacheSetLength={},hasRequiredCacheSetLength;function requireCacheSetLength(){if(hasRequiredCacheSetLength)return cacheSetLength;hasRequiredCacheSetLength=1,Object.defineProperty(cacheSetLength,"__esModule",{value:!0}),cacheSetLength.Error=cacheSetLength.Miss=cacheSetLength.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSetLengthResponse.Hit,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}cacheSetLength.Hit=r;class o extends e.BaseResponseMiss{constructor(){super(),this.type=t.CacheSetLengthResponse.Miss}length(){}}cacheSetLength.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetLengthResponse.Error}length(){}}return cacheSetLength.Error=s,cacheSetLength}var cacheIncrement={},hasRequiredCacheIncrement;function requireCacheIncrement(){if(hasRequiredCacheIncrement)return cacheIncrement;hasRequiredCacheIncrement=1,Object.defineProperty(cacheIncrement,"__esModule",{value:!0}),cacheIncrement.Error=cacheIncrement.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheIncrementResponse.Success,this.body=e}value(){return this.body}valueNumber(){return this.body}toString(){return`${super.toString()}: value: ${this.value()}`}}cacheIncrement.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheIncrementResponse.Error}value(){}}return cacheIncrement.Error=o,cacheIncrement}var cacheSetIfNotExists={},hasRequiredCacheSetIfNotExists;function requireCacheSetIfNotExists(){if(hasRequiredCacheSetIfNotExists)return cacheSetIfNotExists;hasRequiredCacheSetIfNotExists=1,Object.defineProperty(cacheSetIfNotExists,"__esModule",{value:!0}),cacheSetIfNotExists.Error=cacheSetIfNotExists.NotStored=cacheSetIfNotExists.Stored=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfNotExistsResponse.Stored}}cacheSetIfNotExists.Stored=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfNotExistsResponse.NotStored}}cacheSetIfNotExists.NotStored=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfNotExistsResponse.Error}}return cacheSetIfNotExists.Error=s,cacheSetIfNotExists}var cacheSetIfAbsent={},hasRequiredCacheSetIfAbsent;function requireCacheSetIfAbsent(){if(hasRequiredCacheSetIfAbsent)return cacheSetIfAbsent;hasRequiredCacheSetIfAbsent=1,Object.defineProperty(cacheSetIfAbsent,"__esModule",{value:!0}),cacheSetIfAbsent.Error=cacheSetIfAbsent.NotStored=cacheSetIfAbsent.Stored=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfAbsentResponse.Stored}}cacheSetIfAbsent.Stored=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfAbsentResponse.NotStored}}cacheSetIfAbsent.NotStored=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfAbsentResponse.Error}}return cacheSetIfAbsent.Error=s,cacheSetIfAbsent}var cacheSetIfPresent={},hasRequiredCacheSetIfPresent;function requireCacheSetIfPresent(){if(hasRequiredCacheSetIfPresent)return cacheSetIfPresent;hasRequiredCacheSetIfPresent=1,Object.defineProperty(cacheSetIfPresent,"__esModule",{value:!0}),cacheSetIfPresent.Error=cacheSetIfPresent.NotStored=cacheSetIfPresent.Stored=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfPresentResponse.Stored}}cacheSetIfPresent.Stored=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfPresentResponse.NotStored}}cacheSetIfPresent.NotStored=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfPresentResponse.Error}}return cacheSetIfPresent.Error=s,cacheSetIfPresent}var cacheSetIfEqual={},hasRequiredCacheSetIfEqual;function requireCacheSetIfEqual(){if(hasRequiredCacheSetIfEqual)return cacheSetIfEqual;hasRequiredCacheSetIfEqual=1,Object.defineProperty(cacheSetIfEqual,"__esModule",{value:!0}),cacheSetIfEqual.Error=cacheSetIfEqual.NotStored=cacheSetIfEqual.Stored=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfEqualResponse.Stored}}cacheSetIfEqual.Stored=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfEqualResponse.NotStored}}cacheSetIfEqual.NotStored=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfEqualResponse.Error}}return cacheSetIfEqual.Error=s,cacheSetIfEqual}var cacheSetIfNotEqual={},hasRequiredCacheSetIfNotEqual;function requireCacheSetIfNotEqual(){if(hasRequiredCacheSetIfNotEqual)return cacheSetIfNotEqual;hasRequiredCacheSetIfNotEqual=1,Object.defineProperty(cacheSetIfNotEqual,"__esModule",{value:!0}),cacheSetIfNotEqual.Error=cacheSetIfNotEqual.NotStored=cacheSetIfNotEqual.Stored=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfNotEqualResponse.Stored}}cacheSetIfNotEqual.Stored=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfNotEqualResponse.NotStored}}cacheSetIfNotEqual.NotStored=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfNotEqualResponse.Error}}return cacheSetIfNotEqual.Error=s,cacheSetIfNotEqual}var cacheSetIfPresentAndNotEqual={},hasRequiredCacheSetIfPresentAndNotEqual;function requireCacheSetIfPresentAndNotEqual(){if(hasRequiredCacheSetIfPresentAndNotEqual)return cacheSetIfPresentAndNotEqual;hasRequiredCacheSetIfPresentAndNotEqual=1,Object.defineProperty(cacheSetIfPresentAndNotEqual,"__esModule",{value:!0}),cacheSetIfPresentAndNotEqual.Error=cacheSetIfPresentAndNotEqual.NotStored=cacheSetIfPresentAndNotEqual.Stored=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfPresentAndNotEqualResponse.Stored}}cacheSetIfPresentAndNotEqual.Stored=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfPresentAndNotEqualResponse.NotStored}}cacheSetIfPresentAndNotEqual.NotStored=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfPresentAndNotEqualResponse.Error}}return cacheSetIfPresentAndNotEqual.Error=s,cacheSetIfPresentAndNotEqual}var cacheSetIfAbsentOrEqual={},hasRequiredCacheSetIfAbsentOrEqual;function requireCacheSetIfAbsentOrEqual(){if(hasRequiredCacheSetIfAbsentOrEqual)return cacheSetIfAbsentOrEqual;hasRequiredCacheSetIfAbsentOrEqual=1,Object.defineProperty(cacheSetIfAbsentOrEqual,"__esModule",{value:!0}),cacheSetIfAbsentOrEqual.Error=cacheSetIfAbsentOrEqual.NotStored=cacheSetIfAbsentOrEqual.Stored=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfAbsentOrEqualResponse.Stored}}cacheSetIfAbsentOrEqual.Stored=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfAbsentOrEqualResponse.NotStored}}cacheSetIfAbsentOrEqual.NotStored=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfAbsentOrEqualResponse.Error}}return cacheSetIfAbsentOrEqual.Error=s,cacheSetIfAbsentOrEqual}var cacheSortedSetPutElement={},hasRequiredCacheSortedSetPutElement;function requireCacheSortedSetPutElement(){if(hasRequiredCacheSortedSetPutElement)return cacheSortedSetPutElement;hasRequiredCacheSortedSetPutElement=1,Object.defineProperty(cacheSortedSetPutElement,"__esModule",{value:!0}),cacheSortedSetPutElement.Error=cacheSortedSetPutElement.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheSortedSetPutElementResponse.Success}}cacheSortedSetPutElement.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetPutElementResponse.Error}}return cacheSortedSetPutElement.Error=o,cacheSortedSetPutElement}var cacheSortedSetPutElements={},hasRequiredCacheSortedSetPutElements;function requireCacheSortedSetPutElements(){if(hasRequiredCacheSortedSetPutElements)return cacheSortedSetPutElements;hasRequiredCacheSortedSetPutElements=1,Object.defineProperty(cacheSortedSetPutElements,"__esModule",{value:!0}),cacheSortedSetPutElements.Error=cacheSortedSetPutElements.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheSortedSetPutElementsResponse.Success}}cacheSortedSetPutElements.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetPutElementsResponse.Error}}return cacheSortedSetPutElements.Error=o,cacheSortedSetPutElements}var cacheSortedSetFetch={},hasRequiredCacheSortedSetFetch;function requireCacheSortedSetFetch(){if(hasRequiredCacheSortedSetFetch)return cacheSortedSetFetch;hasRequiredCacheSortedSetFetch=1,Object.defineProperty(cacheSortedSetFetch,"__esModule",{value:!0}),cacheSortedSetFetch.Error=cacheSortedSetFetch.Miss=cacheSortedSetFetch.Hit=void 0;const e=requireResponseBase(),t=requireEnums(),r=new TextDecoder;class o extends e.ResponseBase{constructor(e){super(),this._displayListSizeLimit=5,this.type=t.CacheSortedSetFetchResponse.Hit,this.elements=e}valueArrayUint8Elements(){return this.elements.map((e=>({value:e.value,score:e.score})))}valueArrayStringElements(){return this.elements.map((e=>({value:r.decode(e.value),score:e.score})))}valueArray(){return this.valueArrayStringElements()}value(){return this.valueArrayStringElements()}truncateValueStrings(){const e=this.valueArrayStringElements(),t=[];return e.length<=this._displayListSizeLimit?e.forEach((e=>{t.push(`${e.value}: ${e.score}`)})):e.slice(0,this._displayListSizeLimit).forEach((e=>{t.push(`${e.value}: ${e.score}`)})),t.join(", ")}toString(){return`${super.toString()}: valueArrayStringElements: ${this.truncateValueStrings()}`}}cacheSortedSetFetch.Hit=o;class s extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=t.CacheSortedSetFetchResponse.Miss}value(){}}cacheSortedSetFetch.Miss=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetFetchResponse.Error}value(){}}return cacheSortedSetFetch.Error=n,cacheSortedSetFetch}var cacheSortedSetGetRank={},hasRequiredCacheSortedSetGetRank;function requireCacheSortedSetGetRank(){if(hasRequiredCacheSortedSetGetRank)return cacheSortedSetGetRank;hasRequiredCacheSortedSetGetRank=1,Object.defineProperty(cacheSortedSetGetRank,"__esModule",{value:!0}),cacheSortedSetGetRank.Error=cacheSortedSetGetRank.Miss=cacheSortedSetGetRank.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSortedSetGetRankResponse.Hit,this._rank=e}rank(){return this._rank}toString(){return`${super.toString()}: rank: ${this.rank()}`}}cacheSortedSetGetRank.Hit=r;class o extends e.BaseResponseMiss{constructor(){super(),this.type=t.CacheSortedSetGetRankResponse.Miss}rank(){}}cacheSortedSetGetRank.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetGetRankResponse.Error}rank(){}}return cacheSortedSetGetRank.Error=s,cacheSortedSetGetRank}var cacheSortedSetGetScore={},hasRequiredCacheSortedSetGetScore;function requireCacheSortedSetGetScore(){if(hasRequiredCacheSortedSetGetScore)return cacheSortedSetGetScore;hasRequiredCacheSortedSetGetScore=1,Object.defineProperty(cacheSortedSetGetScore,"__esModule",{value:!0}),cacheSortedSetGetScore.Error=cacheSortedSetGetScore.Miss=cacheSortedSetGetScore.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e,r){super(),this.type=t.CacheSortedSetGetScoreResponse.Hit,this._value=r,this._score=e}valueUint8Array(){return this._value}valueString(){return(new TextDecoder).decode(this._value)}score(){return this._score}toString(){return`${super.toString()}: value: ${this.valueString()}`}}cacheSortedSetGetScore.Hit=r;class o extends e.BaseResponseMiss{constructor(e){super(),this.type=t.CacheSortedSetGetScoreResponse.Miss,this._value=e}valueUint8Array(){return this._value}valueString(){return(new TextDecoder).decode(this._value)}score(){}toString(){return`${super.toString()}: value: ${this.valueString()}`}}cacheSortedSetGetScore.Miss=o;class s extends e.BaseResponseError{constructor(e,r){super(e),this.type=t.CacheSortedSetGetScoreResponse.Error,this._value=r}valueUint8Array(){return this._value}valueString(){return(new TextDecoder).decode(this._value)}score(){}}return cacheSortedSetGetScore.Error=s,cacheSortedSetGetScore}var cacheSortedSetGetScores={},hasRequiredCacheSortedSetGetScores;function requireCacheSortedSetGetScores(){if(hasRequiredCacheSortedSetGetScores)return cacheSortedSetGetScores;hasRequiredCacheSortedSetGetScores=1,Object.defineProperty(cacheSortedSetGetScores,"__esModule",{value:!0}),cacheSortedSetGetScores.Error=cacheSortedSetGetScores.Miss=cacheSortedSetGetScores.Hit=void 0;const e=requireErrors(),t=requireResponseBase(),r=requireGrpcResponseTypes(),o=requireEnums(),s=requireSrc$1();class n extends t.ResponseBase{constructor(t,n){super(),this._responses=[],this.type=o.CacheSortedSetGetScoresResponse.Hit,t.forEach(((t,o)=>{t.result===r._ECacheResult.Hit?this._responses.push(new s.CacheSortedSetGetScore.Hit(t.score,n[o])):t.result===r._ECacheResult.Miss?this._responses.push(new s.CacheSortedSetGetScore.Miss(n[o])):this._responses.push(new s.CacheSortedSetGetScore.Error(new e.UnknownError(t.result.toString()),n[o]))}))}responses(){return this._responses}valueMapString(){return this._responses.reduce(((e,t)=>(t instanceof s.CacheSortedSetGetScore.Hit&&e.set(t.valueString(),t.score()),e)),new Map)}valueMap(){return this.valueMapString()}valueRecordString(){return this._responses.reduce(((e,t)=>(t instanceof s.CacheSortedSetGetScore.Hit&&(e[t.valueString()]=t.score()),e)),{})}valueRecord(){return this.valueRecordString()}value(){return this.valueRecord()}toString(){let e="";return this.valueMapString().forEach(((t,r)=>{e+=`${r}: ${t}, `})),`${super.toString()}: valueMapString: ${e.slice(0,-2)}`}}cacheSortedSetGetScores.Hit=n;class i extends t.BaseResponseMiss{constructor(){super(...arguments),this.type=o.CacheSortedSetGetScoresResponse.Miss}value(){}}cacheSortedSetGetScores.Miss=i;class a extends t.BaseResponseError{constructor(e){super(e),this.type=o.CacheSortedSetGetScoresResponse.Error}value(){}}return cacheSortedSetGetScores.Error=a,cacheSortedSetGetScores}var cacheSortedSetIncrementScore={},hasRequiredCacheSortedSetIncrementScore;function requireCacheSortedSetIncrementScore(){if(hasRequiredCacheSortedSetIncrementScore)return cacheSortedSetIncrementScore;hasRequiredCacheSortedSetIncrementScore=1,Object.defineProperty(cacheSortedSetIncrementScore,"__esModule",{value:!0}),cacheSortedSetIncrementScore.Error=cacheSortedSetIncrementScore.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheSortedSetIncrementScoreResponse.Success,this._score=e}score(){return this._score}toString(){return`${super.toString()}: value: ${this.score()}`}}cacheSortedSetIncrementScore.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetIncrementScoreResponse.Error}score(){}}return cacheSortedSetIncrementScore.Error=o,cacheSortedSetIncrementScore}var cacheSortedSetRemoveElement={},hasRequiredCacheSortedSetRemoveElement;function requireCacheSortedSetRemoveElement(){if(hasRequiredCacheSortedSetRemoveElement)return cacheSortedSetRemoveElement;hasRequiredCacheSortedSetRemoveElement=1,Object.defineProperty(cacheSortedSetRemoveElement,"__esModule",{value:!0}),cacheSortedSetRemoveElement.Error=cacheSortedSetRemoveElement.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheSortedSetRemoveElementResponse.Success}}cacheSortedSetRemoveElement.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetRemoveElementResponse.Error}}return cacheSortedSetRemoveElement.Error=o,cacheSortedSetRemoveElement}var cacheSortedSetRemoveElements={},hasRequiredCacheSortedSetRemoveElements;function requireCacheSortedSetRemoveElements(){if(hasRequiredCacheSortedSetRemoveElements)return cacheSortedSetRemoveElements;hasRequiredCacheSortedSetRemoveElements=1,Object.defineProperty(cacheSortedSetRemoveElements,"__esModule",{value:!0}),cacheSortedSetRemoveElements.Error=cacheSortedSetRemoveElements.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.CacheSortedSetRemoveElementsResponse.Success}}cacheSortedSetRemoveElements.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetRemoveElementsResponse.Error}}return cacheSortedSetRemoveElements.Error=o,cacheSortedSetRemoveElements}var cacheSortedSetLength={},hasRequiredCacheSortedSetLength;function requireCacheSortedSetLength(){if(hasRequiredCacheSortedSetLength)return cacheSortedSetLength;hasRequiredCacheSortedSetLength=1,Object.defineProperty(cacheSortedSetLength,"__esModule",{value:!0}),cacheSortedSetLength.Error=cacheSortedSetLength.Miss=cacheSortedSetLength.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSortedSetLengthResponse.Hit,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}cacheSortedSetLength.Hit=r;class o extends e.BaseResponseMiss{constructor(){super(),this.type=t.CacheSortedSetLengthResponse.Miss}length(){}}cacheSortedSetLength.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetLengthResponse.Error}length(){}}return cacheSortedSetLength.Error=s,cacheSortedSetLength}var cacheSortedSetLengthByScore={},hasRequiredCacheSortedSetLengthByScore;function requireCacheSortedSetLengthByScore(){if(hasRequiredCacheSortedSetLengthByScore)return cacheSortedSetLengthByScore;hasRequiredCacheSortedSetLengthByScore=1,Object.defineProperty(cacheSortedSetLengthByScore,"__esModule",{value:!0}),cacheSortedSetLengthByScore.Error=cacheSortedSetLengthByScore.Miss=cacheSortedSetLengthByScore.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSortedSetLengthByScoreResponse.Hit,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}cacheSortedSetLengthByScore.Hit=r;class o extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=t.CacheSortedSetLengthByScoreResponse.Miss}length(){}}cacheSortedSetLengthByScore.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetLengthByScoreResponse.Error}length(){}}return cacheSortedSetLengthByScore.Error=s,cacheSortedSetLengthByScore}var cacheSortedSetUnionStore={},hasRequiredCacheSortedSetUnionStore;function requireCacheSortedSetUnionStore(){if(hasRequiredCacheSortedSetUnionStore)return cacheSortedSetUnionStore;hasRequiredCacheSortedSetUnionStore=1,Object.defineProperty(cacheSortedSetUnionStore,"__esModule",{value:!0}),cacheSortedSetUnionStore.Error=cacheSortedSetUnionStore.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheSortedSetUnionStoreResponse.Success,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}cacheSortedSetUnionStore.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSortedSetUnionStoreResponse.Error}}return cacheSortedSetUnionStore.Error=o,cacheSortedSetUnionStore}var cacheItemGetType={},hasRequiredCacheItemGetType;function requireCacheItemGetType(){if(hasRequiredCacheItemGetType)return cacheItemGetType;hasRequiredCacheItemGetType=1,Object.defineProperty(cacheItemGetType,"__esModule",{value:!0}),cacheItemGetType.Error=cacheItemGetType.Miss=cacheItemGetType.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e){super(),this.type=t.CacheItemGetTypeResponse.Hit,this.keyType=e}itemType(){return this.keyType}toString(){return`${super.toString()}: item type: ${this.keyType}`}}cacheItemGetType.Hit=r;class o extends e.BaseResponseMiss{constructor(){super(),this.type=t.CacheItemGetTypeResponse.Miss}itemType(){}}cacheItemGetType.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheItemGetTypeResponse.Error}itemType(){}}return cacheItemGetType.Error=s,cacheItemGetType}var cacheItemGetTtl={},hasRequiredCacheItemGetTtl;function requireCacheItemGetTtl(){if(hasRequiredCacheItemGetTtl)return cacheItemGetTtl;hasRequiredCacheItemGetTtl=1,Object.defineProperty(cacheItemGetTtl,"__esModule",{value:!0}),cacheItemGetTtl.Error=cacheItemGetTtl.Miss=cacheItemGetTtl.Hit=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(e){super(),this.type=t.CacheItemGetTtlResponse.Hit,this.ttlMillis=e}remainingTtlMillis(){return this.ttlMillis}toString(){return`${super.toString()}: remaining ttl: ${this.ttlMillis}`}}cacheItemGetTtl.Hit=r;class o extends e.BaseResponseMiss{constructor(){super(),this.type=t.CacheItemGetTtlResponse.Miss}remainingTtlMillis(){}}cacheItemGetTtl.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheItemGetTtlResponse.Error}remainingTtlMillis(){}}return cacheItemGetTtl.Error=s,cacheItemGetTtl}var cacheKeyExists={},hasRequiredCacheKeyExists;function requireCacheKeyExists(){if(hasRequiredCacheKeyExists)return cacheKeyExists;hasRequiredCacheKeyExists=1,Object.defineProperty(cacheKeyExists,"__esModule",{value:!0}),cacheKeyExists.Error=cacheKeyExists.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheKeyExistsResponse.Success,this._exists=e[0]}exists(){return this._exists}toString(){return`${super.toString()}: exists: ${String(this._exists)}`}}cacheKeyExists.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheKeyExistsResponse.Error}exists(){}}return cacheKeyExists.Error=o,cacheKeyExists}var cacheKeysExist={},hasRequiredCacheKeysExist;function requireCacheKeysExist(){if(hasRequiredCacheKeysExist)return cacheKeysExist;hasRequiredCacheKeysExist=1,Object.defineProperty(cacheKeysExist,"__esModule",{value:!0}),cacheKeysExist.Error=cacheKeysExist.Success=void 0;const e=requireResponseBase(),t=requireEnums(),r=new TextDecoder;class o extends e.BaseResponseSuccess{constructor(e,r){super(),this.type=t.CacheKeysExistResponse.Success,this._keys=e,this._exists=r}exists(){return this._exists}valueRecord(){return this._keys.reduce(((e,t,o)=>(e[r.decode(t)]=this._exists[o],e)),{})}toString(){const e=this._exists.map((e=>e));return super.toString()+": exists: "+e.join(", ")}}cacheKeysExist.Success=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheKeysExistResponse.Error}exists(){}}return cacheKeysExist.Error=s,cacheKeysExist}var cacheTtlUpdate={},hasRequiredCacheTtlUpdate;function requireCacheTtlUpdate(){if(hasRequiredCacheTtlUpdate)return cacheTtlUpdate;hasRequiredCacheTtlUpdate=1,Object.defineProperty(cacheTtlUpdate,"__esModule",{value:!0}),cacheTtlUpdate.Error=cacheTtlUpdate.Miss=cacheTtlUpdate.Set=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheUpdateTtlResponse.Set}}cacheTtlUpdate.Set=r;class o extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=t.CacheUpdateTtlResponse.Miss}}cacheTtlUpdate.Miss=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheUpdateTtlResponse.Error}}return cacheTtlUpdate.Error=s,cacheTtlUpdate}var cacheTtlIncrease={},hasRequiredCacheTtlIncrease;function requireCacheTtlIncrease(){if(hasRequiredCacheTtlIncrease)return cacheTtlIncrease;hasRequiredCacheTtlIncrease=1,Object.defineProperty(cacheTtlIncrease,"__esModule",{value:!0}),cacheTtlIncrease.Error=cacheTtlIncrease.Miss=cacheTtlIncrease.NotSet=cacheTtlIncrease.Set=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheIncreaseTtlResponse.Set}}cacheTtlIncrease.Set=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheIncreaseTtlResponse.NotSet}}cacheTtlIncrease.NotSet=o;class s extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=t.CacheIncreaseTtlResponse.Miss}}cacheTtlIncrease.Miss=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheIncreaseTtlResponse.Error}}return cacheTtlIncrease.Error=n,cacheTtlIncrease}var cacheTtlDecrease={},hasRequiredCacheTtlDecrease;function requireCacheTtlDecrease(){if(hasRequiredCacheTtlDecrease)return cacheTtlDecrease;hasRequiredCacheTtlDecrease=1,Object.defineProperty(cacheTtlDecrease,"__esModule",{value:!0}),cacheTtlDecrease.Error=cacheTtlDecrease.Miss=cacheTtlDecrease.NotSet=cacheTtlDecrease.Set=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheDecreaseTtlResponse.Set}}cacheTtlDecrease.Set=r;class o extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheDecreaseTtlResponse.NotSet}}cacheTtlDecrease.NotSet=o;class s extends e.BaseResponseMiss{constructor(){super(...arguments),this.type=t.CacheDecreaseTtlResponse.Miss}}cacheTtlDecrease.Miss=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheDecreaseTtlResponse.Error}}return cacheTtlDecrease.Error=n,cacheTtlDecrease}var cacheBatchSet={},hasRequiredCacheBatchSet;function requireCacheBatchSet(){if(hasRequiredCacheBatchSet)return cacheBatchSet;hasRequiredCacheBatchSet=1,Object.defineProperty(cacheBatchSet,"__esModule",{value:!0}),cacheBatchSet.Error=cacheBatchSet.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.CacheSetBatchResponse.Success,this.body=e}results(){return this.body}}cacheBatchSet.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetBatchResponse.Error}}return cacheBatchSet.Error=o,cacheBatchSet}var cacheBatchGet={},hasRequiredCacheBatchGet;function requireCacheBatchGet(){if(hasRequiredCacheBatchGet)return cacheBatchGet;hasRequiredCacheBatchGet=1,Object.defineProperty(cacheBatchGet,"__esModule",{value:!0}),cacheBatchGet.Error=cacheBatchGet.Success=void 0;const e=requireResponseBase(),t=requireEnums(),r=requireSrc$1(),o=new TextDecoder;class s extends e.BaseResponseSuccess{constructor(e,r){super(),this.type=t.CacheGetBatchResponse.Success,this.body=e,this.keys=r}results(){return this.body}values(){return this.valuesRecordStringString()}valuesRecord(){return this.valuesRecordStringString()}valuesRecordStringString(){return this.body.reduce(((e,t,s)=>(t instanceof r.CacheGet.Hit&&(e[o.decode(this.keys[s])]=t.valueString()),e)),{})}valuesRecordStringUint8Array(){return this.body.reduce(((e,t,s)=>(t instanceof r.CacheGet.Hit&&(e[o.decode(this.keys[s])]=t.valueUint8Array()),e)),{})}valuesMap(){return this.valuesMapStringString()}valuesMapStringString(){return this.body.reduce(((e,t,s)=>(t instanceof r.CacheGet.Hit&&e.set(o.decode(this.keys[s]),t.valueString()),e)),new Map)}valuesMapStringUint8Array(){return this.body.reduce(((e,t,s)=>(t instanceof r.CacheGet.Hit&&e.set(o.decode(this.keys[s]),t.valueUint8Array()),e)),new Map)}toString(){const e=this.results().map((e=>e.toString())).toString();return`${super.toString()}: ${e}`}}cacheBatchGet.Success=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheGetBatchResponse.Error}values(){}}return cacheBatchGet.Error=n,cacheBatchGet}var cacheSetWithHash={},hasRequiredCacheSetWithHash;function requireCacheSetWithHash(){if(hasRequiredCacheSetWithHash)return cacheSetWithHash;hasRequiredCacheSetWithHash=1,Object.defineProperty(cacheSetWithHash,"__esModule",{value:!0}),cacheSetWithHash.Error=cacheSetWithHash.NotStored=cacheSetWithHash.Stored=void 0;const e=requireResponseBase(),t=requireEnums(),r=new TextDecoder;class o extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSetWithHashResponse.Stored,this._hash=e}hashString(){return r.decode(this._hash)}hashUint8Array(){return this._hash}}cacheSetWithHash.Stored=o;class s extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetWithHashResponse.NotStored}}cacheSetWithHash.NotStored=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetWithHashResponse.Error}}return cacheSetWithHash.Error=n,cacheSetWithHash}var cacheSetIfPresentAndHashEqual={},hasRequiredCacheSetIfPresentAndHashEqual;function requireCacheSetIfPresentAndHashEqual(){if(hasRequiredCacheSetIfPresentAndHashEqual)return cacheSetIfPresentAndHashEqual;hasRequiredCacheSetIfPresentAndHashEqual=1,Object.defineProperty(cacheSetIfPresentAndHashEqual,"__esModule",{value:!0}),cacheSetIfPresentAndHashEqual.Error=cacheSetIfPresentAndHashEqual.NotStored=cacheSetIfPresentAndHashEqual.Stored=void 0;const e=requireResponseBase(),t=requireEnums(),r=new TextDecoder;class o extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSetIfPresentAndHashEqualResponse.Stored,this._hash=e}hashString(){return r.decode(this._hash)}hashUint8Array(){return this._hash}}cacheSetIfPresentAndHashEqual.Stored=o;class s extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfPresentAndHashEqualResponse.NotStored}}cacheSetIfPresentAndHashEqual.NotStored=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfPresentAndHashEqualResponse.Error}}return cacheSetIfPresentAndHashEqual.Error=n,cacheSetIfPresentAndHashEqual}var cacheSetIfPresentAndHashNotEqual={},hasRequiredCacheSetIfPresentAndHashNotEqual;function requireCacheSetIfPresentAndHashNotEqual(){if(hasRequiredCacheSetIfPresentAndHashNotEqual)return cacheSetIfPresentAndHashNotEqual;hasRequiredCacheSetIfPresentAndHashNotEqual=1,Object.defineProperty(cacheSetIfPresentAndHashNotEqual,"__esModule",{value:!0}),cacheSetIfPresentAndHashNotEqual.Error=cacheSetIfPresentAndHashNotEqual.NotStored=cacheSetIfPresentAndHashNotEqual.Stored=void 0;const e=requireResponseBase(),t=requireEnums(),r=new TextDecoder;class o extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSetIfPresentAndHashNotEqualResponse.Stored,this._hash=e}hashString(){return r.decode(this._hash)}hashUint8Array(){return this._hash}}cacheSetIfPresentAndHashNotEqual.Stored=o;class s extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfPresentAndHashNotEqualResponse.NotStored}}cacheSetIfPresentAndHashNotEqual.NotStored=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfPresentAndHashNotEqualResponse.Error}}return cacheSetIfPresentAndHashNotEqual.Error=n,cacheSetIfPresentAndHashNotEqual}var cacheSetIfAbsentOrHashEqual={},hasRequiredCacheSetIfAbsentOrHashEqual;function requireCacheSetIfAbsentOrHashEqual(){if(hasRequiredCacheSetIfAbsentOrHashEqual)return cacheSetIfAbsentOrHashEqual;hasRequiredCacheSetIfAbsentOrHashEqual=1,Object.defineProperty(cacheSetIfAbsentOrHashEqual,"__esModule",{value:!0}),cacheSetIfAbsentOrHashEqual.Error=cacheSetIfAbsentOrHashEqual.NotStored=cacheSetIfAbsentOrHashEqual.Stored=void 0;const e=requireResponseBase(),t=requireEnums(),r=new TextDecoder;class o extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSetIfAbsentOrHashEqualResponse.Stored,this._hash=e}hashString(){return r.decode(this._hash)}hashUint8Array(){return this._hash}}cacheSetIfAbsentOrHashEqual.Stored=o;class s extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfAbsentOrHashEqualResponse.NotStored}}cacheSetIfAbsentOrHashEqual.NotStored=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfAbsentOrHashEqualResponse.Error}}return cacheSetIfAbsentOrHashEqual.Error=n,cacheSetIfAbsentOrHashEqual}var cacheSetIfAbsentOrHashNotEqual={},hasRequiredCacheSetIfAbsentOrHashNotEqual;function requireCacheSetIfAbsentOrHashNotEqual(){if(hasRequiredCacheSetIfAbsentOrHashNotEqual)return cacheSetIfAbsentOrHashNotEqual;hasRequiredCacheSetIfAbsentOrHashNotEqual=1,Object.defineProperty(cacheSetIfAbsentOrHashNotEqual,"__esModule",{value:!0}),cacheSetIfAbsentOrHashNotEqual.Error=cacheSetIfAbsentOrHashNotEqual.NotStored=cacheSetIfAbsentOrHashNotEqual.Stored=void 0;const e=requireResponseBase(),t=requireEnums(),r=new TextDecoder;class o extends e.ResponseBase{constructor(e){super(),this.type=t.CacheSetIfAbsentOrHashNotEqualResponse.Stored,this._hash=e}hashString(){return r.decode(this._hash)}hashUint8Array(){return this._hash}}cacheSetIfAbsentOrHashNotEqual.Stored=o;class s extends e.ResponseBase{constructor(){super(...arguments),this.type=t.CacheSetIfAbsentOrHashNotEqualResponse.NotStored}}cacheSetIfAbsentOrHashNotEqual.NotStored=s;class n extends e.BaseResponseError{constructor(e){super(e),this.type=t.CacheSetIfAbsentOrHashNotEqualResponse.Error}}return cacheSetIfAbsentOrHashNotEqual.Error=n,cacheSetIfAbsentOrHashNotEqual}var topicPublish={},hasRequiredTopicPublish;function requireTopicPublish(){if(hasRequiredTopicPublish)return topicPublish;hasRequiredTopicPublish=1,Object.defineProperty(topicPublish,"__esModule",{value:!0}),topicPublish.Error=topicPublish.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.TopicPublishResponse.Success}}topicPublish.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.TopicPublishResponse.Error}}return topicPublish.Error=o,topicPublish}var topicSubscribe={},hasRequiredTopicSubscribe;function requireTopicSubscribe(){if(hasRequiredTopicSubscribe)return topicSubscribe;hasRequiredTopicSubscribe=1,Object.defineProperty(topicSubscribe,"__esModule",{value:!0}),topicSubscribe.Error=topicSubscribe.Subscription=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSubscription{constructor(e,r){super(),this.type=t.TopicSubscribeResponse.Subscription,this.logger=e.getLogger(this),this.subscriptionState=r}unsubscribe(){this.logger.trace(`Unsubscribing from subscription: ${this.subscriptionState.toString()}`),this.subscriptionState.unsubscribe()}get isSubscribed(){return this.subscriptionState.isSubscribed}}topicSubscribe.Subscription=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.TopicSubscribeResponse.Error}}return topicSubscribe.Error=o,topicSubscribe}var topicItem={},hasRequiredTopicItem;function requireTopicItem(){if(hasRequiredTopicItem)return topicItem;hasRequiredTopicItem=1,Object.defineProperty(topicItem,"__esModule",{value:!0}),topicItem.TopicItem=void 0;const e=requireUtils$1();return topicItem.TopicItem=class{constructor(e,t,r){this._value=e,this._tokenId=r?.tokenId,this._sequenceNumber=t}value(){return this._value}valueString(){return this.value().toString()}valueUint8Array(){return this.value()}tokenId(){return this._tokenId}sequenceNumber(){return this._sequenceNumber}toString(){const t=(0,e.truncateString)(this.value().toString());let r=`${this.constructor.name}: ${t}`;return void 0!==this._tokenId&&(r+=`; Token Id: ${this._tokenId}`),r}},topicItem}var topicDiscontinuity={},hasRequiredTopicDiscontinuity;function requireTopicDiscontinuity(){if(hasRequiredTopicDiscontinuity)return topicDiscontinuity;hasRequiredTopicDiscontinuity=1,Object.defineProperty(topicDiscontinuity,"__esModule",{value:!0}),topicDiscontinuity.TopicDiscontinuity=void 0;return topicDiscontinuity.TopicDiscontinuity=class{constructor(e,t,r){this._lastSequenceNumber=e,this._newSequenceNumber=t,this._newSequencePage=r}lastSequenceNumber(){return this._lastSequenceNumber}newSequenceNumber(){return this._newSequenceNumber}newSequencePage(){return this._newSequencePage}toString(){const e=`Last Sequence Number: ${this._lastSequenceNumber}; New Sequence Number: ${this._newSequenceNumber}; New Sequence Page: ${this._newSequencePage}`;return`${this.constructor.name}: ${e}`}},topicDiscontinuity}var topicHeartbeat={},hasRequiredTopicHeartbeat;function requireTopicHeartbeat(){if(hasRequiredTopicHeartbeat)return topicHeartbeat;hasRequiredTopicHeartbeat=1,Object.defineProperty(topicHeartbeat,"__esModule",{value:!0}),topicHeartbeat.TopicHeartbeat=void 0;return topicHeartbeat.TopicHeartbeat=class{toString(){return`${this.constructor.name}`}},topicHeartbeat}var generateApiKey={},hasRequiredGenerateApiKey;function requireGenerateApiKey(){if(hasRequiredGenerateApiKey)return generateApiKey;hasRequiredGenerateApiKey=1,Object.defineProperty(generateApiKey,"__esModule",{value:!0}),generateApiKey.Error=generateApiKey.Success=void 0;const e=requireResponseBase(),t=requireEnums(),r=requireUtils$1();class o extends e.BaseResponseSuccess{get authToken(){return this.apiKey}constructor(e,o,s,n){super(),this.type=t.GenerateApiKeyResponse.Success,this.apiKey=(0,r.encodeToBase64)(JSON.stringify({endpoint:s,api_key:e})),this.refreshToken=o,this.endpoint=s,this.expiresAt=n}}generateApiKey.Success=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.GenerateApiKeyResponse.Error}}return generateApiKey.Error=s,generateApiKey}var refreshApiKey={},hasRequiredRefreshApiKey;function requireRefreshApiKey(){if(hasRequiredRefreshApiKey)return refreshApiKey;hasRequiredRefreshApiKey=1,Object.defineProperty(refreshApiKey,"__esModule",{value:!0}),refreshApiKey.Error=refreshApiKey.Success=void 0;const e=requireResponseBase(),t=requireEnums(),r=requireUtils$1();class o extends e.BaseResponseSuccess{get authToken(){return this.apiKey}constructor(e,o,s,n){super(),this.type=t.RefreshApiKeyResponse.Success,this.apiKey=(0,r.encodeToBase64)(JSON.stringify({endpoint:s,api_key:e})),this.refreshToken=o,this.endpoint=s,this.expiresAt=n}}refreshApiKey.Success=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.RefreshApiKeyResponse.Error}}return refreshApiKey.Error=s,refreshApiKey}var generateDisposableToken={},hasRequiredGenerateDisposableToken;function requireGenerateDisposableToken(){if(hasRequiredGenerateDisposableToken)return generateDisposableToken;hasRequiredGenerateDisposableToken=1,Object.defineProperty(generateDisposableToken,"__esModule",{value:!0}),generateDisposableToken.Error=generateDisposableToken.Success=void 0;const e=requireResponseBase(),t=requireEnums(),r=requireUtils$1();class o extends e.BaseResponseSuccess{constructor(e,o,s){super(),this.type=t.GenerateDisposableTokenResponse.Success,this.authToken=(0,r.encodeToBase64)(JSON.stringify({endpoint:o,api_key:e})),this.endpoint=o,this.expiresAt=s}}generateDisposableToken.Success=o;class s extends e.BaseResponseError{constructor(e){super(e),this.type=t.GenerateDisposableTokenResponse.Error}}return generateDisposableToken.Error=s,generateDisposableToken}var leaderboard$2={},leaderboardDelete={},hasRequiredLeaderboardDelete;function requireLeaderboardDelete(){if(hasRequiredLeaderboardDelete)return leaderboardDelete;hasRequiredLeaderboardDelete=1,Object.defineProperty(leaderboardDelete,"__esModule",{value:!0}),leaderboardDelete.Error=leaderboardDelete.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.LeaderboardDeleteResponse.Success}}leaderboardDelete.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.LeaderboardDeleteResponse.Error}}return leaderboardDelete.Error=o,leaderboardDelete}var leaderboardFetch={},hasRequiredLeaderboardFetch;function requireLeaderboardFetch(){if(hasRequiredLeaderboardFetch)return leaderboardFetch;hasRequiredLeaderboardFetch=1,Object.defineProperty(leaderboardFetch,"__esModule",{value:!0}),leaderboardFetch.Error=leaderboardFetch.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.LeaderboardFetchResponse.Success,this._elements=e}values(){return this._elements.map((e=>({id:e.id,score:e.score,rank:e.rank})))}}leaderboardFetch.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.LeaderboardFetchResponse.Error}}return leaderboardFetch.Error=o,leaderboardFetch}var leaderboardLength={},hasRequiredLeaderboardLength;function requireLeaderboardLength(){if(hasRequiredLeaderboardLength)return leaderboardLength;hasRequiredLeaderboardLength=1,Object.defineProperty(leaderboardLength,"__esModule",{value:!0}),leaderboardLength.Error=leaderboardLength.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.LeaderboardLengthResponse.Success,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}leaderboardLength.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.LeaderboardLengthResponse.Error}}return leaderboardLength.Error=o,leaderboardLength}var leaderboardRemoveElements={},hasRequiredLeaderboardRemoveElements;function requireLeaderboardRemoveElements(){if(hasRequiredLeaderboardRemoveElements)return leaderboardRemoveElements;hasRequiredLeaderboardRemoveElements=1,Object.defineProperty(leaderboardRemoveElements,"__esModule",{value:!0}),leaderboardRemoveElements.Error=leaderboardRemoveElements.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.LeaderboardRemoveElementsResponse.Success}}leaderboardRemoveElements.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.LeaderboardRemoveElementsResponse.Error}}return leaderboardRemoveElements.Error=o,leaderboardRemoveElements}var leaderboardUpsert={},hasRequiredLeaderboardUpsert,hasRequiredLeaderboard$2;function requireLeaderboardUpsert(){if(hasRequiredLeaderboardUpsert)return leaderboardUpsert;hasRequiredLeaderboardUpsert=1,Object.defineProperty(leaderboardUpsert,"__esModule",{value:!0}),leaderboardUpsert.Error=leaderboardUpsert.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.LeaderboardUpsertResponse.Success}}leaderboardUpsert.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.LeaderboardUpsertResponse.Error}}return leaderboardUpsert.Error=o,leaderboardUpsert}function requireLeaderboard$2(){return hasRequiredLeaderboard$2||(hasRequiredLeaderboard$2=1,Object.defineProperty(leaderboard$2,"__esModule",{value:!0}),leaderboard$2.LeaderboardUpsert=leaderboard$2.LeaderboardRemoveElements=leaderboard$2.LeaderboardLength=leaderboard$2.LeaderboardFetch=leaderboard$2.LeaderboardDelete=void 0,leaderboard$2.LeaderboardDelete=requireLeaderboardDelete(),leaderboard$2.LeaderboardFetch=requireLeaderboardFetch(),leaderboard$2.LeaderboardLength=requireLeaderboardLength(),leaderboard$2.LeaderboardRemoveElements=requireLeaderboardRemoveElements(),leaderboard$2.LeaderboardUpsert=requireLeaderboardUpsert()),leaderboard$2}var webhook={},deleteWebhook={},hasRequiredDeleteWebhook;function requireDeleteWebhook(){if(hasRequiredDeleteWebhook)return deleteWebhook;hasRequiredDeleteWebhook=1,Object.defineProperty(deleteWebhook,"__esModule",{value:!0}),deleteWebhook.Error=deleteWebhook.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(){super(...arguments),this.type=t.DeleteWebhookResponse.Success}}deleteWebhook.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.DeleteWebhookResponse.Error}}return deleteWebhook.Error=o,deleteWebhook}var listWebhooks={},hasRequiredListWebhooks;function requireListWebhooks(){if(hasRequiredListWebhooks)return listWebhooks;hasRequiredListWebhooks=1,Object.defineProperty(listWebhooks,"__esModule",{value:!0}),listWebhooks.Error=listWebhooks.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.ListWebhooksResponse.Success,this.webhooks=e}getWebhooks(){return this.webhooks}toString(){return super.toString()+": "+this.webhooks.map((e=>e.id.webhookName)).join(", ")}}listWebhooks.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.ListWebhooksResponse.Error}}return listWebhooks.Error=o,listWebhooks}var putWebhook={},hasRequiredPutWebhook;function requirePutWebhook(){if(hasRequiredPutWebhook)return putWebhook;hasRequiredPutWebhook=1,Object.defineProperty(putWebhook,"__esModule",{value:!0}),putWebhook.Error=putWebhook.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.PutWebhookResponse.Success,this._secretString=e}secretString(){return this._secretString}}putWebhook.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.PutWebhookResponse.Error}}return putWebhook.Error=o,putWebhook}var getWebhookSecret={},hasRequiredGetWebhookSecret;function requireGetWebhookSecret(){if(hasRequiredGetWebhookSecret)return getWebhookSecret;hasRequiredGetWebhookSecret=1,Object.defineProperty(getWebhookSecret,"__esModule",{value:!0}),getWebhookSecret.Error=getWebhookSecret.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.GetWebhookSecretResponse.Success,this._secret=e.secret,this._cacheName=e.cacheName,this._webhookName=e.webhookName}secret(){return this._secret}webhookName(){return this._webhookName}cacheName(){return this._cacheName}toString(){return super.toString()+": "+this._webhookName}}getWebhookSecret.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.GetWebhookSecretResponse.Error}}return getWebhookSecret.Error=o,getWebhookSecret}var rotateWebhookSecret={},hasRequiredRotateWebhookSecret,hasRequiredWebhook;function requireRotateWebhookSecret(){if(hasRequiredRotateWebhookSecret)return rotateWebhookSecret;hasRequiredRotateWebhookSecret=1,Object.defineProperty(rotateWebhookSecret,"__esModule",{value:!0}),rotateWebhookSecret.Error=rotateWebhookSecret.Success=void 0;const e=requireResponseBase(),t=requireEnums();class r extends e.BaseResponseSuccess{constructor(e){super(),this.type=t.RotateWebhookSecretResponse.Success,this._secret=e.secret,this._cacheName=e.cacheName,this._webhookName=e.webhookName}secret(){return this._secret}webhookName(){return this._webhookName}cacheName(){return this._cacheName}toString(){return super.toString()+": "+this._webhookName}}rotateWebhookSecret.Success=r;class o extends e.BaseResponseError{constructor(e){super(e),this.type=t.RotateWebhookSecretResponse.Error}}return rotateWebhookSecret.Error=o,rotateWebhookSecret}function requireWebhook(){return hasRequiredWebhook||(hasRequiredWebhook=1,Object.defineProperty(webhook,"__esModule",{value:!0}),webhook.RotateWebhookSecret=webhook.GetWebhookSecret=webhook.PutWebhook=webhook.ListWebhooks=webhook.DeleteWebhook=void 0,webhook.DeleteWebhook=requireDeleteWebhook(),webhook.ListWebhooks=requireListWebhooks(),webhook.PutWebhook=requirePutWebhook(),webhook.GetWebhookSecret=requireGetWebhookSecret(),webhook.RotateWebhookSecret=requireRotateWebhookSecret()),webhook}var cacheInfo={},hasRequiredCacheInfo;function requireCacheInfo(){if(hasRequiredCacheInfo)return cacheInfo;hasRequiredCacheInfo=1,Object.defineProperty(cacheInfo,"__esModule",{value:!0}),cacheInfo.CacheInfo=void 0;return cacheInfo.CacheInfo=class{constructor(e,t,r){this.name=e,this.topicLimits=t,this.cacheLimits=r}getName(){return this.name}getTopicLimits(){return this.topicLimits}getCacheLimits(){return this.cacheLimits}},cacheInfo}var utils$2={},cacheCallOptions={},collectionTtl={},time={},hasRequiredTime,hasRequiredCollectionTtl,hasRequiredCacheCallOptions;function requireTime(){if(hasRequiredTime)return time;return hasRequiredTime=1,Object.defineProperty(time,"__esModule",{value:!0}),time.secondsToMilliseconds=void 0,time.secondsToMilliseconds=function(e){return 1e3*e},time}function requireCollectionTtl(){if(hasRequiredCollectionTtl)return collectionTtl;hasRequiredCollectionTtl=1,Object.defineProperty(collectionTtl,"__esModule",{value:!0}),collectionTtl.CollectionTtl=void 0;const e=requireUtils$1(),t=requireTime();class r{constructor(t=null,r=!0){null!==t&&(0,e.validateTtlSeconds)(t),this._refreshTtl=r,this._ttlSeconds=t}ttlSeconds(){return this._ttlSeconds}ttlMilliseconds(){return null===this._ttlSeconds?null:(0,t.secondsToMilliseconds)(this._ttlSeconds)}refreshTtl(){return this._refreshTtl}static fromCacheTtl(){return new r(null,!0)}static of(e){return new r(e,!0)}static refreshTtlIfProvided(e=null){return new r(e,null!==e)}withRefreshTtlOnUpdates(){return new r(this._ttlSeconds,!0)}withNoRefreshTtlOnUpdates(){return new r(this._ttlSeconds,!1)}toString(){return`ttl: ${this._ttlSeconds||"null"}, refreshTtl: ${this._refreshTtl?"true":"false"}`}}return collectionTtl.CollectionTtl=r,collectionTtl}function requireCacheCallOptions(){return hasRequiredCacheCallOptions||(hasRequiredCacheCallOptions=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LeaderboardOrder=e.SortedSetAggregate=e.SortedSetOrder=e.ttlOrFromCacheTtl=void 0;const t=requireCollectionTtl();var r;e.ttlOrFromCacheTtl=function(e){var r;return null!==(r=e?.ttl)&&void 0!==r?r:t.CollectionTtl.fromCacheTtl()},(r=e.SortedSetOrder||(e.SortedSetOrder={})).Ascending="ASC",r.Descending="DESC",function(e){e[e.SUM=0]="SUM",e[e.MIN=1]="MIN",e[e.MAX=2]="MAX"}(e.SortedSetAggregate||(e.SortedSetAggregate={})),function(e){e.Ascending="ASC",e.Descending="DESC"}(e.LeaderboardOrder||(e.LeaderboardOrder={}))}(cacheCallOptions)),cacheCallOptions}var topicCallOptions={},hasRequiredTopicCallOptions;function requireTopicCallOptions(){return hasRequiredTopicCallOptions||(hasRequiredTopicCallOptions=1,Object.defineProperty(topicCallOptions,"__esModule",{value:!0})),topicCallOptions}var expiration={},hasRequiredExpiration;function requireExpiration(){if(hasRequiredExpiration)return expiration;hasRequiredExpiration=1,Object.defineProperty(expiration,"__esModule",{value:!0}),expiration.ExpiresAt=expiration.ExpiresIn=void 0;class e{constructor(e){this._doesExpire=e}doesExpire(){return this._doesExpire}}class t extends e{constructor(e){super(e!==1/0),this._validForSeconds=null===e?1/0:e}seconds(){return this._validForSeconds}static never(){return new t(1/0)}static seconds(e){return new t(e)}static minutes(e){return new t(60*e)}static hours(e){return new t(3600*e)}static days(e){return new t(86400*e)}static epoch(e){const r=(new Date).getTime()/1e3,o=Math.round(e-r);return new t(o)}}expiration.ExpiresIn=t;class r extends e{constructor(e){super(void 0!==e&&0!==e),this.doesExpire()?this.validUntil=e:this.validUntil=1/0}epoch(){return this.validUntil}static fromEpoch(e){return new r(e)}}return expiration.ExpiresAt=r,expiration}var itemType={},hasRequiredItemType;function requireItemType(){return hasRequiredItemType||(hasRequiredItemType=1,e=itemType,Object.defineProperty(e,"__esModule",{value:!0}),e.ItemType=void 0,(t=e.ItemType||(e.ItemType={}))[t.SCALAR=0]="SCALAR",t[t.DICTIONARY=1]="DICTIONARY",t[t.LIST=2]="LIST",t[t.SET=3]="SET",t[t.SORTED_SET=4]="SORTED_SET"),itemType;var e,t}var webhookDestination={},hasRequiredWebhookDestination;function requireWebhookDestination(){return hasRequiredWebhookDestination||(hasRequiredWebhookDestination=1,function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.PostUrlWebhookDestination=e.WebhookDestinationType=void 0,(t=e.WebhookDestinationType||(e.WebhookDestinationType={})).PostUrl="post_url";e.PostUrlWebhookDestination=class{constructor(e){this._url=e}url(){return this._url}getType(){return t.PostUrl}}}(webhookDestination)),webhookDestination}var setBatchItem={},hasRequiredSetBatchItem;function requireSetBatchItem(){return hasRequiredSetBatchItem||(hasRequiredSetBatchItem=1,Object.defineProperty(setBatchItem,"__esModule",{value:!0})),setBatchItem}var sortedSetSource={},hasRequiredSortedSetSource,hasRequiredUtils;function requireSortedSetSource(){return hasRequiredSortedSetSource||(hasRequiredSortedSetSource=1,Object.defineProperty(sortedSetSource,"__esModule",{value:!0})),sortedSetSource}function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,e=utils$2,t=utils$2&&utils$2.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=utils$2&&utils$2.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireCacheCallOptions(),e),r(requireCollectionTtl(),e),r(requireTopicCallOptions(),e),r(requireExpiration(),e),r(requireItemType(),e),r(requireWebhookDestination(),e),r(requireSetBatchItem(),e),r(requireTime(),e),r(requireSortedSetSource(),e)),utils$2;var e,t,r}var auth$1={},credentialProvider={},hasRequiredCredentialProvider,hasRequiredAuth$1;function requireCredentialProvider(){if(hasRequiredCredentialProvider)return credentialProvider;hasRequiredCredentialProvider=1,Object.defineProperty(credentialProvider,"__esModule",{value:!0}),credentialProvider.MomentoLocalProvider=credentialProvider.getDefaultCredentialProvider=credentialProvider.EnvMomentoTokenProvider=credentialProvider.StringMomentoTokenProvider=credentialProvider.CredentialProvider=void 0;const e=requireUtils$1();function t(e){return void 0!==e.baseEndpoint}function r(e){const t=e;return void 0!==t.cacheEndpoint&&void 0!==t.controlEndpoint&&void 0!==t.tokenEndpoint}class o{static fromEnvironmentVariable(e){return new i(e)}static fromEnvVar(e){return new i(e)}static fromString(e){return new n(e)}static forMomentoLocal(e){return new a(e)}}credentialProvider.CredentialProvider=o;class s{valueOf(){const t=Object.entries(this).filter((([e])=>"authToken"!==e));return(0,e.fromEntries)(t).valueOf()}}class n extends s{constructor(o){let s;if("string"==typeof o&&(o={apiKey:o}),super(),"authToken"in o)s=o.authToken;else{if(!("apiKey"in o))throw new Error("Missing required property: authToken or apiKey");s=o.apiKey}const n=(0,e.decodeAuthToken)(s);if(this.apiKey=n.authToken,void 0===o.endpointOverrides){if(this.endpointsOverridden=!1,void 0===n.controlEndpoint)throw new Error("Malformed token; unable to determine control endpoint.  Depending on the type of token you are using, you may need to specify the controlEndpoint explicitly.");if(void 0===n.cacheEndpoint)throw new Error("Malformed token; unable to determine cache endpoint.  Depending on the type of token you are using, you may need to specify the cacheEndpoint explicitly.");if(void 0===n.tokenEndpoint)throw new Error("Malformed token; unable to determine token endpoint.  Depending on the type of token you are using, you may need to specify the tokenEndpoint explicitly.");this.allEndpoints={controlEndpoint:n.controlEndpoint,cacheEndpoint:n.cacheEndpoint,tokenEndpoint:n.tokenEndpoint}}else if(r(o.endpointOverrides))this.endpointsOverridden=!0,this.allEndpoints=o.endpointOverrides;else{if(!t(o.endpointOverrides))throw new Error(`Unsupported endpointOverrides: ${o.endpointOverrides}`);this.endpointsOverridden=!0,this.allEndpoints=(0,e.populateAllEndpointsFromBaseEndpoint)(o.endpointOverrides)}}getAuthToken(){return this.apiKey}getCacheEndpoint(){return this.allEndpoints.cacheEndpoint}isCacheEndpointSecure(){return this.isEndpointSecure()}getControlEndpoint(){return this.allEndpoints.controlEndpoint}isControlEndpointSecure(){return this.isEndpointSecure()}getTokenEndpoint(){return this.allEndpoints.tokenEndpoint}isTokenEndpointSecure(){return this.isEndpointSecure()}isStorageEndpointSecure(){return this.isEndpointSecure()}areEndpointsOverridden(){return this.endpointsOverridden}isEndpointSecure(){return void 0===this.allEndpoints.secureConnection||this.allEndpoints.secureConnection}withMomentoLocal(){return new a}}credentialProvider.StringMomentoTokenProvider=n;class i extends n{constructor(e){"string"==typeof e&&(e={environmentVariableName:e});const t=process.env[e.environmentVariableName];if(!t)throw new Error(`Missing required environment variable ${e.environmentVariableName}`);super({authToken:t,endpointOverrides:e.endpointOverrides}),this.environmentVariableName=e.environmentVariableName}}credentialProvider.EnvMomentoTokenProvider=i,credentialProvider.getDefaultCredentialProvider=function(){return o.fromEnvVar("MOMENTO_API_KEY")};class a{constructor(o){const s=`${o?.hostname||"127.0.0.1"}:${o?.port||8080}`;if(void 0===o||void 0===o.endpointOverrides)this.endpointsOverridden=!1,this.allEndpoints={controlEndpoint:s,cacheEndpoint:s,tokenEndpoint:s,secureConnection:!1};else if(r(o.endpointOverrides))this.endpointsOverridden=!0,this.allEndpoints=o.endpointOverrides;else{if(!t(o.endpointOverrides))throw new Error(`Unsupported endpointOverrides: ${o.endpointOverrides}`);this.endpointsOverridden=!0,this.allEndpoints=(0,e.populateAllEndpointsFromBaseEndpoint)(o.endpointOverrides)}}getAuthToken(){return""}getCacheEndpoint(){return this.allEndpoints.cacheEndpoint}isCacheEndpointSecure(){return this.isEndpointSecure()}getControlEndpoint(){return this.allEndpoints.controlEndpoint}isControlEndpointSecure(){return this.isEndpointSecure()}getTokenEndpoint(){return this.allEndpoints.tokenEndpoint}isTokenEndpointSecure(){return this.isEndpointSecure()}areEndpointsOverridden(){return this.endpointsOverridden}isEndpointSecure(){return void 0===this.allEndpoints.secureConnection||this.allEndpoints.secureConnection}withMomentoLocal(){return new a}}return credentialProvider.MomentoLocalProvider=a,credentialProvider}function requireAuth$1(){return hasRequiredAuth$1||(hasRequiredAuth$1=1,e=auth$1,t=auth$1&&auth$1.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=auth$1&&auth$1.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireCredentialProvider(),e)),auth$1;var e,t,r}var noopMomentoLogger={},hasRequiredNoopMomentoLogger;function requireNoopMomentoLogger(){if(hasRequiredNoopMomentoLogger)return noopMomentoLogger;hasRequiredNoopMomentoLogger=1,Object.defineProperty(noopMomentoLogger,"__esModule",{value:!0}),noopMomentoLogger.NoopMomentoLoggerFactory=noopMomentoLogger.NoopMomentoLogger=void 0;class e{debug(e,...t){}error(e,...t){}info(e,...t){}trace(e,...t){}warn(e,...t){}}noopMomentoLogger.NoopMomentoLogger=e;return noopMomentoLogger.NoopMomentoLoggerFactory=class{getLogger(t){return new e}},noopMomentoLogger}var disposableTokenScope={},hasRequiredDisposableTokenScope;function requireDisposableTokenScope(){if(hasRequiredDisposableTokenScope)return disposableTokenScope;hasRequiredDisposableTokenScope=1,Object.defineProperty(disposableTokenScope,"__esModule",{value:!0}),disposableTokenScope.asDisposableTokenPermissionsObject=disposableTokenScope.isDisposableTokenPermissionsObject=disposableTokenScope.asDisposableTokenCachePermission=disposableTokenScope.isDisposableTokenCachePermission=disposableTokenScope.isCacheItemKeyPrefix=disposableTokenScope.isCacheItemKey=void 0;const e=requirePermissionScope();function t(e){return"role"in e&&"cache"in e&&"item"in e&&!("topic"in e)&&!("func"in e)}function r(r){return"permissions"in r&&r.permissions.every((r=>function(r){return t(r)||(0,e.isFunctionPermission)(r)}(r)))}return disposableTokenScope.isCacheItemKey=function(t){return t!==e.AllCacheItems&&("string"==typeof t||"key"in t)},disposableTokenScope.isCacheItemKeyPrefix=function(t){return t!==e.AllCacheItems&&"string"!=typeof t&&"keyPrefix"in t},disposableTokenScope.isDisposableTokenCachePermission=t,disposableTokenScope.asDisposableTokenCachePermission=function(e){if(!t(e))throw new Error(`permission is not a DisposableTokenCachePermission object: ${JSON.stringify(e)}`);return e},disposableTokenScope.isDisposableTokenPermissionsObject=r,disposableTokenScope.asDisposableTokenPermissionsObject=function(e){if(!r(e))throw new Error(`Token scope is not a DisposableToken permissions object: ${JSON.stringify(e)}`);return e},disposableTokenScope}var permissionScopes={},hasRequiredPermissionScopes;function requirePermissionScopes(){if(hasRequiredPermissionScopes)return permissionScopes;hasRequiredPermissionScopes=1,Object.defineProperty(permissionScopes,"__esModule",{value:!0}),permissionScopes.topicPublishOnly=permissionScopes.topicPublishSubscribe=permissionScopes.topicSubscribeOnly=permissionScopes.cacheWriteOnly=permissionScopes.cacheReadOnly=permissionScopes.cacheReadWrite=permissionScopes.functionPermitNone=permissionScopes.functionInvoke=void 0;const e=requirePermissionScope();return permissionScopes.functionInvoke=function(t,r){return{permissions:[{role:e.FunctionRole.FunctionInvoke,cache:t,func:r}]}},permissionScopes.functionPermitNone=function(t,r){return{permissions:[{role:e.FunctionRole.FunctionPermitNone,cache:t,func:r}]}},permissionScopes.cacheReadWrite=function(t){return{permissions:[{role:e.CacheRole.ReadWrite,cache:t}]}},permissionScopes.cacheReadOnly=function(t){return{permissions:[{role:e.CacheRole.ReadOnly,cache:t}]}},permissionScopes.cacheWriteOnly=function(t){return{permissions:[{role:e.CacheRole.WriteOnly,cache:t}]}},permissionScopes.topicSubscribeOnly=function(t,r){return{permissions:[{role:e.TopicRole.SubscribeOnly,cache:t,topic:r}]}},permissionScopes.topicPublishSubscribe=function(t,r){return{permissions:[{role:e.TopicRole.PublishSubscribe,cache:t,topic:r}]}},permissionScopes.topicPublishOnly=function(t,r){return{permissions:[{role:e.TopicRole.PublishOnly,cache:t,topic:r}]}},permissionScopes}var disposableTokenScopes={},hasRequiredDisposableTokenScopes;function requireDisposableTokenScopes(){return hasRequiredDisposableTokenScopes||(hasRequiredDisposableTokenScopes=1,function(e){var t=disposableTokenScopes&&disposableTokenScopes.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=disposableTokenScopes&&disposableTokenScopes.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.cacheKeyPrefixWriteOnly=e.cacheKeyWriteOnly=e.cacheKeyPrefixReadOnly=e.cacheKeyReadOnly=e.cacheKeyPrefixReadWrite=e.cacheKeyReadWrite=void 0;const o=requirePermissionScope();r(requirePermissionScopes(),e),e.cacheKeyReadWrite=function(e,t){return{permissions:[{role:o.CacheRole.ReadWrite,cache:e,item:t}]}},e.cacheKeyPrefixReadWrite=function(e,t){return{permissions:[{role:o.CacheRole.ReadWrite,cache:e,item:{keyPrefix:t}}]}},e.cacheKeyReadOnly=function(e,t){return{permissions:[{role:o.CacheRole.ReadOnly,cache:e,item:t}]}},e.cacheKeyPrefixReadOnly=function(e,t){return{permissions:[{role:o.CacheRole.ReadOnly,cache:e,item:{keyPrefix:t}}]}},e.cacheKeyWriteOnly=function(e,t){return{permissions:[{role:o.CacheRole.WriteOnly,cache:e,item:t}]}},e.cacheKeyPrefixWriteOnly=function(e,t){return{permissions:[{role:o.CacheRole.WriteOnly,cache:e,item:{keyPrefix:t}}]}}}(disposableTokenScopes)),disposableTokenScopes}var readConcern={},hasRequiredReadConcern;function requireReadConcern(){return hasRequiredReadConcern||(hasRequiredReadConcern=1,e=readConcern,Object.defineProperty(e,"__esModule",{value:!0}),e.ReadConcern=void 0,(t=e.ReadConcern||(e.ReadConcern={})).BALANCED="balanced",t.CONSISTENT="consistent"),readConcern;var e,t}var compressionLevel={},hasRequiredCompressionLevel;function requireCompressionLevel(){return hasRequiredCompressionLevel||(hasRequiredCompressionLevel=1,e=compressionLevel,Object.defineProperty(e,"__esModule",{value:!0}),e.CompressionLevel=void 0,(t=e.CompressionLevel||(e.CompressionLevel={})).Balanced="Balanced",t.Fastest="Fastest",t.SmallestSize="SmallestSize"),compressionLevel;var e,t}var subscriptionRetryStrategy={},hasRequiredSubscriptionRetryStrategy,hasRequiredSrc$1,hasRequiredCacheServiceErrorMapper;function requireSubscriptionRetryStrategy(){return hasRequiredSubscriptionRetryStrategy||(hasRequiredSubscriptionRetryStrategy=1,Object.defineProperty(subscriptionRetryStrategy,"__esModule",{value:!0}),subscriptionRetryStrategy.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS=void 0,subscriptionRetryStrategy.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS=500),subscriptionRetryStrategy}function requireSrc$1(){return hasRequiredSrc$1||(hasRequiredSrc$1=1,function(e){var t=src&&src.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=src&&src.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CacheListRemoveValue=e.CacheListPushFront=e.CacheListPushBack=e.CacheListPopFront=e.CacheListPopBack=e.CacheListLength=e.CacheListFetch=e.CacheListConcatenateFront=e.CacheListConcatenateBack=e.CacheGetWithHash=e.CacheGet=e.SortedSetAggregate=e.getDefaultCredentialProvider=e.MomentoLocalProvider=e.EnvMomentoTokenProvider=e.StringMomentoTokenProvider=e.CredentialProvider=e.LeaderboardOrder=e.SortedSetOrder=e.WebhookDestinationType=e.PostUrlWebhookDestination=e.ItemType=e.CollectionTtl=e.ExpiresAt=e.ExpiresIn=e.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS=e.CompressionLevel=e.ReadConcern=e.DisposableTokenScopes=e.TokenScopes=e.PermissionScopes=e.isCacheItemKeyPrefix=e.isCacheItemKey=e.AllCacheItems=e.AllTopics=e.AllFunctions=e.AllCaches=e.isTopicName=e.isFunctionNamePrefix=e.isFunction=e.isCacheName=e.AllDataReadWrite=e.FunctionRole=e.TopicRole=e.CacheRole=e.NoopMomentoLoggerFactory=e.NoopMomentoLogger=e.utils=e.webhook=e.leaderboard=void 0,e.CacheKeysExist=e.CacheKeyExists=e.CacheItemGetTtl=e.CacheItemGetType=e.CacheSortedSetUnionStore=e.CacheSortedSetLengthByScore=e.CacheSortedSetLength=e.CacheSortedSetRemoveElements=e.CacheSortedSetRemoveElement=e.CacheSortedSetIncrementScore=e.CacheSortedSetGetScores=e.CacheSortedSetGetScore=e.CacheSortedSetGetRank=e.CacheSortedSetFetch=e.CacheSortedSetPutElements=e.CacheSortedSetPutElement=e.CacheSetLength=e.CacheSetPop=e.CacheSetSample=e.CacheSetRemoveElement=e.CacheSetRemoveElements=e.CacheSetContainsElements=e.CacheSetContainsElement=e.CacheSetAddElement=e.CacheSetAddElements=e.CacheDictionaryLength=e.CacheDictionaryIncrement=e.CacheDictionaryRemoveFields=e.CacheDictionaryRemoveField=e.CacheDictionaryGetFields=e.CacheDictionaryGetField=e.CacheDictionarySetFields=e.CacheDictionarySetField=e.CacheDictionaryFetch=e.CacheSetFetch=e.CacheIncrement=e.ListCaches=e.DeleteCache=e.CreateCache=e.CacheFlush=e.CacheDelete=e.CacheSetIfAbsentOrEqual=e.CacheSetIfPresentAndNotEqual=e.CacheSetIfNotEqual=e.CacheSetIfEqual=e.CacheSetIfAbsent=e.CacheSetIfPresent=e.CacheSetIfNotExists=e.CacheSet=e.CacheListRetain=void 0,e.UnknownError=e.StoreNotFoundError=e.StoreItemNotFoundError=e.CacheNotFoundError=e.PermissionError=e.BadRequestError=e.TimeoutError=e.ServerUnavailableError=e.UnknownServiceError=e.InvalidArgumentError=e.InternalServerError=e.LimitExceededError=e.FailedPreconditionError=e.ConnectionError=e.CancelledError=e.AuthenticationError=e.StoreAlreadyExistsError=e.CacheAlreadyExistsError=e.SdkError=e.MomentoErrorCode=e.GenerateDisposableToken=e.RefreshAuthToken=e.RefreshApiKey=e.GenerateAuthToken=e.GenerateApiKey=e.TopicHeartbeat=e.TopicDiscontinuity=e.TopicItem=e.TopicSubscribe=e.TopicPublish=e.CacheSetIfAbsentOrHashNotEqual=e.CacheSetIfAbsentOrHashEqual=e.CacheSetIfPresentAndHashNotEqual=e.CacheSetIfPresentAndHashEqual=e.CacheSetWithHash=e.CacheGetBatch=e.CacheSetBatch=e.CacheInfo=e.CacheDecreaseTtl=e.CacheIncreaseTtl=e.CacheUpdateTtl=void 0;const o=requireCacheGet();e.CacheGet=o;const s=requireCacheGetWithHash();e.CacheGetWithHash=s;const n=requireCacheListConcatenateBack();e.CacheListConcatenateBack=n;const i=requireCacheListConcatenateFront();e.CacheListConcatenateFront=i;const a=requireCacheListFetch();e.CacheListFetch=a;const u=requireCacheListLength();e.CacheListLength=u;const c=requireCacheListPopBack();e.CacheListPopBack=c;const l=requireCacheListPopFront();e.CacheListPopFront=l;const p=requireCacheListPushBack();e.CacheListPushBack=p;const d=requireCacheListPushFront();e.CacheListPushFront=d;const g=requireCacheListRemoveValue();e.CacheListRemoveValue=g;const h=requireCacheListRetain();e.CacheListRetain=h;const f=requireCacheSet();e.CacheSet=f;const y=requireCacheDelete();e.CacheDelete=y;const _=requireCacheFlush();e.CacheFlush=_;const R=requireCreateCache();e.CreateCache=R;const S=requireDeleteCache();e.DeleteCache=S;const m=requireListCaches();e.ListCaches=m;const b=requireCacheSetFetch();e.CacheSetFetch=b;const E=requireCacheDictionaryFetch();e.CacheDictionaryFetch=E;const M=requireCacheDictionarySetField();e.CacheDictionarySetField=M;const F=requireCacheDictionarySetFields();e.CacheDictionarySetFields=F;const v=requireCacheDictionaryGetField();e.CacheDictionaryGetField=v;const T=requireCacheDictionaryGetFields();e.CacheDictionaryGetFields=T;const B=requireCacheDictionaryRemoveField();e.CacheDictionaryRemoveField=B;const C=requireCacheDictionaryRemoveFields();e.CacheDictionaryRemoveFields=C;const O=requireCacheDictionaryIncrement();e.CacheDictionaryIncrement=O;const w=requireCacheDictionaryLength();e.CacheDictionaryLength=w;const L=requireCacheSetAddElements();e.CacheSetAddElements=L;const P=requireCacheSetAddElement();e.CacheSetAddElement=P;const I=requireCacheSetContainsElement();e.CacheSetContainsElement=I;const D=requireCacheSetContainsElements();e.CacheSetContainsElements=D;const A=requireCacheSetRemoveElements();e.CacheSetRemoveElements=A;const q=requireCacheSetRemoveElement();e.CacheSetRemoveElement=q;const N=requireCacheSetSample();e.CacheSetSample=N;const j=requireCacheSetPop();e.CacheSetPop=j;const k=requireCacheSetLength();e.CacheSetLength=k;const W=requireCacheIncrement();e.CacheIncrement=W;const G=requireCacheSetIfNotExists();e.CacheSetIfNotExists=G;const x=requireCacheSetIfAbsent();e.CacheSetIfAbsent=x;const U=requireCacheSetIfPresent();e.CacheSetIfPresent=U;const z=requireCacheSetIfEqual();e.CacheSetIfEqual=z;const $=requireCacheSetIfNotEqual();e.CacheSetIfNotEqual=$;const H=requireCacheSetIfPresentAndNotEqual();e.CacheSetIfPresentAndNotEqual=H;const V=requireCacheSetIfAbsentOrEqual();e.CacheSetIfAbsentOrEqual=V;const K=requireCacheSortedSetPutElement();e.CacheSortedSetPutElement=K;const J=requireCacheSortedSetPutElements();e.CacheSortedSetPutElements=J;const Y=requireCacheSortedSetFetch();e.CacheSortedSetFetch=Y;const X=requireCacheSortedSetGetRank();e.CacheSortedSetGetRank=X;const Z=requireCacheSortedSetGetScore();e.CacheSortedSetGetScore=Z;const Q=requireCacheSortedSetGetScores();e.CacheSortedSetGetScores=Q;const ee=requireCacheSortedSetIncrementScore();e.CacheSortedSetIncrementScore=ee;const te=requireCacheSortedSetRemoveElement();e.CacheSortedSetRemoveElement=te;const re=requireCacheSortedSetRemoveElements();e.CacheSortedSetRemoveElements=re;const oe=requireCacheSortedSetLength();e.CacheSortedSetLength=oe;const se=requireCacheSortedSetLengthByScore();e.CacheSortedSetLengthByScore=se;const ne=requireCacheSortedSetUnionStore();e.CacheSortedSetUnionStore=ne;const ie=requireCacheItemGetType();e.CacheItemGetType=ie;const ae=requireCacheItemGetTtl();e.CacheItemGetTtl=ae;const ue=requireCacheKeyExists();e.CacheKeyExists=ue;const ce=requireCacheKeysExist();e.CacheKeysExist=ce;const le=requireCacheTtlUpdate();e.CacheUpdateTtl=le;const pe=requireCacheTtlIncrease();e.CacheIncreaseTtl=pe;const de=requireCacheTtlDecrease();e.CacheDecreaseTtl=de;const ge=requireCacheBatchSet();e.CacheSetBatch=ge;const he=requireCacheBatchGet();e.CacheGetBatch=he;const fe=requireCacheSetWithHash();e.CacheSetWithHash=fe;const ye=requireCacheSetIfPresentAndHashEqual();e.CacheSetIfPresentAndHashEqual=ye;const _e=requireCacheSetIfPresentAndHashNotEqual();e.CacheSetIfPresentAndHashNotEqual=_e;const Re=requireCacheSetIfAbsentOrHashEqual();e.CacheSetIfAbsentOrHashEqual=Re;const Se=requireCacheSetIfAbsentOrHashNotEqual();e.CacheSetIfAbsentOrHashNotEqual=Se;const me=requireTopicPublish();e.TopicPublish=me;const be=requireTopicSubscribe();e.TopicSubscribe=be;const Ee=requireTopicItem();Object.defineProperty(e,"TopicItem",{enumerable:!0,get:function(){return Ee.TopicItem}});const Me=requireTopicDiscontinuity();Object.defineProperty(e,"TopicDiscontinuity",{enumerable:!0,get:function(){return Me.TopicDiscontinuity}});const Fe=requireTopicHeartbeat();Object.defineProperty(e,"TopicHeartbeat",{enumerable:!0,get:function(){return Fe.TopicHeartbeat}});const ve=requireGenerateApiKey();e.GenerateApiKey=ve,e.GenerateAuthToken=ve;const Te=requireRefreshApiKey();e.RefreshApiKey=Te,e.RefreshAuthToken=Te;const Be=requireGenerateDisposableToken();e.GenerateDisposableToken=Be,e.leaderboard=requireLeaderboard$2(),r(requireLeaderboard$2(),e),e.webhook=requireWebhook(),r(requireWebhook(),e);const Ce=requireCacheInfo();Object.defineProperty(e,"CacheInfo",{enumerable:!0,get:function(){return Ce.CacheInfo}});const Oe=requireUtils();Object.defineProperty(e,"CollectionTtl",{enumerable:!0,get:function(){return Oe.CollectionTtl}}),Object.defineProperty(e,"SortedSetOrder",{enumerable:!0,get:function(){return Oe.SortedSetOrder}}),Object.defineProperty(e,"LeaderboardOrder",{enumerable:!0,get:function(){return Oe.LeaderboardOrder}}),Object.defineProperty(e,"ExpiresIn",{enumerable:!0,get:function(){return Oe.ExpiresIn}}),Object.defineProperty(e,"ExpiresAt",{enumerable:!0,get:function(){return Oe.ExpiresAt}}),Object.defineProperty(e,"ItemType",{enumerable:!0,get:function(){return Oe.ItemType}}),Object.defineProperty(e,"PostUrlWebhookDestination",{enumerable:!0,get:function(){return Oe.PostUrlWebhookDestination}}),Object.defineProperty(e,"WebhookDestinationType",{enumerable:!0,get:function(){return Oe.WebhookDestinationType}}),Object.defineProperty(e,"SortedSetAggregate",{enumerable:!0,get:function(){return Oe.SortedSetAggregate}}),e.utils=requireUtils();const we=requireAuth$1();Object.defineProperty(e,"CredentialProvider",{enumerable:!0,get:function(){return we.CredentialProvider}}),Object.defineProperty(e,"StringMomentoTokenProvider",{enumerable:!0,get:function(){return we.StringMomentoTokenProvider}}),Object.defineProperty(e,"EnvMomentoTokenProvider",{enumerable:!0,get:function(){return we.EnvMomentoTokenProvider}}),Object.defineProperty(e,"getDefaultCredentialProvider",{enumerable:!0,get:function(){return we.getDefaultCredentialProvider}}),Object.defineProperty(e,"MomentoLocalProvider",{enumerable:!0,get:function(){return we.MomentoLocalProvider}});const Le=requireErrors();Object.defineProperty(e,"MomentoErrorCode",{enumerable:!0,get:function(){return Le.MomentoErrorCode}}),Object.defineProperty(e,"SdkError",{enumerable:!0,get:function(){return Le.SdkError}}),Object.defineProperty(e,"CacheAlreadyExistsError",{enumerable:!0,get:function(){return Le.CacheAlreadyExistsError}}),Object.defineProperty(e,"StoreAlreadyExistsError",{enumerable:!0,get:function(){return Le.StoreAlreadyExistsError}}),Object.defineProperty(e,"AuthenticationError",{enumerable:!0,get:function(){return Le.AuthenticationError}}),Object.defineProperty(e,"CancelledError",{enumerable:!0,get:function(){return Le.CancelledError}}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:function(){return Le.ConnectionError}}),Object.defineProperty(e,"FailedPreconditionError",{enumerable:!0,get:function(){return Le.FailedPreconditionError}}),Object.defineProperty(e,"LimitExceededError",{enumerable:!0,get:function(){return Le.LimitExceededError}}),Object.defineProperty(e,"InternalServerError",{enumerable:!0,get:function(){return Le.InternalServerError}}),Object.defineProperty(e,"InvalidArgumentError",{enumerable:!0,get:function(){return Le.InvalidArgumentError}}),Object.defineProperty(e,"UnknownServiceError",{enumerable:!0,get:function(){return Le.UnknownServiceError}}),Object.defineProperty(e,"ServerUnavailableError",{enumerable:!0,get:function(){return Le.ServerUnavailableError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return Le.TimeoutError}}),Object.defineProperty(e,"BadRequestError",{enumerable:!0,get:function(){return Le.BadRequestError}}),Object.defineProperty(e,"PermissionError",{enumerable:!0,get:function(){return Le.PermissionError}}),Object.defineProperty(e,"CacheNotFoundError",{enumerable:!0,get:function(){return Le.CacheNotFoundError}}),Object.defineProperty(e,"StoreItemNotFoundError",{enumerable:!0,get:function(){return Le.StoreItemNotFoundError}}),Object.defineProperty(e,"StoreNotFoundError",{enumerable:!0,get:function(){return Le.StoreNotFoundError}}),Object.defineProperty(e,"UnknownError",{enumerable:!0,get:function(){return Le.UnknownError}}),r(requireEnums(),e);var Pe=requireNoopMomentoLogger();Object.defineProperty(e,"NoopMomentoLogger",{enumerable:!0,get:function(){return Pe.NoopMomentoLogger}}),Object.defineProperty(e,"NoopMomentoLoggerFactory",{enumerable:!0,get:function(){return Pe.NoopMomentoLoggerFactory}});var Ie=requirePermissionScope();Object.defineProperty(e,"CacheRole",{enumerable:!0,get:function(){return Ie.CacheRole}}),Object.defineProperty(e,"TopicRole",{enumerable:!0,get:function(){return Ie.TopicRole}}),Object.defineProperty(e,"FunctionRole",{enumerable:!0,get:function(){return Ie.FunctionRole}}),Object.defineProperty(e,"AllDataReadWrite",{enumerable:!0,get:function(){return Ie.AllDataReadWrite}}),Object.defineProperty(e,"isCacheName",{enumerable:!0,get:function(){return Ie.isCacheName}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return Ie.isFunction}}),Object.defineProperty(e,"isFunctionNamePrefix",{enumerable:!0,get:function(){return Ie.isFunctionNamePrefix}}),Object.defineProperty(e,"isTopicName",{enumerable:!0,get:function(){return Ie.isTopicName}}),Object.defineProperty(e,"AllCaches",{enumerable:!0,get:function(){return Ie.AllCaches}}),Object.defineProperty(e,"AllFunctions",{enumerable:!0,get:function(){return Ie.AllFunctions}}),Object.defineProperty(e,"AllTopics",{enumerable:!0,get:function(){return Ie.AllTopics}}),Object.defineProperty(e,"AllCacheItems",{enumerable:!0,get:function(){return Ie.AllCacheItems}});var De=requireDisposableTokenScope();Object.defineProperty(e,"isCacheItemKey",{enumerable:!0,get:function(){return De.isCacheItemKey}}),Object.defineProperty(e,"isCacheItemKeyPrefix",{enumerable:!0,get:function(){return De.isCacheItemKeyPrefix}}),e.PermissionScopes=requirePermissionScopes(),e.TokenScopes=requirePermissionScopes(),e.DisposableTokenScopes=requireDisposableTokenScopes();var Ae=requireReadConcern();Object.defineProperty(e,"ReadConcern",{enumerable:!0,get:function(){return Ae.ReadConcern}});var qe=requireCompressionLevel();Object.defineProperty(e,"CompressionLevel",{enumerable:!0,get:function(){return qe.CompressionLevel}});var Ne=requireSubscriptionRetryStrategy();Object.defineProperty(e,"DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS",{enumerable:!0,get:function(){return Ne.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS}})}(src)),src}function requireCacheServiceErrorMapper(){if(hasRequiredCacheServiceErrorMapper)return cacheServiceErrorMapper;hasRequiredCacheServiceErrorMapper=1,Object.defineProperty(cacheServiceErrorMapper,"__esModule",{value:!0}),cacheServiceErrorMapper.CacheServiceErrorMapper=void 0;const e=requireSrc(),t=requireGrpcWeb(),r=requireSrc$1();return cacheServiceErrorMapper.CacheServiceErrorMapper=class{constructor(e){this.throwOnErrors=e}returnOrThrowError(t,r){const o=(s=t)instanceof e.SdkError?s:new e.UnknownError(s.message);var s;if(this.throwOnErrors)throw o;return r(o)}resolveOrRejectError(e){const t=this.convertError(e.err);this.throwOnErrors?e.rejectFn(t):e.resolveFn(e.errorResponseFactoryFn(t))}convertError(o){var s,n,i,a;const u=[o?.message||"Unable to process request",o?.code,o?.metadata,o?.stack];switch(o?.code){case t.StatusCode.PERMISSION_DENIED:return new e.PermissionError(...u);case t.StatusCode.DATA_LOSS:case t.StatusCode.INTERNAL:case t.StatusCode.ABORTED:return new e.InternalServerError(...u);case t.StatusCode.UNKNOWN:return new e.UnknownServiceError(...u);case t.StatusCode.UNAVAILABLE:return new e.ServerUnavailableError(...u);case t.StatusCode.NOT_FOUND:{let e=(null!==(s=u[2])&&void 0!==s?s:{}).err;const t=null===(n=u[0])||void 0===n?void 0:n.toString();switch(t?.includes("Store with name:")&&t?.includes("doesn't exist")&&(e="store_not_found"),e){case"item_not_found":return new r.StoreItemNotFoundError(...u);case"store_not_found":return new r.StoreNotFoundError(...u);default:return new r.CacheNotFoundError(...u)}}case t.StatusCode.OUT_OF_RANGE:case t.StatusCode.UNIMPLEMENTED:return new e.BadRequestError(...u);case t.StatusCode.FAILED_PRECONDITION:return new e.FailedPreconditionError(...u);case t.StatusCode.INVALID_ARGUMENT:return new e.InvalidArgumentError(...u);case t.StatusCode.CANCELLED:return new e.CancelledError(...u);case t.StatusCode.DEADLINE_EXCEEDED:return new e.TimeoutError(...u);case t.StatusCode.UNAUTHENTICATED:return new e.AuthenticationError(...u);case t.StatusCode.RESOURCE_EXHAUSTED:{const t=(null!==(i=u[2])&&void 0!==i?i:{}).err;return new e.LimitExceededError(...u,t)}case t.StatusCode.ALREADY_EXISTS:{let e="";const t=null===(a=u[0])||void 0===a?void 0:a.toString(),o=t?.includes("Store with name:")&&t?.includes("already exists");return"store_already_exists"===(!e&&o&&(e="store_already_exists"),e)?new r.StoreAlreadyExistsError(...u):new r.CacheAlreadyExistsError(...u)}default:return new e.UnknownError(...u)}}},cacheServiceErrorMapper}var webClientUtils={},hasRequiredWebClientUtils;function requireWebClientUtils(){if(hasRequiredWebClientUtils)return webClientUtils;function e(e){const t=atob(e),r=t.length,o=new Uint8Array(r);for(let e=0;e<r;e++)o[e]=t.charCodeAt(e);return o}function t(e){return e.match(/^http(?:s)?:\/\//)?e:`https://${e}`}return hasRequiredWebClientUtils=1,Object.defineProperty(webClientUtils,"__esModule",{value:!0}),webClientUtils.getWebTokenEndpoint=webClientUtils.getWebCacheEndpoint=webClientUtils.getWebControlEndpoint=webClientUtils.createCallMetadata=webClientUtils.convertToStringFromB64String=webClientUtils.convertToBytesFromB64String=webClientUtils.convertToB64String=void 0,webClientUtils.convertToB64String=function(e){if("string"==typeof e){const t=(new TextEncoder).encode(e),r=String.fromCharCode(...t);return btoa(r)}{const t=String.fromCharCode(...e);return btoa(t)}},webClientUtils.convertToBytesFromB64String=e,webClientUtils.convertToStringFromB64String=function(t){const r=e(t);return(new TextDecoder).decode(r)},webClientUtils.createCallMetadata=function(e,t){return{cache:e,deadline:(Date.now()+t).toString()}},webClientUtils.getWebControlEndpoint=function(e){return e.areEndpointsOverridden()?t(e.getControlEndpoint()):t(`web.${e.getControlEndpoint()}`)},webClientUtils.getWebCacheEndpoint=function(e){return e.areEndpointsOverridden()?t(e.getCacheEndpoint()):t(`web.${e.getCacheEndpoint()}`)},webClientUtils.getWebTokenEndpoint=function(e){return e.areEndpointsOverridden()?t(e.getTokenEndpoint()):t(`web.${e.getTokenEndpoint()}`)},webClientUtils}var clientMetadataProvider={};const version="1.116.0",require$$1={version:version};var uaParser$1={exports:{}},uaParser=uaParser$1.exports,hasRequiredUaParser,hasRequiredClientMetadataProvider,hasRequiredCacheControlClient;function requireUaParser(){return hasRequiredUaParser||(hasRequiredUaParser=1,e=uaParser$1,t=uaParser$1.exports,function(r,o){var s,n="user-agent",i="",a="function",u="undefined",c="object",l="string",p="browser",d="cpu",g="device",h="engine",f="os",y="result",_="name",R="type",S="vendor",m="version",b="architecture",E="major",M="model",F="console",v="mobile",T="tablet",B="smarttv",C="wearable",O="xr",w="embedded",L="inapp",P="brands",I="formFactors",D="fullVersionList",A="platform",q="platformVersion",N="bitness",j="sec-ch-ua",k=j+"-full-version-list",W=j+"-arch",G=j+"-"+N,x=j+"-form-factors",U=j+"-"+v,z=j+"-"+M,$=j+"-"+A,H=$+"-version",V=[P,D,v,M,A,q,b,I,N],K="Amazon",J="Apple",Y="ASUS",X="BlackBerry",Z="Google",Q="Huawei",ee="Lenovo",te="Honor",re="LG",oe="Microsoft",se="Motorola",ne="Nvidia",ie="OnePlus",ae="OPPO",ue="Samsung",ce="Sharp",le="Sony",pe="Xiaomi",de="Zebra",ge="Chrome",he="Chromium",fe="Chromecast",ye="Edge",_e="Firefox",Re="Opera",Se="Facebook",me="Sogou",be="Mobile ",Ee=" Browser",Me="Windows",Fe=typeof r!==u,ve=Fe&&r.navigator?r.navigator:o,Te=ve&&ve.userAgentData?ve.userAgentData:o,Be=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},Ce=function(e,t){if(typeof e===c&&e.length>0){for(var r in e)if(Pe(t)==Pe(e[r]))return!0;return!1}return!!we(e)&&Pe(t)==Pe(e)},Oe=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&Oe(e[r])},we=function(e){return typeof e===l},Le=function(e){if(!e)return o;for(var t=[],r=Ae(/\\?\"/g,e).split(","),s=0;s<r.length;s++)if(r[s].indexOf(";")>-1){var n=Ne(r[s]).split(";v=");t[s]={brand:n[0],version:n[1]}}else t[s]=Ne(r[s]);return t},Pe=function(e){return we(e)?e.toLowerCase():e},Ie=function(e){return we(e)?Ae(/[^\d\.]/g,e).split(".")[0]:o},De=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r==c&&2==r.length?this[r[0]]=r[1]:this[r]=o}return this},Ae=function(e,t){return we(t)?t.replace(e,i):t},qe=function(e){return Ae(/\\?\"/g,e)},Ne=function(e,t){if(we(e))return e=Ae(/^\s\s*/,e),typeof t===u?e:e.substring(0,500)},je=function(e,t){if(e&&t)for(var r,s,n,i,u,l,p=0;p<t.length&&!u;){var d=t[p],g=t[p+1];for(r=s=0;r<d.length&&!u&&d[r];)if(u=d[r++].exec(e))for(n=0;n<g.length;n++)l=u[++s],typeof(i=g[n])===c&&i.length>0?2===i.length?typeof i[1]==a?this[i[0]]=i[1].call(this,l):this[i[0]]=i[1]:i.length>=3&&(typeof i[1]!==a||i[1].exec&&i[1].test?3==i.length?this[i[0]]=l?l.replace(i[1],i[2]):o:4==i.length?this[i[0]]=l?i[3].call(this,l.replace(i[1],i[2])):o:i.length>4&&(this[i[0]]=l?i[3].apply(this,[l.replace(i[1],i[2])].concat(i.slice(4))):o):i.length>3?this[i[0]]=l?i[1].apply(this,i.slice(2)):o:this[i[0]]=l?i[1].call(this,l,i[2]):o):this[i]=l||o;p+=2}},ke=function(e,t){for(var r in t)if(typeof t[r]===c&&t[r].length>0){for(var s=0;s<t[r].length;s++)if(Ce(t[r][s],e))return"?"===r?o:r}else if(Ce(t[r],e))return"?"===r?o:r;return t.hasOwnProperty("*")?t["*"]:e},We={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},Ge={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":o},xe={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Ue={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[_,be+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[m,[_,ye+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[_,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[_,m],[/opios[\/ ]+([\w\.]+)/i],[m,[_,Re+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[_,Re+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[_,Re]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[_,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[_,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[_,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[_,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[_,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[_,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[_,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[_,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[_,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[_,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[_,"Smart "+ee+Ee]],[/(avast|avg)\/([\w\.]+)/i],[[_,/(.+)/,"$1 Secure"+Ee],m],[/\bfocus\/([\w\.]+)/i],[m,[_,_e+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[_,Re+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[_,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[_,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[_,Re+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[_,"MIUI"+Ee]],[/fxios\/([\w\.-]+)/i],[m,[_,be+_e]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[_,"360"]],[/\b(qq)\/([\w\.]+)/i],[[_,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[_,/(.+)/,"$1"+Ee],m],[/samsungbrowser\/([\w\.]+)/i],[m,[_,ue+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[_,me+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[_,me+" Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[_,m],[/(lbbrowser|rekonq)/i],[_],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,_],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[_,Se],m,[R,L]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[_,m,[R,L]],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[_,"GSA"],[R,L]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[_,"TikTok"],[R,L]],[/\[(linkedin)app\]/i],[_,[R,L]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[_,/(.+)/,"Zalo"],m,[R,L]],[/(chromium)[\/ ]([-\w\.]+)/i],[_,m],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[_,ge+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[m,[_,ye+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[_,ge+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[_,"Android"+Ee]],[/chrome\/([\w\.]+) mobile/i],[m,[_,be+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[_,m],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[m,[_,be+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[_,be+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[m,_],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[_,[m,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[_,m],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[_,be+_e],m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[_,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[_,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[_,_e+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[_,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[_,[m,/[^\d\.]+./,i]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[b,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[b,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[b,"arm"]],[/ sun4\w[;\)]/i],[[b,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[b,/ower/,i,Pe]],[/winnt.+\[axp/i],[[b,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[M,[S,ue],[R,T]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[M,[S,ue],[R,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[M,[S,J],[R,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[M,[S,J],[R,T]],[/(macintosh);/i],[M,[S,J]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[M,[S,ce],[R,v]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[M,[S,te],[R,T]],[/honor([-\w ]+)[;\)]/i],[M,[S,te],[R,v]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[M,[S,Q],[R,T]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[M,[S,Q],[R,v]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[M,/_/g," "],[S,pe],[R,T]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[M,/_/g," "],[S,pe],[R,v]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[M,[S,ie],[R,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[M,[S,ae],[R,v]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[M,[S,ke,{OnePlus:["203","304","403","404","413","415"],"*":ae}],[R,T]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[M,[S,"BLU"],[R,v]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[M,[S,"Vivo"],[R,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[M,[S,"Realme"],[R,v]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[M,[S,ee],[R,T]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[M,[S,ee],[R,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[M,[S,se],[R,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[M,[S,se],[R,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[M,[S,re],[R,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[M,[S,re],[R,v]],[/(nokia) (t[12][01])/i],[S,M,[R,T]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[M,/_/g," "],[R,v],[S,"Nokia"]],[/(pixel (c|tablet))\b/i],[M,[S,Z],[R,T]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[M,[S,Z],[R,v]],[/(google) (pixelbook( go)?)/i],[S,M],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[M,[S,le],[R,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[M,"Xperia Tablet"],[S,le],[R,T]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[M,[S,K],[R,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[M,/(.+)/g,"Fire Phone $1"],[S,K],[R,v]],[/(playbook);[-\w\),; ]+(rim)/i],[M,S,[R,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[M,[S,X],[R,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[M,[S,Y],[R,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[M,[S,Y],[R,v]],[/(nexus 9)/i],[M,[S,"HTC"],[R,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[S,[M,/_/g," "],[R,v]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[M,[S,"TCL"],[R,T]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[M,[S,"TCL"],[R,v]],[/(itel) ((\w+))/i],[[S,Pe],M,[R,ke,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[M,[S,"Acer"],[R,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[M,[S,"Meizu"],[R,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[M,[S,"Ulefone"],[R,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[M,[S,"Energizer"],[R,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[M,[S,"Cat"],[R,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[M,[S,"Smartfren"],[R,v]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[M,[S,"Nothing"],[R,v]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[M,[S,"Archos"],[R,T]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[M,[S,"Archos"],[R,v]],[/; (n159v)/i],[M,[S,"HMD"],[R,v]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[S,M,[R,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[S,M,[R,v]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[S,M,[R,T]],[/(surface duo)/i],[M,[S,oe],[R,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[M,[S,"Fairphone"],[R,v]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[M,[S,ne],[R,T]],[/(sprint) (\w+)/i],[S,M,[R,v]],[/(kin\.[onetw]{3})/i],[[M,/\./g," "],[S,oe],[R,v]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[M,[S,de],[R,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[M,[S,de],[R,v]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[S,[R,B]],[/hbbtv.+maple;(\d+)/i],[[M,/^/,"SmartTV"],[S,ue],[R,B]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[S,M,[R,B]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[S,re],[R,B]],[/(apple) ?tv/i],[S,[M,J+" TV"],[R,B]],[/crkey.*devicetype\/chromecast/i],[[M,fe+" Third Generation"],[S,Z],[R,B]],[/crkey.*devicetype\/([^/]*)/i],[[M,/^/,"Chromecast "],[S,Z],[R,B]],[/fuchsia.*crkey/i],[[M,fe+" Nest Hub"],[S,Z],[R,B]],[/crkey/i],[[M,fe],[S,Z],[R,B]],[/(portaltv)/i],[M,[S,Se],[R,B]],[/droid.+aft(\w+)( bui|\))/i],[M,[S,K],[R,B]],[/(shield \w+ tv)/i],[M,[S,ne],[R,B]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[M,[S,ce],[R,B]],[/(bravia[\w ]+)( bui|\))/i],[M,[S,le],[R,B]],[/(mi(tv|box)-?\w+) bui/i],[M,[S,pe],[R,B]],[/Hbbtv.*(technisat) (.*);/i],[S,M,[R,B]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[S,/.+\/(\w+)/,"$1",ke,{LG:"lge"}],[M,Ne],[R,B]],[/(playstation \w+)/i],[M,[S,le],[R,F]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[M,[S,oe],[R,F]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[S,M,[R,F]],[/droid.+; (shield)( bui|\))/i],[M,[S,ne],[R,F]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[M,[S,ue],[R,C]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[S,M,[R,C]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[M,[S,ae],[R,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[M,[S,J],[R,C]],[/(opwwe\d{3})/i],[M,[S,ie],[R,C]],[/(moto 360)/i],[M,[S,se],[R,C]],[/(smartwatch 3)/i],[M,[S,le],[R,C]],[/(g watch r)/i],[M,[S,re],[R,C]],[/droid.+; (wt63?0{2,3})\)/i],[M,[S,de],[R,C]],[/droid.+; (glass) \d/i],[M,[S,Z],[R,O]],[/(pico) ([\w ]+) os\d/i],[S,M,[R,O]],[/(quest( \d| pro)?s?).+vr/i],[M,[S,Se],[R,O]],[/mobile vr; rv.+firefox/i],[[R,O]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[S,[R,w]],[/(aeobc)\b/i],[M,[S,K],[R,w]],[/(homepod).+mac os/i],[M,[S,J],[R,w]],[/windows iot/i],[[R,w]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[M,[R,B]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[R,B]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[M,[R,ke,{mobile:"Mobile",xr:"VR","*":T}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[R,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[R,v]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[M,[S,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[_,ye+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[_,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[_,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[_,m],[/ladybird\//i],[[_,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,_]],os:[[/(windows nt) (6\.[23]); arm/i],[[_,/N/,"R"],[m,ke,We]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[_,m],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[m,/(;|\))/g,"",ke,We],[_,Me]],[/(windows ce)\/?([\d\.]*)/i],[_,m],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[_,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[_,"macOS"],[m,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[m,[_,fe+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[m,[_,fe+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[m,[_,fe+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[m,[_,fe+" Linux"]],[/crkey\/([\d\.]+)/i],[m,[_,fe]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[m,_],[/(ubuntu) ([\w\.]+) like android/i],[[_,/(.+)/,"$1 Touch"],m],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[_,m],[/\(bb(10);/i],[m,[_,X]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[_,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[_,_e+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[m,[_,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[m,ke,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[_,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[_,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[_,"Chrome OS"],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[_,m],[/(sunos) ?([\d\.]*)/i],[[_,"Solaris"],m],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[_,m]]},ze=(De.call((s={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[p,[_,m,E,R]],[d,[b]],[g,[R,M,S]],[h,[_,m]],[f,[_,m]]]),De.call(s.isIgnore,[[p,[m,E]],[h,[m]],[f,[m]]]),De.call(s.isIgnoreRgx,[[p,/ ?browser$/i],[f,/ ?os$/i]]),De.call(s.toString,[[p,[_,m]],[d,[b]],[g,[S,M]],[h,[_,m]],[f,[_,m]]]),s),$e=function(e,t){var r=ze.init[t],o=ze.isIgnore[t]||0,s=ze.isIgnoreRgx[t]||0,n=ze.toString[t]||0;function a(){De.call(this,r)}return a.prototype.getItem=function(){return e},a.prototype.withClientHints=function(){return Te?Te.getHighEntropyValues(V).then((function(t){return e.setCH(new He(t,!1)).parseCH().get()})):e.parseCH().get()},a.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=y&&(a.prototype.is=function(e){var t=!1;for(var r in this)if(this.hasOwnProperty(r)&&!Ce(o,r)&&Pe(s?Ae(s,this[r]):this[r])==Pe(s?Ae(s,e):e)){if(t=!0,e!=u)break}else if(e==u&&t){t=!t;break}return t},a.prototype.toString=function(){var e=i;for(var t in n)typeof this[n[t]]!==u&&(e+=(e?" ":i)+this[n[t]]);return e||u}),Te||(a.prototype.then=function(e){var t=this,r=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};r.prototype={is:a.prototype.is,toString:a.prototype.toString};var o=new r;return e(o),o}),new a};function He(e,t){if(e=e||{},De.call(this,V),t)De.call(this,[[P,Le(e[j])],[D,Le(e[k])],[v,/\?1/.test(e[U])],[M,qe(e[z])],[A,qe(e[$])],[q,qe(e[H])],[b,qe(e[W])],[I,Le(e[x])],[N,qe(e[G])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==u&&(this[r]=e[r])}function Ve(e,t,r,s){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:o:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(ve&&ve.userAgent==this.ua)switch(this.itemType){case p:ve.brave&&typeof ve.brave.isBrave==a&&this.set(_,"Brave");break;case g:!this.get(R)&&Te&&Te[v]&&this.set(R,v),"Macintosh"==this.get(M)&&ve&&typeof ve.standalone!==u&&ve.maxTouchPoints&&ve.maxTouchPoints>2&&this.set(M,"iPad").set(R,T);break;case f:!this.get(_)&&Te&&Te[A]&&this.set(_,Te[A]);break;case y:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(p,t(p)).set(d,t(d)).set(g,t(g)).set(h,t(h)).set(f,t(f))}return this},this.parseUA=function(){return this.itemType!=y&&je.call(this.data,this.ua,this.rgxMap),this.itemType==p&&this.set(E,Ie(this.get(m))),this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case p:case h:var r,s=e[D]||e[P];if(s)for(var n=0;n<s.length;n++){var i=s[n].brand||s[n],a=s[n].version;this.itemType==p&&!/not.a.brand/i.test(i)&&(!r||/Chrom/.test(r)&&i!=he||r==ye&&/WebView2/.test(i))&&(i=ke(i,xe),(r=this.get(_))&&!/Chrom/.test(r)&&/Chrom/.test(i)||this.set(_,i).set(m,a).set(E,Ie(a)),r=i),this.itemType==h&&i==he&&this.set(m,a)}break;case d:var u=e[b];u&&(u&&"64"==e[N]&&(u+="64"),je.call(this.data,u+";",t));break;case g:if(e[v]&&this.set(R,v),e[M]&&(this.set(M,e[M]),!this.get(R)||!this.get(S))){var c={};je.call(c,"droid 9; "+e[M]+")",t),!this.get(R)&&c.type&&this.set(R,c.type),!this.get(S)&&c.vendor&&this.set(S,c.vendor)}if(e[I]){var l;if("string"!=typeof e[I])for(var F=0;!l&&F<e[I].length;)l=ke(e[I][F++],Ge);else l=ke(e[I],Ge);this.set(R,l)}break;case f:var T=e[A];if(T){var B=e[q];T==Me&&(B=parseInt(Ie(B),10)>=13?"11":"10"),this.set(_,T).set(m,B)}this.get(_)==Me&&"Xbox"==e[M]&&this.set(_,"Xbox").set(m,o);break;case y:var C=this.data,O=function(t){return C[t].getItem().setCH(e).parseCH().get()};this.set(p,O(p)).set(d,O(d)).set(g,O(g)).set(h,O(h)).set(f,O(f))}return this},De.call(this,[["itemType",e],["ua",t],["uaCH",s],["rgxMap",r],["data",$e(this,e)]]),this}function Ke(e,t,r){if(typeof e===c?(Oe(e,!0)?(typeof t===c&&(r=t),t=e):(r=e,t=o),e=o):typeof e===l&&!Oe(t,!0)&&(r=t,t=o),r)if(typeof r.append===a){var s={};r.forEach((function(e,t){s[String(t).toLowerCase()]=e})),r=s}else{var u={};for(var _ in r)r.hasOwnProperty(_)&&(u[String(_).toLowerCase()]=r[_]);r=u}if(!(this instanceof Ke))return new Ke(e,t,r).getResult();var R=typeof e===l?e:r&&r[n]?r[n]:ve&&ve.userAgent?ve.userAgent:i,S=new He(r,!0),m=t?function(e,t){var r={},o=t;if(!Oe(t))for(var s in o={},t)for(var n in t[s])o[n]=t[s][n].concat(o[n]?o[n]:[]);for(var i in e)r[i]=o[i]&&o[i].length%2==0?o[i].concat(e[i]):e[i];return r}(Ue,t):Ue,b=function(e){return e==y?function(){return new Ve(e,R,m,S).set("ua",R).set(p,this.getBrowser()).set(d,this.getCPU()).set(g,this.getDevice()).set(h,this.getEngine()).set(f,this.getOS()).get()}:function(){return new Ve(e,R,m[e],S).parseUA().get()}};return De.call(this,[["getBrowser",b(p)],["getCPU",b(d)],["getDevice",b(g)],["getEngine",b(h)],["getOS",b(f)],["getResult",b(y)],["getUA",function(){return R}],["setUA",function(e){return we(e)&&(R=e.length>500?Ne(e,500):e),this}]]).setUA(R),this}Ke.VERSION="2.0.5",Ke.BROWSER=Be([_,m,E,R]),Ke.CPU=Be([b]),Ke.DEVICE=Be([M,S,R,F,v,B,T,C,w]),Ke.ENGINE=Ke.OS=Be([_,m]),e.exports&&(t=e.exports=Ke),t.UAParser=Ke;var Je=Fe&&(r.jQuery||r.Zepto);if(Je&&!Je.ua){var Ye=new Ke;Je.ua=Ye.getResult(),Je.ua.get=function(){return Ye.getUA()},Je.ua.set=function(e){Ye.setUA(e);var t=Ye.getResult();for(var r in t)Je.ua[r]=t[r]}}}("object"==typeof window?window:uaParser)),uaParser$1.exports;var e,t}function requireClientMetadataProvider(){if(hasRequiredClientMetadataProvider)return clientMetadataProvider;hasRequiredClientMetadataProvider=1,Object.defineProperty(clientMetadataProvider,"__esModule",{value:!0}),clientMetadataProvider.ClientMetadataProvider=void 0;const e=requireSrc$1(),t=require$$1,r=requireUaParser();class o{constructor(e){var t;this.areFirstTimeHeadersSent=!1,this.authToken=e.authToken,this.readConcern=e.readConcern,this.clientType=null!==(t=e.clientType)&&void 0!==t?t:"unknown"}createClientMetadata(){var s,n,i;const a={},{browser:u,device:c,os:l}=(0,r.UAParser)(navigator.userAgent);return this.authToken&&(a.authorization=this.authToken),this.areFirstTimeHeadersSent||(this.areFirstTimeHeadersSent=!0,a.agent=`${o.agentName}:${this.clientType}:${t.version}`,a["runtime-version"]=[`${o.agentName}`,null!==(s=u.name)&&void 0!==s?s:"unknown-browser",null!==(n=l.name)&&void 0!==n?n:"unknown-os",null!==(i=c.model)&&void 0!==i?i:"unknown-device"].join(":")),this.readConcern&&this.readConcern!==e.ReadConcern.BALANCED&&(a["read-concern"]=this.readConcern),a}}return clientMetadataProvider.ClientMetadataProvider=o,o.agentName="js-web",clientMetadataProvider}function requireCacheControlClient(){if(hasRequiredCacheControlClient)return cacheControlClient;hasRequiredCacheControlClient=1,Object.defineProperty(cacheControlClient,"__esModule",{value:!0}),cacheControlClient.CacheControlClient=void 0;const e=requireDist(),t=requireSrc(),r=requireControlclient_pb(),o=requireCacheServiceErrorMapper(),s=requireUtils$1(),n=requireWebClientUtils(),i=requireClientMetadataProvider();return cacheControlClient.CacheControlClient=class{constructor(t){this.logger=t.configuration.getLoggerFactory().getLogger(this),this.cacheServiceErrorMapper=new o.CacheServiceErrorMapper(t.configuration.getThrowOnErrors()),this.logger.debug(`Creating control client using endpoint: '${(0,n.getWebControlEndpoint)(t.credentialProvider)}`),this.clientMetadataProvider=new i.ClientMetadataProvider({authToken:t.credentialProvider.getAuthToken(),clientType:"cache"}),this.clientWrapper=new e.control.ScsControlClient((0,n.getWebControlEndpoint)(t.credentialProvider),null,{})}close(){this.logger.debug("Closing cache control client")}async createCache(e){try{(0,s.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CreateCache.Error(e)))}this.logger.debug(`Creating cache: ${e}`);const o=new r._CreateCacheRequest;return o.setCacheName(e),await new Promise(((e,r)=>{this.clientWrapper.createCache(o,this.clientMetadataProvider.createClientMetadata(),((o,s)=>{o?this.cacheServiceErrorMapper.convertError(o).errorCode()===t.MomentoErrorCode.CACHE_ALREADY_EXISTS_ERROR?e(new t.CreateCache.AlreadyExists):this.cacheServiceErrorMapper.resolveOrRejectError({err:o,errorResponseFactoryFn:e=>new t.CreateCache.Error(e),resolveFn:e,rejectFn:r}):e(new t.CreateCache.Success)}))}))}async deleteCache(e){try{(0,s.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.DeleteCache.Error(e)))}const o=new r._DeleteCacheRequest;return o.setCacheName(e),this.logger.debug(`Deleting cache: ${e}`),await new Promise(((e,r)=>{this.clientWrapper.deleteCache(o,this.clientMetadataProvider.createClientMetadata(),((o,s)=>{o?this.cacheServiceErrorMapper.resolveOrRejectError({err:o,errorResponseFactoryFn:e=>new t.DeleteCache.Error(e),resolveFn:e,rejectFn:r}):e(new t.DeleteCache.Success)}))}))}async flushCache(e){try{(0,s.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheFlush.Error(e)))}return this.logger.trace(`Flushing cache: ${e}`),await this.sendFlushCache(e)}async sendFlushCache(e){const o=new r._FlushCacheRequest;return o.setCacheName(e),await new Promise(((e,r)=>{this.clientWrapper.flushCache(o,this.clientMetadataProvider.createClientMetadata(),((o,s)=>{s?e(new t.CacheFlush.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:o,errorResponseFactoryFn:e=>new t.CacheFlush.Error(e),resolveFn:e,rejectFn:r})}))}))}async listCaches(){const e=new r._ListCachesRequest;return e.setNextToken(""),this.logger.debug("Issuing 'listCaches' request"),await new Promise(((r,o)=>{this.clientWrapper.listCaches(e,this.clientMetadataProvider.createClientMetadata(),((e,s)=>{if(e)this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.ListCaches.Error(e),resolveFn:r,rejectFn:o});else{const e=s.getCacheList().map((e=>{var r,o,s,n,i,a,u;const c=e.getCacheName(),l={maxPublishMessageSizeKb:(null===(r=e.getTopicLimits())||void 0===r?void 0:r.getMaxPublishMessageSizeKb())||0,maxSubscriptionCount:(null===(o=e.getTopicLimits())||void 0===o?void 0:o.getMaxSubscriptionCount())||0,maxPublishRate:(null===(s=e.getTopicLimits())||void 0===s?void 0:s.getMaxPublishRate())||0},p={maxTtlSeconds:(null===(n=e.getCacheLimits())||void 0===n?void 0:n.getMaxTtlSeconds())||0,maxItemSizeKb:(null===(i=e.getCacheLimits())||void 0===i?void 0:i.getMaxItemSizeKb())||0,maxThroughputKbps:(null===(a=e.getCacheLimits())||void 0===a?void 0:a.getMaxThroughputKbps())||0,maxTrafficRate:(null===(u=e.getCacheLimits())||void 0===u?void 0:u.getMaxTrafficRate())||0};return new t.CacheInfo(c,l,p)}));r(new t.ListCaches.Success(e))}}))}))}},cacheControlClient}var cacheDataClient={},middlewaresInterceptor={},middleware={},hasRequiredMiddleware,hasRequiredMiddlewaresInterceptor,hasRequiredCacheDataClient;function requireMiddleware(){if(hasRequiredMiddleware)return middleware;hasRequiredMiddleware=1,Object.defineProperty(middleware,"__esModule",{value:!0}),middleware.MiddlewareRequest=middleware.MiddlewareMessage=middleware.MiddlewareStatus=middleware.MiddlewareMetadata=void 0;middleware.MiddlewareMetadata=class{constructor(e){this._grpcMetadata=e}toJsonString(){return JSON.stringify(this._grpcMetadata)}};middleware.MiddlewareStatus=class{constructor(e){this._grpcStatus=e}code(){return this._grpcStatus.code}};middleware.MiddlewareMessage=class{constructor(e){this._grpcMessage=e}responseType(){return this._grpcMessage.constructor.name}messageLength(){return null!==this._grpcMessage&&void 0!==this._grpcMessage?this._grpcMessage.serializeBinary().length:0}};return middleware.MiddlewareRequest=class{constructor(e){this._grpcRequest=e}getMetadata(){return this._grpcRequest.getMetadata()}getRequestType(){return this._grpcRequest.constructor.name}getBodySize(){return this._grpcRequest.getRequestMessage().serializeBinary().length}},middleware}function requireMiddlewaresInterceptor(){if(hasRequiredMiddlewaresInterceptor)return middlewaresInterceptor;hasRequiredMiddlewaresInterceptor=1,Object.defineProperty(middlewaresInterceptor,"__esModule",{value:!0}),middlewaresInterceptor.middlewaresInterceptor=void 0;const e=requireMiddleware();middlewaresInterceptor.middlewaresInterceptor=function(e,r,o){return new t(e,r,o)};class t{constructor(e,t,r){this.logger=e.getLogger(this.constructor.name),this.middlewares=t,this.middlewareRequestContext=r}intercept(t,o){const s=this.middlewares.map((e=>e.onNewRequest(this.middlewareRequestContext))),n=new e.MiddlewareRequest(t),i=s.reduce(((e,t)=>t.onRequest(e)),n);return new r(this.logger,this.middlewareRequestContext,s,o(i._grpcRequest))}}class r{constructor(e,t,r,o){this.logger=e,this.middlewareRequestContext=t,this.middlewareRequestHandlers=r,this.stream=o,this.reversedMiddlewareRequestHandlers=[...this.middlewareRequestHandlers].reverse()}on(e,t){switch(e){case"error":return this.onResponseError(e,t);case"status":return this.onResponseStatus(e,t);case"metadata":return this.onResponseMetadata(e,t);case"data":return this.onResponseData(e,t);case"end":return this.onResponseEnd(e,t);default:return this.stream.on(e,t)}}removeListener(e,t){}cancel(){this.stream.cancel()}onResponseError(e,t){return this.stream.on(e,t)}onResponseStatus(t,r){return this.stream.on(t,(t=>{const s=o("onResponseStatus",this.reversedMiddlewareRequestHandlers,(e=>t=>e.onResponseStatus(t)),new e.MiddlewareStatus(t));r(s._grpcStatus)}))}onResponseMetadata(t,r){return this.stream.on(t,(t=>{const s=o("onResponseMetadata",this.reversedMiddlewareRequestHandlers,(e=>t=>e.onResponseMetadata(t)),new e.MiddlewareMetadata(t));r(s._grpcMetadata)}))}onResponseData(t,r){return this.stream.on(t,(t=>{const s=o("onResponseData",this.reversedMiddlewareRequestHandlers,(e=>t=>e.onResponseData(t)),new e.MiddlewareMessage(t));r(s._grpcMessage)}))}onResponseEnd(e,t){return this.stream.on(e,(()=>{o("onResponseEnd",this.reversedMiddlewareRequestHandlers,(e=>()=>e.onResponseEnd()),void 0),t()}))}}function o(e,t,r,o){let s=t,n=o;for(;s.length>0;)n=r(s[0])(n),s=s.slice(1);return n}return middlewaresInterceptor}function requireCacheDataClient(){if(hasRequiredCacheDataClient)return cacheDataClient;hasRequiredCacheDataClient=1,Object.defineProperty(cacheDataClient,"__esModule",{value:!0}),cacheDataClient.CacheDataClient=void 0;const e=requireDist(),t=requireSrc(),r=requireCacheServiceErrorMapper(),o=requireGrpcResponseTypes(),s=requireCacheclient_pb(),n=requireUtils$1(),i=requireWebClientUtils(),a=requireClientMetadataProvider(),u=requireMiddlewaresInterceptor(),c=requireCommon_pb(),l=requireUtils(),p=requireSrc$1();return cacheDataClient.CacheDataClient=class{constructor(t){this.logger=t.configuration.getLoggerFactory().getLogger(this),this.cacheServiceErrorMapper=new r.CacheServiceErrorMapper(t.configuration.getThrowOnErrors()),this.logger.debug(`Creating data client using endpoint: '${(0,i.getWebCacheEndpoint)(t.credentialProvider)}`),this.deadlineMillis=t.configuration.getTransportStrategy().getGrpcConfig().getDeadlineMillis(),this.defaultTtlSeconds=t.defaultTtlSeconds,this.clientMetadataProvider=new a.ClientMetadataProvider({authToken:t.credentialProvider.getAuthToken(),readConcern:t.configuration.getReadConcern(),clientType:"cache"});this.clientWrapper=new e.cache.ScsClient((0,i.getWebCacheEndpoint)(t.credentialProvider),null,{streamInterceptors:[(0,u.middlewaresInterceptor)(t.configuration.getLoggerFactory(),t.configuration.getMiddlewares(),{})]}),this.textEncoder=new TextEncoder}close(){this.logger.debug("Closing cache control client")}collectionTtlOrDefaultMilliseconds(e){var t;return null!==(t=e.ttlMilliseconds())&&void 0!==t?t:(0,l.secondsToMilliseconds)(this.defaultTtlSeconds)}ttlOrDefaultMilliseconds(e){const t=e??this.defaultTtlSeconds;return(0,l.secondsToMilliseconds)(t)}async get(e,r){try{(0,n.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheGet.Error(e)))}this.logger.trace(`Issuing 'get' request; key: ${r.toString()}`);const o=await this.sendGet(e,(0,i.convertToB64String)(r));return this.logger.trace(`'get' request result: ${o.toString()}`),o}async sendGet(e,r){const o=new s._GetRequest;return o.setCacheKey(r),await new Promise(((r,n)=>{this.clientWrapper.get(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{if(o)switch(o.getResult()){case s.ECacheResult.MISS:r(new t.CacheGet.Miss);break;case s.ECacheResult.HIT:r(new t.CacheGet.Hit(o.getCacheBody_asU8()));break;case s.ECacheResult.INVALID:case s.ECacheResult.OK:r(new t.CacheGet.Error(new t.UnknownError(o.getMessage())));break;default:r(new t.CacheGet.Error(new t.UnknownError("An unknown error occurred: "+o.getMessage())))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheGet.Error(e),resolveFn:r,rejectFn:n})}))}))}async getWithHash(e,t){try{(0,n.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new p.CacheGetWithHash.Error(e)))}this.logger.trace(`Issuing 'getWithHash' request; key: ${t.toString()}`);const r=await this.sendGetWithHash(e,(0,i.convertToB64String)(t));return this.logger.trace(`'getWithHash' request result: ${r.toString()}`),r}async sendGetWithHash(e,r){const o=new s._GetWithHashRequest;return o.setCacheKey(r),await new Promise(((r,s)=>{this.clientWrapper.getWithHash(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{o?.getMissing()&&r(new p.CacheGetWithHash.Miss);const n=o?.getFound();if(n&&n.getValue()&&n.getHash()){const e=n.getValue(),t=n.getHash();r(new p.CacheGetWithHash.Hit(this.convertToUint8Array(e),this.convertToUint8Array(t)))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheItemGetTtl.Error(e),resolveFn:r,rejectFn:s})}))}))}async set(e,r,o,s){try{(0,n.validateCacheName)(e),void 0!==s?.ttl&&(0,n.validateTtlSeconds)(s?.ttl)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSet.Error(e)))}const a=s?.ttl||this.defaultTtlSeconds;return this.logger.trace(`Issuing 'set' request; key: ${r.toString()}, value length: ${o.length}, ttl: ${a.toString()}`),await this.sendSet(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),a)}async sendSet(e,r,o,n){const a=new s._SetRequest;return a.setCacheKey(r),a.setCacheBody(o),a.setTtlMilliseconds((0,l.secondsToMilliseconds)(n)),await new Promise(((r,o)=>{this.clientWrapper.set(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheSet.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSet.Error(e),resolveFn:r,rejectFn:o})}))}))}async setWithHash(e,t,r,o){try{(0,n.validateCacheName)(e),void 0!==o?.ttl&&(0,n.validateTtlSeconds)(o?.ttl)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new p.CacheSetWithHash.Error(e)))}const s=o?.ttl||this.defaultTtlSeconds;return this.logger.trace(`Issuing 'setWithHash' request; key: ${t.toString()}, value length: ${r.length}, ttl: ${s.toString()}`),await this.sendSetWithHash(e,(0,i.convertToB64String)(t),(0,i.convertToB64String)(r),s)}async sendSetWithHash(e,r,o,n){const a=new s._SetIfHashRequest;return a.setCacheKey(r),a.setCacheBody(o),a.setTtlMilliseconds((0,l.secondsToMilliseconds)(n)),a.setUnconditional(new c.Unconditional),await new Promise(((r,o)=>{this.clientWrapper.setIfHash(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfHashResponse.ResultCase.STORED:{const e=n.getStored();if(e){const t=e.getNewHash_asU8();r(new p.CacheSetWithHash.Stored(t))}break}case s._SetIfHashResponse.ResultCase.NOT_STORED:r(new p.CacheSetWithHash.NotStored);break;default:r(new p.CacheSetWithHash.Error(new t.UnknownError("SetWithHash responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new p.CacheSetWithHash.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfNotExists(e,r,o,s){var a;try{(0,n.validateCacheName)(e),void 0!==s&&(0,n.validateTtlSeconds)(s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfNotExists.Error(e)))}this.logger.trace(`Issuing 'setIfNotExists' request; key: ${r.toString()}, field: ${o.toString()}, ttlSeconds: ${null!==(a=s?.toString())&&void 0!==a?a:"null"}`);const u=await this.sendSetIfNotExists(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),this.ttlOrDefaultMilliseconds(s));return this.logger.trace(`'setIfNotExists' request result: ${u.toString()}`),u}async sendSetIfNotExists(e,r,o,n){const a=new s._SetIfRequest;return a.setCacheKey(r),a.setCacheBody(o),a.setTtlMilliseconds(n),a.setAbsent(new c.Absent),await new Promise(((r,o)=>{this.clientWrapper.setIf(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfResponse.ResultCase.STORED:r(new t.CacheSetIfNotExists.Stored);break;case s._SetIfResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfNotExists.NotStored);break;default:r(new t.CacheSetIfNotExists.Error(new t.UnknownError("SetIfNotExists responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfNotExists.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfAbsent(e,r,o,s){var a;const u=s?.ttl;try{(0,n.validateCacheName)(e),void 0!==u&&(0,n.validateTtlSeconds)(u)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfAbsent.Error(e)))}this.logger.trace(`Issuing 'setIfAbsent' request; key: ${r.toString()}, field: ${o.toString()}, ttlSeconds: ${null!==(a=u?.toString())&&void 0!==a?a:"null"}`);const c=await this.sendSetIfAbsent(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),this.ttlOrDefaultMilliseconds(u));return this.logger.trace(`'setIfAbsent' request result: ${c.toString()}`),c}async sendSetIfAbsent(e,r,o,n){const a=new s._SetIfRequest;return a.setCacheKey(r),a.setCacheBody(o),a.setTtlMilliseconds(n),a.setAbsent(new c.Absent),await new Promise(((r,o)=>{this.clientWrapper.setIf(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfResponse.ResultCase.STORED:r(new t.CacheSetIfAbsent.Stored);break;case s._SetIfResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfAbsent.NotStored);break;default:r(new t.CacheSetIfAbsent.Error(new t.UnknownError("SetIfAbsent responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfAbsent.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfPresent(e,r,o,s){var a;try{(0,n.validateCacheName)(e),void 0!==s&&(0,n.validateTtlSeconds)(s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfPresent.Error(e)))}this.logger.trace(`Issuing 'setIfPresent' request; key: ${r.toString()}, field: ${o.toString()}, ttlSeconds: ${null!==(a=s?.toString())&&void 0!==a?a:"null"}`);const u=await this.sendSetIfPresent(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),this.ttlOrDefaultMilliseconds(s));return this.logger.trace(`'setIfPresent' request result: ${u.toString()}`),u}async sendSetIfPresent(e,r,o,n){const a=new s._SetIfRequest;return a.setCacheKey(r),a.setCacheBody(o),a.setTtlMilliseconds(n),a.setPresent(new c.Present),await new Promise(((r,o)=>{this.clientWrapper.setIf(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfResponse.ResultCase.STORED:r(new t.CacheSetIfPresent.Stored);break;case s._SetIfResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfPresent.NotStored);break;default:r(new t.CacheSetIfPresent.Error(new t.UnknownError("SetIfPresent responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfPresent.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfEqual(e,r,o,s,a){var u;try{(0,n.validateCacheName)(e),void 0!==a&&(0,n.validateTtlSeconds)(a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfEqual.Error(e)))}this.logger.trace(`Issuing 'setIfEqual' request; key: ${r.toString()}, field: ${o.toString()}, ttlSeconds: ${null!==(u=a?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendSetIfEqual(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),(0,i.convertToB64String)(s),this.ttlOrDefaultMilliseconds(a));return this.logger.trace(`'setIfEqual' request result: ${c.toString()}`),c}async sendSetIfEqual(e,r,o,n,a){const u=new s._SetIfRequest;return u.setCacheKey(r),u.setCacheBody(o),u.setTtlMilliseconds(a),u.setEqual((new c.Equal).setValueToCheck(n)),await new Promise(((r,o)=>{this.clientWrapper.setIf(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfResponse.ResultCase.STORED:r(new t.CacheSetIfEqual.Stored);break;case s._SetIfResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfEqual.NotStored);break;default:r(new t.CacheSetIfEqual.Error(new t.UnknownError("SetIfEqual responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfEqual.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfNotEqual(e,r,o,s,a){var u;try{(0,n.validateCacheName)(e),void 0!==a&&(0,n.validateTtlSeconds)(a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfNotEqual.Error(e)))}this.logger.trace(`Issuing 'setIfNotEqual' request; key: ${r.toString()}, field: ${o.toString()}, ttlSeconds: ${null!==(u=a?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendSetIfNotEqual(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),(0,i.convertToB64String)(s),this.ttlOrDefaultMilliseconds(a));return this.logger.trace(`'setIfNotEqual' request result: ${c.toString()}`),c}async sendSetIfNotEqual(e,r,o,n,a){const u=new s._SetIfRequest;return u.setCacheKey(r),u.setCacheBody(o),u.setTtlMilliseconds(a),u.setNotEqual((new c.NotEqual).setValueToCheck(n)),await new Promise(((r,o)=>{this.clientWrapper.setIf(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfResponse.ResultCase.STORED:r(new t.CacheSetIfNotEqual.Stored);break;case s._SetIfResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfNotEqual.NotStored);break;default:r(new t.CacheSetIfNotEqual.Error(new t.UnknownError("SetIfNotEqual responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfNotEqual.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfPresentAndNotEqual(e,r,o,s,a){var u;try{(0,n.validateCacheName)(e),void 0!==a&&(0,n.validateTtlSeconds)(a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfPresentAndNotEqual.Error(e)))}this.logger.trace(`Issuing 'setIfPresentAndNotEqual' request; key: ${r.toString()}, field: ${o.toString()}, ttlSeconds: ${null!==(u=a?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendSetIfPresentAndNotEqual(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),(0,i.convertToB64String)(s),this.ttlOrDefaultMilliseconds(a));return this.logger.trace(`'setIfPresentAndNotEqual' request result: ${c.toString()}`),c}async sendSetIfPresentAndNotEqual(e,r,o,n,a){const u=new s._SetIfRequest;return u.setCacheKey(r),u.setCacheBody(o),u.setTtlMilliseconds(a),u.setPresentAndNotEqual((new c.PresentAndNotEqual).setValueToCheck(n)),await new Promise(((r,o)=>{this.clientWrapper.setIf(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfResponse.ResultCase.STORED:r(new t.CacheSetIfPresentAndNotEqual.Stored);break;case s._SetIfResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfPresentAndNotEqual.NotStored);break;default:r(new t.CacheSetIfPresentAndNotEqual.Error(new t.UnknownError("SetIfPresentAndNotEqual responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfPresentAndNotEqual.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfAbsentOrEqual(e,r,o,s,a){var u;try{(0,n.validateCacheName)(e),void 0!==a&&(0,n.validateTtlSeconds)(a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfAbsentOrEqual.Error(e)))}this.logger.trace(`Issuing 'setIfAbsentOrEqual' request; key: ${r.toString()}, field: ${o.toString()}, ttlSeconds: ${null!==(u=a?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendSetIfAbsentOrEqual(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),(0,i.convertToB64String)(s),this.ttlOrDefaultMilliseconds(a));return this.logger.trace(`'setIfAbsentOrEqual' request result: ${c.toString()}`),c}async sendSetIfAbsentOrEqual(e,r,o,n,a){const u=new s._SetIfRequest;return u.setCacheKey(r),u.setCacheBody(o),u.setTtlMilliseconds(a),u.setAbsentOrEqual((new c.AbsentOrEqual).setValueToCheck(n)),await new Promise(((r,o)=>{this.clientWrapper.setIf(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfResponse.ResultCase.STORED:r(new t.CacheSetIfAbsentOrEqual.Stored);break;case s._SetIfResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfAbsentOrEqual.NotStored);break;default:r(new t.CacheSetIfAbsentOrEqual.Error(new t.UnknownError("SetIfAbsentOrEqual responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfAbsentOrEqual.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfPresentAndHashEqual(e,r,o,s,a){var u;try{(0,n.validateCacheName)(e),void 0!==a&&(0,n.validateTtlSeconds)(a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfPresentAndHashEqual.Error(e)))}this.logger.trace(`Issuing 'setIfPresentAndHashEqual' request; key: ${r.toString()}, value: ${o.toString()}, hashEqual: ${s.toString()}, ttlSeconds: ${null!==(u=a?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendSetIfPresentAndHashEqual(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),(0,i.convertToB64String)(s),this.ttlOrDefaultMilliseconds(a));return this.logger.trace(`'setIfPresentAndHashEqual' request result: ${c.toString()}`),c}async sendSetIfPresentAndHashEqual(e,r,o,n,a){const u=new s._SetIfHashRequest;return u.setCacheKey(r),u.setCacheBody(o),u.setTtlMilliseconds(a),u.setPresentAndHashEqual((new c.PresentAndHashEqual).setHashToCheck(n)),await new Promise(((r,o)=>{this.clientWrapper.setIfHash(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfHashResponse.ResultCase.STORED:{const e=n.getStored();if(e){const o=e.getNewHash_asU8();r(new t.CacheSetIfPresentAndHashEqual.Stored(o))}break}case s._SetIfHashResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfPresentAndHashEqual.NotStored);break;default:r(new t.CacheSetIfPresentAndHashEqual.Error(new t.UnknownError("SetIfPresentAndHashEqual responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfPresentAndHashEqual.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfPresentAndHashNotEqual(e,r,o,s,a){var u;try{(0,n.validateCacheName)(e),void 0!==a&&(0,n.validateTtlSeconds)(a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfPresentAndHashNotEqual.Error(e)))}this.logger.trace(`Issuing 'setIfPresentAndHashNotEqual' request; key: ${r.toString()}, value: ${o.toString()}, hashNotEqual: ${s.toString()}, ttlSeconds: ${null!==(u=a?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendSetIfPresentAndHashNotEqual(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),(0,i.convertToB64String)(s),this.ttlOrDefaultMilliseconds(a));return this.logger.trace(`'setIfPresentAndHashEqual' request result: ${c.toString()}`),c}async sendSetIfPresentAndHashNotEqual(e,r,o,n,a){const u=new s._SetIfHashRequest;return u.setCacheKey(r),u.setCacheBody(o),u.setTtlMilliseconds(a),u.setPresentAndNotHashEqual((new c.PresentAndNotHashEqual).setHashToCheck(n)),await new Promise(((r,o)=>{this.clientWrapper.setIfHash(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfHashResponse.ResultCase.STORED:{const e=n.getStored();if(e){const o=e.getNewHash_asU8();r(new t.CacheSetIfPresentAndHashNotEqual.Stored(o))}break}case s._SetIfHashResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfPresentAndHashNotEqual.NotStored);break;default:r(new t.CacheSetIfPresentAndHashNotEqual.Error(new t.UnknownError("SetIfPresentAndHashNotEqual responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfPresentAndHashNotEqual.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfAbsentOrHashEqual(e,r,o,s,a){var u;try{(0,n.validateCacheName)(e),void 0!==a&&(0,n.validateTtlSeconds)(a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfAbsentOrHashEqual.Error(e)))}this.logger.trace(`Issuing 'setIfAbsentOrHashEqual' request; key: ${r.toString()}, value: ${o.toString()}, hashEqual: ${s.toString()}, ttlSeconds: ${null!==(u=a?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendSetIfAbsentOrHashEqual(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),(0,i.convertToB64String)(s),this.ttlOrDefaultMilliseconds(a));return this.logger.trace(`'setIfAbsentOrHashEqual' request result: ${c.toString()}`),c}async sendSetIfAbsentOrHashEqual(e,r,o,n,a){const u=new s._SetIfHashRequest;return u.setCacheKey(r),u.setCacheBody(o),u.setTtlMilliseconds(a),u.setAbsentOrHashEqual((new c.AbsentOrHashEqual).setHashToCheck(n)),await new Promise(((r,o)=>{this.clientWrapper.setIfHash(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfHashResponse.ResultCase.STORED:{const e=n.getStored();if(e){const o=e.getNewHash_asU8();r(new t.CacheSetIfAbsentOrHashEqual.Stored(o))}break}case s._SetIfHashResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfAbsentOrHashEqual.NotStored);break;default:r(new t.CacheSetIfAbsentOrHashEqual.Error(new t.UnknownError("SetIfAbsentOrHashEqual responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfAbsentOrHashEqual.Error(e),resolveFn:r,rejectFn:o})}))}))}async setIfAbsentOrHashNotEqual(e,r,o,s,a){var u;try{(0,n.validateCacheName)(e),void 0!==a&&(0,n.validateTtlSeconds)(a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetIfAbsentOrHashNotEqual.Error(e)))}this.logger.trace(`Issuing 'setIfAbsentOrHashNotEqual' request; key: ${r.toString()}, value: ${o.toString()}, hashNotEqual: ${s.toString()}, ttlSeconds: ${null!==(u=a?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendSetIfAbsentOrHashNotEqual(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),(0,i.convertToB64String)(s),this.ttlOrDefaultMilliseconds(a));return this.logger.trace(`'setIfAbsentOrHashNotEqual' request result: ${c.toString()}`),c}async sendSetIfAbsentOrHashNotEqual(e,r,o,n,a){const u=new s._SetIfHashRequest;return u.setCacheKey(r),u.setCacheBody(o),u.setTtlMilliseconds(a),u.setAbsentOrNotHashEqual((new c.AbsentOrNotHashEqual).setHashToCheck(n)),await new Promise(((r,o)=>{this.clientWrapper.setIfHash(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n)switch(n.getResultCase()){case s._SetIfHashResponse.ResultCase.STORED:{const e=n.getStored();if(e){const o=e.getNewHash_asU8();r(new t.CacheSetIfAbsentOrHashNotEqual.Stored(o))}break}case s._SetIfHashResponse.ResultCase.NOT_STORED:r(new t.CacheSetIfAbsentOrHashNotEqual.NotStored);break;default:r(new t.CacheSetIfAbsentOrHashNotEqual.Error(new t.UnknownError("SetIfAbsentOrHashNotEqual responded with an unknown result")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetIfAbsentOrHashNotEqual.Error(e),resolveFn:r,rejectFn:o})}))}))}async getBatch(e,r){try{(0,n.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheGetBatch.Error(e)))}this.logger.trace(`Issuing 'getBatch' request; keys: ${r.toString()}`);const o=await this.sendGetBatch(e,r);return this.logger.trace(`'getBatch' request result: ${o.toString()}`),o}async sendGetBatch(e,r){const o=[];for(const e of r){const t=new s._GetRequest;t.setCacheKey((0,i.convertToB64String)(e)),o.push(t)}const n=new s._GetBatchRequest;n.setItemsList(o);const a=this.clientWrapper.getBatch(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)});return await new Promise(((e,o)=>{const n=[];a.on("data",(e=>{switch(e.getResult()){case s.ECacheResult.HIT:n.push(new t.CacheGet.Hit(e.getCacheBody_asU8()));break;case s.ECacheResult.MISS:n.push(new t.CacheGet.Miss);break;default:n.push(new t.CacheGet.Error(new t.UnknownError(e.getMessage())))}})),a.on("end",(()=>{e(new t.CacheGetBatch.Success(n,r.map((e=>this.convertToUint8Array(e)))))})),a.on("error",(r=>{this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new t.CacheGetBatch.Error(e),resolveFn:e,rejectFn:o})}))}))}async setBatch(e,r,o){try{(0,n.validateCacheName)(e),void 0!==o?.ttl&&(0,n.validateTtlSeconds)(o?.ttl)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetBatch.Error(e)))}const s=o?.ttl||this.defaultTtlSeconds,i=this.convertSetBatchElements(r,s);return this.logger.trace(`Issuing 'setBatch' request; items length: ${i.length}, ttl: ${s.toString()}`),await this.sendSetBatch(e,i)}async sendSetBatch(e,r){const o=[];for(const e of r){const[t,r,n]=e,i=new s._SetRequest;i.setCacheKey(t),i.setCacheBody(r),i.setTtlMilliseconds((0,l.secondsToMilliseconds)(n)),o.push(i)}const n=new s._SetBatchRequest;n.setItemsList(o);const a=this.clientWrapper.setBatch(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)});return await new Promise(((e,r)=>{const o=[];a.on("data",(e=>{if(e.getResult()===s.ECacheResult.OK)o.push(new t.CacheSet.Success);else o.push(new t.CacheSet.Error(new t.UnknownError(e.getMessage())))})),a.on("end",(()=>{e(new t.CacheSetBatch.Success(o))})),a.on("error",(o=>{this.cacheServiceErrorMapper.resolveOrRejectError({err:o,errorResponseFactoryFn:e=>new t.CacheSetBatch.Error(e),resolveFn:e,rejectFn:r})}))}))}async delete(e,r){try{(0,n.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDelete.Error(e)))}return this.logger.trace(`Issuing 'delete' request; key: ${r.toString()}`),await this.sendDelete(e,(0,i.convertToB64String)(r))}async sendDelete(e,r){const o=new s._DeleteRequest;return o.setCacheKey(r),await new Promise(((r,s)=>{this.clientWrapper.delete(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{o?r(new t.CacheDelete.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDelete.Error(e),resolveFn:r,rejectFn:s})}))}))}async increment(e,r,o=1,s){var a;try{(0,n.validateCacheName)(e),void 0!==s&&(0,n.validateTtlSeconds)(s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheIncrement.Error(e)))}this.logger.trace(`Issuing 'increment' request; field: ${r.toString()}, amount : ${o}, ttl: ${null!==(a=s?.toString())&&void 0!==a?a:"null"}`);const u=await this.sendIncrement(e,(0,i.convertToB64String)(r),o,this.ttlOrDefaultMilliseconds(s));return this.logger.trace(`'increment' request result: ${u.toString()}`),u}async sendIncrement(e,r,o=1,n){const a=new s._IncrementRequest;return a.setCacheKey(r),a.setAmount(o),a.setTtlMilliseconds(n),await new Promise(((r,o)=>{this.clientWrapper.increment(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?s.getValue()?r(new t.CacheIncrement.Success(s.getValue())):r(new t.CacheIncrement.Success(0)):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheIncrement.Error(e),resolveFn:r,rejectFn:o})}))}))}async setFetch(e,r){try{(0,n.validateCacheName)(e),(0,n.validateSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetFetch.Error(e)))}return await this.sendSetFetch(e,(0,i.convertToB64String)(r))}async sendSetFetch(e,r){const o=new s._SetFetchRequest;return o.setSetName(r),await new Promise(((r,s)=>{this.clientWrapper.setFetch(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{const n=o?.getFound();if(n&&n.getElementsList()){const e=n.getElementsList();r(new t.CacheSetFetch.Hit(this.convertArrayToUint8(e)))}else o?.getMissing()?r(new t.CacheSetFetch.Miss):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetFetch.Error(e),resolveFn:r,rejectFn:s})}))}))}async setAddElements(e,r,o,s=t.CollectionTtl.fromCacheTtl()){try{(0,n.validateCacheName)(e),(0,n.validateSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetAddElements.Error(e)))}return await this.sendSetAddElements(e,(0,i.convertToB64String)(r),this.convertArrayToB64Strings(o),this.collectionTtlOrDefaultMilliseconds(s),s.refreshTtl())}async sendSetAddElements(e,r,o,n,a){const u=new s._SetUnionRequest;return u.setSetName(r),u.setElementsList(o),u.setTtlMilliseconds(n),u.setRefreshTtl(a),await new Promise(((r,o)=>{this.clientWrapper.setUnion(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},(e=>{e?this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetAddElements.Error(e),resolveFn:r,rejectFn:o}):r(new t.CacheSetAddElements.Success)}))}))}async setContainsElement(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetContainsElement.Error(e)))}return await this.sendSetContainsElement(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o))}async sendSetContainsElement(e,r,o){const n=new s._SetContainsRequest;return n.setSetName(r),n.setElementsList([o]),await new Promise(((r,o)=>{this.clientWrapper.setContains(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{var n;if(s)if(s.hasFound()){const e=s.getFound();(void 0===e?.getContainsList()||0===e?.getContainsList().length)&&r(new t.CacheSetContainsElement.Error(new t.UnknownError("SetContains responded with an empty list"))),r(new t.CacheSetContainsElement.Hit(null!==(n=e?.getContainsList().at(0))&&void 0!==n&&n))}else r(new t.CacheSetContainsElement.Miss);else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetContainsElement.Error(e),resolveFn:r,rejectFn:o})}))}))}async setContainsElements(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetContainsElements.Error(e)))}return await this.sendSetContainsElements(e,(0,i.convertToB64String)(r),this.convertArrayToB64Strings(o),this.convertArrayToUint8(o))}async sendSetContainsElements(e,r,o,n){const a=new s._SetContainsRequest;return a.setSetName(r),a.setElementsList(o),await new Promise(((r,o)=>{this.clientWrapper.setContains(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{var i;if(s)if(s.hasFound()){const e=s.getFound();(void 0===e?.getContainsList()||0===e?.getContainsList().length)&&r(new t.CacheSetContainsElements.Error(new t.UnknownError("SetContains responded with an empty list"))),r(new t.CacheSetContainsElements.Hit(n,null!==(i=e?.getContainsList())&&void 0!==i?i:[]))}else r(new t.CacheSetContainsElements.Miss);else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetContainsElements.Error(e),resolveFn:r,rejectFn:o})}))}))}async setRemoveElements(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetRemoveElements.Error(e)))}return await this.sendSetRemoveElements(e,(0,i.convertToB64String)(r),this.convertArrayToB64Strings(o))}async sendSetRemoveElements(e,r,o){const n=new s._SetDifferenceRequest._Subtrahend,a=new s._SetDifferenceRequest._Subtrahend._Set;a.setElementsList(o),n.setSet(a);const u=new s._SetDifferenceRequest;return u.setSetName(r),u.setSubtrahend(n),await new Promise(((r,o)=>{this.clientWrapper.setDifference(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},(e=>{e?this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetRemoveElements.Error(e),resolveFn:r,rejectFn:o}):r(new t.CacheSetRemoveElements.Success)}))}))}async setSample(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateSetName)(r),(0,n.validateSetSampleLimit)(o)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSetSample.Error(e)))}return await this.sendSetSample(e,(0,i.convertToB64String)(r),o)}async sendSetSample(e,r,o){const n=new s._SetSampleRequest;return n.setSetName(r),n.setLimit(o),await new Promise(((r,o)=>{this.clientWrapper.setSample(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{const n=s?.getFound();if(n&&n.getElementsList()){const e=n.getElementsList();r(new t.CacheSetSample.Hit(this.convertArrayToUint8(e)))}else s?.getMissing()?r(new t.CacheSetSample.Miss):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSetSample.Error(e),resolveFn:r,rejectFn:o})}))}))}async setPop(e,t,r){try{(0,n.validateCacheName)(e),(0,n.validateSetName)(t),(0,n.validateSetPopCount)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new p.CacheSetPop.Error(e)))}return await this.sendSetPop(e,(0,i.convertToB64String)(t),r)}async sendSetPop(e,t,r){const o=new s._SetPopRequest;return o.setSetName(t),o.setCount(r),await new Promise(((t,r)=>{this.clientWrapper.setPop(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{const s=o?.getFound();if(s&&s.getElementsList()){const e=s.getElementsList();t(new p.CacheSetPop.Hit(this.convertArrayToUint8(e)))}else o?.getMissing()?t(new p.CacheSetPop.Miss):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new p.CacheSetPop.Error(e),resolveFn:t,rejectFn:r})}))}))}async setLength(e,t){try{(0,n.validateCacheName)(e),(0,n.validateSetName)(t)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new p.CacheSetLength.Error(e)))}this.logger.trace("Issuing 'setLength' request");const r=await this.sendSetLength(e,(0,i.convertToB64String)(t));return this.logger.trace("'setLength' request result: %s",(0,n.truncateString)(r.toString())),r}async sendSetLength(e,t){const r=new s._SetLengthRequest;return r.setSetName(t),await new Promise(((t,o)=>{this.clientWrapper.setLength(r,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,r)=>{var s;if(r?.getMissing())t(new p.CacheSetLength.Miss);else if(r?.getFound()){const e=null===(s=r.getFound())||void 0===s?void 0:s.getLength();t(e?new p.CacheSetLength.Hit(e):new p.CacheSetLength.Miss)}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new p.CacheSetLength.Error(e),resolveFn:t,rejectFn:o})}))}))}async listConcatenateBack(e,r,o,s,a=t.CollectionTtl.fromCacheTtl()){var u;try{(0,n.validateCacheName)(e),(0,n.validateListName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListConcatenateBack.Error(e)))}this.logger.trace(`Issuing 'listConcatenateBack' request; listName: ${r}, values length: ${o.length}, ${a.toString()}, truncateFrontToSize: ${null!==(u=s?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendListConcatenateBack(e,(0,i.convertToB64String)(r),this.convertArrayToB64Strings(o),this.collectionTtlOrDefaultMilliseconds(a),a.refreshTtl(),s);return this.logger.trace(`'listConcatenateBack' request result: ${c.toString()}`),c}async sendListConcatenateBack(e,r,o,n,a,u){const c=new s._ListConcatenateBackRequest;return c.setListName(r),c.setValuesList(o),c.setTtlMilliseconds(n),c.setRefreshTtl(a),c.setTruncateFrontToSize(u||0),await new Promise(((r,o)=>{this.clientWrapper.listConcatenateBack(c,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheListConcatenateBack.Success(s.getListLength())):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListConcatenateBack.Error(e),resolveFn:r,rejectFn:o})}))}))}async listConcatenateFront(e,r,o,s,a=t.CollectionTtl.fromCacheTtl()){var u;try{(0,n.validateCacheName)(e),(0,n.validateListName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListConcatenateFront.Error(e)))}this.logger.trace(`Issuing 'listConcatenateFront' request; listName: ${r}, values length: ${o.length}, ${a.toString()}, truncateBackToSize: ${null!==(u=s?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendListConcatenateFront(e,(0,i.convertToB64String)(r),this.convertArrayToB64Strings(o),this.collectionTtlOrDefaultMilliseconds(a),a.refreshTtl(),s);return this.logger.trace(`'listConcatenateFront' request result: ${c.toString()}`),c}async sendListConcatenateFront(e,r,o,n,a,u){const c=new s._ListConcatenateFrontRequest;return c.setListName(r),c.setValuesList(o),c.setTtlMilliseconds(n),c.setRefreshTtl(a),c.setTruncateBackToSize(u||0),await new Promise(((r,o)=>{this.clientWrapper.listConcatenateFront(c,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheListConcatenateFront.Success(s.getListLength())):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListConcatenateFront.Error(e),resolveFn:r,rejectFn:o})}))}))}async listFetch(e,r,o,s){try{(0,n.validateCacheName)(e),(0,n.validateListName)(r),(0,n.validateListSliceStartEnd)(o,s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListFetch.Error(e)))}this.logger.trace("Issuing 'listFetch' request; listName: %s, startIndex: %s, endIndex: %s",r,o??"null",s??"null");const a=await this.sendListFetch(e,(0,i.convertToB64String)(r),o,s);return this.logger.trace("'listFetch' request result: %s",a.toString()),a}async sendListFetch(e,r,o,n){const a=new s._ListFetchRequest;return a.setListName(r),o?a.setInclusiveStart(o):a.setUnboundedStart(new c._Unbounded),n?a.setExclusiveEnd(n):a.setUnboundedEnd(new c._Unbounded),await new Promise(((r,o)=>{this.clientWrapper.listFetch(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{if(s?.getMissing())r(new t.CacheListFetch.Miss);else if(s?.getFound()){const e=s?.getFound();if(void 0!==e){const o=e.getValuesList();r(new t.CacheListFetch.Hit(this.convertArrayToUint8(o)))}else r(new t.CacheListFetch.Miss)}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListFetch.Error(e),resolveFn:r,rejectFn:o})}))}))}async listRetain(e,r,o,s,a=t.CollectionTtl.fromCacheTtl()){var u;try{(0,n.validateCacheName)(e),(0,n.validateListName)(r),(0,n.validateListSliceStartEnd)(o,s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListRetain.Error(e)))}this.logger.trace("Issuing 'listRetain' request; listName: %s, startIndex: %s, endIndex: %s, ttl: %s",r,o??"null",s??"null",null!==(u=a.ttlSeconds.toString())&&void 0!==u?u:"null");const c=await this.sendListRetain(e,(0,i.convertToB64String)(r),this.collectionTtlOrDefaultMilliseconds(a),a.refreshTtl(),o,s);return this.logger.trace("'listRetain' request result: %s",c.toString()),c}async sendListRetain(e,r,o,n,a,u){const l=new s._ListRetainRequest;return l.setListName(r),l.setTtlMilliseconds(o),l.setRefreshTtl(n),a?l.setInclusiveStart(a):l.setUnboundedStart(new c._Unbounded),u?l.setExclusiveEnd(u):l.setUnboundedEnd(new c._Unbounded),await new Promise(((r,o)=>{this.clientWrapper.listRetain(l,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheListRetain.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListRetain.Error(e),resolveFn:r,rejectFn:o})}))}))}async listLength(e,r){try{(0,n.validateCacheName)(e),(0,n.validateListName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListLength.Error(e)))}this.logger.trace(`Issuing 'listLength' request; listName: ${r}`);const o=await this.sendListLength(e,(0,i.convertToB64String)(r));return this.logger.trace(`'listLength' request result: ${o.toString()}`),o}async sendListLength(e,r){const o=new s._ListLengthRequest;return o.setListName(r),await new Promise(((r,s)=>{this.clientWrapper.listLength(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{var n;if(o?.getMissing())r(new t.CacheListLength.Miss);else if(o?.getFound()){const e=null===(n=o.getFound())||void 0===n?void 0:n.getLength();r(e?new t.CacheListLength.Hit(e):new t.CacheListLength.Miss)}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListLength.Error(e),resolveFn:r,rejectFn:s})}))}))}async listPopBack(e,r){try{(0,n.validateCacheName)(e),(0,n.validateListName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListPopBack.Error(e)))}this.logger.trace("Issuing 'listPopBack' request");const o=await this.sendListPopBack(e,(0,i.convertToB64String)(r));return this.logger.trace(`'listPopBack' request result: ${o.toString()}`),o}async sendListPopBack(e,r){const o=new s._ListPopBackRequest;return o.setListName(r),await new Promise(((r,s)=>{this.clientWrapper.listPopBack(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{var n;if(o?.getMissing())r(new t.CacheListPopBack.Miss);else if(o?.getFound()){const e=null===(n=o.getFound())||void 0===n?void 0:n.getBack();r(e?new t.CacheListPopBack.Hit(this.convertToUint8Array(e)):new t.CacheListPopBack.Miss)}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListPopBack.Error(e),resolveFn:r,rejectFn:s})}))}))}async listPopFront(e,r){try{(0,n.validateCacheName)(e),(0,n.validateListName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListPopFront.Error(e)))}this.logger.trace("Issuing 'listPopFront' request");const o=await this.sendListPopFront(e,(0,i.convertToB64String)(r));return this.logger.trace(`'listPopFront' request result: ${o.toString()}`),o}async sendListPopFront(e,r){const o=new s._ListPopFrontRequest;return o.setListName(r),await new Promise(((r,s)=>{this.clientWrapper.listPopFront(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{var n;if(o?.getMissing())r(new t.CacheListPopFront.Miss);else if(o?.getFound()){const e=null===(n=o.getFound())||void 0===n?void 0:n.getFront();r(e?new t.CacheListPopFront.Hit(this.convertToUint8Array(e)):new t.CacheListPopFront.Miss)}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListPopFront.Error(e),resolveFn:r,rejectFn:s})}))}))}async listPushBack(e,r,o,s,a=t.CollectionTtl.fromCacheTtl()){var u;try{(0,n.validateCacheName)(e),(0,n.validateListName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListPushBack.Error(e)))}this.logger.trace(`Issuing 'listPushBack' request; listName: ${r}, value length: ${o.length}, ${a.toString()}, truncateFrontToSize: ${null!==(u=s?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendListPushBack(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),this.collectionTtlOrDefaultMilliseconds(a),a.refreshTtl(),s);return this.logger.trace(`'listPushBack' request result: ${c.toString()}`),c}async sendListPushBack(e,r,o,n,a,u){const c=new s._ListPushBackRequest;return c.setListName(r),c.setValue(o),c.setTtlMilliseconds(n),c.setRefreshTtl(a),c.setTruncateFrontToSize(u||0),await new Promise(((r,o)=>{this.clientWrapper.listPushBack(c,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheListPushBack.Success(s.getListLength())):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListPushBack.Error(e),resolveFn:r,rejectFn:o})}))}))}async listPushFront(e,r,o,s,a=t.CollectionTtl.fromCacheTtl()){var u;try{(0,n.validateCacheName)(e),(0,n.validateListName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListPushFront.Error(e)))}this.logger.trace(`Issuing 'listPushFront' request; listName: ${r}, value length: ${o.length}, ${a.toString()}, truncateBackToSize: ${null!==(u=s?.toString())&&void 0!==u?u:"null"}`);const c=await this.sendListPushFront(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),this.collectionTtlOrDefaultMilliseconds(a),a.refreshTtl(),s);return this.logger.trace(`'listPushFront' request result: ${c.toString()}`),c}async sendListPushFront(e,r,o,n,a,u){const c=new s._ListPushFrontRequest;return c.setListName(r),c.setValue(o),c.setTtlMilliseconds(n),c.setRefreshTtl(a),c.setTruncateBackToSize(u||0),await new Promise(((r,o)=>{this.clientWrapper.listPushFront(c,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheListPushFront.Success(s.getListLength())):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListPushFront.Error(e),resolveFn:r,rejectFn:o})}))}))}async listRemoveValue(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateListName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheListRemoveValue.Error(e)))}this.logger.trace(`Issuing 'listRemoveValue' request; listName: ${r}, value length: ${o.length}`);const s=await this.sendListRemoveValue(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o));return this.logger.trace(`'listRemoveValue' request result: ${s.toString()}`),s}async sendListRemoveValue(e,r,o){const n=new s._ListRemoveRequest;return n.setListName(r),n.setAllElementsWithValue(o),await new Promise(((r,o)=>{this.clientWrapper.listRemove(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheListRemoveValue.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheListRemoveValue.Error(e),resolveFn:r,rejectFn:o})}))}))}async dictionarySetField(e,r,o,s,a=t.CollectionTtl.fromCacheTtl()){var u;try{(0,n.validateCacheName)(e),(0,n.validateDictionaryName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDictionarySetField.Error(e)))}this.logger.trace(`Issuing 'dictionarySetField' request; field: ${o.toString()}, value length: ${s.length}, ttl: ${null!==(u=a.ttlSeconds.toString())&&void 0!==u?u:"null"}`);const c=await this.sendDictionarySetField(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),(0,i.convertToB64String)(s),this.collectionTtlOrDefaultMilliseconds(a),a.refreshTtl());return this.logger.trace(`'dictionarySetField' request result: ${c.toString()}`),c}async sendDictionarySetField(e,r,o,n,a,u){const c=new s._DictionarySetRequest;c.setDictionaryName(r);const l=new s._DictionaryFieldValuePair;return l.setField(o),l.setValue(n),c.setItemsList([l]),c.setTtlMilliseconds(a),c.setRefreshTtl(u),await new Promise(((r,o)=>{this.clientWrapper.dictionarySet(c,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheDictionarySetField.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDictionarySetField.Error(e),resolveFn:r,rejectFn:o})}))}))}async dictionarySetFields(e,r,o,s=t.CollectionTtl.fromCacheTtl()){var a;try{(0,n.validateCacheName)(e),(0,n.validateDictionaryName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDictionarySetFields.Error(e)))}this.logger.trace(`Issuing 'dictionarySetFields' request; elements: ${o.toString()}, ttl: ${null!==(a=s.ttlSeconds.toString())&&void 0!==a?a:"null"}`);const u=this.convertElements(o),c=await this.sendDictionarySetFields(e,(0,i.convertToB64String)(r),u,this.collectionTtlOrDefaultMilliseconds(s),s.refreshTtl());return this.logger.trace(`'dictionarySetFields' request result: ${c.toString()}`),c}async sendDictionarySetFields(e,r,o,n,a){const u=new s._DictionarySetRequest;return u.setDictionaryName(r),u.setItemsList(o),u.setTtlMilliseconds(n),u.setRefreshTtl(a),await new Promise(((r,o)=>{this.clientWrapper.dictionarySet(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheDictionarySetFields.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDictionarySetFields.Error(e),resolveFn:r,rejectFn:o})}))}))}async dictionaryGetField(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateDictionaryName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDictionaryGetField.Error(e,this.convertToUint8Array(o))))}this.logger.trace(`Issuing 'dictionaryGetField' request; field: ${o.toString()}`);const s=await this.sendDictionaryGetField(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o));return this.logger.trace(`'dictionaryGetField' request result: ${s.toString()}`),s}async sendDictionaryGetField(e,r,o){const n=new s._DictionaryGetRequest;return n.setDictionaryName(r),n.setFieldsList([o]),await new Promise(((r,a)=>{this.clientWrapper.dictionaryGet(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{if(n?.getMissing())r(new t.CacheDictionaryGetField.Miss(this.convertToUint8Array(o)));else if(n?.getFound()){const e=n.getFound();e&&0===e.getItemsList().length?r(new t.CacheDictionaryGetField.Error(new t.UnknownError("_DictionaryGetResponseResponse contained no data but was found"),this.convertToUint8Array(o))):e&&e.getItemsList()[0].getResult()===s.ECacheResult.MISS?r(new t.CacheDictionaryGetField.Miss(this.convertToUint8Array(o))):e&&r(new t.CacheDictionaryGetField.Hit(e.getItemsList()[0].getCacheBody_asU8(),this.convertToUint8Array(o)))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDictionaryGetField.Error(e,this.convertToUint8Array(o)),resolveFn:r,rejectFn:a})}))}))}async dictionaryGetFields(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateDictionaryName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDictionaryGetFields.Error(e)))}this.logger.trace(`Issuing 'dictionaryGetFields' request; fields: ${o.toString()}`);const s=await this.sendDictionaryGetFields(e,(0,i.convertToB64String)(r),o);return this.logger.trace(`'dictionaryGetFields' request result: ${s.toString()}`),s}async sendDictionaryGetFields(e,r,n){const a=new s._DictionaryGetRequest;return a.setDictionaryName(r),a.setFieldsList(this.convertArrayToB64Strings(n)),await new Promise(((r,s)=>{this.clientWrapper.dictionaryGet(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,i)=>{const a=i?.getFound();if(a){const e=a.getItemsList().map((e=>{const t=this.convertECacheResult(e.getResult());return new o._DictionaryGetResponsePart(t,e.getCacheBody_asU8())}));r(new t.CacheDictionaryGetFields.Hit(e,this.convertArrayToUint8(n)))}else i?.getMissing()?r(new t.CacheDictionaryGetFields.Miss):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDictionaryGetFields.Error(e),resolveFn:r,rejectFn:s})}))}))}async dictionaryFetch(e,r){try{(0,n.validateCacheName)(e),(0,n.validateDictionaryName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDictionaryFetch.Error(e)))}this.logger.trace(`Issuing 'dictionaryFetch' request; dictionaryName: ${r}`);const o=await this.sendDictionaryFetch(e,(0,i.convertToB64String)(r));return this.logger.trace(`'dictionaryFetch' request result: ${o.toString()}`),o}async sendDictionaryFetch(e,r){const n=new s._DictionaryFetchRequest;return n.setDictionaryName(r),await new Promise(((r,s)=>{this.clientWrapper.dictionaryFetch(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{const i=n?.getFound();if(i&&i.getItemsList()){const e=[];i.getItemsList().forEach((t=>{const r=new o._DictionaryFieldValuePair({field:t.getField_asU8(),value:t.getValue_asU8()});e.push(r)})),r(new t.CacheDictionaryFetch.Hit(e))}else n?.getMissing()?r(new t.CacheDictionaryFetch.Miss):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDictionaryFetch.Error(e),resolveFn:r,rejectFn:s})}))}))}async dictionaryIncrement(e,r,o,s=1,a=t.CollectionTtl.fromCacheTtl()){var u;try{(0,n.validateCacheName)(e),(0,n.validateDictionaryName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDictionaryIncrement.Error(e)))}this.logger.trace(`Issuing 'dictionaryIncrement' request; field: ${o.toString()}, amount : ${s}, ttl: ${null!==(u=a.ttlSeconds.toString())&&void 0!==u?u:"null"}`);const c=await this.sendDictionaryIncrement(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),s,this.collectionTtlOrDefaultMilliseconds(a),a.refreshTtl());return this.logger.trace(`'dictionaryIncrement' request result: ${c.toString()}`),c}async sendDictionaryIncrement(e,r,o,n,a,u){const c=new s._DictionaryIncrementRequest;return c.setDictionaryName(r),c.setField(o),c.setAmount(n),c.setTtlMilliseconds(a),c.setRefreshTtl(u),await new Promise(((r,o)=>{this.clientWrapper.dictionaryIncrement(c,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?s.getValue()?r(new t.CacheDictionaryIncrement.Success(s.getValue())):r(new t.CacheDictionaryIncrement.Success(0)):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDictionaryIncrement.Error(e),resolveFn:r,rejectFn:o})}))}))}async dictionaryRemoveField(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateDictionaryName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDictionaryRemoveField.Error(e)))}this.logger.trace(`Issuing 'dictionaryRemoveField' request; field: ${o.toString()}`);const s=await this.sendDictionaryRemoveField(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o));return this.logger.trace(`'dictionaryRemoveField' request result: ${s.toString()}`),s}async sendDictionaryRemoveField(e,r,o){const n=new s._DictionaryDeleteRequest;return n.setDictionaryName(r),n.setSome((new s._DictionaryDeleteRequest.Some).addFields(o)),await new Promise(((r,o)=>{this.clientWrapper.dictionaryDelete(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheDictionaryRemoveField.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDictionaryRemoveField.Error(e),resolveFn:r,rejectFn:o})}))}))}async dictionaryRemoveFields(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateDictionaryName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDictionaryRemoveFields.Error(e)))}this.logger.trace(`Issuing 'dictionaryRemoveFields' request; fields: ${o.toString()}`);const s=await this.sendDictionaryRemoveFields(e,(0,i.convertToB64String)(r),this.convertArrayToB64Strings(o));return this.logger.trace(`'dictionaryRemoveFields' request result: ${s.toString()}`),s}async sendDictionaryRemoveFields(e,r,o){const n=new s._DictionaryDeleteRequest;return n.setDictionaryName(r),n.setSome((new s._DictionaryDeleteRequest.Some).setFieldsList(o)),await new Promise(((r,o)=>{this.clientWrapper.dictionaryDelete(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheDictionaryRemoveFields.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDictionaryRemoveFields.Error(e),resolveFn:r,rejectFn:o})}))}))}async dictionaryLength(e,r){try{(0,n.validateCacheName)(e),(0,n.validateDictionaryName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDictionaryLength.Error(e)))}this.logger.trace(`Issuing 'dictionaryLength' request; dictionaryName: ${r}`);const o=await this.sendDictionaryLength(e,(0,i.convertToB64String)(r));return this.logger.trace(`'dictionaryLength' request result: ${o.toString()}`),o}async sendDictionaryLength(e,r){const o=new s._DictionaryLengthRequest;return o.setDictionaryName(r),await new Promise(((r,s)=>{this.clientWrapper.dictionaryLength(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{var n;if(o?.getMissing())r(new t.CacheDictionaryLength.Miss);else if(o?.getFound()){const e=null===(n=o.getFound())||void 0===n?void 0:n.getLength();r(e?new t.CacheDictionaryLength.Hit(e):new t.CacheDictionaryLength.Miss)}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDictionaryLength.Error(e),resolveFn:r,rejectFn:s})}))}))}async sortedSetFetchByRank(e,r,o,s,a){var u,c;try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r),(0,n.validateSortedSetRanks)(s,a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetFetch.Error(e)))}this.logger.trace("Issuing 'sortedSetFetchByRank' request; startRank: %s, endRank : %s, order: %s",null!==(u=s.toString())&&void 0!==u?u:"null",null!==(c=a?.toString())&&void 0!==c?c:"null",o.toString());const l=await this.sendSortedSetFetchByRank(e,(0,i.convertToB64String)(r),o,s,a);return this.logger.trace("'sortedSetFetchByRank' request result: %s",l.toString()),l}async sendSortedSetFetchByRank(e,r,n,a,u){const l=new s._SortedSetFetchRequest._ByIndex;a?l.setInclusiveStartIndex(a):l.setUnboundedStart(new c._Unbounded),u?l.setExclusiveEndIndex(u):l.setUnboundedEnd(new c._Unbounded);const p=n===t.SortedSetOrder.Descending?s._SortedSetFetchRequest.Order.DESCENDING:s._SortedSetFetchRequest.Order.ASCENDING,d=new s._SortedSetFetchRequest;return d.setSetName(r),d.setOrder(p),d.setWithScores(!0),d.setByIndex(l),await new Promise(((r,s)=>{this.clientWrapper.sortedSetFetch(d,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{var i,a;if(n&&n.getFound()){const e=null===(a=null===(i=n.getFound())||void 0===i?void 0:i.getValuesWithScores())||void 0===a?void 0:a.getElementsList();if(e){const s=e.map((e=>new o._SortedSetElement(this.convertToUint8Array(e.getValue()),e.getScore())));r(new t.CacheSortedSetFetch.Hit(s))}else r(new t.CacheSortedSetFetch.Error(new t.UnknownError("Unknown sorted set fetch hit response type")))}else n?.getMissing()?r(new t.CacheSortedSetFetch.Miss):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetFetch.Error(e),resolveFn:r,rejectFn:s})}))}))}async sortedSetFetchByScore(e,r,o,s,a,u,c){var l,p,d,g;try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r),(0,n.validateSortedSetScores)(s,a),void 0!==u&&(0,n.validateSortedSetOffset)(u),void 0!==c&&(0,n.validateSortedSetCount)(c)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetFetch.Error(e)))}this.logger.trace("Issuing 'sortedSetFetchByScore' request; minScore: %s, maxScore : %s, order: %s, offset: %s, count: %s",null!==(l=s?.toString())&&void 0!==l?l:"null",null!==(p=a?.toString())&&void 0!==p?p:"null",o.toString(),null!==(d=u?.toString())&&void 0!==d?d:"null",null!==(g=c?.toString())&&void 0!==g?g:"null");const h=await this.sendSortedSetFetchByScore(e,(0,i.convertToB64String)(r),o,s,a,u,c);return this.logger.trace("'sortedSetFetchByScore' request result: %s",h.toString()),h}async sendSortedSetFetchByScore(e,r,n,a,u,l,p){const d=new s._SortedSetFetchRequest._ByScore;void 0!==a?d.setMinScore((new s._SortedSetFetchRequest._ByScore._Score).setScore(a).setExclusive(!1)):d.setUnboundedMin(new c._Unbounded),void 0!==u?d.setMaxScore((new s._SortedSetFetchRequest._ByScore._Score).setScore(u).setExclusive(!1)):d.setUnboundedMax(new c._Unbounded),d.setOffset(l??0),d.setCount(p??-1);const g=n===t.SortedSetOrder.Descending?s._SortedSetFetchRequest.Order.DESCENDING:s._SortedSetFetchRequest.Order.ASCENDING,h=new s._SortedSetFetchRequest;return h.setSetName(r),h.setOrder(g),h.setWithScores(!0),h.setByScore(d),await new Promise(((r,s)=>{this.clientWrapper.sortedSetFetch(h,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{var i,a,u;if(n)if(null!==(i=n?.getFound())&&void 0!==i&&i.getValuesWithScores()){const e=null===(u=null===(a=n.getFound())||void 0===a?void 0:a.getValuesWithScores())||void 0===u?void 0:u.getElementsList();if(e){const s=e.map((e=>new o._SortedSetElement(this.convertToUint8Array(e.getValue()),e.getScore())));r(new t.CacheSortedSetFetch.Hit(s))}else r(new t.CacheSortedSetFetch.Error(new t.UnknownError("Unknown sorted set fetch hit response type")))}else n?.getMissing()?r(new t.CacheSortedSetFetch.Miss):r(new t.CacheSortedSetFetch.Error(new t.UnknownError("Unknown sorted set fetch response type")));else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetFetch.Error(e),resolveFn:r,rejectFn:s})}))}))}async sortedSetPutElement(e,r,o,s,a=t.CollectionTtl.fromCacheTtl()){var u;try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetPutElement.Error(e)))}this.logger.trace("Issuing 'sortedSetPutElement' request; value: %s, score : %s, ttl: %s",(0,n.truncateString)(o.toString()),s,null!==(u=a.ttlSeconds.toString())&&void 0!==u?u:"null");const c=await this.sendSortedSetPutElement(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),s,this.collectionTtlOrDefaultMilliseconds(a),a.refreshTtl());return this.logger.trace("'sortedSetPutElement' request result: %s",c.toString()),c}async sendSortedSetPutElement(e,r,o,n,a,u){const c=new s._SortedSetPutRequest,l=new s._SortedSetElement;return l.setValue(o),l.setScore(n),c.setSetName(r),c.setElementsList([l]),c.setTtlMilliseconds(a),c.setRefreshTtl(u),await new Promise(((r,o)=>{this.clientWrapper.sortedSetPut(c,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheSortedSetPutElement.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetPutElement.Error(e),resolveFn:r,rejectFn:o})}))}))}async sortedSetPutElements(e,r,o,s=t.CollectionTtl.fromCacheTtl()){var a;try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetPutElements.Error(e)))}this.logger.trace("Issuing 'sortedSetPutElements' request; elements: %s, ttl: %s",o.toString(),null!==(a=s.ttlSeconds.toString())&&void 0!==a?a:"null");const u=this.convertSortedSetMapOrRecord(o),c=await this.sendSortedSetPutElements(e,(0,i.convertToB64String)(r),u,this.collectionTtlOrDefaultMilliseconds(s),s.refreshTtl());return this.logger.trace("'sortedSetPutElements' request result: %s",c.toString()),c}async sendSortedSetPutElements(e,r,o,n,a){const u=new s._SortedSetPutRequest;return u.setSetName(r),u.setElementsList(o),u.setTtlMilliseconds(n),u.setRefreshTtl(a),await new Promise(((r,o)=>{this.clientWrapper.sortedSetPut(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?r(new t.CacheSortedSetPutElements.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetPutElements.Error(e),resolveFn:r,rejectFn:o})}))}))}async sortedSetGetScore(e,r,o){const s=await this.sortedSetGetScores(e,r,[o]);return s instanceof t.CacheSortedSetGetScores.Hit?s.responses()[0]:s instanceof t.CacheSortedSetGetScores.Miss?new t.CacheSortedSetGetScore.Miss(this.convertToUint8Array(o)):s instanceof t.CacheSortedSetGetScores.Error?this.cacheServiceErrorMapper.returnOrThrowError(s.innerException(),(e=>new t.CacheSortedSetGetScore.Error(e,this.convertToUint8Array(o)))):this.cacheServiceErrorMapper.returnOrThrowError(new t.UnknownError("Unknown response type"),(e=>new t.CacheSortedSetGetScore.Error(e,this.convertToUint8Array(o))))}async sortedSetGetScores(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetGetScores.Error(e)))}this.logger.trace("Issuing 'sortedSetGetScores' request; values: %s",(0,n.truncateString)(o.toString()));const s=await this.sendSortedSetGetScores(e,(0,i.convertToB64String)(r),o.map((e=>(0,i.convertToB64String)(e))));return this.logger.trace("'sortedSetGetScores' request result: %s",(0,n.truncateString)(s.toString())),s}async sendSortedSetGetScores(e,r,n){const a=new s._SortedSetGetScoreRequest;return a.setSetName(r),a.setValuesList(n),await new Promise(((r,s)=>{this.clientWrapper.sortedSetGetScore(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,i)=>{var a;if(i?.getMissing())r(new t.CacheSortedSetGetScores.Miss);else if(i?.getFound()){const e=null===(a=i.getFound())||void 0===a?void 0:a.getElementsList().map((e=>{const t=this.convertECacheResult(e.getResult());return new o._SortedSetGetScoreResponsePart(t,e.getScore())}));r(e?new t.CacheSortedSetGetScores.Hit(e,this.convertArrayToUint8(n.map((e=>atob(e))))):new t.CacheSortedSetGetScores.Error(new t.UnknownError("Unknown sorted set fetch hit response type")))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetGetScores.Error(e),resolveFn:r,rejectFn:s})}))}))}async sortedSetGetRank(e,r,o,s){try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetGetRank.Error(e)))}this.logger.trace("Issuing 'sortedSetGetRank' request; value: %s",(0,n.truncateString)(o.toString()));const a=await this.sendSortedSetGetRank(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),s);return this.logger.trace("'sortedSetGetRank' request result: %s",(0,n.truncateString)(a.toString())),a}async sendSortedSetGetRank(e,r,o,n){const a=n===t.SortedSetOrder.Descending?s._SortedSetGetRankRequest.Order.DESCENDING:s._SortedSetGetRankRequest.Order.ASCENDING,u=new s._SortedSetGetRankRequest;return u.setSetName(r),u.setValue(o),u.setOrder(a),await new Promise(((r,o)=>{this.clientWrapper.sortedSetGetRank(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,n)=>{var i,a,u;if(n?.getMissing()||(null===(i=n?.getElementRank())||void 0===i?void 0:i.getResult())===s.ECacheResult.MISS)r(new t.CacheSortedSetGetRank.Miss);else if((null===(a=n?.getElementRank())||void 0===a?void 0:a.getResult())===s.ECacheResult.HIT){const e=null===(u=n?.getElementRank())||void 0===u?void 0:u.getRank();r(void 0!==e?new t.CacheSortedSetGetRank.Hit(e):new t.CacheSortedSetGetRank.Miss)}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetGetRank.Error(e),resolveFn:r,rejectFn:o})}))}))}async sortedSetIncrementScore(e,r,o,s=1,a=t.CollectionTtl.fromCacheTtl()){try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetIncrementScore.Error(e)))}this.logger.trace("Issuing 'sortedSetIncrementScore' request; value: %s",(0,n.truncateString)(o.toString()));const u=await this.sendSortedSetIncrementScore(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o),s,this.collectionTtlOrDefaultMilliseconds(a),a.refreshTtl());return this.logger.trace("'sortedSetIncrementScore' request result: %s",(0,n.truncateString)(u.toString())),u}async sendSortedSetIncrementScore(e,r,o,n,a,u){const c=new s._SortedSetIncrementRequest;return c.setSetName(r),c.setValue(o),c.setAmount(n),c.setTtlMilliseconds(a),c.setRefreshTtl(u),await new Promise(((r,o)=>{this.clientWrapper.sortedSetIncrement(c,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?s.getScore()?r(new t.CacheSortedSetIncrementScore.Success(s.getScore())):r(new t.CacheSortedSetIncrementScore.Success(0)):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetIncrementScore.Error(e),resolveFn:r,rejectFn:o})}))}))}async sortedSetRemoveElement(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetRemoveElement.Error(e)))}this.logger.trace("Issuing 'sortedSetRemoveElement' request");const s=await this.sendSortedSetRemoveElement(e,(0,i.convertToB64String)(r),(0,i.convertToB64String)(o));return this.logger.trace("'sortedSetRemoveElement' request result: %s",(0,n.truncateString)(s.toString())),s}async sendSortedSetRemoveElement(e,r,o){const n=new s._SortedSetRemoveRequest;return n.setSetName(r),n.setSome((new s._SortedSetRemoveRequest._Some).setValuesList([o])),await new Promise(((r,o)=>{this.clientWrapper.sortedSetRemove(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},(e=>{e?this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetRemoveElement.Error(e),resolveFn:r,rejectFn:o}):r(new t.CacheSortedSetRemoveElement.Success)}))}))}async sortedSetRemoveElements(e,r,o){try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetRemoveElements.Error(e)))}this.logger.trace("Issuing 'sortedSetRemoveElements' request");const s=await this.sendSortedSetRemoveElements(e,(0,i.convertToB64String)(r),this.convertArrayToB64Strings(o));return this.logger.trace("'sortedSetRemoveElements' request result: %s",(0,n.truncateString)(s.toString())),s}async sendSortedSetRemoveElements(e,r,o){const n=new s._SortedSetRemoveRequest;return n.setSetName(r),n.setSome((new s._SortedSetRemoveRequest._Some).setValuesList(o)),await new Promise(((r,o)=>{this.clientWrapper.sortedSetRemove(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},(e=>{e?this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetRemoveElements.Error(e),resolveFn:r,rejectFn:o}):r(new t.CacheSortedSetRemoveElements.Success)}))}))}async sortedSetLength(e,r){try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetLength.Error(e)))}this.logger.trace("Issuing 'sortedSetLength' request");const o=await this.sendSortedSetLength(e,(0,i.convertToB64String)(r));return this.logger.trace("'sortedSetLength' request result: %s",(0,n.truncateString)(o.toString())),o}async sendSortedSetLength(e,r){const o=new s._SortedSetLengthRequest;return o.setSetName(r),await new Promise(((r,s)=>{this.clientWrapper.sortedSetLength(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{var n;if(o?.getMissing())r(new t.CacheSortedSetLength.Miss);else if(o?.getFound()){const e=null===(n=o.getFound())||void 0===n?void 0:n.getLength();r(e?new t.CacheSortedSetLength.Hit(e):new t.CacheSortedSetLength.Miss)}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetLength.Error(e),resolveFn:r,rejectFn:s})}))}))}async sortedSetLengthByScore(e,r,o,s){var a,u;try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r),(0,n.validateSortedSetScores)(o,s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheSortedSetLengthByScore.Error(e)))}this.logger.trace("Issuing 'sortedSetLengthByScore' request; minScore: %s, maxScore: %s",null!==(a=o?.toString())&&void 0!==a?a:"null",null!==(u=s?.toString())&&void 0!==u?u:"null");const c=await this.sendSortedSetLengthByScore(e,(0,i.convertToB64String)(r),o,s);return this.logger.trace("'sortedSetLengthByScore' request result: %s",(0,n.truncateString)(c.toString())),c}async sendSortedSetLengthByScore(e,r,o,n){const a=new s._SortedSetLengthByScoreRequest;return a.setSetName(r),void 0===o?a.setUnboundedMin(new c._Unbounded):a.setInclusiveMin(o),void 0===n?a.setUnboundedMax(new c._Unbounded):a.setInclusiveMax(n),await new Promise(((r,o)=>{this.clientWrapper.sortedSetLengthByScore(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{var n;if(s?.getMissing())r(new t.CacheSortedSetLengthByScore.Miss);else if(s?.getFound()){const e=null===(n=s.getFound())||void 0===n?void 0:n.getLength();r(e?new t.CacheSortedSetLengthByScore.Hit(e):new t.CacheSortedSetLengthByScore.Miss)}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheSortedSetLengthByScore.Error(e),resolveFn:r,rejectFn:o})}))}))}async sortedSetUnionStore(e,r,o,s,a=t.CollectionTtl.fromCacheTtl()){var u,c;try{(0,n.validateCacheName)(e),(0,n.validateSortedSetName)(r),(0,n.validateSortedSetSources)(o)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new p.CacheSortedSetUnionStore.Error(e)))}this.logger.trace("Issuing 'sortedSetUnionStore' request; sources: %s, aggregate: %s:, ttl: %s",o.toString(),null!==(u=s?.toString())&&void 0!==u?u:"null",null!==(c=a?.toString())&&void 0!==c?c:"null");const l=await this.sendSortedSetUnionStore(e,(0,i.convertToB64String)(r),o,a,s);return this.logger.trace(`'sortedSetUnionStore' request result: ${l.toString()}`),l}async sendSortedSetUnionStore(e,r,o,n,a){const u=this.convertAggregateResult(a),c=[];for(const e of o)c.push(this.convertSortedSetSource(e));void 0===n&&(n=new t.CollectionTtl);const l=new s._SortedSetUnionStoreRequest;return l.setSetName(r),l.setSourcesList(c),l.setAggregate(u),l.setTtlMilliseconds(this.collectionTtlOrDefaultMilliseconds(n)),await new Promise(((t,r)=>{this.clientWrapper.sortedSetUnionStore(l,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{o?t(new p.CacheSortedSetUnionStore.Success(o.getLength())):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new p.CacheSortedSetUnionStore.Error(e),resolveFn:t,rejectFn:r})}))}))}async itemGetType(e,r){try{(0,n.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheItemGetType.Error(e)))}return await this.sendItemGetType(e,(0,i.convertToB64String)(r))}async sendItemGetType(e,r){const o=new s._ItemGetTypeRequest;return o.setCacheKey(r),await new Promise(((r,s)=>{this.clientWrapper.itemGetType(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{const n=o.getFound();if(n){const e=n.getItemType();r(new t.CacheItemGetType.Hit(this.convertItemTypeResult(e)))}else o?.getMissing()?r(new t.CacheItemGetType.Miss):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheItemGetType.Error(e),resolveFn:r,rejectFn:s})}))}))}async itemGetTtl(e,r){try{(0,n.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheItemGetTtl.Error(e)))}return await this.sendItemGetTtl(e,(0,i.convertToB64String)(r))}async sendItemGetTtl(e,r){const o=new s._ItemGetTtlRequest;return o.setCacheKey(r),await new Promise(((r,s)=>{this.clientWrapper.itemGetTtl(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{const n=o.getFound();n?r(new t.CacheItemGetTtl.Hit(n.getRemainingTtlMillis())):o?.getMissing()?r(new t.CacheItemGetTtl.Miss):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheItemGetTtl.Error(e),resolveFn:r,rejectFn:s})}))}))}async keyExists(e,r){try{(0,n.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheKeyExists.Error(e)))}this.logger.trace("Issuing 'keyExists' request");const o=await this.sendKeyExists(e,(0,i.convertToB64String)(r));return this.logger.trace("'keyExists' request result: %s",(0,n.truncateString)(o.toString())),o}async sendKeyExists(e,r){const o=new s._KeysExistRequest;return o.setCacheKeysList([r]),await new Promise(((r,s)=>{this.clientWrapper.keysExist(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{o?r(new t.CacheKeyExists.Success(o.getExistsList())):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheKeyExists.Error(e),resolveFn:r,rejectFn:s})}))}))}async keysExist(e,r){try{(0,n.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheKeysExist.Error(e)))}this.logger.trace("Issuing 'keysExist' request");const o=await this.sendKeysExist(e,r);return this.logger.trace("'keysExist' request result: %s",(0,n.truncateString)(o.toString())),o}async sendKeysExist(e,r){const o=new s._KeysExistRequest;return o.setCacheKeysList(this.convertArrayToB64Strings(r)),await new Promise(((s,n)=>{this.clientWrapper.keysExist(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,o)=>{o?s(new t.CacheKeysExist.Success(this.convertArrayToUint8(r),o.getExistsList())):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheKeysExist.Error(e),resolveFn:s,rejectFn:n})}))}))}async updateTtl(e,r,o){var s;try{(0,n.validateCacheName)(e),(0,n.validateValidForSeconds)(o)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheUpdateTtl.Error(e)))}this.logger.trace("Issuing 'updateTtl' request; ttlMilliseconds: %s",null!==(s=o?.toString())&&void 0!==s?s:"null");const a=await this.sendUpdateTtl(e,(0,i.convertToB64String)(r),o);return this.logger.trace("'updateTtl' request result: %s",(0,n.truncateString)(a.toString())),a}async sendUpdateTtl(e,r,o){const n=new s._UpdateTtlRequest;return n.setCacheKey(r),n.setOverwriteToMilliseconds(o),await new Promise(((r,o)=>{this.clientWrapper.updateTtl(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?.getMissing()?r(new t.CacheUpdateTtl.Miss):s?.getSet()?r(new t.CacheUpdateTtl.Set):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheUpdateTtl.Error(e),resolveFn:r,rejectFn:o})}))}))}async increaseTtl(e,r,o){var s;try{(0,n.validateCacheName)(e),(0,n.validateValidForSeconds)(o)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheIncreaseTtl.Error(e)))}this.logger.trace("Issuing 'increaseTtl' request; ttlMilliseconds: %s",null!==(s=o?.toString())&&void 0!==s?s:"null");const a=await this.sendIncreaseTtl(e,(0,i.convertToB64String)(r),o);return this.logger.trace("'increaseTtl' request result: %s",(0,n.truncateString)(a.toString())),a}async sendIncreaseTtl(e,r,o){const n=new s._UpdateTtlRequest;return n.setCacheKey(r),n.setIncreaseToMilliseconds(o),await new Promise(((r,o)=>{this.clientWrapper.updateTtl(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?.getMissing()?r(new t.CacheIncreaseTtl.Miss):s?.getNotSet()?r(new t.CacheIncreaseTtl.NotSet):s?.getSet()?r(new t.CacheIncreaseTtl.Set):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheIncreaseTtl.Error(e),resolveFn:r,rejectFn:o})}))}))}async decreaseTtl(e,r,o){var s;try{(0,n.validateCacheName)(e),(0,n.validateValidForSeconds)(o)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.CacheDecreaseTtl.Error(e)))}this.logger.trace("Issuing 'decreaseTtl' request; ttlMilliseconds: %s",null!==(s=o?.toString())&&void 0!==s?s:"null");const a=await this.sendDecreaseTtl(e,(0,i.convertToB64String)(r),o);return this.logger.trace("'decreaseTtl' request result: %s",(0,n.truncateString)(a.toString())),a}async sendDecreaseTtl(e,r,o){const n=new s._UpdateTtlRequest;return n.setCacheKey(r),n.setDecreaseToMilliseconds(o),await new Promise(((r,o)=>{this.clientWrapper.updateTtl(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,i.createCallMetadata)(e,this.deadlineMillis)},((e,s)=>{s?.getMissing()?r(new t.CacheDecreaseTtl.Miss):s?.getNotSet()?r(new t.CacheDecreaseTtl.NotSet):s?.getSet()?r(new t.CacheDecreaseTtl.Set):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new t.CacheDecreaseTtl.Error(e),resolveFn:r,rejectFn:o})}))}))}convertArrayToB64Strings(e){return e.map((e=>(0,i.convertToB64String)(e)))}convertToUint8Array(e){return"string"==typeof e?this.textEncoder.encode(e):e}convertArrayToUint8(e){return e.map((e=>this.convertToUint8Array(e)))}convertElements(e){return e instanceof Array?this.convertElements(new Map(e)):e instanceof Map?[...e.entries()].map((e=>(new s._DictionaryFieldValuePair).setField((0,i.convertToB64String)(e[0])).setValue((0,i.convertToB64String)(e[1])))):Object.entries(e).map((e=>(new s._DictionaryFieldValuePair).setField((0,i.convertToB64String)(e[0])).setValue((0,i.convertToB64String)(e[1]))))}convertSortedSetMapOrRecord(e){return e instanceof Array?this.convertSortedSetMapOrRecord(new Map(e)):e instanceof Map?[...e.entries()].map((e=>(new s._SortedSetElement).setValue((0,i.convertToB64String)(e[0])).setScore(e[1]))):Object.entries(e).map((e=>(new s._SortedSetElement).setValue((0,i.convertToB64String)(e[0])).setScore(e[1])))}convertSetBatchElements(e,t){return e instanceof Array?e.map((e=>{var r;return[(0,i.convertToB64String)(e.key),(0,i.convertToB64String)(e.value),null!==(r=e.ttl)&&void 0!==r?r:t]})):e instanceof Map?[...e.entries()].map((e=>[(0,i.convertToB64String)(e[0]),(0,i.convertToB64String)(e[1]),t])):Object.entries(e).map((e=>[(0,i.convertToB64String)(e[0]),(0,i.convertToB64String)(e[1]),t]))}convertECacheResult(e){switch(e){case s.ECacheResult.HIT:return o._ECacheResult.Hit;case s.ECacheResult.INVALID:return o._ECacheResult.Invalid;case s.ECacheResult.MISS:return o._ECacheResult.Miss;case s.ECacheResult.OK:return o._ECacheResult.Ok}}convertItemTypeResult(e){switch(e){case s._ItemGetTypeResponse.ItemType.SCALAR:return t.ItemType.SCALAR;case s._ItemGetTypeResponse.ItemType.LIST:return t.ItemType.LIST;case s._ItemGetTypeResponse.ItemType.DICTIONARY:return t.ItemType.DICTIONARY;case s._ItemGetTypeResponse.ItemType.SET:return t.ItemType.SET;case s._ItemGetTypeResponse.ItemType.SORTED_SET:return t.ItemType.SORTED_SET}}convertAggregateResult(e){switch(e){case l.SortedSetAggregate.MAX:return s._SortedSetUnionStoreRequest.AggregateFunction.MAX;case l.SortedSetAggregate.MIN:return s._SortedSetUnionStoreRequest.AggregateFunction.MIN;case l.SortedSetAggregate.SUM:default:return s._SortedSetUnionStoreRequest.AggregateFunction.SUM}}convertSortedSetSource(e){const t=new s._SortedSetUnionStoreRequest._Source;return t.setSetName((0,i.convertToB64String)(e.sortedSetName)),t.setWeight(e.weight),t}},cacheDataClient}var pingClient={},hasRequiredPingClient;function requirePingClient(){if(hasRequiredPingClient)return pingClient;hasRequiredPingClient=1,Object.defineProperty(pingClient,"__esModule",{value:!0}),pingClient.PingClient=void 0;const e=requireDist(),t=requireCacheping_pb(),r=requireClientMetadataProvider();return pingClient.PingClient=class{constructor(t){this.logger=t.configuration.getLoggerFactory().getLogger(this),this.clientMetadataProvider=new r.ClientMetadataProvider({clientType:"ping"}),this.clientWrapper=new e.ping.PingClient(t.endpoint,null,{})}async ping(){this.logger.debug("pinging...");const e=new t._PingRequest;await this.clientWrapper.ping(e,this.clientMetadataProvider.createClientMetadata())}},pingClient}var clients={},cache={},AbstractCacheClient={},momentoCache={},hasRequiredMomentoCache,hasRequiredAbstractCacheClient;function requireMomentoCache(){if(hasRequiredMomentoCache)return momentoCache;hasRequiredMomentoCache=1,Object.defineProperty(momentoCache,"__esModule",{value:!0}),momentoCache.MomentoCache=void 0;return momentoCache.MomentoCache=class{constructor(e,t){this.cacheClient=e,this.cacheName=t}get(e){return this.cacheClient.get(this.cacheName,e)}getWithHash(e){return this.cacheClient.getWithHash(this.cacheName,e)}set(e,t,r){return this.cacheClient.set(this.cacheName,e,t,r)}setWithHash(e,t,r){return this.cacheClient.setWithHash(this.cacheName,e,t,r)}delete(e){return this.cacheClient.delete(this.cacheName,e)}increment(e,t,r){return this.cacheClient.increment(this.cacheName,e,t,r)}setIfNotExists(e,t,r){return this.cacheClient.setIfNotExists(this.cacheName,e,t,r)}setIfAbsent(e,t,r){return this.cacheClient.setIfAbsent(this.cacheName,e,t,r)}setIfPresent(e,t,r){return this.cacheClient.setIfPresent(this.cacheName,e,t,r)}setIfEqual(e,t,r,o){return this.cacheClient.setIfEqual(this.cacheName,e,t,r,o)}setIfNotEqual(e,t,r,o){return this.cacheClient.setIfNotEqual(this.cacheName,e,t,r,o)}setIfPresentAndNotEqual(e,t,r,o){return this.cacheClient.setIfPresentAndNotEqual(this.cacheName,e,t,r,o)}setIfAbsentOrEqual(e,t,r,o){return this.cacheClient.setIfAbsentOrEqual(this.cacheName,e,t,r,o)}setIfPresentAndHashEqual(e,t,r,o){return this.cacheClient.setIfPresentAndHashEqual(this.cacheName,e,t,r,o)}setIfPresentAndHashNotEqual(e,t,r,o){return this.cacheClient.setIfPresentAndHashNotEqual(this.cacheName,e,t,r,o)}setIfAbsentOrHashEqual(e,t,r,o){return this.cacheClient.setIfAbsentOrHashEqual(this.cacheName,e,t,r,o)}setIfAbsentOrHashNotEqual(e,t,r,o){return this.cacheClient.setIfAbsentOrHashNotEqual(this.cacheName,e,t,r,o)}getBatch(e){return this.cacheClient.getBatch(this.cacheName,e)}setBatch(e,t){return this.cacheClient.setBatch(this.cacheName,e,t)}setFetch(e){return this.cacheClient.setFetch(this.cacheName,e)}setAddElement(e,t,r){return this.cacheClient.setAddElement(this.cacheName,e,t,r)}setAddElements(e,t,r){return this.cacheClient.setAddElements(this.cacheName,e,t,r)}setContainsElement(e,t){return this.cacheClient.setContainsElement(this.cacheName,e,t)}setContainsElements(e,t){return this.cacheClient.setContainsElements(this.cacheName,e,t)}setRemoveElement(e,t){return this.cacheClient.setRemoveElement(this.cacheName,e,t)}setRemoveElements(e,t){return this.cacheClient.setRemoveElements(this.cacheName,e,t)}setSample(e,t){return this.cacheClient.setSample(this.cacheName,e,t)}setPop(e,t){return this.cacheClient.setPop(this.cacheName,e,t)}setLength(e){return this.cacheClient.setLength(this.cacheName,e)}listFetch(e,t){return this.cacheClient.listFetch(this.cacheName,e,t)}listLength(e){return this.cacheClient.listLength(this.cacheName,e)}listPushFront(e,t,r){return this.cacheClient.listPushFront(this.cacheName,e,t,r)}listPushBack(e,t,r){return this.cacheClient.listPushBack(this.cacheName,e,t,r)}listConcatenateBack(e,t,r){return this.cacheClient.listConcatenateBack(this.cacheName,e,t,r)}listConcatenateFront(e,t,r){return this.cacheClient.listConcatenateFront(this.cacheName,e,t,r)}listPopBack(e){return this.cacheClient.listPopBack(this.cacheName,e)}listPopFront(e){return this.cacheClient.listPopFront(this.cacheName,e)}listRemoveValue(e,t){return this.cacheClient.listRemoveValue(this.cacheName,e,t)}listRetain(e,t){return this.cacheClient.listRetain(this.cacheName,e,t)}dictionarySetField(e,t,r,o){return this.cacheClient.dictionarySetField(this.cacheName,e,t,r,o)}dictionarySetFields(e,t,r){return this.cacheClient.dictionarySetFields(this.cacheName,e,t,r)}dictionaryGetField(e,t){return this.cacheClient.dictionaryGetField(this.cacheName,e,t)}dictionaryGetFields(e,t){return this.cacheClient.dictionaryGetFields(this.cacheName,e,t)}dictionaryFetch(e){return this.cacheClient.dictionaryFetch(this.cacheName,e)}dictionaryIncrement(e,t,r,o){return this.cacheClient.dictionaryIncrement(this.cacheName,e,t,r,o)}dictionaryRemoveField(e,t){return this.cacheClient.dictionaryRemoveField(this.cacheName,e,t)}dictionaryRemoveFields(e,t){return this.cacheClient.dictionaryRemoveFields(this.cacheName,e,t)}dictionaryLength(e){return this.cacheClient.dictionaryLength(this.cacheName,e)}sortedSetFetchByRank(e,t){return this.cacheClient.sortedSetFetchByRank(this.cacheName,e,t)}sortedSetFetchByScore(e,t){return this.cacheClient.sortedSetFetchByScore(this.cacheName,e,t)}sortedSetPutElement(e,t,r,o){return this.cacheClient.sortedSetPutElement(this.cacheName,e,t,r,o)}sortedSetPutElements(e,t,r){return this.cacheClient.sortedSetPutElements(this.cacheName,e,t,r)}sortedSetGetRank(e,t){return this.cacheClient.sortedSetGetRank(this.cacheName,e,t)}sortedSetGetScore(e,t){return this.cacheClient.sortedSetGetScore(this.cacheName,e,t)}sortedSetGetScores(e,t){return this.cacheClient.sortedSetGetScores(this.cacheName,e,t)}sortedSetIncrementScore(e,t,r,o){return this.cacheClient.sortedSetIncrementScore(this.cacheName,e,t,r,o)}sortedSetRemoveElement(e,t){return this.cacheClient.sortedSetRemoveElement(this.cacheName,e,t)}sortedSetRemoveElements(e,t){return this.cacheClient.sortedSetRemoveElements(this.cacheName,e,t)}sortedSetLength(e){return this.cacheClient.sortedSetLength(this.cacheName,e)}sortedSetLengthByScore(e,t){return this.cacheClient.sortedSetLengthByScore(this.cacheName,e,t)}sortedSetUnionStore(e,t,r){return this.cacheClient.sortedSetUnionStore(this.cacheName,e,t,r)}itemGetType(e){return this.cacheClient.itemGetType(this.cacheName,e)}itemGetTtl(e){return this.cacheClient.itemGetTtl(this.cacheName,e)}keyExists(e){return this.cacheClient.keyExists(this.cacheName,e)}keysExist(e){return this.cacheClient.keysExist(this.cacheName,e)}updateTtl(e,t){return this.cacheClient.updateTtl(this.cacheName,e,t)}increaseTtl(e,t){return this.cacheClient.increaseTtl(this.cacheName,e,t)}decreaseTtl(e,t){return this.cacheClient.decreaseTtl(this.cacheName,e,t)}close(){this.cacheClient.close()}},momentoCache}function requireAbstractCacheClient(){if(hasRequiredAbstractCacheClient)return AbstractCacheClient;hasRequiredAbstractCacheClient=1,Object.defineProperty(AbstractCacheClient,"__esModule",{value:!0}),AbstractCacheClient.AbstractCacheClient=void 0;const e=requireSrc$1(),t=requireMomentoCache();return AbstractCacheClient.AbstractCacheClient=class{constructor(e,t,r){this.controlClient=e,this.dataClients=t,this.pingClient=r,this.nextDataClientIndex=0}cache(e){return new t.MomentoCache(this,e)}async ping(){var e;return await(null===(e=this.pingClient)||void 0===e?void 0:e.ping())}async createCache(e,t){return await this.controlClient.createCache(e,t)}async deleteCache(e,t){return await this.controlClient.deleteCache(e,t)}async listCaches(e){return await this.controlClient.listCaches(e)}async get(e,t,r){return await this.getNextDataClient().get(e,t,r)}async getWithHash(e,t,r){return await this.getNextDataClient().getWithHash(e,t,r)}async set(t,r,o,s){if("number"==typeof s)throw new e.InvalidArgumentError("Options must be an object with a ttl property.");return await this.getNextDataClient().set(t,r,o,s)}async setWithHash(e,t,r,o){return await this.getNextDataClient().setWithHash(e,t,r,o)}async delete(e,t,r){return await this.getNextDataClient().delete(e,t,r?.abortSignal)}async getBatch(e,t,r){return await this.getNextDataClient().getBatch(e,t,r)}async setBatch(e,t,r){return await this.getNextDataClient().setBatch(e,t,r)}async listConcatenateBack(e,t,r,o){return await this.getNextDataClient().listConcatenateBack(e,t,r,o?.truncateFrontToSize,o?.ttl,o?.abortSignal)}async listConcatenateFront(e,t,r,o){return await this.getNextDataClient().listConcatenateFront(e,t,r,o?.truncateBackToSize,o?.ttl,o?.abortSignal)}async listFetch(e,t,r){return await this.getNextDataClient().listFetch(e,t,r?.startIndex,r?.endIndex,r?.abortSignal)}async listLength(e,t,r){return await this.getNextDataClient().listLength(e,t,r?.abortSignal)}async listPopBack(e,t,r){return await this.getNextDataClient().listPopBack(e,t,r?.abortSignal)}async listPopFront(e,t,r){return await this.getNextDataClient().listPopFront(e,t,r?.abortSignal)}async listPushBack(e,t,r,o){return await this.getNextDataClient().listPushBack(e,t,r,o?.truncateFrontToSize,o?.ttl,o?.abortSignal)}async listPushFront(e,t,r,o){return await this.getNextDataClient().listPushFront(e,t,r,o?.truncateBackToSize,o?.ttl,o?.abortSignal)}async listRemoveValue(e,t,r,o){return await this.getNextDataClient().listRemoveValue(e,t,r,o?.abortSignal)}async listRetain(e,t,r){return await this.getNextDataClient().listRetain(e,t,r?.startIndex,r?.endIndex,r?.ttl,r?.abortSignal)}async setFetch(e,t,r){return await this.getNextDataClient().setFetch(e,t,r?.abortSignal)}async setAddElement(e,t,r,o){return(await this.setAddElements(e,t,[r],o)).toSingularResponse()}async setAddElements(e,t,r,o){return await this.getNextDataClient().setAddElements(e,t,r,o?.ttl,o?.abortSignal)}async setContainsElement(e,t,r,o){return await this.getNextDataClient().setContainsElement(e,t,r,o?.abortSignal)}async setContainsElements(e,t,r,o){return await this.getNextDataClient().setContainsElements(e,t,r,o?.abortSignal)}async setRemoveElement(e,t,r,o){return(await this.setRemoveElements(e,t,[r],o)).toSingularResponse()}async setRemoveElements(e,t,r,o){return await this.getNextDataClient().setRemoveElements(e,t,r,o?.abortSignal)}async setSample(e,t,r,o){return await this.getNextDataClient().setSample(e,t,r,o?.abortSignal)}async setPop(e,t,r,o){return await this.getNextDataClient().setPop(e,t,r,o?.abortSignal)}async setLength(e,t,r){return await this.getNextDataClient().setLength(e,t,r?.abortSignal)}async setIfNotExists(e,t,r,o){return await this.getNextDataClient().setIfNotExists(e,t,r,o?.ttl,o?.abortSignal)}async setIfAbsent(e,t,r,o){return await this.getNextDataClient().setIfAbsent(e,t,r,o)}async setIfPresent(e,t,r,o){return await this.getNextDataClient().setIfPresent(e,t,r,o?.ttl,o?.abortSignal)}async setIfEqual(e,t,r,o,s){return await this.getNextDataClient().setIfEqual(e,t,r,o,s?.ttl,s?.abortSignal)}async setIfNotEqual(e,t,r,o,s){return await this.getNextDataClient().setIfNotEqual(e,t,r,o,s?.ttl,s?.abortSignal)}async setIfPresentAndNotEqual(e,t,r,o,s){return await this.getNextDataClient().setIfPresentAndNotEqual(e,t,r,o,s?.ttl,s?.abortSignal)}async setIfAbsentOrEqual(e,t,r,o,s){return await this.getNextDataClient().setIfAbsentOrEqual(e,t,r,o,s?.ttl,s?.abortSignal)}async setIfPresentAndHashEqual(e,t,r,o,s){return await this.getNextDataClient().setIfPresentAndHashEqual(e,t,r,o,s?.ttl,s?.abortSignal)}async setIfPresentAndHashNotEqual(e,t,r,o,s){return await this.getNextDataClient().setIfPresentAndHashNotEqual(e,t,r,o,s?.ttl,s?.abortSignal)}async setIfAbsentOrHashEqual(e,t,r,o,s){return await this.getNextDataClient().setIfAbsentOrHashEqual(e,t,r,o,s?.ttl,s?.abortSignal)}async setIfAbsentOrHashNotEqual(e,t,r,o,s){return await this.getNextDataClient().setIfAbsentOrHashNotEqual(e,t,r,o,s?.ttl,s?.abortSignal)}async flushCache(e,t){return await this.controlClient.flushCache(e,t)}async dictionaryFetch(e,t,r){return await this.getNextDataClient().dictionaryFetch(e,t,r?.abortSignal)}async increment(e,t,r=1,o){return await this.getNextDataClient().increment(e,t,r,o?.ttl,o?.abortSignal)}async dictionarySetField(e,t,r,o,s){return await this.getNextDataClient().dictionarySetField(e,t,r,o,s?.ttl,s?.abortSignal)}async dictionarySetFields(e,t,r,o){return await this.getNextDataClient().dictionarySetFields(e,t,r,o?.ttl,o?.abortSignal)}async dictionaryGetField(e,t,r,o){return await this.getNextDataClient().dictionaryGetField(e,t,r,o?.abortSignal)}async dictionaryGetFields(e,t,r,o){return await this.getNextDataClient().dictionaryGetFields(e,t,r,o?.abortSignal)}async dictionaryRemoveField(e,t,r,o){return await this.getNextDataClient().dictionaryRemoveField(e,t,r,o?.abortSignal)}async dictionaryRemoveFields(e,t,r,o){return await this.getNextDataClient().dictionaryRemoveFields(e,t,r,o?.abortSignal)}async dictionaryIncrement(e,t,r,o=1,s){return await this.getNextDataClient().dictionaryIncrement(e,t,r,o,s?.ttl,s?.abortSignal)}async dictionaryLength(e,t,r){return await this.getNextDataClient().dictionaryLength(e,t,r?.abortSignal)}async sortedSetPutElement(e,t,r,o,s){return await this.getNextDataClient().sortedSetPutElement(e,t,r,o,s?.ttl,s?.abortSignal)}async sortedSetPutElements(e,t,r,o){return await this.getNextDataClient().sortedSetPutElements(e,t,r,o?.ttl,o?.abortSignal)}async sortedSetFetchByRank(t,r,o){var s,n;return await this.getNextDataClient().sortedSetFetchByRank(t,r,null!==(s=o?.order)&&void 0!==s?s:e.SortedSetOrder.Ascending,null!==(n=o?.startRank)&&void 0!==n?n:0,o?.endRank,o?.abortSignal)}async sortedSetFetchByScore(t,r,o){var s;return await this.getNextDataClient().sortedSetFetchByScore(t,r,null!==(s=o?.order)&&void 0!==s?s:e.SortedSetOrder.Ascending,o?.minScore,o?.maxScore,o?.offset,o?.count,o?.abortSignal)}async sortedSetGetRank(e,t,r,o){return await this.getNextDataClient().sortedSetGetRank(e,t,r,o?.order,o?.abortSignal)}async sortedSetGetScore(e,t,r,o){return await this.getNextDataClient().sortedSetGetScore(e,t,r,o?.abortSignal)}async sortedSetGetScores(e,t,r,o){return await this.getNextDataClient().sortedSetGetScores(e,t,r,o?.abortSignal)}async sortedSetIncrementScore(e,t,r,o,s){return await this.getNextDataClient().sortedSetIncrementScore(e,t,r,o||1,s?.ttl,s?.abortSignal)}async sortedSetRemoveElement(e,t,r,o){return await this.getNextDataClient().sortedSetRemoveElement(e,t,r,o?.abortSignal)}async sortedSetRemoveElements(e,t,r,o){return await this.getNextDataClient().sortedSetRemoveElements(e,t,r,o?.abortSignal)}async sortedSetLength(e,t,r){return await this.getNextDataClient().sortedSetLength(e,t,r?.abortSignal)}async sortedSetLengthByScore(e,t,r){return await this.getNextDataClient().sortedSetLengthByScore(e,t,r?.minScore,r?.maxScore,r?.abortSignal)}async sortedSetUnionStore(e,t,r,o){return await this.getNextDataClient().sortedSetUnionStore(e,t,r,o?.aggregate,o?.ttl,o?.abortSignal)}async itemGetType(e,t,r){return await this.getNextDataClient().itemGetType(e,t,r?.abortSignal)}async itemGetTtl(e,t,r){return await this.getNextDataClient().itemGetTtl(e,t,r?.abortSignal)}async keyExists(e,t,r){return await this.getNextDataClient().keyExists(e,t,r?.abortSignal)}async keysExist(e,t,r){return await this.getNextDataClient().keysExist(e,t,r?.abortSignal)}async updateTtl(e,t,r,o){return await this.getNextDataClient().updateTtl(e,t,r,o?.abortSignal)}async increaseTtl(e,t,r,o){return await this.getNextDataClient().increaseTtl(e,t,r,o?.abortSignal)}async decreaseTtl(e,t,r,o){return await this.getNextDataClient().decreaseTtl(e,t,r,o?.abortSignal)}getNextDataClient(){const e=this.dataClients[this.nextDataClientIndex];return this.nextDataClientIndex=(this.nextDataClientIndex+1)%this.dataClients.length,e}},AbstractCacheClient}var ICacheClient={},hasRequiredICacheClient;function requireICacheClient(){return hasRequiredICacheClient||(hasRequiredICacheClient=1,Object.defineProperty(ICacheClient,"__esModule",{value:!0})),ICacheClient}var IControlClient={},hasRequiredIControlClient;function requireIControlClient(){return hasRequiredIControlClient||(hasRequiredIControlClient=1,Object.defineProperty(IControlClient,"__esModule",{value:!0})),IControlClient}var IDataClient={},hasRequiredIDataClient;function requireIDataClient(){return hasRequiredIDataClient||(hasRequiredIDataClient=1,Object.defineProperty(IDataClient,"__esModule",{value:!0})),IDataClient}var IPingClient={},hasRequiredIPingClient,hasRequiredCache;function requireIPingClient(){return hasRequiredIPingClient||(hasRequiredIPingClient=1,Object.defineProperty(IPingClient,"__esModule",{value:!0})),IPingClient}function requireCache(){return hasRequiredCache||(hasRequiredCache=1,e=cache,t=cache&&cache.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=cache&&cache.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireAbstractCacheClient(),e),r(requireICacheClient(),e),r(requireIControlClient(),e),r(requireIDataClient(),e),r(requireIPingClient(),e)),cache;var e,t,r}var auth={},AbstractAuthClient={},hasRequiredAbstractAuthClient;function requireAbstractAuthClient(){if(hasRequiredAbstractAuthClient)return AbstractAuthClient;hasRequiredAbstractAuthClient=1,Object.defineProperty(AbstractAuthClient,"__esModule",{value:!0}),AbstractAuthClient.AbstractAuthClient=void 0;return AbstractAuthClient.AbstractAuthClient=class{constructor(e){this.authClient=e.createAuthClient()}async generateApiKey(e,t){return await this.authClient.generateApiKey(e,t)}async generateAuthToken(e,t){return await this.generateApiKey(e,t)}async refreshApiKey(e){return await this.authClient.refreshApiKey(e)}async refreshAuthToken(e){return await this.refreshApiKey(e)}async generateDisposableToken(e,t,r){return await this.authClient.generateDisposableToken(e,t,r)}},AbstractAuthClient}var IAuthClient={},hasRequiredIAuthClient,hasRequiredAuth;function requireIAuthClient(){return hasRequiredIAuthClient||(hasRequiredIAuthClient=1,Object.defineProperty(IAuthClient,"__esModule",{value:!0})),IAuthClient}function requireAuth(){return hasRequiredAuth||(hasRequiredAuth=1,e=auth,t=auth&&auth.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=auth&&auth.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireAbstractAuthClient(),e),r(requireIAuthClient(),e)),auth;var e,t,r}var pubsub={},ITopicClient={},hasRequiredITopicClient;function requireITopicClient(){return hasRequiredITopicClient||(hasRequiredITopicClient=1,Object.defineProperty(ITopicClient,"__esModule",{value:!0})),ITopicClient}var IPubsubClient={},hasRequiredIPubsubClient,hasRequiredPubsub;function requireIPubsubClient(){return hasRequiredIPubsubClient||(hasRequiredIPubsubClient=1,Object.defineProperty(IPubsubClient,"__esModule",{value:!0})),IPubsubClient}function requirePubsub(){return hasRequiredPubsub||(hasRequiredPubsub=1,e=pubsub,t=pubsub&&pubsub.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=pubsub&&pubsub.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireITopicClient(),e),r(requireIPubsubClient(),e)),pubsub;var e,t,r}var leaderboard$1={},ILeaderboard={},hasRequiredILeaderboard;function requireILeaderboard(){return hasRequiredILeaderboard||(hasRequiredILeaderboard=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LeaderboardOrder=void 0;const t=requireCacheCallOptions();Object.defineProperty(e,"LeaderboardOrder",{enumerable:!0,get:function(){return t.LeaderboardOrder}})}(ILeaderboard)),ILeaderboard}var ILeaderboardClient={},hasRequiredILeaderboardClient;function requireILeaderboardClient(){return hasRequiredILeaderboardClient||(hasRequiredILeaderboardClient=1,Object.defineProperty(ILeaderboardClient,"__esModule",{value:!0})),ILeaderboardClient}var AbstractLeaderboard={},hasRequiredAbstractLeaderboard,hasRequiredLeaderboard$1,hasRequiredClients,hasRequiredCacheClient;function requireAbstractLeaderboard(){if(hasRequiredAbstractLeaderboard)return AbstractLeaderboard;hasRequiredAbstractLeaderboard=1,Object.defineProperty(AbstractLeaderboard,"__esModule",{value:!0}),AbstractLeaderboard.AbstractLeaderboard=void 0;return AbstractLeaderboard.AbstractLeaderboard=class{constructor(e,t,r){this.cacheName=e,this.leaderboardName=t,this.dataClient=r}async upsert(e){return await this.dataClient.upsert(this.cacheName,this.leaderboardName,e)}async fetchByScore(e){return await this.dataClient.fetchByScore(this.cacheName,this.leaderboardName,e?.minScore,e?.maxScore,e?.order,e?.offset,e?.count)}async fetchByRank(e,t,r){return await this.dataClient.fetchByRank(this.cacheName,this.leaderboardName,e,t,r?.order)}async getRank(e,t){return await this.dataClient.getRank(this.cacheName,this.leaderboardName,e,t?.order)}async length(){return await this.dataClient.length(this.cacheName,this.leaderboardName)}async removeElements(e){return await this.dataClient.removeElements(this.cacheName,this.leaderboardName,e)}async delete(){return await this.dataClient.delete(this.cacheName,this.leaderboardName)}},AbstractLeaderboard}function requireLeaderboard$1(){return hasRequiredLeaderboard$1||(hasRequiredLeaderboard$1=1,e=leaderboard$1,t=leaderboard$1&&leaderboard$1.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=leaderboard$1&&leaderboard$1.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireILeaderboard(),e),r(requireILeaderboardClient(),e),r(requireAbstractLeaderboard(),e)),leaderboard$1;var e,t,r}function requireClients(){return hasRequiredClients||(hasRequiredClients=1,e=clients,t=clients&&clients.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=clients&&clients.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireCache(),e),r(requireAuth(),e),r(requirePubsub(),e),r(requireLeaderboard$1(),e)),clients;var e,t,r}function requireCacheClient(){if(hasRequiredCacheClient)return cacheClient;hasRequiredCacheClient=1,Object.defineProperty(cacheClient,"__esModule",{value:!0}),cacheClient.CacheClient=void 0;const e=requireCacheControlClient(),t=requireCacheDataClient(),r=requirePingClient(),o=requireClients(),s=requireWebClientUtils(),n=requireSrc(),i=requireUtils$1(),a=requireSrc$1();class u extends o.AbstractCacheClient{constructor(o){var u,c;(0,i.validateTtlSeconds)(o.defaultTtlSeconds);const l=null!==(u=o.configuration)&&void 0!==u?u:function(){const e=n.Configurations.Browser.latest();return e.getLoggerFactory().getLogger("CacheClient").info("No configuration provided to CacheClient. Using default configuration. For production use, consider specifying an explicit configuration."),e}(),p=null!==(c=o.credentialProvider)&&void 0!==c?c:(0,a.getDefaultCredentialProvider)(),d={...o,configuration:l,credentialProvider:p},g=(y=d,new e.CacheControlClient({configuration:y.configuration,credentialProvider:y.credentialProvider})),h=function(e){return new t.CacheDataClient({configuration:e.configuration,credentialProvider:e.credentialProvider,defaultTtlSeconds:e.defaultTtlSeconds})}(d),f=function(e){return new r.PingClient({endpoint:(0,s.getWebCacheEndpoint)(e.credentialProvider),configuration:e.configuration})}(d);var y;super(g,[h],f)}close(){this.controlClient.close(),this.dataClients.map((e=>e.close()))}get configuration(){return this._configuration}static async create(e){return new u(e)}}return cacheClient.CacheClient=u,cacheClient}var authClient$1={},authClient={},hasRequiredAuthClient$1,hasRequiredAuthClient;function requireAuthClient$1(){if(hasRequiredAuthClient$1)return authClient;hasRequiredAuthClient$1=1,Object.defineProperty(authClient,"__esModule",{value:!0}),authClient.permissionsFromScope=authClient.InternalWebGrpcAuthClient=void 0;const e=requireDist(),t=requireAuth_pb(),r=requireCacheServiceErrorMapper();var o=t._GenerateApiTokenRequest.Never,s=t._GenerateApiTokenRequest.Expires;const n=requireSrc$1(),i=requireUtils$1(),a=requireWebClientUtils(),u=requireClientMetadataProvider(),c=requirePermissionScope(),l=requireDisposableTokenScope(),p=requireToken_pb(),d=requirePermissionmessages_pb();function g(e){const t=new d.Permissions;if(e instanceof i.InternalSuperUserPermissions)t.setSuperUser(d.SuperUserPermissions.SUPERUSER);else if(e instanceof c.PredefinedScope||!(0,l.isDisposableTokenPermissionsObject)(e)){if(!(0,c.isPermissionsObject)(e))throw new Error(`Unrecognized token scope: ${JSON.stringify(e)}`);{const r=(0,c.asPermissionsObject)(e),o=new d.ExplicitPermissions;o.setPermissionsList(r.permissions.map((e=>function(e){const t=new d.PermissionsType;if((0,c.isTopicPermission)(e))return t.setTopicPermissions(function(e){const t=new d.PermissionsType.TopicPermissions;switch(e.role){case n.TopicRole.PublishSubscribe:t.setRole(d.TopicRole.TOPICREADWRITE);break;case n.TopicRole.SubscribeOnly:t.setRole(d.TopicRole.TOPICREADONLY);break;case n.TopicRole.PublishOnly:t.setRole(d.TopicRole.TOPICWRITEONLY);break;default:throw new Error(`Unrecognized topic role: ${JSON.stringify(e)}`)}const r=new d.PermissionsType.CacheSelector;if(e.cache===n.AllCaches)t.setAllCaches(new d.PermissionsType.All);else if("string"==typeof e.cache)r.setCacheName(e.cache),t.setCacheSelector(r);else{if(!(0,n.isCacheName)(e.cache))throw new Error(`Unrecognized cache specification in topic permission: ${JSON.stringify(e)}`);r.setCacheName(e.cache.name),t.setCacheSelector(r)}const o=new d.PermissionsType.TopicSelector;if(e.topic===n.AllTopics)t.setAllTopics(new d.PermissionsType.All);else if("string"==typeof e.topic)o.setTopicName(e.topic),t.setTopicSelector(o);else{if(!(0,n.isTopicName)(e.topic))throw new Error(`Unrecognized topic specification in topic permission: ${JSON.stringify(e)}`);o.setTopicName(e.topic.name),t.setTopicSelector(o)}return t}((0,c.asTopicPermission)(e))),t;if((0,c.isCachePermission)(e))return t.setCachePermissions(function(e){let t=new d.PermissionsType.CachePermissions;return t=h(e,t),t=f(e,t),t}((0,c.asCachePermission)(e))),t;if((0,c.isFunctionPermission)(e))return t.setFunctionPermissions(y((0,c.asFunctionPermission)(e))),t;throw new Error(`Unrecognized token permission: ${JSON.stringify(e)}`)}(e)))),t.setExplicit(o)}}else{const r=(0,l.asDisposableTokenPermissionsObject)(e),o=new d.ExplicitPermissions;o.setPermissionsList(r.permissions.map((e=>function(e){const t=new d.PermissionsType;if((0,l.isDisposableTokenCachePermission)(e))t.setCachePermissions(function(e){let t=new d.PermissionsType.CachePermissions;return t=h(e,t),t=f(e,t),t=function(e,t){const r=new d.PermissionsType.CacheItemSelector;if(e.item===n.AllCacheItems)t.setAllItems(new d.PermissionsType.All);else if("string"==typeof e.item)r.setKey((0,a.convertToB64String)(e.item)),t.setItemSelector(r);else if((0,n.isCacheItemKey)(e.item))(0,i.validateCacheKeyOrPrefix)(e.item.key),r.setKey((0,a.convertToB64String)(e.item.key)),t.setItemSelector(r);else{if(!(0,n.isCacheItemKeyPrefix)(e.item))throw new Error(`Unrecognized cache item specification in cache permission: ${JSON.stringify(e)}`);(0,i.validateCacheKeyOrPrefix)(e.item.keyPrefix),r.setKeyPrefix((0,a.convertToB64String)(e.item.keyPrefix)),t.setItemSelector(r)}return t}(e,t),t}((0,l.asDisposableTokenCachePermission)(e)));else{if(!(0,c.isFunctionPermission)(e))throw new Error(`Unrecognized token permission: ${JSON.stringify(e)}`);t.setFunctionPermissions(y((0,c.asFunctionPermission)(e)))}return t}(e)))),t.setExplicit(o)}return t}function h(e,t){switch(e.role){case n.CacheRole.ReadWrite:t.setRole(d.CacheRole.CACHEREADWRITE);break;case n.CacheRole.ReadOnly:t.setRole(d.CacheRole.CACHEREADONLY);break;case n.CacheRole.WriteOnly:t.setRole(d.CacheRole.CACHEWRITEONLY);break;default:throw new Error(`Unrecognized cache role: ${JSON.stringify(e)}`)}return t}function f(e,t){const r=new d.PermissionsType.CacheSelector;if(e.cache===n.AllCaches)t.setAllCaches(new d.PermissionsType.All);else if("string"==typeof e.cache)r.setCacheName(e.cache),t.setCacheSelector(r);else{if(!(0,n.isCacheName)(e.cache))throw new Error(`Unrecognized cache specification in cache permission: ${JSON.stringify(e)}`);r.setCacheName(e.cache.name),t.setCacheSelector(r)}return t}function y(e){let t=new d.PermissionsType.FunctionPermissions;return t=function(e,t){switch(e.role){case c.FunctionRole.FunctionPermitNone:t.setRole(d.FunctionRole.FUNCTIONPERMITNONE);break;case c.FunctionRole.FunctionInvoke:t.setRole(d.FunctionRole.FUNCTIONINVOKE);break;default:throw new Error(`Unrecognized function role: ${JSON.stringify(e)}`)}return t}(e,t),t=function(e,t){const r=new d.PermissionsType.CacheSelector;if(e.cache===n.AllCaches)t.setAllCaches(new d.PermissionsType.All);else if("string"==typeof e.cache)r.setCacheName(e.cache),t.setCacheSelector(r);else{if(!(0,n.isCacheName)(e.cache))throw new Error(`Unrecognized cache specification in function permission: ${JSON.stringify(e)}`);r.setCacheName(e.cache.name),t.setCacheSelector(r)}return t}(e,t),t=function(e,t){const r=new d.PermissionsType.FunctionSelector;if(e.func===c.AllFunctions)t.setAllFunctions(new d.PermissionsType.All);else if((0,c.isFunctionNamePrefix)(e.func))r.setFunctionNamePrefix(e.func.namePrefix),t.setFunctionSelector(r);else if("string"==typeof e.func)r.setFunctionName(e.func),t.setFunctionSelector(r);else{if(!(0,c.isFunction)(e.func))throw new Error(`Unrecognized function specification in function permission: ${JSON.stringify(e)}`);r.setFunctionName(e.func.name),t.setFunctionSelector(r)}return t}(e,t),t}return authClient.InternalWebGrpcAuthClient=class{constructor(t){var o;this.creds=t.credentialProvider,this.cacheServiceErrorMapper=new r.CacheServiceErrorMapper(null!==(o=t.throwOnErrors)&&void 0!==o&&o),this.clientMetadataProvider=new u.ClientMetadataProvider({clientType:"auth"}),this.authClient=new e.auth.AuthClient((0,a.getWebControlEndpoint)(this.creds),null,{}),this.tokenClient=new e.token.TokenClient((0,a.getWebTokenEndpoint)(this.creds),null,{})}async generateApiKey(e,r){const a=new t._GenerateApiTokenRequest;let u;a.setAuthToken(this.creds.getAuthToken());try{u=g(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new n.GenerateApiKey.Error(e)))}if(a.setPermissions(u),r.doesExpire()){try{(0,i.validateValidForSeconds)(r.seconds())}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new n.GenerateApiKey.Error(e)))}const e=new s;e.setValidForSeconds(r.seconds()),a.setExpires(e)}else a.setNever(new o);return await new Promise(((e,t)=>{this.authClient.generateApiToken(a,this.clientMetadataProvider.createClientMetadata(),((r,o)=>{r||!o?this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new n.GenerateApiKey.Error(e),resolveFn:e,rejectFn:t}):e(new n.GenerateApiKey.Success(o.getApiKey(),o.getRefreshToken(),o.getEndpoint(),n.ExpiresAt.fromEpoch(o.getValidUntil())))}))}))}generateAuthToken(e,t){return this.generateApiKey(e,t)}async refreshApiKey(e){const r=new t._RefreshApiTokenRequest;return r.setApiKey(this.creds.getAuthToken()),r.setRefreshToken(e),await new Promise(((e,t)=>{this.authClient.refreshApiToken(r,this.clientMetadataProvider.createClientMetadata(),((r,o)=>{r||!o?this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new n.RefreshApiKey.Error(e),resolveFn:e,rejectFn:t}):e(new n.RefreshApiKey.Success(o.getApiKey(),o.getRefreshToken(),o.getEndpoint(),n.ExpiresAt.fromEpoch(o.getValidUntil())))}))}))}refreshAuthToken(e){return this.refreshApiKey(e)}async generateDisposableToken(e,t,r){const o=new p._GenerateDisposableTokenRequest;let s;o.setAuthToken(this.creds.getAuthToken());try{s=g(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new n.GenerateDisposableToken.Error(e)))}o.setPermissions(s);const a=r?.tokenId;if(void 0!==a){try{(0,i.validateDisposableTokenTokenID)(a)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new n.GenerateDisposableToken.Error(e)))}o.setTokenId(a)}try{(0,i.validateDisposableTokenExpiry)(t)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new n.GenerateDisposableToken.Error(e)))}const u=new p._GenerateDisposableTokenRequest.Expires;return u.setValidForSeconds(t.seconds()),o.setExpires(u),await new Promise(((e,t)=>{this.tokenClient.generateDisposableToken(o,this.clientMetadataProvider.createClientMetadata(),((r,o)=>{r||!o?this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new n.GenerateDisposableToken.Error(e),resolveFn:e,rejectFn:t}):e(new n.GenerateDisposableToken.Success(o.getApiKey(),o.getEndpoint(),n.ExpiresAt.fromEpoch(o.getValidUntil())))}))}))}},authClient.permissionsFromScope=g,authClient}function requireAuthClient(){if(hasRequiredAuthClient)return authClient$1;hasRequiredAuthClient=1,Object.defineProperty(authClient$1,"__esModule",{value:!0}),authClient$1.AuthClient=void 0;const e=requireClients(),t=requireAuthClient$1(),r=requireSrc$1();class o extends e.AbstractAuthClient{constructor(e){super({createAuthClient:()=>{var o;const s={...e,credentialProvider:null!==(o=e?.credentialProvider)&&void 0!==o?o:(0,r.getDefaultCredentialProvider)()};return new t.InternalWebGrpcAuthClient(s)}})}}return authClient$1.AuthClient=o,authClient$1}var topicClient$1={},pubsubClient={},CachepubsubServiceClientPb={},cachepubsub_pb={},extensions_pb={},descriptor_pb={},hasRequiredDescriptor_pb,hasRequiredExtensions_pb,hasRequiredCachepubsub_pb,hasRequiredCachepubsubServiceClientPb;function requireDescriptor_pb(){return hasRequiredDescriptor_pb||(hasRequiredDescriptor_pb=1,e=descriptor_pb,t=requireGoogleProtobuf(),r=t,o=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof o<"u"&&o||typeof self<"u"&&self||function(){return this}.call(null)||Function("return this")(),r.exportSymbol("proto.google.protobuf.DescriptorProto",null,o),r.exportSymbol("proto.google.protobuf.DescriptorProto.ExtensionRange",null,o),r.exportSymbol("proto.google.protobuf.DescriptorProto.ReservedRange",null,o),r.exportSymbol("proto.google.protobuf.EnumDescriptorProto",null,o),r.exportSymbol("proto.google.protobuf.EnumDescriptorProto.EnumReservedRange",null,o),r.exportSymbol("proto.google.protobuf.EnumOptions",null,o),r.exportSymbol("proto.google.protobuf.EnumValueDescriptorProto",null,o),r.exportSymbol("proto.google.protobuf.EnumValueOptions",null,o),r.exportSymbol("proto.google.protobuf.ExtensionRangeOptions",null,o),r.exportSymbol("proto.google.protobuf.FieldDescriptorProto",null,o),r.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Label",null,o),r.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Type",null,o),r.exportSymbol("proto.google.protobuf.FieldOptions",null,o),r.exportSymbol("proto.google.protobuf.FieldOptions.CType",null,o),r.exportSymbol("proto.google.protobuf.FieldOptions.JSType",null,o),r.exportSymbol("proto.google.protobuf.FileDescriptorProto",null,o),r.exportSymbol("proto.google.protobuf.FileDescriptorSet",null,o),r.exportSymbol("proto.google.protobuf.FileOptions",null,o),r.exportSymbol("proto.google.protobuf.FileOptions.OptimizeMode",null,o),r.exportSymbol("proto.google.protobuf.GeneratedCodeInfo",null,o),r.exportSymbol("proto.google.protobuf.GeneratedCodeInfo.Annotation",null,o),r.exportSymbol("proto.google.protobuf.MessageOptions",null,o),r.exportSymbol("proto.google.protobuf.MethodDescriptorProto",null,o),r.exportSymbol("proto.google.protobuf.MethodOptions",null,o),r.exportSymbol("proto.google.protobuf.MethodOptions.IdempotencyLevel",null,o),r.exportSymbol("proto.google.protobuf.OneofDescriptorProto",null,o),r.exportSymbol("proto.google.protobuf.OneofOptions",null,o),r.exportSymbol("proto.google.protobuf.ServiceDescriptorProto",null,o),r.exportSymbol("proto.google.protobuf.ServiceOptions",null,o),r.exportSymbol("proto.google.protobuf.SourceCodeInfo",null,o),r.exportSymbol("proto.google.protobuf.SourceCodeInfo.Location",null,o),r.exportSymbol("proto.google.protobuf.UninterpretedOption",null,o),r.exportSymbol("proto.google.protobuf.UninterpretedOption.NamePart",null,o),proto.google.protobuf.FileDescriptorSet=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.FileDescriptorSet.repeatedFields_,null)},r.inherits(proto.google.protobuf.FileDescriptorSet,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorSet.displayName="proto.google.protobuf.FileDescriptorSet"),proto.google.protobuf.FileDescriptorProto=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.FileDescriptorProto.repeatedFields_,null)},r.inherits(proto.google.protobuf.FileDescriptorProto,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorProto.displayName="proto.google.protobuf.FileDescriptorProto"),proto.google.protobuf.DescriptorProto=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.DescriptorProto.repeatedFields_,null)},r.inherits(proto.google.protobuf.DescriptorProto,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.displayName="proto.google.protobuf.DescriptorProto"),proto.google.protobuf.DescriptorProto.ExtensionRange=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ExtensionRange.displayName="proto.google.protobuf.DescriptorProto.ExtensionRange"),proto.google.protobuf.DescriptorProto.ReservedRange=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.google.protobuf.DescriptorProto.ReservedRange,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ReservedRange.displayName="proto.google.protobuf.DescriptorProto.ReservedRange"),proto.google.protobuf.ExtensionRangeOptions=function(e){t.Message.initialize(this,e,0,500,proto.google.protobuf.ExtensionRangeOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.ExtensionRangeOptions,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.ExtensionRangeOptions.displayName="proto.google.protobuf.ExtensionRangeOptions"),proto.google.protobuf.ExtensionRangeOptions.extensions={},proto.google.protobuf.ExtensionRangeOptions.extensionsBinary={},proto.google.protobuf.FieldDescriptorProto=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.google.protobuf.FieldDescriptorProto,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldDescriptorProto.displayName="proto.google.protobuf.FieldDescriptorProto"),proto.google.protobuf.OneofDescriptorProto=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.google.protobuf.OneofDescriptorProto,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofDescriptorProto.displayName="proto.google.protobuf.OneofDescriptorProto"),proto.google.protobuf.EnumDescriptorProto=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.EnumDescriptorProto.repeatedFields_,null)},r.inherits(proto.google.protobuf.EnumDescriptorProto,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.displayName="proto.google.protobuf.EnumDescriptorProto"),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.displayName="proto.google.protobuf.EnumDescriptorProto.EnumReservedRange"),proto.google.protobuf.EnumValueDescriptorProto=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.google.protobuf.EnumValueDescriptorProto,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueDescriptorProto.displayName="proto.google.protobuf.EnumValueDescriptorProto"),proto.google.protobuf.ServiceDescriptorProto=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.ServiceDescriptorProto.repeatedFields_,null)},r.inherits(proto.google.protobuf.ServiceDescriptorProto,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceDescriptorProto.displayName="proto.google.protobuf.ServiceDescriptorProto"),proto.google.protobuf.MethodDescriptorProto=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.google.protobuf.MethodDescriptorProto,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodDescriptorProto.displayName="proto.google.protobuf.MethodDescriptorProto"),proto.google.protobuf.FileOptions=function(e){t.Message.initialize(this,e,0,500,proto.google.protobuf.FileOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.FileOptions,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FileOptions.displayName="proto.google.protobuf.FileOptions"),proto.google.protobuf.FileOptions.extensions={},proto.google.protobuf.FileOptions.extensionsBinary={},proto.google.protobuf.MessageOptions=function(e){t.Message.initialize(this,e,0,500,proto.google.protobuf.MessageOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.MessageOptions,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.MessageOptions.displayName="proto.google.protobuf.MessageOptions"),proto.google.protobuf.MessageOptions.extensions={},proto.google.protobuf.MessageOptions.extensionsBinary={},proto.google.protobuf.FieldOptions=function(e){t.Message.initialize(this,e,0,500,proto.google.protobuf.FieldOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.FieldOptions,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldOptions.displayName="proto.google.protobuf.FieldOptions"),proto.google.protobuf.FieldOptions.extensions={},proto.google.protobuf.FieldOptions.extensionsBinary={},proto.google.protobuf.OneofOptions=function(e){t.Message.initialize(this,e,0,500,proto.google.protobuf.OneofOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.OneofOptions,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofOptions.displayName="proto.google.protobuf.OneofOptions"),proto.google.protobuf.OneofOptions.extensions={},proto.google.protobuf.OneofOptions.extensionsBinary={},proto.google.protobuf.EnumOptions=function(e){t.Message.initialize(this,e,0,500,proto.google.protobuf.EnumOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.EnumOptions,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumOptions.displayName="proto.google.protobuf.EnumOptions"),proto.google.protobuf.EnumOptions.extensions={},proto.google.protobuf.EnumOptions.extensionsBinary={},proto.google.protobuf.EnumValueOptions=function(e){t.Message.initialize(this,e,0,500,proto.google.protobuf.EnumValueOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.EnumValueOptions,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueOptions.displayName="proto.google.protobuf.EnumValueOptions"),proto.google.protobuf.EnumValueOptions.extensions={},proto.google.protobuf.EnumValueOptions.extensionsBinary={},proto.google.protobuf.ServiceOptions=function(e){t.Message.initialize(this,e,0,500,proto.google.protobuf.ServiceOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.ServiceOptions,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceOptions.displayName="proto.google.protobuf.ServiceOptions"),proto.google.protobuf.ServiceOptions.extensions={},proto.google.protobuf.ServiceOptions.extensionsBinary={},proto.google.protobuf.MethodOptions=function(e){t.Message.initialize(this,e,0,500,proto.google.protobuf.MethodOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.MethodOptions,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodOptions.displayName="proto.google.protobuf.MethodOptions"),proto.google.protobuf.MethodOptions.extensions={},proto.google.protobuf.MethodOptions.extensionsBinary={},proto.google.protobuf.UninterpretedOption=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.UninterpretedOption.repeatedFields_,null)},r.inherits(proto.google.protobuf.UninterpretedOption,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.displayName="proto.google.protobuf.UninterpretedOption"),proto.google.protobuf.UninterpretedOption.NamePart=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.google.protobuf.UninterpretedOption.NamePart,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.NamePart.displayName="proto.google.protobuf.UninterpretedOption.NamePart"),proto.google.protobuf.SourceCodeInfo=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.SourceCodeInfo.repeatedFields_,null)},r.inherits(proto.google.protobuf.SourceCodeInfo,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.displayName="proto.google.protobuf.SourceCodeInfo"),proto.google.protobuf.SourceCodeInfo.Location=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_,null)},r.inherits(proto.google.protobuf.SourceCodeInfo.Location,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.Location.displayName="proto.google.protobuf.SourceCodeInfo.Location"),proto.google.protobuf.GeneratedCodeInfo=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.GeneratedCodeInfo.repeatedFields_,null)},r.inherits(proto.google.protobuf.GeneratedCodeInfo,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.displayName="proto.google.protobuf.GeneratedCodeInfo"),proto.google.protobuf.GeneratedCodeInfo.Annotation=function(e){t.Message.initialize(this,e,0,-1,proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_,null)},r.inherits(proto.google.protobuf.GeneratedCodeInfo.Annotation,t.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.displayName="proto.google.protobuf.GeneratedCodeInfo.Annotation"),proto.google.protobuf.FileDescriptorSet.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorSet.prototype.toObject=function(e){return proto.google.protobuf.FileDescriptorSet.toObject(e,this)},proto.google.protobuf.FileDescriptorSet.toObject=function(e,r){var o={fileList:t.Message.toObjectList(r.getFileList(),proto.google.protobuf.FileDescriptorProto.toObject,e)};return e&&(o.$jspbMessageInstance=r),o}),proto.google.protobuf.FileDescriptorSet.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.FileDescriptorSet;return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(o,r)},proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.google.protobuf.FileDescriptorProto;t.readMessage(r,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader),e.addFile(r)}else t.skipField();return e},proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter=function(e,t){var r;(r=e.getFileList()).length>0&&t.writeRepeatedMessage(1,r,proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter)},proto.google.protobuf.FileDescriptorSet.prototype.getFileList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.FileDescriptorProto,1)},proto.google.protobuf.FileDescriptorSet.prototype.setFileList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},proto.google.protobuf.FileDescriptorSet.prototype.addFile=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,proto.google.protobuf.FileDescriptorProto,r)},proto.google.protobuf.FileDescriptorSet.prototype.clearFileList=function(){return this.setFileList([])},proto.google.protobuf.FileDescriptorProto.repeatedFields_=[3,10,11,4,5,6,7],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.FileDescriptorProto.toObject(e,this)},proto.google.protobuf.FileDescriptorProto.toObject=function(e,r){var o,s={name:null==(o=t.Message.getField(r,1))?void 0:o,pb_package:null==(o=t.Message.getField(r,2))?void 0:o,dependencyList:null==(o=t.Message.getRepeatedField(r,3))?void 0:o,publicDependencyList:null==(o=t.Message.getRepeatedField(r,10))?void 0:o,weakDependencyList:null==(o=t.Message.getRepeatedField(r,11))?void 0:o,messageTypeList:t.Message.toObjectList(r.getMessageTypeList(),proto.google.protobuf.DescriptorProto.toObject,e),enumTypeList:t.Message.toObjectList(r.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,e),serviceList:t.Message.toObjectList(r.getServiceList(),proto.google.protobuf.ServiceDescriptorProto.toObject,e),extensionList:t.Message.toObjectList(r.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,e),options:(o=r.getOptions())&&proto.google.protobuf.FileOptions.toObject(e,o),sourceCodeInfo:(o=r.getSourceCodeInfo())&&proto.google.protobuf.SourceCodeInfo.toObject(e,o),syntax:null==(o=t.Message.getField(r,12))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.FileDescriptorProto.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.FileDescriptorProto;return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(o,r)},proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=t.readString(),e.setPackage(r);break;case 3:r=t.readString(),e.addDependency(r);break;case 10:for(var o=t.isDelimited()?t.readPackedInt32():[t.readInt32()],s=0;s<o.length;s++)e.addPublicDependency(o[s]);break;case 11:for(o=t.isDelimited()?t.readPackedInt32():[t.readInt32()],s=0;s<o.length;s++)e.addWeakDependency(o[s]);break;case 4:r=new proto.google.protobuf.DescriptorProto,t.readMessage(r,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),e.addMessageType(r);break;case 5:r=new proto.google.protobuf.EnumDescriptorProto,t.readMessage(r,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),e.addEnumType(r);break;case 6:r=new proto.google.protobuf.ServiceDescriptorProto,t.readMessage(r,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader),e.addService(r);break;case 7:r=new proto.google.protobuf.FieldDescriptorProto,t.readMessage(r,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),e.addExtension$(r);break;case 8:r=new proto.google.protobuf.FileOptions,t.readMessage(r,proto.google.protobuf.FileOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 9:r=new proto.google.protobuf.SourceCodeInfo,t.readMessage(r,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader),e.setSourceCodeInfo(r);break;case 12:r=t.readString(),e.setSyntax(r);break;default:t.skipField()}return e},proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,2))&&r.writeString(2,o),(o=e.getDependencyList()).length>0&&r.writeRepeatedString(3,o),(o=e.getPublicDependencyList()).length>0&&r.writeRepeatedInt32(10,o),(o=e.getWeakDependencyList()).length>0&&r.writeRepeatedInt32(11,o),(o=e.getMessageTypeList()).length>0&&r.writeRepeatedMessage(4,o,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),(o=e.getEnumTypeList()).length>0&&r.writeRepeatedMessage(5,o,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),(o=e.getServiceList()).length>0&&r.writeRepeatedMessage(6,o,proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter),(o=e.getExtensionList()).length>0&&r.writeRepeatedMessage(7,o,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),null!=(o=e.getOptions())&&r.writeMessage(8,o,proto.google.protobuf.FileOptions.serializeBinaryToWriter),null!=(o=e.getSourceCodeInfo())&&r.writeMessage(9,o,proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter),null!=(o=t.Message.getField(e,12))&&r.writeString(12,o)},proto.google.protobuf.FileDescriptorProto.prototype.getName=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.FileDescriptorProto.prototype.setName=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearName=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasName=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.FileDescriptorProto.prototype.getPackage=function(){return t.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.FileDescriptorProto.prototype.setPackage=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearPackage=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasPackage=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList=function(){return t.Message.getRepeatedField(this,3)},proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList=function(e){return t.Message.setField(this,3,e||[])},proto.google.protobuf.FileDescriptorProto.prototype.addDependency=function(e,r){return t.Message.addToRepeatedField(this,3,e,r)},proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList=function(){return this.setDependencyList([])},proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList=function(){return t.Message.getRepeatedField(this,10)},proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList=function(e){return t.Message.setField(this,10,e||[])},proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency=function(e,r){return t.Message.addToRepeatedField(this,10,e,r)},proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList=function(){return this.setPublicDependencyList([])},proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList=function(){return t.Message.getRepeatedField(this,11)},proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList=function(e){return t.Message.setField(this,11,e||[])},proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency=function(e,r){return t.Message.addToRepeatedField(this,11,e,r)},proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList=function(){return this.setWeakDependencyList([])},proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,4)},proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList=function(e){return t.Message.setRepeatedWrapperField(this,4,e)},proto.google.protobuf.FileDescriptorProto.prototype.addMessageType=function(e,r){return t.Message.addToRepeatedWrapperField(this,4,e,proto.google.protobuf.DescriptorProto,r)},proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList=function(){return this.setMessageTypeList([])},proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,5)},proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList=function(e){return t.Message.setRepeatedWrapperField(this,5,e)},proto.google.protobuf.FileDescriptorProto.prototype.addEnumType=function(e,r){return t.Message.addToRepeatedWrapperField(this,5,e,proto.google.protobuf.EnumDescriptorProto,r)},proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])},proto.google.protobuf.FileDescriptorProto.prototype.getServiceList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.ServiceDescriptorProto,6)},proto.google.protobuf.FileDescriptorProto.prototype.setServiceList=function(e){return t.Message.setRepeatedWrapperField(this,6,e)},proto.google.protobuf.FileDescriptorProto.prototype.addService=function(e,r){return t.Message.addToRepeatedWrapperField(this,6,e,proto.google.protobuf.ServiceDescriptorProto,r)},proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList=function(){return this.setServiceList([])},proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,7)},proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList=function(e){return t.Message.setRepeatedWrapperField(this,7,e)},proto.google.protobuf.FileDescriptorProto.prototype.addExtension$=function(e,r){return t.Message.addToRepeatedWrapperField(this,7,e,proto.google.protobuf.FieldDescriptorProto,r)},proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])},proto.google.protobuf.FileDescriptorProto.prototype.getOptions=function(){return t.Message.getWrapperField(this,proto.google.protobuf.FileOptions,8)},proto.google.protobuf.FileDescriptorProto.prototype.setOptions=function(e){return t.Message.setWrapperField(this,8,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasOptions=function(){return null!=t.Message.getField(this,8)},proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo=function(){return t.Message.getWrapperField(this,proto.google.protobuf.SourceCodeInfo,9)},proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo=function(e){return t.Message.setWrapperField(this,9,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo=function(){return this.setSourceCodeInfo(void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo=function(){return null!=t.Message.getField(this,9)},proto.google.protobuf.FileDescriptorProto.prototype.getSyntax=function(){return t.Message.getFieldWithDefault(this,12,"")},proto.google.protobuf.FileDescriptorProto.prototype.setSyntax=function(e){return t.Message.setField(this,12,e)},proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax=function(){return t.Message.setField(this,12,void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax=function(){return null!=t.Message.getField(this,12)},proto.google.protobuf.DescriptorProto.repeatedFields_=[2,6,3,4,5,8,9,10],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.DescriptorProto.toObject(e,this)},proto.google.protobuf.DescriptorProto.toObject=function(e,r){var o,s={name:null==(o=t.Message.getField(r,1))?void 0:o,fieldList:t.Message.toObjectList(r.getFieldList(),proto.google.protobuf.FieldDescriptorProto.toObject,e),extensionList:t.Message.toObjectList(r.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,e),nestedTypeList:t.Message.toObjectList(r.getNestedTypeList(),proto.google.protobuf.DescriptorProto.toObject,e),enumTypeList:t.Message.toObjectList(r.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,e),extensionRangeList:t.Message.toObjectList(r.getExtensionRangeList(),proto.google.protobuf.DescriptorProto.ExtensionRange.toObject,e),oneofDeclList:t.Message.toObjectList(r.getOneofDeclList(),proto.google.protobuf.OneofDescriptorProto.toObject,e),options:(o=r.getOptions())&&proto.google.protobuf.MessageOptions.toObject(e,o),reservedRangeList:t.Message.toObjectList(r.getReservedRangeList(),proto.google.protobuf.DescriptorProto.ReservedRange.toObject,e),reservedNameList:null==(o=t.Message.getRepeatedField(r,10))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.DescriptorProto.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.DescriptorProto;return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(o,r)},proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=new proto.google.protobuf.FieldDescriptorProto,t.readMessage(r,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),e.addField(r);break;case 6:r=new proto.google.protobuf.FieldDescriptorProto,t.readMessage(r,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),e.addExtension$(r);break;case 3:r=new proto.google.protobuf.DescriptorProto,t.readMessage(r,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),e.addNestedType(r);break;case 4:r=new proto.google.protobuf.EnumDescriptorProto,t.readMessage(r,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),e.addEnumType(r);break;case 5:r=new proto.google.protobuf.DescriptorProto.ExtensionRange,t.readMessage(r,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader),e.addExtensionRange(r);break;case 8:r=new proto.google.protobuf.OneofDescriptorProto,t.readMessage(r,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader),e.addOneofDecl(r);break;case 7:r=new proto.google.protobuf.MessageOptions,t.readMessage(r,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 9:r=new proto.google.protobuf.DescriptorProto.ReservedRange,t.readMessage(r,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader),e.addReservedRange(r);break;case 10:r=t.readString(),e.addReservedName(r);break;default:t.skipField()}return e},proto.google.protobuf.DescriptorProto.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.DescriptorProto.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),(o=e.getFieldList()).length>0&&r.writeRepeatedMessage(2,o,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),(o=e.getExtensionList()).length>0&&r.writeRepeatedMessage(6,o,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),(o=e.getNestedTypeList()).length>0&&r.writeRepeatedMessage(3,o,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),(o=e.getEnumTypeList()).length>0&&r.writeRepeatedMessage(4,o,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),(o=e.getExtensionRangeList()).length>0&&r.writeRepeatedMessage(5,o,proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter),(o=e.getOneofDeclList()).length>0&&r.writeRepeatedMessage(8,o,proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter),null!=(o=e.getOptions())&&r.writeMessage(7,o,proto.google.protobuf.MessageOptions.serializeBinaryToWriter),(o=e.getReservedRangeList()).length>0&&r.writeRepeatedMessage(9,o,proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter),(o=e.getReservedNameList()).length>0&&r.writeRepeatedString(10,o)},t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject=function(e){return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(e,this)},proto.google.protobuf.DescriptorProto.ExtensionRange.toObject=function(e,r){var o,s={start:null==(o=t.Message.getField(r,1))?void 0:o,end:null==(o=t.Message.getField(r,2))?void 0:o,options:(o=r.getOptions())&&proto.google.protobuf.ExtensionRangeOptions.toObject(e,o)};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.DescriptorProto.ExtensionRange;return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(o,r)},proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setStart(r);break;case 2:r=t.readInt32(),e.setEnd(r);break;case 3:r=new proto.google.protobuf.ExtensionRangeOptions,t.readMessage(r,proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader),e.setOptions(r);break;default:t.skipField()}return e},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeInt32(1,o),null!=(o=t.Message.getField(e,2))&&r.writeInt32(2,o),null!=(o=e.getOptions())&&r.writeMessage(3,o,proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd=function(){return t.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getOptions=function(){return t.Message.getWrapperField(this,proto.google.protobuf.ExtensionRangeOptions,3)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setOptions=function(e){return t.Message.setWrapperField(this,3,e)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasOptions=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject=function(e){return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(e,this)},proto.google.protobuf.DescriptorProto.ReservedRange.toObject=function(e,r){var o,s={start:null==(o=t.Message.getField(r,1))?void 0:o,end:null==(o=t.Message.getField(r,2))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.DescriptorProto.ReservedRange;return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(o,r)},proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setStart(r);break;case 2:r=t.readInt32(),e.setEnd(r);break;default:t.skipField()}return e},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeInt32(1,o),null!=(o=t.Message.getField(e,2))&&r.writeInt32(2,o)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd=function(){return t.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.DescriptorProto.prototype.getName=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.DescriptorProto.prototype.setName=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.DescriptorProto.prototype.clearName=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.DescriptorProto.prototype.hasName=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.DescriptorProto.prototype.getFieldList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,2)},proto.google.protobuf.DescriptorProto.prototype.setFieldList=function(e){return t.Message.setRepeatedWrapperField(this,2,e)},proto.google.protobuf.DescriptorProto.prototype.addField=function(e,r){return t.Message.addToRepeatedWrapperField(this,2,e,proto.google.protobuf.FieldDescriptorProto,r)},proto.google.protobuf.DescriptorProto.prototype.clearFieldList=function(){return this.setFieldList([])},proto.google.protobuf.DescriptorProto.prototype.getExtensionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,6)},proto.google.protobuf.DescriptorProto.prototype.setExtensionList=function(e){return t.Message.setRepeatedWrapperField(this,6,e)},proto.google.protobuf.DescriptorProto.prototype.addExtension$=function(e,r){return t.Message.addToRepeatedWrapperField(this,6,e,proto.google.protobuf.FieldDescriptorProto,r)},proto.google.protobuf.DescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])},proto.google.protobuf.DescriptorProto.prototype.getNestedTypeList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,3)},proto.google.protobuf.DescriptorProto.prototype.setNestedTypeList=function(e){return t.Message.setRepeatedWrapperField(this,3,e)},proto.google.protobuf.DescriptorProto.prototype.addNestedType=function(e,r){return t.Message.addToRepeatedWrapperField(this,3,e,proto.google.protobuf.DescriptorProto,r)},proto.google.protobuf.DescriptorProto.prototype.clearNestedTypeList=function(){return this.setNestedTypeList([])},proto.google.protobuf.DescriptorProto.prototype.getEnumTypeList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,4)},proto.google.protobuf.DescriptorProto.prototype.setEnumTypeList=function(e){return t.Message.setRepeatedWrapperField(this,4,e)},proto.google.protobuf.DescriptorProto.prototype.addEnumType=function(e,r){return t.Message.addToRepeatedWrapperField(this,4,e,proto.google.protobuf.EnumDescriptorProto,r)},proto.google.protobuf.DescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])},proto.google.protobuf.DescriptorProto.prototype.getExtensionRangeList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ExtensionRange,5)},proto.google.protobuf.DescriptorProto.prototype.setExtensionRangeList=function(e){return t.Message.setRepeatedWrapperField(this,5,e)},proto.google.protobuf.DescriptorProto.prototype.addExtensionRange=function(e,r){return t.Message.addToRepeatedWrapperField(this,5,e,proto.google.protobuf.DescriptorProto.ExtensionRange,r)},proto.google.protobuf.DescriptorProto.prototype.clearExtensionRangeList=function(){return this.setExtensionRangeList([])},proto.google.protobuf.DescriptorProto.prototype.getOneofDeclList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.OneofDescriptorProto,8)},proto.google.protobuf.DescriptorProto.prototype.setOneofDeclList=function(e){return t.Message.setRepeatedWrapperField(this,8,e)},proto.google.protobuf.DescriptorProto.prototype.addOneofDecl=function(e,r){return t.Message.addToRepeatedWrapperField(this,8,e,proto.google.protobuf.OneofDescriptorProto,r)},proto.google.protobuf.DescriptorProto.prototype.clearOneofDeclList=function(){return this.setOneofDeclList([])},proto.google.protobuf.DescriptorProto.prototype.getOptions=function(){return t.Message.getWrapperField(this,proto.google.protobuf.MessageOptions,7)},proto.google.protobuf.DescriptorProto.prototype.setOptions=function(e){return t.Message.setWrapperField(this,7,e)},proto.google.protobuf.DescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.DescriptorProto.prototype.hasOptions=function(){return null!=t.Message.getField(this,7)},proto.google.protobuf.DescriptorProto.prototype.getReservedRangeList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ReservedRange,9)},proto.google.protobuf.DescriptorProto.prototype.setReservedRangeList=function(e){return t.Message.setRepeatedWrapperField(this,9,e)},proto.google.protobuf.DescriptorProto.prototype.addReservedRange=function(e,r){return t.Message.addToRepeatedWrapperField(this,9,e,proto.google.protobuf.DescriptorProto.ReservedRange,r)},proto.google.protobuf.DescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])},proto.google.protobuf.DescriptorProto.prototype.getReservedNameList=function(){return t.Message.getRepeatedField(this,10)},proto.google.protobuf.DescriptorProto.prototype.setReservedNameList=function(e){return t.Message.setField(this,10,e||[])},proto.google.protobuf.DescriptorProto.prototype.addReservedName=function(e,r){return t.Message.addToRepeatedField(this,10,e,r)},proto.google.protobuf.DescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])},proto.google.protobuf.ExtensionRangeOptions.repeatedFields_=[999],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ExtensionRangeOptions.prototype.toObject=function(e){return proto.google.protobuf.ExtensionRangeOptions.toObject(e,this)},proto.google.protobuf.ExtensionRangeOptions.toObject=function(e,r){var o={uninterpretedOptionList:t.Message.toObjectList(r.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return t.Message.toObjectExtension(r,o,proto.google.protobuf.ExtensionRangeOptions.extensions,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,e),e&&(o.$jspbMessageInstance=r),o}),proto.google.protobuf.ExtensionRangeOptions.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.ExtensionRangeOptions;return proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader(o,r)},proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader=function(e,r){for(;r.nextField()&&!r.isEndGroup();)if(999===r.getFieldNumber()){var o=new proto.google.protobuf.UninterpretedOption;r.readMessage(o,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(o)}else t.Message.readBinaryExtension(e,r,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,proto.google.protobuf.ExtensionRangeOptions.prototype.setExtension);return e},proto.google.protobuf.ExtensionRangeOptions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter=function(e,r){var o;(o=e.getUninterpretedOptionList()).length>0&&r.writeRepeatedMessage(999,o,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),t.Message.serializeBinaryExtensions(e,r,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension)},proto.google.protobuf.ExtensionRangeOptions.prototype.getUninterpretedOptionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.ExtensionRangeOptions.prototype.setUninterpretedOptionList=function(e){return t.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.ExtensionRangeOptions.prototype.addUninterpretedOption=function(e,r){return t.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,r)},proto.google.protobuf.ExtensionRangeOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.FieldDescriptorProto.toObject(e,this)},proto.google.protobuf.FieldDescriptorProto.toObject=function(e,r){var o,s={name:null==(o=t.Message.getField(r,1))?void 0:o,number:null==(o=t.Message.getField(r,3))?void 0:o,label:null==(o=t.Message.getField(r,4))?void 0:o,type:null==(o=t.Message.getField(r,5))?void 0:o,typeName:null==(o=t.Message.getField(r,6))?void 0:o,extendee:null==(o=t.Message.getField(r,2))?void 0:o,defaultValue:null==(o=t.Message.getField(r,7))?void 0:o,oneofIndex:null==(o=t.Message.getField(r,9))?void 0:o,jsonName:null==(o=t.Message.getField(r,10))?void 0:o,options:(o=r.getOptions())&&proto.google.protobuf.FieldOptions.toObject(e,o),proto3Optional:null==(o=t.Message.getBooleanField(r,17))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.FieldDescriptorProto.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.FieldDescriptorProto;return proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader(o,r)},proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 3:r=t.readInt32(),e.setNumber(r);break;case 4:r=t.readEnum(),e.setLabel(r);break;case 5:r=t.readEnum(),e.setType(r);break;case 6:r=t.readString(),e.setTypeName(r);break;case 2:r=t.readString(),e.setExtendee(r);break;case 7:r=t.readString(),e.setDefaultValue(r);break;case 9:r=t.readInt32(),e.setOneofIndex(r);break;case 10:r=t.readString(),e.setJsonName(r);break;case 8:r=new proto.google.protobuf.FieldOptions,t.readMessage(r,proto.google.protobuf.FieldOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 17:r=t.readBool(),e.setProto3Optional(r);break;default:t.skipField()}return e},proto.google.protobuf.FieldDescriptorProto.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,3))&&r.writeInt32(3,o),null!=(o=t.Message.getField(e,4))&&r.writeEnum(4,o),null!=(o=t.Message.getField(e,5))&&r.writeEnum(5,o),null!=(o=t.Message.getField(e,6))&&r.writeString(6,o),null!=(o=t.Message.getField(e,2))&&r.writeString(2,o),null!=(o=t.Message.getField(e,7))&&r.writeString(7,o),null!=(o=t.Message.getField(e,9))&&r.writeInt32(9,o),null!=(o=t.Message.getField(e,10))&&r.writeString(10,o),null!=(o=e.getOptions())&&r.writeMessage(8,o,proto.google.protobuf.FieldOptions.serializeBinaryToWriter),null!=(o=t.Message.getField(e,17))&&r.writeBool(17,o)},proto.google.protobuf.FieldDescriptorProto.Type={TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18},proto.google.protobuf.FieldDescriptorProto.Label={LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3},proto.google.protobuf.FieldDescriptorProto.prototype.getName=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setName=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearName=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasName=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.FieldDescriptorProto.prototype.getNumber=function(){return t.Message.getFieldWithDefault(this,3,0)},proto.google.protobuf.FieldDescriptorProto.prototype.setNumber=function(e){return t.Message.setField(this,3,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearNumber=function(){return t.Message.setField(this,3,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasNumber=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.FieldDescriptorProto.prototype.getLabel=function(){return t.Message.getFieldWithDefault(this,4,1)},proto.google.protobuf.FieldDescriptorProto.prototype.setLabel=function(e){return t.Message.setField(this,4,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearLabel=function(){return t.Message.setField(this,4,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasLabel=function(){return null!=t.Message.getField(this,4)},proto.google.protobuf.FieldDescriptorProto.prototype.getType=function(){return t.Message.getFieldWithDefault(this,5,1)},proto.google.protobuf.FieldDescriptorProto.prototype.setType=function(e){return t.Message.setField(this,5,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearType=function(){return t.Message.setField(this,5,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasType=function(){return null!=t.Message.getField(this,5)},proto.google.protobuf.FieldDescriptorProto.prototype.getTypeName=function(){return t.Message.getFieldWithDefault(this,6,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setTypeName=function(e){return t.Message.setField(this,6,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearTypeName=function(){return t.Message.setField(this,6,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasTypeName=function(){return null!=t.Message.getField(this,6)},proto.google.protobuf.FieldDescriptorProto.prototype.getExtendee=function(){return t.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setExtendee=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearExtendee=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasExtendee=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.FieldDescriptorProto.prototype.getDefaultValue=function(){return t.Message.getFieldWithDefault(this,7,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setDefaultValue=function(e){return t.Message.setField(this,7,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearDefaultValue=function(){return t.Message.setField(this,7,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasDefaultValue=function(){return null!=t.Message.getField(this,7)},proto.google.protobuf.FieldDescriptorProto.prototype.getOneofIndex=function(){return t.Message.getFieldWithDefault(this,9,0)},proto.google.protobuf.FieldDescriptorProto.prototype.setOneofIndex=function(e){return t.Message.setField(this,9,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearOneofIndex=function(){return t.Message.setField(this,9,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasOneofIndex=function(){return null!=t.Message.getField(this,9)},proto.google.protobuf.FieldDescriptorProto.prototype.getJsonName=function(){return t.Message.getFieldWithDefault(this,10,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setJsonName=function(e){return t.Message.setField(this,10,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearJsonName=function(){return t.Message.setField(this,10,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasJsonName=function(){return null!=t.Message.getField(this,10)},proto.google.protobuf.FieldDescriptorProto.prototype.getOptions=function(){return t.Message.getWrapperField(this,proto.google.protobuf.FieldOptions,8)},proto.google.protobuf.FieldDescriptorProto.prototype.setOptions=function(e){return t.Message.setWrapperField(this,8,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasOptions=function(){return null!=t.Message.getField(this,8)},proto.google.protobuf.FieldDescriptorProto.prototype.getProto3Optional=function(){return t.Message.getBooleanFieldWithDefault(this,17,!1)},proto.google.protobuf.FieldDescriptorProto.prototype.setProto3Optional=function(e){return t.Message.setField(this,17,e)},proto.google.protobuf.FieldDescriptorProto.prototype.clearProto3Optional=function(){return t.Message.setField(this,17,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasProto3Optional=function(){return null!=t.Message.getField(this,17)},t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.OneofDescriptorProto.toObject(e,this)},proto.google.protobuf.OneofDescriptorProto.toObject=function(e,r){var o,s={name:null==(o=t.Message.getField(r,1))?void 0:o,options:(o=r.getOptions())&&proto.google.protobuf.OneofOptions.toObject(e,o)};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.OneofDescriptorProto.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.OneofDescriptorProto;return proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader(o,r)},proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=new proto.google.protobuf.OneofOptions,t.readMessage(r,proto.google.protobuf.OneofOptions.deserializeBinaryFromReader),e.setOptions(r);break;default:t.skipField()}return e},proto.google.protobuf.OneofDescriptorProto.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=e.getOptions())&&r.writeMessage(2,o,proto.google.protobuf.OneofOptions.serializeBinaryToWriter)},proto.google.protobuf.OneofDescriptorProto.prototype.getName=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.OneofDescriptorProto.prototype.setName=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.OneofDescriptorProto.prototype.clearName=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.OneofDescriptorProto.prototype.hasName=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.OneofDescriptorProto.prototype.getOptions=function(){return t.Message.getWrapperField(this,proto.google.protobuf.OneofOptions,2)},proto.google.protobuf.OneofDescriptorProto.prototype.setOptions=function(e){return t.Message.setWrapperField(this,2,e)},proto.google.protobuf.OneofDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.OneofDescriptorProto.prototype.hasOptions=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.EnumDescriptorProto.repeatedFields_=[2,4,5],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.EnumDescriptorProto.toObject(e,this)},proto.google.protobuf.EnumDescriptorProto.toObject=function(e,r){var o,s={name:null==(o=t.Message.getField(r,1))?void 0:o,valueList:t.Message.toObjectList(r.getValueList(),proto.google.protobuf.EnumValueDescriptorProto.toObject,e),options:(o=r.getOptions())&&proto.google.protobuf.EnumOptions.toObject(e,o),reservedRangeList:t.Message.toObjectList(r.getReservedRangeList(),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject,e),reservedNameList:null==(o=t.Message.getRepeatedField(r,5))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.EnumDescriptorProto.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.EnumDescriptorProto;return proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader(o,r)},proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=new proto.google.protobuf.EnumValueDescriptorProto,t.readMessage(r,proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader),e.addValue(r);break;case 3:r=new proto.google.protobuf.EnumOptions,t.readMessage(r,proto.google.protobuf.EnumOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 4:r=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,t.readMessage(r,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader),e.addReservedRange(r);break;case 5:r=t.readString(),e.addReservedName(r);break;default:t.skipField()}return e},proto.google.protobuf.EnumDescriptorProto.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),(o=e.getValueList()).length>0&&r.writeRepeatedMessage(2,o,proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter),null!=(o=e.getOptions())&&r.writeMessage(3,o,proto.google.protobuf.EnumOptions.serializeBinaryToWriter),(o=e.getReservedRangeList()).length>0&&r.writeRepeatedMessage(4,o,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter),(o=e.getReservedNameList()).length>0&&r.writeRepeatedString(5,o)},t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.toObject=function(e){return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(e,this)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject=function(e,r){var o,s={start:null==(o=t.Message.getField(r,1))?void 0:o,end:null==(o=t.Message.getField(r,2))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(o,r)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setStart(r);break;case 2:r=t.readInt32(),e.setEnd(r);break;default:t.skipField()}return e},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeInt32(1,o),null!=(o=t.Message.getField(e,2))&&r.writeInt32(2,o)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getStart=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setStart=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearStart=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasStart=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getEnd=function(){return t.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setEnd=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearEnd=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasEnd=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.EnumDescriptorProto.prototype.getName=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.EnumDescriptorProto.prototype.setName=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.EnumDescriptorProto.prototype.clearName=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.EnumDescriptorProto.prototype.hasName=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.EnumDescriptorProto.prototype.getValueList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumValueDescriptorProto,2)},proto.google.protobuf.EnumDescriptorProto.prototype.setValueList=function(e){return t.Message.setRepeatedWrapperField(this,2,e)},proto.google.protobuf.EnumDescriptorProto.prototype.addValue=function(e,r){return t.Message.addToRepeatedWrapperField(this,2,e,proto.google.protobuf.EnumValueDescriptorProto,r)},proto.google.protobuf.EnumDescriptorProto.prototype.clearValueList=function(){return this.setValueList([])},proto.google.protobuf.EnumDescriptorProto.prototype.getOptions=function(){return t.Message.getWrapperField(this,proto.google.protobuf.EnumOptions,3)},proto.google.protobuf.EnumDescriptorProto.prototype.setOptions=function(e){return t.Message.setWrapperField(this,3,e)},proto.google.protobuf.EnumDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.EnumDescriptorProto.prototype.hasOptions=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.EnumDescriptorProto.prototype.getReservedRangeList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,4)},proto.google.protobuf.EnumDescriptorProto.prototype.setReservedRangeList=function(e){return t.Message.setRepeatedWrapperField(this,4,e)},proto.google.protobuf.EnumDescriptorProto.prototype.addReservedRange=function(e,r){return t.Message.addToRepeatedWrapperField(this,4,e,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,r)},proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])},proto.google.protobuf.EnumDescriptorProto.prototype.getReservedNameList=function(){return t.Message.getRepeatedField(this,5)},proto.google.protobuf.EnumDescriptorProto.prototype.setReservedNameList=function(e){return t.Message.setField(this,5,e||[])},proto.google.protobuf.EnumDescriptorProto.prototype.addReservedName=function(e,r){return t.Message.addToRepeatedField(this,5,e,r)},proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])},t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.EnumValueDescriptorProto.toObject(e,this)},proto.google.protobuf.EnumValueDescriptorProto.toObject=function(e,r){var o,s={name:null==(o=t.Message.getField(r,1))?void 0:o,number:null==(o=t.Message.getField(r,2))?void 0:o,options:(o=r.getOptions())&&proto.google.protobuf.EnumValueOptions.toObject(e,o)};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.EnumValueDescriptorProto.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.EnumValueDescriptorProto;return proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader(o,r)},proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=t.readInt32(),e.setNumber(r);break;case 3:r=new proto.google.protobuf.EnumValueOptions,t.readMessage(r,proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader),e.setOptions(r);break;default:t.skipField()}return e},proto.google.protobuf.EnumValueDescriptorProto.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,2))&&r.writeInt32(2,o),null!=(o=e.getOptions())&&r.writeMessage(3,o,proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter)},proto.google.protobuf.EnumValueDescriptorProto.prototype.getName=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.EnumValueDescriptorProto.prototype.setName=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.EnumValueDescriptorProto.prototype.clearName=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.hasName=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.EnumValueDescriptorProto.prototype.getNumber=function(){return t.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.setNumber=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.EnumValueDescriptorProto.prototype.clearNumber=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.hasNumber=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.EnumValueDescriptorProto.prototype.getOptions=function(){return t.Message.getWrapperField(this,proto.google.protobuf.EnumValueOptions,3)},proto.google.protobuf.EnumValueDescriptorProto.prototype.setOptions=function(e){return t.Message.setWrapperField(this,3,e)},proto.google.protobuf.EnumValueDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.hasOptions=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.ServiceDescriptorProto.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.ServiceDescriptorProto.toObject(e,this)},proto.google.protobuf.ServiceDescriptorProto.toObject=function(e,r){var o,s={name:null==(o=t.Message.getField(r,1))?void 0:o,methodList:t.Message.toObjectList(r.getMethodList(),proto.google.protobuf.MethodDescriptorProto.toObject,e),options:(o=r.getOptions())&&proto.google.protobuf.ServiceOptions.toObject(e,o)};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.ServiceDescriptorProto.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.ServiceDescriptorProto;return proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader(o,r)},proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=new proto.google.protobuf.MethodDescriptorProto,t.readMessage(r,proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader),e.addMethod(r);break;case 3:r=new proto.google.protobuf.ServiceOptions,t.readMessage(r,proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader),e.setOptions(r);break;default:t.skipField()}return e},proto.google.protobuf.ServiceDescriptorProto.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),(o=e.getMethodList()).length>0&&r.writeRepeatedMessage(2,o,proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter),null!=(o=e.getOptions())&&r.writeMessage(3,o,proto.google.protobuf.ServiceOptions.serializeBinaryToWriter)},proto.google.protobuf.ServiceDescriptorProto.prototype.getName=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.ServiceDescriptorProto.prototype.setName=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.ServiceDescriptorProto.prototype.clearName=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.ServiceDescriptorProto.prototype.hasName=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.ServiceDescriptorProto.prototype.getMethodList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.MethodDescriptorProto,2)},proto.google.protobuf.ServiceDescriptorProto.prototype.setMethodList=function(e){return t.Message.setRepeatedWrapperField(this,2,e)},proto.google.protobuf.ServiceDescriptorProto.prototype.addMethod=function(e,r){return t.Message.addToRepeatedWrapperField(this,2,e,proto.google.protobuf.MethodDescriptorProto,r)},proto.google.protobuf.ServiceDescriptorProto.prototype.clearMethodList=function(){return this.setMethodList([])},proto.google.protobuf.ServiceDescriptorProto.prototype.getOptions=function(){return t.Message.getWrapperField(this,proto.google.protobuf.ServiceOptions,3)},proto.google.protobuf.ServiceDescriptorProto.prototype.setOptions=function(e){return t.Message.setWrapperField(this,3,e)},proto.google.protobuf.ServiceDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.ServiceDescriptorProto.prototype.hasOptions=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodDescriptorProto.prototype.toObject=function(e){return proto.google.protobuf.MethodDescriptorProto.toObject(e,this)},proto.google.protobuf.MethodDescriptorProto.toObject=function(e,r){var o,s={name:null==(o=t.Message.getField(r,1))?void 0:o,inputType:null==(o=t.Message.getField(r,2))?void 0:o,outputType:null==(o=t.Message.getField(r,3))?void 0:o,options:(o=r.getOptions())&&proto.google.protobuf.MethodOptions.toObject(e,o),clientStreaming:t.Message.getBooleanFieldWithDefault(r,5,!1),serverStreaming:t.Message.getBooleanFieldWithDefault(r,6,!1)};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.MethodDescriptorProto.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.MethodDescriptorProto;return proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader(o,r)},proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=t.readString(),e.setInputType(r);break;case 3:r=t.readString(),e.setOutputType(r);break;case 4:r=new proto.google.protobuf.MethodOptions,t.readMessage(r,proto.google.protobuf.MethodOptions.deserializeBinaryFromReader),e.setOptions(r);break;case 5:r=t.readBool(),e.setClientStreaming(r);break;case 6:r=t.readBool(),e.setServerStreaming(r);break;default:t.skipField()}return e},proto.google.protobuf.MethodDescriptorProto.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,2))&&r.writeString(2,o),null!=(o=t.Message.getField(e,3))&&r.writeString(3,o),null!=(o=e.getOptions())&&r.writeMessage(4,o,proto.google.protobuf.MethodOptions.serializeBinaryToWriter),null!=(o=t.Message.getField(e,5))&&r.writeBool(5,o),null!=(o=t.Message.getField(e,6))&&r.writeBool(6,o)},proto.google.protobuf.MethodDescriptorProto.prototype.getName=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.MethodDescriptorProto.prototype.setName=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearName=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasName=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.MethodDescriptorProto.prototype.getInputType=function(){return t.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.MethodDescriptorProto.prototype.setInputType=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearInputType=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasInputType=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.MethodDescriptorProto.prototype.getOutputType=function(){return t.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.MethodDescriptorProto.prototype.setOutputType=function(e){return t.Message.setField(this,3,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearOutputType=function(){return t.Message.setField(this,3,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasOutputType=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.MethodDescriptorProto.prototype.getOptions=function(){return t.Message.getWrapperField(this,proto.google.protobuf.MethodOptions,4)},proto.google.protobuf.MethodDescriptorProto.prototype.setOptions=function(e){return t.Message.setWrapperField(this,4,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasOptions=function(){return null!=t.Message.getField(this,4)},proto.google.protobuf.MethodDescriptorProto.prototype.getClientStreaming=function(){return t.Message.getBooleanFieldWithDefault(this,5,!1)},proto.google.protobuf.MethodDescriptorProto.prototype.setClientStreaming=function(e){return t.Message.setField(this,5,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearClientStreaming=function(){return t.Message.setField(this,5,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasClientStreaming=function(){return null!=t.Message.getField(this,5)},proto.google.protobuf.MethodDescriptorProto.prototype.getServerStreaming=function(){return t.Message.getBooleanFieldWithDefault(this,6,!1)},proto.google.protobuf.MethodDescriptorProto.prototype.setServerStreaming=function(e){return t.Message.setField(this,6,e)},proto.google.protobuf.MethodDescriptorProto.prototype.clearServerStreaming=function(){return t.Message.setField(this,6,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasServerStreaming=function(){return null!=t.Message.getField(this,6)},proto.google.protobuf.FileOptions.repeatedFields_=[999],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileOptions.prototype.toObject=function(e){return proto.google.protobuf.FileOptions.toObject(e,this)},proto.google.protobuf.FileOptions.toObject=function(e,r){var o,s={javaPackage:null==(o=t.Message.getField(r,1))?void 0:o,javaOuterClassname:null==(o=t.Message.getField(r,8))?void 0:o,javaMultipleFiles:t.Message.getBooleanFieldWithDefault(r,10,!1),javaGenerateEqualsAndHash:null==(o=t.Message.getBooleanField(r,20))?void 0:o,javaStringCheckUtf8:t.Message.getBooleanFieldWithDefault(r,27,!1),optimizeFor:t.Message.getFieldWithDefault(r,9,1),goPackage:null==(o=t.Message.getField(r,11))?void 0:o,ccGenericServices:t.Message.getBooleanFieldWithDefault(r,16,!1),javaGenericServices:t.Message.getBooleanFieldWithDefault(r,17,!1),pyGenericServices:t.Message.getBooleanFieldWithDefault(r,18,!1),phpGenericServices:t.Message.getBooleanFieldWithDefault(r,42,!1),deprecated:t.Message.getBooleanFieldWithDefault(r,23,!1),ccEnableArenas:t.Message.getBooleanFieldWithDefault(r,31,!0),objcClassPrefix:null==(o=t.Message.getField(r,36))?void 0:o,csharpNamespace:null==(o=t.Message.getField(r,37))?void 0:o,swiftPrefix:null==(o=t.Message.getField(r,39))?void 0:o,phpClassPrefix:null==(o=t.Message.getField(r,40))?void 0:o,phpNamespace:null==(o=t.Message.getField(r,41))?void 0:o,phpMetadataNamespace:null==(o=t.Message.getField(r,44))?void 0:o,rubyPackage:null==(o=t.Message.getField(r,45))?void 0:o,uninterpretedOptionList:t.Message.toObjectList(r.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return t.Message.toObjectExtension(r,s,proto.google.protobuf.FileOptions.extensions,proto.google.protobuf.FileOptions.prototype.getExtension,e),e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.FileOptions.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.FileOptions;return proto.google.protobuf.FileOptions.deserializeBinaryFromReader(o,r)},proto.google.protobuf.FileOptions.deserializeBinaryFromReader=function(e,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var o=r.readString();e.setJavaPackage(o);break;case 8:o=r.readString(),e.setJavaOuterClassname(o);break;case 10:o=r.readBool(),e.setJavaMultipleFiles(o);break;case 20:o=r.readBool(),e.setJavaGenerateEqualsAndHash(o);break;case 27:o=r.readBool(),e.setJavaStringCheckUtf8(o);break;case 9:o=r.readEnum(),e.setOptimizeFor(o);break;case 11:o=r.readString(),e.setGoPackage(o);break;case 16:o=r.readBool(),e.setCcGenericServices(o);break;case 17:o=r.readBool(),e.setJavaGenericServices(o);break;case 18:o=r.readBool(),e.setPyGenericServices(o);break;case 42:o=r.readBool(),e.setPhpGenericServices(o);break;case 23:o=r.readBool(),e.setDeprecated(o);break;case 31:o=r.readBool(),e.setCcEnableArenas(o);break;case 36:o=r.readString(),e.setObjcClassPrefix(o);break;case 37:o=r.readString(),e.setCsharpNamespace(o);break;case 39:o=r.readString(),e.setSwiftPrefix(o);break;case 40:o=r.readString(),e.setPhpClassPrefix(o);break;case 41:o=r.readString(),e.setPhpNamespace(o);break;case 44:o=r.readString(),e.setPhpMetadataNamespace(o);break;case 45:o=r.readString(),e.setRubyPackage(o);break;case 999:o=new proto.google.protobuf.UninterpretedOption,r.readMessage(o,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(o);break;default:t.Message.readBinaryExtension(e,r,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension,proto.google.protobuf.FileOptions.prototype.setExtension)}return e},proto.google.protobuf.FileOptions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.FileOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FileOptions.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,8))&&r.writeString(8,o),null!=(o=t.Message.getField(e,10))&&r.writeBool(10,o),null!=(o=t.Message.getField(e,20))&&r.writeBool(20,o),null!=(o=t.Message.getField(e,27))&&r.writeBool(27,o),null!=(o=t.Message.getField(e,9))&&r.writeEnum(9,o),null!=(o=t.Message.getField(e,11))&&r.writeString(11,o),null!=(o=t.Message.getField(e,16))&&r.writeBool(16,o),null!=(o=t.Message.getField(e,17))&&r.writeBool(17,o),null!=(o=t.Message.getField(e,18))&&r.writeBool(18,o),null!=(o=t.Message.getField(e,42))&&r.writeBool(42,o),null!=(o=t.Message.getField(e,23))&&r.writeBool(23,o),null!=(o=t.Message.getField(e,31))&&r.writeBool(31,o),null!=(o=t.Message.getField(e,36))&&r.writeString(36,o),null!=(o=t.Message.getField(e,37))&&r.writeString(37,o),null!=(o=t.Message.getField(e,39))&&r.writeString(39,o),null!=(o=t.Message.getField(e,40))&&r.writeString(40,o),null!=(o=t.Message.getField(e,41))&&r.writeString(41,o),null!=(o=t.Message.getField(e,44))&&r.writeString(44,o),null!=(o=t.Message.getField(e,45))&&r.writeString(45,o),(o=e.getUninterpretedOptionList()).length>0&&r.writeRepeatedMessage(999,o,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),t.Message.serializeBinaryExtensions(e,r,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension)},proto.google.protobuf.FileOptions.OptimizeMode={SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3},proto.google.protobuf.FileOptions.prototype.getJavaPackage=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.FileOptions.prototype.setJavaPackage=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.FileOptions.prototype.clearJavaPackage=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaPackage=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.FileOptions.prototype.getJavaOuterClassname=function(){return t.Message.getFieldWithDefault(this,8,"")},proto.google.protobuf.FileOptions.prototype.setJavaOuterClassname=function(e){return t.Message.setField(this,8,e)},proto.google.protobuf.FileOptions.prototype.clearJavaOuterClassname=function(){return t.Message.setField(this,8,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaOuterClassname=function(){return null!=t.Message.getField(this,8)},proto.google.protobuf.FileOptions.prototype.getJavaMultipleFiles=function(){return t.Message.getBooleanFieldWithDefault(this,10,!1)},proto.google.protobuf.FileOptions.prototype.setJavaMultipleFiles=function(e){return t.Message.setField(this,10,e)},proto.google.protobuf.FileOptions.prototype.clearJavaMultipleFiles=function(){return t.Message.setField(this,10,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaMultipleFiles=function(){return null!=t.Message.getField(this,10)},proto.google.protobuf.FileOptions.prototype.getJavaGenerateEqualsAndHash=function(){return t.Message.getBooleanFieldWithDefault(this,20,!1)},proto.google.protobuf.FileOptions.prototype.setJavaGenerateEqualsAndHash=function(e){return t.Message.setField(this,20,e)},proto.google.protobuf.FileOptions.prototype.clearJavaGenerateEqualsAndHash=function(){return t.Message.setField(this,20,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaGenerateEqualsAndHash=function(){return null!=t.Message.getField(this,20)},proto.google.protobuf.FileOptions.prototype.getJavaStringCheckUtf8=function(){return t.Message.getBooleanFieldWithDefault(this,27,!1)},proto.google.protobuf.FileOptions.prototype.setJavaStringCheckUtf8=function(e){return t.Message.setField(this,27,e)},proto.google.protobuf.FileOptions.prototype.clearJavaStringCheckUtf8=function(){return t.Message.setField(this,27,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaStringCheckUtf8=function(){return null!=t.Message.getField(this,27)},proto.google.protobuf.FileOptions.prototype.getOptimizeFor=function(){return t.Message.getFieldWithDefault(this,9,1)},proto.google.protobuf.FileOptions.prototype.setOptimizeFor=function(e){return t.Message.setField(this,9,e)},proto.google.protobuf.FileOptions.prototype.clearOptimizeFor=function(){return t.Message.setField(this,9,void 0)},proto.google.protobuf.FileOptions.prototype.hasOptimizeFor=function(){return null!=t.Message.getField(this,9)},proto.google.protobuf.FileOptions.prototype.getGoPackage=function(){return t.Message.getFieldWithDefault(this,11,"")},proto.google.protobuf.FileOptions.prototype.setGoPackage=function(e){return t.Message.setField(this,11,e)},proto.google.protobuf.FileOptions.prototype.clearGoPackage=function(){return t.Message.setField(this,11,void 0)},proto.google.protobuf.FileOptions.prototype.hasGoPackage=function(){return null!=t.Message.getField(this,11)},proto.google.protobuf.FileOptions.prototype.getCcGenericServices=function(){return t.Message.getBooleanFieldWithDefault(this,16,!1)},proto.google.protobuf.FileOptions.prototype.setCcGenericServices=function(e){return t.Message.setField(this,16,e)},proto.google.protobuf.FileOptions.prototype.clearCcGenericServices=function(){return t.Message.setField(this,16,void 0)},proto.google.protobuf.FileOptions.prototype.hasCcGenericServices=function(){return null!=t.Message.getField(this,16)},proto.google.protobuf.FileOptions.prototype.getJavaGenericServices=function(){return t.Message.getBooleanFieldWithDefault(this,17,!1)},proto.google.protobuf.FileOptions.prototype.setJavaGenericServices=function(e){return t.Message.setField(this,17,e)},proto.google.protobuf.FileOptions.prototype.clearJavaGenericServices=function(){return t.Message.setField(this,17,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaGenericServices=function(){return null!=t.Message.getField(this,17)},proto.google.protobuf.FileOptions.prototype.getPyGenericServices=function(){return t.Message.getBooleanFieldWithDefault(this,18,!1)},proto.google.protobuf.FileOptions.prototype.setPyGenericServices=function(e){return t.Message.setField(this,18,e)},proto.google.protobuf.FileOptions.prototype.clearPyGenericServices=function(){return t.Message.setField(this,18,void 0)},proto.google.protobuf.FileOptions.prototype.hasPyGenericServices=function(){return null!=t.Message.getField(this,18)},proto.google.protobuf.FileOptions.prototype.getPhpGenericServices=function(){return t.Message.getBooleanFieldWithDefault(this,42,!1)},proto.google.protobuf.FileOptions.prototype.setPhpGenericServices=function(e){return t.Message.setField(this,42,e)},proto.google.protobuf.FileOptions.prototype.clearPhpGenericServices=function(){return t.Message.setField(this,42,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpGenericServices=function(){return null!=t.Message.getField(this,42)},proto.google.protobuf.FileOptions.prototype.getDeprecated=function(){return t.Message.getBooleanFieldWithDefault(this,23,!1)},proto.google.protobuf.FileOptions.prototype.setDeprecated=function(e){return t.Message.setField(this,23,e)},proto.google.protobuf.FileOptions.prototype.clearDeprecated=function(){return t.Message.setField(this,23,void 0)},proto.google.protobuf.FileOptions.prototype.hasDeprecated=function(){return null!=t.Message.getField(this,23)},proto.google.protobuf.FileOptions.prototype.getCcEnableArenas=function(){return t.Message.getBooleanFieldWithDefault(this,31,!0)},proto.google.protobuf.FileOptions.prototype.setCcEnableArenas=function(e){return t.Message.setField(this,31,e)},proto.google.protobuf.FileOptions.prototype.clearCcEnableArenas=function(){return t.Message.setField(this,31,void 0)},proto.google.protobuf.FileOptions.prototype.hasCcEnableArenas=function(){return null!=t.Message.getField(this,31)},proto.google.protobuf.FileOptions.prototype.getObjcClassPrefix=function(){return t.Message.getFieldWithDefault(this,36,"")},proto.google.protobuf.FileOptions.prototype.setObjcClassPrefix=function(e){return t.Message.setField(this,36,e)},proto.google.protobuf.FileOptions.prototype.clearObjcClassPrefix=function(){return t.Message.setField(this,36,void 0)},proto.google.protobuf.FileOptions.prototype.hasObjcClassPrefix=function(){return null!=t.Message.getField(this,36)},proto.google.protobuf.FileOptions.prototype.getCsharpNamespace=function(){return t.Message.getFieldWithDefault(this,37,"")},proto.google.protobuf.FileOptions.prototype.setCsharpNamespace=function(e){return t.Message.setField(this,37,e)},proto.google.protobuf.FileOptions.prototype.clearCsharpNamespace=function(){return t.Message.setField(this,37,void 0)},proto.google.protobuf.FileOptions.prototype.hasCsharpNamespace=function(){return null!=t.Message.getField(this,37)},proto.google.protobuf.FileOptions.prototype.getSwiftPrefix=function(){return t.Message.getFieldWithDefault(this,39,"")},proto.google.protobuf.FileOptions.prototype.setSwiftPrefix=function(e){return t.Message.setField(this,39,e)},proto.google.protobuf.FileOptions.prototype.clearSwiftPrefix=function(){return t.Message.setField(this,39,void 0)},proto.google.protobuf.FileOptions.prototype.hasSwiftPrefix=function(){return null!=t.Message.getField(this,39)},proto.google.protobuf.FileOptions.prototype.getPhpClassPrefix=function(){return t.Message.getFieldWithDefault(this,40,"")},proto.google.protobuf.FileOptions.prototype.setPhpClassPrefix=function(e){return t.Message.setField(this,40,e)},proto.google.protobuf.FileOptions.prototype.clearPhpClassPrefix=function(){return t.Message.setField(this,40,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpClassPrefix=function(){return null!=t.Message.getField(this,40)},proto.google.protobuf.FileOptions.prototype.getPhpNamespace=function(){return t.Message.getFieldWithDefault(this,41,"")},proto.google.protobuf.FileOptions.prototype.setPhpNamespace=function(e){return t.Message.setField(this,41,e)},proto.google.protobuf.FileOptions.prototype.clearPhpNamespace=function(){return t.Message.setField(this,41,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpNamespace=function(){return null!=t.Message.getField(this,41)},proto.google.protobuf.FileOptions.prototype.getPhpMetadataNamespace=function(){return t.Message.getFieldWithDefault(this,44,"")},proto.google.protobuf.FileOptions.prototype.setPhpMetadataNamespace=function(e){return t.Message.setField(this,44,e)},proto.google.protobuf.FileOptions.prototype.clearPhpMetadataNamespace=function(){return t.Message.setField(this,44,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpMetadataNamespace=function(){return null!=t.Message.getField(this,44)},proto.google.protobuf.FileOptions.prototype.getRubyPackage=function(){return t.Message.getFieldWithDefault(this,45,"")},proto.google.protobuf.FileOptions.prototype.setRubyPackage=function(e){return t.Message.setField(this,45,e)},proto.google.protobuf.FileOptions.prototype.clearRubyPackage=function(){return t.Message.setField(this,45,void 0)},proto.google.protobuf.FileOptions.prototype.hasRubyPackage=function(){return null!=t.Message.getField(this,45)},proto.google.protobuf.FileOptions.prototype.getUninterpretedOptionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.FileOptions.prototype.setUninterpretedOptionList=function(e){return t.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.FileOptions.prototype.addUninterpretedOption=function(e,r){return t.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,r)},proto.google.protobuf.FileOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.MessageOptions.repeatedFields_=[999],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MessageOptions.prototype.toObject=function(e){return proto.google.protobuf.MessageOptions.toObject(e,this)},proto.google.protobuf.MessageOptions.toObject=function(e,r){var o,s={messageSetWireFormat:t.Message.getBooleanFieldWithDefault(r,1,!1),noStandardDescriptorAccessor:t.Message.getBooleanFieldWithDefault(r,2,!1),deprecated:t.Message.getBooleanFieldWithDefault(r,3,!1),mapEntry:null==(o=t.Message.getBooleanField(r,7))?void 0:o,uninterpretedOptionList:t.Message.toObjectList(r.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return t.Message.toObjectExtension(r,s,proto.google.protobuf.MessageOptions.extensions,proto.google.protobuf.MessageOptions.prototype.getExtension,e),e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.MessageOptions.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.MessageOptions;return proto.google.protobuf.MessageOptions.deserializeBinaryFromReader(o,r)},proto.google.protobuf.MessageOptions.deserializeBinaryFromReader=function(e,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var o=r.readBool();e.setMessageSetWireFormat(o);break;case 2:o=r.readBool(),e.setNoStandardDescriptorAccessor(o);break;case 3:o=r.readBool(),e.setDeprecated(o);break;case 7:o=r.readBool(),e.setMapEntry(o);break;case 999:o=new proto.google.protobuf.UninterpretedOption,r.readMessage(o,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(o);break;default:t.Message.readBinaryExtension(e,r,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension,proto.google.protobuf.MessageOptions.prototype.setExtension)}return e},proto.google.protobuf.MessageOptions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.MessageOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.MessageOptions.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeBool(1,o),null!=(o=t.Message.getField(e,2))&&r.writeBool(2,o),null!=(o=t.Message.getField(e,3))&&r.writeBool(3,o),null!=(o=t.Message.getField(e,7))&&r.writeBool(7,o),(o=e.getUninterpretedOptionList()).length>0&&r.writeRepeatedMessage(999,o,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),t.Message.serializeBinaryExtensions(e,r,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension)},proto.google.protobuf.MessageOptions.prototype.getMessageSetWireFormat=function(){return t.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.MessageOptions.prototype.setMessageSetWireFormat=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.MessageOptions.prototype.clearMessageSetWireFormat=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.MessageOptions.prototype.hasMessageSetWireFormat=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.MessageOptions.prototype.getNoStandardDescriptorAccessor=function(){return t.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.MessageOptions.prototype.setNoStandardDescriptorAccessor=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.MessageOptions.prototype.clearNoStandardDescriptorAccessor=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.MessageOptions.prototype.hasNoStandardDescriptorAccessor=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.MessageOptions.prototype.getDeprecated=function(){return t.Message.getBooleanFieldWithDefault(this,3,!1)},proto.google.protobuf.MessageOptions.prototype.setDeprecated=function(e){return t.Message.setField(this,3,e)},proto.google.protobuf.MessageOptions.prototype.clearDeprecated=function(){return t.Message.setField(this,3,void 0)},proto.google.protobuf.MessageOptions.prototype.hasDeprecated=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.MessageOptions.prototype.getMapEntry=function(){return t.Message.getBooleanFieldWithDefault(this,7,!1)},proto.google.protobuf.MessageOptions.prototype.setMapEntry=function(e){return t.Message.setField(this,7,e)},proto.google.protobuf.MessageOptions.prototype.clearMapEntry=function(){return t.Message.setField(this,7,void 0)},proto.google.protobuf.MessageOptions.prototype.hasMapEntry=function(){return null!=t.Message.getField(this,7)},proto.google.protobuf.MessageOptions.prototype.getUninterpretedOptionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.MessageOptions.prototype.setUninterpretedOptionList=function(e){return t.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.MessageOptions.prototype.addUninterpretedOption=function(e,r){return t.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,r)},proto.google.protobuf.MessageOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.FieldOptions.repeatedFields_=[999],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldOptions.prototype.toObject=function(e){return proto.google.protobuf.FieldOptions.toObject(e,this)},proto.google.protobuf.FieldOptions.toObject=function(e,r){var o,s={ctype:t.Message.getFieldWithDefault(r,1,0),packed:null==(o=t.Message.getBooleanField(r,2))?void 0:o,jstype:t.Message.getFieldWithDefault(r,6,0),lazy:t.Message.getBooleanFieldWithDefault(r,5,!1),unverifiedLazy:t.Message.getBooleanFieldWithDefault(r,15,!1),deprecated:t.Message.getBooleanFieldWithDefault(r,3,!1),weak:t.Message.getBooleanFieldWithDefault(r,10,!1),uninterpretedOptionList:t.Message.toObjectList(r.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return t.Message.toObjectExtension(r,s,proto.google.protobuf.FieldOptions.extensions,proto.google.protobuf.FieldOptions.prototype.getExtension,e),e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.FieldOptions.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.FieldOptions;return proto.google.protobuf.FieldOptions.deserializeBinaryFromReader(o,r)},proto.google.protobuf.FieldOptions.deserializeBinaryFromReader=function(e,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var o=r.readEnum();e.setCtype(o);break;case 2:o=r.readBool(),e.setPacked(o);break;case 6:o=r.readEnum(),e.setJstype(o);break;case 5:o=r.readBool(),e.setLazy(o);break;case 15:o=r.readBool(),e.setUnverifiedLazy(o);break;case 3:o=r.readBool(),e.setDeprecated(o);break;case 10:o=r.readBool(),e.setWeak(o);break;case 999:o=new proto.google.protobuf.UninterpretedOption,r.readMessage(o,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(o);break;default:t.Message.readBinaryExtension(e,r,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension,proto.google.protobuf.FieldOptions.prototype.setExtension)}return e},proto.google.protobuf.FieldOptions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.FieldOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FieldOptions.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeEnum(1,o),null!=(o=t.Message.getField(e,2))&&r.writeBool(2,o),null!=(o=t.Message.getField(e,6))&&r.writeEnum(6,o),null!=(o=t.Message.getField(e,5))&&r.writeBool(5,o),null!=(o=t.Message.getField(e,15))&&r.writeBool(15,o),null!=(o=t.Message.getField(e,3))&&r.writeBool(3,o),null!=(o=t.Message.getField(e,10))&&r.writeBool(10,o),(o=e.getUninterpretedOptionList()).length>0&&r.writeRepeatedMessage(999,o,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),t.Message.serializeBinaryExtensions(e,r,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension)},proto.google.protobuf.FieldOptions.CType={STRING:0,CORD:1,STRING_PIECE:2},proto.google.protobuf.FieldOptions.JSType={JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2},proto.google.protobuf.FieldOptions.prototype.getCtype=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.FieldOptions.prototype.setCtype=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.FieldOptions.prototype.clearCtype=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.FieldOptions.prototype.hasCtype=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.FieldOptions.prototype.getPacked=function(){return t.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.FieldOptions.prototype.setPacked=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.FieldOptions.prototype.clearPacked=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.FieldOptions.prototype.hasPacked=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.FieldOptions.prototype.getJstype=function(){return t.Message.getFieldWithDefault(this,6,0)},proto.google.protobuf.FieldOptions.prototype.setJstype=function(e){return t.Message.setField(this,6,e)},proto.google.protobuf.FieldOptions.prototype.clearJstype=function(){return t.Message.setField(this,6,void 0)},proto.google.protobuf.FieldOptions.prototype.hasJstype=function(){return null!=t.Message.getField(this,6)},proto.google.protobuf.FieldOptions.prototype.getLazy=function(){return t.Message.getBooleanFieldWithDefault(this,5,!1)},proto.google.protobuf.FieldOptions.prototype.setLazy=function(e){return t.Message.setField(this,5,e)},proto.google.protobuf.FieldOptions.prototype.clearLazy=function(){return t.Message.setField(this,5,void 0)},proto.google.protobuf.FieldOptions.prototype.hasLazy=function(){return null!=t.Message.getField(this,5)},proto.google.protobuf.FieldOptions.prototype.getUnverifiedLazy=function(){return t.Message.getBooleanFieldWithDefault(this,15,!1)},proto.google.protobuf.FieldOptions.prototype.setUnverifiedLazy=function(e){return t.Message.setField(this,15,e)},proto.google.protobuf.FieldOptions.prototype.clearUnverifiedLazy=function(){return t.Message.setField(this,15,void 0)},proto.google.protobuf.FieldOptions.prototype.hasUnverifiedLazy=function(){return null!=t.Message.getField(this,15)},proto.google.protobuf.FieldOptions.prototype.getDeprecated=function(){return t.Message.getBooleanFieldWithDefault(this,3,!1)},proto.google.protobuf.FieldOptions.prototype.setDeprecated=function(e){return t.Message.setField(this,3,e)},proto.google.protobuf.FieldOptions.prototype.clearDeprecated=function(){return t.Message.setField(this,3,void 0)},proto.google.protobuf.FieldOptions.prototype.hasDeprecated=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.FieldOptions.prototype.getWeak=function(){return t.Message.getBooleanFieldWithDefault(this,10,!1)},proto.google.protobuf.FieldOptions.prototype.setWeak=function(e){return t.Message.setField(this,10,e)},proto.google.protobuf.FieldOptions.prototype.clearWeak=function(){return t.Message.setField(this,10,void 0)},proto.google.protobuf.FieldOptions.prototype.hasWeak=function(){return null!=t.Message.getField(this,10)},proto.google.protobuf.FieldOptions.prototype.getUninterpretedOptionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.FieldOptions.prototype.setUninterpretedOptionList=function(e){return t.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.FieldOptions.prototype.addUninterpretedOption=function(e,r){return t.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,r)},proto.google.protobuf.FieldOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.OneofOptions.repeatedFields_=[999],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofOptions.prototype.toObject=function(e){return proto.google.protobuf.OneofOptions.toObject(e,this)},proto.google.protobuf.OneofOptions.toObject=function(e,r){var o={uninterpretedOptionList:t.Message.toObjectList(r.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return t.Message.toObjectExtension(r,o,proto.google.protobuf.OneofOptions.extensions,proto.google.protobuf.OneofOptions.prototype.getExtension,e),e&&(o.$jspbMessageInstance=r),o}),proto.google.protobuf.OneofOptions.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.OneofOptions;return proto.google.protobuf.OneofOptions.deserializeBinaryFromReader(o,r)},proto.google.protobuf.OneofOptions.deserializeBinaryFromReader=function(e,r){for(;r.nextField()&&!r.isEndGroup();)if(999===r.getFieldNumber()){var o=new proto.google.protobuf.UninterpretedOption;r.readMessage(o,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(o)}else t.Message.readBinaryExtension(e,r,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension,proto.google.protobuf.OneofOptions.prototype.setExtension);return e},proto.google.protobuf.OneofOptions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.OneofOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.OneofOptions.serializeBinaryToWriter=function(e,r){var o;(o=e.getUninterpretedOptionList()).length>0&&r.writeRepeatedMessage(999,o,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),t.Message.serializeBinaryExtensions(e,r,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension)},proto.google.protobuf.OneofOptions.prototype.getUninterpretedOptionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.OneofOptions.prototype.setUninterpretedOptionList=function(e){return t.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.OneofOptions.prototype.addUninterpretedOption=function(e,r){return t.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,r)},proto.google.protobuf.OneofOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.EnumOptions.repeatedFields_=[999],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumOptions.prototype.toObject=function(e){return proto.google.protobuf.EnumOptions.toObject(e,this)},proto.google.protobuf.EnumOptions.toObject=function(e,r){var o,s={allowAlias:null==(o=t.Message.getBooleanField(r,2))?void 0:o,deprecated:t.Message.getBooleanFieldWithDefault(r,3,!1),uninterpretedOptionList:t.Message.toObjectList(r.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return t.Message.toObjectExtension(r,s,proto.google.protobuf.EnumOptions.extensions,proto.google.protobuf.EnumOptions.prototype.getExtension,e),e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.EnumOptions.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.EnumOptions;return proto.google.protobuf.EnumOptions.deserializeBinaryFromReader(o,r)},proto.google.protobuf.EnumOptions.deserializeBinaryFromReader=function(e,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 2:var o=r.readBool();e.setAllowAlias(o);break;case 3:o=r.readBool(),e.setDeprecated(o);break;case 999:o=new proto.google.protobuf.UninterpretedOption,r.readMessage(o,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(o);break;default:t.Message.readBinaryExtension(e,r,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension,proto.google.protobuf.EnumOptions.prototype.setExtension)}return e},proto.google.protobuf.EnumOptions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.EnumOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumOptions.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,2))&&r.writeBool(2,o),null!=(o=t.Message.getField(e,3))&&r.writeBool(3,o),(o=e.getUninterpretedOptionList()).length>0&&r.writeRepeatedMessage(999,o,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),t.Message.serializeBinaryExtensions(e,r,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension)},proto.google.protobuf.EnumOptions.prototype.getAllowAlias=function(){return t.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.EnumOptions.prototype.setAllowAlias=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.EnumOptions.prototype.clearAllowAlias=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.EnumOptions.prototype.hasAllowAlias=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.EnumOptions.prototype.getDeprecated=function(){return t.Message.getBooleanFieldWithDefault(this,3,!1)},proto.google.protobuf.EnumOptions.prototype.setDeprecated=function(e){return t.Message.setField(this,3,e)},proto.google.protobuf.EnumOptions.prototype.clearDeprecated=function(){return t.Message.setField(this,3,void 0)},proto.google.protobuf.EnumOptions.prototype.hasDeprecated=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.EnumOptions.prototype.getUninterpretedOptionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.EnumOptions.prototype.setUninterpretedOptionList=function(e){return t.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.EnumOptions.prototype.addUninterpretedOption=function(e,r){return t.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,r)},proto.google.protobuf.EnumOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.EnumValueOptions.repeatedFields_=[999],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueOptions.prototype.toObject=function(e){return proto.google.protobuf.EnumValueOptions.toObject(e,this)},proto.google.protobuf.EnumValueOptions.toObject=function(e,r){var o={deprecated:t.Message.getBooleanFieldWithDefault(r,1,!1),uninterpretedOptionList:t.Message.toObjectList(r.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return t.Message.toObjectExtension(r,o,proto.google.protobuf.EnumValueOptions.extensions,proto.google.protobuf.EnumValueOptions.prototype.getExtension,e),e&&(o.$jspbMessageInstance=r),o}),proto.google.protobuf.EnumValueOptions.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.EnumValueOptions;return proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader(o,r)},proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader=function(e,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var o=r.readBool();e.setDeprecated(o);break;case 999:o=new proto.google.protobuf.UninterpretedOption,r.readMessage(o,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(o);break;default:t.Message.readBinaryExtension(e,r,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension,proto.google.protobuf.EnumValueOptions.prototype.setExtension)}return e},proto.google.protobuf.EnumValueOptions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeBool(1,o),(o=e.getUninterpretedOptionList()).length>0&&r.writeRepeatedMessage(999,o,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),t.Message.serializeBinaryExtensions(e,r,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension)},proto.google.protobuf.EnumValueOptions.prototype.getDeprecated=function(){return t.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.EnumValueOptions.prototype.setDeprecated=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.EnumValueOptions.prototype.clearDeprecated=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.EnumValueOptions.prototype.hasDeprecated=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.EnumValueOptions.prototype.getUninterpretedOptionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.EnumValueOptions.prototype.setUninterpretedOptionList=function(e){return t.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.EnumValueOptions.prototype.addUninterpretedOption=function(e,r){return t.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,r)},proto.google.protobuf.EnumValueOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.ServiceOptions.repeatedFields_=[999],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceOptions.prototype.toObject=function(e){return proto.google.protobuf.ServiceOptions.toObject(e,this)},proto.google.protobuf.ServiceOptions.toObject=function(e,r){var o={deprecated:t.Message.getBooleanFieldWithDefault(r,33,!1),uninterpretedOptionList:t.Message.toObjectList(r.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return t.Message.toObjectExtension(r,o,proto.google.protobuf.ServiceOptions.extensions,proto.google.protobuf.ServiceOptions.prototype.getExtension,e),e&&(o.$jspbMessageInstance=r),o}),proto.google.protobuf.ServiceOptions.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.ServiceOptions;return proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader(o,r)},proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader=function(e,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 33:var o=r.readBool();e.setDeprecated(o);break;case 999:o=new proto.google.protobuf.UninterpretedOption,r.readMessage(o,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(o);break;default:t.Message.readBinaryExtension(e,r,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension,proto.google.protobuf.ServiceOptions.prototype.setExtension)}return e},proto.google.protobuf.ServiceOptions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.ServiceOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.ServiceOptions.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,33))&&r.writeBool(33,o),(o=e.getUninterpretedOptionList()).length>0&&r.writeRepeatedMessage(999,o,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),t.Message.serializeBinaryExtensions(e,r,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension)},proto.google.protobuf.ServiceOptions.prototype.getDeprecated=function(){return t.Message.getBooleanFieldWithDefault(this,33,!1)},proto.google.protobuf.ServiceOptions.prototype.setDeprecated=function(e){return t.Message.setField(this,33,e)},proto.google.protobuf.ServiceOptions.prototype.clearDeprecated=function(){return t.Message.setField(this,33,void 0)},proto.google.protobuf.ServiceOptions.prototype.hasDeprecated=function(){return null!=t.Message.getField(this,33)},proto.google.protobuf.ServiceOptions.prototype.getUninterpretedOptionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.ServiceOptions.prototype.setUninterpretedOptionList=function(e){return t.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.ServiceOptions.prototype.addUninterpretedOption=function(e,r){return t.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,r)},proto.google.protobuf.ServiceOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.MethodOptions.repeatedFields_=[999],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodOptions.prototype.toObject=function(e){return proto.google.protobuf.MethodOptions.toObject(e,this)},proto.google.protobuf.MethodOptions.toObject=function(e,r){var o={deprecated:t.Message.getBooleanFieldWithDefault(r,33,!1),idempotencyLevel:t.Message.getFieldWithDefault(r,34,0),uninterpretedOptionList:t.Message.toObjectList(r.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,e)};return t.Message.toObjectExtension(r,o,proto.google.protobuf.MethodOptions.extensions,proto.google.protobuf.MethodOptions.prototype.getExtension,e),e&&(o.$jspbMessageInstance=r),o}),proto.google.protobuf.MethodOptions.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.MethodOptions;return proto.google.protobuf.MethodOptions.deserializeBinaryFromReader(o,r)},proto.google.protobuf.MethodOptions.deserializeBinaryFromReader=function(e,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 33:var o=r.readBool();e.setDeprecated(o);break;case 34:o=r.readEnum(),e.setIdempotencyLevel(o);break;case 999:o=new proto.google.protobuf.UninterpretedOption,r.readMessage(o,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),e.addUninterpretedOption(o);break;default:t.Message.readBinaryExtension(e,r,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension,proto.google.protobuf.MethodOptions.prototype.setExtension)}return e},proto.google.protobuf.MethodOptions.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.MethodOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.MethodOptions.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,33))&&r.writeBool(33,o),null!=(o=t.Message.getField(e,34))&&r.writeEnum(34,o),(o=e.getUninterpretedOptionList()).length>0&&r.writeRepeatedMessage(999,o,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),t.Message.serializeBinaryExtensions(e,r,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension)},proto.google.protobuf.MethodOptions.IdempotencyLevel={IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2},proto.google.protobuf.MethodOptions.prototype.getDeprecated=function(){return t.Message.getBooleanFieldWithDefault(this,33,!1)},proto.google.protobuf.MethodOptions.prototype.setDeprecated=function(e){return t.Message.setField(this,33,e)},proto.google.protobuf.MethodOptions.prototype.clearDeprecated=function(){return t.Message.setField(this,33,void 0)},proto.google.protobuf.MethodOptions.prototype.hasDeprecated=function(){return null!=t.Message.getField(this,33)},proto.google.protobuf.MethodOptions.prototype.getIdempotencyLevel=function(){return t.Message.getFieldWithDefault(this,34,0)},proto.google.protobuf.MethodOptions.prototype.setIdempotencyLevel=function(e){return t.Message.setField(this,34,e)},proto.google.protobuf.MethodOptions.prototype.clearIdempotencyLevel=function(){return t.Message.setField(this,34,void 0)},proto.google.protobuf.MethodOptions.prototype.hasIdempotencyLevel=function(){return null!=t.Message.getField(this,34)},proto.google.protobuf.MethodOptions.prototype.getUninterpretedOptionList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.MethodOptions.prototype.setUninterpretedOptionList=function(e){return t.Message.setRepeatedWrapperField(this,999,e)},proto.google.protobuf.MethodOptions.prototype.addUninterpretedOption=function(e,r){return t.Message.addToRepeatedWrapperField(this,999,e,proto.google.protobuf.UninterpretedOption,r)},proto.google.protobuf.MethodOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.UninterpretedOption.repeatedFields_=[2],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.prototype.toObject=function(e){return proto.google.protobuf.UninterpretedOption.toObject(e,this)},proto.google.protobuf.UninterpretedOption.toObject=function(e,r){var o,s={nameList:t.Message.toObjectList(r.getNameList(),proto.google.protobuf.UninterpretedOption.NamePart.toObject,e),identifierValue:null==(o=t.Message.getField(r,3))?void 0:o,positiveIntValue:null==(o=t.Message.getField(r,4))?void 0:o,negativeIntValue:null==(o=t.Message.getField(r,5))?void 0:o,doubleValue:null==(o=t.Message.getOptionalFloatingPointField(r,6))?void 0:o,stringValue:r.getStringValue_asB64(),aggregateValue:null==(o=t.Message.getField(r,8))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.UninterpretedOption.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.UninterpretedOption;return proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader(o,r)},proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=new proto.google.protobuf.UninterpretedOption.NamePart;t.readMessage(r,proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader),e.addName(r);break;case 3:r=t.readString(),e.setIdentifierValue(r);break;case 4:r=t.readUint64(),e.setPositiveIntValue(r);break;case 5:r=t.readInt64(),e.setNegativeIntValue(r);break;case 6:r=t.readDouble(),e.setDoubleValue(r);break;case 7:r=t.readBytes(),e.setStringValue(r);break;case 8:r=t.readString(),e.setAggregateValue(r);break;default:t.skipField()}return e},proto.google.protobuf.UninterpretedOption.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter=function(e,r){var o=void 0;(o=e.getNameList()).length>0&&r.writeRepeatedMessage(2,o,proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter),null!=(o=t.Message.getField(e,3))&&r.writeString(3,o),null!=(o=t.Message.getField(e,4))&&r.writeUint64(4,o),null!=(o=t.Message.getField(e,5))&&r.writeInt64(5,o),null!=(o=t.Message.getField(e,6))&&r.writeDouble(6,o),null!=(o=t.Message.getField(e,7))&&r.writeBytes(7,o),null!=(o=t.Message.getField(e,8))&&r.writeString(8,o)},t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.NamePart.prototype.toObject=function(e){return proto.google.protobuf.UninterpretedOption.NamePart.toObject(e,this)},proto.google.protobuf.UninterpretedOption.NamePart.toObject=function(e,r){var o,s={namePart:null==(o=t.Message.getField(r,1))?void 0:o,isExtension:null==(o=t.Message.getBooleanField(r,2))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.UninterpretedOption.NamePart;return proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader(o,r)},proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setNamePart(r);break;case 2:r=t.readBool(),e.setIsExtension(r);break;default:t.skipField()}return e},proto.google.protobuf.UninterpretedOption.NamePart.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,2))&&r.writeBool(2,o)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.getNamePart=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.UninterpretedOption.NamePart.prototype.setNamePart=function(e){return t.Message.setField(this,1,e)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearNamePart=function(){return t.Message.setField(this,1,void 0)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasNamePart=function(){return null!=t.Message.getField(this,1)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.getIsExtension=function(){return t.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.setIsExtension=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearIsExtension=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasIsExtension=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.UninterpretedOption.prototype.getNameList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption.NamePart,2)},proto.google.protobuf.UninterpretedOption.prototype.setNameList=function(e){return t.Message.setRepeatedWrapperField(this,2,e)},proto.google.protobuf.UninterpretedOption.prototype.addName=function(e,r){return t.Message.addToRepeatedWrapperField(this,2,e,proto.google.protobuf.UninterpretedOption.NamePart,r)},proto.google.protobuf.UninterpretedOption.prototype.clearNameList=function(){return this.setNameList([])},proto.google.protobuf.UninterpretedOption.prototype.getIdentifierValue=function(){return t.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.UninterpretedOption.prototype.setIdentifierValue=function(e){return t.Message.setField(this,3,e)},proto.google.protobuf.UninterpretedOption.prototype.clearIdentifierValue=function(){return t.Message.setField(this,3,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasIdentifierValue=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.UninterpretedOption.prototype.getPositiveIntValue=function(){return t.Message.getFieldWithDefault(this,4,0)},proto.google.protobuf.UninterpretedOption.prototype.setPositiveIntValue=function(e){return t.Message.setField(this,4,e)},proto.google.protobuf.UninterpretedOption.prototype.clearPositiveIntValue=function(){return t.Message.setField(this,4,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasPositiveIntValue=function(){return null!=t.Message.getField(this,4)},proto.google.protobuf.UninterpretedOption.prototype.getNegativeIntValue=function(){return t.Message.getFieldWithDefault(this,5,0)},proto.google.protobuf.UninterpretedOption.prototype.setNegativeIntValue=function(e){return t.Message.setField(this,5,e)},proto.google.protobuf.UninterpretedOption.prototype.clearNegativeIntValue=function(){return t.Message.setField(this,5,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasNegativeIntValue=function(){return null!=t.Message.getField(this,5)},proto.google.protobuf.UninterpretedOption.prototype.getDoubleValue=function(){return t.Message.getFloatingPointFieldWithDefault(this,6,0)},proto.google.protobuf.UninterpretedOption.prototype.setDoubleValue=function(e){return t.Message.setField(this,6,e)},proto.google.protobuf.UninterpretedOption.prototype.clearDoubleValue=function(){return t.Message.setField(this,6,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasDoubleValue=function(){return null!=t.Message.getField(this,6)},proto.google.protobuf.UninterpretedOption.prototype.getStringValue=function(){return t.Message.getFieldWithDefault(this,7,"")},proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asB64=function(){return t.Message.bytesAsB64(this.getStringValue())},proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asU8=function(){return t.Message.bytesAsU8(this.getStringValue())},proto.google.protobuf.UninterpretedOption.prototype.setStringValue=function(e){return t.Message.setField(this,7,e)},proto.google.protobuf.UninterpretedOption.prototype.clearStringValue=function(){return t.Message.setField(this,7,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasStringValue=function(){return null!=t.Message.getField(this,7)},proto.google.protobuf.UninterpretedOption.prototype.getAggregateValue=function(){return t.Message.getFieldWithDefault(this,8,"")},proto.google.protobuf.UninterpretedOption.prototype.setAggregateValue=function(e){return t.Message.setField(this,8,e)},proto.google.protobuf.UninterpretedOption.prototype.clearAggregateValue=function(){return t.Message.setField(this,8,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasAggregateValue=function(){return null!=t.Message.getField(this,8)},proto.google.protobuf.SourceCodeInfo.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.prototype.toObject=function(e){return proto.google.protobuf.SourceCodeInfo.toObject(e,this)},proto.google.protobuf.SourceCodeInfo.toObject=function(e,r){var o={locationList:t.Message.toObjectList(r.getLocationList(),proto.google.protobuf.SourceCodeInfo.Location.toObject,e)};return e&&(o.$jspbMessageInstance=r),o}),proto.google.protobuf.SourceCodeInfo.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.SourceCodeInfo;return proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader(o,r)},proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.google.protobuf.SourceCodeInfo.Location;t.readMessage(r,proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader),e.addLocation(r)}else t.skipField();return e},proto.google.protobuf.SourceCodeInfo.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter=function(e,t){var r;(r=e.getLocationList()).length>0&&t.writeRepeatedMessage(1,r,proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter)},proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_=[1,2,6],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.Location.prototype.toObject=function(e){return proto.google.protobuf.SourceCodeInfo.Location.toObject(e,this)},proto.google.protobuf.SourceCodeInfo.Location.toObject=function(e,r){var o,s={pathList:null==(o=t.Message.getRepeatedField(r,1))?void 0:o,spanList:null==(o=t.Message.getRepeatedField(r,2))?void 0:o,leadingComments:null==(o=t.Message.getField(r,3))?void 0:o,trailingComments:null==(o=t.Message.getField(r,4))?void 0:o,leadingDetachedCommentsList:null==(o=t.Message.getRepeatedField(r,6))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.SourceCodeInfo.Location.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.SourceCodeInfo.Location;return proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader(o,r)},proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedInt32():[t.readInt32()],o=0;o<r.length;o++)e.addPath(r[o]);break;case 2:for(r=t.isDelimited()?t.readPackedInt32():[t.readInt32()],o=0;o<r.length;o++)e.addSpan(r[o]);break;case 3:var s=t.readString();e.setLeadingComments(s);break;case 4:s=t.readString(),e.setTrailingComments(s);break;case 6:s=t.readString(),e.addLeadingDetachedComments(s);break;default:t.skipField()}return e},proto.google.protobuf.SourceCodeInfo.Location.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter=function(e,r){var o=void 0;(o=e.getPathList()).length>0&&r.writePackedInt32(1,o),(o=e.getSpanList()).length>0&&r.writePackedInt32(2,o),null!=(o=t.Message.getField(e,3))&&r.writeString(3,o),null!=(o=t.Message.getField(e,4))&&r.writeString(4,o),(o=e.getLeadingDetachedCommentsList()).length>0&&r.writeRepeatedString(6,o)},proto.google.protobuf.SourceCodeInfo.Location.prototype.getPathList=function(){return t.Message.getRepeatedField(this,1)},proto.google.protobuf.SourceCodeInfo.Location.prototype.setPathList=function(e){return t.Message.setField(this,1,e||[])},proto.google.protobuf.SourceCodeInfo.Location.prototype.addPath=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearPathList=function(){return this.setPathList([])},proto.google.protobuf.SourceCodeInfo.Location.prototype.getSpanList=function(){return t.Message.getRepeatedField(this,2)},proto.google.protobuf.SourceCodeInfo.Location.prototype.setSpanList=function(e){return t.Message.setField(this,2,e||[])},proto.google.protobuf.SourceCodeInfo.Location.prototype.addSpan=function(e,r){return t.Message.addToRepeatedField(this,2,e,r)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearSpanList=function(){return this.setSpanList([])},proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingComments=function(){return t.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingComments=function(e){return t.Message.setField(this,3,e)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingComments=function(){return t.Message.setField(this,3,void 0)},proto.google.protobuf.SourceCodeInfo.Location.prototype.hasLeadingComments=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.SourceCodeInfo.Location.prototype.getTrailingComments=function(){return t.Message.getFieldWithDefault(this,4,"")},proto.google.protobuf.SourceCodeInfo.Location.prototype.setTrailingComments=function(e){return t.Message.setField(this,4,e)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearTrailingComments=function(){return t.Message.setField(this,4,void 0)},proto.google.protobuf.SourceCodeInfo.Location.prototype.hasTrailingComments=function(){return null!=t.Message.getField(this,4)},proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingDetachedCommentsList=function(){return t.Message.getRepeatedField(this,6)},proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingDetachedCommentsList=function(e){return t.Message.setField(this,6,e||[])},proto.google.protobuf.SourceCodeInfo.Location.prototype.addLeadingDetachedComments=function(e,r){return t.Message.addToRepeatedField(this,6,e,r)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingDetachedCommentsList=function(){return this.setLeadingDetachedCommentsList([])},proto.google.protobuf.SourceCodeInfo.prototype.getLocationList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.SourceCodeInfo.Location,1)},proto.google.protobuf.SourceCodeInfo.prototype.setLocationList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},proto.google.protobuf.SourceCodeInfo.prototype.addLocation=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,proto.google.protobuf.SourceCodeInfo.Location,r)},proto.google.protobuf.SourceCodeInfo.prototype.clearLocationList=function(){return this.setLocationList([])},proto.google.protobuf.GeneratedCodeInfo.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.prototype.toObject=function(e){return proto.google.protobuf.GeneratedCodeInfo.toObject(e,this)},proto.google.protobuf.GeneratedCodeInfo.toObject=function(e,r){var o={annotationList:t.Message.toObjectList(r.getAnnotationList(),proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject,e)};return e&&(o.$jspbMessageInstance=r),o}),proto.google.protobuf.GeneratedCodeInfo.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.GeneratedCodeInfo;return proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader(o,r)},proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new proto.google.protobuf.GeneratedCodeInfo.Annotation;t.readMessage(r,proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader),e.addAnnotation(r)}else t.skipField();return e},proto.google.protobuf.GeneratedCodeInfo.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter=function(e,t){var r;(r=e.getAnnotationList()).length>0&&t.writeRepeatedMessage(1,r,proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter)},proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.toObject=function(e){return proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e,this)},proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject=function(e,r){var o,s={pathList:null==(o=t.Message.getRepeatedField(r,1))?void 0:o,sourceFile:null==(o=t.Message.getField(r,2))?void 0:o,begin:null==(o=t.Message.getField(r,3))?void 0:o,end:null==(o=t.Message.getField(r,4))?void 0:o};return e&&(s.$jspbMessageInstance=r),s}),proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinary=function(e){var r=new t.BinaryReader(e),o=new proto.google.protobuf.GeneratedCodeInfo.Annotation;return proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(o,r)},proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedInt32():[t.readInt32()],o=0;o<r.length;o++)e.addPath(r[o]);break;case 2:var s=t.readString();e.setSourceFile(s);break;case 3:s=t.readInt32(),e.setBegin(s);break;case 4:s=t.readInt32(),e.setEnd(s);break;default:t.skipField()}return e},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter=function(e,r){var o=void 0;(o=e.getPathList()).length>0&&r.writePackedInt32(1,o),null!=(o=t.Message.getField(e,2))&&r.writeString(2,o),null!=(o=t.Message.getField(e,3))&&r.writeInt32(3,o),null!=(o=t.Message.getField(e,4))&&r.writeInt32(4,o)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getPathList=function(){return t.Message.getRepeatedField(this,1)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setPathList=function(e){return t.Message.setField(this,1,e||[])},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.addPath=function(e,r){return t.Message.addToRepeatedField(this,1,e,r)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearPathList=function(){return this.setPathList([])},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getSourceFile=function(){return t.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setSourceFile=function(e){return t.Message.setField(this,2,e)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearSourceFile=function(){return t.Message.setField(this,2,void 0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasSourceFile=function(){return null!=t.Message.getField(this,2)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getBegin=function(){return t.Message.getFieldWithDefault(this,3,0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setBegin=function(e){return t.Message.setField(this,3,e)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearBegin=function(){return t.Message.setField(this,3,void 0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasBegin=function(){return null!=t.Message.getField(this,3)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getEnd=function(){return t.Message.getFieldWithDefault(this,4,0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setEnd=function(e){return t.Message.setField(this,4,e)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearEnd=function(){return t.Message.setField(this,4,void 0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasEnd=function(){return null!=t.Message.getField(this,4)},proto.google.protobuf.GeneratedCodeInfo.prototype.getAnnotationList=function(){return t.Message.getRepeatedWrapperField(this,proto.google.protobuf.GeneratedCodeInfo.Annotation,1)},proto.google.protobuf.GeneratedCodeInfo.prototype.setAnnotationList=function(e){return t.Message.setRepeatedWrapperField(this,1,e)},proto.google.protobuf.GeneratedCodeInfo.prototype.addAnnotation=function(e,r){return t.Message.addToRepeatedWrapperField(this,1,e,proto.google.protobuf.GeneratedCodeInfo.Annotation,r)},proto.google.protobuf.GeneratedCodeInfo.prototype.clearAnnotationList=function(){return this.setAnnotationList([])},r.object.extend(e,proto.google.protobuf)),descriptor_pb;var e,t,r,o}function requireExtensions_pb(){return hasRequiredExtensions_pb||(hasRequiredExtensions_pb=1,e=extensions_pb,t=requireGoogleProtobuf(),r=t,o={},s=requireDescriptor_pb(),r.object.extend(o,s),r.exportSymbol("RetrySemantic",null,o),r.exportSymbol("retrySemantic",null,o),o.RetrySemantic={NOTRETRYABLE:0,RETRYABLE:1},o.retrySemantic=new t.ExtensionFieldInfo(5e4,{retrySemantic:0},null,null,0),s.MessageOptions.extensionsBinary[5e4]=new t.ExtensionFieldBinaryInfo(o.retrySemantic,t.BinaryReader.prototype.readEnum,t.BinaryWriter.prototype.writeEnum,void 0,void 0,!1),s.MessageOptions.extensions[5e4]=o.retrySemantic,r.object.extend(e,o)),extensions_pb;var e,t,r,o,s}function requireCachepubsub_pb(){return hasRequiredCachepubsub_pb||(hasRequiredCachepubsub_pb=1,function(e){var t=requireGoogleProtobuf(),r=t,o={},s=requireCommon_pb();r.object.extend(o,s);var n=requireExtensions_pb();r.object.extend(o,n),r.exportSymbol("_Discontinuity",null,o),r.exportSymbol("_Heartbeat",null,o),r.exportSymbol("_PublishRequest",null,o),r.exportSymbol("_SubscriptionItem",null,o),r.exportSymbol("_SubscriptionItem.KindCase",null,o),r.exportSymbol("_SubscriptionRequest",null,o),r.exportSymbol("_TopicItem",null,o),r.exportSymbol("_TopicValue",null,o),r.exportSymbol("_TopicValue.KindCase",null,o),o._PublishRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._PublishRequest,t.Message),r.DEBUG&&!COMPILED&&(o._PublishRequest.displayName="proto._PublishRequest"),o._SubscriptionRequest=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._SubscriptionRequest,t.Message),r.DEBUG&&!COMPILED&&(o._SubscriptionRequest.displayName="proto._SubscriptionRequest"),o._SubscriptionItem=function(e){t.Message.initialize(this,e,0,-1,null,o._SubscriptionItem.oneofGroups_)},r.inherits(o._SubscriptionItem,t.Message),r.DEBUG&&!COMPILED&&(o._SubscriptionItem.displayName="proto._SubscriptionItem"),o._TopicItem=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._TopicItem,t.Message),r.DEBUG&&!COMPILED&&(o._TopicItem.displayName="proto._TopicItem"),o._TopicValue=function(e){t.Message.initialize(this,e,0,-1,null,o._TopicValue.oneofGroups_)},r.inherits(o._TopicValue,t.Message),r.DEBUG&&!COMPILED&&(o._TopicValue.displayName="proto._TopicValue"),o._Discontinuity=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Discontinuity,t.Message),r.DEBUG&&!COMPILED&&(o._Discontinuity.displayName="proto._Discontinuity"),o._Heartbeat=function(e){t.Message.initialize(this,e,0,-1,null,null)},r.inherits(o._Heartbeat,t.Message),r.DEBUG&&!COMPILED&&(o._Heartbeat.displayName="proto._Heartbeat"),t.Message.GENERATE_TO_OBJECT&&(o._PublishRequest.prototype.toObject=function(e){return o._PublishRequest.toObject(e,this)},o._PublishRequest.toObject=function(e,r){var s,n={cacheName:t.Message.getFieldWithDefault(r,1,""),topic:t.Message.getFieldWithDefault(r,2,""),value:(s=r.getValue())&&o._TopicValue.toObject(e,s)};return e&&(n.$jspbMessageInstance=r),n}),o._PublishRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._PublishRequest;return o._PublishRequest.deserializeBinaryFromReader(s,r)},o._PublishRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:r=t.readString();e.setTopic(r);break;case 3:r=new o._TopicValue;t.readMessage(r,o._TopicValue.deserializeBinaryFromReader),e.setValue(r);break;default:t.skipField()}}return e},o._PublishRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._PublishRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._PublishRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getTopic()).length>0&&t.writeString(2,r),null!=(r=e.getValue())&&t.writeMessage(3,r,o._TopicValue.serializeBinaryToWriter)},o._PublishRequest.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._PublishRequest.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},o._PublishRequest.prototype.getTopic=function(){return t.Message.getFieldWithDefault(this,2,"")},o._PublishRequest.prototype.setTopic=function(e){return t.Message.setProto3StringField(this,2,e)},o._PublishRequest.prototype.getValue=function(){return t.Message.getWrapperField(this,o._TopicValue,3)},o._PublishRequest.prototype.setValue=function(e){return t.Message.setWrapperField(this,3,e)},o._PublishRequest.prototype.clearValue=function(){return this.setValue(void 0)},o._PublishRequest.prototype.hasValue=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(o._SubscriptionRequest.prototype.toObject=function(e){return o._SubscriptionRequest.toObject(e,this)},o._SubscriptionRequest.toObject=function(e,r){var o={cacheName:t.Message.getFieldWithDefault(r,1,""),topic:t.Message.getFieldWithDefault(r,2,""),resumeAtTopicSequenceNumber:t.Message.getFieldWithDefault(r,3,0),sequencePage:t.Message.getFieldWithDefault(r,4,0)};return e&&(o.$jspbMessageInstance=r),o}),o._SubscriptionRequest.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SubscriptionRequest;return o._SubscriptionRequest.deserializeBinaryFromReader(s,r)},o._SubscriptionRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:r=t.readString();e.setTopic(r);break;case 3:r=t.readUint64();e.setResumeAtTopicSequenceNumber(r);break;case 4:r=t.readUint64();e.setSequencePage(r);break;default:t.skipField()}}return e},o._SubscriptionRequest.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SubscriptionRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SubscriptionRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getTopic()).length>0&&t.writeString(2,r),0!==(r=e.getResumeAtTopicSequenceNumber())&&t.writeUint64(3,r),0!==(r=e.getSequencePage())&&t.writeUint64(4,r)},o._SubscriptionRequest.prototype.getCacheName=function(){return t.Message.getFieldWithDefault(this,1,"")},o._SubscriptionRequest.prototype.setCacheName=function(e){return t.Message.setProto3StringField(this,1,e)},o._SubscriptionRequest.prototype.getTopic=function(){return t.Message.getFieldWithDefault(this,2,"")},o._SubscriptionRequest.prototype.setTopic=function(e){return t.Message.setProto3StringField(this,2,e)},o._SubscriptionRequest.prototype.getResumeAtTopicSequenceNumber=function(){return t.Message.getFieldWithDefault(this,3,0)},o._SubscriptionRequest.prototype.setResumeAtTopicSequenceNumber=function(e){return t.Message.setProto3IntField(this,3,e)},o._SubscriptionRequest.prototype.getSequencePage=function(){return t.Message.getFieldWithDefault(this,4,0)},o._SubscriptionRequest.prototype.setSequencePage=function(e){return t.Message.setProto3IntField(this,4,e)},o._SubscriptionItem.oneofGroups_=[[1,2,3]],o._SubscriptionItem.KindCase={KIND_NOT_SET:0,ITEM:1,DISCONTINUITY:2,HEARTBEAT:3},o._SubscriptionItem.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o._SubscriptionItem.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._SubscriptionItem.prototype.toObject=function(e){return o._SubscriptionItem.toObject(e,this)},o._SubscriptionItem.toObject=function(e,t){var r,s={item:(r=t.getItem())&&o._TopicItem.toObject(e,r),discontinuity:(r=t.getDiscontinuity())&&o._Discontinuity.toObject(e,r),heartbeat:(r=t.getHeartbeat())&&o._Heartbeat.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),o._SubscriptionItem.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._SubscriptionItem;return o._SubscriptionItem.deserializeBinaryFromReader(s,r)},o._SubscriptionItem.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new o._TopicItem;t.readMessage(r,o._TopicItem.deserializeBinaryFromReader),e.setItem(r);break;case 2:r=new o._Discontinuity;t.readMessage(r,o._Discontinuity.deserializeBinaryFromReader),e.setDiscontinuity(r);break;case 3:r=new o._Heartbeat;t.readMessage(r,o._Heartbeat.deserializeBinaryFromReader),e.setHeartbeat(r);break;default:t.skipField()}}return e},o._SubscriptionItem.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._SubscriptionItem.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._SubscriptionItem.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getItem())&&t.writeMessage(1,r,o._TopicItem.serializeBinaryToWriter),null!=(r=e.getDiscontinuity())&&t.writeMessage(2,r,o._Discontinuity.serializeBinaryToWriter),null!=(r=e.getHeartbeat())&&t.writeMessage(3,r,o._Heartbeat.serializeBinaryToWriter)},o._SubscriptionItem.prototype.getItem=function(){return t.Message.getWrapperField(this,o._TopicItem,1)},o._SubscriptionItem.prototype.setItem=function(e){return t.Message.setOneofWrapperField(this,1,o._SubscriptionItem.oneofGroups_[0],e)},o._SubscriptionItem.prototype.clearItem=function(){return this.setItem(void 0)},o._SubscriptionItem.prototype.hasItem=function(){return null!=t.Message.getField(this,1)},o._SubscriptionItem.prototype.getDiscontinuity=function(){return t.Message.getWrapperField(this,o._Discontinuity,2)},o._SubscriptionItem.prototype.setDiscontinuity=function(e){return t.Message.setOneofWrapperField(this,2,o._SubscriptionItem.oneofGroups_[0],e)},o._SubscriptionItem.prototype.clearDiscontinuity=function(){return this.setDiscontinuity(void 0)},o._SubscriptionItem.prototype.hasDiscontinuity=function(){return null!=t.Message.getField(this,2)},o._SubscriptionItem.prototype.getHeartbeat=function(){return t.Message.getWrapperField(this,o._Heartbeat,3)},o._SubscriptionItem.prototype.setHeartbeat=function(e){return t.Message.setOneofWrapperField(this,3,o._SubscriptionItem.oneofGroups_[0],e)},o._SubscriptionItem.prototype.clearHeartbeat=function(){return this.setHeartbeat(void 0)},o._SubscriptionItem.prototype.hasHeartbeat=function(){return null!=t.Message.getField(this,3)},t.Message.GENERATE_TO_OBJECT&&(o._TopicItem.prototype.toObject=function(e){return o._TopicItem.toObject(e,this)},o._TopicItem.toObject=function(e,r){var s,n={topicSequenceNumber:t.Message.getFieldWithDefault(r,1,0),value:(s=r.getValue())&&o._TopicValue.toObject(e,s),publisherId:t.Message.getFieldWithDefault(r,3,""),sequencePage:t.Message.getFieldWithDefault(r,4,0)};return e&&(n.$jspbMessageInstance=r),n}),o._TopicItem.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._TopicItem;return o._TopicItem.deserializeBinaryFromReader(s,r)},o._TopicItem.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setTopicSequenceNumber(r);break;case 2:r=new o._TopicValue;t.readMessage(r,o._TopicValue.deserializeBinaryFromReader),e.setValue(r);break;case 3:r=t.readString();e.setPublisherId(r);break;case 4:r=t.readUint64();e.setSequencePage(r);break;default:t.skipField()}}return e},o._TopicItem.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._TopicItem.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._TopicItem.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTopicSequenceNumber())&&t.writeUint64(1,r),null!=(r=e.getValue())&&t.writeMessage(2,r,o._TopicValue.serializeBinaryToWriter),(r=e.getPublisherId()).length>0&&t.writeString(3,r),0!==(r=e.getSequencePage())&&t.writeUint64(4,r)},o._TopicItem.prototype.getTopicSequenceNumber=function(){return t.Message.getFieldWithDefault(this,1,0)},o._TopicItem.prototype.setTopicSequenceNumber=function(e){return t.Message.setProto3IntField(this,1,e)},o._TopicItem.prototype.getValue=function(){return t.Message.getWrapperField(this,o._TopicValue,2)},o._TopicItem.prototype.setValue=function(e){return t.Message.setWrapperField(this,2,e)},o._TopicItem.prototype.clearValue=function(){return this.setValue(void 0)},o._TopicItem.prototype.hasValue=function(){return null!=t.Message.getField(this,2)},o._TopicItem.prototype.getPublisherId=function(){return t.Message.getFieldWithDefault(this,3,"")},o._TopicItem.prototype.setPublisherId=function(e){return t.Message.setProto3StringField(this,3,e)},o._TopicItem.prototype.getSequencePage=function(){return t.Message.getFieldWithDefault(this,4,0)},o._TopicItem.prototype.setSequencePage=function(e){return t.Message.setProto3IntField(this,4,e)},o._TopicValue.oneofGroups_=[[1,2]],o._TopicValue.KindCase={KIND_NOT_SET:0,TEXT:1,BINARY:2},o._TopicValue.prototype.getKindCase=function(){return t.Message.computeOneofCase(this,o._TopicValue.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(o._TopicValue.prototype.toObject=function(e){return o._TopicValue.toObject(e,this)},o._TopicValue.toObject=function(e,r){var o={text:t.Message.getFieldWithDefault(r,1,""),binary:r.getBinary_asB64()};return e&&(o.$jspbMessageInstance=r),o}),o._TopicValue.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._TopicValue;return o._TopicValue.deserializeBinaryFromReader(s,r)},o._TopicValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setText(r);break;case 2:r=t.readBytes();e.setBinary(r);break;default:t.skipField()}}return e},o._TopicValue.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._TopicValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._TopicValue.serializeBinaryToWriter=function(e,r){var o=void 0;null!=(o=t.Message.getField(e,1))&&r.writeString(1,o),null!=(o=t.Message.getField(e,2))&&r.writeBytes(2,o)},o._TopicValue.prototype.getText=function(){return t.Message.getFieldWithDefault(this,1,"")},o._TopicValue.prototype.setText=function(e){return t.Message.setOneofField(this,1,o._TopicValue.oneofGroups_[0],e)},o._TopicValue.prototype.clearText=function(){return t.Message.setOneofField(this,1,o._TopicValue.oneofGroups_[0],void 0)},o._TopicValue.prototype.hasText=function(){return null!=t.Message.getField(this,1)},o._TopicValue.prototype.getBinary=function(){return t.Message.getFieldWithDefault(this,2,"")},o._TopicValue.prototype.getBinary_asB64=function(){return t.Message.bytesAsB64(this.getBinary())},o._TopicValue.prototype.getBinary_asU8=function(){return t.Message.bytesAsU8(this.getBinary())},o._TopicValue.prototype.setBinary=function(e){return t.Message.setOneofField(this,2,o._TopicValue.oneofGroups_[0],e)},o._TopicValue.prototype.clearBinary=function(){return t.Message.setOneofField(this,2,o._TopicValue.oneofGroups_[0],void 0)},o._TopicValue.prototype.hasBinary=function(){return null!=t.Message.getField(this,2)},t.Message.GENERATE_TO_OBJECT&&(o._Discontinuity.prototype.toObject=function(e){return o._Discontinuity.toObject(e,this)},o._Discontinuity.toObject=function(e,r){var o={lastTopicSequence:t.Message.getFieldWithDefault(r,1,0),newTopicSequence:t.Message.getFieldWithDefault(r,2,0),newSequencePage:t.Message.getFieldWithDefault(r,3,0)};return e&&(o.$jspbMessageInstance=r),o}),o._Discontinuity.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Discontinuity;return o._Discontinuity.deserializeBinaryFromReader(s,r)},o._Discontinuity.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setLastTopicSequence(r);break;case 2:r=t.readUint64();e.setNewTopicSequence(r);break;case 3:r=t.readUint64();e.setNewSequencePage(r);break;default:t.skipField()}}return e},o._Discontinuity.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Discontinuity.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Discontinuity.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getLastTopicSequence())&&t.writeUint64(1,r),0!==(r=e.getNewTopicSequence())&&t.writeUint64(2,r),0!==(r=e.getNewSequencePage())&&t.writeUint64(3,r)},o._Discontinuity.prototype.getLastTopicSequence=function(){return t.Message.getFieldWithDefault(this,1,0)},o._Discontinuity.prototype.setLastTopicSequence=function(e){return t.Message.setProto3IntField(this,1,e)},o._Discontinuity.prototype.getNewTopicSequence=function(){return t.Message.getFieldWithDefault(this,2,0)},o._Discontinuity.prototype.setNewTopicSequence=function(e){return t.Message.setProto3IntField(this,2,e)},o._Discontinuity.prototype.getNewSequencePage=function(){return t.Message.getFieldWithDefault(this,3,0)},o._Discontinuity.prototype.setNewSequencePage=function(e){return t.Message.setProto3IntField(this,3,e)},t.Message.GENERATE_TO_OBJECT&&(o._Heartbeat.prototype.toObject=function(e){return o._Heartbeat.toObject(e,this)},o._Heartbeat.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),o._Heartbeat.deserializeBinary=function(e){var r=new t.BinaryReader(e),s=new o._Heartbeat;return o._Heartbeat.deserializeBinaryFromReader(s,r)},o._Heartbeat.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},o._Heartbeat.prototype.serializeBinary=function(){var e=new t.BinaryWriter;return o._Heartbeat.serializeBinaryToWriter(this,e),e.getResultBuffer()},o._Heartbeat.serializeBinaryToWriter=function(e,t){},r.object.extend(e,o)}(cachepubsub_pb)),cachepubsub_pb}function requireCachepubsubServiceClientPb(){if(hasRequiredCachepubsubServiceClientPb)return CachepubsubServiceClientPb;hasRequiredCachepubsubServiceClientPb=1;var e=CachepubsubServiceClientPb&&CachepubsubServiceClientPb.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=CachepubsubServiceClientPb&&CachepubsubServiceClientPb.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=CachepubsubServiceClientPb&&CachepubsubServiceClientPb.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var s in r)"default"!==s&&Object.prototype.hasOwnProperty.call(r,s)&&e(o,r,s);return t(o,r),o};Object.defineProperty(CachepubsubServiceClientPb,"__esModule",{value:!0}),CachepubsubServiceClientPb.PubsubClient=void 0;const o=r(requireGrpcWeb()),s=r(requireCachepubsub_pb()),n=r(requireCommon_pb());return CachepubsubServiceClientPb.PubsubClient=class{constructor(e,t,r){this.methodDescriptorPublish=new o.MethodDescriptor("/cache_client.pubsub.Pubsub/Publish",o.MethodType.UNARY,s._PublishRequest,n._Empty,(e=>e.serializeBinary()),n._Empty.deserializeBinary),this.methodDescriptorSubscribe=new o.MethodDescriptor("/cache_client.pubsub.Pubsub/Subscribe",o.MethodType.SERVER_STREAMING,s._SubscriptionRequest,s._SubscriptionItem,(e=>e.serializeBinary()),s._SubscriptionItem.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}publish(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.pubsub.Pubsub/Publish",e,t||{},this.methodDescriptorPublish,r):this.client_.unaryCall(this.hostname_+"/cache_client.pubsub.Pubsub/Publish",e,t||{},this.methodDescriptorPublish)}subscribe(e,t){return this.client_.serverStreaming(this.hostname_+"/cache_client.pubsub.Pubsub/Subscribe",e,t||{},this.methodDescriptorSubscribe)}},CachepubsubServiceClientPb}var AbstractPubsubClient={},subscriptionState={},hasRequiredSubscriptionState,hasRequiredAbstractPubsubClient,hasRequiredPubsubClient;function requireSubscriptionState(){if(hasRequiredSubscriptionState)return subscriptionState;hasRequiredSubscriptionState=1,Object.defineProperty(subscriptionState,"__esModule",{value:!0}),subscriptionState.SubscriptionState=void 0;return subscriptionState.SubscriptionState=class{constructor(){this._unsubscribeFn=()=>{},this._isSubscribed=!1}get resumeAtTopicSequenceNumber(){var e;return(null!==(e=this.lastTopicSequenceNumber)&&void 0!==e?e:-1)+1}get resumeAtTopicSequencePage(){var e;return null!==(e=this.lastTopicSequencePage)&&void 0!==e?e:0}setSubscribed(){this._isSubscribed=!0}setUnsubscribed(){this._isSubscribed=!1}get isSubscribed(){return this._isSubscribed}set unsubscribeFn(e){this._unsubscribeFn=e}unsubscribe(){this.isSubscribed&&(this._unsubscribeFn(),this.setUnsubscribed())}toString(){return JSON.stringify({lastTopicSequenceNumber:this.lastTopicSequenceNumber,lastTopicSequencePage:this.lastTopicSequencePage,isSubscribed:this._isSubscribed},null,2)}},subscriptionState}function requireAbstractPubsubClient(){if(hasRequiredAbstractPubsubClient)return AbstractPubsubClient;hasRequiredAbstractPubsubClient=1,Object.defineProperty(AbstractPubsubClient,"__esModule",{value:!0}),AbstractPubsubClient.AbstractPubsubClient=void 0;const e=requireUtils$1(),t=requireSrc$1(),r=requireSubscriptionState();return AbstractPubsubClient.AbstractPubsubClient=class{constructor(e,t,r,o){this.loggerFactory=e,this.logger=t,this.cacheServiceErrorMapper=r,this.retryStrategy=o}getRetryStrategy(){return this.retryStrategy}getLogger(){return this.logger}getCacheServiceErrorMapper(){return this.cacheServiceErrorMapper}async publish(r,o,s){try{(0,e.validateCacheName)(r),(0,e.validateTopicName)(o)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.TopicPublish.Error(e)))}return this.logger.trace("Issuing publish request; topic: %s, message length: %s",(0,e.truncateString)(o),s.length),await this.sendPublish(r,o,s)}async subscribe(o,s,n){var i,a,u,c,l,p;try{(0,e.validateCacheName)(o),(0,e.validateTopicName)(s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.TopicSubscribe.Error(e)))}this.logger.trace("Issuing subscribe request; topic: %s",(0,e.truncateString)(s));const d=null!==(i=n.onItem)&&void 0!==i?i:()=>{},g=null!==(a=n.onError)&&void 0!==a?a:()=>{},h=null!==(u=n.onDiscontinuity)&&void 0!==u?u:()=>{},f=null!==(c=n.onHeartbeat)&&void 0!==c?c:()=>{},y=null!==(l=n.onConnectionLost)&&void 0!==l?l:()=>{},_=null!==(p=n.onSubscriptionEnd)&&void 0!==p?p:()=>{},R=new r.SubscriptionState,S=new t.TopicSubscribe.Subscription(this.loggerFactory,R);return await this.sendSubscribe({cacheName:o,topicName:s,onItem:d,onError:g,onDiscontinuity:h,onHeartbeat:f,onConnectionLost:y,onSubscriptionEnd:_,subscriptionState:R,subscription:S,restartedDueToError:!1,firstMessage:!0})}prepareEndCallback(e){return()=>{var t,r;return e.restartedDueToError&&e.subscriptionState.isSubscribed?(this.logger.trace("Stream ended after error but was restarted on topic: %s",e.topicName),e.restartedDueToError=!1,void(null===(t=e.onSubscriptionEnd)||void 0===t||t.call(e))):e.subscriptionState.isSubscribed?(this.logger.trace("Stream ended on topic: %s; restarting.",e.topicName),void this.sendSubscribe(e).then((()=>{})).catch((()=>{}))):(this.logger.trace("Stream ended after unsubscribe on topic: %s",e.topicName),void(null===(r=e.onSubscriptionEnd)||void 0===r||r.call(e)))}}handleSubscribeError(t,r,o){if(this.logger.trace("Handling subscribe error"),t.firstMessage)return this.logger.trace("First message on subscription was an error; topic: %s, error: %s",(0,e.truncateString)(t.topicName),r.toString()),t.resolve(r),void t.subscription.unsubscribe();this.logger.trace("Subscribe error was not the first message on the stream."),this.logger.trace("Checking to see if we should attempt to reconnect subscription."),null===o?(this.logger.trace("Error occurred on subscription, not attempting to reconnect: %s",r.toString()),t.subscription.unsubscribe(),t.onError(r,t.subscription)):(t.restartedDueToError=!0,this.logger.trace("Error occurred on subscription, possibly a network interruption. Will attempt to restart stream in %s ms.",o),(0,e.sleep)(o).then((()=>{t.subscriptionState.isSubscribed?this.sendSubscribe(t).then((()=>{})).catch((e=>{this.logger.trace("Error when calling sendSubscribe to reconnect: %s",e)})):this.logger.trace("Subscription was unsubscribed before retrying; aborting reconnect.")})).catch((e=>{this.logger.trace("Error when sleeping prior to sendSubscribe to reconnect: %s",e)})))}},AbstractPubsubClient}function requirePubsubClient(){if(hasRequiredPubsubClient)return pubsubClient;hasRequiredPubsubClient=1,Object.defineProperty(pubsubClient,"__esModule",{value:!0}),pubsubClient.PubsubClient=void 0;const e=requireCachepubsubServiceClientPb(),t=requireCachepubsub_pb(),r=requireSrc$1(),o=requireGrpcWeb(),s=requireUtils$1(),n=requireSrc(),i=requireCacheServiceErrorMapper(),a=requireAbstractPubsubClient(),u=requireWebClientUtils(),c=requireClientMetadataProvider(),l=requireUtils();class p extends a.AbstractPubsubClient{constructor(t){super(t.configuration.getLoggerFactory(),t.configuration.getLoggerFactory().getLogger(p.name),new i.CacheServiceErrorMapper(t.configuration.getThrowOnErrors())),this.credentialProvider=t.credentialProvider,this.requestTimeoutMs=p.DEFAULT_REQUEST_TIMEOUT_MS,this.getLogger().debug(`Creating topic client using endpoint: '${(0,u.getWebCacheEndpoint)(t.credentialProvider)}'`),this.client=new e.PubsubClient((0,u.getWebCacheEndpoint)(t.credentialProvider),null,{}),this.clientMetadataProvider=new c.ClientMetadataProvider({authToken:t.credentialProvider.getAuthToken(),clientType:"topic"})}getEndpoint(){const e=(0,u.getWebCacheEndpoint)(this.credentialProvider);return this.getLogger().debug(`Using cache endpoint: ${e}`),e}async sendPublish(e,r,o){const s=new t._TopicValue;"string"==typeof o?s.setText(o):s.setBinary((0,u.convertToB64String)(o));const i=new t._PublishRequest;return i.setCacheName(e),i.setTopic(r),i.setValue(s),await new Promise(((t,r)=>{this.client.publish(i,{...this.clientMetadataProvider.createClientMetadata(),...(0,u.createCallMetadata)(e,this.requestTimeoutMs)},((e,o)=>{o?t(new n.TopicPublish.Success):this.getCacheServiceErrorMapper().resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new n.TopicPublish.Error(e),resolveFn:t,rejectFn:r})}))}))}sendSubscribe(e){const r=new t._SubscriptionRequest;r.setCacheName(e.cacheName),r.setTopic(e.topicName),r.setResumeAtTopicSequenceNumber(e.subscriptionState.resumeAtTopicSequenceNumber),r.setSequencePage(e.subscriptionState.resumeAtTopicSequencePage),this.getLogger().trace(`Subscribing to topic with resume_at_topic_sequence_number ${e.subscriptionState.resumeAtTopicSequenceNumber} and sequence_page ${e.subscriptionState.resumeAtTopicSequencePage}`);const o=this.client.subscribe(r,{...this.clientMetadataProvider.createClientMetadata()});return e.subscriptionState.setSubscribed(),e.subscriptionState.unsubscribeFn=()=>{o.cancel()},new Promise((t=>{const r={...e,restartedDueToError:!1,firstMessage:!e.subscriptionState.resumeAtTopicSequenceNumber,resolve:t};o.on("data",this.prepareDataCallback(r)),o.on("error",this.prepareErrorCallback(r)),o.on("end",this.prepareEndCallback(r))}))}prepareDataCallback(e){return t=>{var o,i;e.firstMessage&&e.resolve(e.subscription),e.firstMessage=!1;const a=t.getItem(),u=t.getDiscontinuity();if(a){const t=a.getTopicSequenceNumber(),u=a.getSequencePage();e.subscriptionState.lastTopicSequenceNumber=t,e.subscriptionState.lastTopicSequencePage=u;const c=a.getPublisherId(),l=null===(o=a.getValue())||void 0===o?void 0:o.getText(),p=null===(i=a.getValue())||void 0===i?void 0:i.getBinary();this.getLogger().trace(`Received an item on subscription stream; topic: ${(0,s.truncateString)(e.topicName)}; sequence number: ${t}; sequence page: ${u}`),l?e.onItem(new r.TopicItem(l,t,{tokenId:c})):p?e.onItem(new r.TopicItem(p,t,{tokenId:c})):(this.getLogger().error(`Received subscription item with unknown type; topic: ${(0,s.truncateString)(e.topicName)}`),e.onError(new n.TopicSubscribe.Error(new r.UnknownError("Unknown item value type")),e.subscription))}else if(t.getHeartbeat())this.getLogger().trace(`Received heartbeat from subscription stream; topic: ${(0,s.truncateString)(e.topicName)}`),e.onHeartbeat(new r.TopicHeartbeat);else if(u){const t=new r.TopicDiscontinuity(u.getLastTopicSequence(),u.getNewTopicSequence(),u.getNewSequencePage());this.getLogger().trace(`Received a discontinuity; topic: ${(0,s.truncateString)(e.topicName)}; ${t.toString()}`),e.subscriptionState.lastTopicSequenceNumber=u.getNewTopicSequence(),e.subscriptionState.lastTopicSequencePage=u.getNewSequencePage(),e.onDiscontinuity(t)}else this.getLogger().error(`Received unknown subscription item; topic: ${(0,s.truncateString)(e.topicName)}`),e.onError(new n.TopicSubscribe.Error(new r.UnknownError("Unknown item type")),e.subscription)}}prepareErrorCallback(e){return t=>{if(!e.subscriptionState.isSubscribed)return;const s=t,i=s.code===o.StatusCode.UNKNOWN&&s.message===p.BROWSER_DISCONNECT,a=s.code===o.StatusCode.INTERNAL&&s.message===p.RST_STREAM_NO_ERROR_MESSAGE,u=i||a?r.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS:null,c=new n.TopicSubscribe.Error(this.getCacheServiceErrorMapper().convertError(s));this.handleSubscribeError(e,c,u)}}}return pubsubClient.PubsubClient=p,p.DEFAULT_REQUEST_TIMEOUT_MS=(0,l.secondsToMilliseconds)(5),p.RST_STREAM_NO_ERROR_MESSAGE="Received RST_STREAM with code 0",p.BROWSER_DISCONNECT="Http response at 400 or 500 level, http status code: 0",pubsubClient}var AbstractTopicClient={},hasRequiredAbstractTopicClient;function requireAbstractTopicClient(){if(hasRequiredAbstractTopicClient)return AbstractTopicClient;hasRequiredAbstractTopicClient=1,Object.defineProperty(AbstractTopicClient,"__esModule",{value:!0}),AbstractTopicClient.AbstractTopicClient=void 0;const e=requireSrc$1(),t=requireErrors();class r{constructor(e){this.numActiveSubscriptions=0,this.client=e}}return AbstractTopicClient.AbstractTopicClient=class{constructor(e,t,o,s){this.nextPubsubStreamClientIndex=0,this.nextPubsubUnaryClientIndex=0,this.logger=e,this.pubsubStreamClients=t.map((e=>new r(e))),this.pubsubUnaryClients=o,this.webhookClient=s,this.maxConcurrentSubscriptions=100*this.pubsubStreamClients.length}async publish(e,t,r){return await this.getNextPublishClient().publish(e,t,r)}async subscribe(t,r,o){try{const{client:e,decrementSubscriptionCount:s}=this.getNextSubscribeClient(),n={...o,onSubscriptionEnd:()=>{var e;null===(e=o.onSubscriptionEnd)||void 0===e||e.call(o),s()}};return await e.subscribe(t,r,n)}catch(t){return new e.TopicSubscribe.Error(t)}}async deleteWebhook(e,t){return await this.webhookClient.deleteWebhook({cacheName:e,webhookName:t})}async listWebhooks(e){return await this.webhookClient.listWebhooks(e)}async putWebhook(t,r,o){let s=o.destination;return"string"==typeof s&&(s=new e.PostUrlWebhookDestination(s)),await this.webhookClient.putWebhook({topicName:o.topicName,id:{cacheName:t,webhookName:r},destination:s})}async getWebhookSecret(e,t){return await this.webhookClient.getWebhookSecret({cacheName:e,webhookName:t})}async rotateWebhookSecret(e,t){return await this.webhookClient.rotateWebhookSecret({cacheName:e,webhookName:t})}getNextPublishClient(){const e=this.pubsubUnaryClients[this.nextPubsubUnaryClientIndex];return this.nextPubsubUnaryClientIndex=(this.nextPubsubUnaryClientIndex+1)%this.pubsubUnaryClients.length,e}getNextSubscribeClient(){let e=0;for(const t of this.pubsubStreamClients)e+=t.numActiveSubscriptions;if(e<this.maxConcurrentSubscriptions)for(let e=0;e<this.maxConcurrentSubscriptions;e++){const e=this.pubsubStreamClients[this.nextPubsubStreamClientIndex%this.pubsubStreamClients.length];if(e.numActiveSubscriptions<100)return this.nextPubsubStreamClientIndex++,e.numActiveSubscriptions++,{client:e.client,decrementSubscriptionCount:()=>{e.numActiveSubscriptions--}}}throw new t.ClientResourceExhaustedError("Already at maximum number of subscriptions")}},AbstractTopicClient}var webhookClient={},hasRequiredWebhookClient,hasRequiredTopicClient;function requireWebhookClient(){if(hasRequiredWebhookClient)return webhookClient;hasRequiredWebhookClient=1,Object.defineProperty(webhookClient,"__esModule",{value:!0}),webhookClient.WebhookClient=void 0;const e=requireWebhookServiceClientPb(),t=requireSrc$1(),r=requireCacheServiceErrorMapper(),o=requireUtils$1(),s=requireWebClientUtils(),n=requireClientMetadataProvider(),i=requireWebhook_pb();return webhookClient.WebhookClient=class{constructor(t){this.configuration=t.configuration,this.credentialProvider=t.credentialProvider,this.logger=this.configuration.getLoggerFactory().getLogger(this),this.cacheServiceErrorMapper=new r.CacheServiceErrorMapper(t.configuration.getThrowOnErrors()),this.logger.debug(`Creating webhook client using endpoint: '${(0,s.getWebControlEndpoint)(this.credentialProvider)}'`),this.webhookClient=new e.WebhookClient((0,s.getWebControlEndpoint)(t.credentialProvider),null,{}),this.clientMetadataProvider=new n.ClientMetadataProvider({authToken:t.credentialProvider.getAuthToken(),clientType:"webhook"})}async deleteWebhook(e){try{(0,o.validateCacheName)(e.cacheName)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.DeleteWebhook.Error(e)))}const r=new i._DeleteWebhookRequest,s=new i._WebhookId;return s.setWebhookName(e.webhookName),s.setCacheName(e.cacheName),r.setWebhookId(s),r.setWebhookId(s),this.logger.debug('issuing "DeleteWebhook" request'),await new Promise(((e,o)=>{this.webhookClient.deleteWebhook(r,this.clientMetadataProvider.createClientMetadata(),((r,s)=>{r?this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new t.DeleteWebhook.Error(e),resolveFn:e,rejectFn:o}):e(new t.DeleteWebhook.Success)}))}))}async listWebhooks(e){try{(0,o.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.ListWebhooks.Error(e)))}const r=new i._ListWebhookRequest;return r.setCacheName(e),this.logger.debug('issuing "ListWebhooks" request'),await new Promise(((e,o)=>{this.webhookClient.listWebhooks(r,this.clientMetadataProvider.createClientMetadata(),((r,s)=>{if(r||!s)this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new t.ListWebhooks.Error(e),resolveFn:e,rejectFn:o});else{const r=s.getWebhookList().map((e=>{var r,o,s,n,i,a,u;return{id:{cacheName:null!==(o=null===(r=e.getWebhookId())||void 0===r?void 0:r.getCacheName())&&void 0!==o?o:"",webhookName:null!==(n=null===(s=e.getWebhookId())||void 0===s?void 0:s.getWebhookName())&&void 0!==n?n:""},topicName:null!==(i=e.getTopicName())&&void 0!==i?i:"",destination:new t.PostUrlWebhookDestination(null!==(u=null===(a=e.getDestination())||void 0===a?void 0:a.getPostUrl())&&void 0!==u?u:"")}}));e(new t.ListWebhooks.Success(r))}}))}))}async putWebhook(e){try{(0,o.validateCacheName)(e.id.cacheName),(0,o.validateTopicName)(e.topicName),(0,o.validateWebhookName)(e.id.webhookName)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.PutWebhook.Error(e)))}const r=new i._PutWebhookRequest,s=new i._Webhook,n=new i._WebhookId;n.setWebhookName(e.id.webhookName),n.setCacheName(e.id.cacheName),s.setWebhookId(n),s.setTopicName(e.topicName);const a=new i._WebhookDestination;if(e.destination.getType()===t.WebhookDestinationType.PostUrl)a.setPostUrl(e.destination.url());return s.setDestination(a),r.setWebhook(s),this.logger.debug('issuing "PutWebhook" request'),await new Promise(((e,o)=>{this.webhookClient.putWebhook(r,this.clientMetadataProvider.createClientMetadata(),((r,s)=>{r||!s?this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new t.PutWebhook.Error(e),resolveFn:e,rejectFn:o}):e(new t.PutWebhook.Success(s.getSecretString()))}))}))}async getWebhookSecret(e){try{(0,o.validateCacheName)(e.cacheName),(0,o.validateWebhookName)(e.webhookName)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.GetWebhookSecret.Error(e)))}const r=new i._GetWebhookSecretRequest;return r.setCacheName(e.cacheName),r.setWebhookName(e.webhookName),this.logger.debug('issuing "GetWebhookSecret" request'),await new Promise(((e,o)=>{this.webhookClient.getWebhookSecret(r,this.clientMetadataProvider.createClientMetadata(),((r,s)=>{r||!s?this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new t.GetWebhookSecret.Error(e),resolveFn:e,rejectFn:o}):e(new t.GetWebhookSecret.Success({secret:s.getSecretString(),webhookName:s.getWebhookName(),cacheName:s.getCacheName()}))}))}))}async rotateWebhookSecret(e){try{(0,o.validateCacheName)(e.cacheName),(0,o.validateWebhookName)(e.webhookName)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,(e=>new t.RotateWebhookSecret.Error(e)))}const r=new i._RotateWebhookSecretRequest,s=new i._WebhookId;return s.setWebhookName(e.webhookName),s.setCacheName(e.cacheName),r.setWebhookId(s),this.logger.debug('issuing "RotateWebhookSecret" request'),await new Promise(((o,s)=>{this.webhookClient.rotateWebhookSecret(r,this.clientMetadataProvider.createClientMetadata(),((r,n)=>{r||!n?this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new t.RotateWebhookSecret.Error(e),resolveFn:o,rejectFn:s}):o(new t.RotateWebhookSecret.Success({secret:n.getSecretString(),webhookName:e.webhookName,cacheName:e.cacheName}))}))}))}},webhookClient}function requireTopicClient(){if(hasRequiredTopicClient)return topicClient$1;hasRequiredTopicClient=1,Object.defineProperty(topicClient$1,"__esModule",{value:!0}),topicClient$1.TopicClient=void 0;const e=requireSrc(),t=requirePubsubClient(),r=requireAbstractTopicClient(),o=requireWebhookClient(),s=requireSrc$1();class n extends r.AbstractTopicClient{constructor(r){var i,a;const u=null!==(i=r?.configuration)&&void 0!==i?i:function(){const t=e.TopicConfigurations.Default.latest();return t.getLoggerFactory().getLogger("TopicClient").info('No configuration provided to TopicClient. Using latest "Default" configuration, suitable for development. For production use, consider specifying an explicit configuration.'),t}(),c={configuration:u,credentialProvider:null!==(a=r?.credentialProvider)&&void 0!==a?a:(0,s.getDefaultCredentialProvider)()};super(u.getLoggerFactory().getLogger(n.name),[new t.PubsubClient(c)],[new t.PubsubClient(c)],new o.WebhookClient(c)),this.logger.debug("Instantiated Momento TopicClient")}}return topicClient$1.TopicClient=n,topicClient$1}var previewLeaderboardClient={},leaderboard={},hasRequiredLeaderboard;function requireLeaderboard(){if(hasRequiredLeaderboard)return leaderboard;hasRequiredLeaderboard=1,Object.defineProperty(leaderboard,"__esModule",{value:!0}),leaderboard.Leaderboard=void 0;const e=requireSrc$1(),t=requireLeaderboard$1(),r=requireUtils$1();class o extends t.AbstractLeaderboard{constructor(t,o,s){try{(0,r.validateCacheName)(o),(0,r.validateLeaderboardName)(s)}catch{throw new e.InvalidArgumentError("cache name and leaderboard name must not be empty strings")}super(o,s,t)}}return leaderboard.Leaderboard=o,leaderboard}var leaderboardDataClient={},hasRequiredLeaderboardDataClient,hasRequiredPreviewLeaderboardClient;function requireLeaderboardDataClient(){if(hasRequiredLeaderboardDataClient)return leaderboardDataClient;hasRequiredLeaderboardDataClient=1,Object.defineProperty(leaderboardDataClient,"__esModule",{value:!0}),leaderboardDataClient.LeaderboardDataClient=void 0;const e=requireSrc$1(),t=requireUtils$1(),r=requireWebClientUtils(),o=requireDist(),s=requireLeaderboard_pb(),n=requireClientMetadataProvider(),i=requireCacheServiceErrorMapper(),a=requireGrpcResponseTypes(),u=requireCommon_pb();return leaderboardDataClient.LeaderboardDataClient=class{constructor(e){this.logger=e.configuration.getLoggerFactory().getLogger(this),this.cacheServiceErrorMapper=new i.CacheServiceErrorMapper(e.configuration.getThrowOnErrors()),this.logger.debug(`Creating data client using endpoint: '${(0,r.getWebCacheEndpoint)(e.credentialProvider)}`),this.clientMetadataProvider=new n.ClientMetadataProvider({authToken:e.credentialProvider.getAuthToken(),clientType:"leaderboard"}),this.deadlineMillis=e.configuration.getTransportStrategy().getGrpcConfig().getDeadlineMillis(),this.client=new o.leaderboard.LeaderboardClient((0,r.getWebCacheEndpoint)(e.credentialProvider),null,{})}close(){this.logger.debug("Closing cache control client")}convertMapOrRecordToElementsList(e){const t=[];return e instanceof Map?e.forEach(((e,r)=>{const o=new s._Element;o.setId(r),o.setScore(e),t.push(o)})):Object.entries(e).forEach((e=>{const r=new s._Element;r.setId(Number(e[0])),r.setScore(e[1]),t.push(r)})),t}convertToRankedElementsList(e){return e.map((e=>new a._RankedElement(e.getId(),e.getScore(),e.getRank())))}async upsert(r,o,s){const n=s instanceof Map?s.size:Object.keys(s).length;try{(0,t.validateLeaderboardNumberOfElements)(n)}catch(t){return this.cacheServiceErrorMapper.returnOrThrowError(t,(t=>new e.LeaderboardUpsert.Error(t)))}return this.logger.trace(`Issuing 'upsert' request; cache: ${r}, leaderboard: ${o}, number of elements: ${n}`),await this.sendUpsert(r,o,s)}async sendUpsert(t,o,n){const i=new s._UpsertElementsRequest;return i.setLeaderboard(o),i.setElementsList(this.convertMapOrRecordToElementsList(n)),await new Promise(((o,s)=>{this.client.upsertElements(i,{...this.clientMetadataProvider.createClientMetadata(),...(0,r.createCallMetadata)(t,this.deadlineMillis)},((t,r)=>{r?o(new e.LeaderboardUpsert.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:t=>new e.LeaderboardUpsert.Error(t),resolveFn:o,rejectFn:s})}))}))}async fetchByScore(r,o,s,n,i,a,u){var c;const l=void 0===a?0:a,p=void 0===u?8192:u,d=i??e.LeaderboardOrder.Ascending;try{(0,t.validateSortedSetScores)(s,n),(0,t.validateLeaderboardOffset)(l),(0,t.validateLeaderboardCount)(p)}catch(t){return this.cacheServiceErrorMapper.returnOrThrowError(t,(t=>new e.LeaderboardFetch.Error(t)))}return this.logger.trace(`Issuing 'fetchByScore' request; cache: ${r}, leaderboard: ${o}, order: ${d.toString()}, minScore: ${s??"null"}, maxScore: ${null!==(c=n?.toString())&&void 0!==c?c:"null"}, offset: ${l.toString()}, count: ${p.toString()}`),await this.sendFetchByScore(r,o,d,l,p,s,n)}async sendFetchByScore(t,o,n,i,a,c,l){const p=new s._GetByScoreRequest;p.setLeaderboard(o),p.setOffset(i),p.setLimitElements(a);const d=n===e.LeaderboardOrder.Descending?s._Order.DESCENDING:s._Order.ASCENDING;p.setOrder(d);const g=new s._ScoreRange;return void 0!==c?g.setMinInclusive(c):g.setUnboundedMin(new u._Unbounded),void 0!==l?g.setMaxExclusive(l):g.setUnboundedMax(new u._Unbounded),p.setScoreRange(g),await new Promise(((o,s)=>{this.client.getByScore(p,{...this.clientMetadataProvider.createClientMetadata(),...(0,r.createCallMetadata)(t,this.deadlineMillis)},((t,r)=>{if(r){const t=r.getElementsList();o(new e.LeaderboardFetch.Success(this.convertToRankedElementsList(t)))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:t=>new e.LeaderboardFetch.Error(t),resolveFn:o,rejectFn:s})}))}))}async fetchByRank(r,o,s,n,i){const a=i??e.LeaderboardOrder.Ascending;try{(0,t.validateLeaderboardRanks)(s,n)}catch(t){return this.cacheServiceErrorMapper.returnOrThrowError(t,(t=>new e.LeaderboardFetch.Error(t)))}return this.logger.trace(`Issuing 'fetchByRank' request; cache: ${r}, leaderboard: ${o}, order: ${a.toString()}, startRank: ${s}, endRank: ${n}`),await this.sendFetchByRank(r,o,s,n,a)}async sendFetchByRank(t,o,n,i,a){const u=new s._GetByRankRequest;u.setLeaderboard(o);const c=a===e.LeaderboardOrder.Descending?s._Order.DESCENDING:s._Order.ASCENDING;u.setOrder(c);const l=new s._RankRange;return l.setStartInclusive(n),l.setEndExclusive(i),u.setRankRange(l),await new Promise(((o,s)=>{this.client.getByRank(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,r.createCallMetadata)(t,this.deadlineMillis)},((t,r)=>{if(r){const t=r.getElementsList();o(new e.LeaderboardFetch.Success(this.convertToRankedElementsList(t)))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:t=>new e.LeaderboardFetch.Error(t),resolveFn:o,rejectFn:s})}))}))}async getRank(t,r,o,s){const n=s??e.LeaderboardOrder.Ascending;return this.logger.trace(`Issuing 'getRank' request; cache: ${t}, leaderboard: ${r}, order: ${n.toString()}, number of ids: ${o.length}`),await this.sendGetRank(t,r,o,n)}async sendGetRank(t,o,n,i){const a=new s._GetRankRequest;a.setLeaderboard(o),a.setIdsList(n);const u=i===e.LeaderboardOrder.Descending?s._Order.DESCENDING:s._Order.ASCENDING;return a.setOrder(u),await new Promise(((o,s)=>{this.client.getRank(a,{...this.clientMetadataProvider.createClientMetadata(),...(0,r.createCallMetadata)(t,this.deadlineMillis)},((t,r)=>{if(r){const t=r.getElementsList();o(new e.LeaderboardFetch.Success(this.convertToRankedElementsList(t)))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:t=>new e.LeaderboardFetch.Error(t),resolveFn:o,rejectFn:s})}))}))}async length(e,t){return this.logger.trace(`Issuing 'length' request; cache: ${e}, leaderboard: ${t}`),await this.sendLength(e,t)}async sendLength(t,o){const n=new s._GetLeaderboardLengthRequest;return n.setLeaderboard(o),await new Promise(((o,s)=>{this.client.getLeaderboardLength(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,r.createCallMetadata)(t,this.deadlineMillis)},((t,r)=>{if(r){const t=r.getCount();o(new e.LeaderboardLength.Success(t))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:t=>new e.LeaderboardLength.Error(t),resolveFn:o,rejectFn:s})}))}))}async removeElements(r,o,s){try{(0,t.validateLeaderboardNumberOfElements)(s.length)}catch(t){return this.cacheServiceErrorMapper.returnOrThrowError(t,(t=>new e.LeaderboardRemoveElements.Error(t)))}return this.logger.trace(`Issuing 'removeElements' request; cache: ${r}, leaderboard: ${o}, number of elements: ${s.length.toString()}`),await this.sendRemoveElements(r,o,s)}async sendRemoveElements(t,o,n){const i=new s._RemoveElementsRequest;return i.setLeaderboard(o),i.setIdsList(n),await new Promise(((o,s)=>{this.client.removeElements(i,{...this.clientMetadataProvider.createClientMetadata(),...(0,r.createCallMetadata)(t,this.deadlineMillis)},((t,r)=>{r?o(new e.LeaderboardRemoveElements.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:t=>new e.LeaderboardRemoveElements.Error(t),resolveFn:o,rejectFn:s})}))}))}async delete(e,t){return this.logger.trace(`Issuing 'delete' request; cache: ${e}, leaderboard: ${t}`),await this.sendDelete(e,t)}async sendDelete(t,o){const n=new s._DeleteLeaderboardRequest;return n.setLeaderboard(o),await new Promise(((o,s)=>{this.client.deleteLeaderboard(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,r.createCallMetadata)(t,this.deadlineMillis)},((t,r)=>{r?o(new e.LeaderboardDelete.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:t=>new e.LeaderboardDelete.Error(t),resolveFn:o,rejectFn:s})}))}))}},leaderboardDataClient}function requirePreviewLeaderboardClient(){if(hasRequiredPreviewLeaderboardClient)return previewLeaderboardClient;hasRequiredPreviewLeaderboardClient=1,Object.defineProperty(previewLeaderboardClient,"__esModule",{value:!0}),previewLeaderboardClient.PreviewLeaderboardClient=void 0;const e=requireLeaderboard(),t=requireLeaderboardDataClient(),r=requireSrc$1(),o=requireSrc();function s(){const e=o.LeaderboardConfigurations.Laptop.latest();return e.getLoggerFactory().getLogger("LeaderboardClient").info('No configuration provided to LeaderboardClient. Using default "Laptop" configuration, suitable for development. For production use, consider specifying an explicit configuration.'),e}return previewLeaderboardClient.PreviewLeaderboardClient=class{constructor(e){var o,n;const i={configuration:null!==(o=e?.configuration)&&void 0!==o?o:s(),credentialProvider:null!==(n=e?.credentialProvider)&&void 0!==n?n:(0,r.getDefaultCredentialProvider)()};this.dataClient=new t.LeaderboardDataClient(i)}close(){this.dataClient.close()}leaderboard(t,r){return new e.Leaderboard(this.dataClient,t,r)}},previewLeaderboardClient}var configurations={},configuration={},hasRequiredConfiguration;function requireConfiguration(){if(hasRequiredConfiguration)return configuration;hasRequiredConfiguration=1,Object.defineProperty(configuration,"__esModule",{value:!0}),configuration.CacheConfiguration=void 0;class e{constructor(e){this.middlewares=[],this.loggerFactory=e.loggerFactory,this.transportStrategy=e.transportStrategy,this.middlewares=e.middlewares,this.throwOnErrors=e.throwOnErrors,this.readConcern=e.readConcern}getLoggerFactory(){return this.loggerFactory}getTransportStrategy(){return this.transportStrategy}withTransportStrategy(t){return new e({...this,transportStrategy:t})}getMiddlewares(){return this.middlewares}withMiddlewares(t){return new e({...this,middlewares:t})}withClientTimeoutMillis(t){return new e({...this,transportStrategy:this.transportStrategy.withClientTimeoutMillis(t)})}getThrowOnErrors(){return this.throwOnErrors}withThrowOnErrors(t){return new e({...this,throwOnErrors:t})}getReadConcern(){return this.readConcern}withReadConcern(t){return new e({...this,readConcern:t})}}return configuration.CacheConfiguration=e,configuration}var transport={},grpcConfiguration={},hasRequiredGrpcConfiguration;function requireGrpcConfiguration(){return hasRequiredGrpcConfiguration||(hasRequiredGrpcConfiguration=1,Object.defineProperty(grpcConfiguration,"__esModule",{value:!0})),grpcConfiguration}var transportStrategy={},hasRequiredTransportStrategy,hasRequiredTransport;function requireTransportStrategy(){if(hasRequiredTransportStrategy)return transportStrategy;hasRequiredTransportStrategy=1,Object.defineProperty(transportStrategy,"__esModule",{value:!0}),transportStrategy.StaticTransportStrategy=transportStrategy.StaticGrpcConfiguration=void 0;class e{constructor(e){this.deadlineMillis=e.deadlineMillis}getDeadlineMillis(){return this.deadlineMillis}withDeadlineMillis(t){return new e({...this,deadlineMillis:t})}}transportStrategy.StaticGrpcConfiguration=e;class t{constructor(e){this.grpcConfiguration=e.grpcConfiguration}getGrpcConfig(){return this.grpcConfiguration}withGrpcConfig(e){return new t({...this,grpcConfiguration:e})}withClientTimeoutMillis(e){return new t({...this,grpcConfiguration:this.grpcConfiguration.withDeadlineMillis(e)})}}return transportStrategy.StaticTransportStrategy=t,transportStrategy}function requireTransport(){return hasRequiredTransport||(hasRequiredTransport=1,e=transport,t=transport&&transport.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=transport&&transport.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),r(requireGrpcConfiguration(),e),r(requireTransportStrategy(),e)),transport;var e,t,r}var defaultMomentoLogger={},hasRequiredDefaultMomentoLogger,hasRequiredConfigurations;function requireDefaultMomentoLogger(){return hasRequiredDefaultMomentoLogger||(hasRequiredDefaultMomentoLogger=1,function(e){var t,r;Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultMomentoLogger=e.DefaultMomentoLoggerFactory=e.DefaultMomentoLoggerLevel=void 0,(r=t=e.DefaultMomentoLoggerLevel||(e.DefaultMomentoLoggerLevel={}))[r.TRACE=5]="TRACE",r[r.DEBUG=10]="DEBUG",r[r.INFO=20]="INFO",r[r.WARN=30]="WARN",r[r.ERROR=40]="ERROR";e.DefaultMomentoLoggerFactory=class{constructor(e=t.INFO){this.level=e}getLogger(e){return new o(e,this.level)}};class o{constructor(e,t){this.loggerName="string"==typeof e||e instanceof String?e:e.constructor.name,this.level=t}trace(e,...r){this.level>t.TRACE||this.outputMessage(console.log,t.TRACE,e,r)}debug(e,...r){this.level>t.DEBUG||this.outputMessage(console.log,t.DEBUG,e,r)}info(e,...r){this.level>t.INFO||this.outputMessage(console.log,t.INFO,e,r)}warn(e,...r){this.level>t.WARN||this.outputMessage(console.warn,t.WARN,e,r)}error(e,...r){this.level>t.ERROR||this.outputMessage(console.error,t.ERROR,e,r)}outputMessage(e,r,o,s){e(`[${(new Date).toISOString()}] ${t[r]} (Momento: ${this.loggerName}): ${o}${s.join(",")}`)}}e.DefaultMomentoLogger=o}(defaultMomentoLogger)),defaultMomentoLogger}function requireConfigurations(){if(hasRequiredConfigurations)return configurations;hasRequiredConfigurations=1,Object.defineProperty(configurations,"__esModule",{value:!0}),configurations.Browser=configurations.Laptop=void 0;const e=requireConfiguration(),t=requireSrc$1(),r=requireTransport(),o=new(requireDefaultMomentoLogger().DefaultMomentoLoggerFactory);class s extends e.CacheConfiguration{static latest(e=o){return s.v1(e)}static v1(e=o){const n=new r.StaticGrpcConfiguration({deadlineMillis:5e3}),i=new r.StaticTransportStrategy({grpcConfiguration:n});return new s({loggerFactory:e,transportStrategy:i,middlewares:[],throwOnErrors:!1,readConcern:t.ReadConcern.BALANCED})}}configurations.Laptop=s;class n extends e.CacheConfiguration{static latest(e=o){return n.v1(e)}static v1(e=o){const s=new r.StaticGrpcConfiguration({deadlineMillis:5e3}),i=new r.StaticTransportStrategy({grpcConfiguration:s});return new n({loggerFactory:e,transportStrategy:i,middlewares:[],throwOnErrors:!1,readConcern:t.ReadConcern.BALANCED})}}return configurations.Browser=n,configurations}var topicConfigurations={},topicConfiguration={},hasRequiredTopicConfiguration,hasRequiredTopicConfigurations;function requireTopicConfiguration(){if(hasRequiredTopicConfiguration)return topicConfiguration;hasRequiredTopicConfiguration=1,Object.defineProperty(topicConfiguration,"__esModule",{value:!0}),topicConfiguration.TopicClientConfiguration=void 0;class e{constructor(e){this.loggerFactory=e.loggerFactory,this.throwOnErrors=e.throwOnErrors}getLoggerFactory(){return this.loggerFactory}getThrowOnErrors(){return this.throwOnErrors}withThrowOnErrors(t){return new e({...this,throwOnErrors:t})}}return topicConfiguration.TopicClientConfiguration=e,topicConfiguration}function requireTopicConfigurations(){if(hasRequiredTopicConfigurations)return topicConfigurations;hasRequiredTopicConfigurations=1,Object.defineProperty(topicConfigurations,"__esModule",{value:!0}),topicConfigurations.Browser=topicConfigurations.Laptop=topicConfigurations.Default=void 0;const e=requireDefaultMomentoLogger(),t=requireTopicConfiguration(),r=new e.DefaultMomentoLoggerFactory;class o extends t.TopicClientConfiguration{static latest(e=r){return new t.TopicClientConfiguration({loggerFactory:e,throwOnErrors:!1})}}topicConfigurations.Default=o;class s extends t.TopicClientConfiguration{static latest(e=r){return s.v1(e)}static v1(e=r){return new s({loggerFactory:e,throwOnErrors:!1})}}topicConfigurations.Laptop=s;class n extends t.TopicClientConfiguration{static latest(e=r){return n.v1(e)}static v1(e=r){return new n({loggerFactory:e,throwOnErrors:!1})}}return topicConfigurations.Browser=n,topicConfigurations}var leaderboardConfigurations={},leaderboardConfiguration={},hasRequiredLeaderboardConfiguration,hasRequiredLeaderboardConfigurations,hasRequiredSrc;function requireLeaderboardConfiguration(){if(hasRequiredLeaderboardConfiguration)return leaderboardConfiguration;hasRequiredLeaderboardConfiguration=1,Object.defineProperty(leaderboardConfiguration,"__esModule",{value:!0}),leaderboardConfiguration.LeaderboardClientConfiguration=void 0;class e{constructor(e){this.loggerFactory=e.loggerFactory,this.transportStrategy=e.transportStrategy,this.throwOnErrors=e.throwOnErrors}getLoggerFactory(){return this.loggerFactory}getTransportStrategy(){return this.transportStrategy}withClientTimeoutMillis(t){return new e({...this,transportStrategy:this.transportStrategy.withClientTimeoutMillis(t)})}withTransportStrategy(t){return new e({...this,transportStrategy:t})}getThrowOnErrors(){return this.throwOnErrors}withThrowOnErrors(t){return new e({...this,throwOnErrors:t})}}return leaderboardConfiguration.LeaderboardClientConfiguration=e,leaderboardConfiguration}function requireLeaderboardConfigurations(){if(hasRequiredLeaderboardConfigurations)return leaderboardConfigurations;hasRequiredLeaderboardConfigurations=1,Object.defineProperty(leaderboardConfigurations,"__esModule",{value:!0}),leaderboardConfigurations.Laptop=void 0;const e=requireLeaderboardConfiguration(),t=requireTransport(),r=new(requireDefaultMomentoLogger().DefaultMomentoLoggerFactory);class o extends e.LeaderboardClientConfiguration{static latest(e=r){return o.v1(e)}static v1(e=r){const s=new t.StaticGrpcConfiguration({deadlineMillis:5e3}),n=new t.StaticTransportStrategy({grpcConfiguration:s});return new o({loggerFactory:e,transportStrategy:n,throwOnErrors:!1})}}return leaderboardConfigurations.Laptop=o,leaderboardConfigurations}function requireSrc(){return hasRequiredSrc||(hasRequiredSrc=1,function(e){var t=src$1&&src$1.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,s)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=src$1&&src$1.__exportStar||function(e,r){for(var o in e)"default"!==o&&!Object.prototype.hasOwnProperty.call(r,o)&&t(r,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CacheSetBatch=e.CacheSetIfAbsentOrHashNotEqual=e.CacheSetIfAbsentOrHashEqual=e.CacheSetIfPresentAndHashNotEqual=e.CacheSetIfPresentAndHashEqual=e.CacheSetIfAbsentOrEqual=e.CacheSetIfPresentAndNotEqual=e.CacheSetIfNotEqual=e.CacheSetIfEqual=e.CacheSetIfPresent=e.CacheSetIfAbsent=e.CacheSetIfNotExists=e.CacheSetWithHash=e.CacheSet=e.CacheListRetain=e.CacheListRemoveValue=e.CacheListPushFront=e.CacheListPushBack=e.CacheListPopFront=e.CacheListPopBack=e.CacheListLength=e.CacheListFetch=e.CacheListConcatenateFront=e.CacheListConcatenateBack=e.CacheGetWithHash=e.CacheGet=e.AllFunctions=e.AllTopics=e.AllCaches=e.SortedSetAggregate=e.DisposableTokenScopes=e.TokenScopes=e.PermissionScopes=e.FunctionRole=e.TopicRole=e.CacheRole=e.AllDataReadWrite=e.EnvMomentoTokenProvider=e.StringMomentoTokenProvider=e.CredentialProvider=e.CacheInfo=e.AuthClient=e.CacheClient=e.Configurations=e.SortedSetOrder=e.ItemType=e.CollectionTtl=e.DefaultMomentoLoggerLevel=e.DefaultMomentoLogger=e.DefaultMomentoLoggerFactory=void 0,e.TopicSubscribe=e.TopicPublish=e.TopicDiscontinuity=e.TopicItem=e.TopicClient=e.TopicClientConfiguration=e.TopicConfigurations=e.CacheDecreaseTtl=e.CacheIncreaseTtl=e.CacheUpdateTtl=e.CacheKeysExist=e.CacheKeyExists=e.CacheItemGetTtl=e.CacheItemGetType=e.CacheSortedSetUnionStore=e.CacheSortedSetLengthByScore=e.CacheSortedSetLength=e.CacheSortedSetRemoveElements=e.CacheSortedSetRemoveElement=e.CacheSortedSetIncrementScore=e.CacheSortedSetGetScores=e.CacheSortedSetGetScore=e.CacheSortedSetGetRank=e.CacheSortedSetFetch=e.CacheSortedSetPutElements=e.CacheSortedSetPutElement=e.CacheSetSample=e.CacheSetRemoveElement=e.CacheSetRemoveElements=e.CacheSetAddElement=e.CacheSetAddElements=e.CacheDictionaryLength=e.CacheDictionaryIncrement=e.CacheDictionaryRemoveFields=e.CacheDictionaryRemoveField=e.CacheDictionaryGetFields=e.CacheDictionaryGetField=e.CacheDictionarySetFields=e.CacheDictionarySetField=e.CacheDictionaryFetch=e.CacheSetContainsElements=e.CacheSetContainsElement=e.CacheSetFetch=e.CacheIncrement=e.ListCaches=e.DeleteCache=e.CreateCache=e.CacheFlush=e.CacheDelete=e.CacheGetBatch=void 0,e.ReadConcern=e.WebhookDestinationType=e.RotateWebhookSecret=e.GetWebhookSecret=e.PutWebhook=e.ListWebhooks=e.DeleteWebhook=e.PostUrlWebhookDestination=e.NoopMomentoLoggerFactory=e.NoopMomentoLogger=e.UnknownError=e.StoreItemNotFoundError=e.StoreNotFoundError=e.CacheNotFoundError=e.PermissionError=e.BadRequestError=e.TimeoutError=e.ServerUnavailableError=e.UnknownServiceError=e.InvalidArgumentError=e.InternalServerError=e.LimitExceededError=e.FailedPreconditionError=e.CancelledError=e.AuthenticationError=e.StoreAlreadyExistsError=e.CacheAlreadyExistsError=e.SdkError=e.MomentoErrorCode=e.ExpiresIn=e.ExpiresAt=e.GenerateDisposableToken=e.RefreshAuthToken=e.RefreshApiKey=e.GenerateAuthToken=e.GenerateApiKey=e.LeaderboardOrder=e.PreviewLeaderboardClient=e.LeaderboardClientConfiguration=e.LeaderboardConfigurations=void 0;const o=requireCacheClient();Object.defineProperty(e,"CacheClient",{enumerable:!0,get:function(){return o.CacheClient}});const s=requireAuthClient();Object.defineProperty(e,"AuthClient",{enumerable:!0,get:function(){return s.AuthClient}});const n=requireTopicClient();Object.defineProperty(e,"TopicClient",{enumerable:!0,get:function(){return n.TopicClient}});const i=requirePreviewLeaderboardClient();Object.defineProperty(e,"PreviewLeaderboardClient",{enumerable:!0,get:function(){return i.PreviewLeaderboardClient}});const a=requireConfigurations();e.Configurations=a;const u=requireTopicConfigurations();e.TopicConfigurations=u;const c=requireLeaderboardConfigurations();e.LeaderboardConfigurations=c;const l=requireCacheGet();e.CacheGet=l;const p=requireCacheListConcatenateBack();e.CacheListConcatenateBack=p;const d=requireCacheListConcatenateFront();e.CacheListConcatenateFront=d;const g=requireCacheListFetch();e.CacheListFetch=g;const h=requireCacheListLength();e.CacheListLength=h;const f=requireCacheListPopBack();e.CacheListPopBack=f;const y=requireCacheListPopFront();e.CacheListPopFront=y;const _=requireCacheListPushBack();e.CacheListPushBack=_;const R=requireCacheListPushFront();e.CacheListPushFront=R;const S=requireCacheListRemoveValue();e.CacheListRemoveValue=S;const m=requireCacheListRetain();e.CacheListRetain=m;const b=requireCacheSet();e.CacheSet=b;const E=requireCacheDelete();e.CacheDelete=E;const M=requireCacheFlush();e.CacheFlush=M;const F=requireCreateCache();e.CreateCache=F;const v=requireDeleteCache();e.DeleteCache=v;const T=requireListCaches();e.ListCaches=T;const B=requireCacheSetFetch();e.CacheSetFetch=B;const C=requireCacheDictionaryFetch();e.CacheDictionaryFetch=C;const O=requireCacheDictionarySetField();e.CacheDictionarySetField=O;const w=requireCacheDictionarySetFields();e.CacheDictionarySetFields=w;const L=requireCacheDictionaryGetField();e.CacheDictionaryGetField=L;const P=requireCacheDictionaryGetFields();e.CacheDictionaryGetFields=P;const I=requireCacheDictionaryRemoveField();e.CacheDictionaryRemoveField=I;const D=requireCacheDictionaryRemoveFields();e.CacheDictionaryRemoveFields=D;const A=requireCacheDictionaryIncrement();e.CacheDictionaryIncrement=A;const q=requireCacheDictionaryLength();e.CacheDictionaryLength=q;const N=requireCacheSetAddElements();e.CacheSetAddElements=N;const j=requireCacheSetAddElement();e.CacheSetAddElement=j;const k=requireCacheSetContainsElement();e.CacheSetContainsElement=k;const W=requireCacheSetContainsElements();e.CacheSetContainsElements=W;const G=requireCacheSetRemoveElements();e.CacheSetRemoveElements=G;const x=requireCacheSetRemoveElement();e.CacheSetRemoveElement=x;const U=requireCacheSetSample();e.CacheSetSample=U;const z=requireCacheIncrement();e.CacheIncrement=z;const $=requireCacheSetIfNotExists();e.CacheSetIfNotExists=$;const H=requireCacheSetIfAbsent();e.CacheSetIfAbsent=H;const V=requireCacheSetIfPresent();e.CacheSetIfPresent=V;const K=requireCacheSetIfEqual();e.CacheSetIfEqual=K;const J=requireCacheSetIfNotEqual();e.CacheSetIfNotEqual=J;const Y=requireCacheSetIfPresentAndNotEqual();e.CacheSetIfPresentAndNotEqual=Y;const X=requireCacheSetIfAbsentOrEqual();e.CacheSetIfAbsentOrEqual=X;const Z=requireCacheSortedSetPutElement();e.CacheSortedSetPutElement=Z;const Q=requireCacheSortedSetPutElements();e.CacheSortedSetPutElements=Q;const ee=requireCacheSortedSetFetch();e.CacheSortedSetFetch=ee;const te=requireCacheSortedSetGetRank();e.CacheSortedSetGetRank=te;const re=requireCacheSortedSetGetScore();e.CacheSortedSetGetScore=re;const oe=requireCacheSortedSetGetScores();e.CacheSortedSetGetScores=oe;const se=requireCacheSortedSetIncrementScore();e.CacheSortedSetIncrementScore=se;const ne=requireCacheSortedSetRemoveElement();e.CacheSortedSetRemoveElement=ne;const ie=requireCacheSortedSetRemoveElements();e.CacheSortedSetRemoveElements=ie;const ae=requireCacheSortedSetLength();e.CacheSortedSetLength=ae;const ue=requireCacheSortedSetLengthByScore();e.CacheSortedSetLengthByScore=ue;const ce=requireCacheSortedSetUnionStore();e.CacheSortedSetUnionStore=ce;const le=requireCacheItemGetType();e.CacheItemGetType=le;const pe=requireCacheItemGetTtl();e.CacheItemGetTtl=pe;const de=requireCacheKeyExists();e.CacheKeyExists=de;const ge=requireCacheKeysExist();e.CacheKeysExist=ge;const he=requireCacheTtlUpdate();e.CacheUpdateTtl=he;const fe=requireCacheTtlIncrease();e.CacheIncreaseTtl=fe;const ye=requireCacheTtlDecrease();e.CacheDecreaseTtl=ye;const _e=requireCacheBatchGet();e.CacheGetBatch=_e;const Re=requireCacheBatchSet();e.CacheSetBatch=Re;const Se=requireCacheGetWithHash();e.CacheGetWithHash=Se;const me=requireCacheSetWithHash();e.CacheSetWithHash=me;const be=requireCacheSetIfPresentAndHashEqual();e.CacheSetIfPresentAndHashEqual=be;const Ee=requireCacheSetIfPresentAndHashNotEqual();e.CacheSetIfPresentAndHashNotEqual=Ee;const Me=requireCacheSetIfAbsentOrHashEqual();e.CacheSetIfAbsentOrHashEqual=Me;const Fe=requireCacheSetIfAbsentOrHashNotEqual();e.CacheSetIfAbsentOrHashNotEqual=Fe;const ve=requireTopicPublish();e.TopicPublish=ve;const Te=requireTopicSubscribe();e.TopicSubscribe=Te;const Be=requireTopicItem();Object.defineProperty(e,"TopicItem",{enumerable:!0,get:function(){return Be.TopicItem}});const Ce=requireTopicDiscontinuity();Object.defineProperty(e,"TopicDiscontinuity",{enumerable:!0,get:function(){return Ce.TopicDiscontinuity}});const Oe=requireGenerateApiKey();e.GenerateApiKey=Oe,e.GenerateAuthToken=Oe;const we=requireRefreshApiKey();e.RefreshApiKey=we,e.RefreshAuthToken=we;const Le=requireGenerateDisposableToken();e.GenerateDisposableToken=Le;const Pe=requireSrc$1();Object.defineProperty(e,"CacheInfo",{enumerable:!0,get:function(){return Pe.CacheInfo}}),Object.defineProperty(e,"CollectionTtl",{enumerable:!0,get:function(){return Pe.CollectionTtl}}),Object.defineProperty(e,"ItemType",{enumerable:!0,get:function(){return Pe.ItemType}}),Object.defineProperty(e,"SortedSetOrder",{enumerable:!0,get:function(){return Pe.SortedSetOrder}}),Object.defineProperty(e,"CredentialProvider",{enumerable:!0,get:function(){return Pe.CredentialProvider}}),Object.defineProperty(e,"StringMomentoTokenProvider",{enumerable:!0,get:function(){return Pe.StringMomentoTokenProvider}}),Object.defineProperty(e,"EnvMomentoTokenProvider",{enumerable:!0,get:function(){return Pe.EnvMomentoTokenProvider}}),Object.defineProperty(e,"MomentoErrorCode",{enumerable:!0,get:function(){return Pe.MomentoErrorCode}}),Object.defineProperty(e,"SdkError",{enumerable:!0,get:function(){return Pe.SdkError}}),Object.defineProperty(e,"CacheAlreadyExistsError",{enumerable:!0,get:function(){return Pe.CacheAlreadyExistsError}}),Object.defineProperty(e,"StoreAlreadyExistsError",{enumerable:!0,get:function(){return Pe.StoreAlreadyExistsError}}),Object.defineProperty(e,"AuthenticationError",{enumerable:!0,get:function(){return Pe.AuthenticationError}}),Object.defineProperty(e,"CancelledError",{enumerable:!0,get:function(){return Pe.CancelledError}}),Object.defineProperty(e,"FailedPreconditionError",{enumerable:!0,get:function(){return Pe.FailedPreconditionError}}),Object.defineProperty(e,"LimitExceededError",{enumerable:!0,get:function(){return Pe.LimitExceededError}}),Object.defineProperty(e,"InternalServerError",{enumerable:!0,get:function(){return Pe.InternalServerError}}),Object.defineProperty(e,"InvalidArgumentError",{enumerable:!0,get:function(){return Pe.InvalidArgumentError}}),Object.defineProperty(e,"UnknownServiceError",{enumerable:!0,get:function(){return Pe.UnknownServiceError}}),Object.defineProperty(e,"ServerUnavailableError",{enumerable:!0,get:function(){return Pe.ServerUnavailableError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return Pe.TimeoutError}}),Object.defineProperty(e,"BadRequestError",{enumerable:!0,get:function(){return Pe.BadRequestError}}),Object.defineProperty(e,"PermissionError",{enumerable:!0,get:function(){return Pe.PermissionError}}),Object.defineProperty(e,"CacheNotFoundError",{enumerable:!0,get:function(){return Pe.CacheNotFoundError}}),Object.defineProperty(e,"StoreNotFoundError",{enumerable:!0,get:function(){return Pe.StoreNotFoundError}}),Object.defineProperty(e,"StoreItemNotFoundError",{enumerable:!0,get:function(){return Pe.StoreItemNotFoundError}}),Object.defineProperty(e,"UnknownError",{enumerable:!0,get:function(){return Pe.UnknownError}}),Object.defineProperty(e,"NoopMomentoLogger",{enumerable:!0,get:function(){return Pe.NoopMomentoLogger}}),Object.defineProperty(e,"NoopMomentoLoggerFactory",{enumerable:!0,get:function(){return Pe.NoopMomentoLoggerFactory}}),Object.defineProperty(e,"AllDataReadWrite",{enumerable:!0,get:function(){return Pe.AllDataReadWrite}}),Object.defineProperty(e,"PermissionScopes",{enumerable:!0,get:function(){return Pe.PermissionScopes}}),Object.defineProperty(e,"TokenScopes",{enumerable:!0,get:function(){return Pe.PermissionScopes}}),Object.defineProperty(e,"DisposableTokenScopes",{enumerable:!0,get:function(){return Pe.DisposableTokenScopes}}),Object.defineProperty(e,"ExpiresIn",{enumerable:!0,get:function(){return Pe.ExpiresIn}}),Object.defineProperty(e,"ExpiresAt",{enumerable:!0,get:function(){return Pe.ExpiresAt}}),Object.defineProperty(e,"AllCaches",{enumerable:!0,get:function(){return Pe.AllCaches}}),Object.defineProperty(e,"AllTopics",{enumerable:!0,get:function(){return Pe.AllTopics}}),Object.defineProperty(e,"AllFunctions",{enumerable:!0,get:function(){return Pe.AllFunctions}}),Object.defineProperty(e,"CacheRole",{enumerable:!0,get:function(){return Pe.CacheRole}}),Object.defineProperty(e,"TopicRole",{enumerable:!0,get:function(){return Pe.TopicRole}}),Object.defineProperty(e,"FunctionRole",{enumerable:!0,get:function(){return Pe.FunctionRole}}),Object.defineProperty(e,"LeaderboardOrder",{enumerable:!0,get:function(){return Pe.LeaderboardOrder}}),Object.defineProperty(e,"PostUrlWebhookDestination",{enumerable:!0,get:function(){return Pe.PostUrlWebhookDestination}}),Object.defineProperty(e,"DeleteWebhook",{enumerable:!0,get:function(){return Pe.DeleteWebhook}}),Object.defineProperty(e,"ListWebhooks",{enumerable:!0,get:function(){return Pe.ListWebhooks}}),Object.defineProperty(e,"PutWebhook",{enumerable:!0,get:function(){return Pe.PutWebhook}}),Object.defineProperty(e,"GetWebhookSecret",{enumerable:!0,get:function(){return Pe.GetWebhookSecret}}),Object.defineProperty(e,"RotateWebhookSecret",{enumerable:!0,get:function(){return Pe.RotateWebhookSecret}}),Object.defineProperty(e,"WebhookDestinationType",{enumerable:!0,get:function(){return Pe.WebhookDestinationType}}),Object.defineProperty(e,"ReadConcern",{enumerable:!0,get:function(){return Pe.ReadConcern}}),Object.defineProperty(e,"SortedSetAggregate",{enumerable:!0,get:function(){return Pe.SortedSetAggregate}});const Ie=requireTopicConfiguration();Object.defineProperty(e,"TopicClientConfiguration",{enumerable:!0,get:function(){return Ie.TopicClientConfiguration}});const De=requireLeaderboardConfiguration();Object.defineProperty(e,"LeaderboardClientConfiguration",{enumerable:!0,get:function(){return De.LeaderboardClientConfiguration}}),r(requireEnums(),e);var Ae=requireDefaultMomentoLogger();Object.defineProperty(e,"DefaultMomentoLoggerFactory",{enumerable:!0,get:function(){return Ae.DefaultMomentoLoggerFactory}}),Object.defineProperty(e,"DefaultMomentoLogger",{enumerable:!0,get:function(){return Ae.DefaultMomentoLogger}}),Object.defineProperty(e,"DefaultMomentoLoggerLevel",{enumerable:!0,get:function(){return Ae.DefaultMomentoLoggerLevel}})}(src$1)),src$1}var srcExports=requireSrc();function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,{iterator:iterator,toStringTag:toStringTag}=Symbol,kindOf=(e=>t=>{const r=toString.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isBoolean=e=>!0===e||!1===e,isPlainObject=e=>{if("object"!==kindOf(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||toStringTag in e||iterator in e)},isEmptyObject=e=>{if(!isObject(e)||isBuffer(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction$1(e.pipe),isFormData=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction$1(e.append)&&("formdata"===(t=kindOf(e))||"object"===t&&isFunction$1(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:r=!1}={}){if(null===e||typeof e>"u")return;let o,s;if("object"!=typeof e&&(e=[e]),isArray(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{if(isBuffer(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),n=s.length;let i;for(o=0;o<n;o++)i=s[o],t.call(null,e[i],i,e)}}function findKey(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const r=Object.keys(e);let o,s=r.length;for(;s-- >0;)if(o=r[s],t===o.toLowerCase())return o;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e,skipUndefined:t}=isContextDefined(this)&&this||{},r={},o=(o,s)=>{const n=e&&findKey(r,s)||s;isPlainObject(r[n])&&isPlainObject(o)?r[n]=merge(r[n],o):isPlainObject(o)?r[n]=merge({},o):isArray(o)?r[n]=o.slice():(!t||!isUndefined(o))&&(r[n]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&forEach(arguments[e],o);return r}const extend=(e,t,r,{allOwnKeys:o}={})=>(forEach(t,((t,o)=>{r&&isFunction$1(t)?e[o]=bind(t,r):e[o]=t}),{allOwnKeys:o}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject=(e,t,r,o)=>{let s,n,i;const a={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),n=s.length;n-- >0;)i=s[n],(!o||o(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=!1!==r&&getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return-1!==o&&o===r},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const r=(e&&e[iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll=(e,t)=>{let r;const o=[];for(;null!==(r=e.exec(t));)o.push(r);return o},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),hasOwnProperty=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};forEach(r,((r,s)=>{let n;!1!==(n=t(r,s,e))&&(o[s]=n||r)})),Object.defineProperties(e,o)},freezeMethods=e=>{reduceDescriptors(e,((t,r)=>{if(isFunction$1(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=e[r];if(isFunction$1(o)){if(t.enumerable=!1,"writable"in t)return void(t.writable=!1);t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}}))},toObjectSet=(e,t)=>{const r={},o=e=>{e.forEach((e=>{r[e]=!0}))};return isArray(e)?o(e):o(String(e).split(t)),r},noop=()=>{},toFiniteNumber=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&"FormData"===e[toStringTag]&&e[iterator])}const toJSONObject=e=>{const t=new Array(10),r=(e,o)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(isBuffer(e))return e;if(!("toJSON"in e)){t[o]=e;const s=isArray(e)?[]:{};return forEach(e,((e,t)=>{const n=r(e,o+1);!isUndefined(n)&&(s[t]=n)})),t[o]=void 0,s}}return e};return r(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),_setImmediate=((e,t)=>{return e?setImmediate:t?(r=`axios@${Math.random()}`,o=[],_global.addEventListener("message",(({source:e,data:t})=>{e===_global&&t===r&&o.length&&o.shift()()}),!1),e=>{o.push(e),_global.postMessage(r,"*")}):e=>setTimeout(e);var r,o})("function"==typeof setImmediate,isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=e=>null!=e&&isFunction$1(e[iterator]),utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable};function AxiosError$1(e,t,r,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status?s.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{descriptors[e]={value:e}})),Object.defineProperties(AxiosError$1,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$1.from=(e,t,r,o,s,n)=>{const i=Object.create(prototype$1);utils$1.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const a=e&&e.message?e.message:"Error",u=null==t&&e?e.code:t;return AxiosError$1.call(i,a,u,r,o,s),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",n&&Object.assign(i,n),i};const httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map((function(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,(function(e){return/^is[A-Z]/.test(e)}));function toFormData$1(e,t,r){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(r=utils$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!utils$1.isUndefined(t[e])}))).metaTokens,s=r.visitor||c,n=r.dots,i=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(s))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(utils$1.isDate(e))return e.toISOString();if(utils$1.isBoolean(e))return e.toString();if(!a&&utils$1.isBlob(e))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(e)||utils$1.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,s){let a=e;if(e&&!s&&"object"==typeof e)if(utils$1.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$1.isArray(e)&&isFlatArray(e)||(utils$1.isFileList(e)||utils$1.endsWith(r,"[]"))&&(a=utils$1.toArray(e)))return r=removeBrackets(r),a.forEach((function(e,o){!utils$1.isUndefined(e)&&null!==e&&t.append(!0===i?renderKey([r],o,n):null===i?r:r+"[]",u(e))})),!1;return!!isVisitable(e)||(t.append(renderKey(s,r,n),u(e)),!1)}const l=[],p=Object.assign(predicates,{defaultVisitor:c,convertValue:u,isVisitable:isVisitable});if(!utils$1.isObject(e))throw new TypeError("data must be an object");return function e(r,o){if(!utils$1.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+o.join("."));l.push(r),utils$1.forEach(r,(function(r,n){!0===(!(utils$1.isUndefined(r)||null===r)&&s.call(t,r,utils$1.isString(n)?n.trim():n,o,p))&&e(r,o?o.concat(n):[n])})),l.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData$1(e,this,t)}const prototype=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,r){if(!t)return e;const o=r&&r.encode||encode;utils$1.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let n;if(n=s?s(t,r):utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(o),n){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin:origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData$1(e,new platform.classes.URLSearchParams,{visitor:function(e,t,r,o){return platform.isNode&&utils$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function arrayToObject(e){const t={},r=Object.keys(e);let o;const s=r.length;let n;for(o=0;o<s;o++)n=r[o],t[n]=e[n];return t}function formDataToJSON(e){function t(e,r,o,s){let n=e[s++];if("__proto__"===n)return!0;const i=Number.isFinite(+n),a=s>=e.length;return n=!n&&utils$1.isArray(o)?o.length:n,a?(utils$1.hasOwnProp(o,n)?o[n]=[o[n],r]:o[n]=r,!i):((!o[n]||!utils$1.isObject(o[n]))&&(o[n]=[]),t(e,r,o[n],s)&&utils$1.isArray(o[n])&&(o[n]=arrayToObject(o[n])),!i)}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const r={};return utils$1.forEachEntry(e,((e,o)=>{t(parsePropPath(e),o,r,0)})),r}return null}function stringifySafely(e,t,r){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,s=utils$1.isObject(e);if(s&&utils$1.isHTMLForm(e)&&(e=new FormData(e)),utils$1.isFormData(e))return o?JSON.stringify(formDataToJSON(e)):e;if(utils$1.isArrayBuffer(e)||utils$1.isBuffer(e)||utils$1.isStream(e)||utils$1.isFile(e)||utils$1.isBlob(e)||utils$1.isReadableStream(e))return e;if(utils$1.isArrayBufferView(e))return e.buffer;if(utils$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((n=utils$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData$1(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||o?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(utils$1.isResponse(e)||utils$1.isReadableStream(e))return e;if(e&&utils$1.isString(e)&&(r&&!this.responseType||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r)throw"SyntaxError"===e.name?AxiosError$1.from(e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],(e=>{defaults.headers[e]={}}));const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const t={};let r,o,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),o=e.substring(s+1).trim(),!(!r||t[r]&&ignoreDuplicateOf[r])&&("set-cookie"===r?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)})),t},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,o,s){if(utils$1.isFunction(o))return o.call(this,t,r);if(s&&(t=r),utils$1.isString(t)){if(utils$1.isString(o))return-1!==t.indexOf(o);if(utils$1.isRegExp(o))return o.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}function buildAccessors(e,t){const r=utils$1.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+r,{value:function(e,r,s){return this[o].call(this,t,e,r,s)},configurable:!0})}))}let AxiosHeaders$1=class{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function s(e,t,r){const s=normalizeHeader(t);if(!s)throw new Error("header name must be a non-empty string");const n=utils$1.findKey(o,s);(!n||void 0===o[n]||!0===r||void 0===r&&!1!==o[n])&&(o[n||t]=normalizeValue(e))}const n=(e,t)=>utils$1.forEach(e,((e,r)=>s(e,r,t)));if(utils$1.isPlainObject(e)||e instanceof this.constructor)n(e,t);else if(utils$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))n(parseHeaders(e),t);else if(utils$1.isObject(e)&&utils$1.isIterable(e)){let r,o,s={};for(const t of e){if(!utils$1.isArray(t))throw TypeError("Object iterator must return a key-value pair");s[o=t[0]]=(r=s[o])?utils$1.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}n(s,t)}else null!=e&&s(t,e,r);return this}get(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens(e);if(utils$1.isFunction(t))return t.call(this,e,r);if(utils$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue(this,this[r],r,t))}return!1}delete(e,t){const r=this;let o=!1;function s(e){if(e=normalizeHeader(e)){const s=utils$1.findKey(r,e);s&&(!t||matchHeaderValue(r,r[s],s,t))&&(delete r[s],o=!0)}}return utils$1.isArray(e)?e.forEach(s):s(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const s=t[r];(!e||matchHeaderValue(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const t=this,r={};return utils$1.forEach(this,((o,s)=>{const n=utils$1.findKey(r,s);if(n)return t[n]=normalizeValue(o),void delete t[s];const i=e?formatHeader(s):String(s).trim();i!==s&&delete t[s],t[i]=normalizeValue(o),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1.forEach(this,((r,o)=>{null!=r&&!1!==r&&(t[o]=e&&utils$1.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function o(e){const o=normalizeHeader(e);t[o]||(buildAccessors(r,e),t[o]=!0)}return utils$1.isArray(e)?e.forEach(o):o(e),this}};function transformData(e,t){const r=this||defaults,o=t||r,s=AxiosHeaders$1.from(o.headers);let n=o.data;return utils$1.forEach(e,(function(e){n=e.call(r,n,s.normalize(),t?t.status:void 0)})),s.normalize(),n}function isCancel$1(e){return!(!e||!e.__CANCEL__)}function CanceledError$1(e,t,r){AxiosError$1.call(this,e??"canceled",AxiosError$1.ERR_CANCELED,t,r),this.name="CanceledError"}function settle(e,t,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new AxiosError$1("Request failed with status code "+r.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const r=new Array(e),o=new Array(e);let s,n=0,i=0;return t=void 0!==t?t:1e3,function(a){const u=Date.now(),c=o[i];s||(s=u),r[n]=a,o[n]=u;let l=i,p=0;for(;l!==n;)p+=r[l++],l%=e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),u-s<t)return;const d=c&&u-c;return d?Math.round(1e3*p/d):void 0}}function throttle(e,t){let r,o,s=0,n=1e3/t;const i=(t,n=Date.now())=>{s=n,r=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=n?i(e,t):(r=e,o||(o=setTimeout((()=>{o=null,i(r)}),n-a)))},()=>r&&i(r)]}AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders$1.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),utils$1.freezeMethods(AxiosHeaders$1),utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});const progressEventReducer=(e,t,r=3)=>{let o=0;const s=speedometer(50,250);return throttle((r=>{const n=r.loaded,i=r.lengthComputable?r.total:void 0,a=n-o,u=s(a);o=n;e({loaded:n,total:i,progress:i?n/i:void 0,bytes:a,rate:u||void 0,estimated:u&&i&&n<=i?(i-n)/u:void 0,event:r,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),r)},progressEventDecorator=(e,t)=>{const r=null!=e;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},asyncDecorator=e=>(...t)=>utils$1.asap((()=>e(...t))),isURLSameOrigin=platform.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,platform.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,t,r,o,s,n){const i=[e+"="+encodeURIComponent(t)];utils$1.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),utils$1.isString(o)&&i.push("path="+o),utils$1.isString(s)&&i.push("domain="+s),!0===n&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,r){let o=!isAbsoluteURL(t);return e&&(o||0==r)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig$1(e,t){t=t||{};const r={};function o(e,t,r,o){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(t)?utils$1.merge.call({caseless:o},e,t):utils$1.isPlainObject(t)?utils$1.merge({},t):utils$1.isArray(t)?t.slice():t}function s(e,t,r,s){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:o(void 0,e,0,s):o(e,t,0,s)}function n(e,t){if(!utils$1.isUndefined(t))return o(void 0,t)}function i(e,t){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function a(r,s,n){return n in t?o(r,s):n in e?o(void 0,r):void 0}const u={url:n,method:n,data:n,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,r)=>s(headersToObject(e),headersToObject(t),0,!0)};return utils$1.forEach(Object.keys({...e,...t}),(function(o){const n=u[o]||s,i=n(e[o],t[o],o);utils$1.isUndefined(i)&&n!==a||(r[o]=i)})),r}const resolveConfig=e=>{const t=mergeConfig$1({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:n,headers:i,auth:a}=t;if(t.headers=i=AxiosHeaders$1.from(i),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),utils$1.isFormData(r))if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(utils$1.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,r])=>{t.includes(e.toLowerCase())&&i.set(e,r)}))}if(platform.hasStandardBrowserEnv&&(o&&utils$1.isFunction(o)&&(o=o(t)),o||!1!==o&&isURLSameOrigin(t.url))){const e=s&&n&&cookies.read(n);e&&i.set(s,e)}return t},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise((function(t,r){const o=resolveConfig(e);let s=o.data;const n=AxiosHeaders$1.from(o.headers).normalize();let i,a,u,c,l,{responseType:p,onUploadProgress:d,onDownloadProgress:g}=o;function h(){c&&c(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let f=new XMLHttpRequest;function y(){if(!f)return;const o=AxiosHeaders$1.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());settle((function(e){t(e),h()}),(function(e){r(e),h()}),{data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){!f||4!==f.readyState||0===f.status&&(!f.responseURL||0!==f.responseURL.indexOf("file:"))||setTimeout(y)},f.onabort=function(){f&&(r(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const o=new AxiosError$1(t&&t.message?t.message:"Network Error",AxiosError$1.ERR_NETWORK,e,f);o.event=t||null,r(o),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const s=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),r(new AxiosError$1(t,s.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,e,f)),f=null},void 0===s&&n.setContentType(null),"setRequestHeader"in f&&utils$1.forEach(n.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),utils$1.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),p&&"json"!==p&&(f.responseType=o.responseType),g&&([u,l]=progressEventReducer(g,!0),f.addEventListener("progress",u)),d&&f.upload&&([a,c]=progressEventReducer(d),f.upload.addEventListener("progress",a),f.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{f&&(r(!t||t.type?new CanceledError$1(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const _=parseProtocol(o.url);_&&-1===platform.protocols.indexOf(_)?r(new AxiosError$1("Unsupported protocol "+_+":",AxiosError$1.ERR_BAD_REQUEST,e)):f.send(s||null)}))},composeSignals=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,o=new AbortController;const s=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof AxiosError$1?t:new CanceledError$1(t instanceof Error?t.message:t))}};let n=t&&setTimeout((()=>{n=null,s(new AxiosError$1(`timeout ${t} of ms exceeded`,AxiosError$1.ETIMEDOUT))}),t);const i=()=>{e&&(n&&clearTimeout(n),n=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)})),e=null)};e.forEach((e=>e.addEventListener("abort",s)));const{signal:a}=o;return a.unsubscribe=()=>utils$1.asap(i),a}},streamChunk=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let o,s=0;for(;s<r;)o=s+t,yield e.slice(s,o),s=o},readBytes=async function*(e,t){for await(const r of readStream(e))yield*streamChunk(r,t)},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},trackStream=(e,t,r,o)=>{const s=readBytes(e,t);let n,i=0,a=e=>{n||(n=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await s.next();if(t)return a(),void e.close();let n=o.byteLength;if(r){let e=i+=n;r(e)}e.enqueue(new Uint8Array(o))}catch(e){throw a(e),e}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=65536,{isFunction:isFunction}=utils$1,globalFetchAPI=(({Request:e,Response:t})=>({Request:e,Response:t}))(utils$1.global),{ReadableStream:ReadableStream$1,TextEncoder:TextEncoder$1}=utils$1.global,test=(e,...t)=>{try{return!!e(...t)}catch{return!1}},factory=e=>{e=utils$1.merge.call({skipUndefined:!0},globalFetchAPI,e);const{fetch:t,Request:r,Response:o}=e,s=t?isFunction(t):"function"==typeof fetch,n=isFunction(r),i=isFunction(o);if(!s)return!1;const a=s&&isFunction(ReadableStream$1),u=s&&("function"==typeof TextEncoder$1?(d=new TextEncoder$1,e=>d.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer())),c=n&&a&&test((()=>{let e=!1;const t=new r(platform.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),l=i&&a&&test((()=>utils$1.isReadableStream(new o("").body))),p={stream:l&&(e=>e.body)};var d;s&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,r)=>{let o=t&&t[e];if(o)return o.call(t);throw new AxiosError$1(`Response type '${e}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,r)})}));const g=async(e,t)=>utils$1.toFiniteNumber(e.getContentLength())??(async e=>null==e?0:utils$1.isBlob(e)?e.size:utils$1.isSpecCompliantForm(e)?(await new r(platform.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:utils$1.isArrayBufferView(e)||utils$1.isArrayBuffer(e)?e.byteLength:(utils$1.isURLSearchParams(e)&&(e+=""),utils$1.isString(e)?(await u(e)).byteLength:void 0))(t);return async e=>{let{url:s,method:i,data:a,signal:u,cancelToken:d,timeout:h,onDownloadProgress:f,onUploadProgress:y,responseType:_,headers:R,withCredentials:S="same-origin",fetchOptions:m}=resolveConfig(e),b=t||fetch;_=_?(_+"").toLowerCase():"text";let E=composeSignals([u,d&&d.toAbortSignal()],h),M=null;const F=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let v;try{if(y&&c&&"get"!==i&&"head"!==i&&0!==(v=await g(R,a))){let e,t=new r(s,{method:"POST",body:a,duplex:"half"});if(utils$1.isFormData(a)&&(e=t.headers.get("content-type"))&&R.setContentType(e),t.body){const[e,r]=progressEventDecorator(v,progressEventReducer(asyncDecorator(y)));a=trackStream(t.body,DEFAULT_CHUNK_SIZE,e,r)}}utils$1.isString(S)||(S=S?"include":"omit");const t=n&&"credentials"in r.prototype,u={...m,signal:E,method:i.toUpperCase(),headers:R.normalize().toJSON(),body:a,duplex:"half",credentials:t?S:void 0};M=n&&new r(s,u);let d=await(n?b(M,m):b(s,u));const h=l&&("stream"===_||"response"===_);if(l&&(f||h&&F)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=d[t]}));const t=utils$1.toFiniteNumber(d.headers.get("content-length")),[r,s]=f&&progressEventDecorator(t,progressEventReducer(asyncDecorator(f),!0))||[];d=new o(trackStream(d.body,DEFAULT_CHUNK_SIZE,r,(()=>{s&&s(),F&&F()})),e)}_=_||"text";let T=await p[utils$1.findKey(p,_)||"text"](d,e);return!h&&F&&F(),await new Promise(((t,r)=>{settle(t,r,{data:T,headers:AxiosHeaders$1.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:M})}))}catch(t){throw F&&F(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,e,M),{cause:t.cause||t}):AxiosError$1.from(t,t&&t.code,e,M)}}},seedCache=new Map,getFetch=e=>{let t=e?e.env:{};const{fetch:r,Request:o,Response:s}=t,n=[o,s,r];let i,a,u=n.length,c=seedCache;for(;u--;)i=n[u],a=c.get(i),void 0===a&&c.set(i,a=u?new Map:factory(t)),c=a;return a};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}}));const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||null===e||!1===e,adapters={getAdapter:(e,t)=>{e=utils$1.isArray(e)?e:[e];const{length:r}=e;let o,s;const n={};for(let i=0;i<r;i++){let r;if(o=e[i],s=o,!isResolvedHandle(o)&&(s=knownAdapters[(r=String(o)).toLowerCase()],void 0===s))throw new AxiosError$1(`Unknown adapter '${r}'`);if(s&&(utils$1.isFunction(s)||(s=s.get(t))))break;n[r||"#"+i]=s}if(!s){const e=Object.entries(n).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new AxiosError$1("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return s},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$1(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(e.adapter||defaults.adapter,e)(e).then((function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders$1.from(t.headers),t}),(function(t){return isCancel$1(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders$1.from(t.response.headers))),Promise.reject(t)}))}const VERSION$1="1.12.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{validators$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const deprecatedWarnings={};function assertOptions(e,t,r){if("object"!=typeof e)throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const n=o[s],i=t[n];if(i){const t=e[n],r=void 0===t||i(t,n,e);if(!0!==r)throw new AxiosError$1("option "+n+" must be "+r,AxiosError$1.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new AxiosError$1("Unknown option "+n,AxiosError$1.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,r){function o(e,t){return"[Axios v"+VERSION$1+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,s,n)=>{if(!1===e)throw new AxiosError$1(o(s," has been removed"+(t?" in "+t:"")),AxiosError$1.ERR_DEPRECATED);return t&&!deprecatedWarnings[s]&&(deprecatedWarnings[s]=!0,console.warn(o(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,n)}},validators$1.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const validator={assertOptions:assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch{}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig$1(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:s}=t;void 0!==r&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),null!=o&&(utils$1.isFunction(o)?t.paramsSerializer={serialize:o}:validator.assertOptions(o,{encode:validators.function,serialize:validators.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),validator.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let n=s&&utils$1.merge(s.common,s[t.method]);s&&utils$1.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=AxiosHeaders$1.concat(n,s);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const u=[];this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let c,l,p=0;if(!a){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...i),e.push(...u),l=e.length,c=Promise.resolve(t);p<l;)c=c.then(e[p++],e[p++]);return c}l=i.length;let d=t;for(;p<l;){const e=i[p++],t=i[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=dispatchRequest.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=u.length;p<l;)c=c.then(u[p++],u[p++]);return c}getUri(e){return buildURL(buildFullPath((e=mergeConfig$1(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],(function(e){Axios$1.prototype[e]=function(t,r){return this.request(mergeConfig$1(r||{},{method:e,url:t,data:(r||{}).data}))}})),utils$1.forEach(["post","put","patch"],(function(e){function t(t){return function(r,o,s){return this.request(mergeConfig$1(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Axios$1.prototype[e]=t(),Axios$1.prototype[e+"Form"]=t(!0)}));let CancelToken$1=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{r.subscribe(e),t=e})).then(e);return o.cancel=function(){r.unsubscribe(t)},o},e((function(e,o,s){r.reason||(r.reason=new CanceledError$1(e,o,s),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}};function spread$1(e){return function(t){return e.apply(null,t)}}function isAxiosError$1(e){return utils$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};function createInstance(e){const t=new Axios$1(e),r=bind(Axios$1.prototype.request,t);return utils$1.extend(r,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance(mergeConfig$1(e,t))},r}Object.entries(HttpStatusCode$1).forEach((([e,t])=>{HttpStatusCode$1[t]=e}));const axios=createInstance(defaults);axios.Axios=Axios$1,axios.CanceledError=CanceledError$1,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel$1,axios.VERSION=VERSION$1,axios.toFormData=toFormData$1,axios.AxiosError=AxiosError$1,axios.Cancel=axios.CanceledError,axios.all=function(e){return Promise.all(e)},axios.spread=spread$1,axios.isAxiosError=isAxiosError$1,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const{Axios:Axios,AxiosError:AxiosError,CanceledError:CanceledError,isCancel:isCancel,CancelToken:CancelToken,VERSION:VERSION,all:all,Cancel:Cancel,isAxiosError:isAxiosError,spread:spread,toFormData:toFormData,AxiosHeaders:AxiosHeaders,HttpStatusCode:HttpStatusCode,formToJSON:formToJSON,getAdapter:getAdapter,mergeConfig:mergeConfig}=axios;var ContentTypes=(e=>(e.POST="post",e.POLL="poll",e))(ContentTypes||{}),BASE_URL="http://localhost:8000",API_URLS={FETCH_AUTH:`${BASE_URL}/client/v1/generateToken`,GET_CONTENT:`${BASE_URL}/client/v1/getContent`,VOTE:`${BASE_URL}/client/v1/vote`,GET_CONFIG:`${BASE_URL}/client/v1/config`},REFRESH_TOKEN_TIMEOUT_MILLI_SECONDS=15e5,ERROR_CODE_MESSAGE_MAP={FB_1003:"Something went wrong. Please try again.",FB_1002:"This project doesn't exist or has been removed.",FB_1001:"You’re not authorized to perform this action."},getAuthDetails=async e=>{try{const t=await axios.post(`${API_URLS.FETCH_AUTH}/${e}`),{authData:r}=t.data.data;return{authToken:r.authToken,endpoint:r.endpoint,expiresAt:r.expiresAt,cacheName:r.cacheName}}catch(e){throw e}},getContent=async e=>{try{return(await axios.get(`${API_URLS.GET_CONTENT}/${e}`)).data.data.content}catch(e){throw e}},voteAPI=async e=>{const{projectId:t,pollOptionId:r,userId:o,pollId:s}=e;try{return(await axios.post(`${API_URLS.VOTE}/${t}/${s}/${r}`,{voterId:o})).data.data}catch(e){console.error("[Feedobell : Voting Service] Error while voting",e)}},getConfigAPI=async e=>{const{projectId:t,userId:r}=e;try{return(await axios.post(`${API_URLS.GET_CONFIG}/${t}`,{userId:r})).data.data}catch(e){throw e}},getErrorMessage=e=>{const{errorCode:t}=e.error||{};return ERROR_CODE_MESSAGE_MAP[t]||"Something went wrong. Please try again."},syncContentWithConfig=(e,t)=>(e.forEach((e=>{if("poll"===e.contentType){const r=t.find((t=>t?.pollId===e._id));e.hasVoted=!!r,e.pollOptions.forEach((e=>e.hasVoted=r?.pollOptionId===e._id))}})),e),topicClient,setIntervalIDs=[],currentSubscriptions=[],isSubscriptionAPIInProgress=!1,isFetchingContentInProgress=!1,useFeedobell=({projectId:e,userId:t,fetchAllCallback:r,onNewContentCallback:o,onErrorCallback:s})=>{const n=()=>{currentSubscriptions.forEach((e=>e.unsubscribe()))},i=async()=>{if(!isSubscriptionAPIInProgress){isSubscriptionAPIInProgress=!0;try{const t=await getAuthDetails(e);topicClient=new srcExports.TopicClient({configuration:srcExports.TopicConfigurations.Browser.latest(),credentialProvider:srcExports.CredentialProvider.fromString({authToken:t.authToken})}),n();const r=await topicClient.subscribe(t.cacheName,e,{onItem(e){const t=(new TextDecoder).decode(e._value),r=JSON.parse(t);o(null,r)},onError(e){s("Something went wrong")}});r.type===srcExports.TopicSubscribeResponse.Subscription&&currentSubscriptions.push(r)}catch{}finally{isSubscriptionAPIInProgress=!1}}};return{disconnect:async()=>{n(),setIntervalIDs.forEach((e=>{clearInterval(e)}))},connect:async()=>{try{if(isFetchingContentInProgress)return;isFetchingContentInProgress=!0;const o=getContent(e),s=getConfigAPI({projectId:e,userId:t}),[n,i]=await Promise.all([o,s]),a=syncContentWithConfig(n,i?.userConfig);r(null,a)}catch(e){console.error("[Feedobell: Fetching Content Error]",e),r(getErrorMessage(e),null)}finally{isFetchingContentInProgress=!1}i();const o=setInterval((()=>{i()}),REFRESH_TOKEN_TIMEOUT_MILLI_SECONDS);setIntervalIDs.push(o)}}};const bellIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-bell-icon%20lucide-bell'%3e%3cpath%20d='M10.268%2021a2%202%200%200%200%203.464%200'/%3e%3cpath%20d='M3.262%2015.326A1%201%200%200%200%204%2017h16a1%201%200%200%200%20.74-1.673C19.41%2013.956%2018%2012.499%2018%208A6%206%200%200%200%206%208c0%204.499-1.411%205.956-2.738%207.326'/%3e%3c/svg%3e",getRelativeDate=e=>{const t=new Date(e),r=(new Date).getTime()-t.getTime(),o=Math.floor(r/864e5);return 0===o?"Today":1===o?"Yesterday":o<7?`${o} days ago`:t.toLocaleDateString("en-US",{day:"numeric",month:"short"})},calender="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-calendar-days-icon%20lucide-calendar-days'%3e%3cpath%20d='M8%202v4'/%3e%3cpath%20d='M16%202v4'/%3e%3crect%20width='18'%20height='18'%20x='3'%20y='4'%20rx='2'/%3e%3cpath%20d='M3%2010h18'/%3e%3cpath%20d='M8%2014h.01'/%3e%3cpath%20d='M12%2014h.01'/%3e%3cpath%20d='M16%2014h.01'/%3e%3cpath%20d='M8%2018h.01'/%3e%3cpath%20d='M12%2018h.01'/%3e%3cpath%20d='M16%2018h.01'/%3e%3c/svg%3e",t$1=globalThis,i$2=t$1.trustedTypes,s=i$2?i$2.createPolicy("lit-html",{createHTML:e=>e}):void 0,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2="?"+h,n$1=`<${o$2}>`,r=document,l=()=>r.createComment(""),c=e=>null===e||"object"!=typeof e&&"function"!=typeof e,a=Array.isArray,u=e=>a(e)||"function"==typeof e?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r.createTreeWalker(r,129);
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function P(e,t){if(!a(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(t):t}const V=(e,t)=>{const r=e.length-1,o=[];let s,n=2===t?"<svg>":3===t?"<math>":"",i=f;for(let t=0;t<r;t++){const r=e[t];let a,u,c=-1,l=0;for(;l<r.length&&(i.lastIndex=l,u=i.exec(r),null!==u);)l=i.lastIndex,i===f?"!--"===u[1]?i=v:void 0!==u[1]?i=_:void 0!==u[2]?($.test(u[2])&&(s=RegExp("</"+u[2],"g")),i=m):void 0!==u[3]&&(i=m):i===m?">"===u[0]?(i=s??f,c=-1):void 0===u[1]?c=-2:(c=i.lastIndex-u[2].length,a=u[1],i=void 0===u[3]?m:'"'===u[3]?g:p):i===g||i===p?i=m:i===v||i===_?i=f:(i=m,s=void 0);const d=i===m&&e[t+1].startsWith("/>")?" ":"";n+=i===f?r+n$1:c>=0?(o.push(a),r.slice(0,c)+e$2+r.slice(c)+h+d):r+h+(-2===c?t:d)}return[P(e,n+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]};class N{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let s=0,n=0;const i=e.length-1,a=this.parts,[u,c]=V(e,t);if(this.el=N.createElement(u,r),C.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=C.nextNode())&&a.length<i;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(e$2)){const t=c[n++],r=o.getAttribute(e).split(h),i=/([.?@])?(.*)/.exec(t);a.push({type:1,index:s,name:i[2],strings:r,ctor:"."===i[1]?H:"?"===i[1]?I:"@"===i[1]?L:k}),o.removeAttribute(e)}else e.startsWith(h)&&(a.push({type:6,index:s}),o.removeAttribute(e));if($.test(o.tagName)){const e=o.textContent.split(h),t=e.length-1;if(t>0){o.textContent=i$2?i$2.emptyScript:"";for(let r=0;r<t;r++)o.append(e[r],l()),C.nextNode(),a.push({type:2,index:++s});o.append(e[t],l())}}}else if(8===o.nodeType)if(o.data===o$2)a.push({type:2,index:s});else{let e=-1;for(;-1!==(e=o.data.indexOf(h,e+1));)a.push({type:7,index:s}),e+=h.length-1}s++}}static createElement(e,t){const o=r.createElement("template");return o.innerHTML=e,o}}function S(e,t,r=e,o){if(t===T)return t;let s=void 0!==o?r._$Co?.[o]:r._$Cl;const n=c(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),void 0===n?s=void 0:(s=new n(e),s._$AT(e,r,o)),void 0!==o?(r._$Co??=[])[o]=s:r._$Cl=s),void 0!==s&&(t=S(e,s._$AS(e,t.values),s,o)),t}class M{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:o}=this._$AD,s=(e?.creationScope??r).importNode(t,!0);C.currentNode=s;let n=C.nextNode(),i=0,a=0,u=o[0];for(;void 0!==u;){if(i===u.index){let t;2===u.type?t=new R(n,n.nextSibling,this,e):1===u.type?t=new u.ctor(n,u.name,u.strings,this,e):6===u.type&&(t=new z(n,this,e)),this._$AV.push(t),u=o[++a]}i!==u?.index&&(n=C.nextNode(),i++)}return C.currentNode=r,s}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=S(this,e,t),c(e)?e===E||null==e||""===e?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==T&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):u(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=e:this.T(r.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=N.createElement(P(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new M(o,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=A.get(e.strings);return void 0===t&&A.set(e.strings,t=new N(e)),t}k(e){a(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const s of e)o===t.length?t.push(r=new R(this.O(l()),this.O(l()),this,this.options)):r=t[o],r._$AI(s),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,s){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=E}_$AI(e,t=this,r,o){const s=this.strings;let n=!1;if(void 0===s)e=S(this,e,t,0),n=!c(e)||e!==this._$AH&&e!==T,n&&(this._$AH=e);else{const o=e;let i,a;for(e=s[0],i=0;i<s.length-1;i++)a=S(this,o[r+i],t,i),a===T&&(a=this._$AH[i]),n||=!c(a)||a!==this._$AH[i],a===E?e=E:e!==E&&(e+=(a??"")+s[i+1]),this._$AH[i]=a}n&&!o&&this.j(e)}j(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class H extends k{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E?void 0:e}}class I extends k{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==E)}}class L extends k{constructor(e,t,r,o,s){super(e,t,r,o,s),this.type=5}_$AI(e,t=this){if((e=S(this,e,t,0)??E)===T)return;const r=this._$AH,o=e===E&&r!==E||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==E&&(r===E||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class z{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){S(this,e)}}const j=t$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.litHtmlVersions??=[]).push("3.3.1");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const t={ATTRIBUTE:1,CHILD:2},e$1=e=>(...t)=>({_$litDirective$:e,values:t});let i$1=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */class e extends i$1{constructor(e){if(super(e),this.it=E,e.type!==t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===E||null==e)return this._t=void 0,this.it=e;if(e===T)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o$1=e$1(e);var __defProp$4=Object.defineProperty,__getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__decorateClass$4=(e,t,r,o)=>{for(var s,n=o>1?void 0:o?__getOwnPropDesc$4(t,r):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=(o?s(t,r,n):s(n))||n);return o&&n&&__defProp$4(t,r,n),n};const MAX_POST_LENGTH_READ_MORE=1e3;let Post=class extends FeedobellElement{constructor(){super(...arguments),this._expanded=!1,this._renderPostHeader=({post:e})=>lit.html` <span
      class="text-xs text-muted-foreground bg-muted rounded-full inline-flex gap-1 items-center font-semibold"
    >
      <img
        src="${calender}"
        alt="Notifications"
        class="w-6 h-6 text-blue-600 cursor-pointer outline-none"
      />
      ${getRelativeDate(e?.createdAt)}
    </span>`,this._renderPostBody=({post:e})=>lit.html` <h3 class="font-semibold text-lg text-foreground line-clamp-1">
        ${this.post?.title||"Untitled"}
      </h3>
      ${this._readMore({html:e?.htmlContent||"",previewLines:10})}`}_readMore({html:e,previewLines:t=6}){const r=e.length>MAX_POST_LENGTH_READ_MORE;return lit.html`
      <div>
        <div
          class="prose prose-sm max-w-none text-muted-foreground [&>img]:rounded-lg [&>img]:my-2 custom-link-style transition-all duration-300"
          style="
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            -webkit-line-clamp: ${this._expanded?"unset":t};
          "
        >
          ${o$1(e)}
        </div>

        ${r?lit.html`
              <button
                @click=${()=>this._expanded=!this._expanded}
                class="mt-2 text-blue-700 hover:underline text-sm cursor-pointer font-semibold"
              >
                ${this._expanded?"Read less":"Read more"}
              </button>
            `:""}
      </div>
    `}render(){return this.post?lit.html`
      <div
        class="bg-white rounded-md p-4 mb-3 shadow-sm hover:shadow-lg transition-shadow duration-300"
      >
        ${this._renderPostHeader({post:this.post})}
        ${this._renderPostBody({post:this.post})}
      </div>
    `:null}};__decorateClass$4([n$3({attribute:"post"})],Post.prototype,"post",2),__decorateClass$4([r$2()],Post.prototype,"_expanded",2),Post=__decorateClass$4([t$4("feedobell-post")],Post);const vote="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-vote-icon%20lucide-vote'%3e%3cpath%20d='m9%2012%202%202%204-4'/%3e%3cpath%20d='M5%207c0-1.1.9-2%202-2h10a2%202%200%200%201%202%202v12H5V7Z'/%3e%3cpath%20d='M22%2019H2'/%3e%3c/svg%3e";class GlobalStore{static getInstance(){return GlobalStore.instance||(GlobalStore.instance=new GlobalStore),GlobalStore.instance}setProjectId(e){GlobalStore.projectId=e}setUserId(e){GlobalStore.userId=e}getProjectId(){return GlobalStore.projectId}getUserId(){return GlobalStore.userId}}const Store=new GlobalStore,n="important",i=" !"+n,o=e$1(class extends i$1{constructor(e){if(super(e),e.type!==t.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,r)=>{const o=e[r];return null==o?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(e,[t]){const{style:r}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?r.removeProperty(e):r[e]=null);for(const e in t){const o=t[e];if(null!=o){this.ft.add(e);const t="string"==typeof o&&o.endsWith(i);e.includes("-")||t?r.setProperty(e,t?o.slice(0,-11):o,t?n:""):r[e]=o}}return T}});
/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */var __defProp$3=Object.defineProperty,__getOwnPropDesc$3=Object.getOwnPropertyDescriptor,__decorateClass$3=(e,t,r,o)=>{for(var s,n=o>1?void 0:o?__getOwnPropDesc$3(t,r):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=(o?s(t,r,n):s(n))||n);return o&&n&&__defProp$3(t,r,n),n};let PollOption=class extends FeedobellElement{constructor(){super(...arguments),this.totalVotes=0,this._hasVoted=!1,this._votePercentage=0,this.canVote=!0,this._handleOnclick=()=>{if(!this.poll||!this.pollOption||!this.canVote)return null;this._hasVoted=!0,voteAPI({projectId:Store.getProjectId(),userId:Store.getUserId(),pollId:this.poll?._id,pollOptionId:this.pollOption._id})},this._barStyles=e=>({width:`${e}%`,backgroundColor:"deepskyblue"})}updated(e){(e.has("pollOption")||e.has("totalVotes"))&&(this._votePercentage=this.totalVotes>0?Math.round((this.pollOption?.votes||0)/this.totalVotes*100):0,this._hasVoted=this.pollOption?.hasVoted||!1)}_renderPollOption(){return this.poll&&this.pollOption?lit.html`
    <div
  class="rounded-lg overflow-hidden cursor-pointer border-2 border-solid my-1 border-blue-500"
  @click=${this._handleOnclick}
>
  <div class="relative h-8 w-full">
    <div
      class="absolute left-0 top-0 h-full transition-all duration-200"
      style=${o(this._barStyles(this._votePercentage))}
    ></div>

    <div class="absolute inset-0 flex items-center justify-between px-3">
      <span
        class="truncate text-sm font-medium text-gray-800 inline-flex gap-1 items-center"
      >
        ${this.pollOption.label}
        ${this._hasVoted?lit.html`<img
                src="${vote}"
                alt="Notifications"
                class="w-6 h-6 text-blue-600 cursor-pointer outline-none"
              />`:""}
      </span>
      <span class="text-sm font-semibold text-gray-700">
        ${this._votePercentage}%
      </span>
    </div>
  </div>
</div>

    `:null}render(){return lit.html` ${this._renderPollOption()} `}};__decorateClass$3([n$3({attribute:"poll",type:Object})],PollOption.prototype,"poll",2),__decorateClass$3([n$3({attribute:"poll-option",type:Object})],PollOption.prototype,"pollOption",2),__decorateClass$3([n$3({attribute:"total-votes",type:Number})],PollOption.prototype,"totalVotes",2),__decorateClass$3([r$2()],PollOption.prototype,"_hasVoted",2),PollOption=__decorateClass$3([t$4("feedobell-poll-option")],PollOption);var __defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__decorateClass$2=(e,t,r,o)=>{for(var s,n=o>1?void 0:o?__getOwnPropDesc$2(t,r):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=(o?s(t,r,n):s(n))||n);return o&&n&&__defProp$2(t,r,n),n};let Poll=class extends FeedobellElement{constructor(){super(...arguments),this._renderPollHeader=({poll:e})=>lit.html` <span
      class="text-xs text-muted-foreground bg-muted rounded-full inline-flex gap-1 items-center font-semibold"
    >
      <img
        src="${calender}"
        alt="Notifications"
        class="w-6 h-6 text-blue-600 cursor-pointer outline-none"
      />
      ${getRelativeDate(e?.createdAt)}
    </span>`}_renderPollOption(e){return this.poll?this.poll.pollOptions.map((t=>lit.html`<feedobell-poll-option
          .poll=${this.poll}
          .pollOption=${t}
          .totalVotes=${e}
        ></feedobell-poll-option>`)):null}_renderPollBody({poll:e}){const t=(e?.pollOptions||[]).filter((e=>!e.isDeleted)),r=t.reduce(((e,t)=>e+(t.votes||0)),0);return lit.html`
    <div class="w-full">
      <h3 class="font-semibold text-lg text-foreground mb-4">
        ${this.poll?.title}
      </h3>
  
      <div class="space-y-3">
        ${0===t.length?lit.html`<div
              class="rounded-lg border border-dashed p-3 text-center text-sm text-muted-foreground"
            >
              No options available.
            </div>`:this._renderPollOption(r)}
      </div>
  
      <span
        class="text-xs text-muted-foreground bg-muted rounded-full inline-flex gap-1 items-center font-semibold"
      >
        <img
          src="${vote}"
          alt="Notifications"
          class="w-6 h-6 text-blue-600 cursor-pointer outline-none"
        />
        ${r} votes
      </span>
    </div>
  `}render(){return this.poll?lit.html`
      <div
        class="bg-white rounded-md p-4 mb-3 shadow-sm hover:shadow-lg transition-shadow duration-300"
      >
        ${this._renderPollHeader({poll:this.poll})}
        ${this._renderPollBody({poll:this.poll})}
      </div>
    `:null}};__decorateClass$2([n$3({attribute:"poll"})],Poll.prototype,"poll",2),Poll=__decorateClass$2([t$4("feedobell-poll")],Poll);var __defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__decorateClass$1=(e,t,r,o)=>{for(var s,n=o>1?void 0:o?__getOwnPropDesc$1(t,r):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=(o?s(t,r,n):s(n))||n);return o&&n&&__defProp$1(t,r,n),n};let FeedobellSidebar=class extends FeedobellElement{constructor(){super(...arguments),this.isOpen=!1,this.onClose=()=>{},this.content=[],this.errorMessage=null,this.onErrorClear=()=>{},this.isContentLoading=!1}_renderHeader(){return lit.html`
      <div class="flex items-center justify-between p-4 bg-blue-600 text-white">
        <h2 class="text-lg font-semibold">Latest Updates</h2>
        <button
          @click=${this.onClose}
          class="cursor-pointer text-xl font-bold"
          aria-label="Close sidebar"
        >
          &times;
        </button>
      </div>
    `}_renderErrorMessage(){return this.errorMessage?lit.html`
      <div
        class="flex items-center justify-between p-3 bg-red-100 border border-red-300 text-red-800 mx-2 my-2 rounded-md shadow-sm"
      >
        <span class="text-sm flex-1 pr-2">${this.errorMessage}</span>
        <button
          class="text-red-500 hover:text-red-700 font-bold text-lg cursor-pointer"
          @click=${this.onErrorClear}
          aria-label="Dismiss error"
        >
          &times;
        </button>
      </div>
      `:null}_renderFooter(){return lit.html` <div
      class="p-3 text-sm text-center text-gray-700 bg-gray-100 "
    >
      Powered by
      <span
        class="font-medium underline cursor-pointer"
        @click=${()=>window.open("https://www.feedobell.com","_blank")}
      >
        Feedobell
      </span>
    </div>`}_renderLoading(){return lit.html`
      <div class="flex justify-center items-center p-4">
        <div class="loader"></div>
      </div>
      <style>
        .loader {
          border: 4px solid #f3f3f3; /* Light gray */
          border-top: 4px solid #3b82f6; /* Blue (matches bell icon) */
          border-radius: 50%;
          width: 2rem;
          height: 2rem;
          animation: spin 1s linear infinite;
        }
  
        @keyframes spin {
          0% { transform: rotate(0deg); }
          100% { transform: rotate(360deg); }
        }
      </style>
    `}_renderContent(){return this.content.map((e=>e.contentType===ContentTypes.POST?lit.html`<feedobell-post .post=${e}></post>`:e.contentType===ContentTypes.POLL?lit.html`<feedobell-poll .poll=${e}></poll>`:void 0))}render(){return lit.html`
      <div
        style="transform: translateX(${this.isOpen?"0%":"100%"})"
        class="
          fixed top-0 right-0 h-full shadow-xl z-50 transition-transform duration-300 ease-in-out
          flex flex-col
          w-1/4         
          max-lg:w-1/3  
          max-md:w-full 
        "
      >
        ${this._renderHeader()}
        ${this._renderErrorMessage()}
  
        <div
          class="flex-1 overflow-y-auto flex flex-col py-4 px-1.5 gap-1.5 bg-[#f9f9f9]"
        >
          ${this.isContentLoading?this._renderLoading():this._renderContent()}
        </div>
  
        ${this._renderFooter()}
      </div>
    `}};__decorateClass$1([n$3({attribute:"is-open",type:Boolean})],FeedobellSidebar.prototype,"isOpen",2),__decorateClass$1([n$3({attribute:"on-close"})],FeedobellSidebar.prototype,"onClose",2),__decorateClass$1([n$3({attribute:"content",type:Array})],FeedobellSidebar.prototype,"content",2),__decorateClass$1([n$3({attribute:"error-message"})],FeedobellSidebar.prototype,"errorMessage",2),__decorateClass$1([n$3({attribute:"on-error-clear"})],FeedobellSidebar.prototype,"onErrorClear",2),__decorateClass$1([n$3({attribute:"is-content-loading",type:Boolean})],FeedobellSidebar.prototype,"isContentLoading",2),FeedobellSidebar=__decorateClass$1([t$4("feedobell-sidebar")],FeedobellSidebar);var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(e,t,r,o)=>{for(var s,n=o>1?void 0:o?__getOwnPropDesc(t,r):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=(o?s(t,r,n):s(n))||n);return o&&n&&__defProp(t,r,n),n};const TEST_PROJECT_ID="6873ac1d339d452d247902b0";exports.FeedobellWidget=class extends FeedobellElement{constructor(){super(...arguments),this.projectId=TEST_PROJECT_ID,this.userId="default-user-id",this._errorMessage=null,this._content=[],this._notificationCount=0,this._isSidebarOpen=!1,this._isContentLoading=!1,this._onIconClick=()=>{this._isSidebarOpen=!this._isSidebarOpen,this._notificationCount=0},this._fetchAllCallback=(e,t)=>{e&&(this._errorMessage=e),t&&(this._content=t)},this._onNewContentCallback=(e,t)=>{t&&(e?.error?.message&&(this._errorMessage=e.error.message),this._content=[t,...this._content],this._isSidebarOpen||(this._notificationCount=this._notificationCount+1))},this._onErrorCallback=e=>{"string"==typeof e&&(this._errorMessage=e)},this._disconnectedFeedobell=null,this._handleOutsideClick=e=>{e.composedPath().includes(this)||(this._isSidebarOpen=!1)}}updated(e){super.updated(e),e.has("projectId")&&Store.setProjectId(this.projectId),e.has("userId")&&Store.setUserId(this.userId)}async connectedCallback(){super.connectedCallback();const{connect:e,disconnect:t}=useFeedobell({projectId:this.projectId,userId:this.userId,fetchAllCallback:this._fetchAllCallback,onErrorCallback:this._onErrorCallback,onNewContentCallback:this._onNewContentCallback});this._disconnectedFeedobell=t,this._isContentLoading=!0,await e(),this._isContentLoading=!1,document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){this._disconnectedFeedobell&&this._disconnectedFeedobell(),document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}render(){return lit.html` <button
      @click=${this._onIconClick}
      class="relative p-2 rounded-full hover:bg-gray-100 transition cursor-pointer focus-visible:outline-none"
      aria-label="Open notifications"
    >
      <img
        src="${bellIcon}"
        alt="Notifications"
        class="w-6 h-6 text-blue-600 cursor-pointer outline-none"
      />

      ${this._notificationCount>0?lit.html`
            <span
              class="absolute top-1 right-1 min-w-[1rem] h-[1rem] px-1 rounded-full bg-red-500 text-white text-xs font-medium flex items-center justify-center leading-none"
            >
              ${this._notificationCount}
            </span>
          `:""}
    </button>
    <feedobell-sidebar .isOpen=${this._isSidebarOpen} .onClose=${()=>this._isSidebarOpen=!1} .content=${this._content} .errorMessage=${this._errorMessage} .onErrorClear=${()=>this._errorMessage=null} .isContentLoading=${this._isContentLoading} ></feedobell-sidebar>
    `}},__decorateClass([n$3({attribute:"project-id"})],exports.FeedobellWidget.prototype,"projectId",2),__decorateClass([n$3({attribute:"user-id"})],exports.FeedobellWidget.prototype,"userId",2),__decorateClass([r$2()],exports.FeedobellWidget.prototype,"_errorMessage",2),__decorateClass([r$2()],exports.FeedobellWidget.prototype,"_content",2),__decorateClass([r$2()],exports.FeedobellWidget.prototype,"_notificationCount",2),__decorateClass([r$2()],exports.FeedobellWidget.prototype,"_isSidebarOpen",2),__decorateClass([r$2()],exports.FeedobellWidget.prototype,"_isContentLoading",2),exports.FeedobellWidget=__decorateClass([t$4("feedobell-widget")],exports.FeedobellWidget);
//# sourceMappingURL=/sm/0f72698b5a362df652630ac9c66bbdae05e39da8af934523bbc2e9a225fef231.map